@momentum-design/components 0.87.0 → 0.87.1

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.
@@ -4489,183 +4489,36 @@
4489
4489
  },
4490
4490
  {
4491
4491
  "kind": "javascript-module",
4492
- "path": "components/cardcheckbox/cardcheckbox.component.js",
4492
+ "path": "components/cardbutton/cardbutton.component.js",
4493
4493
  "declarations": [
4494
4494
  {
4495
4495
  "kind": "class",
4496
- "description": "cardcheckbox component extends `mdc-card` and supports checkbox selection interaction addtionally.\n\nWhile using this component within a form or group of cards, make sure cards are in a role = \"checkbox-group\".\nThis card would have events for selected and unselected (similar to checkbox)\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\nMake sure to pass only non-interactable elements within the slots.\n\nMake sure to pass the `card-title` mandatorily for this card.",
4497
- "name": "CardCheckbox",
4496
+ "description": "cardbutton component looks like a card and behaves as a button component.\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would trigger the click event.\nMake sure to pass only non-interactable elements within the slots.",
4497
+ "name": "CardButton",
4498
4498
  "slots": [
4499
4499
  {
4500
4500
  "description": "This slot is for passing the content before the body",
4501
- "name": "before-body",
4502
- "inheritedFrom": {
4503
- "name": "Card",
4504
- "module": "src/components/card/card.component.ts"
4505
- }
4501
+ "name": "before-body"
4506
4502
  },
4507
4503
  {
4508
4504
  "description": "This slot is for passing the text content for the card",
4509
- "name": "body",
4510
- "inheritedFrom": {
4511
- "name": "Card",
4512
- "module": "src/components/card/card.component.ts"
4513
- }
4505
+ "name": "body"
4514
4506
  },
4515
4507
  {
4516
4508
  "description": "This slot is for passing the content after the body",
4517
- "name": "after-body",
4518
- "inheritedFrom": {
4519
- "name": "Card",
4520
- "module": "src/components/card/card.component.ts"
4521
- }
4522
- },
4523
- {
4524
- "description": "This slot is for passing `mdc-link` component within the footer section.",
4525
- "name": "footer-link",
4526
- "inheritedFrom": {
4527
- "name": "Card",
4528
- "module": "src/components/card/card.component.ts"
4529
- }
4530
- },
4531
- {
4532
- "description": "This slot is for passing primary variant of `mdc-button` component within the footer section.",
4533
- "name": "footer-button-primary",
4534
- "inheritedFrom": {
4535
- "name": "Card",
4536
- "module": "src/components/card/card.component.ts"
4537
- }
4538
- },
4539
- {
4540
- "description": "This slot is for passing secondary variant of `mdc-button` component within the footer section.",
4541
- "name": "footer-button-secondary",
4542
- "inheritedFrom": {
4543
- "name": "Card",
4544
- "module": "src/components/card/card.component.ts"
4545
- }
4546
- },
4547
- {
4548
- "description": " This slot is for passing custom footer content. Only use this if really needed, using the footer-link and footer-button slots is preferred.",
4549
- "name": "footer",
4550
- "inheritedFrom": {
4551
- "name": "Card",
4552
- "module": "src/components/card/card.component.ts"
4553
- }
4509
+ "name": "after-body"
4554
4510
  }
4555
4511
  ],
4556
4512
  "members": [
4557
- {
4558
- "kind": "field",
4559
- "name": "checked",
4560
- "type": {
4561
- "text": "boolean"
4562
- },
4563
- "default": "false",
4564
- "description": "The checked state of the card",
4565
- "attribute": "checked",
4566
- "reflects": true
4567
- },
4568
- {
4569
- "kind": "field",
4570
- "name": "selectionType",
4571
- "type": {
4572
- "text": "SelectionType"
4573
- },
4574
- "description": "The selection type of the card. It can either be set to 'check' or 'checkbox'",
4575
- "default": "'check'",
4576
- "attribute": "selection-type",
4577
- "reflects": true
4578
- },
4579
- {
4580
- "kind": "method",
4581
- "name": "toggleChecked",
4582
- "privacy": "private",
4583
- "description": "Toggles the checked state"
4584
- },
4585
- {
4586
- "kind": "method",
4587
- "name": "toggleOnEnter",
4588
- "privacy": "private",
4589
- "parameters": [
4590
- {
4591
- "name": "event",
4592
- "type": {
4593
- "text": "KeyboardEvent"
4594
- },
4595
- "description": "The keyboard event"
4596
- }
4597
- ],
4598
- "description": "Toggles the checked state when enter key is used"
4599
- },
4600
- {
4601
- "kind": "method",
4602
- "name": "toggleOnSpace",
4603
- "privacy": "private",
4604
- "parameters": [
4605
- {
4606
- "name": "event",
4607
- "type": {
4608
- "text": "KeyboardEvent"
4609
- },
4610
- "description": "The keyboard event"
4611
- }
4612
- ],
4613
- "description": "Toggles the checked state when space key is used"
4614
- },
4615
- {
4616
- "kind": "method",
4617
- "name": "renderSelection",
4618
- "privacy": "private",
4619
- "description": "Renders the selection icon or checkbox based on the selection type",
4620
- "return": {
4621
- "type": {
4622
- "text": ""
4623
- }
4624
- }
4625
- },
4626
4513
  {
4627
4514
  "kind": "method",
4628
4515
  "name": "renderHeader",
4629
4516
  "privacy": "protected",
4630
- "description": "Renders the header of the card",
4517
+ "description": "Renders the header of the card if title is provided",
4631
4518
  "return": {
4632
4519
  "type": {
4633
4520
  "text": ""
4634
4521
  }
4635
- },
4636
- "inheritedFrom": {
4637
- "name": "Card",
4638
- "module": "components/card/card.component.js"
4639
- }
4640
- },
4641
- {
4642
- "kind": "field",
4643
- "name": "disabled",
4644
- "type": {
4645
- "text": "boolean | undefined"
4646
- },
4647
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
4648
- "default": "undefined",
4649
- "attribute": "disabled",
4650
- "reflects": true,
4651
- "inheritedFrom": {
4652
- "name": "DisabledMixin",
4653
- "module": "utils/mixins/DisabledMixin.js"
4654
- }
4655
- },
4656
- {
4657
- "kind": "field",
4658
- "name": "tabIndex",
4659
- "type": {
4660
- "text": "number"
4661
- },
4662
- "default": "0",
4663
- "description": "This property specifies the tab order of the element.",
4664
- "attribute": "tabIndex",
4665
- "reflects": true,
4666
- "inheritedFrom": {
4667
- "name": "TabIndexMixin",
4668
- "module": "utils/mixins/TabIndexMixin.js"
4669
4522
  }
4670
4523
  },
4671
4524
  {
@@ -4679,8 +4532,8 @@
4679
4532
  "attribute": "card-title",
4680
4533
  "reflects": true,
4681
4534
  "inheritedFrom": {
4682
- "name": "Card",
4683
- "module": "components/card/card.component.js"
4535
+ "name": "CardComponentMixin",
4536
+ "module": "utils/mixins/CardComponentMixin.js"
4684
4537
  }
4685
4538
  },
4686
4539
  {
@@ -4694,8 +4547,8 @@
4694
4547
  "attribute": "subtitle",
4695
4548
  "reflects": true,
4696
4549
  "inheritedFrom": {
4697
- "name": "Card",
4698
- "module": "components/card/card.component.js"
4550
+ "name": "CardComponentMixin",
4551
+ "module": "utils/mixins/CardComponentMixin.js"
4699
4552
  }
4700
4553
  },
4701
4554
  {
@@ -4709,8 +4562,8 @@
4709
4562
  "attribute": "image-src",
4710
4563
  "reflects": true,
4711
4564
  "inheritedFrom": {
4712
- "name": "Card",
4713
- "module": "components/card/card.component.js"
4565
+ "name": "CardComponentMixin",
4566
+ "module": "utils/mixins/CardComponentMixin.js"
4714
4567
  }
4715
4568
  },
4716
4569
  {
@@ -4724,8 +4577,8 @@
4724
4577
  "attribute": "image-alt",
4725
4578
  "reflects": true,
4726
4579
  "inheritedFrom": {
4727
- "name": "Card",
4728
- "module": "components/card/card.component.js"
4580
+ "name": "CardComponentMixin",
4581
+ "module": "utils/mixins/CardComponentMixin.js"
4729
4582
  }
4730
4583
  },
4731
4584
  {
@@ -4739,8 +4592,8 @@
4739
4592
  "attribute": "variant",
4740
4593
  "reflects": true,
4741
4594
  "inheritedFrom": {
4742
- "name": "Card",
4743
- "module": "components/card/card.component.js"
4595
+ "name": "CardComponentMixin",
4596
+ "module": "utils/mixins/CardComponentMixin.js"
4744
4597
  }
4745
4598
  },
4746
4599
  {
@@ -4754,8 +4607,8 @@
4754
4607
  "attribute": "orientation",
4755
4608
  "reflects": true,
4756
4609
  "inheritedFrom": {
4757
- "name": "Card",
4758
- "module": "components/card/card.component.js"
4610
+ "name": "CardComponentMixin",
4611
+ "module": "utils/mixins/CardComponentMixin.js"
4759
4612
  }
4760
4613
  },
4761
4614
  {
@@ -4769,8 +4622,8 @@
4769
4622
  "attribute": "title-tag-name",
4770
4623
  "reflects": true,
4771
4624
  "inheritedFrom": {
4772
- "name": "Card",
4773
- "module": "components/card/card.component.js"
4625
+ "name": "CardComponentMixin",
4626
+ "module": "utils/mixins/CardComponentMixin.js"
4774
4627
  }
4775
4628
  },
4776
4629
  {
@@ -4784,8 +4637,8 @@
4784
4637
  "attribute": "subtitle-tag-name",
4785
4638
  "reflects": true,
4786
4639
  "inheritedFrom": {
4787
- "name": "Card",
4788
- "module": "components/card/card.component.js"
4640
+ "name": "CardComponentMixin",
4641
+ "module": "utils/mixins/CardComponentMixin.js"
4789
4642
  }
4790
4643
  },
4791
4644
  {
@@ -4798,8 +4651,8 @@
4798
4651
  "attribute": "icon-name",
4799
4652
  "reflects": true,
4800
4653
  "inheritedFrom": {
4801
- "name": "Card",
4802
- "module": "components/card/card.component.js"
4654
+ "name": "CardComponentMixin",
4655
+ "module": "utils/mixins/CardComponentMixin.js"
4803
4656
  }
4804
4657
  },
4805
4658
  {
@@ -4813,8 +4666,8 @@
4813
4666
  }
4814
4667
  },
4815
4668
  "inheritedFrom": {
4816
- "name": "Card",
4817
- "module": "components/card/card.component.js"
4669
+ "name": "CardComponentMixin",
4670
+ "module": "utils/mixins/CardComponentMixin.js"
4818
4671
  }
4819
4672
  },
4820
4673
  {
@@ -4828,8 +4681,8 @@
4828
4681
  }
4829
4682
  },
4830
4683
  "inheritedFrom": {
4831
- "name": "Card",
4832
- "module": "components/card/card.component.js"
4684
+ "name": "CardComponentMixin",
4685
+ "module": "utils/mixins/CardComponentMixin.js"
4833
4686
  }
4834
4687
  },
4835
4688
  {
@@ -4843,98 +4696,341 @@
4843
4696
  }
4844
4697
  },
4845
4698
  "inheritedFrom": {
4846
- "name": "Card",
4847
- "module": "components/card/card.component.js"
4699
+ "name": "CardComponentMixin",
4700
+ "module": "utils/mixins/CardComponentMixin.js"
4848
4701
  }
4849
4702
  },
4850
4703
  {
4851
- "kind": "method",
4852
- "name": "renderFooter",
4853
- "privacy": "protected",
4854
- "description": "Renders the footer of the card if footer-link,\nfooter-button-primary, or footer-button-secondary slots are provided",
4855
- "return": {
4856
- "type": {
4857
- "text": ""
4858
- }
4704
+ "kind": "field",
4705
+ "name": "autofocus",
4706
+ "type": {
4707
+ "text": "boolean"
4859
4708
  },
4709
+ "default": "false",
4710
+ "description": "This property indicates whether the element should receive focus automatically when it is rendered.",
4711
+ "attribute": "autofocus",
4712
+ "reflects": true,
4860
4713
  "inheritedFrom": {
4861
- "name": "Card",
4862
- "module": "components/card/card.component.js"
4714
+ "name": "Buttonsimple",
4715
+ "module": "components/buttonsimple/buttonsimple.component.js"
4863
4716
  }
4864
- }
4865
- ],
4866
- "events": [
4867
- {
4868
- "description": "(React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.",
4869
- "name": "click",
4870
- "reactName": "onClick"
4871
4717
  },
4872
4718
  {
4873
- "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the card. It toggles the checked state when enter key is used.",
4874
- "name": "keydown",
4875
- "reactName": "onKeyDown"
4719
+ "kind": "field",
4720
+ "name": "tabIndex",
4721
+ "type": {
4722
+ "text": "number"
4723
+ },
4724
+ "default": "0",
4725
+ "description": "This property specifies the tab order of the element.",
4726
+ "attribute": "tabIndex",
4727
+ "reflects": true,
4728
+ "inheritedFrom": {
4729
+ "name": "Buttonsimple",
4730
+ "module": "components/buttonsimple/buttonsimple.component.js"
4731
+ }
4876
4732
  },
4877
4733
  {
4878
- "description": "(React: onKeyUp) This event is dispatched when a key is released on the card. It toggles the checked state when space key is used.",
4879
- "name": "keyup",
4880
- "reactName": "onKeyUp"
4881
- },
4882
- {
4883
- "description": "(React: onChange) Event that gets dispatched when the card state changes.",
4884
- "name": "change",
4885
- "reactName": "onChange"
4734
+ "kind": "field",
4735
+ "name": "disabled",
4736
+ "type": {
4737
+ "text": "boolean | undefined"
4738
+ },
4739
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
4740
+ "default": "undefined",
4741
+ "attribute": "disabled",
4742
+ "reflects": true,
4743
+ "inheritedFrom": {
4744
+ "name": "Buttonsimple",
4745
+ "module": "components/buttonsimple/buttonsimple.component.js"
4746
+ }
4886
4747
  },
4887
4748
  {
4888
- "description": "(React: onFocus) Event that gets dispatched when the card receives focus.",
4889
- "name": "focus",
4890
- "reactName": "onFocus"
4891
- }
4892
- ],
4893
- "attributes": [
4749
+ "kind": "field",
4750
+ "name": "active",
4751
+ "type": {
4752
+ "text": "boolean | undefined"
4753
+ },
4754
+ "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
4755
+ "default": "undefined",
4756
+ "attribute": "active",
4757
+ "reflects": true,
4758
+ "inheritedFrom": {
4759
+ "name": "Buttonsimple",
4760
+ "module": "components/buttonsimple/buttonsimple.component.js"
4761
+ }
4762
+ },
4894
4763
  {
4895
- "name": "checked",
4764
+ "kind": "field",
4765
+ "name": "softDisabled",
4896
4766
  "type": {
4897
- "text": "boolean"
4767
+ "text": "boolean | undefined"
4898
4768
  },
4899
- "default": "false",
4900
- "description": "The checked state of the card",
4901
- "fieldName": "checked"
4769
+ "description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
4770
+ "default": "undefined",
4771
+ "attribute": "soft-disabled",
4772
+ "reflects": true,
4773
+ "inheritedFrom": {
4774
+ "name": "Buttonsimple",
4775
+ "module": "components/buttonsimple/buttonsimple.component.js"
4776
+ }
4902
4777
  },
