@momentum-design/components 0.15.2 → 0.15.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -527,36 +527,6 @@
527
527
  }
528
528
  ],
529
529
  "members": [
530
- {
531
- "kind": "field",
532
- "name": "active",
533
- "type": {
534
- "text": "boolean"
535
- },
536
- "default": "false",
537
- "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.",
538
- "attribute": "active"
539
- },
540
- {
541
- "kind": "field",
542
- "name": "disabled",
543
- "type": {
544
- "text": "boolean"
545
- },
546
- "default": "false",
547
- "description": "Indicates whether the button is disabled.\nThe button is currently disabled for user interaction; it is not focusable or clickable.",
548
- "attribute": "disabled"
549
- },
550
- {
551
- "kind": "field",
552
- "name": "softDisabled",
553
- "type": {
554
- "text": "boolean"
555
- },
556
- "default": "false",
557
- "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.",
558
- "attribute": "soft-disabled"
559
- },
560
530
  {
561
531
  "kind": "field",
562
532
  "name": "prefixIcon",
@@ -591,11 +561,16 @@
591
561
  "kind": "field",
592
562
  "name": "size",
593
563
  "type": {
594
- "text": "PillButtonSize | IconButtonSize"
564
+ "text": "ButtonSize"
595
565
  },
596
566
  "description": "Button sizing is based on the button type.\n- **Pill button**: 40, 32, 28, 24.\n- **Icon button**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon button cam also be 20.",
597
567
  "default": "32",
598
- "attribute": "size"
568
+ "attribute": "size",
569
+ "reflects": true,
570
+ "inheritedFrom": {
571
+ "name": "Buttonsimple",
572
+ "module": "components/buttonsimple/buttonsimple.component.js"
573
+ }
599
574
  },
600
575
  {
601
576
  "kind": "field",
@@ -616,34 +591,26 @@
616
591
  "default": "0",
617
592
  "description": "The tabindex of the button.",
618
593
  "attribute": "tabIndex",
619
- "reflects": true
594
+ "reflects": true,
595
+ "inheritedFrom": {
596
+ "name": "Buttonsimple",
597
+ "module": "components/buttonsimple/buttonsimple.component.js"
598
+ }
620
599
  },
621
600
  {
622
601
  "kind": "field",
623
602
  "name": "role",
624
- "type": {
625
- "text": "string"
626
- },
627
- "default": "'button'",
628
603
  "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.",
604
+ "default": "'button'",
629
605
  "attribute": "role",
630
- "reflects": true
631
- },
632
- {
633
- "kind": "field",
634
- "name": "type",
606
+ "reflects": true,
635
607
  "type": {
636
- "text": "ButtonType"
608
+ "text": "string"
637
609
  },
638
- "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.",
639
- "default": "button",
640
- "attribute": "type",
641
- "reflects": true
642
- },
643
- {
644
- "kind": "method",
645
- "name": "executeAction",
646
- "privacy": "private"
610
+ "inheritedFrom": {
611
+ "name": "Buttonsimple",
612
+ "module": "components/buttonsimple/buttonsimple.component.js"
613
+ }
647
614
  },
648
615
  {
649
616
  "kind": "method",
@@ -705,6 +672,84 @@
705
672
  ],
706
673
  "description": "Sets the color attribute for the button.\nDefaults to DEFAULTS.COLOR if invalid or for tertiary buttons."
707
674
  },
