@momentum-design/components 0.28.8 → 0.28.10

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 (36) hide show
  1. package/dist/browser/index.js +1032 -926
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/checkbox/checkbox.component.js +2 -0
  4. package/dist/components/input/input.component.d.ts +1 -0
  5. package/dist/components/input/input.component.js +3 -1
  6. package/dist/components/list/index.d.ts +8 -0
  7. package/dist/components/list/index.js +5 -0
  8. package/dist/components/list/list.component.d.ts +64 -0
  9. package/dist/components/list/list.component.js +138 -0
  10. package/dist/components/list/list.constants.d.ts +9 -0
  11. package/dist/components/list/list.constants.js +10 -0
  12. package/dist/components/list/list.styles.d.ts +2 -0
  13. package/dist/components/list/list.styles.js +7 -0
  14. package/dist/components/listitem/index.d.ts +8 -0
  15. package/dist/components/listitem/index.js +5 -0
  16. package/dist/components/listitem/listitem.component.d.ts +90 -0
  17. package/dist/components/listitem/listitem.component.js +153 -0
  18. package/dist/components/listitem/listitem.constants.d.ts +10 -0
  19. package/dist/components/listitem/listitem.constants.js +11 -0
  20. package/dist/components/listitem/listitem.styles.d.ts +2 -0
  21. package/dist/components/listitem/listitem.styles.js +70 -0
  22. package/dist/components/listitem/listitem.types.d.ts +4 -0
  23. package/dist/components/listitem/listitem.types.js +1 -0
  24. package/dist/components/radio/radio.component.js +2 -0
  25. package/dist/components/toggle/toggle.component.js +2 -0
  26. package/dist/custom-elements.json +700 -166
  27. package/dist/index.d.ts +19 -17
  28. package/dist/index.js +18 -16
  29. package/dist/react/index.d.ts +2 -0
  30. package/dist/react/index.js +2 -0
  31. package/dist/react/list/index.d.ts +12 -0
  32. package/dist/react/list/index.js +21 -0
  33. package/dist/react/listitem/index.d.ts +34 -0
  34. package/dist/react/listitem/index.js +43 -0
  35. package/dist/utils/mixins/FormInternalsMixin.js +0 -2
  36. package/package.json +1 -1
@@ -546,15 +546,6 @@
546
546
  "module": "utils/mixins/FormInternalsMixin.js"
547
547
  }
548
548
  },
549
- {
550
- "kind": "field",
551
- "name": "id",
552
- "default": "`mdc-input-${uuidv4()}`",
553
- "inheritedFrom": {
554
- "name": "FormInternalsMixin",
555
- "module": "utils/mixins/FormInternalsMixin.js"
556
- }
557
- },
558
549
  {
559
550
  "kind": "field",
560
551
  "name": "tabIndex",
@@ -1646,15 +1637,6 @@
1646
1637
  "module": "utils/mixins/FormInternalsMixin.js"
1647
1638
  }
1648
1639
  },
1649
- {
1650
- "kind": "field",
1651
- "name": "id",
1652
- "default": "`mdc-input-${uuidv4()}`",
1653
- "inheritedFrom": {
1654
- "name": "FormInternalsMixin",
1655
- "module": "utils/mixins/FormInternalsMixin.js"
1656
- }
1657
- },
1658
1640
  {
1659
1641
  "kind": "field",
1660
1642
  "name": "tabIndex",
@@ -2373,15 +2355,6 @@
2373
2355
  "module": "utils/mixins/FormInternalsMixin.js"
2374
2356
  }
2375
2357
  },
2376
- {
2377
- "kind": "field",
2378
- "name": "id",
2379
- "default": "`mdc-input-${uuidv4()}`",
2380
- "inheritedFrom": {
2381
- "name": "FormInternalsMixin",
2382
- "module": "utils/mixins/FormInternalsMixin.js"
2383
- }
2384
- },
2385
2358
  {
2386
2359
  "kind": "field",
2387
2360
  "name": "tabIndex",
@@ -2759,6 +2732,20 @@
2759
2732
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
2760
2733
  }
2761
2734
  },
2735
+ {
2736
+ "kind": "field",
2737
+ "name": "id",
2738
+ "type": {
2739
+ "text": "string"
2740
+ },
2741
+ "default": "`mdc-input-${uuidv4()}`",
2742
+ "description": "The unique id of the input field. It is used to link the input field with the label.",
2743
+ "attribute": "id",
2744
+ "inheritedFrom": {
2745
+ "name": "FormfieldWrapper",
2746
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
2747
+ }
2748
+ },
2762
2749
  {
2763
2750
  "kind": "field",
2764
2751
  "name": "name",
@@ -2859,20 +2846,6 @@
2859
2846
  "module": "utils/mixins/FormInternalsMixin.js"
2860
2847
  }
2861
2848
  },
2862
- {
2863
- "kind": "field",
2864
- "name": "id",
2865
- "type": {
2866
- "text": "string"
2867
- },
2868
- "default": "`mdc-input-${uuidv4()}`",
2869
- "description": "The unique id of the input field. It is used to link the input field with the label.",
2870
- "attribute": "id",
2871
- "inheritedFrom": {
2872
- "name": "FormfieldWrapper",
2873
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
2874
- }
2875
- },
2876
2849
  {
2877
2850
  "kind": "field",
2878
2851
  "name": "dataAriaLabel",
@@ -4774,6 +4747,20 @@
4774
4747
  }
4775
4748
  }
4776
4749
  },