4903
4778
  {
4904
- "name": "selection-type",
4779
+ "kind": "field",
4780
+ "name": "size",
4905
4781
  "type": {
4906
- "text": "SelectionType"
4782
+ "text": "ButtonSize"
4907
4783
  },
4908
- "description": "The selection type of the card. It can either be set to 'check' or 'checkbox'",
4909
- "default": "'check'",
4910
- "fieldName": "selectionType"
4784
+ "description": "Simplebutton size is a super set of all the sizes supported by children components.",
4785
+ "default": "32",
4786
+ "attribute": "size",
4787
+ "reflects": true,
4788
+ "inheritedFrom": {
4789
+ "name": "Buttonsimple",
4790
+ "module": "components/buttonsimple/buttonsimple.component.js"
4791
+ }
4911
4792
  },
4912
4793
  {
4913
- "name": "disabled",
4794
+ "kind": "field",
4795
+ "name": "role",
4796
+ "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
4797
+ "default": "button",
4798
+ "attribute": "role",
4799
+ "reflects": true,
4800
+ "inheritedFrom": {
4801
+ "name": "Buttonsimple",
4802
+ "module": "components/buttonsimple/buttonsimple.component.js"
4803
+ }
4804
+ },
4805
+ {
4806
+ "kind": "field",
4807
+ "name": "ariaStateKey",
4914
4808
  "type": {
4915
- "text": "boolean | undefined"
4809
+ "text": "string | undefined"
4916
4810
  },
4917
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
4918
- "default": "undefined",
4919
- "fieldName": "disabled",
4811
+ "description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
4812
+ "default": "'aria-pressed' (when)",
4813
+ "attribute": "ariaStateKey",
4814
+ "reflects": true,
4920
4815
  "inheritedFrom": {
4921
- "name": "DisabledMixin",
4922
- "module": "src/utils/mixins/DisabledMixin.ts"
4816
+ "name": "Buttonsimple",
4817
+ "module": "components/buttonsimple/buttonsimple.component.js"
4923
4818
  }
4924
4819
  },
4925
4820
  {
4926
- "name": "tabIndex",
4821
+ "kind": "field",
4822
+ "name": "type",
4927
4823
  "type": {
4928
- "text": "number"
4824
+ "text": "ButtonType"
4929
4825
  },
4930
- "default": "0",
4931
- "description": "This property specifies the tab order of the element.",
4932
- "fieldName": "tabIndex",
4826
+ "description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
4827
+ "default": "button",
4828
+ "attribute": "type",
4829
+ "reflects": true,
4933
4830
  "inheritedFrom": {
4934
- "name": "TabIndexMixin",
4935
- "module": "src/utils/mixins/TabIndexMixin.ts"
4831
+ "name": "Buttonsimple",
4832
+ "module": "components/buttonsimple/buttonsimple.component.js"
4833
+ }
4834
+ },
4835
+ {
4836
+ "kind": "method",
4837
+ "name": "executeAction",
4838
+ "privacy": "protected",
4839
+ "inheritedFrom": {
4840
+ "name": "Buttonsimple",
4841
+ "module": "components/buttonsimple/buttonsimple.component.js"
4842
+ }
4843
+ },
4844
+ {
4845
+ "kind": "method",
4846
+ "name": "setActive",
4847
+ "privacy": "protected",
4848
+ "parameters": [
4849
+ {
4850
+ "name": "element",
4851
+ "type": {
4852
+ "text": "HTMLElement"
4853
+ },
4854
+ "description": "The button element"
4855
+ },
4856
+ {
4857
+ "name": "active",
4858
+ "optional": true,
4859
+ "type": {
4860
+ "text": "boolean"
4861
+ },
4862
+ "description": "The active state of the element"
4863
+ }
4864
+ ],
4865
+ "description": "Sets the ariaStateKey attributes based on the active state of the button.",
4866
+ "inheritedFrom": {
4867
+ "name": "Buttonsimple",
4868
+ "module": "components/buttonsimple/buttonsimple.component.js"
4869
+ }
4870
+ },
4871
+ {
4872
+ "kind": "method",
4873
+ "name": "setSoftDisabled",
4874
+ "privacy": "private",
4875
+ "parameters": [
4876
+ {
4877
+ "name": "element",
4878
+ "type": {
4879
+ "text": "HTMLElement"
4880
+ },
4881
+ "description": "The button element."
4882
+ },
4883
+ {
4884
+ "name": "softDisabled",
4885
+ "optional": true,
4886
+ "type": {
4887
+ "text": "boolean"
4888
+ },
4889
+ "description": "The soft-disabled state."
4890
+ }
4891
+ ],
4892
+ "description": "Sets the soft-disabled attribute for the button.\nWhen soft-disabled, the button looks to be disabled but remains focusable and clickable.\nAlso sets/removes aria-disabled attribute.",
4893
+ "inheritedFrom": {
4894
+ "name": "Buttonsimple",
4895
+ "module": "components/buttonsimple/buttonsimple.component.js"
4896
+ }
4897
+ },
4898
+ {
4899
+ "kind": "method",
4900
+ "name": "setDisabled",
4901
+ "privacy": "private",
4902
+ "parameters": [
4903
+ {
4904
+ "name": "element",
4905
+ "type": {
4906
+ "text": "HTMLElement"
4907
+ },
4908
+ "description": "The button element."
4909
+ },
4910
+ {
4911
+ "name": "disabled",
4912
+ "type": {
4913
+ "text": "boolean"
4914
+ },
4915
+ "description": "The disabled state."
4916
+ }
4917
+ ],
4918
+ "description": "Sets the disabled attribute for the button.\nWhen disabled, the button is not focusable or clickable, and tabindex is set to -1.\nThe previous tabindex is stored and restored when enabled.\nAlso sets/removes aria-disabled attribute.",
4919
+ "inheritedFrom": {
4920
+ "name": "Buttonsimple",
4921
+ "module": "components/buttonsimple/buttonsimple.component.js"
4922
+ }
4923
+ },
4924
+ {
4925
+ "kind": "method",
4926
+ "name": "triggerClickEvent",
4927
+ "privacy": "private",
4928
+ "inheritedFrom": {
4929
+ "name": "Buttonsimple",
4930
+ "module": "components/buttonsimple/buttonsimple.component.js"
4931
+ }
4932
+ },
4933
+ {
4934
+ "kind": "method",
4935
+ "name": "handleBlur",
4936
+ "privacy": "private",
4937
+ "description": "In case the button is pressed and the focus is lost while pressing,\nthe pressed class is removed.",
4938
+ "inheritedFrom": {
4939
+ "name": "Buttonsimple",
4940
+ "module": "components/buttonsimple/buttonsimple.component.js"
4941
+ }
4942
+ },
4943
+ {
4944
+ "kind": "method",
4945
+ "name": "handleKeyDown",
4946
+ "privacy": "private",
4947
+ "parameters": [
4948
+ {
4949
+ "name": "event",
4950
+ "type": {
4951
+ "text": "KeyboardEvent"
4952
+ },
4953
+ "description": "The keyboard event."
4954
+ }
4955
+ ],
4956
+ "description": "Handles the keydown event on the button.\nIf the key is 'Enter' or 'Space', the button is pressed.\nIf the key is 'Enter', the button is pressed. The native HTML button works in the same way.\nIf the key is 'Space', the button's default is prevent to avoid scrolling etc in the host application.",
4957
+ "inheritedFrom": {
4958
+ "name": "Buttonsimple",
4959
+ "module": "components/buttonsimple/buttonsimple.component.js"
4960
+ }
4961
+ },
4962
+ {
4963
+ "kind": "method",
4964
+ "name": "handleKeyUp",
4965
+ "privacy": "private",
4966
+ "parameters": [
4967
+ {
4968
+ "name": "event",
4969
+ "type": {
4970
+ "text": "KeyboardEvent"
4971
+ },
4972
+ "description": "The keyboard event."
4973
+ }
4974
+ ],
4975
+ "description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way.",
4976
+ "inheritedFrom": {
4977
+ "name": "Buttonsimple",
4978
+ "module": "components/buttonsimple/buttonsimple.component.js"
4979
+ }
4980
+ }
4981
+ ],
4982
+ "events": [
4983
+ {
4984
+ "description": "(React: onClick) Event that gets dispatched when the card is clicked.",
4985
+ "name": "click",
4986
+ "reactName": "onClick",
4987
+ "inheritedFrom": {
4988
+ "name": "Buttonsimple",
4989
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
4990
+ }
4991
+ },
4992
+ {
4993
+ "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the card. It fires the click event when enter key is used.",
4994
+ "name": "keydown",
4995
+ "reactName": "onKeyDown",
4996
+ "inheritedFrom": {
4997
+ "name": "Buttonsimple",
4998
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
4999
+ }
5000
+ },
5001
+ {
5002
+ "description": "(React: onKeyUp) This event is dispatched when a key is released on the card. It fires the click event when space key is used.",
5003
+ "name": "keyup",
5004
+ "reactName": "onKeyUp",
5005
+ "inheritedFrom": {
5006
+ "name": "Buttonsimple",
5007
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
4936
5008
  }
4937
5009
  },
5010
+ {
5011
+ "description": "(React: onFocus) Event that gets dispatched when the card receives focus.",
5012
+ "name": "focus",
5013
+ "reactName": "onFocus",
5014
+ "inheritedFrom": {
5015
+ "name": "Buttonsimple",
5016
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5017
+ }
5018
+ }
5019
+ ],
5020
+ "mixins": [
5021
+ {
5022
+ "name": "CardComponentMixin",
5023
+ "module": "/src/utils/mixins/CardComponentMixin"
5024
+ }
5025
+ ],
5026
+ "superclass": {
5027
+ "name": "Buttonsimple",
5028
+ "module": "/src/components/buttonsimple/buttonsimple.component"
5029
+ },
5030
+ "tagName": "mdc-cardbutton",
5031
+ "jsDoc": "/**\n * cardbutton component looks like a card and behaves as a button component.\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would trigger the click event.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * @tagname mdc-cardbutton\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It fires the click event when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It fires the click event when space key is used.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
5032
+ "customElement": true,
5033
+ "attributes": [
4938
5034
  {
4939
5035
  "name": "card-title",
4940
5036
  "type": {
@@ -4944,8 +5040,8 @@
4944
5040
  "description": "The title of the card - part of header section",
4945
5041
  "fieldName": "cardTitle",
4946
5042
  "inheritedFrom": {
4947
- "name": "Card",
4948
- "module": "src/components/card/card.component.ts"
5043
+ "name": "CardComponentMixin",
5044
+ "module": "src/utils/mixins/CardComponentMixin.ts"
4949
5045
  }
4950
5046
  },
4951
5047
  {
@@ -4957,8 +5053,8 @@
4957
5053
  "description": "The subtitle of the card - part of header section",
4958
5054
  "fieldName": "subtitle",
4959
5055
  "inheritedFrom": {
4960
- "name": "Card",
4961
- "module": "src/components/card/card.component.ts"
5056
+ "name": "CardComponentMixin",
5057
+ "module": "src/utils/mixins/CardComponentMixin.ts"
4962
5058
  }
4963
5059
  },
4964
5060
  {
@@ -4970,8 +5066,8 @@
4970
5066
  "description": "The image source URL to render on the card",
4971
5067
  "fieldName": "imageSrc",
4972
5068
  "inheritedFrom": {
4973
- "name": "Card",
4974
- "module": "src/components/card/card.component.ts"
5069
+ "name": "CardComponentMixin",
5070
+ "module": "src/utils/mixins/CardComponentMixin.ts"
4975
5071
  }
4976
5072
  },
4977
5073
  {
@@ -4983,8 +5079,8 @@
4983
5079
  "description": "The image alt for accessibility support",
4984
5080
  "fieldName": "imageAlt",
4985
5081
  "inheritedFrom": {
4986
- "name": "Card",
4987
- "module": "src/components/card/card.component.ts"
5082
+ "name": "CardComponentMixin",
5083
+ "module": "src/utils/mixins/CardComponentMixin.ts"
4988
5084
  }
4989
5085
  },
4990
5086
  {
@@ -4996,79 +5092,176 @@
4996
5092
  "default": "'border'",
4997
5093
  "fieldName": "variant",
4998
5094
  "inheritedFrom": {
4999
- "name": "Card",
5000
- "module": "src/components/card/card.component.ts"
5095
+ "name": "CardComponentMixin",
5096
+ "module": "src/utils/mixins/CardComponentMixin.ts"
5097
+ }
5098
+ },
5099
+ {
5100
+ "name": "orientation",
5101
+ "type": {
5102
+ "text": "CardOrientation"
5103
+ },
5104
+ "description": "The orientation of the card. It can either be set to 'vertical' or 'horizontal'",
5105
+ "default": "'vertical'",
5106
+ "fieldName": "orientation",
5107
+ "inheritedFrom": {
5108
+ "name": "CardComponentMixin",
5109
+ "module": "src/utils/mixins/CardComponentMixin.ts"
5110
+ }
5111
+ },
5112
+ {
5113
+ "name": "title-tag-name",
5114
+ "type": {
5115
+ "text": "TagNameType"
5116
+ },
5117
+ "description": "The tag name for the card title. It supports all the types that `msc-text` supports",
5118
+ "default": "'span'",
5119
+ "fieldName": "titleTagName",
5120
+ "inheritedFrom": {
5121
+ "name": "CardComponentMixin",
5122
+ "module": "src/utils/mixins/CardComponentMixin.ts"
5123
+ }
5124
+ },
5125
+ {
5126
+ "name": "subtitle-tag-name",
5127
+ "type": {
5128
+ "text": "TagNameType"
5129
+ },
5130
+ "description": "The tag name for the subtitle. It supports all the types that `msc-text` supports",
5131
+ "default": "'span'",
5132
+ "fieldName": "subtitleTagName",
5133
+ "inheritedFrom": {
5134
+ "name": "CardComponentMixin",
5135
+ "module": "src/utils/mixins/CardComponentMixin.ts"
5136
+ }
5137
+ },
5138
+ {
5139
+ "name": "icon-name",
5140
+ "type": {
5141
+ "text": "IconNames | undefined"
5142
+ },
5143
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
5144
+ "fieldName": "iconName",
5145
+ "inheritedFrom": {
5146
+ "name": "CardComponentMixin",
5147
+ "module": "src/utils/mixins/CardComponentMixin.ts"
5148
+ }
5149
+ },
5150
+ {
5151
+ "name": "autofocus",
5152
+ "type": {
5153
+ "text": "boolean"
5154
+ },
5155
+ "default": "false",
5156
+ "description": "This property indicates whether the element should receive focus automatically when it is rendered.",
5157
+ "fieldName": "autofocus",
5158
+ "inheritedFrom": {
5159
+ "name": "Buttonsimple",
5160
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5161
+ }
5162
+ },
5163
+ {
5164
+ "name": "tabIndex",
5165
+ "type": {
5166
+ "text": "number"
5167
+ },
5168
+ "default": "0",
5169
+ "description": "This property specifies the tab order of the element.",
5170
+ "fieldName": "tabIndex",
5171
+ "inheritedFrom": {
5172
+ "name": "Buttonsimple",
5173
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5174
+ }
5175
+ },
5176
+ {
5177
+ "name": "disabled",
5178
+ "type": {
5179
+ "text": "boolean | undefined"
5180
+ },
5181
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
5182
+ "default": "undefined",
5183
+ "fieldName": "disabled",
5184
+ "inheritedFrom": {
5185
+ "name": "Buttonsimple",
5186
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5187
+ }
5188
+ },
5189
+ {
5190
+ "name": "active",
5191
+ "type": {
5192
+ "text": "boolean | undefined"
5193
+ },
5194
+ "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
5195
+ "default": "undefined",
5196
+ "fieldName": "active",
5197
+ "inheritedFrom": {
5198
+ "name": "Buttonsimple",
5199
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5200
+ }
5201
+ },
5202
+ {
5203
+ "name": "soft-disabled",
5204
+ "type": {
5205
+ "text": "boolean | undefined"
5206
+ },
5207
+ "description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
5208
+ "default": "undefined",
5209
+ "fieldName": "softDisabled",
5210
+ "inheritedFrom": {
5211
+ "name": "Buttonsimple",
5212
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5001
5213
  }
5002
5214
  },
5003
5215
  {
5004
- "name": "orientation",
5216
+ "name": "size",
5005
5217
  "type": {
5006
- "text": "CardOrientation"
5218
+ "text": "ButtonSize"
5007
5219
  },
5008
- "description": "The orientation of the card. It can either be set to 'vertical' or 'horizontal'",
5009
- "default": "'vertical'",
5010
- "fieldName": "orientation",
5220
+ "description": "Simplebutton size is a super set of all the sizes supported by children components.",
5221
+ "default": "32",
5222
+ "fieldName": "size",
5011
5223
  "inheritedFrom": {
5012
- "name": "Card",
5013
- "module": "src/components/card/card.component.ts"
5224
+ "name": "Buttonsimple",
5225
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5014
5226
  }
5015
5227
  },
5016
5228
  {
5017
- "name": "title-tag-name",
5018
- "type": {
5019
- "text": "TagNameType"
5020
- },
5021
- "description": "The tag name for the card title. It supports all the types that `msc-text` supports",
5022
- "default": "'span'",
5023
- "fieldName": "titleTagName",
5229
+ "name": "role",
5230
+ "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
5231
+ "default": "button",
5232
+ "fieldName": "role",
5024
5233
  "inheritedFrom": {
5025
- "name": "Card",
5026
- "module": "src/components/card/card.component.ts"
5234
+ "name": "Buttonsimple",
5235
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5027
5236
  }
5028
5237
  },
5029
5238
  {
5030
- "name": "subtitle-tag-name",
5239
+ "name": "ariaStateKey",
5031
5240
  "type": {
5032
- "text": "TagNameType"
5241
+ "text": "string | undefined"
5033
5242
  },
5034
- "description": "The tag name for the subtitle. It supports all the types that `msc-text` supports",
5035
- "default": "'span'",
5036
- "fieldName": "subtitleTagName",
5243
+ "description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
5244
+ "default": "'aria-pressed' (when)",
5245
+ "fieldName": "ariaStateKey",
5037
5246
  "inheritedFrom": {
5038
- "name": "Card",
5039
- "module": "src/components/card/card.component.ts"
5247
+ "name": "Buttonsimple",
5248
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5040
5249
  }
5041
5250
  },
5042
5251
  {
5043
- "name": "icon-name",
5252
+ "name": "type",
5044
5253
  "type": {
5045
- "text": "IconNames | undefined"
5254
+ "text": "ButtonType"
5046
5255
  },
5047
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
5048
- "fieldName": "iconName",
5256
+ "description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
5257
+ "default": "button",
5258
+ "fieldName": "type",
5049
5259
  "inheritedFrom": {
5050
- "name": "Card",
5051
- "module": "src/components/card/card.component.ts"
5260
+ "name": "Buttonsimple",
5261
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
5052
5262
  }
5053
5263
  }
5054
- ],
5055
- "mixins": [
5056
- {
5057
- "name": "DisabledMixin",
5058
- "module": "/src/utils/mixins/DisabledMixin"
5059
- },
5060
- {
5061
- "name": "TabIndexMixin",
5062
- "module": "/src/utils/mixins/TabIndexMixin"
5063
- }
5064
- ],
5065
- "superclass": {
5066
- "name": "Card",
5067
- "module": "/src/components/card/card.component"
5068
- },
5069
- "tagName": "mdc-cardcheckbox",
5070
- "jsDoc": "/**\n * cardcheckbox component extends `mdc-card` and supports checkbox selection interaction addtionally.\n *\n * While using this component within a form or group of cards, make sure cards are in a role = \"checkbox-group\".\n * This card would have events for selected and unselected (similar to checkbox)\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * Make sure to pass the `card-title` mandatorily for this card.\n *\n * @tagname mdc-cardcheckbox\n *\n * @dependency mdc-icon\n * @dependency mdc-staticcheckbox\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It toggles the checked state when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It toggles the checked state when space key is used.\n * @event change - (React: onChange) Event that gets dispatched when the card state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
5071
- "customElement": true
5264
+ ]
5072
5265
  }