675
+ {
676
+ "kind": "method",
677
+ "name": "inferButtonType",
678
+ "privacy": "private",
679
+ "description": "Infers the type of button based on the presence of slot and/or prefix and postfix icons.",
680
+ "parameters": [
681
+ {
682
+ "description": "default slot of button",
683
+ "name": "slot"
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ "kind": "field",
689
+ "name": "active",
690
+ "type": {
691
+ "text": "boolean"
692
+ },
693
+ "default": "false",
694
+ "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.",
695
+ "attribute": "active",
696
+ "inheritedFrom": {
697
+ "name": "Buttonsimple",
698
+ "module": "components/buttonsimple/buttonsimple.component.js"
699
+ }
700
+ },
701
+ {
702
+ "kind": "field",
703
+ "name": "disabled",
704
+ "type": {
705
+ "text": "boolean"
706
+ },
707
+ "default": "false",
708
+ "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
709
+ "attribute": "disabled",
710
+ "inheritedFrom": {
711
+ "name": "Buttonsimple",
712
+ "module": "components/buttonsimple/buttonsimple.component.js"
713
+ }
714
+ },
715
+ {
716
+ "kind": "field",
717
+ "name": "softDisabled",
718
+ "type": {
719
+ "text": "boolean"
720
+ },
721
+ "default": "false",
722
+ "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.",
723
+ "attribute": "soft-disabled",
724
+ "inheritedFrom": {
725
+ "name": "Buttonsimple",
726
+ "module": "components/buttonsimple/buttonsimple.component.js"
727
+ }
728
+ },
729
+ {
730
+ "kind": "field",
731
+ "name": "type",
732
+ "type": {
733
+ "text": "ButtonType"
734
+ },
735
+ "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.",
736
+ "default": "button",
737
+ "attribute": "type",
738
+ "reflects": true,
739
+ "inheritedFrom": {
740
+ "name": "Buttonsimple",
741
+ "module": "components/buttonsimple/buttonsimple.component.js"
742
+ }
743
+ },
744
+ {
745
+ "kind": "method",
746
+ "name": "executeAction",
747
+ "privacy": "private",
748
+ "inheritedFrom": {
749
+ "name": "Buttonsimple",
750
+ "module": "components/buttonsimple/buttonsimple.component.js"
751
+ }
752
+ },
708
753
  {
709
754
  "kind": "method",
710
755
  "name": "setAriaPressed",
@@ -725,7 +770,11 @@
725
770
  "description": "The active state."
726
771
  }
727
772
  ],
728
- "description": "Sets the aria-pressed attribute based on the active state."
773
+ "description": "Sets the aria-pressed attribute based on the active state.",
774
+ "inheritedFrom": {
775
+ "name": "Buttonsimple",
776
+ "module": "components/buttonsimple/buttonsimple.component.js"
777
+ }
729
778
  },
730
779
  {
731
780
  "kind": "method",
@@ -747,7 +796,11 @@
747
796
  "description": "The soft-disabled state."
748
797
  }
749
798
  ],
750
- "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."
799
+ "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.",
800
+ "inheritedFrom": {
801
+ "name": "Buttonsimple",
802
+ "module": "components/buttonsimple/buttonsimple.component.js"
803
+ }
751
804
  },
752
805
  {
753
806
  "kind": "method",
@@ -769,12 +822,20 @@
769
822
  "description": "The disabled state."
770
823
  }
771
824
  ],
772
- "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."
825
+ "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.",
826
+ "inheritedFrom": {
827
+ "name": "Buttonsimple",
828
+ "module": "components/buttonsimple/buttonsimple.component.js"
829
+ }
773
830
  },
774
831
  {
775
832
  "kind": "method",
776
833
  "name": "triggerClickEvent",
777
- "privacy": "private"
834
+ "privacy": "private",
835
+ "inheritedFrom": {
836
+ "name": "Buttonsimple",
837
+ "module": "components/buttonsimple/buttonsimple.component.js"
838
+ }
778
839
  },
779
840
  {
780
841
  "kind": "method",
@@ -789,7 +850,11 @@
789
850
  "description": "The keyboard event."
790
851
  }
791
852
  ],
792
- "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."
853
+ "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.",
854
+ "inheritedFrom": {
855
+ "name": "Buttonsimple",
856
+ "module": "components/buttonsimple/buttonsimple.component.js"
857
+ }
793
858
  },
794
859
  {
795
860
  "kind": "method",
@@ -804,22 +869,87 @@
804
869
  "description": "The keyboard event."
805
870
  }
806
871
  ],
807
- "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."
808
- },
809
- {
810
- "kind": "method",
811
- "name": "inferButtonType",
812
- "privacy": "private",
813
- "description": "Infers the type of button based on the presence of slot and/or prefix and postfix icons.",
814
- "parameters": [
815
- {
816
- "description": "default slot of button",
817
- "name": "slot"
818
- }
819
- ]
872
+ "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.",
873
+ "inheritedFrom": {
874
+ "name": "Buttonsimple",
875
+ "module": "components/buttonsimple/buttonsimple.component.js"
876
+ }
820
877
  }
