|
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}" |
| 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}" |
22 | 22 | },
|
23 | 23 | {
|
24 | 24 | "name": "meta",
|
25 | 25 | "ctype": "miscellaneous",
|
26 | 26 | "subtype": "variable",
|
27 |
| - "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 27 | + "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
28 | 28 | "deprecated": false,
|
29 | 29 | "deprecationMessage": "",
|
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}" |
| 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}" |
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/sections/__docs__/sections.stories.ts", |
| 37 | + "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
38 | 38 | "deprecated": false,
|
39 | 39 | "deprecationMessage": "",
|
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}" |
| 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}" |
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 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}" |
| 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}" |
52 | 52 | },
|
53 | 53 | {
|
54 | 54 | "name": "preview",
|
|
58 | 58 | "deprecated": false,
|
59 | 59 | "deprecationMessage": "",
|
60 | 60 | "type": "Preview",
|
61 |
| - "defaultValue": "{\n parameters: {\n actions: { argTypesRegex: '^on[A-Z].*' },\n controls: {\n matchers: {\n color: /(background|color)$/i,\n date: /Date$/i,\n },\n },\n },\n}" |
| 61 | + "defaultValue": "{\n parameters: {\n controls: {\n matchers: {\n color: /(background|color)$/i,\n date: /Date$/i,\n },\n },\n },\n}" |
62 | 62 | },
|
63 | 63 | {
|
64 | 64 | "name": "Section",
|
|
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}" |
| 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}" |
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}" |
| 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}" |
| 92 | + } |
| 93 | + ], |
| 94 | + "functions": [ |
| 95 | + { |
| 96 | + "name": "getElement", |
| 97 | + "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 98 | + "ctype": "miscellaneous", |
| 99 | + "subtype": "function", |
| 100 | + "deprecated": false, |
| 101 | + "deprecationMessage": "", |
| 102 | + "description": "", |
| 103 | + "args": [ |
| 104 | + { |
| 105 | + "name": "canvasElement", |
| 106 | + "type": "HTMLElement", |
| 107 | + "deprecated": false, |
| 108 | + "deprecationMessage": "" |
| 109 | + } |
| 110 | + ], |
| 111 | + "returnType": "HTMLElement", |
| 112 | + "jsdoctags": [ |
| 113 | + { |
| 114 | + "name": "canvasElement", |
| 115 | + "type": "HTMLElement", |
| 116 | + "deprecated": false, |
| 117 | + "deprecationMessage": "", |
| 118 | + "tagName": { |
| 119 | + "text": "param" |
| 120 | + } |
| 121 | + } |
| 122 | + ] |
92 | 123 | }
|
93 | 124 | ],
|
94 |
| - "functions": [], |
95 | 125 | "typealiases": [
|
96 | 126 | {
|
97 | 127 | "name": "Story",
|
98 | 128 | "ctype": "miscellaneous",
|
99 | 129 | "subtype": "typealias",
|
100 |
| - "rawtype": "StoryObj<ToastComponent>", |
101 |
| - "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 130 | + "rawtype": "StoryObj<SectionsComponent>", |
| 131 | + "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
102 | 132 | "deprecated": false,
|
103 | 133 | "deprecationMessage": "",
|
104 | 134 | "description": "",
|
|
108 | 138 | "name": "Story",
|
109 | 139 | "ctype": "miscellaneous",
|
110 | 140 | "subtype": "typealias",
|
111 |
| - "rawtype": "StoryObj<SectionsComponent>", |
112 |
| - "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
| 141 | + "rawtype": "StoryObj<ToastComponent>", |
| 142 | + "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
113 | 143 | "deprecated": false,
|
114 | 144 | "deprecationMessage": "",
|
115 | 145 | "description": "",
|
|
127 | 157 | "deprecated": false,
|
128 | 158 | "deprecationMessage": "",
|
129 | 159 | "type": "Story",
|
130 |
| - "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}" |
| 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}" |
131 | 161 | },
|
132 | 162 | {
|
133 | 163 | "name": "meta",
|
|
147 | 177 | "deprecated": false,
|
148 | 178 | "deprecationMessage": "",
|
149 | 179 | "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 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}" |
| 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}" |
151 | 181 | },
|
152 | 182 | {
|
153 | 183 | "name": "Success",
|
|
157 | 187 | "deprecated": false,
|
158 | 188 | "deprecationMessage": "",
|
159 | 189 | "type": "Story",
|
160 |
| - "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}" |
| 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}" |
161 | 191 | },
|
162 | 192 | {
|
163 | 193 | "name": "Warning",
|
|
167 | 197 | "deprecated": false,
|
168 | 198 | "deprecationMessage": "",
|
169 | 199 | "type": "Story",
|
170 |
| - "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}" |
| 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}" |
171 | 201 | }
|
172 | 202 | ],
|
173 | 203 | "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts": [
|
|
201 | 231 | "deprecated": false,
|
202 | 232 | "deprecationMessage": "",
|
203 | 233 | "type": "Preview",
|
204 |
| - "defaultValue": "{\n parameters: {\n actions: { argTypesRegex: '^on[A-Z].*' },\n controls: {\n matchers: {\n color: /(background|color)$/i,\n date: /Date$/i,\n },\n },\n },\n}" |
| 234 | + "defaultValue": "{\n parameters: {\n controls: {\n matchers: {\n color: /(background|color)$/i,\n date: /Date$/i,\n },\n },\n },\n}" |
| 235 | + } |
| 236 | + ] |
| 237 | + }, |
| 238 | + "groupedFunctions": { |
| 239 | + "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts": [ |
| 240 | + { |
| 241 | + "name": "getElement", |
| 242 | + "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 243 | + "ctype": "miscellaneous", |
| 244 | + "subtype": "function", |
| 245 | + "deprecated": false, |
| 246 | + "deprecationMessage": "", |
| 247 | + "description": "", |
| 248 | + "args": [ |
| 249 | + { |
| 250 | + "name": "canvasElement", |
| 251 | + "type": "HTMLElement", |
| 252 | + "deprecated": false, |
| 253 | + "deprecationMessage": "" |
| 254 | + } |
| 255 | + ], |
| 256 | + "returnType": "HTMLElement", |
| 257 | + "jsdoctags": [ |
| 258 | + { |
| 259 | + "name": "canvasElement", |
| 260 | + "type": "HTMLElement", |
| 261 | + "deprecated": false, |
| 262 | + "deprecationMessage": "", |
| 263 | + "tagName": { |
| 264 | + "text": "param" |
| 265 | + } |
| 266 | + } |
| 267 | + ] |
205 | 268 | }
|
206 | 269 | ]
|
207 | 270 | },
|
208 |
| - "groupedFunctions": {}, |
209 | 271 | "groupedEnumerations": {},
|
210 | 272 | "groupedTypeAliases": {
|
211 |
| - "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts": [ |
| 273 | + "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts": [ |
212 | 274 | {
|
213 | 275 | "name": "Story",
|
214 | 276 | "ctype": "miscellaneous",
|
215 | 277 | "subtype": "typealias",
|
216 |
| - "rawtype": "StoryObj<ToastComponent>", |
217 |
| - "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 278 | + "rawtype": "StoryObj<SectionsComponent>", |
| 279 | + "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
218 | 280 | "deprecated": false,
|
219 | 281 | "deprecationMessage": "",
|
220 | 282 | "description": "",
|
221 | 283 | "kind": 183
|
222 | 284 | }
|
223 | 285 | ],
|
224 |
| - "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts": [ |
| 286 | + "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts": [ |
225 | 287 | {
|
226 | 288 | "name": "Story",
|
227 | 289 | "ctype": "miscellaneous",
|
228 | 290 | "subtype": "typealias",
|
229 |
| - "rawtype": "StoryObj<SectionsComponent>", |
230 |
| - "file": "projects/lfx-component-lib/src/lib/containers/sections/__docs__/sections.stories.ts", |
| 291 | + "rawtype": "StoryObj<ToastComponent>", |
| 292 | + "file": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
231 | 293 | "deprecated": false,
|
232 | 294 | "deprecationMessage": "",
|
233 | 295 | "description": "",
|
|
271 | 333 | "coverageCount": "0/1",
|
272 | 334 | "status": "low"
|
273 | 335 | },
|
| 336 | + { |
| 337 | + "filePath": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts", |
| 338 | + "type": "function", |
| 339 | + "linktype": "miscellaneous", |
| 340 | + "linksubtype": "function", |
| 341 | + "name": "getElement", |
| 342 | + "coveragePercent": 0, |
| 343 | + "coverageCount": "0/1", |
| 344 | + "status": "low" |
| 345 | + }, |
274 | 346 | {
|
275 | 347 | "filePath": "projects/lfx-component-lib/src/lib/containers/toast/__docs__/toast.stories.ts",
|
276 | 348 | "type": "variable",
|
|
0 commit comments