@momentum-design/components 0.15.2 → 0.15.4

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,18 +591,140 @@
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",
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'",
605
+ "attribute": "role",
606
+ "reflects": true,
624
607
  "type": {
625
608
  "text": "string"
626
609
  },
627
- "default": "'button'",
628
- "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.",
629
- "attribute": "role",
630
- "reflects": true
610
+ "inheritedFrom": {
611
+ "name": "Buttonsimple",
612
+ "module": "components/buttonsimple/buttonsimple.component.js"
613
+ }
614
+ },
615
+ {
616
+ "kind": "method",
617
+ "name": "modifyIconName",
618
+ "privacy": "private",
619
+ "parameters": [
620
+ {
621
+ "name": "active",
622
+ "type": {
623
+ "text": "boolean"
624
+ },
625
+ "description": "The active state."
626
+ }
627
+ ],
628
+ "description": "Modifies the icon name based on the active state.\nIf the button is active, the icon name is suffixed with '-filled'.\nIf the button is inactive, the icon name is restored to its original value.\nIf '-filled' icon is not available, the icon name remains unchanged."
629
+ },
630
+ {
631
+ "kind": "method",
632
+ "name": "setVariant",
633
+ "privacy": "private",
634
+ "parameters": [
635
+ {
636
+ "name": "variant",
637
+ "type": {
638
+ "text": "ButtonVariant"
639
+ },
640
+ "description": "The variant to set."
641
+ }
642
+ ],
643
+ "description": "Sets the variant attribute for the button component.\nIf the provided variant is not included in the BUTTON_VARIANTS,\nit defaults to the value specified in DEFAULTS.VARIANT."
644
+ },
645
+ {
646
+ "kind": "method",
647
+ "name": "setSize",
648
+ "privacy": "private",
649
+ "parameters": [
650
+ {
651
+ "name": "size",
652
+ "type": {
653
+ "text": "PillButtonSize | IconButtonSize"
654
+ },
655
+ "description": "The size to set."
656
+ }
657
+ ],
658
+ "description": "Sets the size attribute for the button component.\nValidates the size based on the button type (icon, pill, or tertiary).\nDefaults to DEFAULTS.SIZE if invalid."
659
+ },
660
+ {
661
+ "kind": "method",
662
+ "name": "setColor",
663
+ "privacy": "private",
664
+ "parameters": [
665
+ {
666
+ "name": "color",
667
+ "type": {
668
+ "text": "ButtonColor"
669
+ },
670
+ "description": "The color to set."
671
+ }
672
+ ],
673
+ "description": "Sets the color attribute for the button.\nDefaults to DEFAULTS.COLOR if invalid or for tertiary buttons."
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
+ }
631
728
  },
632
729
  {
633
730
  "kind": "field",
@@ -638,18 +735,33 @@
638
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.",
639
736
  "default": "button",
640
737
  "attribute": "type",
641
- "reflects": true
738
+ "reflects": true,
739
+ "inheritedFrom": {
740
+ "name": "Buttonsimple",
741
+ "module": "components/buttonsimple/buttonsimple.component.js"
742
+ }
642
743
  },
643
744
  {
644
745
  "kind": "method",
645
746
  "name": "executeAction",
646
- "privacy": "private"
747
+ "privacy": "private",
748
+ "inheritedFrom": {
749
+ "name": "Buttonsimple",
750
+ "module": "components/buttonsimple/buttonsimple.component.js"
751
+ }
647
752
  },
