|
18 | 18 | "deprecated": false,
|
19 | 19 | "deprecationMessage": "",
|
20 | 20 | "type": "Story",
|
21 |
| - "defaultValue": "{\n args: {\n type: 'error' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5210&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('error');\n }\n}" |
| 21 | + "defaultValue": "{\n args: {\n // @ts-ignore\n type: 'error' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5210&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('error');\n }\n}" |
22 | 22 | },
|
23 | 23 | {
|
24 | 24 | "name": "meta",
|
|
38 | 38 | "deprecated": false,
|
39 | 39 | "deprecationMessage": "",
|
40 | 40 | "type": "Meta<ToastComponent>",
|
41 |
| - "defaultValue": "{\n title: 'LFX Components/Containers/Toast',\n component: ToastComponent,\n tags: ['autodocs'],\n render: (args) => ({\n template: `\n <lfx-toast type=\"${args.type}\">\n <h1>Title</h1>\n <p>Body paragraph</p>\n </lfx-toast>\n `,\n }),\n argTypes: {\n type: {\n control: 'select',\n options: ['notice', 'warning', 'success', 'error'] as IType[],\n },\n },\n args: {\n type: 'notice' as IType,\n },\n}" |
| 41 | + "defaultValue": "{\n title: 'LFX Components/Containers/Toast',\n component: ToastComponent,\n tags: ['autodocs'],\n render: (args) => ({\n template: `\n <lfx-toast type=\"${args.type}\">\n <h1>Title</h1>\n <p>Body paragraph</p>\n </lfx-toast>\n `,\n }),\n argTypes: {\n type: {\n control: 'select',\n options: ['notice', 'warning', 'success', 'error'] as IType[],\n },\n },\n args: {\n // @ts-ignore\n type: 'notice' as IType,\n },\n}" |
42 | 42 | },
|
43 | 43 | {
|
44 | 44 | "name": "Notice",
|
|
48 | 48 | "deprecated": false,
|
49 | 49 | "deprecationMessage": "",
|
50 | 50 | "type": "Story",
|
51 |
| - "defaultValue": "{\n args: {\n type: 'notice' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5198&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('notice');\n }\n}" |
| 51 | + "defaultValue": "{\n args: {\n // @ts-ignore\n type: 'notice' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5198&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('notice');\n }\n}" |
52 | 52 | },
|
53 | 53 | {
|
54 | 54 | "name": "preview",
|
|
78 | 78 | "deprecated": false,
|
79 | 79 | "deprecationMessage": "",
|
80 | 80 | "type": "Story",
|
81 |
| - "defaultValue": "{\n args: {\n type: 'success' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5207&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('success');\n }\n}" |
| 81 | + "defaultValue": "{\n args: {\n // @ts-ignore\n type: 'success' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5207&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('success');\n }\n}" |
82 | 82 | },
|
83 | 83 | {
|
84 | 84 | "name": "Warning",
|
|
88 | 88 | "deprecated": false,
|
89 | 89 | "deprecationMessage": "",
|
90 | 90 | "type": "Story",
|
91 |
| - "defaultValue": "{\n args: {\n type: 'warning' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5205&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('warning');\n }\n}" |
| 91 | + "defaultValue": "{\n args: {\n // @ts-ignore\n type: 'warning' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5205&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('warning');\n }\n}" |
92 | 92 | }
|
93 | 93 | ],
|
94 | 94 | "functions": [
|
|
157 | 157 | "deprecated": false,
|
158 | 158 | "deprecationMessage": "",
|
159 | 159 | "type": "Story",
|
160 |
| - "defaultValue": "{\n args: {\n type: 'error' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5210&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('error');\n }\n}" |
| 160 | + "defaultValue": "{\n args: {\n // @ts-ignore\n type: 'error' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5210&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('error');\n }\n}" |
161 | 161 | },
|
162 | 162 | {
|
163 | 163 | "name": "meta",
|
|
167 | 167 | "deprecated": false,
|
168 | 168 | "deprecationMessage": "",
|
169 | 169 | "type": "Meta<ToastComponent>",
|
170 |
| - "defaultValue": "{\n title: 'LFX Components/Containers/Toast',\n component: ToastComponent,\n tags: ['autodocs'],\n render: (args) => ({\n template: `\n <lfx-toast type=\"${args.type}\">\n <h1>Title</h1>\n <p>Body paragraph</p>\n </lfx-toast>\n `,\n }),\n argTypes: {\n type: {\n control: 'select',\n options: ['notice', 'warning', 'success', 'error'] as IType[],\n },\n },\n args: {\n type: 'notice' as IType,\n },\n}" |
| 170 | + "defaultValue": "{\n title: 'LFX Components/Containers/Toast',\n component: ToastComponent,\n tags: ['autodocs'],\n render: (args) => ({\n template: `\n <lfx-toast type=\"${args.type}\">\n <h1>Title</h1>\n <p>Body paragraph</p>\n </lfx-toast>\n `,\n }),\n argTypes: {\n type: {\n control: 'select',\n options: ['notice', 'warning', 'success', 'error'] as IType[],\n },\n },\n args: {\n // @ts-ignore\n type: 'notice' as IType,\n },\n}" |
171 | 171 | },
|
172 | 172 | {
|
173 | 173 | "name": "Notice",
|
|
177 | 177 | "deprecated": false,
|
178 | 178 | "deprecationMessage": "",
|
179 | 179 | "type": "Story",
|
180 |
| - "defaultValue": "{\n args: {\n type: 'notice' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5198&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('notice');\n }\n}" |
| 180 | + "defaultValue": "{\n args: {\n // @ts-ignore\n type: 'notice' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5198&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('notice');\n }\n}" |
181 | 181 | },
|
182 | 182 | {
|
183 | 183 | "name": "Success",
|
|
187 | 187 | "deprecated": false,
|
188 | 188 | "deprecationMessage": "",
|
189 | 189 | "type": "Story",
|
190 |
| - "defaultValue": "{\n args: {\n type: 'success' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5207&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('success');\n }\n}" |
| 190 | + "defaultValue": "{\n args: {\n // @ts-ignore\n type: 'success' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5207&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('success');\n }\n}" |
191 | 191 | },
|
192 | 192 | {
|
193 | 193 | "name": "Warning",
|
|
197 | 197 | "deprecated": false,
|
198 | 198 | "deprecationMessage": "",
|
199 | 199 | "type": "Story",
|
200 |
| - "defaultValue": "{\n args: {\n type: 'warning' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5205&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('warning');\n }\n}" |
| 200 | + "defaultValue": "{\n args: {\n // @ts-ignore\n type: 'warning' as IType,\n },\n parameters: {\n design: {\n type: \"figspec\",\n url: \"https://www.figma.com/design/nj8rOxBtzQCa7KrvBxF4aF/Coherence-Design-System?node-id=772-5205&t=zfHib1d5XSXabYJp-4\",\n },\n },\n play: async ( {canvasElement} ) => {\n const element = getElement(canvasElement);\n await expect(element.classList).toContain('warning');\n }\n}" |
201 | 201 | }
|
202 | 202 | ],
|
203 | 203 | "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts": [
|
|
0 commit comments