4750
+ {
4751
+ "kind": "field",
4752
+ "name": "id",
4753
+ "type": {
4754
+ "text": "string"
4755
+ },
4756
+ "default": "`mdc-input-${uuidv4()}`",
4757
+ "description": "The unique id of the input field. It is used to link the input field with the label.",
4758
+ "attribute": "id",
4759
+ "inheritedFrom": {
4760
+ "name": "FormfieldWrapper",
4761
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
4762
+ }
4763
+ },
4777
4764
  {
4778
4765
  "kind": "field",
4779
4766
  "name": "name",
@@ -4874,20 +4861,6 @@
4874
4861
  "module": "utils/mixins/FormInternalsMixin.js"
4875
4862
  }
4876
4863
  },
4877
- {
4878
- "kind": "field",
4879
- "name": "id",
4880
- "type": {
4881
- "text": "string"
4882
- },
4883
- "default": "`mdc-input-${uuidv4()}`",
4884
- "description": "The unique id of the input field. It is used to link the input field with the label.",
4885
- "attribute": "id",
4886
- "inheritedFrom": {
4887
- "name": "FormfieldWrapper",
4888
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
4889
- }
4890
- },
4891
4864
  {
4892
4865
  "kind": "field",
4893
4866
  "name": "dataAriaLabel",
@@ -5423,87 +5396,620 @@
5423
5396
  "name": "--mdc-link-inverted-color-active"
5424
5397
  },