5073
5266
  ],
5074
5267
  "exports": [
@@ -5076,20 +5269,20 @@
5076
5269
  "kind": "js",
5077
5270
  "name": "default",
5078
5271
  "declaration": {
5079
- "name": "CardCheckbox",
5080
- "module": "components/cardcheckbox/cardcheckbox.component.js"
5272
+ "name": "CardButton",
5273
+ "module": "components/cardbutton/cardbutton.component.js"
5081
5274
  }
5082
5275
  }
5083
5276
  ]
5084
5277
  },
5085
5278
  {
5086
5279
  "kind": "javascript-module",
5087
- "path": "components/cardradio/cardradio.component.js",
5280
+ "path": "components/cardcheckbox/cardcheckbox.component.js",
5088
5281
  "declarations": [
5089
5282
  {
5090
5283
  "kind": "class",
5091
- "description": "cardradio component extends `mdc-card` and supports radio selection interaction addtionally.\n\nWhile using this component within a form or group of cards, make sure cards are in a role = \"radio-group\".\nThis card would have events for selected and unselected (similar to radio)\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\nMake sure to pass only non-interactable elements within the slots.\n\nMake sure to pass the `card-title` mandatorily for this card.",
5092
- "name": "CardRadio",
5284
+ "description": "cardcheckbox component extends `mdc-card` and supports checkbox selection interaction addtionally.\n\nWhile using this component within a form or group of cards, make sure cards are in a role = \"checkbox-group\".\nThis card would have events for selected and unselected (similar to checkbox)\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\nMake sure to pass only non-interactable elements within the slots.\n\nMake sure to pass the `card-title` mandatorily for this card.",
5285
+ "name": "CardCheckbox",
5093
5286
  "slots": [
5094
5287
  {
5095
5288
  "description": "This slot is for passing the content before the body",
@@ -5162,76 +5355,20 @@
5162
5355
  },
5163
5356
  {
5164
5357
  "kind": "field",
5165
- "name": "name",
5358
+ "name": "selectionType",
5166
5359
  "type": {
5167
- "text": "string"
5168
- },
5169
- "default": "''",
5170
- "description": "The name of the radio.",
5171
- "attribute": "name"
5172
- },
5173
- {
5174
- "kind": "method",
5175
- "name": "getAllCardsWithinSameGroup",
5176
- "privacy": "private",
5177
- "return": {
5178
- "type": {
5179
- "text": "CardRadio[]"
5180
- }
5360
+ "text": "SelectionType"
5181
5361
  },
5182
- "description": "Returns all cards within the same group (name)."
5362
+ "description": "The selection type of the card. It can either be set to 'check' or 'checkbox'",
5363
+ "default": "'check'",
5364
+ "attribute": "selection-type",
5365
+ "reflects": true
5183
5366
  },
5184
5367
  {
5185
5368
  "kind": "method",
5186
5369
  "name": "toggleChecked",
5187
5370
  "privacy": "private",
5188
- "return": {
5189
- "type": {
5190
- "text": "void"
5191
- }
5192
- },
5193
- "description": "Handles the change event on the radio element.\nThis will toggle the state of the radio element.\nDispatches the change event."
5194
- },
5195
- {
5196
- "kind": "method",
5197
- "name": "setDisabled",
5198
- "return": {
5199
- "type": {
5200
- "text": "void"
5201
- }
5202
- },
5203
- "parameters": [
5204
- {
5205
- "name": "disabled",
5206
- "type": {
5207
- "text": "boolean"
5208
- }
5209
- }
5210
- ]
5211
- },
5212
- {
5213
- "kind": "method",
5214
- "name": "updateCardRadio",
5215
- "privacy": "private",
5216
- "return": {
5217
- "type": {
5218
- "text": "void"
5219
- }
5220
- },
5221
- "parameters": [
5222
- {
5223
- "name": "cards",
5224
- "type": {
5225
- "text": "CardRadio[]"
5226
- }
5227
- },
5228
- {
5229
- "name": "index",
5230
- "type": {
5231
- "text": "number"
5232
- }
5233
- }
5234
- ]
5371
+ "description": "Toggles the checked state"
5235
5372
  },
5236
5373
  {
5237
5374
  "kind": "method",
@@ -5263,6 +5400,17 @@
5263
5400
  ],
5264
5401
  "description": "Toggles the checked state when space key is used"
5265
5402
  },
5403
+ {
5404
+ "kind": "method",
5405
+ "name": "renderSelection",
5406
+ "privacy": "private",
5407
+ "description": "Renders the selection icon or checkbox based on the selection type",
5408
+ "return": {
5409
+ "type": {
5410
+ "text": ""
5411
+ }
5412
+ }
5413
+ },
5266
5414
  {
5267
5415
  "kind": "method",
5268
5416
  "name": "renderHeader",
@@ -5541,13 +5689,13 @@
5541
5689
  "fieldName": "checked"
5542
5690
  },
5543
5691
  {
5544
- "name": "name",
5692
+ "name": "selection-type",
5545
5693
  "type": {
5546
- "text": "string"
5694
+ "text": "SelectionType"
5547
5695
  },
5548
- "default": "''",
5549
- "description": "The name of the radio.",
5550
- "fieldName": "name"
5696
+ "description": "The selection type of the card. It can either be set to 'check' or 'checkbox'",
5697
+ "default": "'check'",
5698
+ "fieldName": "selectionType"
5551
5699
  },
5552
5700
  {
5553
5701
  "name": "disabled",
@@ -5706,8 +5854,8 @@
5706
5854
  "name": "Card",
5707
5855
  "module": "/src/components/card/card.component"
5708
5856
  },
5709
- "tagName": "mdc-cardradio",
5710
- "jsDoc": "/**\n * cardradio component extends `mdc-card` and supports radio selection interaction addtionally.\n *\n * While using this component within a form or group of cards, make sure cards are in a role = \"radio-group\".\n * This card would have events for selected and unselected (similar to radio)\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * Make sure to pass the `card-title` mandatorily for this card.\n *\n * @tagname mdc-cardradio\n *\n * @dependency mdc-icon\n * @dependency mdc-staticradio\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It toggles the checked state when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It toggles the checked state when space key is used.\n * @event change - (React: onChange) Event that gets dispatched when the card state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
5857
+ "tagName": "mdc-cardcheckbox",
5858
+ "jsDoc": "/**\n * cardcheckbox component extends `mdc-card` and supports checkbox selection interaction addtionally.\n *\n * While using this component within a form or group of cards, make sure cards are in a role = \"checkbox-group\".\n * This card would have events for selected and unselected (similar to checkbox)\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * Make sure to pass the `card-title` mandatorily for this card.\n *\n * @tagname mdc-cardcheckbox\n *\n * @dependency mdc-icon\n * @dependency mdc-staticcheckbox\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It toggles the checked state when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It toggles the checked state when space key is used.\n * @event change - (React: onChange) Event that gets dispatched when the card state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
5711
5859
  "customElement": true
5712
5860
  }
5713
5861
  ],
@@ -5716,238 +5864,221 @@
5716
5864
  "kind": "js",
5717
5865
  "name": "default",
5718
5866
  "declaration": {
5719
- "name": "CardRadio",
5720
- "module": "components/cardradio/cardradio.component.js"
5867
+ "name": "CardCheckbox",
5868
+ "module": "components/cardcheckbox/cardcheckbox.component.js"
5721
5869
  }
5722
5870
  }
5723
5871
  ]
5724
5872
  },