648
753
  {
649
754
  "kind": "method",
650
- "name": "modifyIconName",
755
+ "name": "setAriaPressed",
651
756
  "privacy": "private",
652
757
  "parameters": [
758
+ {
759
+ "name": "element",
760
+ "type": {
761
+ "text": "HTMLElement"
762
+ },
763
+ "description": "The target element."
764
+ },
653
765
  {
654
766
  "name": "active",
655
767
  "type": {
@@ -658,52 +770,343 @@
658
770
  "description": "The active state."
659
771
  }
660
772
  ],
661
- "description": "Modifies the icon name based on the active state.\nIf the button is active, the icon name is suffixed with '-filled'.\nIf the button is inactive, the icon name is restored to its original value.\nIf '-filled' icon is not available, the icon name remains unchanged."
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
+ }
778
+ },
779
+ {
780
+ "kind": "method",
781
+ "name": "setSoftDisabled",
782
+ "privacy": "private",
783
+ "parameters": [
784
+ {
785
+ "name": "element",
786
+ "type": {
787
+ "text": "HTMLElement"
788
+ },
789
+ "description": "The button element."
790
+ },
791
+ {
792
+ "name": "softDisabled",
793
+ "type": {
794
+ "text": "boolean"
795
+ },
796
+ "description": "The soft-disabled state."
797
+ }
798
+ ],
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
+ }
804
+ },
805
+ {
806
+ "kind": "method",
807
+ "name": "setDisabled",
808
+ "privacy": "private",
809
+ "parameters": [
810
+ {
811
+ "name": "element",
812
+ "type": {
813
+ "text": "HTMLElement"
814
+ },
815
+ "description": "The button element."
816
+ },
817
+ {
818
+ "name": "disabled",
819
+ "type": {
820
+ "text": "boolean"
821
+ },
822
+ "description": "The disabled state."
823
+ }
824
+ ],
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
+ }
830
+ },
831
+ {
832
+ "kind": "method",
833
+ "name": "triggerClickEvent",
834
+ "privacy": "private",
835
+ "inheritedFrom": {
836
+ "name": "Buttonsimple",
837
+ "module": "components/buttonsimple/buttonsimple.component.js"
838
+ }
839
+ },
840
+ {
841
+ "kind": "method",
842
+ "name": "handleKeyDown",
843
+ "privacy": "private",
844
+ "parameters": [
845
+ {
846
+ "name": "event",
847
+ "type": {
848
+ "text": "KeyboardEvent"
849
+ },
850
+ "description": "The keyboard event."
851
+ }
852
+ ],
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
+ }
858
+ },
859
+ {
860
+ "kind": "method",
861
+ "name": "handleKeyUp",
862
+ "privacy": "private",
863
+ "parameters": [
864
+ {
865
+ "name": "event",
866
+ "type": {
867
+ "text": "KeyboardEvent"
868
+ },
869
+ "description": "The keyboard event."
870
+ }
871
+ ],
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
+ }
877
+ }
878
+ ],
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
+ },
953
+ {
954
+ "name": "active",
955
+ "type": {
956
+ "text": "boolean"
957
+ },
958
+ "default": "false",
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.",
960
+ "fieldName": "active",
961
+ "inheritedFrom": {
962
+ "name": "Buttonsimple",
963
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
964
+ }
965
+ },
966
+ {
967
+ "name": "disabled",
968
+ "type": {
969
+ "text": "boolean"
970
+ },
971
+ "default": "false",
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
+ }
978
+ },
979
+ {
980
+ "name": "soft-disabled",
981
+ "type": {
982
+ "text": "boolean"
983
+ },
984
+ "default": "false",
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.",
986
+ "fieldName": "softDisabled",
987
+ "inheritedFrom": {
988
+ "name": "Buttonsimple",
989
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
990
+ }
991
+ },
992
+ {
993
+ "name": "type",
994
+ "type": {
995
+ "text": "ButtonType"
996
+ },
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"
1044
+ },
1045
+ {
1046
+ "kind": "field",
1047
+ "name": "disabled",
1048
+ "type": {
1049
+ "text": "boolean"
1050
+ },
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"
1054
+ },
1055
+ {
1056
+ "kind": "field",
1057
+ "name": "softDisabled",
1058
+ "type": {
1059
+ "text": "boolean"
1060
+ },
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"
1064
+ },
1065
+ {
1066
+ "kind": "field",
1067
+ "name": "size",
1068
+ "type": {
1069
+ "text": "ButtonSize"
1070
+ },
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.",
1072
+ "default": "32",
1073
+ "attribute": "size",
1074
+ "reflects": true
1075
+ },
1076
+ {
1077
+ "kind": "field",
1078
+ "name": "tabIndex",
1079
+ "type": {
1080
+ "text": "number"
1081
+ },
1082
+ "default": "0",
1083
+ "description": "The tabindex of the button.",
1084
+ "attribute": "tabIndex",
1085
+ "reflects": true
662
1086
  },
663
1087
  {
664
- "kind": "method",
665
- "name": "setVariant",
666
- "privacy": "private",
667
- "parameters": [
668
- {
669
- "name": "variant",
670
- "type": {
671
- "text": "ButtonVariant"
672
- },
673
- "description": "The variant to set."
674
- }
675
- ],
676
- "description": "Sets the variant attribute for the button component.\nIf the provided variant is not included in the BUTTON_VARIANTS,\nit defaults to the value specified in DEFAULTS.VARIANT."
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
677
1094
  },
678
1095
  {
679
- "kind": "method",
680
- "name": "setSize",
681
- "privacy": "private",
682
- "parameters": [
683
- {
684
- "name": "size",
685
- "type": {
686
- "text": "PillButtonSize | IconButtonSize"
687
- },
688
- "description": "The size to set."
689
- }
690
- ],
691
- "description": "Sets the size attribute for the button component.\nValidates the size based on the button type (icon, pill, or tertiary).\nDefaults to DEFAULTS.SIZE if invalid."
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
692
1105
  },
