@momentum-design/components 0.124.0 → 0.124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +200 -162
- package/dist/browser/index.js.map +3 -3
- package/dist/components/textarea/textarea.component.d.ts +56 -0
- package/dist/components/textarea/textarea.component.js +122 -2
- package/dist/components/textarea/textarea.styles.js +25 -0
- package/dist/custom-elements.json +336 -225
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/react/textarea/index.d.ts +20 -0
- package/dist/react/textarea/index.js +20 -0
- package/package.json +1 -1
|
@@ -513,157 +513,6 @@
|
|
|
513
513
|
}
|
|
514
514
|
]
|
|
515
515
|
},
|
|
516
|
-
{
|
|
517
|
-
"kind": "javascript-module",
|
|
518
|
-
"path": "components/accordiongroup/accordiongroup.component.js",
|
|
519
|
-
"declarations": [
|
|
520
|
-
{
|
|
521
|
-
"kind": "class",
|
|
522
|
-
"description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
|
|
523
|
-
"name": "AccordionGroup",
|
|
524
|
-
"cssProperties": [
|
|
525
|
-
{
|
|
526
|
-
"description": "The border color of the entire accordiongroup",
|
|
527
|
-
"name": "--mdc-accordiongroup-border-color"
|
|
528
|
-
}
|
|
529
|
-
],
|
|
530
|
-
"slots": [
|
|
531
|
-
{
|
|
532
|
-
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
|
533
|
-
"name": "default"
|
|
534
|
-
}
|
|
535
|
-
],
|
|
536
|
-
"members": [
|
|
537
|
-
{
|
|
538
|
-
"kind": "field",
|
|
539
|
-
"name": "size",
|
|
540
|
-
"type": {
|
|
541
|
-
"text": "Size"
|
|
542
|
-
},
|
|
543
|
-
"description": "The size of the accordion item.",
|
|
544
|
-
"default": "'small'",
|
|
545
|
-
"attribute": "size",
|
|
546
|
-
"reflects": true
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"kind": "field",
|
|
550
|
-
"name": "variant",
|
|
551
|
-
"type": {
|
|
552
|
-
"text": "Variant"
|
|
553
|
-
},
|
|
554
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
|
555
|
-
"default": "'stacked'",
|
|
556
|
-
"attribute": "variant",
|
|
557
|
-
"reflects": true
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"kind": "field",
|
|
561
|
-
"name": "allowMultiple",
|
|
562
|
-
"type": {
|
|
563
|
-
"text": "boolean"
|
|
564
|
-
},
|
|
565
|
-
"default": "false",
|
|
566
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
|
567
|
-
"attribute": "allow-multiple",
|
|
568
|
-
"reflects": true
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
"kind": "method",
|
|
572
|
-
"name": "handleAccordionExpanded",
|
|
573
|
-
"privacy": "private",
|
|
574
|
-
"return": {
|
|
575
|
-
"type": {
|
|
576
|
-
"text": "void"
|
|
577
|
-
}
|
|
578
|
-
},
|
|
579
|
-
"parameters": [
|
|
580
|
-
{
|
|
581
|
-
"name": "event",
|
|
582
|
-
"type": {
|
|
583
|
-
"text": "Event"
|
|
584
|
-
},
|
|
585
|
-
"description": "The event object from the 'shown' event."
|
|
586
|
-
}
|
|
587
|
-
],
|
|
588
|
-
"description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"kind": "method",
|
|
592
|
-
"name": "setChildrenAccordionAttributes",
|
|
593
|
-
"privacy": "private",
|
|
594
|
-
"return": {
|
|
595
|
-
"type": {
|
|
596
|
-
"text": "void"
|
|
597
|
-
}
|
|
598
|
-
},
|
|
599
|
-
"parameters": [
|
|
600
|
-
{
|
|
601
|
-
"name": "attributeName",
|
|
602
|
-
"type": {
|
|
603
|
-
"text": "string"
|
|
604
|
-
},
|
|
605
|
-
"description": "The name of the attribute to set."
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"name": "attributeValue",
|
|
609
|
-
"type": {
|
|
610
|
-
"text": "string"
|
|
611
|
-
},
|
|
612
|
-
"description": "The value to set the attribute to."
|
|
613
|
-
}
|
|
614
|
-
],
|
|
615
|
-
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
|
616
|
-
}
|
|
617
|
-
],
|
|
618
|
-
"attributes": [
|
|
619
|
-
{
|
|
620
|
-
"name": "size",
|
|
621
|
-
"type": {
|
|
622
|
-
"text": "Size"
|
|
623
|
-
},
|
|
624
|
-
"description": "The size of the accordion item.",
|
|
625
|
-
"default": "'small'",
|
|
626
|
-
"fieldName": "size"
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
"name": "variant",
|
|
630
|
-
"type": {
|
|
631
|
-
"text": "Variant"
|
|
632
|
-
},
|
|
633
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
|
634
|
-
"default": "'stacked'",
|
|
635
|
-
"fieldName": "variant"
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
"name": "allow-multiple",
|
|
639
|
-
"type": {
|
|
640
|
-
"text": "boolean"
|
|
641
|
-
},
|
|
642
|
-
"default": "false",
|
|
643
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
|
644
|
-
"fieldName": "allowMultiple"
|
|
645
|
-
}
|
|
646
|
-
],
|
|
647
|
-
"superclass": {
|
|
648
|
-
"name": "Component",
|
|
649
|
-
"module": "/src/models"
|
|
650
|
-
},
|
|
651
|
-
"tagName": "mdc-accordiongroup",
|
|
652
|
-
"jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
|
|
653
|
-
"customElement": true
|
|
654
|
-
}
|
|
655
|
-
],
|
|
656
|
-
"exports": [
|
|
657
|
-
{
|
|
658
|
-
"kind": "js",
|
|
659
|
-
"name": "default",
|
|
660
|
-
"declaration": {
|
|
661
|
-
"name": "AccordionGroup",
|
|
662
|
-
"module": "components/accordiongroup/accordiongroup.component.js"
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
]
|
|
666
|
-
},
|
|
667
516
|
{
|
|
668
517
|
"kind": "javascript-module",
|
|
669
518
|
"path": "components/accordionbutton/accordionbutton.component.js",
|
|
@@ -1004,6 +853,157 @@
|
|
|
1004
853
|
}
|
|
1005
854
|
]
|
|
1006
855
|
},
|
|
856
|
+
{
|
|
857
|
+
"kind": "javascript-module",
|
|
858
|
+
"path": "components/accordiongroup/accordiongroup.component.js",
|
|
859
|
+
"declarations": [
|
|
860
|
+
{
|
|
861
|
+
"kind": "class",
|
|
862
|
+
"description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
|
|
863
|
+
"name": "AccordionGroup",
|
|
864
|
+
"cssProperties": [
|
|
865
|
+
{
|
|
866
|
+
"description": "The border color of the entire accordiongroup",
|
|
867
|
+
"name": "--mdc-accordiongroup-border-color"
|
|
868
|
+
}
|
|
869
|
+
],
|
|
870
|
+
"slots": [
|
|
871
|
+
{
|
|
872
|
+
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
|
873
|
+
"name": "default"
|
|
874
|
+
}
|
|
875
|
+
],
|
|
876
|
+
"members": [
|
|
877
|
+
{
|
|
878
|
+
"kind": "field",
|
|
879
|
+
"name": "size",
|
|
880
|
+
"type": {
|
|
881
|
+
"text": "Size"
|
|
882
|
+
},
|
|
883
|
+
"description": "The size of the accordion item.",
|
|
884
|
+
"default": "'small'",
|
|
885
|
+
"attribute": "size",
|
|
886
|
+
"reflects": true
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"kind": "field",
|
|
890
|
+
"name": "variant",
|
|
891
|
+
"type": {
|
|
892
|
+
"text": "Variant"
|
|
893
|
+
},
|
|
894
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
|
895
|
+
"default": "'stacked'",
|
|
896
|
+
"attribute": "variant",
|
|
897
|
+
"reflects": true
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"kind": "field",
|
|
901
|
+
"name": "allowMultiple",
|
|
902
|
+
"type": {
|
|
903
|
+
"text": "boolean"
|
|
904
|
+
},
|
|
905
|
+
"default": "false",
|
|
906
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
|
907
|
+
"attribute": "allow-multiple",
|
|
908
|
+
"reflects": true
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"kind": "method",
|
|
912
|
+
"name": "handleAccordionExpanded",
|
|
913
|
+
"privacy": "private",
|
|
914
|
+
"return": {
|
|
915
|
+
"type": {
|
|
916
|
+
"text": "void"
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
"parameters": [
|
|
920
|
+
{
|
|
921
|
+
"name": "event",
|
|
922
|
+
"type": {
|
|
923
|
+
"text": "Event"
|
|
924
|
+
},
|
|
925
|
+
"description": "The event object from the 'shown' event."
|
|
926
|
+
}
|
|
927
|
+
],
|
|
928
|
+
"description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"kind": "method",
|
|
932
|
+
"name": "setChildrenAccordionAttributes",
|
|
933
|
+
"privacy": "private",
|
|
934
|
+
"return": {
|
|
935
|
+
"type": {
|
|
936
|
+
"text": "void"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"parameters": [
|
|
940
|
+
{
|
|
941
|
+
"name": "attributeName",
|
|
942
|
+
"type": {
|
|
943
|
+
"text": "string"
|
|
944
|
+
},
|
|
945
|
+
"description": "The name of the attribute to set."
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "attributeValue",
|
|
949
|
+
"type": {
|
|
950
|
+
"text": "string"
|
|
951
|
+
},
|
|
952
|
+
"description": "The value to set the attribute to."
|
|
953
|
+
}
|
|
954
|
+
],
|
|
955
|
+
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
|
956
|
+
}
|
|
957
|
+
],
|
|
958
|
+
"attributes": [
|
|
959
|
+
{
|
|
960
|
+
"name": "size",
|
|
961
|
+
"type": {
|
|
962
|
+
"text": "Size"
|
|
963
|
+
},
|
|
964
|
+
"description": "The size of the accordion item.",
|
|
965
|
+
"default": "'small'",
|
|
966
|
+
"fieldName": "size"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"name": "variant",
|
|
970
|
+
"type": {
|
|
971
|
+
"text": "Variant"
|
|
972
|
+
},
|
|
973
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
|
974
|
+
"default": "'stacked'",
|
|
975
|
+
"fieldName": "variant"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "allow-multiple",
|
|
979
|
+
"type": {
|
|
980
|
+
"text": "boolean"
|
|
981
|
+
},
|
|
982
|
+
"default": "false",
|
|
983
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
|
984
|
+
"fieldName": "allowMultiple"
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"superclass": {
|
|
988
|
+
"name": "Component",
|
|
989
|
+
"module": "/src/models"
|
|
990
|
+
},
|
|
991
|
+
"tagName": "mdc-accordiongroup",
|
|
992
|
+
"jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
|
|
993
|
+
"customElement": true
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
"exports": [
|
|
997
|
+
{
|
|
998
|
+
"kind": "js",
|
|
999
|
+
"name": "default",
|
|
1000
|
+
"declaration": {
|
|
1001
|
+
"name": "AccordionGroup",
|
|
1002
|
+
"module": "components/accordiongroup/accordiongroup.component.js"
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
1007
1007
|
{
|
|
1008
1008
|
"kind": "javascript-module",
|
|
1009
1009
|
"path": "components/alertchip/alertchip.component.js",
|
|
@@ -4838,6 +4838,77 @@
|
|
|
4838
4838
|
}
|
|
4839
4839
|
]
|
|
4840
4840
|
},
|
|
4841
|
+
{
|
|
4842
|
+
"kind": "javascript-module",
|
|
4843
|
+
"path": "components/bullet/bullet.component.js",
|
|
4844
|
+
"declarations": [
|
|
4845
|
+
{
|
|
4846
|
+
"kind": "class",
|
|
4847
|
+
"description": "Bullet component, which is a visual marker\nand be used to organize and present items in a list format.",
|
|
4848
|
+
"name": "Bullet",
|
|
4849
|
+
"cssProperties": [
|
|
4850
|
+
{
|
|
4851
|
+
"description": "background color of the bullet",
|
|
4852
|
+
"name": "--mdc-bullet-background-color"
|
|
4853
|
+
},
|
|
4854
|
+
{
|
|
4855
|
+
"description": "small size value of the bullet",
|
|
4856
|
+
"name": "--mdc-bullet-size-small"
|
|
4857
|
+
},
|
|
4858
|
+
{
|
|
4859
|
+
"description": "medium size value of the bullet",
|
|
4860
|
+
"name": "--mdc-bullet-size-medium"
|
|
4861
|
+
},
|
|
4862
|
+
{
|
|
4863
|
+
"description": "large size value of the bullet",
|
|
4864
|
+
"name": "--mdc-bullet-size-large"
|
|
4865
|
+
}
|
|
4866
|
+
],
|
|
4867
|
+
"members": [
|
|
4868
|
+
{
|
|
4869
|
+
"kind": "field",
|
|
4870
|
+
"name": "size",
|
|
4871
|
+
"type": {
|
|
4872
|
+
"text": "Size"
|
|
4873
|
+
},
|
|
4874
|
+
"privacy": "public",
|
|
4875
|
+
"description": "Size of the bullet\n\nPossible values: 'small', 'medium', 'large'",
|
|
4876
|
+
"default": "small",
|
|
4877
|
+
"attribute": "size",
|
|
4878
|
+
"reflects": true
|
|
4879
|
+
}
|
|
4880
|
+
],
|
|
4881
|
+
"attributes": [
|
|
4882
|
+
{
|
|
4883
|
+
"name": "size",
|
|
4884
|
+
"type": {
|
|
4885
|
+
"text": "Size"
|
|
4886
|
+
},
|
|
4887
|
+
"description": "Size of the bullet\n\nPossible values: 'small', 'medium', 'large'",
|
|
4888
|
+
"default": "small",
|
|
4889
|
+
"fieldName": "size"
|
|
4890
|
+
}
|
|
4891
|
+
],
|
|
4892
|
+
"superclass": {
|
|
4893
|
+
"name": "Component",
|
|
4894
|
+
"module": "/src/models"
|
|
4895
|
+
},
|
|
4896
|
+
"tagName": "mdc-bullet",
|
|
4897
|
+
"jsDoc": "/**\n * Bullet component, which is a visual marker\n * and be used to organize and present items in a list format.\n *\n * @tagname mdc-bullet\n *\n * @cssproperty --mdc-bullet-background-color - background color of the bullet\n * @cssproperty --mdc-bullet-size-small - small size value of the bullet\n * @cssproperty --mdc-bullet-size-medium - medium size value of the bullet\n * @cssproperty --mdc-bullet-size-large - large size value of the bullet\n */",
|
|
4898
|
+
"customElement": true
|
|
4899
|
+
}
|
|
4900
|
+
],
|
|
4901
|
+
"exports": [
|
|
4902
|
+
{
|
|
4903
|
+
"kind": "js",
|
|
4904
|
+
"name": "default",
|
|
4905
|
+
"declaration": {
|
|
4906
|
+
"name": "Bullet",
|
|
4907
|
+
"module": "components/bullet/bullet.component.js"
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
]
|
|
4911
|
+
},
|
|
4841
4912
|
{
|
|
4842
4913
|
"kind": "javascript-module",
|
|
4843
4914
|
"path": "components/brandvisual/brandvisual.component.js",
|
|
@@ -5014,77 +5085,6 @@
|
|
|
5014
5085
|
}
|
|
5015
5086
|
]
|
|
5016
5087
|
},
|
|
5017
|
-
{
|
|
5018
|
-
"kind": "javascript-module",
|
|
5019
|
-
"path": "components/bullet/bullet.component.js",
|
|
5020
|
-
"declarations": [
|
|
5021
|
-
{
|
|
5022
|
-
"kind": "class",
|
|
5023
|
-
"description": "Bullet component, which is a visual marker\nand be used to organize and present items in a list format.",
|
|
5024
|
-
"name": "Bullet",
|
|
5025
|
-
"cssProperties": [
|
|
5026
|
-
{
|
|
5027
|
-
"description": "background color of the bullet",
|
|
5028
|
-
"name": "--mdc-bullet-background-color"
|
|
5029
|
-
},
|
|
5030
|
-
{
|
|
5031
|
-
"description": "small size value of the bullet",
|
|
5032
|
-
"name": "--mdc-bullet-size-small"
|
|
5033
|
-
},
|
|
5034
|
-
{
|
|
5035
|
-
"description": "medium size value of the bullet",
|
|
5036
|
-
"name": "--mdc-bullet-size-medium"
|
|
5037
|
-
},
|
|
5038
|
-
{
|
|
5039
|
-
"description": "large size value of the bullet",
|
|
5040
|
-
"name": "--mdc-bullet-size-large"
|
|
5041
|
-
}
|
|
5042
|
-
],
|
|
5043
|
-
"members": [
|
|
5044
|
-
{
|
|
5045
|
-
"kind": "field",
|
|
5046
|
-
"name": "size",
|
|
5047
|
-
"type": {
|
|
5048
|
-
"text": "Size"
|
|
5049
|
-
},
|
|
5050
|
-
"privacy": "public",
|
|
5051
|
-
"description": "Size of the bullet\n\nPossible values: 'small', 'medium', 'large'",
|
|
5052
|
-
"default": "small",
|
|
5053
|
-
"attribute": "size",
|
|
5054
|
-
"reflects": true
|
|
5055
|
-
}
|
|
5056
|
-
],
|
|
5057
|
-
"attributes": [
|
|
5058
|
-
{
|
|
5059
|
-
"name": "size",
|
|
5060
|
-
"type": {
|
|
5061
|
-
"text": "Size"
|
|
5062
|
-
},
|
|
5063
|
-
"description": "Size of the bullet\n\nPossible values: 'small', 'medium', 'large'",
|
|
5064
|
-
"default": "small",
|
|
5065
|
-
"fieldName": "size"
|
|
5066
|
-
}
|
|
5067
|
-
],
|
|
5068
|
-
"superclass": {
|
|
5069
|
-
"name": "Component",
|
|
5070
|
-
"module": "/src/models"
|
|
5071
|
-
},
|
|
5072
|
-
"tagName": "mdc-bullet",
|
|
5073
|
-
"jsDoc": "/**\n * Bullet component, which is a visual marker\n * and be used to organize and present items in a list format.\n *\n * @tagname mdc-bullet\n *\n * @cssproperty --mdc-bullet-background-color - background color of the bullet\n * @cssproperty --mdc-bullet-size-small - small size value of the bullet\n * @cssproperty --mdc-bullet-size-medium - medium size value of the bullet\n * @cssproperty --mdc-bullet-size-large - large size value of the bullet\n */",
|
|
5074
|
-
"customElement": true
|
|
5075
|
-
}
|
|
5076
|
-
],
|
|
5077
|
-
"exports": [
|
|
5078
|
-
{
|
|
5079
|
-
"kind": "js",
|
|
5080
|
-
"name": "default",
|
|
5081
|
-
"declaration": {
|
|
5082
|
-
"name": "Bullet",
|
|
5083
|
-
"module": "components/bullet/bullet.component.js"
|
|
5084
|
-
}
|
|
5085
|
-
}
|
|
5086
|
-
]
|
|
5087
|
-
},
|
|
5088
5088
|
{
|
|
5089
5089
|
"kind": "javascript-module",
|
|
5090
5090
|
"path": "components/button/button.component.js",
|
|
@@ -46564,7 +46564,7 @@
|
|
|
46564
46564
|
"declarations": [
|
|
46565
46565
|
{
|
|
46566
46566
|
"kind": "class",
|
|
46567
|
-
"description": "mdc-textarea component, which is used to get the multi-line text input from the user.\nIt contains:\n- label: It is the title of the textarea field.\n- required: A boolean attribute depicting that the textarea field is required.\n- Textarea: It is the multi-line text input field.\n- helper-text: It is the text that provides additional information about the textarea field.\n- max-character-limit: It is the text that shows the character count of the textarea field.\n- Error, Warning, Success, Priority Help Text type: It is the text that provides additional information\n about the textarea field based on the validation state.\n- limitexceeded: It is the event that is dispatched when the character limit exceeds or restored.\n This event exposes 3 properties:\n - currentCharacterCount - the current number of characters in the textarea field,\n - maxCharacterLimit - the maximum number of characters allowed in the textarea field,\n - value - the current value of the textarea field,\n\n**Note**: Consumers must set the help-text-type with 'error' and\nhelp-text attribute with the error message using limitexceeded event.\nThe same help-text value will be used for the validation message to be displayed
|
|
46567
|
+
"description": "mdc-textarea component, which is used to get the multi-line text input from the user.\nIt contains:\n- label: It is the title of the textarea field.\n- required: A boolean attribute depicting that the textarea field is required.\n- Textarea: It is the multi-line text input field.\n- helper-text: It is the text that provides additional information about the textarea field.\n- max-character-limit: It is the text that shows the character count of the textarea field.\n- Error, Warning, Success, Priority Help Text type: It is the text that provides additional information\n about the textarea field based on the validation state.\n- limitexceeded: It is the event that is dispatched when the character limit exceeds or restored.\n This event exposes 3 properties:\n - currentCharacterCount - the current number of characters in the textarea field,\n - maxCharacterLimit - the maximum number of characters allowed in the textarea field,\n - value - the current value of the textarea field,\n\n**Note**: Consumers must set the help-text-type with 'error' and\nhelp-text attribute with the error message using limitexceeded event.\nThe same help-text value will be used for the validation message to be displayed.\n\n### Accessibility \n\n#### Resize\n \nAccessible text area resizing can be turned on with the `resizable`. \nIt is strongly recommended to set the `resize-button-aria-label` attribute as well to describe what it is and what are the shortcuts (up/down arrows) of the button.\n\n#### Best practices\n\n- Always provide a `label` for screen readers to identify the textarea's purpose\n- Use `help-text` to provide additional context or instructions\n- When using `max-character-limit`, consider providing `character-limit-announcement` for screen reader updates\n- Use appropriate `help-text-type` (error, warning, success) to convey validation state\n- Ensure `validation-message` is set for form validation errors",
|
|
46568
46568
|
"name": "Textarea",
|
|
46569
46569
|
"cssProperties": [
|
|
46570
46570
|
{
|
|
@@ -46709,6 +46709,26 @@
|
|
|
46709
46709
|
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
|
46710
46710
|
}
|
|
46711
46711
|
},
|
|
46712
|
+
{
|
|
46713
|
+
"description": "The textarea element.",
|
|
46714
|
+
"name": "textarea"
|
|
46715
|
+
},
|
|
46716
|
+
{
|
|
46717
|
+
"description": "The container element that wraps the textarea and resize button.",
|
|
46718
|
+
"name": "textarea-container"
|
|
46719
|
+
},
|
|
46720
|
+
{
|
|
46721
|
+
"description": "The footer element that contains the character counter.",
|
|
46722
|
+
"name": "textarea-footer"
|
|
46723
|
+
},
|
|
46724
|
+
{
|
|
46725
|
+
"description": "The character counter element.",
|
|
46726
|
+
"name": "character-counter"
|
|
46727
|
+
},
|
|
46728
|
+
{
|
|
46729
|
+
"description": "The resize button element (shown when `resizable` is true).",
|
|
46730
|
+
"name": "resize-button"
|
|
46731
|
+
},
|
|
46712
46732
|
{
|
|
46713
46733
|
"description": "The helper/validation text element.",
|
|
46714
46734
|
"name": "help-text",
|
|
@@ -46786,7 +46806,8 @@
|
|
|
46786
46806
|
},
|
|
46787
46807
|
"description": "The rows attribute specifies the visible number of lines in a text area.",
|
|
46788
46808
|
"default": "5",
|
|
46789
|
-
"attribute": "rows"
|
|
46809
|
+
"attribute": "rows",
|
|
46810
|
+
"reflects": true
|
|
46790
46811
|
},
|
|
46791
46812
|
{
|
|
46792
46813
|
"kind": "field",
|
|
@@ -46873,6 +46894,27 @@
|
|
|
46873
46894
|
"description": "Template string for the announcement that will be read by screen readers when the max character limit is set.\nConsumers must use the placeholders `%{number-of-characters}` and `%{max-character-limit}` in the string,\nwhich will be dynamically replaced with the actual values at runtime.\nFor example: `%{number-of-characters} out of %{max-character-limit} characters are typed.`\nExample output: \"93 out of 140 characters are typed.\"",
|
|
46874
46895
|
"attribute": "character-limit-announcement"
|
|
46875
46896
|
},
|
|
46897
|
+
{
|
|
46898
|
+
"kind": "field",
|
|
46899
|
+
"name": "resizable",
|
|
46900
|
+
"type": {
|
|
46901
|
+
"text": "boolean"
|
|
46902
|
+
},
|
|
46903
|
+
"default": "false",
|
|
46904
|
+
"description": "Controls whether the textarea is resizable via the resize button.\nWhen set to false, the resize button will be hidden.",
|
|
46905
|
+
"attribute": "resizable",
|
|
46906
|
+
"reflects": true
|
|
46907
|
+
},
|
|
46908
|
+
{
|
|
46909
|
+
"kind": "field",
|
|
46910
|
+
"name": "resizeButtonAriaLabel",
|
|
46911
|
+
"type": {
|
|
46912
|
+
"text": "string | undefined"
|
|
46913
|
+
},
|
|
46914
|
+
"description": "Provides an accessible label for the resize button.\nThis value is used to set the `aria-label` attribute for the button.",
|
|
46915
|
+
"default": "''",
|
|
46916
|
+
"attribute": "resize-button-aria-label"
|
|
46917
|
+
},
|
|
46876
46918
|
{
|
|
46877
46919
|
"kind": "field",
|
|
46878
46920
|
"name": "textarea",
|
|
@@ -46961,6 +47003,57 @@
|
|
|
46961
47003
|
"name": "renderTextareaFooter",
|
|
46962
47004
|
"privacy": "protected"
|
|
46963
47005
|
},
|
|
47006
|
+
{
|
|
47007
|
+
"kind": "method",
|
|
47008
|
+
"name": "handleResizeKeyDown",
|
|
47009
|
+
"privacy": "private",
|
|
47010
|
+
"parameters": [
|
|
47011
|
+
{
|
|
47012
|
+
"name": "event",
|
|
47013
|
+
"type": {
|
|
47014
|
+
"text": "KeyboardEvent"
|
|
47015
|
+
},
|
|
47016
|
+
"description": "The keyboard event."
|
|
47017
|
+
}
|
|
47018
|
+
],
|
|
47019
|
+
"description": "Handles the resize button keydown event for keyboard-based resizing."
|
|
47020
|
+
},
|
|
47021
|
+
{
|
|
47022
|
+
"kind": "field",
|
|
47023
|
+
"name": "handlePointerDown",
|
|
47024
|
+
"privacy": "private",
|
|
47025
|
+
"description": "Handles the start of pointer-based resizing.",
|
|
47026
|
+
"parameters": [
|
|
47027
|
+
{
|
|
47028
|
+
"description": "The pointer event.",
|
|
47029
|
+
"name": "event"
|
|
47030
|
+
}
|
|
47031
|
+
]
|
|
47032
|
+
},
|
|
47033
|
+
{
|
|
47034
|
+
"kind": "field",
|
|
47035
|
+
"name": "handlePointerMove",
|
|
47036
|
+
"privacy": "private",
|
|
47037
|
+
"description": "Handles pointer movement during resizing.",
|
|
47038
|
+
"parameters": [
|
|
47039
|
+
{
|
|
47040
|
+
"description": "The pointer event.",
|
|
47041
|
+
"name": "event"
|
|
47042
|
+
}
|
|
47043
|
+
]
|
|
47044
|
+
},
|
|
47045
|
+
{
|
|
47046
|
+
"kind": "field",
|
|
47047
|
+
"name": "handlePointerUp",
|
|
47048
|
+
"privacy": "private",
|
|
47049
|
+
"description": "Handles the end of pointer-based resizing.",
|
|
47050
|
+
"parameters": [
|
|
47051
|
+
{
|
|
47052
|
+
"description": "The pointer event.",
|
|
47053
|
+
"name": "event"
|
|
47054
|
+
}
|
|
47055
|
+
]
|
|
47056
|
+
},
|
|
46964
47057
|
{
|
|
46965
47058
|
"kind": "field",
|
|
46966
47059
|
"name": "autoFocusOnMount",
|
|
@@ -47454,6 +47547,24 @@
|
|
|
47454
47547
|
"description": "Template string for the announcement that will be read by screen readers when the max character limit is set.\nConsumers must use the placeholders `%{number-of-characters}` and `%{max-character-limit}` in the string,\nwhich will be dynamically replaced with the actual values at runtime.\nFor example: `%{number-of-characters} out of %{max-character-limit} characters are typed.`\nExample output: \"93 out of 140 characters are typed.\"",
|
|
47455
47548
|
"fieldName": "characterLimitAnnouncement"
|
|
47456
47549
|
},
|
|
47550
|
+
{
|
|
47551
|
+
"name": "resizable",
|
|
47552
|
+
"type": {
|
|
47553
|
+
"text": "boolean"
|
|
47554
|
+
},
|
|
47555
|
+
"default": "false",
|
|
47556
|
+
"description": "Controls whether the textarea is resizable via the resize button.\nWhen set to false, the resize button will be hidden.",
|
|
47557
|
+
"fieldName": "resizable"
|
|
47558
|
+
},
|
|
47559
|
+
{
|
|
47560
|
+
"name": "resize-button-aria-label",
|
|
47561
|
+
"type": {
|
|
47562
|
+
"text": "string | undefined"
|
|
47563
|
+
},
|
|
47564
|
+
"description": "Provides an accessible label for the resize button.\nThis value is used to set the `aria-label` attribute for the button.",
|
|
47565
|
+
"default": "''",
|
|
47566
|
+
"fieldName": "resizeButtonAriaLabel"
|
|
47567
|
+
},
|
|
47457
47568
|
{
|
|
47458
47569
|
"name": "auto-focus-on-mount",
|
|
47459
47570
|
"type": {
|
|
@@ -47674,7 +47785,7 @@
|
|
|
47674
47785
|
"module": "/src/components/formfieldwrapper"
|
|
47675
47786
|
},
|
|
47676
47787
|
"tagName": "mdc-textarea",
|
|
47677
|
-
"jsDoc": "/**\n * mdc-textarea component, which is used to get the multi-line text input from the user.\n * It contains:\n * - label: It is the title of the textarea field.\n * - required: A boolean attribute depicting that the textarea field is required.\n * - Textarea: It is the multi-line text input field.\n * - helper-text: It is the text that provides additional information about the textarea field.\n * - max-character-limit: It is the text that shows the character count of the textarea field.\n * - Error, Warning, Success, Priority Help Text type: It is the text that provides additional information\n * about the textarea field based on the validation state.\n * - limitexceeded: It is the event that is dispatched when the character limit exceeds or restored.\n * This event exposes 3 properties:\n * - currentCharacterCount - the current number of characters in the textarea field,\n * - maxCharacterLimit - the maximum number of characters allowed in the textarea field,\n * - value - the current value of the textarea field,\n *\n * **Note**: Consumers must set the help-text-type with 'error' and\n * help-text attribute with the error message using limitexceeded event.\n * The same help-text value will be used for the validation message to be displayed.\n *\n * @tagname mdc-textarea\n *\n * @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).\n * @event change - (React: onChange) This event is dispatched when the value of the textarea field changes (on blur).\n * @event focus - (React: onFocus) This event is dispatched when the textarea receives focus.\n * @event blur - (React: onBlur) This event is dispatched when the textarea loses focus.\n * @event limitexceeded - (React: onLimitExceeded) This event is dispatched once when the character limit\n * exceeds or restored.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.\n * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.\n * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.\n * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.\n *\n * @csspart label - The label element.\n * @csspart label-text - The container for the label and required indicator elements.\n * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.\n * @csspart info-icon-btn - The info icon button element that is displayed next to the label when the `toggletip-text` property is set.\n * @csspart label-toggletip - The toggletip element that is displayed when the info icon button is clicked.\n * @csspart help-text - The helper/validation text element.\n * @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.\n * @csspart help-text-container - The container for the helper/validation icon and text elements.\n *\n * @cssproperty --mdc-label-font-size - Font size for the label text.\n * @cssproperty --mdc-label-font-weight - Font weight for the label text.\n * @cssproperty --mdc-label-line-height - Line height for the label text.\n * @cssproperty --mdc-label-color - Color for the label text.\n * @cssproperty --mdc-help-text-font-size - Font size for the help text.\n * @cssproperty --mdc-help-text-font-weight - Font weight for the help text.\n * @cssproperty --mdc-help-text-line-height - Line height for the help text.\n * @cssproperty --mdc-help-text-color - Color for the help text.\n * @cssproperty --mdc-required-indicator-color - Color for the required indicator text.\n * @cssproperty --mdc-textarea-text-color - Text color for the textarea field\n * @cssproperty --mdc-textarea-background-color - Background color for the textarea field\n * @cssproperty --mdc-textarea-border-color - Border color for the textarea field\n * @cssproperty --mdc-textarea-text-secondary-normal - Text color for the character counter\n * @cssproperty --mdc-textarea-text-font-size - Font size for the textarea field\n * @cssproperty --mdc-textarea-text-line-height - Line height for the textarea field\n * @cssproperty --mdc-textarea-container-background-color - Background color for the textarea container\n */",
|
|
47788
|
+
"jsDoc": "/**\n * mdc-textarea component, which is used to get the multi-line text input from the user.\n * It contains:\n * - label: It is the title of the textarea field.\n * - required: A boolean attribute depicting that the textarea field is required.\n * - Textarea: It is the multi-line text input field.\n * - helper-text: It is the text that provides additional information about the textarea field.\n * - max-character-limit: It is the text that shows the character count of the textarea field.\n * - Error, Warning, Success, Priority Help Text type: It is the text that provides additional information\n * about the textarea field based on the validation state.\n * - limitexceeded: It is the event that is dispatched when the character limit exceeds or restored.\n * This event exposes 3 properties:\n * - currentCharacterCount - the current number of characters in the textarea field,\n * - maxCharacterLimit - the maximum number of characters allowed in the textarea field,\n * - value - the current value of the textarea field,\n *\n * **Note**: Consumers must set the help-text-type with 'error' and\n * help-text attribute with the error message using limitexceeded event.\n * The same help-text value will be used for the validation message to be displayed.\n *\n * ### Accessibility \n * \n * #### Resize\n * \n * Accessible text area resizing can be turned on with the `resizable`. \n * It is strongly recommended to set the `resize-button-aria-label` attribute as well to describe what it is and what are the shortcuts (up/down arrows) of the button.\n * \n * #### Best practices\n * \n * - Always provide a `label` for screen readers to identify the textarea's purpose\n * - Use `help-text` to provide additional context or instructions\n * - When using `max-character-limit`, consider providing `character-limit-announcement` for screen reader updates\n * - Use appropriate `help-text-type` (error, warning, success) to convey validation state\n * - Ensure `validation-message` is set for form validation errors\n *\n * @tagname mdc-textarea\n *\n * @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).\n * @event change - (React: onChange) This event is dispatched when the value of the textarea field changes (on blur).\n * @event focus - (React: onFocus) This event is dispatched when the textarea receives focus.\n * @event blur - (React: onBlur) This event is dispatched when the textarea loses focus.\n * @event limitexceeded - (React: onLimitExceeded) This event is dispatched once when the character limit\n * exceeds or restored.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.\n * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.\n * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.\n * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.\n *\n * @csspart label - The label element.\n * @csspart label-text - The container for the label and required indicator elements.\n * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.\n * @csspart info-icon-btn - The info icon button element that is displayed next to the label when the `toggletip-text` property is set.\n * @csspart label-toggletip - The toggletip element that is displayed when the info icon button is clicked.\n * @csspart textarea - The textarea element.\n * @csspart textarea-container - The container element that wraps the textarea and resize button.\n * @csspart textarea-footer - The footer element that contains the character counter.\n * @csspart character-counter - The character counter element.\n * @csspart resize-button - The resize button element (shown when `resizable` is true).\n * @csspart help-text - The helper/validation text element.\n * @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.\n * @csspart help-text-container - The container for the helper/validation icon and text elements.\n *\n * @cssproperty --mdc-label-font-size - Font size for the label text.\n * @cssproperty --mdc-label-font-weight - Font weight for the label text.\n * @cssproperty --mdc-label-line-height - Line height for the label text.\n * @cssproperty --mdc-label-color - Color for the label text.\n * @cssproperty --mdc-help-text-font-size - Font size for the help text.\n * @cssproperty --mdc-help-text-font-weight - Font weight for the help text.\n * @cssproperty --mdc-help-text-line-height - Line height for the help text.\n * @cssproperty --mdc-help-text-color - Color for the help text.\n * @cssproperty --mdc-required-indicator-color - Color for the required indicator text.\n * @cssproperty --mdc-textarea-text-color - Text color for the textarea field\n * @cssproperty --mdc-textarea-background-color - Background color for the textarea field\n * @cssproperty --mdc-textarea-border-color - Border color for the textarea field\n * @cssproperty --mdc-textarea-text-secondary-normal - Text color for the character counter\n * @cssproperty --mdc-textarea-text-font-size - Font size for the textarea field\n * @cssproperty --mdc-textarea-text-line-height - Line height for the textarea field\n * @cssproperty --mdc-textarea-container-background-color - Background color for the textarea container\n */",
|
|
47678
47789
|
"customElement": true
|
|
47679
47790
|
}
|
|
47680
47791
|
],
|