5725
5873
  {
5726
5874
  "kind": "javascript-module",
5727
- "path": "components/cardbutton/cardbutton.component.js",
5875
+ "path": "components/cardradio/cardradio.component.js",
5728
5876
  "declarations": [
5729
5877
  {
5730
5878
  "kind": "class",
5731
- "description": "cardbutton component looks like a card and behaves as a button component.\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would trigger the click event.\nMake sure to pass only non-interactable elements within the slots.",
5732
- "name": "CardButton",
5879
+ "description": "cardradio component extends `mdc-card` and supports radio selection interaction addtionally.\n\nWhile using this component within a form or group of cards, make sure cards are in a role = \"radio-group\".\nThis card would have events for selected and unselected (similar to radio)\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\nMake sure to pass only non-interactable elements within the slots.\n\nMake sure to pass the `card-title` mandatorily for this card.",
5880
+ "name": "CardRadio",
5733
5881
  "slots": [
5734
5882
  {
5735
5883
  "description": "This slot is for passing the content before the body",
5736
- "name": "before-body"
5737
- },
5738
- {
5739
- "description": "This slot is for passing the text content for the card",
5740
- "name": "body"
5741
- },
5742
- {
5743
- "description": "This slot is for passing the content after the body",
5744
- "name": "after-body"
5745
- }
5746
- ],
5747
- "members": [
5748
- {
5749
- "kind": "method",
5750
- "name": "renderHeader",
5751
- "privacy": "protected",
5752
- "description": "Renders the header of the card if title is provided",
5753
- "return": {
5754
- "type": {
5755
- "text": ""
5756
- }
5757
- }
5758
- },
5759
- {
5760
- "kind": "field",
5761
- "name": "cardTitle",
5762
- "type": {
5763
- "text": "string"
5764
- },
5765
- "default": "''",
5766
- "description": "The title of the card - part of header section",
5767
- "attribute": "card-title",
5768
- "reflects": true,
5884
+ "name": "before-body",
5769
5885
  "inheritedFrom": {
5770
- "name": "CardComponentMixin",
5771
- "module": "utils/mixins/CardComponentMixin.js"
5886
+ "name": "Card",
5887
+ "module": "src/components/card/card.component.ts"
5772
5888
  }
5773
5889
  },
5774
5890
  {
5775
- "kind": "field",
5776
- "name": "subtitle",
5777
- "type": {
5778
- "text": "string"
5779
- },
5780
- "default": "''",
5781
- "description": "The subtitle of the card - part of header section",
5782
- "attribute": "subtitle",
5783
- "reflects": true,
5891
+ "description": "This slot is for passing the text content for the card",
5892
+ "name": "body",
5784
5893
  "inheritedFrom": {
5785
- "name": "CardComponentMixin",
5786
- "module": "utils/mixins/CardComponentMixin.js"
5894
+ "name": "Card",
5895
+ "module": "src/components/card/card.component.ts"
5787
5896
  }
5788
5897
  },
5789
5898
  {
5790
- "kind": "field",
5791
- "name": "imageSrc",
5792
- "type": {
5793
- "text": "string"
5794
- },
5795
- "default": "''",
5796
- "description": "The image source URL to render on the card",
5797
- "attribute": "image-src",
5798
- "reflects": true,
5899
+ "description": "This slot is for passing the content after the body",
5900
+ "name": "after-body",
5799
5901
  "inheritedFrom": {
5800
- "name": "CardComponentMixin",
5801
- "module": "utils/mixins/CardComponentMixin.js"
5902
+ "name": "Card",
5903
+ "module": "src/components/card/card.component.ts"
5802
5904
  }
5803
5905
  },
5804
5906
  {
5805
- "kind": "field",
5806
- "name": "imageAlt",
5807
- "type": {
5808
- "text": "string"
5809
- },
5810
- "default": "''",
5811
- "description": "The image alt for accessibility support",
5812
- "attribute": "image-alt",
5813
- "reflects": true,
5907
+ "description": "This slot is for passing `mdc-link` component within the footer section.",
5908
+ "name": "footer-link",
5814
5909
  "inheritedFrom": {
5815
- "name": "CardComponentMixin",
5816
- "module": "utils/mixins/CardComponentMixin.js"
5910
+ "name": "Card",
5911
+ "module": "src/components/card/card.component.ts"
5817
5912
  }
5818
5913
  },
5819
5914
  {
5820
- "kind": "field",
5821
- "name": "variant",
5822
- "type": {
5823
- "text": "CardVariant"
5824
- },
5825
- "description": "The variant of the card. It can either be set to 'border' or 'ghost'",
5826
- "default": "'border'",
5827
- "attribute": "variant",
5828
- "reflects": true,
5915
+ "description": "This slot is for passing primary variant of `mdc-button` component within the footer section.",
5916
+ "name": "footer-button-primary",
5829
5917
  "inheritedFrom": {
5830
- "name": "CardComponentMixin",
5831
- "module": "utils/mixins/CardComponentMixin.js"
5918
+ "name": "Card",
5919
+ "module": "src/components/card/card.component.ts"
5832
5920
  }
5833
5921
  },
5834
5922
  {
5835
- "kind": "field",
5836
- "name": "orientation",
5837
- "type": {
5838
- "text": "CardOrientation"
5839
- },
5840
- "description": "The orientation of the card. It can either be set to 'vertical' or 'horizontal'",
5841
- "default": "'vertical'",
5842
- "attribute": "orientation",
5843
- "reflects": true,
5923
+ "description": "This slot is for passing secondary variant of `mdc-button` component within the footer section.",
5924
+ "name": "footer-button-secondary",
5844
5925
  "inheritedFrom": {
5845
- "name": "CardComponentMixin",
5846
- "module": "utils/mixins/CardComponentMixin.js"
5926
+ "name": "Card",
5927
+ "module": "src/components/card/card.component.ts"
5847
5928
  }
5848
5929
  },
5849
5930
  {
5850
- "kind": "field",
5851
- "name": "titleTagName",
5852
- "type": {
5853
- "text": "TagNameType"
5854
- },
5855
- "description": "The tag name for the card title. It supports all the types that `msc-text` supports",
5856
- "default": "'span'",
5857
- "attribute": "title-tag-name",
5858
- "reflects": true,
5931
+ "description": " This slot is for passing custom footer content. Only use this if really needed, using the footer-link and footer-button slots is preferred.",
5932
+ "name": "footer",
5859
5933
  "inheritedFrom": {
5860
- "name": "CardComponentMixin",
5861
- "module": "utils/mixins/CardComponentMixin.js"
5934
+ "name": "Card",
5935
+ "module": "src/components/card/card.component.ts"
5862
5936
  }
5863
- },
5937
+ }
5938
+ ],
5939
+ "members": [
5864
5940
  {
5865
5941
  "kind": "field",
5866
- "name": "subtitleTagName",
5942
+ "name": "checked",
5867
5943
  "type": {
5868
- "text": "TagNameType"
5944
+ "text": "boolean"
5869
5945
  },
5870
- "description": "The tag name for the subtitle. It supports all the types that `msc-text` supports",
5871
- "default": "'span'",
5872
- "attribute": "subtitle-tag-name",
5873
- "reflects": true,
5874
- "inheritedFrom": {
5875
- "name": "CardComponentMixin",
5876
- "module": "utils/mixins/CardComponentMixin.js"
5877
- }
5946
+ "default": "false",
5947
+ "description": "The checked state of the card",
5948
+ "attribute": "checked",
5949
+ "reflects": true
5878
5950
  },
5879
5951
  {
5880
5952
  "kind": "field",
5881
- "name": "iconName",
5953
+ "name": "name",
5882
5954
  "type": {
5883
- "text": "IconNames | undefined"
5955
+ "text": "string"
5884
5956
  },
5885
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
5886
- "attribute": "icon-name",
5887
- "reflects": true,
5888
- "inheritedFrom": {
5889
- "name": "CardComponentMixin",
5890
- "module": "utils/mixins/CardComponentMixin.js"
5891
- }
5957
+ "default": "''",
5958
+ "description": "The name of the radio.",
5959
+ "attribute": "name"
5892
5960
  },
5893
5961
  {
5894
5962
  "kind": "method",
5895
- "name": "renderImage",
5896
- "privacy": "protected",
5897
- "description": "Renders the image on the card if image source is provided",
5963
+ "name": "getAllCardsWithinSameGroup",
5964
+ "privacy": "private",
5898
5965
  "return": {
5899
5966
  "type": {
5900
- "text": ""
5967
+ "text": "CardRadio[]"
5901
5968
  }
5902
5969
  },
5903
- "inheritedFrom": {
5904
- "name": "CardComponentMixin",
5905
- "module": "utils/mixins/CardComponentMixin.js"
5906
- }
5970
+ "description": "Returns all cards within the same group (name)."
5907
5971
  },
5908
5972
  {
5909
5973
  "kind": "method",
5910
- "name": "renderIcon",
5911
- "privacy": "protected",
5912
- "description": "Renders the icon on the card if icon name is provided",
5974
+ "name": "toggleChecked",
5975
+ "privacy": "private",
5913
5976
  "return": {
5914
5977
  "type": {
5915
- "text": ""
5978
+ "text": "void"
5916
5979
  }
5917
5980
  },
5918
- "inheritedFrom": {
5919
- "name": "CardComponentMixin",
5920
- "module": "utils/mixins/CardComponentMixin.js"
5921
- }
5981
+ "description": "Handles the change event on the radio element.\nThis will toggle the state of the radio element.\nDispatches the change event."
5922
5982
  },
5923
5983
  {
5924
5984
  "kind": "method",
5925
- "name": "renderTitle",
5985
+ "name": "setDisabled",
5986
+ "return": {
5987
+ "type": {
5988
+ "text": "void"
5989
+ }
5990
+ },
5991
+ "parameters": [
5992
+ {
5993
+ "name": "disabled",
5994
+ "type": {
5995
+ "text": "boolean"
5996
+ }
5997
+ }
5998
+ ]
5999
+ },
6000
+ {
6001
+ "kind": "method",
6002
+ "name": "updateCardRadio",
6003
+ "privacy": "private",
6004
+ "return": {
6005
+ "type": {
6006
+ "text": "void"
6007
+ }
6008
+ },
6009
+ "parameters": [
6010
+ {
6011
+ "name": "cards",
6012
+ "type": {
6013
+ "text": "CardRadio[]"
6014
+ }
6015
+ },
6016
+ {
6017
+ "name": "index",
6018
+ "type": {
6019
+ "text": "number"
6020
+ }
6021
+ }
6022
+ ]
6023
+ },
6024
+ {
6025
+ "kind": "method",
6026
+ "name": "toggleOnEnter",
6027
+ "privacy": "private",
6028
+ "parameters": [
6029
+ {
6030
+ "name": "event",
6031
+ "type": {
6032
+ "text": "KeyboardEvent"
6033
+ },
6034
+ "description": "The keyboard event"
6035
+ }
6036
+ ],
6037
+ "description": "Toggles the checked state when enter key is used"
6038
+ },
6039
+ {
6040
+ "kind": "method",
6041
+ "name": "toggleOnSpace",
6042
+ "privacy": "private",
6043
+ "parameters": [
6044
+ {
6045
+ "name": "event",
6046
+ "type": {
6047
+ "text": "KeyboardEvent"
6048
+ },
6049
+ "description": "The keyboard event"
6050
+ }
6051
+ ],
6052
+ "description": "Toggles the checked state when space key is used"
6053
+ },
6054
+ {
6055
+ "kind": "method",
6056
+ "name": "renderHeader",
5926
6057
  "privacy": "protected",
5927
- "description": "Renders the title and subtitle on the card",
6058
+ "description": "Renders the header of the card",
5928
6059
  "return": {
5929
6060
  "type": {
5930
6061
  "text": ""
5931
6062
  }
5932
6063
  },
5933
6064
  "inheritedFrom": {
5934
- "name": "CardComponentMixin",
5935
- "module": "utils/mixins/CardComponentMixin.js"
6065
+ "name": "Card",
6066
+ "module": "components/card/card.component.js"
5936
6067
  }
5937
6068
  },
5938
6069
  {
5939
6070
  "kind": "field",
5940
- "name": "autofocus",
6071
+ "name": "disabled",
5941
6072
  "type": {
5942
- "text": "boolean"
6073
+ "text": "boolean | undefined"
5943
6074
  },
5944
- "default": "false",
5945
- "description": "This property indicates whether the element should receive focus automatically when it is rendered.",
5946
- "attribute": "autofocus",
6075
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
6076
+ "default": "undefined",
6077
+ "attribute": "disabled",
5947
6078
  "reflects": true,
5948
6079
  "inheritedFrom": {
5949
- "name": "Buttonsimple",
5950
- "module": "components/buttonsimple/buttonsimple.component.js"
6080
+ "name": "DisabledMixin",
6081
+ "module": "utils/mixins/DisabledMixin.js"
5951
6082
  }
5952
6083
  },
5953
6084
  {
@@ -5961,311 +6092,277 @@
5961
6092
  "attribute": "tabIndex",
5962
6093
  "reflects": true,
5963
6094
  "inheritedFrom": {
5964
- "name": "Buttonsimple",
5965
- "module": "components/buttonsimple/buttonsimple.component.js"
6095
+ "name": "TabIndexMixin",
6096
+ "module": "utils/mixins/TabIndexMixin.js"
5966
6097
  }
5967
6098
  },
5968
6099
  {
5969
6100
  "kind": "field",
5970
- "name": "disabled",
6101
+ "name": "cardTitle",
5971
6102
  "type": {
5972
- "text": "boolean | undefined"
6103
+ "text": "string"
5973
6104
  },
5974
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
5975
- "default": "undefined",
5976
- "attribute": "disabled",
6105
+ "default": "''",
6106
+ "description": "The title of the card - part of header section",
6107
+ "attribute": "card-title",
6108
+ "reflects": true,
6109
+ "inheritedFrom": {
6110
+ "name": "Card",
6111
+ "module": "components/card/card.component.js"
6112
+ }
6113
+ },
6114
+ {
6115
+ "kind": "field",
6116
+ "name": "subtitle",
6117
+ "type": {
6118
+ "text": "string"
6119
+ },
6120
+ "default": "''",
6121
+ "description": "The subtitle of the card - part of header section",
6122
+ "attribute": "subtitle",
6123
+ "reflects": true,
6124
+ "inheritedFrom": {
6125
+ "name": "Card",
6126
+ "module": "components/card/card.component.js"
6127
+ }
6128
+ },
6129
+ {
6130
+ "kind": "field",
6131
+ "name": "imageSrc",
6132
+ "type": {
6133
+ "text": "string"
6134
+ },
6135
+ "default": "''",
6136
+ "description": "The image source URL to render on the card",
6137
+ "attribute": "image-src",
5977
6138
  "reflects": true,
5978
6139
  "inheritedFrom": {
5979
- "name": "Buttonsimple",
5980
- "module": "components/buttonsimple/buttonsimple.component.js"
6140
+ "name": "Card",
6141
+ "module": "components/card/card.component.js"
5981
6142
  }
5982
6143
  },
5983
6144
  {
5984
6145
  "kind": "field",
5985
- "name": "active",
6146
+ "name": "imageAlt",
5986
6147
  "type": {
5987
- "text": "boolean | undefined"
6148
+ "text": "string"
5988
6149
  },
5989
- "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
5990
- "default": "undefined",
5991
- "attribute": "active",
6150
+ "default": "''",
6151
+ "description": "The image alt for accessibility support",
6152
+ "attribute": "image-alt",
5992
6153
  "reflects": true,
5993
6154
  "inheritedFrom": {
5994
- "name": "Buttonsimple",
5995
- "module": "components/buttonsimple/buttonsimple.component.js"
6155
+ "name": "Card",
6156
+ "module": "components/card/card.component.js"
5996
6157
  }
5997
6158
  },
5998
6159
  {
5999
6160
  "kind": "field",
6000
- "name": "softDisabled",
6161
+ "name": "variant",
6001
6162
  "type": {
6002
- "text": "boolean | undefined"
6163
+ "text": "CardVariant"
6003
6164
  },
6004
- "description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
6005
- "default": "undefined",
6006
- "attribute": "soft-disabled",
6165
+ "description": "The variant of the card. It can either be set to 'border' or 'ghost'",
6166
+ "default": "'border'",
6167
+ "attribute": "variant",
6007
6168
  "reflects": true,
6008
6169
  "inheritedFrom": {
6009
- "name": "Buttonsimple",
6010
- "module": "components/buttonsimple/buttonsimple.component.js"
6170
+ "name": "Card",
6171
+ "module": "components/card/card.component.js"
6011
6172
  }
6012
6173
  },
6013
6174
  {
6014
6175
  "kind": "field",
6015
- "name": "size",
6176
+ "name": "orientation",
6016
6177
  "type": {
6017
- "text": "ButtonSize"
6178
+ "text": "CardOrientation"
6018
6179
  },
6019
- "description": "Simplebutton size is a super set of all the sizes supported by children components.",
6020
- "default": "32",
6021
- "attribute": "size",
6180
+ "description": "The orientation of the card. It can either be set to 'vertical' or 'horizontal'",
6181
+ "default": "'vertical'",
6182
+ "attribute": "orientation",
6022
6183
  "reflects": true,
6023
6184
  "inheritedFrom": {
6024
- "name": "Buttonsimple",
6025
- "module": "components/buttonsimple/buttonsimple.component.js"
6185
+ "name": "Card",
6186
+ "module": "components/card/card.component.js"
6026
6187
  }
6027
6188
  },
6028
6189
  {
6029
6190
  "kind": "field",
6030
- "name": "role",
6031
- "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
6032
- "default": "button",
6033
- "attribute": "role",
6191
+ "name": "titleTagName",
6192
+ "type": {
6193
+ "text": "TagNameType"
6194
+ },
6195
+ "description": "The tag name for the card title. It supports all the types that `msc-text` supports",
6196
+ "default": "'span'",
6197
+ "attribute": "title-tag-name",
6034
6198
  "reflects": true,
6035
6199
  "inheritedFrom": {
6036
- "name": "Buttonsimple",
6037
- "module": "components/buttonsimple/buttonsimple.component.js"
6200
+ "name": "Card",
6201
+ "module": "components/card/card.component.js"
6038
6202
  }
6039
6203
  },
6040
6204
  {
6041
6205
  "kind": "field",
6042
- "name": "ariaStateKey",
6206
+ "name": "subtitleTagName",
6043
6207
  "type": {
6044
- "text": "string | undefined"
6208
+ "text": "TagNameType"
6045
6209
  },
6046
- "description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
6047
- "default": "'aria-pressed' (when)",
6048
- "attribute": "ariaStateKey",
6210
+ "description": "The tag name for the subtitle. It supports all the types that `msc-text` supports",
6211
+ "default": "'span'",
6212
+ "attribute": "subtitle-tag-name",
6049
6213
  "reflects": true,
6050
6214
  "inheritedFrom": {
6051
- "name": "Buttonsimple",
6052
- "module": "components/buttonsimple/buttonsimple.component.js"
6215
+ "name": "Card",
6216
+ "module": "components/card/card.component.js"
6053
6217
  }
6054
6218
  },
6055
6219
  {
6056
6220
  "kind": "field",
6057
- "name": "type",
6221
+ "name": "iconName",
6058
6222
  "type": {
6059
- "text": "ButtonType"
6223
+ "text": "IconNames | undefined"
6060
6224
  },
6061
- "description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
6062
- "default": "button",
6063
- "attribute": "type",
6225
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
6226
+ "attribute": "icon-name",
6064
6227
  "reflects": true,
6065
6228
  "inheritedFrom": {
6066
- "name": "Buttonsimple",
6067
- "module": "components/buttonsimple/buttonsimple.component.js"
6068
- }
6069
- },
6070
- {
6071
- "kind": "method",
6072
- "name": "executeAction",
6073
- "privacy": "protected",
6074
- "inheritedFrom": {
6075
- "name": "Buttonsimple",
6076
- "module": "components/buttonsimple/buttonsimple.component.js"
6229
+ "name": "Card",
6230
+ "module": "components/card/card.component.js"
6077
6231
  }
6078
6232
  },
6079
6233
  {
6080
6234
  "kind": "method",
6081
- "name": "setActive",
6235
+ "name": "renderImage",
6082
6236
  "privacy": "protected",
6083
- "parameters": [
6084
- {
6085
- "name": "element",
6086
- "type": {
6087
- "text": "HTMLElement"
6088
- },
6089
- "description": "The button element"
6090
- },
6091
- {
6092
- "name": "active",
6093
- "optional": true,
6094
- "type": {
6095
- "text": "boolean"
6096
- },
6097
- "description": "The active state of the element"
6098
- }
6099
- ],
6100
- "description": "Sets the ariaStateKey attributes based on the active state of the button.",
6101
- "inheritedFrom": {
6102
- "name": "Buttonsimple",
6103
- "module": "components/buttonsimple/buttonsimple.component.js"
6104
- }
6105
- },
6106
- {
6107
- "kind": "method",
6108
- "name": "setSoftDisabled",
6109
- "privacy": "private",
6110
- "parameters": [
6111
- {
6112
- "name": "element",
6113
- "type": {
6114
- "text": "HTMLElement"
6115
- },
6116
- "description": "The button element."
6117
- },
6118
- {
6119
- "name": "softDisabled",
6120
- "optional": true,
6121
- "type": {
6122
- "text": "boolean"
6123
- },
6124
- "description": "The soft-disabled state."
6237
+ "description": "Renders the image on the card if image source is provided",
6238
+ "return": {
6239
+ "type": {
6240
+ "text": ""
6125
6241
  }
6126
- ],
6127
- "description": "Sets the soft-disabled attribute for the button.\nWhen soft-disabled, the button looks to be disabled but remains focusable and clickable.\nAlso sets/removes aria-disabled attribute.",
6242
+ },
6128
6243
  "inheritedFrom": {
6129
- "name": "Buttonsimple",
6130
- "module": "components/buttonsimple/buttonsimple.component.js"
6244
+ "name": "Card",
6245
+ "module": "components/card/card.component.js"
6131
6246
  }
6132
6247
  },
6133
6248
  {
6134
6249
  "kind": "method",
6135
- "name": "setDisabled",
6136
- "privacy": "private",
6137
- "parameters": [
6138
- {
6139
- "name": "element",
6140
- "type": {
6141
- "text": "HTMLElement"
6142
- },
6143
- "description": "The button element."
6144
- },
6145
- {
6146
- "name": "disabled",
6147
- "type": {
6148
- "text": "boolean"
6149
- },
6150
- "description": "The disabled state."
6250
+ "name": "renderIcon",
6251
+ "privacy": "protected",
6252
+ "description": "Renders the icon on the card if icon name is provided",
6253
+ "return": {
6254
+ "type": {
6255
+ "text": ""
6151
6256
  }
6152
- ],
6153
- "description": "Sets the disabled attribute for the button.\nWhen disabled, the button is not focusable or clickable, and tabindex is set to -1.\nThe previous tabindex is stored and restored when enabled.\nAlso sets/removes aria-disabled attribute.",
6154
- "inheritedFrom": {
6155
- "name": "Buttonsimple",
6156
- "module": "components/buttonsimple/buttonsimple.component.js"
6157
- }
6158
- },
6159
- {
6160
- "kind": "method",
6161
- "name": "triggerClickEvent",
6162
- "privacy": "private",
6163
- "inheritedFrom": {
6164
- "name": "Buttonsimple",
6165
- "module": "components/buttonsimple/buttonsimple.component.js"
6166
- }
6167
- },
6168
- {
6169
- "kind": "method",
6170
- "name": "handleBlur",
6171
- "privacy": "private",
6172
- "description": "In case the button is pressed and the focus is lost while pressing,\nthe pressed class is removed.",
6257
+ },
6173
6258
  "inheritedFrom": {
6174
- "name": "Buttonsimple",
6175
- "module": "components/buttonsimple/buttonsimple.component.js"
6259
+ "name": "Card",
6260
+ "module": "components/card/card.component.js"
6176
6261
  }
6177
6262
  },
6178
6263
  {
6179
6264
  "kind": "method",
6180
- "name": "handleKeyDown",
6181
- "privacy": "private",
6182
- "parameters": [
6183
- {
6184
- "name": "event",
6185
- "type": {
6186
- "text": "KeyboardEvent"
6187
- },
6188
- "description": "The keyboard event."
6265
+ "name": "renderTitle",
6266
+ "privacy": "protected",
6267
+ "description": "Renders the title and subtitle on the card",
6268
+ "return": {
6269
+ "type": {
6270
+ "text": ""
6189
6271
  }
6190
- ],
6191
- "description": "Handles the keydown event on the button.\nIf the key is 'Enter' or 'Space', the button is pressed.\nIf the key is 'Enter', the button is pressed. The native HTML button works in the same way.\nIf the key is 'Space', the button's default is prevent to avoid scrolling etc in the host application.",
6272
+ },
6192
6273
  "inheritedFrom": {
6193
- "name": "Buttonsimple",
6194
- "module": "components/buttonsimple/buttonsimple.component.js"
6274
+ "name": "Card",
6275
+ "module": "components/card/card.component.js"
6195
6276
  }
6196
6277
  },
6197
6278
  {
6198
6279
  "kind": "method",
6199
- "name": "handleKeyUp",
6200
- "privacy": "private",
6201
- "parameters": [
6202
- {
6203
- "name": "event",
6204
- "type": {
6205
- "text": "KeyboardEvent"
6206
- },
6207
- "description": "The keyboard event."
6280
+ "name": "renderFooter",
6281
+ "privacy": "protected",
6282
+ "description": "Renders the footer of the card if footer-link,\nfooter-button-primary, or footer-button-secondary slots are provided",
6283
+ "return": {
6284
+ "type": {
6285
+ "text": ""
6208
6286
  }
6209
- ],
6210
- "description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way.",
6211
- "inheritedFrom": {
6212
- "name": "Buttonsimple",
6213
- "module": "components/buttonsimple/buttonsimple.component.js"
6214
- }
6215
- }
6216
- ],
6217
- "events": [
6218
- {
6219
- "description": "(React: onClick) Event that gets dispatched when the card is clicked.",
6220
- "name": "click",
6221
- "reactName": "onClick",
6287
+ },
6222
6288
  "inheritedFrom": {
6223
- "name": "Buttonsimple",
6224
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6289
+ "name": "Card",
6290
+ "module": "components/card/card.component.js"
6225
6291
  }
6292
+ }
6293
+ ],
6294
+ "events": [
6295
+ {
6296
+ "description": "(React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.",
6297
+ "name": "click",
6298
+ "reactName": "onClick"
6226
6299
  },
6227
6300
  {
6228
- "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the card. It fires the click event when enter key is used.",
6301
+ "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the card. It toggles the checked state when enter key is used.",
6229
6302
  "name": "keydown",
6230
- "reactName": "onKeyDown",
6231
- "inheritedFrom": {
6232
- "name": "Buttonsimple",
6233
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6234
- }
6303
+ "reactName": "onKeyDown"
6235
6304
  },
6236
6305
  {
6237
- "description": "(React: onKeyUp) This event is dispatched when a key is released on the card. It fires the click event when space key is used.",
6306
+ "description": "(React: onKeyUp) This event is dispatched when a key is released on the card. It toggles the checked state when space key is used.",
6238
6307
  "name": "keyup",
6239
- "reactName": "onKeyUp",
6240
- "inheritedFrom": {
6241
- "name": "Buttonsimple",
6242
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6243
- }
6308
+ "reactName": "onKeyUp"
6309
+ },
6310
+ {
6311
+ "description": "(React: onChange) Event that gets dispatched when the card state changes.",
6312
+ "name": "change",
6313
+ "reactName": "onChange"
6244
6314
  },
6245
6315
  {
6246
6316
  "description": "(React: onFocus) Event that gets dispatched when the card receives focus.",
6247
6317
  "name": "focus",
6248
- "reactName": "onFocus",
6249
- "inheritedFrom": {
6250
- "name": "Buttonsimple",
6251
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6252
- }
6253
- }
6254
- ],
6255
- "mixins": [
6256
- {
6257
- "name": "CardComponentMixin",
6258
- "module": "/src/utils/mixins/CardComponentMixin"
6318
+ "reactName": "onFocus"
6259
6319
  }
6260
6320
  ],
6261
- "superclass": {
6262
- "name": "Buttonsimple",
6263
- "module": "/src/components/buttonsimple/buttonsimple.component"
6264
- },
6265
- "tagName": "mdc-cardbutton",
6266
- "jsDoc": "/**\n * cardbutton component looks like a card and behaves as a button component.\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would trigger the click event.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * @tagname mdc-cardbutton\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It fires the click event when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It fires the click event when space key is used.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
6267
- "customElement": true,
6268
6321
  "attributes": [
6322
+ {
6323
+ "name": "checked",
6324
+ "type": {
6325
+ "text": "boolean"
6326
+ },
6327
+ "default": "false",
6328
+ "description": "The checked state of the card",
6329
+ "fieldName": "checked"
6330
+ },
6331
+ {
6332
+ "name": "name",
6333
+ "type": {
6334
+ "text": "string"
6335
+ },
6336
+ "default": "''",
6337
+ "description": "The name of the radio.",
6338
+ "fieldName": "name"
6339
+ },
6340
+ {
6341
+ "name": "disabled",
6342
+ "type": {
6343
+ "text": "boolean | undefined"
6344
+ },
6345
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
6346
+ "default": "undefined",
6347
+ "fieldName": "disabled",
6348
+ "inheritedFrom": {
6349
+ "name": "DisabledMixin",
6350
+ "module": "src/utils/mixins/DisabledMixin.ts"
6351
+ }
6352
+ },
6353
+ {
6354
+ "name": "tabIndex",
6355
+ "type": {
6356
+ "text": "number"
6357
+ },
6358
+ "default": "0",
6359
+ "description": "This property specifies the tab order of the element.",
6360
+ "fieldName": "tabIndex",
6361
+ "inheritedFrom": {
6362
+ "name": "TabIndexMixin",
6363
+ "module": "src/utils/mixins/TabIndexMixin.ts"
6364
+ }
6365
+ },
6269
6366
  {
6270
6367
  "name": "card-title",
6271
6368
  "type": {
@@ -6275,8 +6372,8 @@
6275
6372
  "description": "The title of the card - part of header section",
6276
6373
  "fieldName": "cardTitle",
6277
6374
  "inheritedFrom": {
6278
- "name": "CardComponentMixin",
6279
- "module": "src/utils/mixins/CardComponentMixin.ts"
6375
+ "name": "Card",
6376
+ "module": "src/components/card/card.component.ts"
6280
6377
  }
6281
6378
  },
6282
6379
  {
@@ -6288,8 +6385,8 @@
6288
6385
  "description": "The subtitle of the card - part of header section",
6289
6386
  "fieldName": "subtitle",
6290
6387
  "inheritedFrom": {
6291
- "name": "CardComponentMixin",
6292
- "module": "src/utils/mixins/CardComponentMixin.ts"
6388
+ "name": "Card",
6389
+ "module": "src/components/card/card.component.ts"
6293
6390
  }
6294
6391
  },
6295
6392
  {
@@ -6301,8 +6398,8 @@
6301
6398
  "description": "The image source URL to render on the card",
6302
6399
  "fieldName": "imageSrc",
6303
6400
  "inheritedFrom": {
6304
- "name": "CardComponentMixin",
6305
- "module": "src/utils/mixins/CardComponentMixin.ts"
6401
+ "name": "Card",
6402
+ "module": "src/components/card/card.component.ts"
6306
6403
  }
6307
6404
  },
6308
6405
  {
@@ -6314,8 +6411,8 @@
6314
6411
  "description": "The image alt for accessibility support",
6315
6412
  "fieldName": "imageAlt",
6316
6413
  "inheritedFrom": {
6317
- "name": "CardComponentMixin",
6318
- "module": "src/utils/mixins/CardComponentMixin.ts"
6414
+ "name": "Card",
6415
+ "module": "src/components/card/card.component.ts"
6319
6416
  }
6320
6417
  },
6321
6418
  {
@@ -6327,8 +6424,8 @@
6327
6424
  "default": "'border'",
6328
6425
  "fieldName": "variant",
6329
6426
  "inheritedFrom": {
6330
- "name": "CardComponentMixin",
6331
- "module": "src/utils/mixins/CardComponentMixin.ts"
6427
+ "name": "Card",
6428
+ "module": "src/components/card/card.component.ts"
6332
6429
  }
6333
6430
  },
6334
6431
  {
@@ -6340,8 +6437,8 @@
6340
6437
  "default": "'vertical'",
6341
6438
  "fieldName": "orientation",
6342
6439
  "inheritedFrom": {
6343
- "name": "CardComponentMixin",
6344
- "module": "src/utils/mixins/CardComponentMixin.ts"
6440
+ "name": "Card",
6441
+ "module": "src/components/card/card.component.ts"
6345
6442
  }
6346
6443
  },
6347
6444
  {
@@ -6353,8 +6450,8 @@
6353
6450
  "default": "'span'",
6354
6451
  "fieldName": "titleTagName",
6355
6452
  "inheritedFrom": {
6356
- "name": "CardComponentMixin",
6357
- "module": "src/utils/mixins/CardComponentMixin.ts"
6453
+ "name": "Card",
6454
+ "module": "src/components/card/card.component.ts"
6358
6455
  }
6359
6456
  },
6360
6457
  {
@@ -6366,8 +6463,8 @@
6366
6463
  "default": "'span'",
6367
6464
  "fieldName": "subtitleTagName",
6368
6465
  "inheritedFrom": {
6369
- "name": "CardComponentMixin",
6370
- "module": "src/utils/mixins/CardComponentMixin.ts"
6466
+ "name": "Card",
6467
+ "module": "src/components/card/card.component.ts"
6371
6468
  }
6372
6469
  },
6373
6470
  {
@@ -6378,125 +6475,28 @@
6378
6475
  "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
6379
6476
  "fieldName": "iconName",
6380
6477
  "inheritedFrom": {
6381
- "name": "CardComponentMixin",
6382
- "module": "src/utils/mixins/CardComponentMixin.ts"
6383
- }
6384
- },
6385
- {
6386
- "name": "autofocus",
6387
- "type": {
6388
- "text": "boolean"
6389
- },
6390
- "default": "false",
6391
- "description": "This property indicates whether the element should receive focus automatically when it is rendered.",
6392
- "fieldName": "autofocus",
6393
- "inheritedFrom": {
6394
- "name": "Buttonsimple",
6395
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6396
- }
6397
- },
6398
- {
6399
- "name": "tabIndex",
6400
- "type": {
6401
- "text": "number"
6402
- },
6403
- "default": "0",
6404
- "description": "This property specifies the tab order of the element.",
6405
- "fieldName": "tabIndex",
6406
- "inheritedFrom": {
6407
- "name": "Buttonsimple",
6408
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6409
- }
6410
- },
6411
- {
6412
- "name": "disabled",
6413
- "type": {
6414
- "text": "boolean | undefined"
6415
- },
6416
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
6417
- "default": "undefined",
6418
- "fieldName": "disabled",
6419
- "inheritedFrom": {
6420
- "name": "Buttonsimple",
6421
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6422
- }
6423
- },
6424
- {
6425
- "name": "active",
6426
- "type": {
6427
- "text": "boolean | undefined"
6428
- },
6429
- "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
6430
- "default": "undefined",
6431
- "fieldName": "active",
6432
- "inheritedFrom": {
6433
- "name": "Buttonsimple",
6434
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6435
- }
6436
- },
6437
- {
6438
- "name": "soft-disabled",
6439
- "type": {
6440
- "text": "boolean | undefined"
6441
- },
6442
- "description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
6443
- "default": "undefined",
6444
- "fieldName": "softDisabled",
6445
- "inheritedFrom": {
6446
- "name": "Buttonsimple",
6447
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6448
- }
6449
- },
6450
- {
6451
- "name": "size",
6452
- "type": {
6453
- "text": "ButtonSize"
6454
- },
6455
- "description": "Simplebutton size is a super set of all the sizes supported by children components.",
6456
- "default": "32",
6457
- "fieldName": "size",
6458
- "inheritedFrom": {
6459
- "name": "Buttonsimple",
6460
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6461
- }
6462
- },
6463
- {
6464
- "name": "role",
6465
- "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
6466
- "default": "button",
6467
- "fieldName": "role",
6468
- "inheritedFrom": {
6469
- "name": "Buttonsimple",
6470
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6478
+ "name": "Card",
6479
+ "module": "src/components/card/card.component.ts"
6471
6480
  }
6472
- },
6481
+ }
6482
+ ],
6483
+ "mixins": [
6473
6484
  {
6474
- "name": "ariaStateKey",
6475
- "type": {
6476
- "text": "string | undefined"
6477
- },
6478
- "description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
6479
- "default": "'aria-pressed' (when)",
6480
- "fieldName": "ariaStateKey",
6481
- "inheritedFrom": {
6482
- "name": "Buttonsimple",
6483
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6484
- }
6485
+ "name": "DisabledMixin",
6486
+ "module": "/src/utils/mixins/DisabledMixin"
6485
6487
  },
6486
6488
  {
6487
- "name": "type",
6488
- "type": {
6489
- "text": "ButtonType"
6490
- },
6491
- "description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
6492
- "default": "button",
6493
- "fieldName": "type",
6494
- "inheritedFrom": {
6495
- "name": "Buttonsimple",
6496
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
6497
- }
6489
+ "name": "TabIndexMixin",
6490
+ "module": "/src/utils/mixins/TabIndexMixin"
6498
6491
  }
6499
- ]
6492
+ ],
6493
+ "superclass": {
6494
+ "name": "Card",
6495
+ "module": "/src/components/card/card.component"
6496
+ },
6497
+ "tagName": "mdc-cardradio",
6498
+ "jsDoc": "/**\n * cardradio component extends `mdc-card` and supports radio selection interaction addtionally.\n *\n * While using this component within a form or group of cards, make sure cards are in a role = \"radio-group\".\n * This card would have events for selected and unselected (similar to radio)\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * Make sure to pass the `card-title` mandatorily for this card.\n *\n * @tagname mdc-cardradio\n *\n * @dependency mdc-icon\n * @dependency mdc-staticradio\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It toggles the checked state when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It toggles the checked state when space key is used.\n * @event change - (React: onChange) Event that gets dispatched when the card state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
6499
+ "customElement": true
6500
6500
  }
6501
6501
  ],
6502
6502
  "exports": [
@@ -6504,8 +6504,8 @@
6504
6504
  "kind": "js",
6505
6505
  "name": "default",
6506
6506
  "declaration": {
6507
- "name": "CardButton",
6508
- "module": "components/cardbutton/cardbutton.component.js"
6507
+ "name": "CardRadio",
6508
+ "module": "components/cardradio/cardradio.component.js"
6509
6509
  }
6510
6510
  }
6511
6511
  ]
@@ -9435,36 +9435,282 @@
9435
9435
  {
9436
9436
  "name": "aria-describedby",
9437
9437
  "type": {
9438
- "text": "string | null"
9438
+ "text": "string | null"
9439
+ },
9440
+ "default": "null",
9441
+ "description": "aria-describedby of the popover.",
9442
+ "fieldName": "ariaDescribedby",
9443
+ "inheritedFrom": {
9444
+ "name": "Popover",
9445
+ "module": "src/components/popover/popover.component.ts"
9446
+ }
9447
+ },
9448
+ {
9449
+ "name": "disable-aria-haspopup",
9450
+ "type": {
9451
+ "text": "boolean"
9452
+ },
9453
+ "description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
9454
+ "default": "false",
9455
+ "fieldName": "disableAriaHasPopup",
9456
+ "inheritedFrom": {
9457
+ "name": "Popover",
9458
+ "module": "src/components/popover/popover.component.ts"
9459
+ }
9460
+ }
9461
+ ],
9462
+ "superclass": {
9463
+ "name": "Popover",
9464
+ "module": "/src/components/popover/popover.component"
9465
+ },
9466
+ "tagName": "mdc-coachmark",
9467
+ "jsDoc": "/**\n * Coachmark component based on top of the popover component,\n * with the default value of certain properties changed.\n *\n * @dependency mdc-popover\n *\n * @tagname mdc-coachmark\n *\n * @event shown - (React: onShown) This event is dispatched when the coachmark is shown\n * @event hidden - (React: onHidden) This event is dispatched when the coachmark is hidden\n * @event created - (React: onCreated) This event is dispatched when the coachmark is created (added to the DOM)\n * @event destroyed - (React: onDestroyed) This event is dispatched when the coachmark is\n * destroyed (removed from the DOM)\n *\n * @cssproperty --mdc-popover-arrow-border-radius - radius of the arrow border\n * @cssproperty --mdc-popover-arrow-border - border of the arrow\n * @cssproperty --mdc-popover-primary-background-color - primary background color of the popover\n * @cssproperty --mdc-popover-border-color - border color of the popover\n * @cssproperty --mdc-popover-inverted-background-color - inverted background color of the popover\n * @cssproperty --mdc-popover-inverted-border-color - inverted border color of the popover\n * @cssproperty --mdc-popover-inverted-text-color - inverted text color of the popover\n * @cssproperty --mdc-popover-elevation-3 - elevation of the popover\n *\n * @slot - Default slot for modal container\n *\n */",
9468
+ "customElement": true
9469
+ }
9470
+ ],
9471
+ "exports": [
9472
+ {
9473
+ "kind": "js",
9474
+ "name": "default",
9475
+ "declaration": {
9476
+ "name": "Coachmark",
9477
+ "module": "components/coachmark/coachmark.component.js"
9478
+ }
9479
+ }
9480
+ ]
9481
+ },
9482
+ {
9483
+ "kind": "javascript-module",
9484
+ "path": "components/divider/divider.component.js",
9485
+ "declarations": [
9486
+ {
9487
+ "kind": "class",
9488
+ "description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
9489
+ "name": "Divider",
9490
+ "cssProperties": [
9491
+ {
9492
+ "description": "background color of the divider",
9493
+ "name": "--mdc-divider-background-color"
9494
+ },
9495
+ {
9496
+ "description": "width of the divider",
9497
+ "name": "--mdc-divider-width"
9498
+ },
9499
+ {
9500
+ "description": "gradient of the horizontal divider",
9501
+ "name": "--mdc-divider-horizontal-gradient"
9502
+ },
9503
+ {
9504
+ "description": "gradient of the vertical divider",
9505
+ "name": "--mdc-divider-vertical-gradient"
9506
+ },
9507
+ {
9508
+ "description": "font size of label in the text divider",
9509
+ "name": "--mdc-divider-text-size"
9510
+ },
9511
+ {
9512
+ "description": "font color of label in the text divider",
9513
+ "name": "--mdc-divider-text-color"
9514
+ },
9515
+ {
9516
+ "description": "left and right margin of label in the text divider",
9517
+ "name": "--mdc-divider-text-margin"
9518
+ },
9519
+ {
9520
+ "description": "line height of label in the text divider",
9521
+ "name": "--mdc-divider-text-line-height"
9522
+ },
9523
+ {
9524
+ "description": "background color of the grabber button in rest state",
9525
+ "name": "--mdc-divider-grabber-button-background-color-normal"
9526
+ },
9527
+ {
9528
+ "description": "background color of the grabber button in hover state",
9529
+ "name": "--mdc-divider-grabber-button-background-color-hover"
9530
+ },
9531
+ {
9532
+ "description": "background color of the grabber button in pressed state",
9533
+ "name": "--mdc-divider-grabber-button-background-color-pressed"
9534
+ },
9535
+ {
9536
+ "description": "border color of the grabber button",
9537
+ "name": "--mdc-divider-grabber-button-border-color"
9538
+ },
9539
+ {
9540
+ "description": "border radius of the grabber button",
9541
+ "name": "--mdc-divider-grabber-button-border-radius"
9542
+ }
9543
+ ],
9544
+ "members": [
9545
+ {
9546
+ "kind": "field",
9547
+ "name": "orientation",
9548
+ "type": {
9549
+ "text": "DividerOrientation"
9550
+ },
9551
+ "description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
9552
+ "default": "horizontal",
9553
+ "attribute": "orientation",
9554
+ "reflects": true
9555
+ },
9556
+ {
9557
+ "kind": "field",
9558
+ "name": "variant",
9559
+ "type": {
9560
+ "text": "DividerVariant"
9561
+ },
9562
+ "description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
9563
+ "default": "solid",
9564
+ "attribute": "variant",
9565
+ "reflects": true
9566
+ },
9567
+ {
9568
+ "kind": "field",
9569
+ "name": "arrowDirection",
9570
+ "type": {
9571
+ "text": "Directions"
9572
+ },
9573
+ "description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
9574
+ "default": "'negative'",
9575
+ "attribute": "arrow-direction",
9576
+ "reflects": true
9577
+ },
9578
+ {
9579
+ "kind": "field",
9580
+ "name": "buttonPosition",
9581
+ "type": {
9582
+ "text": "Directions"
9583
+ },
9584
+ "description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
9585
+ "default": "'negative'",
9586
+ "attribute": "button-position",
9587
+ "reflects": true
9588
+ },
9589
+ {
9590
+ "kind": "method",
9591
+ "name": "setVariant",
9592
+ "privacy": "private",
9593
+ "parameters": [
9594
+ {
9595
+ "name": "variant",
9596
+ "type": {
9597
+ "text": "DividerVariant"
9598
+ },
9599
+ "description": "The variant to set."
9600
+ }
9601
+ ],
9602
+ "description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
9603
+ },
9604
+ {
9605
+ "kind": "method",
9606
+ "name": "setOrientation",
9607
+ "privacy": "private",
9608
+ "parameters": [
9609
+ {
9610
+ "name": "orientation",
9611
+ "type": {
9612
+ "text": "DividerOrientation"
9613
+ },
9614
+ "description": "The orientation to set."
9615
+ }
9616
+ ],
9617
+ "description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
9618
+ },
9619
+ {
9620
+ "kind": "method",
9621
+ "name": "ensureValidDirections",
9622
+ "privacy": "private",
9623
+ "description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
9624
+ "parameters": [
9625
+ {
9626
+ "description": "The buttonPosition to set.",
9627
+ "name": "buttonPosition"
9628
+ },
9629
+ {
9630
+ "description": "The arrowDirection to set.",
9631
+ "name": "arrowDirection"
9632
+ }
9633
+ ]
9634
+ },
9635
+ {
9636
+ "kind": "method",
9637
+ "name": "setGrabberButton",
9638
+ "privacy": "private",
9639
+ "return": {
9640
+ "type": {
9641
+ "text": "void"
9642
+ }
9643
+ },
9644
+ "description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
9645
+ },
9646
+ {
9647
+ "kind": "method",
9648
+ "name": "getArrowIcon",
9649
+ "privacy": "private",
9650
+ "return": {
9651
+ "type": {
9652
+ "text": ""
9653
+ }
9654
+ },
9655
+ "description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
9656
+ },
9657
+ {
9658
+ "kind": "method",
9659
+ "name": "inferDividerType",
9660
+ "privacy": "private",
9661
+ "description": "Infers the type of divider based on the kind of slot present.",
9662
+ "parameters": [
9663
+ {
9664
+ "description": "default slot of divider",
9665
+ "name": "slot"
9666
+ }
9667
+ ]
9668
+ }
9669
+ ],
9670
+ "attributes": [
9671
+ {
9672
+ "name": "orientation",
9673
+ "type": {
9674
+ "text": "DividerOrientation"
9675
+ },
9676
+ "description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
9677
+ "default": "horizontal",
9678
+ "fieldName": "orientation"
9679
+ },
9680
+ {
9681
+ "name": "variant",
9682
+ "type": {
9683
+ "text": "DividerVariant"
9684
+ },
9685
+ "description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
9686
+ "default": "solid",
9687
+ "fieldName": "variant"
9688
+ },
9689
+ {
9690
+ "name": "arrow-direction",
9691
+ "type": {
9692
+ "text": "Directions"
9439
9693
  },
9440
- "default": "null",
9441
- "description": "aria-describedby of the popover.",
9442
- "fieldName": "ariaDescribedby",
9443
- "inheritedFrom": {
9444
- "name": "Popover",
9445
- "module": "src/components/popover/popover.component.ts"
9446
- }
9694
+ "description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
9695
+ "default": "'negative'",
9696
+ "fieldName": "arrowDirection"
9447
9697
  },
9448
9698
  {
9449
- "name": "disable-aria-haspopup",
9699
+ "name": "button-position",
9450
9700
  "type": {
9451
- "text": "boolean"
9701
+ "text": "Directions"
9452
9702
  },
9453
- "description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
9454
- "default": "false",
9455
- "fieldName": "disableAriaHasPopup",
9456
- "inheritedFrom": {
9457
- "name": "Popover",
9458
- "module": "src/components/popover/popover.component.ts"
9459
- }
9703
+ "description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
9704
+ "default": "'negative'",
9705
+ "fieldName": "buttonPosition"
9460
9706
  }
9461
9707
  ],
9462
9708
  "superclass": {
9463
- "name": "Popover",
9464
- "module": "/src/components/popover/popover.component"
9709
+ "name": "Component",
9710
+ "module": "/src/models"
9465
9711
  },
9466
- "tagName": "mdc-coachmark",
9467
- "jsDoc": "/**\n * Coachmark component based on top of the popover component,\n * with the default value of certain properties changed.\n *\n * @dependency mdc-popover\n *\n * @tagname mdc-coachmark\n *\n * @event shown - (React: onShown) This event is dispatched when the coachmark is shown\n * @event hidden - (React: onHidden) This event is dispatched when the coachmark is hidden\n * @event created - (React: onCreated) This event is dispatched when the coachmark is created (added to the DOM)\n * @event destroyed - (React: onDestroyed) This event is dispatched when the coachmark is\n * destroyed (removed from the DOM)\n *\n * @cssproperty --mdc-popover-arrow-border-radius - radius of the arrow border\n * @cssproperty --mdc-popover-arrow-border - border of the arrow\n * @cssproperty --mdc-popover-primary-background-color - primary background color of the popover\n * @cssproperty --mdc-popover-border-color - border color of the popover\n * @cssproperty --mdc-popover-inverted-background-color - inverted background color of the popover\n * @cssproperty --mdc-popover-inverted-border-color - inverted border color of the popover\n * @cssproperty --mdc-popover-inverted-text-color - inverted text color of the popover\n * @cssproperty --mdc-popover-elevation-3 - elevation of the popover\n *\n * @slot - Default slot for modal container\n *\n */",
9712
+ "tagName": "mdc-divider",
9713
+ "jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-background-color-normal - background color of the grabber button\n * in rest state\n * @cssproperty --mdc-divider-grabber-button-background-color-hover - background color of the grabber button\n * in hover state\n * @cssproperty --mdc-divider-grabber-button-background-color-pressed - background color of the grabber button\n * in pressed state\n * @cssproperty --mdc-divider-grabber-button-border-color - border color of the grabber button\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
9468
9714
  "customElement": true
9469
9715
  }
9470
9716
  ],
@@ -9473,8 +9719,8 @@
9473
9719
  "kind": "js",
9474
9720
  "name": "default",
9475
9721
  "declaration": {
9476
- "name": "Coachmark",
9477
- "module": "components/coachmark/coachmark.component.js"
9722
+ "name": "Divider",
9723
+ "module": "components/divider/divider.component.js"
9478
9724
  }
9479
9725
  }