5425
5398
  {
5426
- "description": "Text and icon color of the inverted link in disabled state",
5427
- "name": "--mdc-link-inverted-color-disabled"
5399
+ "description": "Text and icon color of the inverted link in disabled state",
5400
+ "name": "--mdc-link-inverted-color-disabled"
5401
+ },
5402
+ {
5403
+ "description": "Text and icon color of the inverted link in hover state",
5404
+ "name": "--mdc-link-inverted-color-hover"
5405
+ },
5406
+ {
5407
+ "description": "Text and icon color of the inverted link in normal state",
5408
+ "name": "--mdc-link-inverted-color-normal"
5409
+ },
5410
+ {
5411
+ "description": "Text decoration of the link in disabled state for all variants",
5412
+ "name": "--mdc-link-text-decoration-disabled"
5413
+ }
5414
+ ],
5415
+ "members": [
5416
+ {
5417
+ "kind": "field",
5418
+ "name": "inline",
5419
+ "type": {
5420
+ "text": "boolean"
5421
+ },
5422
+ "description": "The link can be inline or standalone.",
5423
+ "default": "false",
5424
+ "attribute": "inline",
5425
+ "reflects": true
5426
+ },
5427
+ {
5428
+ "kind": "field",
5429
+ "name": "inverted",
5430
+ "type": {
5431
+ "text": "boolean"
5432
+ },
5433
+ "description": "The link color can be inverted by setting the inverted attribute to true.",
5434
+ "default": "false",
5435
+ "attribute": "inverted",
5436
+ "reflects": true
5437
+ },
5438
+ {
5439
+ "kind": "field",
5440
+ "name": "size",
5441
+ "type": {
5442
+ "text": "LinkSize"
5443
+ },
5444
+ "description": "Size of the link.\nAcceptable values include:\n\n- 'small'\n- 'midsize'\n- 'large'",
5445
+ "default": "large",
5446
+ "attribute": "size",
5447
+ "reflects": true
5448
+ },
5449
+ {
5450
+ "kind": "method",
5451
+ "name": "getIconSize",
5452
+ "privacy": "private",
5453
+ "return": {
5454
+ "type": {
5455
+ "text": ""
5456
+ }
5457
+ },
5458
+ "description": "Method to get the size of the trailing icon based on the link size."
5459
+ },
5460
+ {
5461
+ "kind": "method",
5462
+ "name": "setDisabled",
5463
+ "privacy": "private",
5464
+ "parameters": [
5465
+ {
5466
+ "name": "disabled",
5467
+ "type": {
5468
+ "text": "boolean"
5469
+ },
5470
+ "description": "The disabled state of icon"
5471
+ }
5472
+ ],
5473
+ "description": "Updates the tabindex of the host element to disable or enable the link.\nWhen disabled, the link is not focusable or clickable, and tabindex is set to -1\nand aria-disabled attribute is set to true\nWhen link is not disabled, the previous tabindex of the host element is restored\nand aria-disabled attribute is removed."
5474
+ },
5475
+ {
5476
+ "kind": "method",
5477
+ "name": "updateTrailingIcon",
5478
+ "privacy": "private",
5479
+ "description": "Method to create and append trailing icon to the first anchor element in the slot.\nIf no icon name is provided, no icon will be rendered."
5480
+ },
5481
+ {
5482
+ "kind": "field",
5483
+ "name": "disabled",
5484
+ "type": {
5485
+ "text": "boolean"
5486
+ },
5487
+ "default": "false",
5488
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
5489
+ "attribute": "disabled",
5490
+ "reflects": true,
5491
+ "inheritedFrom": {
5492
+ "name": "DisabledMixin",
5493
+ "module": "utils/mixins/DisabledMixin.js"
5494
+ }
5495
+ },
5496
+ {
5497
+ "kind": "field",
5498
+ "name": "iconName",
5499
+ "type": {
5500
+ "text": "IconNames | undefined"
5501
+ },
5502
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
5503
+ "attribute": "icon-name",
5504
+ "inheritedFrom": {
5505
+ "name": "IconNameMixin",
5506
+ "module": "utils/mixins/IconNameMixin.js"
5507
+ }
5508
+ }
5509
+ ],
5510
+ "attributes": [
5511
+ {
5512
+ "name": "inline",
5513
+ "type": {
5514
+ "text": "boolean"
5515
+ },
5516
+ "description": "The link can be inline or standalone.",
5517
+ "default": "false",
5518
+ "fieldName": "inline"
5519
+ },
5520
+ {
5521
+ "name": "inverted",
5522
+ "type": {
5523
+ "text": "boolean"
5524
+ },
5525
+ "description": "The link color can be inverted by setting the inverted attribute to true.",
5526
+ "default": "false",
5527
+ "fieldName": "inverted"
5528
+ },
5529
+ {
5530
+ "name": "size",
5531
+ "type": {
5532
+ "text": "LinkSize"
5533
+ },
5534
+ "description": "Size of the link.\nAcceptable values include:\n\n- 'small'\n- 'midsize'\n- 'large'",
5535
+ "default": "large",
5536
+ "fieldName": "size"
5537
+ },
5538
+ {
5539
+ "name": "disabled",
5540
+ "type": {
5541
+ "text": "boolean"
5542
+ },
5543
+ "default": "false",
5544
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
5545
+ "fieldName": "disabled",
5546
+ "inheritedFrom": {
5547
+ "name": "DisabledMixin",
5548
+ "module": "src/utils/mixins/DisabledMixin.ts"
5549
+ }
5550
+ },
5551
+ {
5552
+ "name": "icon-name",
5553
+ "type": {
5554
+ "text": "IconNames | undefined"
5555
+ },
5556
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
5557
+ "fieldName": "iconName",
5558
+ "inheritedFrom": {
5559
+ "name": "IconNameMixin",
5560
+ "module": "src/utils/mixins/IconNameMixin.ts"
5561
+ }
5562
+ }
5563
+ ],
5564
+ "mixins": [
5565
+ {
5566
+ "name": "DisabledMixin",
5567
+ "module": "/src/utils/mixins/DisabledMixin"
5568
+ },
5569
+ {
5570
+ "name": "IconNameMixin",
5571
+ "module": "/src/utils/mixins/IconNameMixin"
5572
+ }
5573
+ ],
5574
+ "superclass": {
5575
+ "name": "Component",
5576
+ "module": "/src/models"
5577
+ },
5578
+ "tagName": "mdc-link",
5579
+ "jsDoc": "/**\n * `mdc-link` component can be used to navigate to a different page\n * within the application or to an external site. It can be used to link to\n * emails or phone numbers.\n *\n * The `children` of the link component is expected to be an anchor element\n * containing the text, href, and other attributes.\n *\n * For `icon`, the `mdc-icon` component is used to render the icon.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-link\n *\n * @cssproperty --mdc-link-border-radius - Border radius of the link\n * @cssproperty --mdc-link-color-active - Text and icon color of the link in active state\n * @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state\n * @cssproperty --mdc-link-color-hover - Text and icon color of the link in hover state\n * @cssproperty --mdc-link-color-normal - Text and icon color of the link in normal state\n * @cssproperty --mdc-link-icon-margin-left - Gap between the text and icon (only applicable when an icon is set)\n * @cssproperty --mdc-link-inverted-color-active - Text and icon color of the inverted link in active state\n * @cssproperty --mdc-link-inverted-color-disabled - Text and icon color of the inverted link in disabled state\n * @cssproperty --mdc-link-inverted-color-hover - Text and icon color of the inverted link in hover state\n * @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state\n * @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants\n */",
5580
+ "customElement": true
5581
+ }
5582
+ ],
5583
+ "exports": [
5584
+ {
5585
+ "kind": "js",
5586
+ "name": "default",
5587
+ "declaration": {
5588
+ "name": "Link",
5589
+ "module": "components/link/link.component.js"
5590
+ }
5591
+ }
5592
+ ]
5593
+ },
5594
+ {
5595
+ "kind": "javascript-module",
5596
+ "path": "components/list/list.component.js",
5597
+ "declarations": [
5598
+ {
5599
+ "kind": "class",
5600
+ "description": "mdc-list component is used to display a group of list items. It is used as a container to wrap other list items.",
5601
+ "name": "List",
5602
+ "slots": [
5603
+ {
5604
+ "description": "This is a default/unnamed slot",
5605
+ "name": "default"
5606
+ }
5607
+ ],
5608
+ "members": [
5609
+ {
5610
+ "kind": "field",
5611
+ "name": "listItems",
5612
+ "type": {
5613
+ "text": "Array<HTMLElement>"
5614
+ }
5615
+ },
5616
+ {
5617
+ "kind": "field",
5618
+ "name": "headerText",
5619
+ "type": {
5620
+ "text": "string | undefined"
5621
+ },
5622
+ "description": "The header text of the list.",
5623
+ "attribute": "header-text",
5624
+ "reflects": true
5625
+ },
5626
+ {
5627
+ "kind": "method",
5628
+ "name": "handleKeyDown",
5629
+ "privacy": "private",
5630
+ "return": {
5631
+ "type": {
5632
+ "text": "void"
5633
+ }
5634
+ },
5635
+ "parameters": [
5636
+ {
5637
+ "name": "event",
5638
+ "type": {
5639
+ "text": "KeyboardEvent"
5640
+ },
5641
+ "description": "The keyboard event."
5642
+ }
5643
+ ],
5644
+ "description": "Handles the keydown event on the list element.\nIf the key is 'ArrowUp' or 'ArrowDown', it focuses to the previous or next list item\nand sets the active tabindex of the list item.\nPrevents the default event behavior."
5645
+ },
5646
+ {
5647
+ "kind": "method",
5648
+ "name": "getCurrentIndex",
5649
+ "privacy": "private",
5650
+ "return": {
5651
+ "type": {
5652
+ "text": ""
5653
+ }
5654
+ },
5655
+ "parameters": [
5656
+ {
5657
+ "name": "target",
5658
+ "type": {
5659
+ "text": "EventTarget | null"
5660
+ },
5661
+ "description": "The target element to find the index of."
5662
+ }
5663
+ ],
5664
+ "description": "Returns the index of the given target in the listItems array.\nIf the target is not a list item, but a child element of a list item,\nit returns the index of the parent list item."
5665
+ },
5666
+ {
5667
+ "kind": "method",
5668
+ "name": "getNewIndexBasedOnKey",
5669
+ "privacy": "private",
5670
+ "return": {
5671
+ "type": {
5672
+ "text": ""
5673
+ }
5674
+ },
5675
+ "parameters": [
5676
+ {
5677
+ "name": "key",
5678
+ "type": {
5679
+ "text": "string"
5680
+ },
5681
+ "description": "The key that was pressed."
5682
+ },
5683
+ {
5684
+ "name": "currentIndex",
5685
+ "type": {
5686
+ "text": "number"
5687
+ },
5688
+ "description": "The current index of the focused list item."
5689
+ },
5690
+ {
5691
+ "name": "wrappedDivsCount",
5692
+ "type": {
5693
+ "text": "number"
5694
+ },
5695
+ "description": "The total number of list items."
5696
+ }
5697
+ ],
5698
+ "description": "Calculates a new index based on the pressed keyboard key.\nSupports navigation keys for moving focus within a list."
5699
+ },
5700
+ {
5701
+ "kind": "method",
5702
+ "name": "handleMouseClick",
5703
+ "privacy": "private",
5704
+ "return": {
5705
+ "type": {
5706
+ "text": "void"
5707
+ }
5708
+ },
5709
+ "parameters": [
5710
+ {
5711
+ "name": "event",
5712
+ "type": {
5713
+ "text": "MouseEvent"
5714
+ },
5715
+ "description": "The mouse event."
5716
+ }
5717
+ ],
5718
+ "description": "Handles the mouse click event on the list element.\nFinds the index of the target element in the list items array and calls\n`resetTabIndexAndSetActiveTabIndex` with that index."
5719
+ },
5720
+ {
5721
+ "kind": "method",
5722
+ "name": "resetTabIndexAndSetActiveTabIndex",
5723
+ "privacy": "private",
5724
+ "parameters": [
5725
+ {
5726
+ "name": "newIndex",
5727
+ "type": {
5728
+ "text": "number"
5729
+ },
5730
+ "description": "The index of the new active element in the list."
5731
+ }
5732
+ ],
5733
+ "description": "Resets all list items tabindex to -1 and sets the tabindex of the\nelement at the given index to 0, effectively setting the active\nelement. This is used when navigating the list via keyboard."
5734
+ },
5735
+ {
5736
+ "kind": "field",
5737
+ "name": "dataAriaLabel",
5738
+ "type": {
5739
+ "text": "string | null"
5740
+ },
5741
+ "default": "null",
5742
+ "description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
5743
+ "attribute": "data-aria-label",
5744
+ "reflects": true,
5745
+ "inheritedFrom": {
5746
+ "name": "DataAriaLabelMixin",
5747
+ "module": "utils/mixins/DataAriaLabelMixin.js"
5748
+ }
5749
+ }
5750
+ ],
5751
+ "attributes": [
5752
+ {
5753
+ "name": "header-text",
5754
+ "type": {
5755
+ "text": "string | undefined"
5756
+ },
5757
+ "description": "The header text of the list.",
5758
+ "fieldName": "headerText"
5759
+ },
5760
+ {
5761
+ "name": "data-aria-label",
5762
+ "type": {
5763
+ "text": "string | null"
5764
+ },
5765
+ "default": "null",
5766
+ "description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
5767
+ "fieldName": "dataAriaLabel",
5768
+ "inheritedFrom": {
5769
+ "name": "DataAriaLabelMixin",
5770
+ "module": "src/utils/mixins/DataAriaLabelMixin.ts"
5771
+ }
5772
+ }
5773
+ ],
5774
+ "mixins": [
5775
+ {
5776
+ "name": "DataAriaLabelMixin",
5777
+ "module": "/src/utils/mixins/DataAriaLabelMixin"
5778
+ }
5779
+ ],
5780
+ "superclass": {
5781
+ "name": "Component",
5782
+ "module": "/src/models"
5783
+ },
5784
+ "tagName": "mdc-list",
5785
+ "jsDoc": "/**\n * mdc-list component is used to display a group of list items. It is used as a container to wrap other list items.\n *\n * @tagname mdc-list\n *\n * @dependency mdc-text\n *\n * @slot default - This is a default/unnamed slot\n */",
5786
+ "customElement": true
5787
+ }
5788
+ ],
5789
+ "exports": [
5790
+ {
5791
+ "kind": "js",
5792
+ "name": "default",
5793
+ "declaration": {
5794
+ "name": "List",
5795
+ "module": "components/list/list.component.js"
5796
+ }
5797
+ }
5798
+ ]
5799
+ },
5800
+ {
5801
+ "kind": "javascript-module",
5802
+ "path": "components/listitem/listitem.component.js",
5803
+ "declarations": [
5804
+ {
5805
+ "kind": "class",
5806
+ "description": "mdc-listitem component is used to display a label with different types of controls.\nThere can be three types of controls, a radio button, a checkbox on the\nleading side and a toggle on the trailing side.\nThe list item can contain an avatar on the leading side and a badge on the trailing side.\nAdditionally, the list item can contain a side header and a subline text.\n\nThe leading and trailing slots can be used to display controls and text. <br/>\nBased on the leading/trailing slot, the position of the controls and text can be adjusted. <br/>\nPlease use mdc-list as a parent element even when there is only listitem for a11y purpose.",
5807
+ "name": "ListItem",
5808
+ "cssProperties": [
5809
+ {
5810
+ "description": "Allows customization of the default background color.",
5811
+ "name": "--mdc-listitem-default-background-color"
5812
+ },
5813
+ {
5814
+ "description": "Allows customization of the background color on hover.",
5815
+ "name": "--mdc-listitem-background-color-hover"
5816
+ },
5817
+ {
5818
+ "description": "Allows customization of the background color when pressed.",
5819
+ "name": "--mdc-listitem-background-color-active"
5820
+ },
5821
+ {
5822
+ "description": "Allows customization of the primary label, side header and subline text slot color.",
5823
+ "name": "--mdc-listitem-primary-label-color"
5824
+ },
5825
+ {
5826
+ "description": "Allows customization of the secondary and teritary label text slot color.",
5827
+ "name": "--mdc-listitem-secondary-label-color"
5828
+ }
5829
+ ],
5830
+ "slots": [
5831
+ {
5832
+ "description": "slot for list item controls to appear of leading end.",
5833
+ "name": "leading-controls"
5834
+ },
5835
+ {
5836
+ "description": "slot for list item primary label.",
5837
+ "name": "leading-text-primary-label"
5838
+ },
5839
+ {
5840
+ "description": "slot for list item secondary label.",
5841
+ "name": "leading-text-secondary-label"
5842
+ },
5843
+ {
5844
+ "description": "slot for list item tertiary label.",
5845
+ "name": "leading-text-tertiary-label"
5846
+ },
5847
+ {
5848
+ "description": "slot for list item side header text.",
5849
+ "name": "trailing-text-side-header"
5850
+ },
5851
+ {
5852
+ "description": "slot for list item subline text.",
5853
+ "name": "trailing-text-subline"
5854
+ },
5855
+ {
5856
+ "description": "slot for list item controls to appear of trailing end.",
5857
+ "name": "trailing-controls"
5858
+ }
5859
+ ],
5860
+ "members": [
5861
+ {
5862
+ "kind": "field",
5863
+ "name": "leadingControlsSlot",
5864
+ "type": {
5865
+ "text": "Array<HTMLElement>"
5866
+ }
5867
+ },
5868
+ {
5869
+ "kind": "field",
5870
+ "name": "trailingControlsSlot",
5871
+ "type": {
5872
+ "text": "Array<HTMLElement>"
5873
+ }
5874
+ },
5875
+ {
5876
+ "kind": "field",
5877
+ "name": "variant",
5878
+ "type": {
5879
+ "text": "ListItemVariants"
5880
+ },
5881
+ "description": "The variant of the list item. It can be a pill, rectangle or a full-width.",
5882
+ "default": "'full-width'",
5883
+ "attribute": "variant",
5884
+ "reflects": true
5428
5885
  },
5429
5886
  {
5430
- "description": "Text and icon color of the inverted link in hover state",
5431
- "name": "--mdc-link-inverted-color-hover"
5887
+ "kind": "field",
5888
+ "name": "label",
5889
+ "type": {
5890
+ "text": "string | undefined"
5891
+ },
5892
+ "description": "The primary label of the list item.\nThis appears on the leading side of the list item.",
5893
+ "attribute": "label",
5894
+ "reflects": true
5432
5895
  },
5433
5896
  {
5434
- "description": "Text and icon color of the inverted link in normal state",
5435
- "name": "--mdc-link-inverted-color-normal"
5897
+ "kind": "field",
5898
+ "name": "secondaryLabel",
5899
+ "type": {
5900
+ "text": "string | undefined"
5901
+ },
5902
+ "description": "The secondary label of the list item.\nThis appears on the leading side of the list item.",
5903
+ "attribute": "secondary-label",
5904
+ "reflects": true
5436
5905
  },
5437
- {
5438
- "description": "Text decoration of the link in disabled state for all variants",
5439
- "name": "--mdc-link-text-decoration-disabled"
5440
- }
5441
- ],
5442
- "members": [
5443
5906
  {
5444
5907
  "kind": "field",
5445
- "name": "inline",
5908
+ "name": "tertiaryLabel",
5446
5909
  "type": {
5447
- "text": "boolean"
5910
+ "text": "string | undefined"
5448
5911
  },
5449
- "description": "The link can be inline or standalone.",
5450
- "default": "false",
5451
- "attribute": "inline",
5912
+ "description": "The tertiary label of the list item.\nThis appears on the leading side of the list item.",
5913
+ "attribute": "tertiary-label",
5452
5914
  "reflects": true
5453
5915
  },
5454
5916
  {
5455
5917
  "kind": "field",
5456
- "name": "inverted",
5918
+ "name": "sideHeaderText",
5457
5919
  "type": {
5458
- "text": "boolean"
5920
+ "text": "string | undefined"
5459
5921
  },
5460
- "description": "The link color can be inverted by setting the inverted attribute to true.",
5461
- "default": "false",
5462
- "attribute": "inverted",
5922
+ "description": "The header text of the list item.\nThis appears on the trailing side of the list item.",
5923
+ "attribute": "side-header-text",
5463
5924
  "reflects": true
5464
5925
  },
5465
5926
  {
5466
5927
  "kind": "field",
5467
- "name": "size",
5928
+ "name": "sublineText",
5468
5929
  "type": {
5469
- "text": "LinkSize"
5930
+ "text": "string | undefined"
5470
5931
  },
5471
- "description": "Size of the link.\nAcceptable values include:\n\n- 'small'\n- 'midsize'\n- 'large'",
5472
- "default": "large",
5473
- "attribute": "size",
5932
+ "description": "The subline text of the list item.\nThis appears on the trailing side of the list item.",
5933
+ "attribute": "subline-text",
5474
5934
  "reflects": true
5475
5935
  },
5476
5936
  {
5477
5937
  "kind": "method",
5478
- "name": "getIconSize",
5938
+ "name": "getText",
5479
5939
  "privacy": "private",
5480
5940
  "return": {
5481
5941
  "type": {
5482
5942
  "text": ""
5483
5943
  }
5484
5944
  },
5485
- "description": "Method to get the size of the trailing icon based on the link size."
5945
+ "parameters": [
5946
+ {
5947
+ "name": "slotName",
5948
+ "type": {
5949
+ "text": "string"
5950
+ },
5951
+ "description": "The name of the slot to be used."
5952
+ },
5953
+ {
5954
+ "name": "type",
5955
+ "type": {
5956
+ "text": "TextType"
5957
+ },
5958
+ "description": "The type of the text element."
5959
+ },
5960
+ {
5961
+ "name": "content",
5962
+ "optional": true,
5963
+ "type": {
5964
+ "text": "string"
5965
+ },
5966
+ "description": "The text content to be displayed within the slot."
5967
+ }
5968
+ ],
5969
+ "description": "Generates a template for a text slot with the specified content."
5486
5970
  },
5487
5971
  {
5488
5972
  "kind": "method",
5489
- "name": "setDisabled",
5973
+ "name": "disableSlottedChildren",
5490
5974
  "privacy": "private",
5975
+ "return": {
5976
+ "type": {
5977
+ "text": "void"
5978
+ }
5979
+ },
5491
5980
  "parameters": [
5492
5981
  {
5493
5982
  "name": "disabled",
5494
5983
  "type": {
5495
5984
  "text": "boolean"
5496
5985
  },
5497
- "description": "The disabled state of icon"
5986
+ "description": "Whether to disable or enable the controls."
5498
5987
  }
5499
5988
  ],
5500
- "description": "Updates the tabindex of the host element to disable or enable the link.\nWhen disabled, the link is not focusable or clickable, and tabindex is set to -1\nand aria-disabled attribute is set to true\nWhen link is not disabled, the previous tabindex of the host element is restored\nand aria-disabled attribute is removed."
5989
+ "description": "Disable or enable all slotted elements in the leading and trailing slots.\nThis is useful when the list item is disabled, to prevent the user from interacting with the controls."
5501
5990
  },
5502
5991
  {
5503
- "kind": "method",
5504
- "name": "updateTrailingIcon",
5505
- "privacy": "private",
5506
- "description": "Method to create and append trailing icon to the first anchor element in the slot.\nIf no icon name is provided, no icon will be rendered."
5992
+ "kind": "field",
5993
+ "name": "role",
5994
+ "type": {
5995
+ "text": "string"
5996
+ },
5997
+ "default": "'listitem'"
5998
+ },
5999
+ {
6000
+ "kind": "field",
6001
+ "name": "dataAriaLabel",
6002
+ "type": {
6003
+ "text": "string | null"
6004
+ },
6005
+ "default": "null",
6006
+ "description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
6007
+ "attribute": "data-aria-label",
6008
+ "reflects": true,
6009
+ "inheritedFrom": {
6010
+ "name": "DataAriaLabelMixin",
6011
+ "module": "utils/mixins/DataAriaLabelMixin.js"
6012
+ }
5507
6013
  },
5508
6014
  {
5509
6015
  "kind": "field",
@@ -5522,45 +6028,82 @@
5522
6028
  },
5523
6029
  {
5524
6030
  "kind": "field",
5525
- "name": "iconName",
6031
+ "name": "tabIndex",
5526
6032
  "type": {
5527
- "text": "IconNames | undefined"
6033
+ "text": "number"
5528
6034
  },
5529
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
5530
- "attribute": "icon-name",
6035
+ "default": "0",
6036
+ "description": "This property specifies the tab order of the element.",
6037
+ "attribute": "tabIndex",
6038
+ "reflects": true,
5531
6039
  "inheritedFrom": {
5532
- "name": "IconNameMixin",
5533
- "module": "utils/mixins/IconNameMixin.js"
6040
+ "name": "TabIndexMixin",
6041
+ "module": "utils/mixins/TabIndexMixin.js"
5534
6042
  }
5535
6043
  }
5536
6044
  ],
5537
6045
  "attributes": [
5538
6046
  {
5539
- "name": "inline",
6047
+ "name": "variant",
5540
6048
  "type": {
5541
- "text": "boolean"
6049
+ "text": "ListItemVariants"
5542
6050
  },
5543
- "description": "The link can be inline or standalone.",
5544
- "default": "false",
5545
- "fieldName": "inline"
6051
+ "description": "The variant of the list item. It can be a pill, rectangle or a full-width.",
6052
+ "default": "'full-width'",
6053
+ "fieldName": "variant"
5546
6054
  },
5547
6055
  {
5548
- "name": "inverted",
6056
+ "name": "label",
5549
6057
  "type": {
5550
- "text": "boolean"
6058
+ "text": "string | undefined"
5551
6059
  },
5552
- "description": "The link color can be inverted by setting the inverted attribute to true.",
5553
- "default": "false",
5554
- "fieldName": "inverted"
6060
+ "description": "The primary label of the list item.\nThis appears on the leading side of the list item.",
6061
+ "fieldName": "label"
5555
6062
  },
5556
6063
  {
5557
- "name": "size",
6064
+ "name": "secondary-label",
5558
6065
  "type": {
5559
- "text": "LinkSize"
6066
+ "text": "string | undefined"
5560
6067
  },
5561
- "description": "Size of the link.\nAcceptable values include:\n\n- 'small'\n- 'midsize'\n- 'large'",
5562
- "default": "large",
5563
- "fieldName": "size"
6068
+ "description": "The secondary label of the list item.\nThis appears on the leading side of the list item.",
6069
+ "fieldName": "secondaryLabel"
6070
+ },
6071
+ {
6072
+ "name": "tertiary-label",
6073
+ "type": {
6074
+ "text": "string | undefined"
6075
+ },
6076
+ "description": "The tertiary label of the list item.\nThis appears on the leading side of the list item.",
6077
+ "fieldName": "tertiaryLabel"
6078
+ },
6079
+ {
6080
+ "name": "side-header-text",
6081
+ "type": {
6082
+ "text": "string | undefined"
6083
+ },
6084
+ "description": "The header text of the list item.\nThis appears on the trailing side of the list item.",
6085
+ "fieldName": "sideHeaderText"
6086
+ },
6087
+ {
6088
+ "name": "subline-text",
6089
+ "type": {
6090
+ "text": "string | undefined"
6091
+ },
6092
+ "description": "The subline text of the list item.\nThis appears on the trailing side of the list item.",
6093
+ "fieldName": "sublineText"
6094
+ },
6095
+ {
6096
+ "name": "data-aria-label",
6097
+ "type": {
6098
+ "text": "string | null"
6099
+ },
6100
+ "default": "null",
6101
+ "description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
6102
+ "fieldName": "dataAriaLabel",
6103
+ "inheritedFrom": {
6104
+ "name": "DataAriaLabelMixin",
6105
+ "module": "src/utils/mixins/DataAriaLabelMixin.ts"
6106
+ }
5564
6107
  },
5565
6108
  {
5566
6109
  "name": "disabled",
@@ -5576,34 +6119,39 @@
5576
6119
  }
5577
6120
  },
5578
6121
  {
5579
- "name": "icon-name",
6122
+ "name": "tabIndex",
5580
6123
  "type": {
5581
- "text": "IconNames | undefined"
6124
+ "text": "number"
5582
6125
  },
5583
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
5584
- "fieldName": "iconName",
6126
+ "default": "0",
6127
+ "description": "This property specifies the tab order of the element.",
6128
+ "fieldName": "tabIndex",
5585
6129
  "inheritedFrom": {
5586
- "name": "IconNameMixin",
5587
- "module": "src/utils/mixins/IconNameMixin.ts"
6130
+ "name": "TabIndexMixin",
6131
+ "module": "src/utils/mixins/TabIndexMixin.ts"
5588
6132
  }
5589
6133
  }
5590
6134
  ],
5591
6135
  "mixins": [
6136
+ {
6137
+ "name": "DataAriaLabelMixin",
6138
+ "module": "/src/utils/mixins/DataAriaLabelMixin"
6139
+ },
5592
6140
  {
5593
6141
  "name": "DisabledMixin",
5594
6142
  "module": "/src/utils/mixins/DisabledMixin"
5595
6143
  },
5596
6144
  {
5597
- "name": "IconNameMixin",
5598
- "module": "/src/utils/mixins/IconNameMixin"
6145
+ "name": "TabIndexMixin",
6146
+ "module": "/src/utils/mixins/TabIndexMixin"
5599
6147
  }
5600
6148
  ],
5601
6149
  "superclass": {
5602
6150
  "name": "Component",
5603
6151
  "module": "/src/models"
5604
6152
  },
5605
- "tagName": "mdc-link",
5606
- "jsDoc": "/**\n * `mdc-link` component can be used to navigate to a different page\n * within the application or to an external site. It can be used to link to\n * emails or phone numbers.\n *\n * The `children` of the link component is expected to be an anchor element\n * containing the text, href, and other attributes.\n *\n * For `icon`, the `mdc-icon` component is used to render the icon.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-link\n *\n * @cssproperty --mdc-link-border-radius - Border radius of the link\n * @cssproperty --mdc-link-color-active - Text and icon color of the link in active state\n * @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state\n * @cssproperty --mdc-link-color-hover - Text and icon color of the link in hover state\n * @cssproperty --mdc-link-color-normal - Text and icon color of the link in normal state\n * @cssproperty --mdc-link-icon-margin-left - Gap between the text and icon (only applicable when an icon is set)\n * @cssproperty --mdc-link-inverted-color-active - Text and icon color of the inverted link in active state\n * @cssproperty --mdc-link-inverted-color-disabled - Text and icon color of the inverted link in disabled state\n * @cssproperty --mdc-link-inverted-color-hover - Text and icon color of the inverted link in hover state\n * @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state\n * @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants\n */",
6153
+ "tagName": "mdc-listitem",
6154
+ "jsDoc": "/**\n * mdc-listitem component is used to display a label with different types of controls.\n * There can be three types of controls, a radio button, a checkbox on the\n * leading side and a toggle on the trailing side.\n * The list item can contain an avatar on the leading side and a badge on the trailing side.\n * Additionally, the list item can contain a side header and a subline text.\n *\n * The leading and trailing slots can be used to display controls and text. <br/>\n * Based on the leading/trailing slot, the position of the controls and text can be adjusted. <br/>\n * Please use mdc-list as a parent element even when there is only listitem for a11y purpose.\n *\n * @tagname mdc-listitem\n *\n * @dependency mdc-text\n *\n * @slot leading-controls - slot for list item controls to appear of leading end.\n * @slot leading-text-primary-label - slot for list item primary label.\n * @slot leading-text-secondary-label - slot for list item secondary label.\n * @slot leading-text-tertiary-label - slot for list item tertiary label.\n * @slot trailing-text-side-header - slot for list item side header text.\n * @slot trailing-text-subline - slot for list item subline text.\n * @slot trailing-controls - slot for list item controls to appear of trailing end.\n *\n * @cssproperty --mdc-listitem-default-background-color - Allows customization of the default background color.\n * @cssproperty --mdc-listitem-background-color-hover - Allows customization of the background color on hover.\n * @cssproperty --mdc-listitem-background-color-active - Allows customization of the background color when pressed.\n * @cssproperty --mdc-listitem-primary-label-color\n * - Allows customization of the primary label, side header and subline text slot color.\n * @cssproperty --mdc-listitem-secondary-label-color\n * - Allows customization of the secondary and teritary label text slot color.\n */",
5607
6155
  "customElement": true
5608
6156
  }
5609
6157
  ],
