@momentum-design/components 0.100.1 → 0.101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/browser/index.js +1370 -1142
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/accordion/accordion.component.d.ts +76 -0
  4. package/dist/components/accordion/accordion.component.js +130 -0
  5. package/dist/components/accordion/accordion.constants.d.ts +2 -0
  6. package/dist/components/accordion/accordion.constants.js +3 -0
  7. package/dist/components/accordion/accordion.styles.d.ts +2 -0
  8. package/dist/components/accordion/accordion.styles.js +17 -0
  9. package/dist/components/accordion/index.d.ts +10 -0
  10. package/dist/components/accordion/index.js +7 -0
  11. package/dist/components/accordionbutton/accordionbutton.component.d.ts +121 -0
  12. package/dist/components/accordionbutton/accordionbutton.component.js +240 -0
  13. package/dist/components/accordionbutton/accordionbutton.constants.d.ts +17 -0
  14. package/dist/components/accordionbutton/accordionbutton.constants.js +19 -0
  15. package/dist/components/accordionbutton/accordionbutton.styles.d.ts +2 -0
  16. package/dist/components/accordionbutton/accordionbutton.styles.js +121 -0
  17. package/dist/components/accordionbutton/accordionbutton.types.d.ts +8 -0
  18. package/dist/components/accordionbutton/accordionbutton.types.js +1 -0
  19. package/dist/components/accordionbutton/index.d.ts +10 -0
  20. package/dist/components/accordionbutton/index.js +7 -0
  21. package/dist/components/accordiongroup/accordiongroup.component.d.ts +73 -0
  22. package/dist/components/accordiongroup/accordiongroup.component.js +134 -0
  23. package/dist/components/accordiongroup/accordiongroup.constants.d.ts +15 -0
  24. package/dist/components/accordiongroup/accordiongroup.constants.js +16 -0
  25. package/dist/components/accordiongroup/accordiongroup.styles.d.ts +2 -0
  26. package/dist/components/accordiongroup/accordiongroup.styles.js +48 -0
  27. package/dist/components/accordiongroup/accordiongroup.types.d.ts +5 -0
  28. package/dist/components/accordiongroup/accordiongroup.types.js +1 -0
  29. package/dist/components/accordiongroup/index.d.ts +7 -0
  30. package/dist/components/accordiongroup/index.js +4 -0
  31. package/dist/custom-elements.json +966 -0
  32. package/dist/index.d.ts +10 -7
  33. package/dist/index.js +10 -7
  34. package/dist/react/accordion/index.d.ts +55 -0
  35. package/dist/react/accordion/index.js +63 -0
  36. package/dist/react/accordionbutton/index.d.ts +52 -0
  37. package/dist/react/accordionbutton/index.js +60 -0
  38. package/dist/react/accordiongroup/index.d.ts +32 -0
  39. package/dist/react/accordiongroup/index.js +41 -0
  40. package/dist/react/index.d.ts +3 -0
  41. package/dist/react/index.js +3 -0
  42. package/dist/utils/keys.d.ts +1 -0
  43. package/dist/utils/keys.js +1 -0
  44. package/dist/utils/roles.d.ts +2 -0
  45. package/dist/utils/roles.js +2 -0
  46. package/package.json +1 -1