821
878
  ],
822
879
  "attributes": [
880
+ {
881
+ "name": "prefix-icon",
882
+ "type": {
883
+ "text": "string | undefined"
884
+ },
885
+ "description": "The name of the icon to display as a prefix.\nThe icon is displayed on the left side of the button.",
886
+ "fieldName": "prefixIcon"
887
+ },
888
+ {
889
+ "name": "postfix-icon",
890
+ "type": {
891
+ "text": "string | undefined"
892
+ },
893
+ "description": "The name of the icon to display as a postfix.\nThe icon is displayed on the right side of the button.",
894
+ "fieldName": "postfixIcon"
895
+ },
896
+ {
897
+ "name": "variant",
898
+ "type": {
899
+ "text": "ButtonVariant"
900
+ },
901
+ "description": "There are 3 variants of button: primary, secondary, tertiary. They are styled differently.\n- **Primary**: Solid background color.\n- **Secondary**: Transparent background with a solid border.\n- **Tertiary**: No background or border, appears as plain text but retains all button functionalities.",
902
+ "default": "primary",
903
+ "fieldName": "variant"
904
+ },
905
+ {
906
+ "name": "size",
907
+ "type": {
908
+ "text": "ButtonSize"
909
+ },
910
+ "description": "Button sizing is based on the button type.\n- **Pill button**: 40, 32, 28, 24.\n- **Icon button**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon button cam also be 20.",
911
+ "default": "32",
912
+ "fieldName": "size",
913
+ "inheritedFrom": {
914
+ "name": "Buttonsimple",
915
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
916
+ }
917
+ },
918
+ {
919
+ "name": "color",
920
+ "type": {
921
+ "text": "ButtonColor"
922
+ },
923
+ "description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
924
+ "default": "default",
925
+ "fieldName": "color"
926
+ },
927
+ {
928
+ "name": "tabIndex",
929
+ "type": {
930
+ "text": "number"
931
+ },
932
+ "default": "0",
933
+ "description": "The tabindex of the button.",
934
+ "fieldName": "tabIndex",
935
+ "inheritedFrom": {
936
+ "name": "Buttonsimple",
937
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
938
+ }
939
+ },
940
+ {
941
+ "name": "role",
942
+ "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.",
943
+ "default": "'button'",
944
+ "fieldName": "role",
945
+ "type": {
946
+ "text": "string"
947
+ },
948
+ "inheritedFrom": {
949
+ "name": "Buttonsimple",
950
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
951
+ }
952
+ },
823
953
  {
824
954
  "name": "active",
825
955
  "type": {
@@ -827,7 +957,11 @@
827
957
  },
828
958
  "default": "false",
829
959
  "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.",
830
- "fieldName": "active"
960
+ "fieldName": "active",
961
+ "inheritedFrom": {
962
+ "name": "Buttonsimple",
963
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
964
+ }
831
965
  },
832
966
  {
833
967
  "name": "disabled",
@@ -835,8 +969,12 @@
835
969
  "text": "boolean"
836
970
  },
837
971
  "default": "false",
838
- "description": "Indicates whether the button is disabled.\nThe button is currently disabled for user interaction; it is not focusable or clickable.",
839
- "fieldName": "disabled"
972
+ "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
973
+ "fieldName": "disabled",
974
+ "inheritedFrom": {
975
+ "name": "Buttonsimple",
976
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
977
+ }
840
978
  },
841
979
  {
842
980
  "name": "soft-disabled",
@@ -845,50 +983,269 @@
845
983
  },
846
984
  "default": "false",
847
985
  "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.",
848
- "fieldName": "softDisabled"
986
+ "fieldName": "softDisabled",
987
+ "inheritedFrom": {
988
+ "name": "Buttonsimple",
989
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
990
+ }
849
991
  },