693
1106
  {
694
1107
  "kind": "method",
695
- "name": "setColor",
696
- "privacy": "private",
697
- "parameters": [
698
- {
699
- "name": "color",
700
- "type": {
701
- "text": "ButtonColor"
702
- },
703
- "description": "The color to set."
704
- }
705
- ],
706
- "description": "Sets the color attribute for the button.\nDefaults to DEFAULTS.COLOR if invalid or for tertiary buttons."
1108
+ "name": "executeAction",
1109
+ "privacy": "private"
707
1110
  },
708
1111
  {
709
1112
  "kind": "method",
@@ -805,18 +1208,6 @@
805
1208
  }
806
1209
  ],
807
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."
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
- ]
820
1211
  }
821
1212
  ],
822
1213
  "attributes": [
@@ -835,7 +1226,7 @@
835
1226
  "text": "boolean"
836
1227
  },
837
1228
  "default": "false",
838
- "description": "Indicates whether the button is disabled.\nThe button is currently disabled for user interaction; it is not focusable or clickable.",
1229
+ "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
839
1230
  "fieldName": "disabled"
840
1231
  },
841
1232
  {
@@ -847,49 +1238,15 @@
847
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.",
848
1239
  "fieldName": "softDisabled"
849
1240
  },
850
- {
851
- "name": "prefix-icon",
852
- "type": {
853
- "text": "string | undefined"
854
- },
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"
857
- },
858
- {
859
- "name": "postfix-icon",
860
- "type": {
861
- "text": "string | undefined"
862
- },
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"
865
- },
866
- {
867
- "name": "variant",
868
- "type": {
869
- "text": "ButtonVariant"
870
- },
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"
874
- },
875
1241
  {
876
1242
  "name": "size",
877
1243
  "type": {
878
- "text": "PillButtonSize | IconButtonSize"
1244
+ "text": "ButtonSize"
879
1245
  },
880
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.",
881
1247
  "default": "32",
882
1248
  "fieldName": "size"
883
1249
  },
884
- {
885
- "name": "color",
886
- "type": {
887
- "text": "ButtonColor"
888
- },
889
- "description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
890
- "default": "default",
891
- "fieldName": "color"
892
- },
893
1250
  {
894
1251
  "name": "tabIndex",
895
1252
  "type": {
@@ -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
  ]
@@ -1349,6 +1703,77 @@
1349
1703
  }
1350
1704
  ]
1351
1705
  },
1706
+ {
1707
+ "kind": "javascript-module",
1708
+ "path": "components/marker/marker.component.js",
1709
+ "declarations": [
1710
+ {
1711
+ "kind": "class",
1712
+ "description": "`mdc-marker`, which is a vertical line and\nused to draw attention to specific parts of\nthe content or to signify important information.\n\n**Marker Variants**:\n- **solid**: Solid marker.\n- **striped**: Striped marker.",
1713
+ "name": "Marker",
1714
+ "cssProperties": [
1715
+ {
1716
+ "description": "Allows customization of the default background color in solid variant.",
1717
+ "name": "--mdc-marker-solid-background-color"
1718
+ },
1719
+ {
1720
+ "description": "Allows customization of the default stripes in striped variant.",
1721
+ "name": "--mdc-marker-striped-color"
1722
+ },
1723
+ {
1724
+ "description": "Allows customization of the default background color in striped variant.",
1725
+ "name": "--mdc-marker-striped-background-color"
1726
+ },
1727
+ {
1728
+ "description": "Allows customization of the default width.",
1729
+ "name": "--mdc-marker-width"
1730
+ }
1731
+ ],
1732
+ "members": [
1733
+ {
1734
+ "kind": "field",
1735
+ "name": "variant",
1736
+ "type": {
1737
+ "text": "MarkerVariants"
1738
+ },
1739
+ "privacy": "public",
1740
+ "description": "There are two variants of markers, each with a width of 0.25rem:\n- **solid**: Solid marker.\n- **striped**: Striped marker.",
1741
+ "default": "solid",
1742
+ "attribute": "variant",
1743
+ "reflects": true
1744
+ }
1745
+ ],
1746
+ "attributes": [
1747
+ {
1748
+ "name": "variant",
1749
+ "type": {
1750
+ "text": "MarkerVariants"
1751
+ },
1752
+ "description": "There are two variants of markers, each with a width of 0.25rem:\n- **solid**: Solid marker.\n- **striped**: Striped marker.",
1753
+ "default": "solid",
1754
+ "fieldName": "variant"
1755
+ }
1756
+ ],
1757
+ "superclass": {
1758
+ "name": "Component",
1759
+ "module": "/src/models"
1760
+ },
1761
+ "tagName": "mdc-marker",
1762
+ "jsDoc": "/**\n * `mdc-marker`, which is a vertical line and\n * used to draw attention to specific parts of\n * the content or to signify important information.\n *\n * **Marker Variants**:\n * - **solid**: Solid marker.\n * - **striped**: Striped marker.\n *\n * @tagname mdc-marker\n *\n * @cssproperty --mdc-marker-solid-background-color - Allows customization of the default background color\n * in solid variant.\n * @cssproperty --mdc-marker-striped-color - Allows customization of the default stripes in striped variant.\n * @cssproperty --mdc-marker-striped-background-color - Allows customization of the default background color\n * in striped variant.\n * @cssproperty --mdc-marker-width - Allows customization of the default width.\n */",
1763
+ "customElement": true
1764
+ }
1765
+ ],
1766
+ "exports": [
1767
+ {
1768
+ "kind": "js",
1769
+ "name": "default",
1770
+ "declaration": {
1771
+ "name": "Marker",
1772
+ "module": "components/marker/marker.component.js"
1773
+ }
1774
+ }
1775
+ ]
1776
+ },
1352
1777
  {
1353
1778
  "kind": "javascript-module",
1354
1779
  "path": "components/iconprovider/iconprovider.component.js",
@@ -1487,77 +1912,6 @@
1487
1912
  }