@@ -2,6 +2,972 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "components/accordion/accordion.component.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "An accordion contains a header and body section with a focusable heading that can be expanded or collapsed.\n\nThe header section contains:\n- Prefix Icon\n- Header Text\n- Leading Slot - Contains the leading controls of the accordion on the header section. This will be placed on the leading side, after the header text.\n- Trailing Slot - Contains the trailing controls of the accordion on the header section. This will be placed on the trailing side, before the expand/collapse button.\n\nThe body section contains:\n- Default slot - User can place any content inside the body section.\n\nThe accordion can be expanded or collapsed. The visibility of the body section can be controlled by `expanded` attribute. <br/>\nThere are two types of variants based on that the border styling of the accordion gets reflected. <br/>\nThere are two sizes of accordion, one is small and the other is large.\nSmall size has a padding of 1rem (16px) and large size has a padding of 1.5rem (24px) for the body section of accordion.\n\nBy default, the header text in the accordion heading is of H3 with an aria-level of '3'.\nIf this accordion is placed on any other level in the entire webpage, then do adjust the aria-level number based on that.\n\nAn accordion can be disabled, and when it's disabled, the header section will not be clickable.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf an accordion is expanded by default, then the screen reader might loose focus when toggling the visibilty of the accordion.",
12
+ "name": "Accordion",
13
+ "cssProperties": [
14
+ {
15
+ "description": "The border color of the accordion.",
16
+ "name": "--mdc-accordionbutton-border-color",
17
+ "inheritedFrom": {
18
+ "name": "AccordionButton",
19
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
20
+ }
21
+ },
22
+ {
23
+ "description": "The hover color of the accordion.",
24
+ "name": "--mdc-accordionbutton-hover-color",
25
+ "inheritedFrom": {
26
+ "name": "AccordionButton",
27
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
28
+ }
29
+ },
30
+ {
31
+ "description": "The active color of the accordion.",
32
+ "name": "--mdc-accordionbutton-active-color",
33
+ "inheritedFrom": {
34
+ "name": "AccordionButton",
35
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
36
+ }
37
+ },
38
+ {
39
+ "description": "The disabled color of the accordion.",
40
+ "name": "--mdc-accordionbutton-disabled-color",
41
+ "inheritedFrom": {
42
+ "name": "AccordionButton",
43
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
44
+ }
45
+ }
46
+ ],
47
+ "cssParts": [
48
+ {
49
+ "description": "The header section of the accordion.",
50
+ "name": "header-section",
51
+ "inheritedFrom": {
52
+ "name": "AccordionButton",
53
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
54
+ }
55
+ },
56
+ {
57
+ "description": "The leading header of the accordion.",
58
+ "name": "leading-header",
59
+ "inheritedFrom": {
60
+ "name": "AccordionButton",
61
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
62
+ }
63
+ },
64
+ {
65
+ "description": "The trailing header of the accordion.",
66
+ "name": "trailing-header",
67
+ "inheritedFrom": {
68
+ "name": "AccordionButton",
69
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
70
+ }
71
+ },
72
+ {
73
+ "description": "The trailing header button of the accordion.",
74
+ "name": "trailing-header__button"
75
+ },
76
+ {
77
+ "description": "The body section of the accordion.",
78
+ "name": "body-section",
79
+ "inheritedFrom": {
80
+ "name": "AccordionButton",
81
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
82
+ }
83
+ },
84
+ {
85
+ "description": "The header button section of the accordion button.",
86
+ "name": "header-button-section",
87
+ "inheritedFrom": {
88
+ "name": "AccordionButton",
89
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
90
+ }
91
+ },
92
+ {
93
+ "description": "The trailing header icon of the accordion button.",
94
+ "name": "trailing-header__icon",
95
+ "inheritedFrom": {
96
+ "name": "AccordionButton",
97
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
98
+ }
99
+ }
100
+ ],
101
+ "slots": [
102
+ {
103
+ "description": "The leading controls slot of the accordion on the header section.",
104
+ "name": "leading-controls"
105
+ },
106
+ {
107
+ "description": "The trailing controls slot of the accordion on the header section.",
108
+ "name": "trailing-controls"
109
+ },
110
+ {
111
+ "description": "The default slot contains the body section of the accordion. User can place anything inside this body slot.",
112
+ "name": "default",
113
+ "inheritedFrom": {
114
+ "name": "AccordionButton",
115
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
116
+ }
117
+ }
118
+ ],
119
+ "members": [
120
+ {
121
+ "kind": "method",
122
+ "name": "renderHeader",
123
+ "privacy": "protected",
124
+ "return": {
125
+ "type": {
126
+ "text": ""
127
+ }
128
+ },
129
+ "description": "Renders the header section of the accordion.\nThis includes the leading icon, text and controls, and the trailing controls.\nThe trailing controls include the expand/collapse button.\nThe button is disabled if the accordion is disabled.\nThe button is also given the aria-controls attribute set to the id of the body section.\nThe button is also given the aria-expanded attribute set to the expanded state of the accordion.\nThe prefix icon of the button is set to the expanded state of the accordion.",
130
+ "inheritedFrom": {
131
+ "name": "AccordionButton",
132
+ "module": "components/accordionbutton/accordionbutton.component.js"
133
+ }
134
+ },
135
+ {
136
+ "kind": "field",
137
+ "name": "disabled",
138
+ "type": {
139
+ "text": "boolean | undefined"
140
+ },
141
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
142
+ "default": "undefined",
143
+ "attribute": "disabled",
144
+ "reflects": true,
145
+ "inheritedFrom": {
146
+ "name": "DisabledMixin",
147
+ "module": "utils/mixins/DisabledMixin.js"
148
+ }
149
+ },
150
+ {
151
+ "kind": "field",
152
+ "name": "size",
153
+ "type": {
154
+ "text": "Size"
155
+ },
156
+ "description": "The size of the accordion item.",
157
+ "default": "'small'",
158
+ "attribute": "size",
159
+ "reflects": true,
160
+ "inheritedFrom": {
161
+ "name": "AccordionButton",
162
+ "module": "components/accordionbutton/accordionbutton.component.js"
163
+ }
164
+ },
165
+ {
166
+ "kind": "field",
167
+ "name": "variant",
168
+ "type": {
169
+ "text": "Variant"
170
+ },
171
+ "description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
172
+ "default": "'default'",
173
+ "attribute": "variant",
174
+ "reflects": true,
175
+ "inheritedFrom": {
176
+ "name": "AccordionButton",
177
+ "module": "components/accordionbutton/accordionbutton.component.js"
178
+ }
179
+ },
180
+ {
181
+ "kind": "field",
182
+ "name": "dataAriaLevel",
183
+ "type": {
184
+ "text": "number"
185
+ },
186
+ "description": "The aria level of the accordion component.",
187
+ "default": "3",
188
+ "attribute": "data-aria-level",
189
+ "reflects": true,
190
+ "inheritedFrom": {
191
+ "name": "AccordionButton",
192
+ "module": "components/accordionbutton/accordionbutton.component.js"
193
+ }
194
+ },
195
+ {
196
+ "kind": "field",
197
+ "name": "expanded",
198
+ "type": {
199
+ "text": "boolean"
200
+ },
201
+ "description": "The visibility of the accordion button.",
202
+ "default": "false",
203
+ "attribute": "expanded",
204
+ "reflects": true,
205
+ "inheritedFrom": {
206
+ "name": "AccordionButton",
207
+ "module": "components/accordionbutton/accordionbutton.component.js"
208
+ }
209
+ },
210
+ {
211
+ "kind": "field",
212
+ "name": "headerText",
213
+ "type": {
214
+ "text": "string | undefined"
215
+ },
216
+ "description": "The header text of the accordion item.",
217
+ "attribute": "header-text",
218
+ "reflects": true,
219
+ "inheritedFrom": {
220
+ "name": "AccordionButton",
221
+ "module": "components/accordionbutton/accordionbutton.component.js"
222
+ }
223
+ },
224
+ {
225
+ "kind": "field",
226
+ "name": "prefixIcon",
227
+ "type": {
228
+ "text": "IconNames | undefined"
229
+ },
230
+ "description": "The leading icon that is displayed before the header text.",
231
+ "attribute": "prefix-icon",
232
+ "inheritedFrom": {
233
+ "name": "AccordionButton",
234
+ "module": "components/accordionbutton/accordionbutton.component.js"
235
+ }
236
+ },
237
+ {
238
+ "kind": "method",
239
+ "name": "handleHeaderClick",
240
+ "privacy": "protected",
241
+ "return": {
242
+ "type": {
243
+ "text": "void"
244
+ }
245
+ },
246
+ "description": "Handles the click event of the header section.\nIf the accordion is disabled, it will not toggle the expanded state.\nIt will dispatch the `shown` event with the current expanded state.",
247
+ "inheritedFrom": {
248
+ "name": "AccordionButton",
249
+ "module": "components/accordionbutton/accordionbutton.component.js"
250
+ }
251
+ },
252
+ {
253
+ "kind": "method",
254
+ "name": "dispatchHeaderClickEvent",
255
+ "privacy": "private",
256
+ "return": {
257
+ "type": {
258
+ "text": "void"
259
+ }
260
+ },
261
+ "description": "Dispatches the `shown` event with the current expanded state.\nThe event is cancelable and bubbles.\nThe event detail contains the current expanded state.",
262
+ "inheritedFrom": {
263
+ "name": "AccordionButton",
264
+ "module": "components/accordionbutton/accordionbutton.component.js"
265
+ }
266
+ },
267
+ {
268
+ "kind": "method",
269
+ "name": "handleKeyDown",
270
+ "privacy": "private",
271
+ "return": {
272
+ "type": {
273
+ "text": "void"
274
+ }
275
+ },
276
+ "parameters": [
277
+ {
278
+ "name": "event",
279
+ "type": {
280
+ "text": "KeyboardEvent"
281
+ },
282
+ "description": "The KeyboardEvent fired."
283
+ }
284
+ ],
285
+ "description": "Handles the keydown event of the component.\nIf the key pressed is either Enter or Space, it calls the handleHeaderClick method.\nThis allows keyboard users to toggle the accordion button using these keys.",
286
+ "inheritedFrom": {
287
+ "name": "AccordionButton",
288
+ "module": "components/accordionbutton/accordionbutton.component.js"
289
+ }
290
+ },
291
+ {
292
+ "kind": "method",
293
+ "name": "renderIcon",
294
+ "privacy": "protected",
295
+ "return": {
296
+ "type": {
297
+ "text": "TemplateResult | typeof nothing"
298
+ }
299
+ },
300
+ "parameters": [
301
+ {
302
+ "name": "iconName",
303
+ "optional": true,
304
+ "type": {
305
+ "text": "IconNames"
306
+ }
307
+ }
308
+ ],
309
+ "inheritedFrom": {
310
+ "name": "AccordionButton",
311
+ "module": "components/accordionbutton/accordionbutton.component.js"
312
+ }
313
+ },
314
+ {
315
+ "kind": "method",
316
+ "name": "renderHeadingText",
317
+ "privacy": "protected",
318
+ "return": {
319
+ "type": {
320
+ "text": "TemplateResult | typeof nothing"
321
+ }
322
+ },
323
+ "inheritedFrom": {
324
+ "name": "AccordionButton",
325
+ "module": "components/accordionbutton/accordionbutton.component.js"
326
+ }
327
+ },
328
+ {
329
+ "kind": "method",
330
+ "name": "getArrowIconName",
331
+ "privacy": "protected",
332
+ "return": {
333
+ "type": {
334
+ "text": ""
335
+ }
336
+ },
337
+ "description": "Returns the icon name based on the expanded state.\nIf the accordion button is disabled, it always returns the arrow down icon.\nOtherwise, it returns the arrow up icon if the accordion button is expanded, otherwise the arrow down icon.",
338
+ "inheritedFrom": {
339
+ "name": "AccordionButton",
340
+ "module": "components/accordionbutton/accordionbutton.component.js"
341
+ }
342
+ },
343
+ {
344
+ "kind": "method",
345
+ "name": "renderBody",
346
+ "privacy": "protected",
347
+ "return": {
348
+ "type": {
349
+ "text": "TemplateResult | typeof nothing"
350
+ }
351
+ },
352
+ "inheritedFrom": {
353
+ "name": "AccordionButton",
354
+ "module": "components/accordionbutton/accordionbutton.component.js"
355
+ }
356
+ }
357
+ ],
358
+ "events": [
359
+ {
360
+ "description": "(React: onShown) This event is triggered when the accordion is expanded.",
361
+ "name": "shown",
362
+ "reactName": "onShown",
363
+ "inheritedFrom": {
364
+ "name": "AccordionButton",
365
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
366
+ }
367
+ }
368
+ ],
369
+ "superclass": {
370
+ "name": "AccordionButton",
371
+ "module": "/src/components/accordionbutton/accordionbutton.component"
372
+ },
373
+ "tagName": "mdc-accordion",
374
+ "jsDoc": "/**\n * An accordion contains a header and body section with a focusable heading that can be expanded or collapsed.\n *\n * The header section contains:\n * - Prefix Icon\n * - Header Text\n * - Leading Slot - Contains the leading controls of the accordion on the header section. This will be placed on the leading side, after the header text.\n * - Trailing Slot - Contains the trailing controls of the accordion on the header section. This will be placed on the trailing side, before the expand/collapse button.\n *\n * The body section contains:\n * - Default slot - User can place any content inside the body section.\n *\n * The accordion can be expanded or collapsed. The visibility of the body section can be controlled by `expanded` attribute. <br/>\n * There are two types of variants based on that the border styling of the accordion gets reflected. <br/>\n * There are two sizes of accordion, one is small and the other is large.\n * Small size has a padding of 1rem (16px) and large size has a padding of 1.5rem (24px) for the body section of accordion.\n *\n * By default, the header text in the accordion heading is of H3 with an aria-level of '3'.\n * If this accordion is placed on any other level in the entire webpage, then do adjust the aria-level number based on that.\n *\n * An accordion can be disabled, and when it's disabled, the header section will not be clickable.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If an accordion is expanded by default, then the screen reader might loose focus when toggling the visibilty of the accordion.\n *\n * @tagname mdc-accordion\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @slot leading-controls - The leading controls slot of the accordion on the header section.\n * @slot trailing-controls - The trailing controls slot of the accordion on the header section.\n * @slot default - The default slot contains the body section of the accordion. User can place anything inside this body slot.\n *\n * @event shown - (React: onShown) This event is triggered when the accordion is expanded.\n *\n * @cssproperty --mdc-accordionbutton-border-color - The border color of the accordion.\n * @cssproperty --mdc-accordionbutton-hover-color - The hover color of the accordion.\n * @cssproperty --mdc-accordionbutton-active-color - The active color of the accordion.\n * @cssproperty --mdc-accordionbutton-disabled-color - The disabled color of the accordion.\n *\n * @csspart header-section - The header section of the accordion.\n * @csspart leading-header - The leading header of the accordion.\n * @csspart trailing-header - The trailing header of the accordion.\n * @csspart trailing-header__button - The trailing header button of the accordion.\n * @csspart body-section - The body section of the accordion.\n */",
375
+ "customElement": true,
376
+ "attributes": [
377
+ {
378
+ "name": "disabled",
379
+ "type": {
380
+ "text": "boolean | undefined"
381
+ },
382
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
383
+ "default": "undefined",
384
+ "fieldName": "disabled",
385
+ "inheritedFrom": {
386
+ "name": "DisabledMixin",
387
+ "module": "src/utils/mixins/DisabledMixin.ts"
388
+ }
389
+ },
390
+ {
391
+ "name": "size",
392
+ "type": {
393
+ "text": "Size"
394
+ },
395
+ "description": "The size of the accordion item.",
396
+ "default": "'small'",
397
+ "fieldName": "size",
398
+ "inheritedFrom": {
399
+ "name": "AccordionButton",
400
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
401
+ }
402
+ },
403
+ {
404
+ "name": "variant",
405
+ "type": {
406
+ "text": "Variant"
407
+ },
408
+ "description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
409
+ "default": "'default'",
410
+ "fieldName": "variant",
411
+ "inheritedFrom": {
412
+ "name": "AccordionButton",
413
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
414
+ }
415
+ },
416
+ {
417
+ "name": "data-aria-level",
418
+ "type": {
419
+ "text": "number"
420
+ },
421
+ "description": "The aria level of the accordion component.",
422
+ "default": "3",
423
+ "fieldName": "dataAriaLevel",
424
+ "inheritedFrom": {
425
+ "name": "AccordionButton",
426
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
427
+ }
428
+ },
429
+ {
430
+ "name": "expanded",
431
+ "type": {
432
+ "text": "boolean"
433
+ },
434
+ "description": "The visibility of the accordion button.",
435
+ "default": "false",
436
+ "fieldName": "expanded",
437
+ "inheritedFrom": {
438
+ "name": "AccordionButton",
439
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
440
+ }
441
+ },
442
+ {
443
+ "name": "header-text",
444
+ "type": {
445
+ "text": "string | undefined"
446
+ },
447
+ "description": "The header text of the accordion item.",
448
+ "fieldName": "headerText",
449
+ "inheritedFrom": {
450
+ "name": "AccordionButton",
451
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
452
+ }
453
+ },
454
+ {
455
+ "name": "prefix-icon",
456
+ "type": {
457
+ "text": "IconNames | undefined"
458
+ },
459
+ "description": "The leading icon that is displayed before the header text.",
460
+ "fieldName": "prefixIcon",
461
+ "inheritedFrom": {
462
+ "name": "AccordionButton",
463
+ "module": "src/components/accordionbutton/accordionbutton.component.ts"
464
+ }
465
+ }
466
+ ]
467
+ }
468
+ ],
469
+ "exports": [
470
+ {
471
+ "kind": "js",
472
+ "name": "default",
473
+ "declaration": {
474
+ "name": "Accordion",
475
+ "module": "components/accordion/accordion.component.js"
476
+ }
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "kind": "javascript-module",
482
+ "path": "components/accordionbutton/accordionbutton.component.js",
483
+ "declarations": [
484
+ {
485
+ "kind": "class",
486
+ "description": "An accordion button contains a header and body section with optional slots inside the heading which are focusable.\n\nThe header section contains:\n- Prefix Icon\n- Header Text\n\nThe body section contains:\n- Default slot - User can place any content inside the body section.\n\nThe accordion button can be expanded or collapsed. The visibility of the body section can be controlled by `expanded` attribute. <br/>\nThere are two types of variants based on that the border styling of the accordion gets reflected. <br/>\nThere are two sizes of accordion, one is small and the other is large.\nSmall size has a padding of 1rem (16px) and large size has a padding of 1.5rem (24px) for the body section of accordion.\n\nBy default, the header text in the accordion heading is of H3 with an aria-level of '3'.\nIf this accordion is placed on any other level in the entire webpage, then do adjust the aria-level number based on that.\n\nAn accordion can be disabled, and when it's disabled, the header section will not be clickable.\n\nIf you do need any controls on your accordion heading, then it's advised to use `accordion` component.\n\nIf an accordion button is expanded by default, then the screen reader might loose focus when toggling the visibilty of the accordion button.",
487
+ "name": "AccordionButton",
488
+ "cssProperties": [
489
+ {
490
+ "description": "The border color of the accordion button.",
491
+ "name": "--mdc-accordionbutton-border-color"
492
+ },
493
+ {
494
+ "description": "The hover color of the accordion button.",
495
+ "name": "--mdc-accordionbutton-hover-color"
496
+ },
497
+ {
498
+ "description": "The active color of the accordion button.",
499
+ "name": "--mdc-accordionbutton-active-color"
500
+ },
501
+ {
502
+ "description": "The disabled color of the accordion button.",
503
+ "name": "--mdc-accordionbutton-disabled-color"
504
+ }
505
+ ],
506
+ "cssParts": [
507
+ {
508
+ "description": "The header section of the accordion button.",
509
+ "name": "header-section"
510
+ },
511
+ {
512
+ "description": "The header button section of the accordion button.",
513
+ "name": "header-button-section"
514
+ },
515
+ {
516
+ "description": "The leading header of the accordion button.",
517
+ "name": "leading-header"
518
+ },
519
+ {
520
+ "description": "The trailing header of the accordion button.",
521
+ "name": "trailing-header"
522
+ },
523
+ {
524
+ "description": "The trailing header icon of the accordion button.",
525
+ "name": "trailing-header__icon"
526
+ },
527
+ {
528
+ "description": "The body section of the accordion button.",
529
+ "name": "body-section"
530
+ }
531
+ ],
532
+ "slots": [
533
+ {
534
+ "description": "The default slot contains the body section of the accordion. User can place anything inside this body slot.",
535
+ "name": "default"
536
+ }
537
+ ],
538
+ "members": [
539
+ {
540
+ "kind": "field",
541
+ "name": "size",
542
+ "type": {
543
+ "text": "Size"
544
+ },
545
+ "description": "The size of the accordion item.",
546
+ "default": "'small'",
547
+ "attribute": "size",
548
+ "reflects": true
549
+ },
550
+ {
551
+ "kind": "field",
552
+ "name": "variant",
553
+ "type": {
554
+ "text": "Variant"
555
+ },
556
+ "description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
557
+ "default": "'default'",
558
+ "attribute": "variant",
559
+ "reflects": true
560
+ },
561
+ {
562
+ "kind": "field",
563
+ "name": "dataAriaLevel",
564
+ "type": {
565
+ "text": "number"
566
+ },
567
+ "description": "The aria level of the accordion component.",
568
+ "default": "3",
569
+ "attribute": "data-aria-level",
570
+ "reflects": true
571
+ },
572
+ {
573
+ "kind": "field",
574
+ "name": "expanded",
575
+ "type": {
576
+ "text": "boolean"
577
+ },
578
+ "description": "The visibility of the accordion button.",
579
+ "default": "false",
580
+ "attribute": "expanded",
581
+ "reflects": true
582
+ },
583
+ {
584
+ "kind": "field",
585
+ "name": "headerText",
586
+ "type": {
587
+ "text": "string | undefined"
588
+ },
589
+ "description": "The header text of the accordion item.",
590
+ "attribute": "header-text",
591
+ "reflects": true
592
+ },
593
+ {
594
+ "kind": "field",
595
+ "name": "prefixIcon",
596
+ "type": {
597
+ "text": "IconNames | undefined"
598
+ },
599
+ "description": "The leading icon that is displayed before the header text.",
600
+ "attribute": "prefix-icon"
601
+ },
602
+ {
603
+ "kind": "method",
604
+ "name": "handleHeaderClick",
605
+ "privacy": "protected",
606
+ "return": {
607
+ "type": {
608
+ "text": "void"
609
+ }
610
+ },
611
+ "description": "Handles the click event of the header section.\nIf the accordion is disabled, it will not toggle the expanded state.\nIt will dispatch the `shown` event with the current expanded state."
612
+ },
613
+ {
614
+ "kind": "method",
615
+ "name": "dispatchHeaderClickEvent",
616
+ "privacy": "private",
617
+ "return": {
618
+ "type": {
619
+ "text": "void"
620
+ }
621
+ },
622
+ "description": "Dispatches the `shown` event with the current expanded state.\nThe event is cancelable and bubbles.\nThe event detail contains the current expanded state."
623
+ },
624
+ {
625
+ "kind": "method",
626
+ "name": "handleKeyDown",
627
+ "privacy": "private",
628
+ "return": {
629
+ "type": {
630
+ "text": "void"
631
+ }
632
+ },
633
+ "parameters": [
634
+ {
635
+ "name": "event",
636
+ "type": {
637
+ "text": "KeyboardEvent"
638
+ },
639
+ "description": "The KeyboardEvent fired."
640
+ }
641
+ ],
642
+ "description": "Handles the keydown event of the component.\nIf the key pressed is either Enter or Space, it calls the handleHeaderClick method.\nThis allows keyboard users to toggle the accordion button using these keys."
643
+ },
644
+ {
645
+ "kind": "method",
646
+ "name": "renderIcon",
647
+ "privacy": "protected",
648
+ "return": {
649
+ "type": {
650
+ "text": "TemplateResult | typeof nothing"
651
+ }
652
+ },
653
+ "parameters": [
654
+ {
655
+ "name": "iconName",
656
+ "optional": true,
657
+ "type": {
658
+ "text": "IconNames"
659
+ }
660
+ }
661
+ ]
662
+ },
663
+ {
664
+ "kind": "method",
665
+ "name": "renderHeadingText",
666
+ "privacy": "protected",
667
+ "return": {
668
+ "type": {
669
+ "text": "TemplateResult | typeof nothing"
670
+ }
671
+ }
672
+ },
673
+ {
674
+ "kind": "method",
675
+ "name": "renderHeader",
676
+ "privacy": "protected",
677
+ "return": {
678
+ "type": {
679
+ "text": "TemplateResult"
680
+ }
681
+ }
682
+ },
683
+ {
684
+ "kind": "method",
685
+ "name": "getArrowIconName",
686
+ "privacy": "protected",
687
+ "return": {
688
+ "type": {
689
+ "text": ""
690
+ }
691
+ },
692
+ "description": "Returns the icon name based on the expanded state.\nIf the accordion button is disabled, it always returns the arrow down icon.\nOtherwise, it returns the arrow up icon if the accordion button is expanded, otherwise the arrow down icon."
693
+ },
694
+ {
695
+ "kind": "method",
696
+ "name": "renderBody",
697
+ "privacy": "protected",
698
+ "return": {
699
+ "type": {
700
+ "text": "TemplateResult | typeof nothing"
701
+ }
702
+ }
703
+ },
704
+ {
705
+ "kind": "field",
706
+ "name": "disabled",
707
+ "type": {
708
+ "text": "boolean | undefined"
709
+ },
710
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
711
+ "default": "undefined",
712
+ "attribute": "disabled",
713
+ "reflects": true,
714
+ "inheritedFrom": {
715
+ "name": "DisabledMixin",
716
+ "module": "utils/mixins/DisabledMixin.js"
717
+ }
718
+ }
719
+ ],
720
+ "events": [
721
+ {
722
+ "description": "(React: onShown) This event is triggered when the accordion button is expanded.",
723
+ "name": "shown",
724
+ "reactName": "onShown"
725
+ }
726
+ ],
727
+ "attributes": [
728
+ {
729
+ "name": "size",
730
+ "type": {
731
+ "text": "Size"
732
+ },
733
+ "description": "The size of the accordion item.",
734
+ "default": "'small'",
735
+ "fieldName": "size"
736
+ },
737
+ {
738
+ "name": "variant",
739
+ "type": {
740
+ "text": "Variant"
741
+ },
742
+ "description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
743
+ "default": "'default'",
744
+ "fieldName": "variant"
745
+ },
746
+ {
747
+ "name": "data-aria-level",
748
+ "type": {
749
+ "text": "number"
750
+ },
751
+ "description": "The aria level of the accordion component.",
752
+ "default": "3",
753
+ "fieldName": "dataAriaLevel"
754
+ },
755
+ {
756
+ "name": "expanded",
757
+ "type": {
758
+ "text": "boolean"
759
+ },
760
+ "description": "The visibility of the accordion button.",
761
+ "default": "false",
762
+ "fieldName": "expanded"
763
+ },
764
+ {
765
+ "name": "header-text",
766
+ "type": {
767
+ "text": "string | undefined"
768
+ },
769
+ "description": "The header text of the accordion item.",
770
+ "fieldName": "headerText"
771
+ },
772
+ {
773
+ "name": "prefix-icon",
774
+ "type": {
775
+ "text": "IconNames | undefined"
776
+ },
777
+ "description": "The leading icon that is displayed before the header text.",
778
+ "fieldName": "prefixIcon"
779
+ },
780
+ {
781
+ "name": "disabled",
782
+ "type": {
783
+ "text": "boolean | undefined"
784
+ },
785
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
786
+ "default": "undefined",
787
+ "fieldName": "disabled",
788
+ "inheritedFrom": {
789
+ "name": "DisabledMixin",
790
+ "module": "src/utils/mixins/DisabledMixin.ts"
791
+ }
792
+ }
793
+ ],
794
+ "mixins": [
795
+ {
796
+ "name": "DisabledMixin",
797
+ "module": "/src/utils/mixins/DisabledMixin"
798
+ }
799
+ ],
800
+ "superclass": {
801
+ "name": "Component",
802
+ "module": "/src/models"
803
+ },
804
+ "tagName": "mdc-accordionbutton",
805
+ "jsDoc": "/**\n * An accordion button contains a header and body section with optional slots inside the heading which are focusable.\n *\n * The header section contains:\n * - Prefix Icon\n * - Header Text\n *\n * The body section contains:\n * - Default slot - User can place any content inside the body section.\n *\n * The accordion button can be expanded or collapsed. The visibility of the body section can be controlled by `expanded` attribute. <br/>\n * There are two types of variants based on that the border styling of the accordion gets reflected. <br/>\n * There are two sizes of accordion, one is small and the other is large.\n * Small size has a padding of 1rem (16px) and large size has a padding of 1.5rem (24px) for the body section of accordion.\n *\n * By default, the header text in the accordion heading is of H3 with an aria-level of '3'.\n * If this accordion is placed on any other level in the entire webpage, then do adjust the aria-level number based on that.\n *\n * An accordion can be disabled, and when it's disabled, the header section will not be clickable.\n *\n * If you do need any controls on your accordion heading, then it's advised to use `accordion` component.\n *\n * If an accordion button is expanded by default, then the screen reader might loose focus when toggling the visibilty of the accordion button.\n *\n * @tagname mdc-accordionbutton\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @slot default - The default slot contains the body section of the accordion. User can place anything inside this body slot.\n *\n * @event shown - (React: onShown) This event is triggered when the accordion button is expanded.\n *\n * @cssproperty --mdc-accordionbutton-border-color - The border color of the accordion button.\n * @cssproperty --mdc-accordionbutton-hover-color - The hover color of the accordion button.\n * @cssproperty --mdc-accordionbutton-active-color - The active color of the accordion button.\n * @cssproperty --mdc-accordionbutton-disabled-color - The disabled color of the accordion button.\n *\n * @csspart header-section - The header section of the accordion button.\n * @csspart header-button-section - The header button section of the accordion button.\n * @csspart leading-header - The leading header of the accordion button.\n * @csspart trailing-header - The trailing header of the accordion button.\n * @csspart trailing-header__icon - The trailing header icon of the accordion button.\n * @csspart body-section - The body section of the accordion button.\n */",
806
+ "customElement": true
807
+ }
808
+ ],
809
+ "exports": [
810
+ {
811
+ "kind": "js",
812
+ "name": "default",
813
+ "declaration": {
814
+ "name": "AccordionButton",
815
+ "module": "components/accordionbutton/accordionbutton.component.js"
816
+ }
817
+ }
818
+ ]
819
+ },
820
+ {
821
+ "kind": "javascript-module",
822
+ "path": "components/accordiongroup/accordiongroup.component.js",
823
+ "declarations": [
824
+ {
825
+ "kind": "class",
826
+ "description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
827
+ "name": "AccordionGroup",
828
+ "cssProperties": [
829
+ {
830
+ "description": "The border color of the entire accordiongroup",
831
+ "name": "--mdc-accordiongroup-border-color"
832
+ }
833
+ ],
834
+ "slots": [
835
+ {
836
+ "description": "The default slot can contain the `accordion` or `accordionbutton` components.",
837
+ "name": "default"
838
+ }
839
+ ],
840
+ "members": [
841
+ {
842
+ "kind": "field",
843
+ "name": "size",
844
+ "type": {
845
+ "text": "Size"
846
+ },
847
+ "description": "The size of the accordion item.",
848
+ "default": "'small'",
849
+ "attribute": "size",
850
+ "reflects": true
851
+ },
852
+ {
853
+ "kind": "field",
854
+ "name": "variant",
855
+ "type": {
856
+ "text": "Variant"
857
+ },
858
+ "description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
859
+ "default": "'stacked'",
860
+ "attribute": "variant",
861
+ "reflects": true
862
+ },
863
+ {
864
+ "kind": "field",
865
+ "name": "allowMultiple",
866
+ "type": {
867
+ "text": "boolean"
868
+ },
869
+ "default": "false",
870
+ "description": "If true, multiple accordion items can be visible at the same time.",
871
+ "attribute": "allow-multiple",
872
+ "reflects": true
873
+ },
874
+ {
875
+ "kind": "method",
876
+ "name": "handleAccordionExpanded",
877
+ "privacy": "private",
878
+ "return": {
879
+ "type": {
880
+ "text": "void"
881
+ }
882
+ },
883
+ "parameters": [
884
+ {
885
+ "name": "event",
886
+ "type": {
887
+ "text": "Event"
888
+ },
889
+ "description": "The event object from the 'shown' event."
890
+ }
891
+ ],
892
+ "description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
893
+ },
894
+ {
895
+ "kind": "method",
896
+ "name": "setChildrenAccordionAttributes",
897
+ "privacy": "private",
898
+ "return": {
899
+ "type": {
900
+ "text": "void"
901
+ }
902
+ },
903
+ "parameters": [
904
+ {
905
+ "name": "attributeName",
906
+ "type": {
907
+ "text": "string"
908
+ },
909
+ "description": "The name of the attribute to set."
910
+ },
911
+ {
912
+ "name": "attributeValue",
913
+ "type": {
914
+ "text": "string"
915
+ },
916
+ "description": "The value to set the attribute to."
917
+ }
918
+ ],
919
+ "description": "Sets the given attribute on all child accordion or accordionbutton components."
920
+ }
921
+ ],
922
+ "attributes": [
923
+ {
924
+ "name": "size",
925
+ "type": {
926
+ "text": "Size"
927
+ },
928
+ "description": "The size of the accordion item.",
929
+ "default": "'small'",
930
+ "fieldName": "size"
931
+ },
932
+ {
933
+ "name": "variant",
934
+ "type": {
935
+ "text": "Variant"
936
+ },
937
+ "description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
938
+ "default": "'stacked'",
939
+ "fieldName": "variant"
940
+ },
941
+ {
942
+ "name": "allow-multiple",
943
+ "type": {
944
+ "text": "boolean"
945
+ },
946
+ "default": "false",
947
+ "description": "If true, multiple accordion items can be visible at the same time.",
948
+ "fieldName": "allowMultiple"
949
+ }
950
+ ],
951
+ "superclass": {
952
+ "name": "Component",
953
+ "module": "/src/models"
954
+ },
955
+ "tagName": "mdc-accordiongroup",
956
+ "jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
957
+ "customElement": true
958
+ }
959
+ ],
960
+ "exports": [
961
+ {
962
+ "kind": "js",
963
+ "name": "default",
964
+ "declaration": {
965
+ "name": "AccordionGroup",
966
+ "module": "components/accordiongroup/accordiongroup.component.js"
967
+ }
968
+ }
969
+ ]
970
+ },
5
971
  {
6
972
  "kind": "javascript-module",
7
973
  "path": "components/alertchip/alertchip.component.js",