9480
9726
  ]
@@ -10377,404 +10623,158 @@
10377
10623
  "name": "size",
10378
10624
  "type": {
10379
10625
  "text": "DialogSize"
10380
- },
10381
- "description": "The size of the dialog, can be 'small' (432px width), 'medium' (656px width), 'large' (992px width), 'xlarge' (90% width) or 'fullscreen' (100% width).",
10382
- "default": "small",
10383
- "fieldName": "size"
10384
- },
10385
- {
10386
- "name": "variant",
10387
- "type": {
10388
- "text": "DialogVariant"
10389
- },
10390
- "description": "The variant of the dialog, can be 'default' or 'promotional'",
10391
- "default": "default",
10392
- "fieldName": "variant"
10393
- },
10394
- {
10395
- "name": "close-button-aria-label",
10396
- "type": {
10397
- "text": "string | null"
10398
- },
10399
- "default": "null",
10400
- "description": "Defines a string value for the aria-label attribute for close button accessibility",
10401
- "fieldName": "closeButtonAriaLabel"
10402
- },
10403
- {
10404
- "name": "aria-label",
10405
- "type": {
10406
- "text": "string | null"
10407
- },
10408
- "default": "null",
10409
- "description": "Defines a string value for the aria-label attribute when header is not used",
10410
- "fieldName": "ariaLabel"
10411
- },
10412
- {
10413
- "name": "aria-labelledby",
10414
- "type": {
10415
- "text": "string | null"
10416
- },
10417
- "default": "null",
10418
- "description": "Defines a string value for the aria-labelledby attribute that refers to the element\nlabeling the dialog for accessibility",
10419
- "fieldName": "ariaLabelledby"
10420
- },
10421
- {
10422
- "name": "aria-describedby",
10423
- "type": {
10424
- "text": "string | null"
10425
- },
10426
- "default": "null",
10427
- "description": "Defines a string value for the aria-describedby attribute that refers to the element\ndescribing the dialog for accessibility",
10428
- "fieldName": "ariaDescribedBy"
10429
- },
10430
- {
10431
- "name": "aria-description",
10432
- "type": {
10433
- "text": "string | null"
10434
- },
10435
- "default": "null",
10436
- "description": "Defines a string value for the aria-description attribute that refers to the element\ndescribing the dialog for accessibility",
10437
- "fieldName": "ariaDescription"
10438
- },
10439
- {
10440
- "name": "header-text",
10441
- "type": {
10442
- "text": "string | undefined"
10443
- },
10444
- "description": "Defines a string value to display as the title of the dialog",
10445
- "fieldName": "headerText"
10446
- },
10447
- {
10448
- "name": "description-text",
10449
- "type": {
10450
- "text": "string | undefined"
10451
- },
10452
- "description": "Defines a string value to display as the under-header description of the dialog",
10453
- "fieldName": "descriptionText"
10454
- },
10455
- {
10456
- "name": "header-tag-name",
10457
- "type": {
10458
- "text": "string"
10459
- },
10460
- "description": "The html tag to be used for the header text",
10461
- "fieldName": "headerTagName"
10462
- },
10463
- {
10464
- "name": "description-tag-name",
10465
- "type": {
10466
- "text": "string"
10467
- },
10468
- "description": "The html tag to be used for the below-header description text",
10469
- "fieldName": "descriptionTagName"
10470
- },
10471
- {
10472
- "name": "role",
10473
- "type": {
10474
- "text": "DialogRole"
10475
- },
10476
- "description": "Role of the dialog",
10477
- "default": "dialog",
10478
- "fieldName": "role"
10479
- },
10480
- {
10481
- "name": "disable-aria-haspopup",
10482
- "type": {
10483
- "text": "boolean"
10484
- },
10485
- "description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
10486
- "default": "false",
10487
- "fieldName": "disableAriaHasPopup"
10488
- },
10489
- {
10490
- "name": "focus-trap",
10491
- "type": {
10492
- "text": "boolean"
10493
- },
10494
- "description": "Determines whether the focus trap is enabled.\nIf true, focus will be restricted to the content within this component.\n\nNOTE: this should only be disabled in rare cases! By default a Modal Dialog\nshould trap focus always.",
10495
- "default": "true",
10496
- "fieldName": "focusTrap"
10497
- },
10498
- {
10499
- "name": "should-focus-trap-wrap",
10500
- "type": {
10501
- "text": "boolean"
10502
- },
10503
- "default": "true",
10504
- "description": "Determines whether focus should wrap around when reaching the first or last focusable element.\nIf true, focus will cycle from end to start and vice versa.\n\nThis only applies when `focusTrap` is true.",
10505
- "fieldName": "shouldFocusTrapWrap",
10506
- "inheritedFrom": {
10507
- "name": "FocusTrapMixin",
10508
- "module": "src/utils/mixins/FocusTrapMixin.ts"
10509
- }
10510
- }
10511
- ],
10512
- "mixins": [
10513
- {
10514
- "name": "PreventScrollMixin",
10515
- "module": "/src/utils/mixins/PreventScrollMixin"
10516
- },
10517
- {
10518
- "name": "FocusTrapMixin",
10519
- "module": "/src/utils/mixins/FocusTrapMixin"
10520
- },
10521
- {
10522
- "name": "CardAndDialogFooterMixin",
10523
- "module": "/src/utils/mixins/CardAndDialogFooterMixin"
10524
- }
10525
- ],
10526
- "superclass": {
10527
- "name": "Component",
10528
- "module": "/src/models"
10529
- },
10530
- "tagName": "mdc-dialog",
10531
- "jsDoc": "/**\n * Dialog component is a modal dialog that can be used to display information or prompt the user for input.\n * It can be used to create custom dialogs where content for the body and footer actions is provided by the consumer.\n * The dialog is available in 5 sizes: small, medium, large, xlarge and fullscreen. It may also receive custom styling/sizing.\n * The dialog interrupts the user and will block interaction with the rest of the application until it is closed.\n *\n * The dialog can be controlled solely through the `visible` property, no trigger element is required.\n * If a `triggerId` is provided, the dialog will manage focus with that element, otherwise it will\n * remember the previously focused element before the dialog was opened.\n *\n * The dialog is a controlled component, meaning it does not have its own state management for visibility.\n * Use the `visible` property to control the visibility of the dialog.\n * Use the `onClose` event to handle the close action of the dialog (fired when Close button is clicked\n * or Escape is pressed).\n *\n * Dialog component have 2 variants: default and promotional.\n *\n * **Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n *\n * - The dialog should have an aria-label or aria-labelledby attribute to provide a label for screen readers.\n * - Use aria-labelledby to reference the ID of the element that labels the dialog when there is no visible title.\n *\n * **Note: Programmatic show/hide requires the ? prefix on the visible attribute**\n * - Use `?visible=true/false` as an attribute instead of `visible=true/false`\n * - Reference docs for more info: https://lit.dev/docs/templates/expressions/#boolean-attribute-expressions\n *\n * @dependency mdc-button\n * @dependency mdc-text\n *\n * @tagname mdc-dialog\n *\n * @event shown - (React: onShown) Dispatched when the dialog is shown\n * @event hidden - (React: onHidden) Dispatched when the dialog is hidden\n * @event created - (React: onCreated) Dispatched when the dialog is created (added to the DOM)\n * @event destroyed - (React: onDestroyed) Dispatched when the dialog is destroyed (removed from the DOM)\n * @event close - (React: onClose) Dispatched when the Close Button is clicked or Escape key is pressed\n * (this does not hide the dialog)\n *\n * @cssproperty --mdc-dialog-primary-background-color - primary background color of the dialog\n * @cssproperty --mdc-dialog-border-color - border color of the dialog\n * @cssproperty --mdc-dialog-header-text-color - text color of the header/title of the dialog\n * @cssproperty --mdc-dialog-description-text-color - text color of the below header description of the dialog\n * @cssproperty --mdc-dialog-elevation-3 - elevation of the dialog\n * @cssproperty --mdc-dialog-width - width of the dialog\n *\n * @slot header-prefix - Slot for the dialog header content. This can be used to pass custom header content.\n * @slot dialog-body - Slot for the dialog body content\n * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-secondary - This slot is for passing secondary variant of `mdc-button` component\n * within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of\n * `mdc-button` component within the footer section.\n * @slot footer - This slot is for passing custom footer content. Only use this if really needed,\n * using the footer-link and footer-button slots is preferred\n */",
10532
- "customElement": true
10533
- }
10534
- ],
10535
- "exports": [
10536
- {
10537
- "kind": "js",
10538
- "name": "default",
10539
- "declaration": {
10540
- "name": "Dialog",
10541
- "module": "components/dialog/dialog.component.js"
10542
- }
10543
- }
10544
- ]
10545
- },
10546
- {
10547
- "kind": "javascript-module",
10548
- "path": "components/divider/divider.component.js",
10549
- "declarations": [
10550
- {
10551
- "kind": "class",
10552
- "description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
10553
- "name": "Divider",
10554
- "cssProperties": [
10555
- {
10556
- "description": "background color of the divider",
10557
- "name": "--mdc-divider-background-color"
10558
- },
10559
- {
10560
- "description": "width of the divider",
10561
- "name": "--mdc-divider-width"
10562
- },
10563
- {
10564
- "description": "gradient of the horizontal divider",
10565
- "name": "--mdc-divider-horizontal-gradient"
10566
- },
10567
- {
10568
- "description": "gradient of the vertical divider",
10569
- "name": "--mdc-divider-vertical-gradient"
10570
- },
10571
- {
10572
- "description": "font size of label in the text divider",
10573
- "name": "--mdc-divider-text-size"
10574
- },
10575
- {
10576
- "description": "font color of label in the text divider",
10577
- "name": "--mdc-divider-text-color"
10578
- },
10579
- {
10580
- "description": "left and right margin of label in the text divider",
10581
- "name": "--mdc-divider-text-margin"
10582
- },
10583
- {
10584
- "description": "line height of label in the text divider",
10585
- "name": "--mdc-divider-text-line-height"
10586
- },
10587
- {
10588
- "description": "background color of the grabber button in rest state",
10589
- "name": "--mdc-divider-grabber-button-background-color-normal"
10590
- },
10591
- {
10592
- "description": "background color of the grabber button in hover state",
10593
- "name": "--mdc-divider-grabber-button-background-color-hover"
10594
- },
10595
- {
10596
- "description": "background color of the grabber button in pressed state",
10597
- "name": "--mdc-divider-grabber-button-background-color-pressed"
10626
+ },
10627
+ "description": "The size of the dialog, can be 'small' (432px width), 'medium' (656px width), 'large' (992px width), 'xlarge' (90% width) or 'fullscreen' (100% width).",
10628
+ "default": "small",
10629
+ "fieldName": "size"
10598
10630
  },
10599
10631
  {
10600
- "description": "border color of the grabber button",
10601
- "name": "--mdc-divider-grabber-button-border-color"
10632
+ "name": "variant",
10633
+ "type": {
10634
+ "text": "DialogVariant"
10635
+ },
10636
+ "description": "The variant of the dialog, can be 'default' or 'promotional'",
10637
+ "default": "default",
10638
+ "fieldName": "variant"
10602
10639
  },
10603
10640
  {
10604
- "description": "border radius of the grabber button",
10605
- "name": "--mdc-divider-grabber-button-border-radius"
10606
- }
10607
- ],
10608
- "members": [
10609
- {
10610
- "kind": "field",
10611
- "name": "orientation",
10641
+ "name": "close-button-aria-label",
10612
10642
  "type": {
10613
- "text": "DividerOrientation"
10643
+ "text": "string | null"
10614
10644
  },
10615
- "description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
10616
- "default": "horizontal",
10617
- "attribute": "orientation",
10618
- "reflects": true
10645
+ "default": "null",
10646
+ "description": "Defines a string value for the aria-label attribute for close button accessibility",
10647
+ "fieldName": "closeButtonAriaLabel"
10619
10648
  },
10620
10649
  {
10621
- "kind": "field",
10622
- "name": "variant",
10650
+ "name": "aria-label",
10623
10651
  "type": {
10624
- "text": "DividerVariant"
10652
+ "text": "string | null"
10625
10653
  },
10626
- "description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
10627
- "default": "solid",
10628
- "attribute": "variant",
10629
- "reflects": true
10654
+ "default": "null",
10655
+ "description": "Defines a string value for the aria-label attribute when header is not used",
10656
+ "fieldName": "ariaLabel"
10630
10657
  },
10631
10658
  {
10632
- "kind": "field",
10633
- "name": "arrowDirection",
10659
+ "name": "aria-labelledby",
10634
10660
  "type": {
10635
- "text": "Directions"
10661
+ "text": "string | null"
10636
10662
  },
10637
- "description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
10638
- "default": "'negative'",
10639
- "attribute": "arrow-direction",
10640
- "reflects": true
10663
+ "default": "null",
10664
+ "description": "Defines a string value for the aria-labelledby attribute that refers to the element\nlabeling the dialog for accessibility",
10665
+ "fieldName": "ariaLabelledby"
10641
10666
  },
10642
10667
  {
10643
- "kind": "field",
10644
- "name": "buttonPosition",
10668
+ "name": "aria-describedby",
10645
10669
  "type": {
10646
- "text": "Directions"
10670
+ "text": "string | null"
10647
10671
  },
10648
- "description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
10649
- "default": "'negative'",
10650
- "attribute": "button-position",
10651
- "reflects": true
10672
+ "default": "null",
10673
+ "description": "Defines a string value for the aria-describedby attribute that refers to the element\ndescribing the dialog for accessibility",
10674
+ "fieldName": "ariaDescribedBy"
10652
10675
  },
10653
10676
  {
10654
- "kind": "method",
10655
- "name": "setVariant",
10656
- "privacy": "private",
10657
- "parameters": [
10658
- {
10659
- "name": "variant",
10660
- "type": {
10661
- "text": "DividerVariant"
10662
- },
10663
- "description": "The variant to set."
10664
- }
10665
- ],
10666
- "description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
10677
+ "name": "aria-description",
10678
+ "type": {
10679
+ "text": "string | null"
10680
+ },
10681
+ "default": "null",
10682
+ "description": "Defines a string value for the aria-description attribute that refers to the element\ndescribing the dialog for accessibility",
10683
+ "fieldName": "ariaDescription"
10667
10684
  },
10668
10685
  {
10669
- "kind": "method",
10670
- "name": "setOrientation",
10671
- "privacy": "private",
10672
- "parameters": [
10673
- {
10674
- "name": "orientation",
10675
- "type": {
10676
- "text": "DividerOrientation"
10677
- },
10678
- "description": "The orientation to set."
10679
- }
10680
- ],
10681
- "description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
10686
+ "name": "header-text",
10687
+ "type": {
10688
+ "text": "string | undefined"
10689
+ },
10690
+ "description": "Defines a string value to display as the title of the dialog",
10691
+ "fieldName": "headerText"
10682
10692
  },
10683
10693
  {
10684
- "kind": "method",
10685
- "name": "ensureValidDirections",
10686
- "privacy": "private",
10687
- "description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
10688
- "parameters": [
10689
- {
10690
- "description": "The buttonPosition to set.",
10691
- "name": "buttonPosition"
10692
- },
10693
- {
10694
- "description": "The arrowDirection to set.",
10695
- "name": "arrowDirection"
10696
- }
10697
- ]
10694
+ "name": "description-text",
10695
+ "type": {
10696
+ "text": "string | undefined"
10697
+ },
10698
+ "description": "Defines a string value to display as the under-header description of the dialog",
10699
+ "fieldName": "descriptionText"
10698
10700
  },
10699
10701
  {
10700
- "kind": "method",
10701
- "name": "setGrabberButton",
10702
- "privacy": "private",
10703
- "return": {
10704
- "type": {
10705
- "text": "void"
10706
- }
10702
+ "name": "header-tag-name",
10703
+ "type": {
10704
+ "text": "string"
10707
10705
  },
10708
- "description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
10706
+ "description": "The html tag to be used for the header text",
10707
+ "fieldName": "headerTagName"
10709
10708
  },
10710
10709
  {
10711
- "kind": "method",
10712
- "name": "getArrowIcon",
10713
- "privacy": "private",
10714
- "return": {
10715
- "type": {
10716
- "text": ""
10717
- }
10710
+ "name": "description-tag-name",
10711
+ "type": {
10712
+ "text": "string"
10718
10713
  },
10719
- "description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
10714
+ "description": "The html tag to be used for the below-header description text",
10715
+ "fieldName": "descriptionTagName"
10720
10716
  },
10721
10717
  {
10722
- "kind": "method",
10723
- "name": "inferDividerType",
10724
- "privacy": "private",
10725
- "description": "Infers the type of divider based on the kind of slot present.",
10726
- "parameters": [
10727
- {
10728
- "description": "default slot of divider",
10729
- "name": "slot"
10730
- }
10731
- ]
10732
- }
10733
- ],
10734
- "attributes": [
10735
- {
10736
- "name": "orientation",
10718
+ "name": "role",
10737
10719
  "type": {
10738
- "text": "DividerOrientation"
10720
+ "text": "DialogRole"
10739
10721
  },
10740
- "description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
10741
- "default": "horizontal",
10742
- "fieldName": "orientation"
10722
+ "description": "Role of the dialog",
10723
+ "default": "dialog",
10724
+ "fieldName": "role"
10743
10725
  },
10744
10726
  {
10745
- "name": "variant",
10727
+ "name": "disable-aria-haspopup",
10746
10728
  "type": {
10747
- "text": "DividerVariant"
10729
+ "text": "boolean"
10748
10730
  },
10749
- "description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
10750
- "default": "solid",
10751
- "fieldName": "variant"
10731
+ "description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
10732
+ "default": "false",
10733
+ "fieldName": "disableAriaHasPopup"
10752
10734
  },
10753
10735
  {
10754
- "name": "arrow-direction",
10736
+ "name": "focus-trap",
10755
10737
  "type": {
10756
- "text": "Directions"
10738
+ "text": "boolean"
10757
10739
  },
10758
- "description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
10759
- "default": "'negative'",
10760
- "fieldName": "arrowDirection"
10740
+ "description": "Determines whether the focus trap is enabled.\nIf true, focus will be restricted to the content within this component.\n\nNOTE: this should only be disabled in rare cases! By default a Modal Dialog\nshould trap focus always.",
10741
+ "default": "true",
10742
+ "fieldName": "focusTrap"
10761
10743
  },
10762
10744
  {
10763
- "name": "button-position",
10745
+ "name": "should-focus-trap-wrap",
10764
10746
  "type": {
10765
- "text": "Directions"
10747
+ "text": "boolean"
10766
10748
  },
10767
- "description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
10768
- "default": "'negative'",
10769
- "fieldName": "buttonPosition"
10749
+ "default": "true",
10750
+ "description": "Determines whether focus should wrap around when reaching the first or last focusable element.\nIf true, focus will cycle from end to start and vice versa.\n\nThis only applies when `focusTrap` is true.",
10751
+ "fieldName": "shouldFocusTrapWrap",
10752
+ "inheritedFrom": {
10753
+ "name": "FocusTrapMixin",
10754
+ "module": "src/utils/mixins/FocusTrapMixin.ts"
10755
+ }
10756
+ }
10757
+ ],
10758
+ "mixins": [
10759
+ {
10760
+ "name": "PreventScrollMixin",
10761
+ "module": "/src/utils/mixins/PreventScrollMixin"
10762
+ },
10763
+ {
10764
+ "name": "FocusTrapMixin",
10765
+ "module": "/src/utils/mixins/FocusTrapMixin"
10766
+ },
10767
+ {
10768
+ "name": "CardAndDialogFooterMixin",
10769
+ "module": "/src/utils/mixins/CardAndDialogFooterMixin"
10770
10770
  }
10771
10771
  ],
10772
10772
  "superclass": {
10773
10773
  "name": "Component",
10774
10774
  "module": "/src/models"
10775
10775
  },
10776
- "tagName": "mdc-divider",
10777
- "jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-background-color-normal - background color of the grabber button\n * in rest state\n * @cssproperty --mdc-divider-grabber-button-background-color-hover - background color of the grabber button\n * in hover state\n * @cssproperty --mdc-divider-grabber-button-background-color-pressed - background color of the grabber button\n * in pressed state\n * @cssproperty --mdc-divider-grabber-button-border-color - border color of the grabber button\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
10776
+ "tagName": "mdc-dialog",
10777
+ "jsDoc": "/**\n * Dialog component is a modal dialog that can be used to display information or prompt the user for input.\n * It can be used to create custom dialogs where content for the body and footer actions is provided by the consumer.\n * The dialog is available in 5 sizes: small, medium, large, xlarge and fullscreen. It may also receive custom styling/sizing.\n * The dialog interrupts the user and will block interaction with the rest of the application until it is closed.\n *\n * The dialog can be controlled solely through the `visible` property, no trigger element is required.\n * If a `triggerId` is provided, the dialog will manage focus with that element, otherwise it will\n * remember the previously focused element before the dialog was opened.\n *\n * The dialog is a controlled component, meaning it does not have its own state management for visibility.\n * Use the `visible` property to control the visibility of the dialog.\n * Use the `onClose` event to handle the close action of the dialog (fired when Close button is clicked\n * or Escape is pressed).\n *\n * Dialog component have 2 variants: default and promotional.\n *\n * **Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n *\n * - The dialog should have an aria-label or aria-labelledby attribute to provide a label for screen readers.\n * - Use aria-labelledby to reference the ID of the element that labels the dialog when there is no visible title.\n *\n * **Note: Programmatic show/hide requires the ? prefix on the visible attribute**\n * - Use `?visible=true/false` as an attribute instead of `visible=true/false`\n * - Reference docs for more info: https://lit.dev/docs/templates/expressions/#boolean-attribute-expressions\n *\n * @dependency mdc-button\n * @dependency mdc-text\n *\n * @tagname mdc-dialog\n *\n * @event shown - (React: onShown) Dispatched when the dialog is shown\n * @event hidden - (React: onHidden) Dispatched when the dialog is hidden\n * @event created - (React: onCreated) Dispatched when the dialog is created (added to the DOM)\n * @event destroyed - (React: onDestroyed) Dispatched when the dialog is destroyed (removed from the DOM)\n * @event close - (React: onClose) Dispatched when the Close Button is clicked or Escape key is pressed\n * (this does not hide the dialog)\n *\n * @cssproperty --mdc-dialog-primary-background-color - primary background color of the dialog\n * @cssproperty --mdc-dialog-border-color - border color of the dialog\n * @cssproperty --mdc-dialog-header-text-color - text color of the header/title of the dialog\n * @cssproperty --mdc-dialog-description-text-color - text color of the below header description of the dialog\n * @cssproperty --mdc-dialog-elevation-3 - elevation of the dialog\n * @cssproperty --mdc-dialog-width - width of the dialog\n *\n * @slot header-prefix - Slot for the dialog header content. This can be used to pass custom header content.\n * @slot dialog-body - Slot for the dialog body content\n * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-secondary - This slot is for passing secondary variant of `mdc-button` component\n * within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of\n * `mdc-button` component within the footer section.\n * @slot footer - This slot is for passing custom footer content. Only use this if really needed,\n * using the footer-link and footer-button slots is preferred\n */",
10778
10778
  "customElement": true
10779
10779
  }
10780
10780
  ],
@@ -10783,8 +10783,8 @@
10783
10783
  "kind": "js",
10784
10784
  "name": "default",
10785
10785
  "declaration": {
10786
- "name": "Divider",
10787
- "module": "components/divider/divider.component.js"
10786
+ "name": "Dialog",
10787
+ "module": "components/dialog/dialog.component.js"
10788
10788
  }
10789
10789
  }
10790
10790
  ]