850
992
  {
851
- "name": "prefix-icon",
993
+ "name": "type",
852
994
  "type": {
853
- "text": "string | undefined"
995
+ "text": "ButtonType"
854
996
  },
855
- "description": "The name of the icon to display as a prefix.\nThe icon is displayed on the left side of the button.",
856
- "fieldName": "prefixIcon"
997
+ "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.",
998
+ "default": "button",
999
+ "fieldName": "type",
1000
+ "inheritedFrom": {
1001
+ "name": "Buttonsimple",
1002
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
1003
+ }
1004
+ }
1005
+ ],
1006
+ "superclass": {
1007
+ "name": "Buttonsimple",
1008
+ "module": "/src/components/buttonsimple"
1009
+ },
1010
+ "tagName": "mdc-button",
1011
+ "jsDoc": "/**\n * `mdc-button` is a component that can be configured in various ways to suit different use cases.\n *\n * Button Variants:\n * - **Primary**: Solid background color.\n * - **Secondary**: Transparent background with a solid border.\n * - **Tertiary**: No background or border, appears as plain text but retains all button functionalities.\n *\n * Button Colors:\n * - **Positive**: Green color.\n * - **Negative**: Red color.\n * - **Accent**: Blue color.\n * - **Promotional**: Purple color.\n * - **Default**: White color.\n *\n * Button Sizes (in REM units):\n * - **Pill button**: 40, 32, 28, 24.\n * - **Icon button**: 64, 52, 40, 32, 28, 24.\n * - **Tertiary icon button**: 20.\n *\n * Button Types:\n * - **Pill button**: A button that contains text value. Commonly used for call to action, tags, or filters.\n * - **Pill button with icons**: A button containing an icon either on the left or right side of the button.\n * - **Icon button**: A button represented by just an icon without any text.\n * The type of button is inferred based on the presence of slot and/or prefix and postfix icons.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-button\n *\n * @slot - Text label of the button.\n */",
1012
+ "customElement": true
1013
+ }
1014
+ ],
1015
+ "exports": [
1016
+ {
1017
+ "kind": "js",
1018
+ "name": "default",
1019
+ "declaration": {
1020
+ "name": "Button",
1021
+ "module": "components/button/button.component.js"
1022
+ }
1023
+ }
1024
+ ]
1025
+ },
1026
+ {
1027
+ "kind": "javascript-module",
1028
+ "path": "components/buttonsimple/buttonsimple.component.js",
1029
+ "declarations": [
1030
+ {
1031
+ "kind": "class",
1032
+ "description": "`mdc-buttonsimple` is a component that can be configured in various ways to suit different use cases.\nIt is used as an internal component and is not intended to be used directly by consumers.\nConsumers should use the `mdc-button` component instead.",
1033
+ "name": "Buttonsimple",
1034
+ "members": [
1035
+ {
1036
+ "kind": "field",
1037
+ "name": "active",
1038
+ "type": {
1039
+ "text": "boolean"
1040
+ },
1041
+ "default": "false",
1042
+ "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.",
1043
+ "attribute": "active"
857
1044
  },
858
1045
  {
859
- "name": "postfix-icon",
1046
+ "kind": "field",
1047
+ "name": "disabled",
860
1048
  "type": {
861
- "text": "string | undefined"
1049
+ "text": "boolean"
862
1050
  },
863
- "description": "The name of the icon to display as a postfix.\nThe icon is displayed on the right side of the button.",
864
- "fieldName": "postfixIcon"
1051
+ "default": "false",
1052
+ "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
1053
+ "attribute": "disabled"
865
1054
  },
866
1055
  {
867
- "name": "variant",
1056
+ "kind": "field",
1057
+ "name": "softDisabled",
868
1058
  "type": {
869
- "text": "ButtonVariant"
1059
+ "text": "boolean"
870
1060
  },
871
- "description": "There are 3 variants of button: primary, secondary, tertiary. They are styled differently.\n- **Primary**: Solid background color.\n- **Secondary**: Transparent background with a solid border.\n- **Tertiary**: No background or border, appears as plain text but retains all button functionalities.",
872
- "default": "primary",
873
- "fieldName": "variant"
1061
+ "default": "false",
1062
+ "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.",
1063
+ "attribute": "soft-disabled"
874
1064
  },
875
1065
  {
1066
+ "kind": "field",
876
1067
  "name": "size",
877
1068
  "type": {
878
- "text": "PillButtonSize | IconButtonSize"
1069
+ "text": "ButtonSize"
879
1070
  },
880
1071
  "description": "Button sizing is based on the button type.\n- **Pill button**: 40, 32, 28, 24.\n- **Icon button**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon button cam also be 20.",
881
1072
  "default": "32",
882
- "fieldName": "size"
1073
+ "attribute": "size",
1074
+ "reflects": true
883
1075
  },
884
1076
  {
885
- "name": "color",
1077
+ "kind": "field",
1078
+ "name": "tabIndex",
886
1079
  "type": {
887
- "text": "ButtonColor"
1080
+ "text": "number"
888
1081
  },
889
- "description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
890
- "default": "default",
891
- "fieldName": "color"
1082
+ "default": "0",
1083
+ "description": "The tabindex of the button.",
1084
+ "attribute": "tabIndex",
1085
+ "reflects": true
1086
+ },
1087
+ {
1088
+ "kind": "field",
1089
+ "name": "role",
1090
+ "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.",
1091
+ "default": "button",
1092
+ "attribute": "role",
1093
+ "reflects": true
1094
+ },
1095
+ {
1096
+ "kind": "field",
1097
+ "name": "type",
1098
+ "type": {
1099
+ "text": "ButtonType"
1100
+ },
1101
+ "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.",
1102
+ "default": "button",
1103
+ "attribute": "type",
1104
+ "reflects": true
1105
+ },
1106
+ {
1107
+ "kind": "method",
1108
+ "name": "executeAction",
1109
+ "privacy": "private"
1110
+ },
1111
+ {
1112
+ "kind": "method",
1113
+ "name": "setAriaPressed",
1114
+ "privacy": "private",
1115
+ "parameters": [
1116
+ {
1117
+ "name": "element",
1118
+ "type": {
1119
+ "text": "HTMLElement"
1120
+ },
1121
+ "description": "The target element."
1122
+ },
1123
+ {
1124
+ "name": "active",
1125
+ "type": {
1126
+ "text": "boolean"
1127
+ },
1128
+ "description": "The active state."
1129
+ }
1130
+ ],
1131
+ "description": "Sets the aria-pressed attribute based on the active state."
1132
+ },
1133
+ {
1134
+ "kind": "method",
1135
+ "name": "setSoftDisabled",
1136
+ "privacy": "private",
1137
+ "parameters": [
1138
+ {
1139
+ "name": "element",
1140
+ "type": {
1141
+ "text": "HTMLElement"
1142
+ },
1143
+ "description": "The button element."
1144
+ },
1145
+ {
1146
+ "name": "softDisabled",
1147
+ "type": {
1148
+ "text": "boolean"
1149
+ },
1150
+ "description": "The soft-disabled state."
1151
+ }
1152
+ ],
1153
+ "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."
1154
+ },
1155
+ {
1156
+ "kind": "method",
1157
+ "name": "setDisabled",
1158
+ "privacy": "private",
1159
+ "parameters": [
1160
+ {
1161
+ "name": "element",
1162
+ "type": {
1163
+ "text": "HTMLElement"
1164
+ },
1165
+ "description": "The button element."
1166
+ },
1167
+ {
1168
+ "name": "disabled",
1169
+ "type": {
1170
+ "text": "boolean"
1171
+ },
1172
+ "description": "The disabled state."
1173
+ }
1174
+ ],
1175
+ "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."
1176
+ },
1177
+ {
1178
+ "kind": "method",
1179
+ "name": "triggerClickEvent",
1180
+ "privacy": "private"
1181
+ },
1182
+ {
1183
+ "kind": "method",
1184
+ "name": "handleKeyDown",
1185
+ "privacy": "private",
1186
+ "parameters": [
1187
+ {
1188
+ "name": "event",
1189
+ "type": {
1190
+ "text": "KeyboardEvent"
1191
+ },
1192
+ "description": "The keyboard event."
1193
+ }
1194
+ ],
1195
+ "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."
1196
+ },
1197
+ {
1198
+ "kind": "method",
1199
+ "name": "handleKeyUp",
1200
+ "privacy": "private",
1201
+ "parameters": [
1202
+ {
1203
+ "name": "event",
1204
+ "type": {
1205
+ "text": "KeyboardEvent"
1206
+ },
1207
+ "description": "The keyboard event."
1208
+ }
1209
+ ],
1210
+ "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."
1211
+ }
1212
+ ],
1213
+ "attributes": [
1214
+ {
1215
+ "name": "active",
1216
+ "type": {
1217
+ "text": "boolean"
1218
+ },
1219
+ "default": "false",
1220
+ "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.",
1221
+ "fieldName": "active"
1222
+ },
1223
+ {
1224
+ "name": "disabled",
1225
+ "type": {
1226
+ "text": "boolean"
1227
+ },
1228
+ "default": "false",
1229
+ "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
1230
+ "fieldName": "disabled"
1231
+ },
1232
+ {
1233
+ "name": "soft-disabled",
1234
+ "type": {
1235
+ "text": "boolean"
1236
+ },
1237
+ "default": "false",
1238
+ "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.",
1239
+ "fieldName": "softDisabled"
1240
+ },
1241
+ {
1242
+ "name": "size",
1243
+ "type": {
1244
+ "text": "ButtonSize"
1245
+ },
1246
+ "description": "Button sizing is based on the button type.\n- **Pill button**: 40, 32, 28, 24.\n- **Icon button**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon button cam also be 20.",
1247
+ "default": "32",
1248
+ "fieldName": "size"
892
1249
  },
893
1250
  {
894
1251
  "name": "tabIndex",
@@ -901,11 +1258,8 @@
901
1258
  },
902
1259
  {
903
1260
  "name": "role",
904
- "type": {
905
- "text": "string"
906
- },
907
- "default": "'button'",
908
1261
  "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.",
1262
+ "default": "button",
909
1263
  "fieldName": "role"
910
1264
  },
911
1265
  {
@@ -922,8 +1276,8 @@
922
1276
  "name": "Component",
923
1277
  "module": "/src/models"
924
1278
  },
925
- "tagName": "mdc-button",
926
- "jsDoc": "/**\n * `mdc-button` is a component that can be configured in various ways to suit different use cases.\n *\n * Button Variants:\n * - **Primary**: Solid background color.\n * - **Secondary**: Transparent background with a solid border.\n * - **Tertiary**: No background or border, appears as plain text but retains all button functionalities.\n *\n * Button Colors:\n * - **Positive**: Green color.\n * - **Negative**: Red color.\n * - **Accent**: Blue color.\n * - **Promotional**: Purple color.\n * - **Default**: White color.\n *\n * Button Sizes (in REM units):\n * - **Pill button**: 40, 32, 28, 24.\n * - **Icon button**: 64, 52, 40, 32, 28, 24.\n * - **Tertiary icon button**: 20.\n *\n * Button Types:\n * - **Pill button**: A button that contains text value. Commonly used for call to action, tags, or filters.\n * - **Pill button with icons**: A button containing an icon either on the left or right side of the button.\n * - **Icon button**: A button represented by just an icon without any text.\n * The type of button is inferred based on the presence of slot and/or prefix and postfix icons.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-button\n *\n * @slot - Text label of the button.\n */",
1279
+ "tagName": "mdc-buttonsimple",
1280
+ "jsDoc": "/**\n * `mdc-buttonsimple` is a component that can be configured in various ways to suit different use cases.\n * It is used as an internal component and is not intended to be used directly by consumers.\n * Consumers should use the `mdc-button` component instead.\n *\n * @tagname mdc-buttonsimple\n *\n */",
927
1281
  "customElement": true
928
1282
  }
929
1283
  ],
@@ -932,8 +1286,8 @@
932
1286
  "kind": "js",
933
1287
  "name": "default",
934
1288
  "declaration": {
935
- "name": "Button",
936
- "module": "components/button/button.component.js"
1289
+ "name": "Buttonsimple",
1290
+ "module": "components/buttonsimple/buttonsimple.component.js"
937
1291
  }
938
1292
  }
939
1293
  ]