@@ -5612,8 +6160,8 @@
5612
6160
  "kind": "js",
5613
6161
  "name": "default",
5614
6162
  "declaration": {
5615
- "name": "Link",
5616
- "module": "components/link/link.component.js"
6163
+ "name": "ListItem",
6164
+ "module": "components/listitem/listitem.component.js"
5617
6165
  }
5618
6166
  }
5619
6167
  ]
@@ -7612,6 +8160,20 @@
7612
8160
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
7613
8161
  }
7614
8162
  },
8163
+ {
8164
+ "kind": "field",
8165
+ "name": "id",
8166
+ "type": {
8167
+ "text": "string"
8168
+ },
8169
+ "default": "`mdc-radio-${uuidv4()}`",
8170
+ "description": "The unique id of the input field. It is used to link the input field with the label.",
8171
+ "attribute": "id",
8172
+ "inheritedFrom": {
8173
+ "name": "FormfieldWrapper",
8174
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
8175
+ }
8176
+ },
7615
8177
  {
7616
8178
  "kind": "field",
7617
8179
  "name": "name",
@@ -7712,20 +8274,6 @@
7712
8274
  "module": "utils/mixins/FormInternalsMixin.js"
7713
8275
  }
7714
8276
  },
7715
- {
7716
- "kind": "field",
7717
- "name": "id",
7718
- "type": {
7719
- "text": "string"
7720
- },
7721
- "default": "`mdc-input-${uuidv4()}`",
7722
- "description": "The unique id of the input field. It is used to link the input field with the label.",
7723
- "attribute": "id",
7724
- "inheritedFrom": {
7725
- "name": "FormfieldWrapper",
7726
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
7727
- }
7728
- },
7729
8277
  {
7730
8278
  "kind": "field",
7731
8279
  "name": "dataAriaLabel",
@@ -9055,15 +9603,6 @@
9055
9603
  "module": "components/buttonsimple/buttonsimple.component.js"
9056
9604
  }