@@ -29198,7 +29198,7 @@
29198
29198
  "declarations": [
29199
29199
  {
29200
29200
  "kind": "class",
29201
- "description": "The mdc-select component is a dropdown selection control that allows users to pick an option from a predefined list.\nIt is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.\nThe component ensures accessibility and usability while handling various use cases,\nincluding long text truncation with tooltip support.",
29201
+ "description": "The mdc-select component is a dropdown selection control that allows users to pick an option from a predefined list.\nIt is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.\nThe component ensures accessibility and usability while handling various use cases,\nincluding long text truncation with tooltip support.\n\nTo set a default option, use the `selected` attribute on the `mdc-option` element.",
29202
29202
  "name": "Select",
29203
29203
  "slots": [
29204
29204
  {
@@ -29341,6 +29341,24 @@
29341
29341
  }
29342
29342
  ]
29343
29343
  },
29344
+ {
29345
+ "kind": "method",
29346
+ "name": "dispatchInput",
29347
+ "privacy": "private",
29348
+ "return": {
29349
+ "type": {
29350
+ "text": "void"
29351
+ }
29352
+ },
29353
+ "parameters": [
29354
+ {
29355
+ "name": "value",
29356
+ "type": {
29357
+ "text": "string"
29358
+ }
29359
+ }
29360
+ ]
29361
+ },
29344
29362
  {
29345
29363
  "kind": "method",
29346
29364
  "name": "handlePopoverOnOpen",
@@ -29864,6 +29882,14 @@
29864
29882
  "description": "(React: onChange) This event is dispatched when the select is changed.",
29865
29883
  "reactName": "onChange"
29866
29884
  },
29885
+ {
29886
+ "name": "input",
29887
+ "type": {
29888
+ "text": "CustomEvent"
29889
+ },
29890
+ "description": "(React: onInput) This event is dispatched when the select is changed.",
29891
+ "reactName": "onInput"
29892
+ },
29867
29893
  {
29868
29894
  "description": "(React: onClick) This event is dispatched when the select is clicked.",
29869
29895
  "name": "click",
@@ -30086,7 +30112,7 @@
30086
30112
  "module": "/src/components/formfieldwrapper/formfieldwrapper.component"
30087
30113
  },
30088
30114
  "tagName": "mdc-select",
30089
- "jsDoc": "/**\n * The mdc-select component is a dropdown selection control that allows users to pick an option from a predefined list.\n * It is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.\n * The component ensures accessibility and usability while handling various use cases,\n * including long text truncation with tooltip support.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-popover\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @tagname mdc-select\n *\n * @slot default - This is a default/unnamed slot for options and/or option group.\n *\n * @event click - (React: onClick) This event is dispatched when the select is clicked.\n * @event change - (React: onChange) This event is dispatched when the select is changed.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the select.\n * @event focus - (React: onFocus) This event is dispatched when the select receives focus.\n */",
30115
+ "jsDoc": "/**\n * The mdc-select component is a dropdown selection control that allows users to pick an option from a predefined list.\n * It is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.\n * The component ensures accessibility and usability while handling various use cases,\n * including long text truncation with tooltip support.\n *\n * To set a default option, use the `selected` attribute on the `mdc-option` element.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-popover\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @tagname mdc-select\n *\n * @slot default - This is a default/unnamed slot for options and/or option group.\n *\n * @event click - (React: onClick) This event is dispatched when the select is clicked.\n * @event change - (React: onChange) This event is dispatched when the select is changed.\n * @event input - (React: onInput) This event is dispatched when the select is changed.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the select.\n * @event focus - (React: onFocus) This event is dispatched when the select receives focus.\n */",
30090
30116
  "customElement": true
30091
30117
  }
30092
30118
  ],