|
24 | 24 | "name": "meta",
|
25 | 25 | "ctype": "miscellaneous",
|
26 | 26 | "subtype": "variable",
|
27 |
| - "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
| 27 | + "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
28 | 28 | "deprecated": false,
|
29 | 29 | "deprecationMessage": "",
|
30 |
| - "type": "Meta<SectionsComponent>", |
31 |
| - "defaultValue": "{\n title: 'LFX Components/Containers/Sections',\n component: SectionsComponent,\n tags: ['autodocs'],\n argTypes: {\n backgroundColor: {\n control: 'color',\n },\n },\n parameters: {\n backgrounds: { default: 'dark' },\n },\n}" |
| 30 | + "type": "Meta<ToastComponent>", |
| 31 | + "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}" |
32 | 32 | },
|
33 | 33 | {
|
34 | 34 | "name": "meta",
|
35 | 35 | "ctype": "miscellaneous",
|
36 | 36 | "subtype": "variable",
|
37 |
| - "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 37 | + "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
38 | 38 | "deprecated": false,
|
39 | 39 | "deprecationMessage": "",
|
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}" |
| 40 | + "type": "Meta<SectionsComponent>", |
| 41 | + "defaultValue": "{\n title: 'LFX Components/Containers/Sections',\n component: SectionsComponent,\n tags: ['autodocs'],\n argTypes: {\n backgroundColor: {\n control: 'color',\n },\n },\n parameters: {\n backgrounds: { default: 'dark' },\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}" |
| 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 canvas = within(canvasElement);\n const toastElement = canvas.getByTestId('lfx-toast-container');\n await expect(toastElement.classList).toContain('notice');\n // get current class of the toast in canvas var and check if it is the correct one in expect()\n }\n}" |
52 | 52 | },
|
53 | 53 | {
|
54 | 54 | "name": "preview",
|
|
97 | 97 | "name": "Story",
|
98 | 98 | "ctype": "miscellaneous",
|
99 | 99 | "subtype": "typealias",
|
100 |
| - "rawtype": "StoryObj<SectionsComponent>", |
101 |
| - "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
| 100 | + "rawtype": "StoryObj<ToastComponent>", |
| 101 | + "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
102 | 102 | "deprecated": false,
|
103 | 103 | "deprecationMessage": "",
|
104 | 104 | "description": "",
|
|
108 | 108 | "name": "Story",
|
109 | 109 | "ctype": "miscellaneous",
|
110 | 110 | "subtype": "typealias",
|
111 |
| - "rawtype": "StoryObj<ToastComponent>", |
112 |
| - "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 111 | + "rawtype": "StoryObj<SectionsComponent>", |
| 112 | + "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
113 | 113 | "deprecated": false,
|
114 | 114 | "deprecationMessage": "",
|
115 | 115 | "description": "",
|
|
147 | 147 | "deprecated": false,
|
148 | 148 | "deprecationMessage": "",
|
149 | 149 | "type": "Story",
|
150 |
| - "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}" |
| 150 | + "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 canvas = within(canvasElement);\n const toastElement = canvas.getByTestId('lfx-toast-container');\n await expect(toastElement.classList).toContain('notice');\n // get current class of the toast in canvas var and check if it is the correct one in expect()\n }\n}" |
151 | 151 | },
|
152 | 152 | {
|
153 | 153 | "name": "Success",
|
|
208 | 208 | "groupedFunctions": {},
|
209 | 209 | "groupedEnumerations": {},
|
210 | 210 | "groupedTypeAliases": {
|
211 |
| - "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts": [ |
| 211 | + "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts": [ |
212 | 212 | {
|
213 | 213 | "name": "Story",
|
214 | 214 | "ctype": "miscellaneous",
|
215 | 215 | "subtype": "typealias",
|
216 |
| - "rawtype": "StoryObj<SectionsComponent>", |
217 |
| - "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
| 216 | + "rawtype": "StoryObj<ToastComponent>", |
| 217 | + "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
218 | 218 | "deprecated": false,
|
219 | 219 | "deprecationMessage": "",
|
220 | 220 | "description": "",
|
221 | 221 | "kind": 183
|
222 | 222 | }
|
223 | 223 | ],
|
224 |
| - "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts": [ |
| 224 | + "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts": [ |
225 | 225 | {
|
226 | 226 | "name": "Story",
|
227 | 227 | "ctype": "miscellaneous",
|
228 | 228 | "subtype": "typealias",
|
229 |
| - "rawtype": "StoryObj<ToastComponent>", |
230 |
| - "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 229 | + "rawtype": "StoryObj<SectionsComponent>", |
| 230 | + "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
231 | 231 | "deprecated": false,
|
232 | 232 | "deprecationMessage": "",
|
233 | 233 | "description": "",
|
|
0 commit comments