1488
1913
  ]
1489
1914
  },
1490
- {
1491
- "kind": "javascript-module",
1492
- "path": "components/marker/marker.component.js",
1493
- "declarations": [
1494
- {
1495
- "kind": "class",
1496
- "description": "`mdc-marker`, which is a vertical line and\nused to draw attention to specific parts of\nthe content or to signify important information.\n\n**Marker Variants**:\n- **solid**: Solid marker.\n- **striped**: Striped marker.",
1497
- "name": "Marker",
1498
- "cssProperties": [
1499
- {
1500
- "description": "Allows customization of the default background color in solid variant.",
1501
- "name": "--mdc-marker-solid-background-color"
1502
- },
1503
- {
1504
- "description": "Allows customization of the default stripes in striped variant.",
1505
- "name": "--mdc-marker-striped-color"
1506
- },
1507
- {
1508
- "description": "Allows customization of the default background color in striped variant.",
1509
- "name": "--mdc-marker-striped-background-color"
1510
- },
1511
- {
1512
- "description": "Allows customization of the default width.",
1513
- "name": "--mdc-marker-width"
1514
- }
1515
- ],
1516
- "members": [
1517
- {
1518
- "kind": "field",
1519
- "name": "variant",
1520
- "type": {
1521
- "text": "MarkerVariants"
1522
- },
1523
- "privacy": "public",
1524
- "description": "There are two variants of markers, each with a width of 0.25rem:\n- **solid**: Solid marker.\n- **striped**: Striped marker.",
1525
- "default": "solid",
1526
- "attribute": "variant",
1527
- "reflects": true
1528
- }
1529
- ],
1530
- "attributes": [
1531
- {
1532
- "name": "variant",
1533
- "type": {
1534
- "text": "MarkerVariants"
1535
- },
1536
- "description": "There are two variants of markers, each with a width of 0.25rem:\n- **solid**: Solid marker.\n- **striped**: Striped marker.",
1537
- "default": "solid",
1538
- "fieldName": "variant"
1539
- }
1540
- ],
1541
- "superclass": {
1542
- "name": "Component",
1543
- "module": "/src/models"
1544
- },
1545
- "tagName": "mdc-marker",
1546
- "jsDoc": "/**\n * `mdc-marker`, which is a vertical line and\n * used to draw attention to specific parts of\n * the content or to signify important information.\n *\n * **Marker Variants**:\n * - **solid**: Solid marker.\n * - **striped**: Striped marker.\n *\n * @tagname mdc-marker\n *\n * @cssproperty --mdc-marker-solid-background-color - Allows customization of the default background color\n * in solid variant.\n * @cssproperty --mdc-marker-striped-color - Allows customization of the default stripes in striped variant.\n * @cssproperty --mdc-marker-striped-background-color - Allows customization of the default background color\n * in striped variant.\n * @cssproperty --mdc-marker-width - Allows customization of the default width.\n */",
1547
- "customElement": true
1548
- }
1549
- ],
1550
- "exports": [
1551
- {
1552
- "kind": "js",
1553
- "name": "default",
1554
- "declaration": {
1555
- "name": "Marker",
1556
- "module": "components/marker/marker.component.js"
1557
- }
1558
- }
1559
- ]
1560
- },
1561
1915
  {
1562
1916
  "kind": "javascript-module",
1563
1917
  "path": "components/presence/presence.component.js",