9057
9605
  },
9058
- {
9059
- "kind": "field",
9060
- "name": "id",
9061
- "default": "`mdc-input-${uuidv4()}`",
9062
- "inheritedFrom": {
9063
- "name": "Buttonsimple",
9064
- "module": "components/buttonsimple/buttonsimple.component.js"
9065
- }
9066
- },
9067
9606
  {
9068
9607
  "kind": "field",
9069
9608
  "name": "tabIndex",
@@ -9845,6 +10384,20 @@
9845
10384
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
9846
10385
  }
9847
10386
  },
10387
+ {
10388
+ "kind": "field",
10389
+ "name": "id",
10390
+ "type": {
10391
+ "text": "string"
10392
+ },
10393
+ "default": "`mdc-toggle-${uuidv4()}`",
10394
+ "description": "The unique id of the input field. It is used to link the input field with the label.",
10395
+ "attribute": "id",
10396
+ "inheritedFrom": {
10397
+ "name": "FormfieldWrapper",
10398
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
10399
+ }
10400
+ },
9848
10401
  {
9849
10402
  "kind": "field",
9850
10403
  "name": "name",
@@ -9945,20 +10498,6 @@
9945
10498
  "module": "utils/mixins/FormInternalsMixin.js"
9946
10499
  }
9947
10500
  },
9948
- {
9949
- "kind": "field",
9950
- "name": "id",
9951
- "type": {
9952
- "text": "string"
9953
- },
9954
- "default": "`mdc-input-${uuidv4()}`",
9955
- "description": "The unique id of the input field. It is used to link the input field with the label.",
9956
- "attribute": "id",
9957
- "inheritedFrom": {
9958
- "name": "FormfieldWrapper",
9959
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
9960
- }
9961
- },
9962
10501
  {
9963
10502
  "kind": "field",
9964
10503
  "name": "dataAriaLabel",
@@ -11320,11 +11859,6 @@
11320
11859
  {
11321
11860
  "kind": "method",
11322
11861
  "name": "reportValidity"
11323
- },
11324
- {
11325
- "kind": "field",
11326
- "name": "id",
11327
- "default": "`mdc-input-${uuidv4()}`"
11328
11862
  }
11329
11863
  ],
11330
11864
  "attributes": [