@momentum-design/components 0.104.2 → 0.104.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +35 -30
- package/dist/browser/index.js.map +3 -3
- package/dist/components/select/select.component.d.ts +2 -6
- package/dist/components/select/select.component.js +11 -16
- package/dist/components/select/select.styles.js +8 -2
- package/dist/custom-elements.json +162 -172
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/select/index.d.ts +2 -0
- package/dist/react/select/index.js +2 -0
- package/package.json +1 -1
@@ -46,6 +46,8 @@ declare const Select_base: import("../../utils/mixins/index.types").Constructor<
|
|
46
46
|
* @cssproperty --mdc-select-border-color-warning - The border color of the select when in warning state.
|
47
47
|
* @cssproperty --mdc-select-border-color-error - The border color of the select when in error state.
|
48
48
|
* @cssproperty --mdc-select-width - The width of the select.
|
49
|
+
* @cssproperty --mdc-select-listbox-height - The height of the listbox inside the select.
|
50
|
+
* @cssproperty --mdc-select-listbox-width - The width of the listbox inside the select (default: `--mdc-select-width`).
|
49
51
|
*/
|
50
52
|
declare class Select extends Select_base implements AssociatedFormControl {
|
51
53
|
/**
|
@@ -57,12 +59,6 @@ declare class Select extends Select_base implements AssociatedFormControl {
|
|
57
59
|
* @default false
|
58
60
|
*/
|
59
61
|
readonly: boolean;
|
60
|
-
/**
|
61
|
-
* height attribute of the select field. If set,
|
62
|
-
* then a scroll bar will be visible when there more options than the adjusted height.
|
63
|
-
* @default auto
|
64
|
-
*/
|
65
|
-
height: string;
|
66
62
|
/**
|
67
63
|
* The placeholder text which will be shown on the text if provided.
|
68
64
|
*/
|
@@ -62,6 +62,8 @@ import styles from './select.styles';
|
|
62
62
|
* @cssproperty --mdc-select-border-color-warning - The border color of the select when in warning state.
|
63
63
|
* @cssproperty --mdc-select-border-color-error - The border color of the select when in error state.
|
64
64
|
* @cssproperty --mdc-select-width - The width of the select.
|
65
|
+
* @cssproperty --mdc-select-listbox-height - The height of the listbox inside the select.
|
66
|
+
* @cssproperty --mdc-select-listbox-width - The width of the listbox inside the select (default: `--mdc-select-width`).
|
65
67
|
*/
|
66
68
|
class Select extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
67
69
|
constructor() {
|
@@ -71,12 +73,6 @@ class Select extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
71
73
|
* @default false
|
72
74
|
*/
|
73
75
|
this.readonly = false;
|
74
|
-
/**
|
75
|
-
* height attribute of the select field. If set,
|
76
|
-
* then a scroll bar will be visible when there more options than the adjusted height.
|
77
|
-
* @default auto
|
78
|
-
*/
|
79
|
-
this.height = 'auto';
|
80
76
|
/**
|
81
77
|
* The placeholder text which will be shown on the text if provided.
|
82
78
|
*/
|
@@ -215,7 +211,7 @@ class Select extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
215
211
|
* @param option - The option element in DOM which gets selected.
|
216
212
|
*/
|
217
213
|
setSelectedOption(option) {
|
218
|
-
var _a, _b;
|
214
|
+
var _a, _b, _c;
|
219
215
|
// set the attribute 'selected' on the option in HTML and remove it from others
|
220
216
|
this.updateSelectedInChildOptions(option);
|
221
217
|
// update the tabindex for all options
|
@@ -225,7 +221,7 @@ class Select extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
225
221
|
// update all form related values
|
226
222
|
this.value = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '';
|
227
223
|
this.internals.setFormValue(this.value);
|
228
|
-
this.inputElement.setAttribute('value', this.value);
|
224
|
+
(_c = this.inputElement) === null || _c === void 0 ? void 0 : _c.setAttribute('value', this.value);
|
229
225
|
this.setInputValidity();
|
230
226
|
}
|
231
227
|
/**
|
@@ -273,11 +269,12 @@ class Select extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
273
269
|
* @internal
|
274
270
|
*/
|
275
271
|
setInputValidity() {
|
272
|
+
var _a, _b;
|
276
273
|
if (!this.selectedOption && this.required && this.validationMessage) {
|
277
|
-
this.inputElement.setCustomValidity(this.validationMessage);
|
274
|
+
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setCustomValidity(this.validationMessage);
|
278
275
|
}
|
279
276
|
else {
|
280
|
-
this.inputElement.setCustomValidity('');
|
277
|
+
(_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setCustomValidity('');
|
281
278
|
}
|
282
279
|
this.setValidity();
|
283
280
|
}
|
@@ -473,6 +470,9 @@ class Select extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
473
470
|
updateState() {
|
474
471
|
var _a;
|
475
472
|
const newSelectedOption = this.getFirstSelectedOption();
|
473
|
+
if (!this.inputElement) {
|
474
|
+
return;
|
475
|
+
}
|
476
476
|
if (!newSelectedOption) {
|
477
477
|
this.setSelectedOption(this.placeholder ? null : this.getFirstValidOption());
|
478
478
|
}
|
@@ -563,7 +563,6 @@ class Select extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
563
563
|
@closebyoutsideclick="${() => {
|
564
564
|
this.displayPopover = false;
|
565
565
|
}}"
|
566
|
-
style="--mdc-popover-max-width: var(--mdc-select-width); --mdc-popover-max-height: ${this.height};"
|
567
566
|
>
|
568
567
|
<slot @click="${this.handleOptionsClick}"></slot>
|
569
568
|
</mdc-popover>
|
@@ -581,16 +580,12 @@ __decorate([
|
|
581
580
|
property({ type: Boolean }),
|
582
581
|
__metadata("design:type", Object)
|
583
582
|
], Select.prototype, "readonly", void 0);
|
584
|
-
__decorate([
|
585
|
-
property({ type: String }),
|
586
|
-
__metadata("design:type", Object)
|
587
|
-
], Select.prototype, "height", void 0);
|
588
583
|
__decorate([
|
589
584
|
property({ type: String, reflect: true }),
|
590
585
|
__metadata("design:type", String)
|
591
586
|
], Select.prototype, "placement", void 0);
|
592
587
|
__decorate([
|
593
|
-
property({ type: Boolean, attribute: 'soft-disabled' }),
|
588
|
+
property({ type: Boolean, attribute: 'soft-disabled', reflect: true }),
|
594
589
|
__metadata("design:type", Boolean)
|
595
590
|
], Select.prototype, "softDisabled", void 0);
|
596
591
|
__decorate([
|
@@ -15,6 +15,8 @@ const styles = css `
|
|
15
15
|
--mdc-select-border-color-warning: var(--mds-color-theme-text-warning-normal);
|
16
16
|
--mdc-select-border-color-error: var(--mds-color-theme-text-error-normal);
|
17
17
|
--mdc-select-width: 100%;
|
18
|
+
--mdc-select-listbox-width: var(--mdc-select-width);
|
19
|
+
--mdc-select-listbox-height: auto;
|
18
20
|
|
19
21
|
display: flex;
|
20
22
|
flex-direction: column;
|
@@ -79,9 +81,13 @@ const styles = css `
|
|
79
81
|
display: flex;
|
80
82
|
padding: 2px;
|
81
83
|
}
|
84
|
+
|
85
|
+
/* Popover height, width & padding overrides */
|
86
|
+
:host mdc-popover {
|
87
|
+
--mdc-popover-max-width: var(--mdc-select-listbox-width);
|
88
|
+
--mdc-popover-max-height: var(--mdc-select-listbox-height);
|
89
|
+
}
|
82
90
|
:host mdc-popover::part(popover-content) {
|
83
|
-
min-width: auto;
|
84
|
-
width: var(--mdc-select-width);
|
85
91
|
max-height: var(--mdc-popover-max-height);
|
86
92
|
padding: 0.75rem 0.5rem;
|
87
93
|
}
|
@@ -477,157 +477,6 @@
|
|
477
477
|
}
|
478
478
|
]
|
479
479
|
},
|
480
|
-
{
|
481
|
-
"kind": "javascript-module",
|
482
|
-
"path": "components/accordiongroup/accordiongroup.component.js",
|
483
|
-
"declarations": [
|
484
|
-
{
|
485
|
-
"kind": "class",
|
486
|
-
"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.",
|
487
|
-
"name": "AccordionGroup",
|
488
|
-
"cssProperties": [
|
489
|
-
{
|
490
|
-
"description": "The border color of the entire accordiongroup",
|
491
|
-
"name": "--mdc-accordiongroup-border-color"
|
492
|
-
}
|
493
|
-
],
|
494
|
-
"slots": [
|
495
|
-
{
|
496
|
-
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
497
|
-
"name": "default"
|
498
|
-
}
|
499
|
-
],
|
500
|
-
"members": [
|
501
|
-
{
|
502
|
-
"kind": "field",
|
503
|
-
"name": "size",
|
504
|
-
"type": {
|
505
|
-
"text": "Size"
|
506
|
-
},
|
507
|
-
"description": "The size of the accordion item.",
|
508
|
-
"default": "'small'",
|
509
|
-
"attribute": "size",
|
510
|
-
"reflects": true
|
511
|
-
},
|
512
|
-
{
|
513
|
-
"kind": "field",
|
514
|
-
"name": "variant",
|
515
|
-
"type": {
|
516
|
-
"text": "Variant"
|
517
|
-
},
|
518
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
519
|
-
"default": "'stacked'",
|
520
|
-
"attribute": "variant",
|
521
|
-
"reflects": true
|
522
|
-
},
|
523
|
-
{
|
524
|
-
"kind": "field",
|
525
|
-
"name": "allowMultiple",
|
526
|
-
"type": {
|
527
|
-
"text": "boolean"
|
528
|
-
},
|
529
|
-
"default": "false",
|
530
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
531
|
-
"attribute": "allow-multiple",
|
532
|
-
"reflects": true
|
533
|
-
},
|
534
|
-
{
|
535
|
-
"kind": "method",
|
536
|
-
"name": "handleAccordionExpanded",
|
537
|
-
"privacy": "private",
|
538
|
-
"return": {
|
539
|
-
"type": {
|
540
|
-
"text": "void"
|
541
|
-
}
|
542
|
-
},
|
543
|
-
"parameters": [
|
544
|
-
{
|
545
|
-
"name": "event",
|
546
|
-
"type": {
|
547
|
-
"text": "Event"
|
548
|
-
},
|
549
|
-
"description": "The event object from the 'shown' event."
|
550
|
-
}
|
551
|
-
],
|
552
|
-
"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."
|
553
|
-
},
|
554
|
-
{
|
555
|
-
"kind": "method",
|
556
|
-
"name": "setChildrenAccordionAttributes",
|
557
|
-
"privacy": "private",
|
558
|
-
"return": {
|
559
|
-
"type": {
|
560
|
-
"text": "void"
|
561
|
-
}
|
562
|
-
},
|
563
|
-
"parameters": [
|
564
|
-
{
|
565
|
-
"name": "attributeName",
|
566
|
-
"type": {
|
567
|
-
"text": "string"
|
568
|
-
},
|
569
|
-
"description": "The name of the attribute to set."
|
570
|
-
},
|
571
|
-
{
|
572
|
-
"name": "attributeValue",
|
573
|
-
"type": {
|
574
|
-
"text": "string"
|
575
|
-
},
|
576
|
-
"description": "The value to set the attribute to."
|
577
|
-
}
|
578
|
-
],
|
579
|
-
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
580
|
-
}
|
581
|
-
],
|
582
|
-
"attributes": [
|
583
|
-
{
|
584
|
-
"name": "size",
|
585
|
-
"type": {
|
586
|
-
"text": "Size"
|
587
|
-
},
|
588
|
-
"description": "The size of the accordion item.",
|
589
|
-
"default": "'small'",
|
590
|
-
"fieldName": "size"
|
591
|
-
},
|
592
|
-
{
|
593
|
-
"name": "variant",
|
594
|
-
"type": {
|
595
|
-
"text": "Variant"
|
596
|
-
},
|
597
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
598
|
-
"default": "'stacked'",
|
599
|
-
"fieldName": "variant"
|
600
|
-
},
|
601
|
-
{
|
602
|
-
"name": "allow-multiple",
|
603
|
-
"type": {
|
604
|
-
"text": "boolean"
|
605
|
-
},
|
606
|
-
"default": "false",
|
607
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
608
|
-
"fieldName": "allowMultiple"
|
609
|
-
}
|
610
|
-
],
|
611
|
-
"superclass": {
|
612
|
-
"name": "Component",
|
613
|
-
"module": "/src/models"
|
614
|
-
},
|
615
|
-
"tagName": "mdc-accordiongroup",
|
616
|
-
"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 */",
|
617
|
-
"customElement": true
|
618
|
-
}
|
619
|
-
],
|
620
|
-
"exports": [
|
621
|
-
{
|
622
|
-
"kind": "js",
|
623
|
-
"name": "default",
|
624
|
-
"declaration": {
|
625
|
-
"name": "AccordionGroup",
|
626
|
-
"module": "components/accordiongroup/accordiongroup.component.js"
|
627
|
-
}
|
628
|
-
}
|
629
|
-
]
|
630
|
-
},
|
631
480
|
{
|
632
481
|
"kind": "javascript-module",
|
633
482
|
"path": "components/accordionbutton/accordionbutton.component.js",
|
@@ -968,6 +817,157 @@
|
|
968
817
|
}
|
969
818
|
]
|
970
819
|
},
|
820
|
+
{
|
821
|
+
"kind": "javascript-module",
|
822
|
+
"path": "components/accordiongroup/accordiongroup.component.js",
|
823
|
+
"declarations": [
|
824
|
+
{
|
825
|
+
"kind": "class",
|
826
|
+
"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.",
|
827
|
+
"name": "AccordionGroup",
|
828
|
+
"cssProperties": [
|
829
|
+
{
|
830
|
+
"description": "The border color of the entire accordiongroup",
|
831
|
+
"name": "--mdc-accordiongroup-border-color"
|
832
|
+
}
|
833
|
+
],
|
834
|
+
"slots": [
|
835
|
+
{
|
836
|
+
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
837
|
+
"name": "default"
|
838
|
+
}
|
839
|
+
],
|
840
|
+
"members": [
|
841
|
+
{
|
842
|
+
"kind": "field",
|
843
|
+
"name": "size",
|
844
|
+
"type": {
|
845
|
+
"text": "Size"
|
846
|
+
},
|
847
|
+
"description": "The size of the accordion item.",
|
848
|
+
"default": "'small'",
|
849
|
+
"attribute": "size",
|
850
|
+
"reflects": true
|
851
|
+
},
|
852
|
+
{
|
853
|
+
"kind": "field",
|
854
|
+
"name": "variant",
|
855
|
+
"type": {
|
856
|
+
"text": "Variant"
|
857
|
+
},
|
858
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
859
|
+
"default": "'stacked'",
|
860
|
+
"attribute": "variant",
|
861
|
+
"reflects": true
|
862
|
+
},
|
863
|
+
{
|
864
|
+
"kind": "field",
|
865
|
+
"name": "allowMultiple",
|
866
|
+
"type": {
|
867
|
+
"text": "boolean"
|
868
|
+
},
|
869
|
+
"default": "false",
|
870
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
871
|
+
"attribute": "allow-multiple",
|
872
|
+
"reflects": true
|
873
|
+
},
|
874
|
+
{
|
875
|
+
"kind": "method",
|
876
|
+
"name": "handleAccordionExpanded",
|
877
|
+
"privacy": "private",
|
878
|
+
"return": {
|
879
|
+
"type": {
|
880
|
+
"text": "void"
|
881
|
+
}
|
882
|
+
},
|
883
|
+
"parameters": [
|
884
|
+
{
|
885
|
+
"name": "event",
|
886
|
+
"type": {
|
887
|
+
"text": "Event"
|
888
|
+
},
|
889
|
+
"description": "The event object from the 'shown' event."
|
890
|
+
}
|
891
|
+
],
|
892
|
+
"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."
|
893
|
+
},
|
894
|
+
{
|
895
|
+
"kind": "method",
|
896
|
+
"name": "setChildrenAccordionAttributes",
|
897
|
+
"privacy": "private",
|
898
|
+
"return": {
|
899
|
+
"type": {
|
900
|
+
"text": "void"
|
901
|
+
}
|
902
|
+
},
|
903
|
+
"parameters": [
|
904
|
+
{
|
905
|
+
"name": "attributeName",
|
906
|
+
"type": {
|
907
|
+
"text": "string"
|
908
|
+
},
|
909
|
+
"description": "The name of the attribute to set."
|
910
|
+
},
|
911
|
+
{
|
912
|
+
"name": "attributeValue",
|
913
|
+
"type": {
|
914
|
+
"text": "string"
|
915
|
+
},
|
916
|
+
"description": "The value to set the attribute to."
|
917
|
+
}
|
918
|
+
],
|
919
|
+
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
920
|
+
}
|
921
|
+
],
|
922
|
+
"attributes": [
|
923
|
+
{
|
924
|
+
"name": "size",
|
925
|
+
"type": {
|
926
|
+
"text": "Size"
|
927
|
+
},
|
928
|
+
"description": "The size of the accordion item.",
|
929
|
+
"default": "'small'",
|
930
|
+
"fieldName": "size"
|
931
|
+
},
|
932
|
+
{
|
933
|
+
"name": "variant",
|
934
|
+
"type": {
|
935
|
+
"text": "Variant"
|
936
|
+
},
|
937
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
938
|
+
"default": "'stacked'",
|
939
|
+
"fieldName": "variant"
|
940
|
+
},
|
941
|
+
{
|
942
|
+
"name": "allow-multiple",
|
943
|
+
"type": {
|
944
|
+
"text": "boolean"
|
945
|
+
},
|
946
|
+
"default": "false",
|
947
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
948
|
+
"fieldName": "allowMultiple"
|
949
|
+
}
|
950
|
+
],
|
951
|
+
"superclass": {
|
952
|
+
"name": "Component",
|
953
|
+
"module": "/src/models"
|
954
|
+
},
|
955
|
+
"tagName": "mdc-accordiongroup",
|
956
|
+
"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 */",
|
957
|
+
"customElement": true
|
958
|
+
}
|
959
|
+
],
|
960
|
+
"exports": [
|
961
|
+
{
|
962
|
+
"kind": "js",
|
963
|
+
"name": "default",
|
964
|
+
"declaration": {
|
965
|
+
"name": "AccordionGroup",
|
966
|
+
"module": "components/accordiongroup/accordiongroup.component.js"
|
967
|
+
}
|
968
|
+
}
|
969
|
+
]
|
970
|
+
},
|
971
971
|
{
|
972
972
|
"kind": "javascript-module",
|
973
973
|
"path": "components/alertchip/alertchip.component.js",
|
@@ -32047,6 +32047,14 @@
|
|
32047
32047
|
{
|
32048
32048
|
"description": "The width of the select.",
|
32049
32049
|
"name": "--mdc-select-width"
|
32050
|
+
},
|
32051
|
+
{
|
32052
|
+
"description": "The height of the listbox inside the select.",
|
32053
|
+
"name": "--mdc-select-listbox-height"
|
32054
|
+
},
|
32055
|
+
{
|
32056
|
+
"description": "The width of the listbox inside the select (default: `--mdc-select-width`).",
|
32057
|
+
"name": "--mdc-select-listbox-width"
|
32050
32058
|
}
|
32051
32059
|
],
|
32052
32060
|
"slots": [
|
@@ -32075,16 +32083,6 @@
|
|
32075
32083
|
"description": "readonly attribute of the select field. If true, the select is read-only.",
|
32076
32084
|
"attribute": "readonly"
|
32077
32085
|
},
|
32078
|
-
{
|
32079
|
-
"kind": "field",
|
32080
|
-
"name": "height",
|
32081
|
-
"type": {
|
32082
|
-
"text": "string"
|
32083
|
-
},
|
32084
|
-
"default": "'auto'",
|
32085
|
-
"description": "height attribute of the select field. If set,\nthen a scroll bar will be visible when there more options than the adjusted height.",
|
32086
|
-
"attribute": "height"
|
32087
|
-
},
|
32088
32086
|
{
|
32089
32087
|
"kind": "field",
|
32090
32088
|
"name": "placement",
|
@@ -32103,7 +32101,8 @@
|
|
32103
32101
|
},
|
32104
32102
|
"description": "Indicates whether the select is soft disabled.\nWhen set to `true`, the select appears visually disabled but still allows\nfocus.",
|
32105
32103
|
"default": "undefined",
|
32106
|
-
"attribute": "soft-disabled"
|
32104
|
+
"attribute": "soft-disabled",
|
32105
|
+
"reflects": true
|
32107
32106
|
},
|
32108
32107
|
{
|
32109
32108
|
"kind": "field",
|
@@ -32743,15 +32742,6 @@
|
|
32743
32742
|
"description": "readonly attribute of the select field. If true, the select is read-only.",
|
32744
32743
|
"fieldName": "readonly"
|
32745
32744
|
},
|
32746
|
-
{
|
32747
|
-
"name": "height",
|
32748
|
-
"type": {
|
32749
|
-
"text": "string"
|
32750
|
-
},
|
32751
|
-
"default": "'auto'",
|
32752
|
-
"description": "height attribute of the select field. If set,\nthen a scroll bar will be visible when there more options than the adjusted height.",
|
32753
|
-
"fieldName": "height"
|
32754
|
-
},
|
32755
32745
|
{
|
32756
32746
|
"name": "placement",
|
32757
32747
|
"type": {
|
@@ -32966,7 +32956,7 @@
|
|
32966
32956
|
"module": "/src/components/formfieldwrapper/formfieldwrapper.component"
|
32967
32957
|
},
|
32968
32958
|
"tagName": "mdc-select",
|
32969
|
-
"jsDoc": "/**\n * The mdc-select component is a dropdown selection control that allows users to pick an option from a predefined list.\n * It is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.\n * The component ensures accessibility and usability while handling various use cases,\n * including long text truncation with tooltip support.\n *\n * Every mdc-option should have a `value` attribute set to ensure proper form submission.\n *\n * To set a default option, use the `selected` attribute on the `mdc-option` element.\n *\n * **Note:** Make sure to add `mdc-selectlistbox` as a child of `mdc-select` and wrap options/optgroup in it to ensure proper accessibility functionality. Read more about it in SelectListBox documentation.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-popover\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @tagname mdc-select\n *\n * @slot default - This is a default/unnamed slot for Selectlistbox including options and/or option group.\n *\n * @event click - (React: onClick) This event is dispatched when the select is clicked.\n * @event change - (React: onChange) This event is dispatched when the select is changed.\n * @event input - (React: onInput) This event is dispatched when the select is changed.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the select.\n * @event focus - (React: onFocus) This event is dispatched when the select receives focus.\n *\n * @cssproperty --mdc-select-background-color - The background color of the combobox of select.\n * @cssproperty --mdc-select-background-color-hover - The background color of the combobox of select when hovered.\n * @cssproperty --mdc-select-background-color-active - The background color of the combobox of select when active.\n * @cssproperty --mdc-select-background-color-disabled - The background color of the combobox of select when disabled.\n * @cssproperty --mdc-select-text-color - The text color of the select.\n * @cssproperty --mdc-select-text-color-selected - The text color of the selected option in the select.\n * @cssproperty --mdc-select-text-color-disabled - The text color of the select when disabled.\n * @cssproperty --mdc-select-border-color - The border color of the select.\n * @cssproperty --mdc-select-border-color-disabled - The border color of the select when disabled.\n * @cssproperty --mdc-select-border-color-success - The border color of the select when in success state.\n * @cssproperty --mdc-select-border-color-warning - The border color of the select when in warning state.\n * @cssproperty --mdc-select-border-color-error - The border color of the select when in error state.\n * @cssproperty --mdc-select-width - The width of the select.\n */",
|
32959
|
+
"jsDoc": "/**\n * The mdc-select component is a dropdown selection control that allows users to pick an option from a predefined list.\n * It is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.\n * The component ensures accessibility and usability while handling various use cases,\n * including long text truncation with tooltip support.\n *\n * Every mdc-option should have a `value` attribute set to ensure proper form submission.\n *\n * To set a default option, use the `selected` attribute on the `mdc-option` element.\n *\n * **Note:** Make sure to add `mdc-selectlistbox` as a child of `mdc-select` and wrap options/optgroup in it to ensure proper accessibility functionality. Read more about it in SelectListBox documentation.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-popover\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @tagname mdc-select\n *\n * @slot default - This is a default/unnamed slot for Selectlistbox including options and/or option group.\n *\n * @event click - (React: onClick) This event is dispatched when the select is clicked.\n * @event change - (React: onChange) This event is dispatched when the select is changed.\n * @event input - (React: onInput) This event is dispatched when the select is changed.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the select.\n * @event focus - (React: onFocus) This event is dispatched when the select receives focus.\n *\n * @cssproperty --mdc-select-background-color - The background color of the combobox of select.\n * @cssproperty --mdc-select-background-color-hover - The background color of the combobox of select when hovered.\n * @cssproperty --mdc-select-background-color-active - The background color of the combobox of select when active.\n * @cssproperty --mdc-select-background-color-disabled - The background color of the combobox of select when disabled.\n * @cssproperty --mdc-select-text-color - The text color of the select.\n * @cssproperty --mdc-select-text-color-selected - The text color of the selected option in the select.\n * @cssproperty --mdc-select-text-color-disabled - The text color of the select when disabled.\n * @cssproperty --mdc-select-border-color - The border color of the select.\n * @cssproperty --mdc-select-border-color-disabled - The border color of the select when disabled.\n * @cssproperty --mdc-select-border-color-success - The border color of the select when in success state.\n * @cssproperty --mdc-select-border-color-warning - The border color of the select when in warning state.\n * @cssproperty --mdc-select-border-color-error - The border color of the select when in error state.\n * @cssproperty --mdc-select-width - The width of the select.\n * @cssproperty --mdc-select-listbox-height - The height of the listbox inside the select.\n * @cssproperty --mdc-select-listbox-width - The width of the listbox inside the select (default: `--mdc-select-width`).\n */",
|
32970
32960
|
"customElement": true
|
32971
32961
|
}
|
32972
32962
|
],
|
package/dist/react/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as Accordion } from './accordion';
|
2
|
-
export { default as AccordionGroup } from './accordiongroup';
|
3
2
|
export { default as AccordionButton } from './accordionbutton';
|
3
|
+
export { default as AccordionGroup } from './accordiongroup';
|
4
4
|
export { default as AlertChip } from './alertchip';
|
5
5
|
export { default as Animation } from './animation';
|
6
6
|
export { default as Appheader } from './appheader';
|
package/dist/react/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as Accordion } from './accordion';
|
2
|
-
export { default as AccordionGroup } from './accordiongroup';
|
3
2
|
export { default as AccordionButton } from './accordionbutton';
|
3
|
+
export { default as AccordionGroup } from './accordiongroup';
|
4
4
|
export { default as AlertChip } from './alertchip';
|
5
5
|
export { default as Animation } from './animation';
|
6
6
|
export { default as Appheader } from './appheader';
|
@@ -41,6 +41,8 @@ import Component from '../../components/select';
|
|
41
41
|
* @cssproperty --mdc-select-border-color-warning - The border color of the select when in warning state.
|
42
42
|
* @cssproperty --mdc-select-border-color-error - The border color of the select when in error state.
|
43
43
|
* @cssproperty --mdc-select-width - The width of the select.
|
44
|
+
* @cssproperty --mdc-select-listbox-height - The height of the listbox inside the select.
|
45
|
+
* @cssproperty --mdc-select-listbox-width - The width of the listbox inside the select (default: `--mdc-select-width`).
|
44
46
|
*/
|
45
47
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
46
48
|
onChange: EventName<import("../../components/select/select.types").SelectChangeEvent>;
|
@@ -43,6 +43,8 @@ import { TAG_NAME } from '../../components/select/select.constants';
|
|
43
43
|
* @cssproperty --mdc-select-border-color-warning - The border color of the select when in warning state.
|
44
44
|
* @cssproperty --mdc-select-border-color-error - The border color of the select when in error state.
|
45
45
|
* @cssproperty --mdc-select-width - The width of the select.
|
46
|
+
* @cssproperty --mdc-select-listbox-height - The height of the listbox inside the select.
|
47
|
+
* @cssproperty --mdc-select-listbox-width - The width of the listbox inside the select (default: `--mdc-select-width`).
|
46
48
|
*/
|
47
49
|
const reactWrapper = createComponent({
|
48
50
|
tagName: TAG_NAME,
|