@momentum-design/components 0.122.2 → 0.122.4

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.
@@ -7691,317 +7691,318 @@
7691
7691
  },
7692
7692
  {
7693
7693
  "kind": "javascript-module",
7694
- "path": "components/cardradio/cardradio.component.js",
7694
+ "path": "components/cardbutton/cardbutton.component.js",
7695
7695
  "declarations": [
7696
7696
  {
7697
7697
  "kind": "class",
7698
- "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.",
7699
- "name": "CardRadio",
7698
+ "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.",
7699
+ "name": "CardButton",
7700
7700
  "cssProperties": [
7701
7701
  {
7702
7702
  "description": "The width of the card",
7703
- "name": "--mdc-card-width",
7703
+ "name": "--mdc-card-width"
7704
+ },
7705
+ {
7706
+ "description": "Height for button size",
7707
+ "name": "--mdc-button-height",
7704
7708
  "inheritedFrom": {
7705
- "name": "Card",
7706
- "module": "src/components/card/card.component.ts"
7709
+ "name": "Buttonsimple",
7710
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
7707
7711
  }
7708
- }
7709
- ],
7710
- "cssParts": [
7712
+ },
7711
7713
  {
7712
- "description": "The header part of the card",
7713
- "name": "header",
7714
+ "description": "Background color of the button",
7715
+ "name": "--mdc-button-background",
7714
7716
  "inheritedFrom": {
7715
- "name": "Card",
7716
- "module": "src/components/card/card.component.ts"
7717
+ "name": "Buttonsimple",
7718
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
7717
7719
  }
7718
7720
  },
7719
7721
  {
7720
- "description": "The icon part of the card header",
7721
- "name": "icon",
7722
+ "description": "Borer color of the button",
7723
+ "name": "--mdc-button-border-color",
7722
7724
  "inheritedFrom": {
7723
- "name": "Card",
7724
- "module": "src/components/card/card.component.ts"
7725
+ "name": "Buttonsimple",
7726
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
7725
7727
  }
7726
7728
  },
7727
7729
  {
7728
- "description": "The body part of the card",
7729
- "name": "body",
7730
+ "description": "Text color of the button",
7731
+ "name": "--mdc-button-text-color",
7730
7732
  "inheritedFrom": {
7731
- "name": "Card",
7732
- "module": "src/components/card/card.component.ts"
7733
+ "name": "Buttonsimple",
7734
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
7733
7735
  }
7736
+ }
7737
+ ],
7738
+ "cssParts": [
7739
+ {
7740
+ "description": "The header part of the card",
7741
+ "name": "header"
7742
+ },
7743
+ {
7744
+ "description": "The icon part of the card header",
7745
+ "name": "icon"
7746
+ },
7747
+ {
7748
+ "description": "The body part of the card",
7749
+ "name": "body"
7734
7750
  },
7735
7751
  {
7736
7752
  "description": "The image part of the card",
7737
- "name": "image",
7738
- "inheritedFrom": {
7739
- "name": "Card",
7740
- "module": "src/components/card/card.component.ts"
7741
- }
7753
+ "name": "image"
7742
7754
  },
7743
7755
  {
7744
7756
  "description": "The footer part of the card",
7745
- "name": "footer",
7746
- "inheritedFrom": {
7747
- "name": "Card",
7748
- "module": "src/components/card/card.component.ts"
7749
- }
7757
+ "name": "footer"
7750
7758
  },
7751
7759
  {
7752
7760
  "description": "The link part of the card footer",
7753
- "name": "footer-link",
7754
- "inheritedFrom": {
7755
- "name": "Card",
7756
- "module": "src/components/card/card.component.ts"
7757
- }
7761
+ "name": "footer-link"
7758
7762
  },
7759
7763
  {
7760
7764
  "description": "The primary button part of the card footer",
7761
- "name": "footer-button-primary",
7762
- "inheritedFrom": {
7763
- "name": "Card",
7764
- "module": "src/components/card/card.component.ts"
7765
- }
7765
+ "name": "footer-button-primary"
7766
7766
  },
7767
7767
  {
7768
7768
  "description": "The secondary button part of the card footer",
7769
- "name": "footer-button-secondary",
7770
- "inheritedFrom": {
7771
- "name": "Card",
7772
- "module": "src/components/card/card.component.ts"
7773
- }
7769
+ "name": "footer-button-secondary"
7774
7770
  },
7775
7771
  {
7776
7772
  "description": "The icon button part of the card header",
7777
- "name": "icon-button",
7778
- "inheritedFrom": {
7779
- "name": "Card",
7780
- "module": "src/components/card/card.component.ts"
7781
- }
7773
+ "name": "icon-button"
7782
7774
  },
7783
7775
  {
7784
7776
  "description": "The text part of the card",
7785
- "name": "text",
7786
- "inheritedFrom": {
7787
- "name": "Card",
7788
- "module": "src/components/card/card.component.ts"
7789
- }
7790
- },
7791
- {
7792
- "description": "The check part of the card",
7793
- "name": "check"
7794
- },
7795
- {
7796
- "description": "The check icon part of the card",
7797
- "name": "check-icon"
7798
- },
7799
- {
7800
- "description": "The check icon button part of the card",
7801
- "name": "check-icon-button"
7777
+ "name": "text"
7802
7778
  }
7803
7779
  ],
7804
7780
  "slots": [
7805
7781
  {
7806
7782
  "description": "This slot is for passing the content before the body",
7807
- "name": "before-body",
7808
- "inheritedFrom": {
7809
- "name": "Card",
7810
- "module": "src/components/card/card.component.ts"
7811
- }
7783
+ "name": "before-body"
7812
7784
  },
7813
7785
  {
7814
7786
  "description": "This slot is for passing the text content for the card",
7815
- "name": "body",
7816
- "inheritedFrom": {
7817
- "name": "Card",
7818
- "module": "src/components/card/card.component.ts"
7819
- }
7787
+ "name": "body"
7820
7788
  },
7821
7789
  {
7822
7790
  "description": "This slot is for passing the content after the body",
7823
- "name": "after-body",
7824
- "inheritedFrom": {
7825
- "name": "Card",
7826
- "module": "src/components/card/card.component.ts"
7827
- }
7791
+ "name": "after-body"
7828
7792
  },
7829
7793
  {
7830
7794
  "description": "This slot is for passing `mdc-link` component within the footer section.",
7831
- "name": "footer-link",
7832
- "inheritedFrom": {
7833
- "name": "Card",
7834
- "module": "src/components/card/card.component.ts"
7835
- }
7795
+ "name": "footer-link"
7836
7796
  },
7837
7797
  {
7838
7798
  "description": "This slot is for passing primary variant of `mdc-button` component within the footer section.",
7839
- "name": "footer-button-primary",
7840
- "inheritedFrom": {
7841
- "name": "Card",
7842
- "module": "src/components/card/card.component.ts"
7799
+ "name": "footer-button-primary"
7800
+ }
7801
+ ],
7802
+ "members": [
7803
+ {
7804
+ "kind": "method",
7805
+ "name": "renderHeader",
7806
+ "privacy": "protected",
7807
+ "description": "Renders the header of the card if title is provided",
7808
+ "return": {
7809
+ "type": {
7810
+ "text": ""
7811
+ }
7843
7812
  }
7844
7813
  },
7845
7814
  {
7846
- "description": "This slot is for passing secondary variant of `mdc-button` component within the footer section.",
7847
- "name": "footer-button-secondary",
7815
+ "kind": "field",
7816
+ "name": "cardTitle",
7817
+ "type": {
7818
+ "text": "string"
7819
+ },
7820
+ "default": "''",
7821
+ "description": "The title of the card - part of header section",
7822
+ "attribute": "card-title",
7823
+ "reflects": true,
7848
7824
  "inheritedFrom": {
7849
- "name": "Card",
7850
- "module": "src/components/card/card.component.ts"
7825
+ "name": "CardComponentMixin",
7826
+ "module": "utils/mixins/CardComponentMixin.js"
7851
7827
  }
7852
7828
  },
7853
7829
  {
7854
- "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.",
7855
- "name": "footer",
7830
+ "kind": "field",
7831
+ "name": "subtitle",
7832
+ "type": {
7833
+ "text": "string"
7834
+ },
7835
+ "default": "''",
7836
+ "description": "The subtitle of the card - part of header section",
7837
+ "attribute": "subtitle",
7838
+ "reflects": true,
7856
7839
  "inheritedFrom": {
7857
- "name": "Card",
7858
- "module": "src/components/card/card.component.ts"
7840
+ "name": "CardComponentMixin",
7841
+ "module": "utils/mixins/CardComponentMixin.js"
7859
7842
  }
7860
- }
7861
- ],
7862
- "members": [
7843
+ },
7863
7844
  {
7864
7845
  "kind": "field",
7865
- "name": "checked",
7846
+ "name": "imageSrc",
7866
7847
  "type": {
7867
- "text": "boolean"
7848
+ "text": "string"
7868
7849
  },
7869
- "default": "false",
7870
- "description": "The checked state of the card",
7871
- "attribute": "checked",
7872
- "reflects": true
7850
+ "default": "''",
7851
+ "description": "The image source URL to render on the card",
7852
+ "attribute": "image-src",
7853
+ "reflects": true,
7854
+ "inheritedFrom": {
7855
+ "name": "CardComponentMixin",
7856
+ "module": "utils/mixins/CardComponentMixin.js"
7857
+ }
7873
7858
  },
7874
7859
  {
7875
7860
  "kind": "field",
7876
- "name": "name",
7861
+ "name": "imageAlt",
7877
7862
  "type": {
7878
7863
  "text": "string"
7879
7864
  },
7880
7865
  "default": "''",
7881
- "description": "The name of the radio.",
7882
- "attribute": "name"
7866
+ "description": "The image alt for accessibility support",
7867
+ "attribute": "image-alt",
7868
+ "reflects": true,
7869
+ "inheritedFrom": {
7870
+ "name": "CardComponentMixin",
7871
+ "module": "utils/mixins/CardComponentMixin.js"
7872
+ }
7883
7873
  },
7884
7874
  {
7885
- "kind": "method",
7886
- "name": "getAllCardsWithinSameGroup",
7887
- "privacy": "private",
7888
- "return": {
7889
- "type": {
7890
- "text": "CardRadio[]"
7891
- }
7875
+ "kind": "field",
7876
+ "name": "variant",
7877
+ "type": {
7878
+ "text": "CardVariant"
7892
7879
  },
7893
- "description": "Returns all cards within the same group (name)."
7880
+ "description": "The variant of the card. It can either be set to 'border' or 'ghost'",
7881
+ "default": "'border'",
7882
+ "attribute": "variant",
7883
+ "reflects": true,
7884
+ "inheritedFrom": {
7885
+ "name": "CardComponentMixin",
7886
+ "module": "utils/mixins/CardComponentMixin.js"
7887
+ }
7894
7888
  },
7895
7889
  {
7896
- "kind": "method",
7897
- "name": "toggleChecked",
7898
- "privacy": "private",
7899
- "return": {
7900
- "type": {
7901
- "text": "void"
7902
- }
7890
+ "kind": "field",
7891
+ "name": "orientation",
7892
+ "type": {
7893
+ "text": "CardOrientation"
7903
7894
  },
7904
- "description": "Handles the change event on the radio element.\nThis will toggle the state of the radio element.\nDispatches the change event."
7895
+ "description": "The orientation of the card. It can either be set to 'vertical' or 'horizontal'",
7896
+ "default": "'vertical'",
7897
+ "attribute": "orientation",
7898
+ "reflects": true,
7899
+ "inheritedFrom": {
7900
+ "name": "CardComponentMixin",
7901
+ "module": "utils/mixins/CardComponentMixin.js"
7902
+ }
7905
7903
  },
7906
7904
  {
7907
- "kind": "method",
7908
- "name": "setDisabled",
7909
- "return": {
7910
- "type": {
7911
- "text": "void"
7912
- }
7905
+ "kind": "field",
7906
+ "name": "titleTagName",
7907
+ "type": {
7908
+ "text": "TagNameType"
7913
7909
  },
7914
- "parameters": [
7915
- {
7916
- "name": "disabled",
7917
- "type": {
7918
- "text": "boolean"
7919
- }
7920
- }
7921
- ]
7910
+ "description": "The tag name for the card title. It supports all the types that `mdc-text` supports",
7911
+ "default": "'span'",
7912
+ "attribute": "title-tag-name",
7913
+ "reflects": true,
7914
+ "inheritedFrom": {
7915
+ "name": "CardComponentMixin",
7916
+ "module": "utils/mixins/CardComponentMixin.js"
7917
+ }
7922
7918
  },
7923
7919
  {
7924
- "kind": "method",
7925
- "name": "updateCardRadio",
7926
- "privacy": "private",
7927
- "return": {
7928
- "type": {
7929
- "text": "void"
7930
- }
7920
+ "kind": "field",
7921
+ "name": "subtitleTagName",
7922
+ "type": {
7923
+ "text": "TagNameType"
7931
7924
  },
7932
- "parameters": [
7933
- {
7934
- "name": "cards",
7935
- "type": {
7936
- "text": "CardRadio[]"
7937
- }
7938
- },
7939
- {
7940
- "name": "index",
7941
- "type": {
7942
- "text": "number"
7943
- }
7944
- }
7945
- ]
7925
+ "description": "The tag name for the subtitle. It supports all the types that `mdc-text` supports",
7926
+ "default": "'span'",
7927
+ "attribute": "subtitle-tag-name",
7928
+ "reflects": true,
7929
+ "inheritedFrom": {
7930
+ "name": "CardComponentMixin",
7931
+ "module": "utils/mixins/CardComponentMixin.js"
7932
+ }
7933
+ },
7934
+ {
7935
+ "kind": "field",
7936
+ "name": "iconName",
7937
+ "type": {
7938
+ "text": "IconNames | undefined"
7939
+ },
7940
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
7941
+ "attribute": "icon-name",
7942
+ "reflects": true,
7943
+ "inheritedFrom": {
7944
+ "name": "CardComponentMixin",
7945
+ "module": "utils/mixins/CardComponentMixin.js"
7946
+ }
7946
7947
  },
7947
7948
  {
7948
7949
  "kind": "method",
7949
- "name": "toggleOnEnter",
7950
- "privacy": "private",
7951
- "parameters": [
7952
- {
7953
- "name": "event",
7954
- "type": {
7955
- "text": "KeyboardEvent"
7956
- },
7957
- "description": "The keyboard event"
7950
+ "name": "renderImage",
7951
+ "privacy": "protected",
7952
+ "description": "Renders the image on the card if image source is provided",
7953
+ "return": {
7954
+ "type": {
7955
+ "text": ""
7958
7956
  }
7959
- ],
7960
- "description": "Toggles the checked state when enter key is used"
7957
+ },
7958
+ "inheritedFrom": {
7959
+ "name": "CardComponentMixin",
7960
+ "module": "utils/mixins/CardComponentMixin.js"
7961
+ }
7961
7962
  },
7962
7963
  {
7963
7964
  "kind": "method",
7964
- "name": "toggleOnSpace",
7965
- "privacy": "private",
7966
- "parameters": [
7967
- {
7968
- "name": "event",
7969
- "type": {
7970
- "text": "KeyboardEvent"
7971
- },
7972
- "description": "The keyboard event"
7965
+ "name": "renderIcon",
7966
+ "privacy": "protected",
7967
+ "description": "Renders the icon on the card if icon name is provided",
7968
+ "return": {
7969
+ "type": {
7970
+ "text": ""
7973
7971
  }
7974
- ],
7975
- "description": "Toggles the checked state when space key is used"
7972
+ },
7973
+ "inheritedFrom": {
7974
+ "name": "CardComponentMixin",
7975
+ "module": "utils/mixins/CardComponentMixin.js"
7976
+ }
7976
7977
  },
7977
7978
  {
7978
7979
  "kind": "method",
7979
- "name": "renderHeader",
7980
+ "name": "renderTitle",
7980
7981
  "privacy": "protected",
7981
- "description": "Renders the header of the card",
7982
+ "description": "Renders the title and subtitle on the card",
7982
7983
  "return": {
7983
7984
  "type": {
7984
7985
  "text": ""
7985
7986
  }
7986
7987
  },
7987
7988
  "inheritedFrom": {
7988
- "name": "Card",
7989
- "module": "components/card/card.component.js"
7989
+ "name": "CardComponentMixin",
7990
+ "module": "utils/mixins/CardComponentMixin.js"
7990
7991
  }
7991
7992
  },
7992
7993
  {
7993
7994
  "kind": "field",
7994
- "name": "disabled",
7995
+ "name": "autoFocusOnMount",
7995
7996
  "type": {
7996
- "text": "boolean | undefined"
7997
+ "text": "boolean"
7997
7998
  },
7998
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
7999
- "default": "undefined",
8000
- "attribute": "disabled",
7999
+ "default": "false",
8000
+ "description": "This property indicates whether the element should receive focus automatically when it is mounted.\n\nIt will not focus if the element is re-attached to the DOM after being removed.",
8001
+ "attribute": "auto-focus-on-mount",
8001
8002
  "reflects": true,
8002
8003
  "inheritedFrom": {
8003
- "name": "DisabledMixin",
8004
- "module": "utils/mixins/DisabledMixin.js"
8004
+ "name": "Buttonsimple",
8005
+ "module": "components/buttonsimple/buttonsimple.component.js"
8005
8006
  }
8006
8007
  },
8007
8008
  {
@@ -8015,280 +8016,342 @@
8015
8016
  "attribute": "tabIndex",
8016
8017
  "reflects": true,
8017
8018
  "inheritedFrom": {
8018
- "name": "TabIndexMixin",
8019
- "module": "utils/mixins/TabIndexMixin.js"
8019
+ "name": "Buttonsimple",
8020
+ "module": "components/buttonsimple/buttonsimple.component.js"
8020
8021
  }
8021
8022
  },
8022
8023
  {
8023
8024
  "kind": "field",
8024
- "name": "cardTitle",
8025
+ "name": "disabled",
8025
8026
  "type": {
8026
- "text": "string"
8027
+ "text": "boolean | undefined"
8027
8028
  },
8028
- "default": "''",
8029
- "description": "The title of the card - part of header section",
8030
- "attribute": "card-title",
8029
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
8030
+ "default": "undefined",
8031
+ "attribute": "disabled",
8031
8032
  "reflects": true,
8032
8033
  "inheritedFrom": {
8033
- "name": "Card",
8034
- "module": "components/card/card.component.js"
8034
+ "name": "Buttonsimple",
8035
+ "module": "components/buttonsimple/buttonsimple.component.js"
8035
8036
  }
8036
8037
  },
8037
8038
  {
8038
8039
  "kind": "field",
8039
- "name": "subtitle",
8040
+ "name": "active",
8040
8041
  "type": {
8041
- "text": "string"
8042
+ "text": "boolean | undefined"
8042
8043
  },
8043
- "default": "''",
8044
- "description": "The subtitle of the card - part of header section",
8045
- "attribute": "subtitle",
8044
+ "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.",
8045
+ "default": "undefined",
8046
+ "attribute": "active",
8046
8047
  "reflects": true,
8047
8048
  "inheritedFrom": {
8048
- "name": "Card",
8049
- "module": "components/card/card.component.js"
8049
+ "name": "Buttonsimple",
8050
+ "module": "components/buttonsimple/buttonsimple.component.js"
8050
8051
  }
8051
8052
  },
8052
8053
  {
8053
8054
  "kind": "field",
8054
- "name": "imageSrc",
8055
+ "name": "softDisabled",
8055
8056
  "type": {
8056
- "text": "string"
8057
+ "text": "boolean | undefined"
8057
8058
  },
8058
- "default": "''",
8059
- "description": "The image source URL to render on the card",
8060
- "attribute": "image-src",
8059
+ "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.",
8060
+ "default": "undefined",
8061
+ "attribute": "soft-disabled",
8061
8062
  "reflects": true,
8062
8063
  "inheritedFrom": {
8063
- "name": "Card",
8064
- "module": "components/card/card.component.js"
8064
+ "name": "Buttonsimple",
8065
+ "module": "components/buttonsimple/buttonsimple.component.js"
8065
8066
  }
8066
8067
  },
8067
8068
  {
8068
8069
  "kind": "field",
8069
- "name": "imageAlt",
8070
+ "name": "size",
8070
8071
  "type": {
8071
- "text": "string"
8072
+ "text": "ButtonSize"
8072
8073
  },
8073
- "default": "''",
8074
- "description": "The image alt for accessibility support",
8075
- "attribute": "image-alt",
8074
+ "description": "Simplebutton size is a super set of all the sizes supported by children components.",
8075
+ "default": "32",
8076
+ "attribute": "size",
8076
8077
  "reflects": true,
8077
8078
  "inheritedFrom": {
8078
- "name": "Card",
8079
- "module": "components/card/card.component.js"
8079
+ "name": "Buttonsimple",
8080
+ "module": "components/buttonsimple/buttonsimple.component.js"
8080
8081
  }
8081
8082
  },
8082
8083
  {
8083
8084
  "kind": "field",
8084
- "name": "variant",
8085
+ "name": "role",
8085
8086
  "type": {
8086
- "text": "CardVariant"
8087
+ "text": "RoleType"
8087
8088
  },
8088
- "description": "The variant of the card. It can either be set to 'border' or 'ghost'",
8089
- "default": "'border'",
8090
- "attribute": "variant",
8089
+ "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.",
8090
+ "default": "button",
8091
+ "attribute": "role",
8091
8092
  "reflects": true,
8092
8093
  "inheritedFrom": {
8093
- "name": "Card",
8094
- "module": "components/card/card.component.js"
8094
+ "name": "Buttonsimple",
8095
+ "module": "components/buttonsimple/buttonsimple.component.js"
8095
8096
  }
8096
8097
  },
8097
8098
  {
8098
8099
  "kind": "field",
8099
- "name": "orientation",
8100
+ "name": "ariaStateKey",
8100
8101
  "type": {
8101
- "text": "CardOrientation"
8102
+ "text": "string | undefined"
8102
8103
  },
8103
- "description": "The orientation of the card. It can either be set to 'vertical' or 'horizontal'",
8104
- "default": "'vertical'",
8105
- "attribute": "orientation",
8104
+ "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`",
8105
+ "default": "'aria-pressed' (when)",
8106
+ "attribute": "ariaStateKey",
8106
8107
  "reflects": true,
8107
8108
  "inheritedFrom": {
8108
- "name": "Card",
8109
- "module": "components/card/card.component.js"
8109
+ "name": "Buttonsimple",
8110
+ "module": "components/buttonsimple/buttonsimple.component.js"
8110
8111
  }
8111
8112
  },
8112
8113
  {
8113
8114
  "kind": "field",
8114
- "name": "titleTagName",
8115
+ "name": "type",
8115
8116
  "type": {
8116
- "text": "TagNameType"
8117
+ "text": "ButtonType"
8117
8118
  },
8118
- "description": "The tag name for the card title. It supports all the types that `mdc-text` supports",
8119
- "default": "'span'",
8120
- "attribute": "title-tag-name",
8119
+ "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.",
8120
+ "default": "button",
8121
+ "attribute": "type",
8121
8122
  "reflects": true,
8122
8123
  "inheritedFrom": {
8123
- "name": "Card",
8124
- "module": "components/card/card.component.js"
8124
+ "name": "Buttonsimple",
8125
+ "module": "components/buttonsimple/buttonsimple.component.js"
8125
8126
  }
8126
8127
  },
8127
8128
  {
8128
8129
  "kind": "field",
8129
- "name": "subtitleTagName",
8130
+ "name": "name",
8130
8131
  "type": {
8131
- "text": "TagNameType"
8132
+ "text": "string | undefined"
8132
8133
  },
8133
- "description": "The tag name for the subtitle. It supports all the types that `mdc-text` supports",
8134
- "default": "'span'",
8135
- "attribute": "subtitle-tag-name",
8134
+ "description": "The name of the button, submitted as a pair with the button's value as part of the form data,\nwhen that button is used to submit the form.",
8135
+ "attribute": "name",
8136
8136
  "reflects": true,
8137
8137
  "inheritedFrom": {
8138
- "name": "Card",
8139
- "module": "components/card/card.component.js"
8138
+ "name": "Buttonsimple",
8139
+ "module": "components/buttonsimple/buttonsimple.component.js"
8140
8140
  }
8141
8141
  },
8142
8142
  {
8143
8143
  "kind": "field",
8144
- "name": "iconName",
8144
+ "name": "value",
8145
8145
  "type": {
8146
- "text": "IconNames | undefined"
8146
+ "text": "string | undefined"
8147
8147
  },
8148
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
8149
- "attribute": "icon-name",
8148
+ "description": "Defines the value associated with the button's name when it's submitted with the form data.\nThis value is passed to the server in params when the form is submitted using this button.",
8149
+ "attribute": "value",
8150
8150
  "reflects": true,
8151
8151
  "inheritedFrom": {
8152
- "name": "Card",
8153
- "module": "components/card/card.component.js"
8152
+ "name": "Buttonsimple",
8153
+ "module": "components/buttonsimple/buttonsimple.component.js"
8154
8154
  }
8155
8155
  },
8156
8156
  {
8157
8157
  "kind": "method",
8158
- "name": "renderImage",
8158
+ "name": "executeAction",
8159
8159
  "privacy": "protected",
8160
- "description": "Renders the image on the card if image source is provided",
8161
- "return": {
8162
- "type": {
8163
- "text": ""
8164
- }
8165
- },
8166
8160
  "inheritedFrom": {
8167
- "name": "Card",
8168
- "module": "components/card/card.component.js"
8161
+ "name": "Buttonsimple",
8162
+ "module": "components/buttonsimple/buttonsimple.component.js"
8169
8163
  }
8170
8164
  },
8171
8165
  {
8172
8166
  "kind": "method",
8173
- "name": "renderIcon",
8167
+ "name": "setActive",
8174
8168
  "privacy": "protected",
8175
- "description": "Renders the icon on the card if icon name is provided",
8176
- "return": {
8177
- "type": {
8178
- "text": ""
8169
+ "parameters": [
8170
+ {
8171
+ "name": "element",
8172
+ "type": {
8173
+ "text": "HTMLElement"
8174
+ },
8175
+ "description": "The button element"
8176
+ },
8177
+ {
8178
+ "name": "active",
8179
+ "optional": true,
8180
+ "type": {
8181
+ "text": "boolean"
8182
+ },
8183
+ "description": "The active state of the element"
8179
8184
  }
8180
- },
8185
+ ],
8186
+ "description": "Sets the ariaStateKey attributes based on the active state of the button.",
8181
8187
  "inheritedFrom": {
8182
- "name": "Card",
8183
- "module": "components/card/card.component.js"
8188
+ "name": "Buttonsimple",
8189
+ "module": "components/buttonsimple/buttonsimple.component.js"
8184
8190
  }
8185
8191
  },
8186
8192
  {
8187
8193
  "kind": "method",
8188
- "name": "renderTitle",
8189
- "privacy": "protected",
8190
- "description": "Renders the title and subtitle on the card",
8191
- "return": {
8192
- "type": {
8193
- "text": ""
8194
+ "name": "setSoftDisabled",
8195
+ "privacy": "private",
8196
+ "parameters": [
8197
+ {
8198
+ "name": "element",
8199
+ "type": {
8200
+ "text": "HTMLElement"
8201
+ },
8202
+ "description": "The button element."
8203
+ },
8204
+ {
8205
+ "name": "softDisabled",
8206
+ "optional": true,
8207
+ "type": {
8208
+ "text": "boolean"
8209
+ },
8210
+ "description": "The soft-disabled state."
8194
8211
  }
8195
- },
8212
+ ],
8213
+ "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.",
8196
8214
  "inheritedFrom": {
8197
- "name": "Card",
8198
- "module": "components/card/card.component.js"
8215
+ "name": "Buttonsimple",
8216
+ "module": "components/buttonsimple/buttonsimple.component.js"
8199
8217
  }
8200
8218
  },
8201
8219
  {
8202
8220
  "kind": "method",
8203
- "name": "renderFooter",
8204
- "privacy": "protected",
8205
- "description": "Renders the footer of the card if footer-link,\nfooter-button-primary, or footer-button-secondary slots are provided",
8206
- "return": {
8207
- "type": {
8208
- "text": ""
8221
+ "name": "setDisabled",
8222
+ "privacy": "private",
8223
+ "parameters": [
8224
+ {
8225
+ "name": "element",
8226
+ "type": {
8227
+ "text": "HTMLElement"
8228
+ },
8229
+ "description": "The button element."
8230
+ },
8231
+ {
8232
+ "name": "disabled",
8233
+ "type": {
8234
+ "text": "boolean"
8235
+ },
8236
+ "description": "The disabled state."
8209
8237
  }
8210
- },
8238
+ ],
8239
+ "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.",
8211
8240
  "inheritedFrom": {
8212
- "name": "Card",
8213
- "module": "components/card/card.component.js"
8241
+ "name": "Buttonsimple",
8242
+ "module": "components/buttonsimple/buttonsimple.component.js"
8214
8243
  }
8215
- }
8216
- ],
8217
- "events": [
8218
- {
8219
- "name": "change",
8220
- "type": {
8221
- "text": "Event"
8222
- },
8223
- "description": "(React: onChange) Event that gets dispatched when the card's checked state changes.",
8224
- "reactName": "onChange"
8225
8244
  },
8226
8245
  {
8227
- "description": "(React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.",
8228
- "name": "click",
8229
- "reactName": "onClick"
8246
+ "kind": "method",
8247
+ "name": "triggerClickEvent",
8248
+ "privacy": "private",
8249
+ "inheritedFrom": {
8250
+ "name": "Buttonsimple",
8251
+ "module": "components/buttonsimple/buttonsimple.component.js"
8252
+ }
8230
8253
  },
8231
8254
  {
8232
- "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.",
8233
- "name": "keydown",
8234
- "reactName": "onKeyDown"
8255
+ "kind": "method",
8256
+ "name": "handleBlur",
8257
+ "privacy": "private",
8258
+ "description": "In case the button is pressed and the focus is lost while pressing,\nthe pressed class is removed.",
8259
+ "inheritedFrom": {
8260
+ "name": "Buttonsimple",
8261
+ "module": "components/buttonsimple/buttonsimple.component.js"
8262
+ }
8235
8263
  },
8236
8264
  {
8237
- "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.",
8238
- "name": "keyup",
8239
- "reactName": "onKeyUp"
8265
+ "kind": "method",
8266
+ "name": "handleKeyDown",
8267
+ "privacy": "private",
8268
+ "parameters": [
8269
+ {
8270
+ "name": "event",
8271
+ "type": {
8272
+ "text": "KeyboardEvent"
8273
+ },
8274
+ "description": "The keyboard event."
8275
+ }
8276
+ ],
8277
+ "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.",
8278
+ "inheritedFrom": {
8279
+ "name": "Buttonsimple",
8280
+ "module": "components/buttonsimple/buttonsimple.component.js"
8281
+ }
8240
8282
  },
8241
8283
  {
8242
- "description": "(React: onFocus) Event that gets dispatched when the card receives focus.",
8243
- "name": "focus",
8244
- "reactName": "onFocus"
8284
+ "kind": "method",
8285
+ "name": "handleKeyUp",
8286
+ "privacy": "private",
8287
+ "parameters": [
8288
+ {
8289
+ "name": "event",
8290
+ "type": {
8291
+ "text": "KeyboardEvent"
8292
+ },
8293
+ "description": "The keyboard event."
8294
+ }
8295
+ ],
8296
+ "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.",
8297
+ "inheritedFrom": {
8298
+ "name": "Buttonsimple",
8299
+ "module": "components/buttonsimple/buttonsimple.component.js"
8300
+ }
8245
8301
  }
8246
8302
  ],
8247
- "attributes": [
8303
+ "events": [
8248
8304
  {
8249
- "name": "checked",
8250
- "type": {
8251
- "text": "boolean"
8252
- },
8253
- "default": "false",
8254
- "description": "The checked state of the card",
8255
- "fieldName": "checked"
8305
+ "description": "(React: onClick) Event that gets dispatched when the card is clicked.",
8306
+ "name": "click",
8307
+ "reactName": "onClick",
8308
+ "inheritedFrom": {
8309
+ "name": "Buttonsimple",
8310
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8311
+ }
8256
8312
  },
8257
8313
  {
8258
- "name": "name",
8259
- "type": {
8260
- "text": "string"
8261
- },
8262
- "default": "''",
8263
- "description": "The name of the radio.",
8264
- "fieldName": "name"
8314
+ "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.",
8315
+ "name": "keydown",
8316
+ "reactName": "onKeyDown",
8317
+ "inheritedFrom": {
8318
+ "name": "Buttonsimple",
8319
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8320
+ }
8265
8321
  },
8266
8322
  {
8267
- "name": "disabled",
8268
- "type": {
8269
- "text": "boolean | undefined"
8270
- },
8271
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
8272
- "default": "undefined",
8273
- "fieldName": "disabled",
8323
+ "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.",
8324
+ "name": "keyup",
8325
+ "reactName": "onKeyUp",
8274
8326
  "inheritedFrom": {
8275
- "name": "DisabledMixin",
8276
- "module": "src/utils/mixins/DisabledMixin.ts"
8327
+ "name": "Buttonsimple",
8328
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8277
8329
  }
8278
8330
  },
8279
8331
  {
8280
- "name": "tabIndex",
8281
- "type": {
8282
- "text": "number"
8283
- },
8284
- "default": "0",
8285
- "description": "This property specifies the tab order of the element.",
8286
- "fieldName": "tabIndex",
8332
+ "description": "(React: onFocus) Event that gets dispatched when the card receives focus.",
8333
+ "name": "focus",
8334
+ "reactName": "onFocus",
8287
8335
  "inheritedFrom": {
8288
- "name": "TabIndexMixin",
8289
- "module": "src/utils/mixins/TabIndexMixin.ts"
8336
+ "name": "Buttonsimple",
8337
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8290
8338
  }
8291
- },
8339
+ }
8340
+ ],
8341
+ "mixins": [
8342
+ {
8343
+ "name": "CardComponentMixin",
8344
+ "module": "/src/utils/mixins/CardComponentMixin"
8345
+ }
8346
+ ],
8347
+ "superclass": {
8348
+ "name": "Buttonsimple",
8349
+ "module": "/src/components/buttonsimple/buttonsimple.component"
8350
+ },
8351
+ "tagName": "mdc-cardbutton",
8352
+ "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 * @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 * @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 * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.\n *\n * @csspart header - The header part of the card\n * @csspart icon - The icon part of the card header\n * @csspart body - The body part of the card\n * @csspart image - The image part of the card\n * @csspart footer - The footer part of the card\n * @csspart footer-link - The link part of the card footer\n * @csspart footer-button-primary - The primary button part of the card footer\n * @csspart footer-button-secondary - The secondary button part of the card footer\n * @csspart icon-button - The icon button part of the card header\n * @csspart text - The text part of the card\n *\n * @cssproperty --mdc-card-width - The width of the card\n */",
8353
+ "customElement": true,
8354
+ "attributes": [
8292
8355
  {
8293
8356
  "name": "card-title",
8294
8357
  "type": {
@@ -8298,8 +8361,8 @@
8298
8361
  "description": "The title of the card - part of header section",
8299
8362
  "fieldName": "cardTitle",
8300
8363
  "inheritedFrom": {
8301
- "name": "Card",
8302
- "module": "src/components/card/card.component.ts"
8364
+ "name": "CardComponentMixin",
8365
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8303
8366
  }
8304
8367
  },
8305
8368
  {
@@ -8311,8 +8374,8 @@
8311
8374
  "description": "The subtitle of the card - part of header section",
8312
8375
  "fieldName": "subtitle",
8313
8376
  "inheritedFrom": {
8314
- "name": "Card",
8315
- "module": "src/components/card/card.component.ts"
8377
+ "name": "CardComponentMixin",
8378
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8316
8379
  }
8317
8380
  },
8318
8381
  {
@@ -8324,8 +8387,8 @@
8324
8387
  "description": "The image source URL to render on the card",
8325
8388
  "fieldName": "imageSrc",
8326
8389
  "inheritedFrom": {
8327
- "name": "Card",
8328
- "module": "src/components/card/card.component.ts"
8390
+ "name": "CardComponentMixin",
8391
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8329
8392
  }
8330
8393
  },
8331
8394
  {
@@ -8337,8 +8400,8 @@
8337
8400
  "description": "The image alt for accessibility support",
8338
8401
  "fieldName": "imageAlt",
8339
8402
  "inheritedFrom": {
8340
- "name": "Card",
8341
- "module": "src/components/card/card.component.ts"
8403
+ "name": "CardComponentMixin",
8404
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8342
8405
  }
8343
8406
  },
8344
8407
  {
@@ -8350,8 +8413,8 @@
8350
8413
  "default": "'border'",
8351
8414
  "fieldName": "variant",
8352
8415
  "inheritedFrom": {
8353
- "name": "Card",
8354
- "module": "src/components/card/card.component.ts"
8416
+ "name": "CardComponentMixin",
8417
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8355
8418
  }
8356
8419
  },
8357
8420
  {
@@ -8363,66 +8426,190 @@
8363
8426
  "default": "'vertical'",
8364
8427
  "fieldName": "orientation",
8365
8428
  "inheritedFrom": {
8366
- "name": "Card",
8367
- "module": "src/components/card/card.component.ts"
8429
+ "name": "CardComponentMixin",
8430
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8431
+ }
8432
+ },
8433
+ {
8434
+ "name": "title-tag-name",
8435
+ "type": {
8436
+ "text": "TagNameType"
8437
+ },
8438
+ "description": "The tag name for the card title. It supports all the types that `mdc-text` supports",
8439
+ "default": "'span'",
8440
+ "fieldName": "titleTagName",
8441
+ "inheritedFrom": {
8442
+ "name": "CardComponentMixin",
8443
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8444
+ }
8445
+ },
8446
+ {
8447
+ "name": "subtitle-tag-name",
8448
+ "type": {
8449
+ "text": "TagNameType"
8450
+ },
8451
+ "description": "The tag name for the subtitle. It supports all the types that `mdc-text` supports",
8452
+ "default": "'span'",
8453
+ "fieldName": "subtitleTagName",
8454
+ "inheritedFrom": {
8455
+ "name": "CardComponentMixin",
8456
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8457
+ }
8458
+ },
8459
+ {
8460
+ "name": "icon-name",
8461
+ "type": {
8462
+ "text": "IconNames | undefined"
8463
+ },
8464
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
8465
+ "fieldName": "iconName",
8466
+ "inheritedFrom": {
8467
+ "name": "CardComponentMixin",
8468
+ "module": "src/utils/mixins/CardComponentMixin.ts"
8469
+ }
8470
+ },
8471
+ {
8472
+ "name": "auto-focus-on-mount",
8473
+ "type": {
8474
+ "text": "boolean"
8475
+ },
8476
+ "default": "false",
8477
+ "description": "This property indicates whether the element should receive focus automatically when it is mounted.\n\nIt will not focus if the element is re-attached to the DOM after being removed.",
8478
+ "fieldName": "autoFocusOnMount",
8479
+ "inheritedFrom": {
8480
+ "name": "Buttonsimple",
8481
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8482
+ }
8483
+ },
8484
+ {
8485
+ "name": "tabIndex",
8486
+ "type": {
8487
+ "text": "number"
8488
+ },
8489
+ "default": "0",
8490
+ "description": "This property specifies the tab order of the element.",
8491
+ "fieldName": "tabIndex",
8492
+ "inheritedFrom": {
8493
+ "name": "Buttonsimple",
8494
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8495
+ }
8496
+ },
8497
+ {
8498
+ "name": "disabled",
8499
+ "type": {
8500
+ "text": "boolean | undefined"
8501
+ },
8502
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
8503
+ "default": "undefined",
8504
+ "fieldName": "disabled",
8505
+ "inheritedFrom": {
8506
+ "name": "Buttonsimple",
8507
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8508
+ }
8509
+ },
8510
+ {
8511
+ "name": "active",
8512
+ "type": {
8513
+ "text": "boolean | undefined"
8514
+ },
8515
+ "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.",
8516
+ "default": "undefined",
8517
+ "fieldName": "active",
8518
+ "inheritedFrom": {
8519
+ "name": "Buttonsimple",
8520
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8521
+ }
8522
+ },
8523
+ {
8524
+ "name": "soft-disabled",
8525
+ "type": {
8526
+ "text": "boolean | undefined"
8527
+ },
8528
+ "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.",
8529
+ "default": "undefined",
8530
+ "fieldName": "softDisabled",
8531
+ "inheritedFrom": {
8532
+ "name": "Buttonsimple",
8533
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8534
+ }
8535
+ },
8536
+ {
8537
+ "name": "size",
8538
+ "type": {
8539
+ "text": "ButtonSize"
8540
+ },
8541
+ "description": "Simplebutton size is a super set of all the sizes supported by children components.",
8542
+ "default": "32",
8543
+ "fieldName": "size",
8544
+ "inheritedFrom": {
8545
+ "name": "Buttonsimple",
8546
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8547
+ }
8548
+ },
8549
+ {
8550
+ "name": "role",
8551
+ "type": {
8552
+ "text": "RoleType"
8553
+ },
8554
+ "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.",
8555
+ "default": "button",
8556
+ "fieldName": "role",
8557
+ "inheritedFrom": {
8558
+ "name": "Buttonsimple",
8559
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8560
+ }
8561
+ },
8562
+ {
8563
+ "name": "ariaStateKey",
8564
+ "type": {
8565
+ "text": "string | undefined"
8566
+ },
8567
+ "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`",
8568
+ "default": "'aria-pressed' (when)",
8569
+ "fieldName": "ariaStateKey",
8570
+ "inheritedFrom": {
8571
+ "name": "Buttonsimple",
8572
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8368
8573
  }
8369
8574
  },
8370
8575
  {
8371
- "name": "title-tag-name",
8576
+ "name": "type",
8372
8577
  "type": {
8373
- "text": "TagNameType"
8578
+ "text": "ButtonType"
8374
8579
  },
8375
- "description": "The tag name for the card title. It supports all the types that `mdc-text` supports",
8376
- "default": "'span'",
8377
- "fieldName": "titleTagName",
8580
+ "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.",
8581
+ "default": "button",
8582
+ "fieldName": "type",
8378
8583
  "inheritedFrom": {
8379
- "name": "Card",
8380
- "module": "src/components/card/card.component.ts"
8584
+ "name": "Buttonsimple",
8585
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8381
8586
  }
8382
8587
  },
8383
8588
  {
8384
- "name": "subtitle-tag-name",
8589
+ "name": "name",
8385
8590
  "type": {
8386
- "text": "TagNameType"
8591
+ "text": "string | undefined"
8387
8592
  },
8388
- "description": "The tag name for the subtitle. It supports all the types that `mdc-text` supports",
8389
- "default": "'span'",
8390
- "fieldName": "subtitleTagName",
8593
+ "description": "The name of the button, submitted as a pair with the button's value as part of the form data,\nwhen that button is used to submit the form.",
8594
+ "fieldName": "name",
8391
8595
  "inheritedFrom": {
8392
- "name": "Card",
8393
- "module": "src/components/card/card.component.ts"
8596
+ "name": "Buttonsimple",
8597
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8394
8598
  }
8395
8599
  },
8396
8600
  {
8397
- "name": "icon-name",
8601
+ "name": "value",
8398
8602
  "type": {
8399
- "text": "IconNames | undefined"
8603
+ "text": "string | undefined"
8400
8604
  },
8401
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
8402
- "fieldName": "iconName",
8605
+ "description": "Defines the value associated with the button's name when it's submitted with the form data.\nThis value is passed to the server in params when the form is submitted using this button.",
8606
+ "fieldName": "value",
8403
8607
  "inheritedFrom": {
8404
- "name": "Card",
8405
- "module": "src/components/card/card.component.ts"
8608
+ "name": "Buttonsimple",
8609
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
8406
8610
  }
8407
8611
  }
8408
- ],
8409
- "mixins": [
8410
- {
8411
- "name": "DisabledMixin",
8412
- "module": "/src/utils/mixins/DisabledMixin"
8413
- },
8414
- {
8415
- "name": "TabIndexMixin",
8416
- "module": "/src/utils/mixins/TabIndexMixin"
8417
- }
8418
- ],
8419
- "superclass": {
8420
- "name": "Card",
8421
- "module": "/src/components/card/card.component"
8422
- },
8423
- "tagName": "mdc-cardradio",
8424
- "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 * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.\n *\n * @csspart header - The header part of the card\n * @csspart icon - The icon part of the card header\n * @csspart body - The body part of the card\n * @csspart image - The image part of the card\n * @csspart footer - The footer part of the card\n * @csspart footer-link - The link part of the card footer\n * @csspart footer-button-primary - The primary button part of the card footer\n * @csspart footer-button-secondary - The secondary button part of the card footer\n * @csspart icon-button - The icon button part of the card header\n * @csspart text - The text part of the card\n * @csspart check - The check part of the card\n * @csspart check-icon - The check icon part of the card\n * @csspart check-icon-button - The check icon button part of the card\n *\n * @cssproperty --mdc-card-width - The width of the card\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 focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n * @event change - (React: onChange) Event that gets dispatched when the card's checked state changes.\n */",
8425
- "customElement": true
8612
+ ]
8426
8613
  }
8427
8614
  ],
8428
8615
  "exports": [
@@ -8430,8 +8617,8 @@
8430
8617
  "kind": "js",
8431
8618
  "name": "default",
8432
8619
  "declaration": {
8433
- "name": "CardRadio",
8434
- "module": "components/cardradio/cardradio.component.js"
8620
+ "name": "CardButton",
8621
+ "module": "components/cardbutton/cardbutton.component.js"
8435
8622
  }
8436
8623
  }
8437
8624
  ]
@@ -9140,318 +9327,317 @@
9140
9327
  },
9141
9328
  {
9142
9329
  "kind": "javascript-module",
9143
- "path": "components/cardbutton/cardbutton.component.js",
9330
+ "path": "components/cardradio/cardradio.component.js",
9144
9331
  "declarations": [
9145
9332
  {
9146
9333
  "kind": "class",
9147
- "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.",
9148
- "name": "CardButton",
9334
+ "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.",
9335
+ "name": "CardRadio",
9149
9336
  "cssProperties": [
9150
9337
  {
9151
9338
  "description": "The width of the card",
9152
- "name": "--mdc-card-width"
9153
- },
9154
- {
9155
- "description": "Height for button size",
9156
- "name": "--mdc-button-height",
9157
- "inheritedFrom": {
9158
- "name": "Buttonsimple",
9159
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9160
- }
9161
- },
9162
- {
9163
- "description": "Background color of the button",
9164
- "name": "--mdc-button-background",
9165
- "inheritedFrom": {
9166
- "name": "Buttonsimple",
9167
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9168
- }
9169
- },
9170
- {
9171
- "description": "Borer color of the button",
9172
- "name": "--mdc-button-border-color",
9173
- "inheritedFrom": {
9174
- "name": "Buttonsimple",
9175
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9176
- }
9177
- },
9178
- {
9179
- "description": "Text color of the button",
9180
- "name": "--mdc-button-text-color",
9339
+ "name": "--mdc-card-width",
9181
9340
  "inheritedFrom": {
9182
- "name": "Buttonsimple",
9183
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9341
+ "name": "Card",
9342
+ "module": "src/components/card/card.component.ts"
9184
9343
  }
9185
9344
  }
9186
9345
  ],
9187
9346
  "cssParts": [
9188
9347
  {
9189
9348
  "description": "The header part of the card",
9190
- "name": "header"
9349
+ "name": "header",
9350
+ "inheritedFrom": {
9351
+ "name": "Card",
9352
+ "module": "src/components/card/card.component.ts"
9353
+ }
9191
9354
  },
9192
9355
  {
9193
9356
  "description": "The icon part of the card header",
9194
- "name": "icon"
9357
+ "name": "icon",
9358
+ "inheritedFrom": {
9359
+ "name": "Card",
9360
+ "module": "src/components/card/card.component.ts"
9361
+ }
9195
9362
  },
9196
9363
  {
9197
9364
  "description": "The body part of the card",
9198
- "name": "body"
9365
+ "name": "body",
9366
+ "inheritedFrom": {
9367
+ "name": "Card",
9368
+ "module": "src/components/card/card.component.ts"
9369
+ }
9199
9370
  },
9200
9371
  {
9201
9372
  "description": "The image part of the card",
9202
- "name": "image"
9373
+ "name": "image",
9374
+ "inheritedFrom": {
9375
+ "name": "Card",
9376
+ "module": "src/components/card/card.component.ts"
9377
+ }
9203
9378
  },
9204
9379
  {
9205
9380
  "description": "The footer part of the card",
9206
- "name": "footer"
9381
+ "name": "footer",
9382
+ "inheritedFrom": {
9383
+ "name": "Card",
9384
+ "module": "src/components/card/card.component.ts"
9385
+ }
9207
9386
  },
9208
9387
  {
9209
9388
  "description": "The link part of the card footer",
9210
- "name": "footer-link"
9389
+ "name": "footer-link",
9390
+ "inheritedFrom": {
9391
+ "name": "Card",
9392
+ "module": "src/components/card/card.component.ts"
9393
+ }
9211
9394
  },
9212
9395
  {
9213
9396
  "description": "The primary button part of the card footer",
9214
- "name": "footer-button-primary"
9397
+ "name": "footer-button-primary",
9398
+ "inheritedFrom": {
9399
+ "name": "Card",
9400
+ "module": "src/components/card/card.component.ts"
9401
+ }
9215
9402
  },
9216
9403
  {
9217
9404
  "description": "The secondary button part of the card footer",
9218
- "name": "footer-button-secondary"
9405
+ "name": "footer-button-secondary",
9406
+ "inheritedFrom": {
9407
+ "name": "Card",
9408
+ "module": "src/components/card/card.component.ts"
9409
+ }
9219
9410
  },
9220
9411
  {
9221
9412
  "description": "The icon button part of the card header",
9222
- "name": "icon-button"
9413
+ "name": "icon-button",
9414
+ "inheritedFrom": {
9415
+ "name": "Card",
9416
+ "module": "src/components/card/card.component.ts"
9417
+ }
9223
9418
  },
9224
9419
  {
9225
9420
  "description": "The text part of the card",
9226
- "name": "text"
9227
- }
9228
- ],
9229
- "slots": [
9230
- {
9231
- "description": "This slot is for passing the content before the body",
9232
- "name": "before-body"
9233
- },
9234
- {
9235
- "description": "This slot is for passing the text content for the card",
9236
- "name": "body"
9421
+ "name": "text",
9422
+ "inheritedFrom": {
9423
+ "name": "Card",
9424
+ "module": "src/components/card/card.component.ts"
9425
+ }
9237
9426
  },
9238
9427
  {
9239
- "description": "This slot is for passing the content after the body",
9240
- "name": "after-body"
9428
+ "description": "The check part of the card",
9429
+ "name": "check"
9241
9430
  },
9242
9431
  {
9243
- "description": "This slot is for passing `mdc-link` component within the footer section.",
9244
- "name": "footer-link"
9432
+ "description": "The check icon part of the card",
9433
+ "name": "check-icon"
9245
9434
  },
9246
9435
  {
9247
- "description": "This slot is for passing primary variant of `mdc-button` component within the footer section.",
9248
- "name": "footer-button-primary"
9436
+ "description": "The check icon button part of the card",
9437
+ "name": "check-icon-button"
9249
9438
  }
9250
9439
  ],
9251
- "members": [
9440
+ "slots": [
9252
9441
  {
9253
- "kind": "method",
9254
- "name": "renderHeader",
9255
- "privacy": "protected",
9256
- "description": "Renders the header of the card if title is provided",
9257
- "return": {
9258
- "type": {
9259
- "text": ""
9260
- }
9442
+ "description": "This slot is for passing the content before the body",
9443
+ "name": "before-body",
9444
+ "inheritedFrom": {
9445
+ "name": "Card",
9446
+ "module": "src/components/card/card.component.ts"
9261
9447
  }
9262
9448
  },
9263
9449
  {
9264
- "kind": "field",
9265
- "name": "cardTitle",
9266
- "type": {
9267
- "text": "string"
9268
- },
9269
- "default": "''",
9270
- "description": "The title of the card - part of header section",
9271
- "attribute": "card-title",
9272
- "reflects": true,
9450
+ "description": "This slot is for passing the text content for the card",
9451
+ "name": "body",
9273
9452
  "inheritedFrom": {
9274
- "name": "CardComponentMixin",
9275
- "module": "utils/mixins/CardComponentMixin.js"
9453
+ "name": "Card",
9454
+ "module": "src/components/card/card.component.ts"
9276
9455
  }
9277
9456
  },
9278
9457
  {
9279
- "kind": "field",
9280
- "name": "subtitle",
9281
- "type": {
9282
- "text": "string"
9283
- },
9284
- "default": "''",
9285
- "description": "The subtitle of the card - part of header section",
9286
- "attribute": "subtitle",
9287
- "reflects": true,
9458
+ "description": "This slot is for passing the content after the body",
9459
+ "name": "after-body",
9288
9460
  "inheritedFrom": {
9289
- "name": "CardComponentMixin",
9290
- "module": "utils/mixins/CardComponentMixin.js"
9461
+ "name": "Card",
9462
+ "module": "src/components/card/card.component.ts"
9291
9463
  }
9292
9464
  },
9293
9465
  {
9294
- "kind": "field",
9295
- "name": "imageSrc",
9296
- "type": {
9297
- "text": "string"
9298
- },
9299
- "default": "''",
9300
- "description": "The image source URL to render on the card",
9301
- "attribute": "image-src",
9302
- "reflects": true,
9466
+ "description": "This slot is for passing `mdc-link` component within the footer section.",
9467
+ "name": "footer-link",
9303
9468
  "inheritedFrom": {
9304
- "name": "CardComponentMixin",
9305
- "module": "utils/mixins/CardComponentMixin.js"
9469
+ "name": "Card",
9470
+ "module": "src/components/card/card.component.ts"
9471
+ }
9472
+ },
9473
+ {
9474
+ "description": "This slot is for passing primary variant of `mdc-button` component within the footer section.",
9475
+ "name": "footer-button-primary",
9476
+ "inheritedFrom": {
9477
+ "name": "Card",
9478
+ "module": "src/components/card/card.component.ts"
9306
9479
  }
9307
9480
  },
9308
9481
  {
9309
- "kind": "field",
9310
- "name": "imageAlt",
9311
- "type": {
9312
- "text": "string"
9313
- },
9314
- "default": "''",
9315
- "description": "The image alt for accessibility support",
9316
- "attribute": "image-alt",
9317
- "reflects": true,
9482
+ "description": "This slot is for passing secondary variant of `mdc-button` component within the footer section.",
9483
+ "name": "footer-button-secondary",
9318
9484
  "inheritedFrom": {
9319
- "name": "CardComponentMixin",
9320
- "module": "utils/mixins/CardComponentMixin.js"
9485
+ "name": "Card",
9486
+ "module": "src/components/card/card.component.ts"
9321
9487
  }
9322
9488
  },
9323
9489
  {
9324
- "kind": "field",
9325
- "name": "variant",
9326
- "type": {
9327
- "text": "CardVariant"
9328
- },
9329
- "description": "The variant of the card. It can either be set to 'border' or 'ghost'",
9330
- "default": "'border'",
9331
- "attribute": "variant",
9332
- "reflects": true,
9490
+ "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.",
9491
+ "name": "footer",
9333
9492
  "inheritedFrom": {
9334
- "name": "CardComponentMixin",
9335
- "module": "utils/mixins/CardComponentMixin.js"
9493
+ "name": "Card",
9494
+ "module": "src/components/card/card.component.ts"
9336
9495
  }
9337
- },
9496
+ }
9497
+ ],
9498
+ "members": [
9338
9499
  {
9339
9500
  "kind": "field",
9340
- "name": "orientation",
9501
+ "name": "checked",
9341
9502
  "type": {
9342
- "text": "CardOrientation"
9503
+ "text": "boolean"
9343
9504
  },
9344
- "description": "The orientation of the card. It can either be set to 'vertical' or 'horizontal'",
9345
- "default": "'vertical'",
9346
- "attribute": "orientation",
9347
- "reflects": true,
9348
- "inheritedFrom": {
9349
- "name": "CardComponentMixin",
9350
- "module": "utils/mixins/CardComponentMixin.js"
9351
- }
9505
+ "default": "false",
9506
+ "description": "The checked state of the card",
9507
+ "attribute": "checked",
9508
+ "reflects": true
9352
9509
  },
9353
9510
  {
9354
9511
  "kind": "field",
9355
- "name": "titleTagName",
9512
+ "name": "name",
9356
9513
  "type": {
9357
- "text": "TagNameType"
9514
+ "text": "string"
9358
9515
  },
9359
- "description": "The tag name for the card title. It supports all the types that `mdc-text` supports",
9360
- "default": "'span'",
9361
- "attribute": "title-tag-name",
9362
- "reflects": true,
9363
- "inheritedFrom": {
9364
- "name": "CardComponentMixin",
9365
- "module": "utils/mixins/CardComponentMixin.js"
9366
- }
9516
+ "default": "''",
9517
+ "description": "The name of the radio.",
9518
+ "attribute": "name"
9367
9519
  },
9368
9520
  {
9369
- "kind": "field",
9370
- "name": "subtitleTagName",
9371
- "type": {
9372
- "text": "TagNameType"
9521
+ "kind": "method",
9522
+ "name": "getAllCardsWithinSameGroup",
9523
+ "privacy": "private",
9524
+ "return": {
9525
+ "type": {
9526
+ "text": "CardRadio[]"
9527
+ }
9373
9528
  },
9374
- "description": "The tag name for the subtitle. It supports all the types that `mdc-text` supports",
9375
- "default": "'span'",
9376
- "attribute": "subtitle-tag-name",
9377
- "reflects": true,
9378
- "inheritedFrom": {
9379
- "name": "CardComponentMixin",
9380
- "module": "utils/mixins/CardComponentMixin.js"
9381
- }
9529
+ "description": "Returns all cards within the same group (name)."
9382
9530
  },
9383
9531
  {
9384
- "kind": "field",
9385
- "name": "iconName",
9386
- "type": {
9387
- "text": "IconNames | undefined"
9532
+ "kind": "method",
9533
+ "name": "toggleChecked",
9534
+ "privacy": "private",
9535
+ "return": {
9536
+ "type": {
9537
+ "text": "void"
9538
+ }
9388
9539
  },
9389
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
9390
- "attribute": "icon-name",
9391
- "reflects": true,
9392
- "inheritedFrom": {
9393
- "name": "CardComponentMixin",
9394
- "module": "utils/mixins/CardComponentMixin.js"
9395
- }
9540
+ "description": "Handles the change event on the radio element.\nThis will toggle the state of the radio element.\nDispatches the change event."
9396
9541
  },
9397
9542
  {
9398
9543
  "kind": "method",
9399
- "name": "renderImage",
9400
- "privacy": "protected",
9401
- "description": "Renders the image on the card if image source is provided",
9544
+ "name": "setDisabled",
9402
9545
  "return": {
9403
9546
  "type": {
9404
- "text": ""
9547
+ "text": "void"
9405
9548
  }
9406
9549
  },
9407
- "inheritedFrom": {
9408
- "name": "CardComponentMixin",
9409
- "module": "utils/mixins/CardComponentMixin.js"
9410
- }
9550
+ "parameters": [
9551
+ {
9552
+ "name": "disabled",
9553
+ "type": {
9554
+ "text": "boolean"
9555
+ }
9556
+ }
9557
+ ]
9411
9558
  },
9412
9559
  {
9413
9560
  "kind": "method",
9414
- "name": "renderIcon",
9415
- "privacy": "protected",
9416
- "description": "Renders the icon on the card if icon name is provided",
9561
+ "name": "updateCardRadio",
9562
+ "privacy": "private",
9417
9563
  "return": {
9418
9564
  "type": {
9419
- "text": ""
9565
+ "text": "void"
9420
9566
  }
9421
9567
  },
9422
- "inheritedFrom": {
9423
- "name": "CardComponentMixin",
9424
- "module": "utils/mixins/CardComponentMixin.js"
9425
- }
9568
+ "parameters": [
9569
+ {
9570
+ "name": "cards",
9571
+ "type": {
9572
+ "text": "CardRadio[]"
9573
+ }
9574
+ },
9575
+ {
9576
+ "name": "index",
9577
+ "type": {
9578
+ "text": "number"
9579
+ }
9580
+ }
9581
+ ]
9426
9582
  },
9427
9583
  {
9428
9584
  "kind": "method",
9429
- "name": "renderTitle",
9585
+ "name": "toggleOnEnter",
9586
+ "privacy": "private",
9587
+ "parameters": [
9588
+ {
9589
+ "name": "event",
9590
+ "type": {
9591
+ "text": "KeyboardEvent"
9592
+ },
9593
+ "description": "The keyboard event"
9594
+ }
9595
+ ],
9596
+ "description": "Toggles the checked state when enter key is used"
9597
+ },
9598
+ {
9599
+ "kind": "method",
9600
+ "name": "toggleOnSpace",
9601
+ "privacy": "private",
9602
+ "parameters": [
9603
+ {
9604
+ "name": "event",
9605
+ "type": {
9606
+ "text": "KeyboardEvent"
9607
+ },
9608
+ "description": "The keyboard event"
9609
+ }
9610
+ ],
9611
+ "description": "Toggles the checked state when space key is used"
9612
+ },
9613
+ {
9614
+ "kind": "method",
9615
+ "name": "renderHeader",
9430
9616
  "privacy": "protected",
9431
- "description": "Renders the title and subtitle on the card",
9617
+ "description": "Renders the header of the card",
9432
9618
  "return": {
9433
9619
  "type": {
9434
9620
  "text": ""
9435
9621
  }
9436
9622
  },
9437
9623
  "inheritedFrom": {
9438
- "name": "CardComponentMixin",
9439
- "module": "utils/mixins/CardComponentMixin.js"
9624
+ "name": "Card",
9625
+ "module": "components/card/card.component.js"
9440
9626
  }
9441
9627
  },
9442
9628
  {
9443
9629
  "kind": "field",
9444
- "name": "autoFocusOnMount",
9630
+ "name": "disabled",
9445
9631
  "type": {
9446
- "text": "boolean"
9632
+ "text": "boolean | undefined"
9447
9633
  },
9448
- "default": "false",
9449
- "description": "This property indicates whether the element should receive focus automatically when it is mounted.\n\nIt will not focus if the element is re-attached to the DOM after being removed.",
9450
- "attribute": "auto-focus-on-mount",
9634
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
9635
+ "default": "undefined",
9636
+ "attribute": "disabled",
9451
9637
  "reflects": true,
9452
9638
  "inheritedFrom": {
9453
- "name": "Buttonsimple",
9454
- "module": "components/buttonsimple/buttonsimple.component.js"
9639
+ "name": "DisabledMixin",
9640
+ "module": "utils/mixins/DisabledMixin.js"
9455
9641
  }
9456
9642
  },
9457
9643
  {
@@ -9465,342 +9651,280 @@
9465
9651
  "attribute": "tabIndex",
9466
9652
  "reflects": true,
9467
9653
  "inheritedFrom": {
9468
- "name": "Buttonsimple",
9469
- "module": "components/buttonsimple/buttonsimple.component.js"
9654
+ "name": "TabIndexMixin",
9655
+ "module": "utils/mixins/TabIndexMixin.js"
9470
9656
  }
9471
9657
  },
9472
9658
  {
9473
9659
  "kind": "field",
9474
- "name": "disabled",
9660
+ "name": "cardTitle",
9475
9661
  "type": {
9476
- "text": "boolean | undefined"
9662
+ "text": "string"
9477
9663
  },
9478
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
9479
- "default": "undefined",
9480
- "attribute": "disabled",
9664
+ "default": "''",
9665
+ "description": "The title of the card - part of header section",
9666
+ "attribute": "card-title",
9481
9667
  "reflects": true,
9482
9668
  "inheritedFrom": {
9483
- "name": "Buttonsimple",
9484
- "module": "components/buttonsimple/buttonsimple.component.js"
9669
+ "name": "Card",
9670
+ "module": "components/card/card.component.js"
9485
9671
  }
9486
9672
  },
9487
9673
  {
9488
9674
  "kind": "field",
9489
- "name": "active",
9675
+ "name": "subtitle",
9490
9676
  "type": {
9491
- "text": "boolean | undefined"
9677
+ "text": "string"
9492
9678
  },
9493
- "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.",
9494
- "default": "undefined",
9495
- "attribute": "active",
9679
+ "default": "''",
9680
+ "description": "The subtitle of the card - part of header section",
9681
+ "attribute": "subtitle",
9496
9682
  "reflects": true,
9497
9683
  "inheritedFrom": {
9498
- "name": "Buttonsimple",
9499
- "module": "components/buttonsimple/buttonsimple.component.js"
9684
+ "name": "Card",
9685
+ "module": "components/card/card.component.js"
9500
9686
  }
9501
9687
  },
9502
9688
  {
9503
9689
  "kind": "field",
9504
- "name": "softDisabled",
9690
+ "name": "imageSrc",
9505
9691
  "type": {
9506
- "text": "boolean | undefined"
9692
+ "text": "string"
9507
9693
  },
9508
- "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.",
9509
- "default": "undefined",
9510
- "attribute": "soft-disabled",
9694
+ "default": "''",
9695
+ "description": "The image source URL to render on the card",
9696
+ "attribute": "image-src",
9511
9697
  "reflects": true,
9512
9698
  "inheritedFrom": {
9513
- "name": "Buttonsimple",
9514
- "module": "components/buttonsimple/buttonsimple.component.js"
9699
+ "name": "Card",
9700
+ "module": "components/card/card.component.js"
9515
9701
  }
9516
9702
  },
9517
9703
  {
9518
9704
  "kind": "field",
9519
- "name": "size",
9705
+ "name": "imageAlt",
9520
9706
  "type": {
9521
- "text": "ButtonSize"
9707
+ "text": "string"
9522
9708
  },
9523
- "description": "Simplebutton size is a super set of all the sizes supported by children components.",
9524
- "default": "32",
9525
- "attribute": "size",
9709
+ "default": "''",
9710
+ "description": "The image alt for accessibility support",
9711
+ "attribute": "image-alt",
9526
9712
  "reflects": true,
9527
9713
  "inheritedFrom": {
9528
- "name": "Buttonsimple",
9529
- "module": "components/buttonsimple/buttonsimple.component.js"
9714
+ "name": "Card",
9715
+ "module": "components/card/card.component.js"
9530
9716
  }
9531
9717
  },
9532
9718
  {
9533
9719
  "kind": "field",
9534
- "name": "role",
9720
+ "name": "variant",
9535
9721
  "type": {
9536
- "text": "RoleType"
9722
+ "text": "CardVariant"
9537
9723
  },
9538
- "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.",
9539
- "default": "button",
9540
- "attribute": "role",
9724
+ "description": "The variant of the card. It can either be set to 'border' or 'ghost'",
9725
+ "default": "'border'",
9726
+ "attribute": "variant",
9541
9727
  "reflects": true,
9542
9728
  "inheritedFrom": {
9543
- "name": "Buttonsimple",
9544
- "module": "components/buttonsimple/buttonsimple.component.js"
9729
+ "name": "Card",
9730
+ "module": "components/card/card.component.js"
9545
9731
  }
9546
9732
  },
9547
9733
  {
9548
9734
  "kind": "field",
9549
- "name": "ariaStateKey",
9735
+ "name": "orientation",
9550
9736
  "type": {
9551
- "text": "string | undefined"
9737
+ "text": "CardOrientation"
9552
9738
  },
9553
- "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`",
9554
- "default": "'aria-pressed' (when)",
9555
- "attribute": "ariaStateKey",
9739
+ "description": "The orientation of the card. It can either be set to 'vertical' or 'horizontal'",
9740
+ "default": "'vertical'",
9741
+ "attribute": "orientation",
9556
9742
  "reflects": true,
9557
9743
  "inheritedFrom": {
9558
- "name": "Buttonsimple",
9559
- "module": "components/buttonsimple/buttonsimple.component.js"
9744
+ "name": "Card",
9745
+ "module": "components/card/card.component.js"
9560
9746
  }
9561
9747
  },
9562
9748
  {
9563
9749
  "kind": "field",
9564
- "name": "type",
9750
+ "name": "titleTagName",
9565
9751
  "type": {
9566
- "text": "ButtonType"
9752
+ "text": "TagNameType"
9567
9753
  },
9568
- "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.",
9569
- "default": "button",
9570
- "attribute": "type",
9754
+ "description": "The tag name for the card title. It supports all the types that `mdc-text` supports",
9755
+ "default": "'span'",
9756
+ "attribute": "title-tag-name",
9571
9757
  "reflects": true,
9572
9758
  "inheritedFrom": {
9573
- "name": "Buttonsimple",
9574
- "module": "components/buttonsimple/buttonsimple.component.js"
9759
+ "name": "Card",
9760
+ "module": "components/card/card.component.js"
9575
9761
  }
9576
9762
  },
9577
9763
  {
9578
9764
  "kind": "field",
9579
- "name": "name",
9765
+ "name": "subtitleTagName",
9580
9766
  "type": {
9581
- "text": "string | undefined"
9767
+ "text": "TagNameType"
9582
9768
  },
9583
- "description": "The name of the button, submitted as a pair with the button's value as part of the form data,\nwhen that button is used to submit the form.",
9584
- "attribute": "name",
9769
+ "description": "The tag name for the subtitle. It supports all the types that `mdc-text` supports",
9770
+ "default": "'span'",
9771
+ "attribute": "subtitle-tag-name",
9585
9772
  "reflects": true,
9586
9773
  "inheritedFrom": {
9587
- "name": "Buttonsimple",
9588
- "module": "components/buttonsimple/buttonsimple.component.js"
9774
+ "name": "Card",
9775
+ "module": "components/card/card.component.js"
9589
9776
  }
9590
9777
  },
9591
9778
  {
9592
9779
  "kind": "field",
9593
- "name": "value",
9780
+ "name": "iconName",
9594
9781
  "type": {
9595
- "text": "string | undefined"
9782
+ "text": "IconNames | undefined"
9596
9783
  },
9597
- "description": "Defines the value associated with the button's name when it's submitted with the form data.\nThis value is passed to the server in params when the form is submitted using this button.",
9598
- "attribute": "value",
9784
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
9785
+ "attribute": "icon-name",
9599
9786
  "reflects": true,
9600
9787
  "inheritedFrom": {
9601
- "name": "Buttonsimple",
9602
- "module": "components/buttonsimple/buttonsimple.component.js"
9788
+ "name": "Card",
9789
+ "module": "components/card/card.component.js"
9603
9790
  }
9604
9791
  },
9605
9792
  {
9606
9793
  "kind": "method",
9607
- "name": "executeAction",
9794
+ "name": "renderImage",
9608
9795
  "privacy": "protected",
9796
+ "description": "Renders the image on the card if image source is provided",
9797
+ "return": {
9798
+ "type": {
9799
+ "text": ""
9800
+ }
9801
+ },
9609
9802
  "inheritedFrom": {
9610
- "name": "Buttonsimple",
9611
- "module": "components/buttonsimple/buttonsimple.component.js"
9803
+ "name": "Card",
9804
+ "module": "components/card/card.component.js"
9612
9805
  }
9613
9806
  },
9614
9807
  {
9615
9808
  "kind": "method",
9616
- "name": "setActive",
9809
+ "name": "renderIcon",
9617
9810
  "privacy": "protected",
9618
- "parameters": [
9619
- {
9620
- "name": "element",
9621
- "type": {
9622
- "text": "HTMLElement"
9623
- },
9624
- "description": "The button element"
9625
- },
9626
- {
9627
- "name": "active",
9628
- "optional": true,
9629
- "type": {
9630
- "text": "boolean"
9631
- },
9632
- "description": "The active state of the element"
9811
+ "description": "Renders the icon on the card if icon name is provided",
9812
+ "return": {
9813
+ "type": {
9814
+ "text": ""
9633
9815
  }
9634
- ],
9635
- "description": "Sets the ariaStateKey attributes based on the active state of the button.",
9816
+ },
9636
9817
  "inheritedFrom": {
9637
- "name": "Buttonsimple",
9638
- "module": "components/buttonsimple/buttonsimple.component.js"
9818
+ "name": "Card",
9819
+ "module": "components/card/card.component.js"
9639
9820
  }
9640
9821
  },
9641
9822
  {
9642
9823
  "kind": "method",
9643
- "name": "setSoftDisabled",
9644
- "privacy": "private",
9645
- "parameters": [
9646
- {
9647
- "name": "element",
9648
- "type": {
9649
- "text": "HTMLElement"
9650
- },
9651
- "description": "The button element."
9652
- },
9653
- {
9654
- "name": "softDisabled",
9655
- "optional": true,
9656
- "type": {
9657
- "text": "boolean"
9658
- },
9659
- "description": "The soft-disabled state."
9824
+ "name": "renderTitle",
9825
+ "privacy": "protected",
9826
+ "description": "Renders the title and subtitle on the card",
9827
+ "return": {
9828
+ "type": {
9829
+ "text": ""
9660
9830
  }
9661
- ],
9662
- "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.",
9831
+ },
9663
9832
  "inheritedFrom": {
9664
- "name": "Buttonsimple",
9665
- "module": "components/buttonsimple/buttonsimple.component.js"
9833
+ "name": "Card",
9834
+ "module": "components/card/card.component.js"
9666
9835
  }
9667
9836
  },
9668
9837
  {
9669
9838
  "kind": "method",
9670
- "name": "setDisabled",
9671
- "privacy": "private",
9672
- "parameters": [
9673
- {
9674
- "name": "element",
9675
- "type": {
9676
- "text": "HTMLElement"
9677
- },
9678
- "description": "The button element."
9679
- },
9680
- {
9681
- "name": "disabled",
9682
- "type": {
9683
- "text": "boolean"
9684
- },
9685
- "description": "The disabled state."
9839
+ "name": "renderFooter",
9840
+ "privacy": "protected",
9841
+ "description": "Renders the footer of the card if footer-link,\nfooter-button-primary, or footer-button-secondary slots are provided",
9842
+ "return": {
9843
+ "type": {
9844
+ "text": ""
9686
9845
  }
9687
- ],
9688
- "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.",
9846
+ },
9689
9847
  "inheritedFrom": {
9690
- "name": "Buttonsimple",
9691
- "module": "components/buttonsimple/buttonsimple.component.js"
9848
+ "name": "Card",
9849
+ "module": "components/card/card.component.js"
9692
9850
  }
9851
+ }
9852
+ ],
9853
+ "events": [
9854
+ {
9855
+ "name": "change",
9856
+ "type": {
9857
+ "text": "Event"
9858
+ },
9859
+ "description": "(React: onChange) Event that gets dispatched when the card's checked state changes.",
9860
+ "reactName": "onChange"
9693
9861
  },
9694
9862
  {
9695
- "kind": "method",
9696
- "name": "triggerClickEvent",
9697
- "privacy": "private",
9698
- "inheritedFrom": {
9699
- "name": "Buttonsimple",
9700
- "module": "components/buttonsimple/buttonsimple.component.js"
9701
- }
9863
+ "description": "(React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.",
9864
+ "name": "click",
9865
+ "reactName": "onClick"
9702
9866
  },
9703
9867
  {
9704
- "kind": "method",
9705
- "name": "handleBlur",
9706
- "privacy": "private",
9707
- "description": "In case the button is pressed and the focus is lost while pressing,\nthe pressed class is removed.",
9708
- "inheritedFrom": {
9709
- "name": "Buttonsimple",
9710
- "module": "components/buttonsimple/buttonsimple.component.js"
9711
- }
9868
+ "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.",
9869
+ "name": "keydown",
9870
+ "reactName": "onKeyDown"
9712
9871
  },
9713
9872
  {
9714
- "kind": "method",
9715
- "name": "handleKeyDown",
9716
- "privacy": "private",
9717
- "parameters": [
9718
- {
9719
- "name": "event",
9720
- "type": {
9721
- "text": "KeyboardEvent"
9722
- },
9723
- "description": "The keyboard event."
9724
- }
9725
- ],
9726
- "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.",
9727
- "inheritedFrom": {
9728
- "name": "Buttonsimple",
9729
- "module": "components/buttonsimple/buttonsimple.component.js"
9730
- }
9873
+ "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.",
9874
+ "name": "keyup",
9875
+ "reactName": "onKeyUp"
9731
9876
  },
9732
9877
  {
9733
- "kind": "method",
9734
- "name": "handleKeyUp",
9735
- "privacy": "private",
9736
- "parameters": [
9737
- {
9738
- "name": "event",
9739
- "type": {
9740
- "text": "KeyboardEvent"
9741
- },
9742
- "description": "The keyboard event."
9743
- }
9744
- ],
9745
- "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.",
9746
- "inheritedFrom": {
9747
- "name": "Buttonsimple",
9748
- "module": "components/buttonsimple/buttonsimple.component.js"
9749
- }
9878
+ "description": "(React: onFocus) Event that gets dispatched when the card receives focus.",
9879
+ "name": "focus",
9880
+ "reactName": "onFocus"
9750
9881
  }
9751
9882
  ],
9752
- "events": [
9883
+ "attributes": [
9753
9884
  {
9754
- "description": "(React: onClick) Event that gets dispatched when the card is clicked.",
9755
- "name": "click",
9756
- "reactName": "onClick",
9757
- "inheritedFrom": {
9758
- "name": "Buttonsimple",
9759
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9760
- }
9885
+ "name": "checked",
9886
+ "type": {
9887
+ "text": "boolean"
9888
+ },
9889
+ "default": "false",
9890
+ "description": "The checked state of the card",
9891
+ "fieldName": "checked"
9761
9892
  },
9762
9893
  {
9763
- "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.",
9764
- "name": "keydown",
9765
- "reactName": "onKeyDown",
9766
- "inheritedFrom": {
9767
- "name": "Buttonsimple",
9768
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9769
- }
9894
+ "name": "name",
9895
+ "type": {
9896
+ "text": "string"
9897
+ },
9898
+ "default": "''",
9899
+ "description": "The name of the radio.",
9900
+ "fieldName": "name"
9770
9901
  },
9771
9902
  {
9772
- "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.",
9773
- "name": "keyup",
9774
- "reactName": "onKeyUp",
9903
+ "name": "disabled",
9904
+ "type": {
9905
+ "text": "boolean | undefined"
9906
+ },
9907
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
9908
+ "default": "undefined",
9909
+ "fieldName": "disabled",
9775
9910
  "inheritedFrom": {
9776
- "name": "Buttonsimple",
9777
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9911
+ "name": "DisabledMixin",
9912
+ "module": "src/utils/mixins/DisabledMixin.ts"
9778
9913
  }
9779
9914
  },
9780
9915
  {
9781
- "description": "(React: onFocus) Event that gets dispatched when the card receives focus.",
9782
- "name": "focus",
9783
- "reactName": "onFocus",
9916
+ "name": "tabIndex",
9917
+ "type": {
9918
+ "text": "number"
9919
+ },
9920
+ "default": "0",
9921
+ "description": "This property specifies the tab order of the element.",
9922
+ "fieldName": "tabIndex",
9784
9923
  "inheritedFrom": {
9785
- "name": "Buttonsimple",
9786
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9924
+ "name": "TabIndexMixin",
9925
+ "module": "src/utils/mixins/TabIndexMixin.ts"
9787
9926
  }
9788
- }
9789
- ],
9790
- "mixins": [
9791
- {
9792
- "name": "CardComponentMixin",
9793
- "module": "/src/utils/mixins/CardComponentMixin"
9794
- }
9795
- ],
9796
- "superclass": {
9797
- "name": "Buttonsimple",
9798
- "module": "/src/components/buttonsimple/buttonsimple.component"
9799
- },
9800
- "tagName": "mdc-cardbutton",
9801
- "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 * @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 * @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 * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.\n *\n * @csspart header - The header part of the card\n * @csspart icon - The icon part of the card header\n * @csspart body - The body part of the card\n * @csspart image - The image part of the card\n * @csspart footer - The footer part of the card\n * @csspart footer-link - The link part of the card footer\n * @csspart footer-button-primary - The primary button part of the card footer\n * @csspart footer-button-secondary - The secondary button part of the card footer\n * @csspart icon-button - The icon button part of the card header\n * @csspart text - The text part of the card\n *\n * @cssproperty --mdc-card-width - The width of the card\n */",
9802
- "customElement": true,
9803
- "attributes": [
9927
+ },
9804
9928
  {
9805
9929
  "name": "card-title",
9806
9930
  "type": {
@@ -9810,8 +9934,8 @@
9810
9934
  "description": "The title of the card - part of header section",
9811
9935
  "fieldName": "cardTitle",
9812
9936
  "inheritedFrom": {
9813
- "name": "CardComponentMixin",
9814
- "module": "src/utils/mixins/CardComponentMixin.ts"
9937
+ "name": "Card",
9938
+ "module": "src/components/card/card.component.ts"
9815
9939
  }
9816
9940
  },
9817
9941
  {
@@ -9823,8 +9947,8 @@
9823
9947
  "description": "The subtitle of the card - part of header section",
9824
9948
  "fieldName": "subtitle",
9825
9949
  "inheritedFrom": {
9826
- "name": "CardComponentMixin",
9827
- "module": "src/utils/mixins/CardComponentMixin.ts"
9950
+ "name": "Card",
9951
+ "module": "src/components/card/card.component.ts"
9828
9952
  }
9829
9953
  },
9830
9954
  {
@@ -9836,8 +9960,8 @@
9836
9960
  "description": "The image source URL to render on the card",
9837
9961
  "fieldName": "imageSrc",
9838
9962
  "inheritedFrom": {
9839
- "name": "CardComponentMixin",
9840
- "module": "src/utils/mixins/CardComponentMixin.ts"
9963
+ "name": "Card",
9964
+ "module": "src/components/card/card.component.ts"
9841
9965
  }
9842
9966
  },
9843
9967
  {
@@ -9849,8 +9973,8 @@
9849
9973
  "description": "The image alt for accessibility support",
9850
9974
  "fieldName": "imageAlt",
9851
9975
  "inheritedFrom": {
9852
- "name": "CardComponentMixin",
9853
- "module": "src/utils/mixins/CardComponentMixin.ts"
9976
+ "name": "Card",
9977
+ "module": "src/components/card/card.component.ts"
9854
9978
  }
9855
9979
  },
9856
9980
  {
@@ -9862,8 +9986,8 @@
9862
9986
  "default": "'border'",
9863
9987
  "fieldName": "variant",
9864
9988
  "inheritedFrom": {
9865
- "name": "CardComponentMixin",
9866
- "module": "src/utils/mixins/CardComponentMixin.ts"
9989
+ "name": "Card",
9990
+ "module": "src/components/card/card.component.ts"
9867
9991
  }
9868
9992
  },
9869
9993
  {
@@ -9875,8 +9999,8 @@
9875
9999
  "default": "'vertical'",
9876
10000
  "fieldName": "orientation",
9877
10001
  "inheritedFrom": {
9878
- "name": "CardComponentMixin",
9879
- "module": "src/utils/mixins/CardComponentMixin.ts"
10002
+ "name": "Card",
10003
+ "module": "src/components/card/card.component.ts"
9880
10004
  }
9881
10005
  },
9882
10006
  {
@@ -9888,8 +10012,8 @@
9888
10012
  "default": "'span'",
9889
10013
  "fieldName": "titleTagName",
9890
10014
  "inheritedFrom": {
9891
- "name": "CardComponentMixin",
9892
- "module": "src/utils/mixins/CardComponentMixin.ts"
10015
+ "name": "Card",
10016
+ "module": "src/components/card/card.component.ts"
9893
10017
  }
9894
10018
  },
9895
10019
  {
@@ -9901,8 +10025,8 @@
9901
10025
  "default": "'span'",
9902
10026
  "fieldName": "subtitleTagName",
9903
10027
  "inheritedFrom": {
9904
- "name": "CardComponentMixin",
9905
- "module": "src/utils/mixins/CardComponentMixin.ts"
10028
+ "name": "Card",
10029
+ "module": "src/components/card/card.component.ts"
9906
10030
  }
9907
10031
  },
9908
10032
  {
@@ -9913,152 +10037,28 @@
9913
10037
  "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
9914
10038
  "fieldName": "iconName",
9915
10039
  "inheritedFrom": {
9916
- "name": "CardComponentMixin",
9917
- "module": "src/utils/mixins/CardComponentMixin.ts"
9918
- }
9919
- },
9920
- {
9921
- "name": "auto-focus-on-mount",
9922
- "type": {
9923
- "text": "boolean"
9924
- },
9925
- "default": "false",
9926
- "description": "This property indicates whether the element should receive focus automatically when it is mounted.\n\nIt will not focus if the element is re-attached to the DOM after being removed.",
9927
- "fieldName": "autoFocusOnMount",
9928
- "inheritedFrom": {
9929
- "name": "Buttonsimple",
9930
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9931
- }
9932
- },
9933
- {
9934
- "name": "tabIndex",
9935
- "type": {
9936
- "text": "number"
9937
- },
9938
- "default": "0",
9939
- "description": "This property specifies the tab order of the element.",
9940
- "fieldName": "tabIndex",
9941
- "inheritedFrom": {
9942
- "name": "Buttonsimple",
9943
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9944
- }
9945
- },
9946
- {
9947
- "name": "disabled",
9948
- "type": {
9949
- "text": "boolean | undefined"
9950
- },
9951
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
9952
- "default": "undefined",
9953
- "fieldName": "disabled",
9954
- "inheritedFrom": {
9955
- "name": "Buttonsimple",
9956
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9957
- }
9958
- },
9959
- {
9960
- "name": "active",
9961
- "type": {
9962
- "text": "boolean | undefined"
9963
- },
9964
- "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.",
9965
- "default": "undefined",
9966
- "fieldName": "active",
9967
- "inheritedFrom": {
9968
- "name": "Buttonsimple",
9969
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9970
- }
9971
- },
9972
- {
9973
- "name": "soft-disabled",
9974
- "type": {
9975
- "text": "boolean | undefined"
9976
- },
9977
- "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.",
9978
- "default": "undefined",
9979
- "fieldName": "softDisabled",
9980
- "inheritedFrom": {
9981
- "name": "Buttonsimple",
9982
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9983
- }
9984
- },
9985
- {
9986
- "name": "size",
9987
- "type": {
9988
- "text": "ButtonSize"
9989
- },
9990
- "description": "Simplebutton size is a super set of all the sizes supported by children components.",
9991
- "default": "32",
9992
- "fieldName": "size",
9993
- "inheritedFrom": {
9994
- "name": "Buttonsimple",
9995
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9996
- }
9997
- },
9998
- {
9999
- "name": "role",
10000
- "type": {
10001
- "text": "RoleType"
10002
- },
10003
- "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.",
10004
- "default": "button",
10005
- "fieldName": "role",
10006
- "inheritedFrom": {
10007
- "name": "Buttonsimple",
10008
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
10009
- }
10010
- },
10011
- {
10012
- "name": "ariaStateKey",
10013
- "type": {
10014
- "text": "string | undefined"
10015
- },
10016
- "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`",
10017
- "default": "'aria-pressed' (when)",
10018
- "fieldName": "ariaStateKey",
10019
- "inheritedFrom": {
10020
- "name": "Buttonsimple",
10021
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
10022
- }
10023
- },
10024
- {
10025
- "name": "type",
10026
- "type": {
10027
- "text": "ButtonType"
10028
- },
10029
- "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.",
10030
- "default": "button",
10031
- "fieldName": "type",
10032
- "inheritedFrom": {
10033
- "name": "Buttonsimple",
10034
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
10040
+ "name": "Card",
10041
+ "module": "src/components/card/card.component.ts"
10035
10042
  }
10036
- },
10043
+ }
10044
+ ],
10045
+ "mixins": [
10037
10046
  {
10038
- "name": "name",
10039
- "type": {
10040
- "text": "string | undefined"
10041
- },
10042
- "description": "The name of the button, submitted as a pair with the button's value as part of the form data,\nwhen that button is used to submit the form.",
10043
- "fieldName": "name",
10044
- "inheritedFrom": {
10045
- "name": "Buttonsimple",
10046
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
10047
- }
10047
+ "name": "DisabledMixin",
10048
+ "module": "/src/utils/mixins/DisabledMixin"
10048
10049
  },
10049
10050
  {
10050
- "name": "value",
10051
- "type": {
10052
- "text": "string | undefined"
10053
- },
10054
- "description": "Defines the value associated with the button's name when it's submitted with the form data.\nThis value is passed to the server in params when the form is submitted using this button.",
10055
- "fieldName": "value",
10056
- "inheritedFrom": {
10057
- "name": "Buttonsimple",
10058
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
10059
- }
10051
+ "name": "TabIndexMixin",
10052
+ "module": "/src/utils/mixins/TabIndexMixin"
10060
10053
  }
10061
- ]
10054
+ ],
10055
+ "superclass": {
10056
+ "name": "Card",
10057
+ "module": "/src/components/card/card.component"
10058
+ },
10059
+ "tagName": "mdc-cardradio",
10060
+ "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 * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.\n *\n * @csspart header - The header part of the card\n * @csspart icon - The icon part of the card header\n * @csspart body - The body part of the card\n * @csspart image - The image part of the card\n * @csspart footer - The footer part of the card\n * @csspart footer-link - The link part of the card footer\n * @csspart footer-button-primary - The primary button part of the card footer\n * @csspart footer-button-secondary - The secondary button part of the card footer\n * @csspart icon-button - The icon button part of the card header\n * @csspart text - The text part of the card\n * @csspart check - The check part of the card\n * @csspart check-icon - The check icon part of the card\n * @csspart check-icon-button - The check icon button part of the card\n *\n * @cssproperty --mdc-card-width - The width of the card\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 focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n * @event change - (React: onChange) Event that gets dispatched when the card's checked state changes.\n */",
10061
+ "customElement": true
10062
10062
  }
10063
10063
  ],
10064
10064
  "exports": [
@@ -10066,8 +10066,8 @@
10066
10066
  "kind": "js",
10067
10067
  "name": "default",
10068
10068
  "declaration": {
10069
- "name": "CardButton",
10070
- "module": "components/cardbutton/cardbutton.component.js"
10069
+ "name": "CardRadio",
10070
+ "module": "components/cardradio/cardradio.component.js"
10071
10071
  }
10072
10072
  }
10073
10073
  ]