@cloudscape-design/components-themeable 3.0.1396 → 3.0.1398
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/alert/styles.scss +14 -25
- package/lib/internal/scss/badge/styles.scss +39 -42
- package/lib/internal/scss/button/constants.scss +8 -8
- package/lib/internal/scss/button/styles.scss +50 -84
- package/lib/internal/scss/checkbox/styles.scss +2 -6
- package/lib/internal/scss/{internal/components/control-group → control-group}/styles.scss +48 -3
- package/lib/internal/scss/dropdown/styles.scss +16 -11
- package/lib/internal/scss/expandable-section/styles.scss +11 -0
- package/lib/internal/scss/file-token-group/styles.scss +1 -1
- package/lib/internal/scss/input/styles.scss +71 -12
- package/lib/internal/scss/internal/components/abstract-switch/styles.scss +3 -9
- package/lib/internal/scss/internal/components/autosuggest-input/styles.scss +3 -0
- package/lib/internal/scss/internal/components/button-trigger/styles.scss +4 -1
- package/lib/internal/scss/internal/components/checkbox-icon/styles.scss +7 -7
- package/lib/internal/scss/internal/components/option/styles.scss +23 -0
- package/lib/internal/scss/internal/components/radio-button/styles.scss +9 -9
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/internal/styles/forms/constants.scss +1 -1
- package/lib/internal/scss/internal/styles/forms/grouped-control.scss +129 -1
- package/lib/internal/scss/internal/styles/forms/mixins.scss +28 -25
- package/lib/internal/scss/internal/styles/links.scss +10 -24
- package/lib/internal/scss/internal/styles/style-api.scss +5 -5
- package/lib/internal/scss/link/styles.scss +13 -16
- package/lib/internal/scss/radio-button/styles.scss +1 -1
- package/lib/internal/scss/segmented-control/segment.scss +5 -4
- package/lib/internal/scss/segmented-control/styles.scss +12 -0
- package/lib/internal/scss/side-navigation/styles.scss +9 -0
- package/lib/internal/scss/textarea/styles.scss +41 -8
- package/lib/internal/scss/toggle/styles.scss +10 -14
- package/lib/internal/scss/token/constants.scss +2 -0
- package/lib/internal/scss/token/styles.scss +4 -2
- package/lib/internal/template/alert/styles.css.js +27 -27
- package/lib/internal/template/alert/styles.scoped.css +67 -116
- package/lib/internal/template/alert/styles.selectors.js +27 -27
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.js.map +1 -1
- package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/internal.js +10 -1
- package/lib/internal/template/autosuggest/internal.js.map +1 -1
- package/lib/internal/template/autosuggest/options-list.js +1 -1
- package/lib/internal/template/autosuggest/options-list.js.map +1 -1
- package/lib/internal/template/badge/styles.css.js +10 -10
- package/lib/internal/template/badge/styles.scoped.css +55 -83
- package/lib/internal/template/badge/styles.selectors.js +10 -10
- package/lib/internal/template/button/styles.css.js +24 -24
- package/lib/internal/template/button/styles.scoped.css +356 -405
- package/lib/internal/template/button/styles.selectors.js +24 -24
- package/lib/internal/template/button-dropdown/filter.d.ts +1 -1
- package/lib/internal/template/button-dropdown/filter.d.ts.map +1 -1
- package/lib/internal/template/checkbox/internal.d.ts +0 -2
- package/lib/internal/template/checkbox/internal.d.ts.map +1 -1
- package/lib/internal/template/checkbox/internal.js +1 -1
- package/lib/internal/template/checkbox/internal.js.map +1 -1
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +16 -28
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/control-group/index.d.ts +4 -0
- package/lib/internal/template/control-group/index.d.ts.map +1 -0
- package/lib/internal/template/control-group/index.js +19 -0
- package/lib/internal/template/control-group/index.js.map +1 -0
- package/lib/internal/template/{internal/components/control-group → control-group}/interfaces.d.ts +7 -7
- package/lib/internal/template/control-group/interfaces.d.ts.map +1 -0
- package/lib/internal/template/control-group/interfaces.js.map +1 -0
- package/lib/internal/template/control-group/internal.d.ts +4 -0
- package/lib/internal/template/control-group/internal.d.ts.map +1 -0
- package/lib/internal/template/{internal/components/control-group/index.js → control-group/internal.js} +43 -13
- package/lib/internal/template/control-group/internal.js.map +1 -0
- package/lib/internal/template/control-group/styles.css.js +32 -0
- package/lib/internal/template/{internal/components/control-group → control-group}/styles.scoped.css +51 -20
- package/lib/internal/template/control-group/styles.selectors.js +33 -0
- package/lib/internal/template/control-group/test-classes/styles.css.js +9 -0
- package/lib/internal/template/{internal/components/control-group → control-group}/test-classes/styles.scoped.css +4 -4
- package/lib/internal/template/control-group/test-classes/styles.selectors.js +10 -0
- package/lib/internal/template/dropdown/styles.css.js +20 -20
- package/lib/internal/template/dropdown/styles.scoped.css +55 -63
- package/lib/internal/template/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts +2 -1
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js +11 -9
- package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
- package/lib/internal/template/expandable-section/internal.d.ts +7 -1
- package/lib/internal/template/expandable-section/internal.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/internal.js +2 -2
- package/lib/internal/template/expandable-section/internal.js.map +1 -1
- package/lib/internal/template/expandable-section/styles.css.js +46 -44
- package/lib/internal/template/expandable-section/styles.scoped.css +98 -89
- package/lib/internal/template/expandable-section/styles.selectors.js +46 -44
- package/lib/internal/template/file-token-group/styles.css.js +23 -23
- package/lib/internal/template/file-token-group/styles.scoped.css +35 -35
- package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
- package/lib/internal/template/form-field/interfaces.d.ts +2 -2
- package/lib/internal/template/form-field/interfaces.js.map +1 -1
- package/lib/internal/template/index.d.ts +1 -0
- package/lib/internal/template/index.d.ts.map +1 -1
- package/lib/internal/template/index.js +1 -0
- package/lib/internal/template/index.js.map +1 -1
- package/lib/internal/template/input/index.d.ts.map +1 -1
- package/lib/internal/template/input/index.js +2 -1
- package/lib/internal/template/input/index.js.map +1 -1
- package/lib/internal/template/input/internal.d.ts +8 -1
- package/lib/internal/template/input/internal.d.ts.map +1 -1
- package/lib/internal/template/input/internal.js +16 -8
- package/lib/internal/template/input/internal.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +44 -37
- package/lib/internal/template/input/styles.scoped.css +212 -95
- package/lib/internal/template/input/styles.selectors.js +44 -37
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/base-theme/styles.scoped.css +10 -2
- package/lib/internal/template/internal/components/abstract-switch/index.d.ts +1 -3
- package/lib/internal/template/internal/components/abstract-switch/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/abstract-switch/index.js +3 -3
- package/lib/internal/template/internal/components/abstract-switch/index.js.map +1 -1
- package/lib/internal/template/internal/components/abstract-switch/styles.css.js +13 -13
- package/lib/internal/template/internal/components/abstract-switch/styles.scoped.css +23 -23
- package/lib/internal/template/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js +25 -24
- package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/styles.css.js +33 -27
- package/lib/internal/template/internal/components/autosuggest-input/styles.scoped.css +133 -38
- package/lib/internal/template/internal/components/autosuggest-input/styles.selectors.js +33 -27
- package/lib/internal/template/internal/components/button-trigger/index.js +2 -2
- package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +29 -23
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +143 -48
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +29 -23
- package/lib/internal/template/internal/components/checkbox-icon/styles.css.js +9 -9
- package/lib/internal/template/internal/components/checkbox-icon/styles.scoped.css +15 -15
- package/lib/internal/template/internal/components/checkbox-icon/styles.selectors.js +9 -9
- package/lib/internal/template/internal/components/drag-handle/hooks/interfaces.d.ts +1 -0
- package/lib/internal/template/internal/components/drag-handle/hooks/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle/hooks/interfaces.js.map +1 -1
- package/lib/internal/template/internal/components/drag-handle/hooks/use-drag-handle-interaction-state.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle/hooks/use-drag-handle-interaction-state.js +9 -1
- package/lib/internal/template/internal/components/drag-handle/hooks/use-drag-handle-interaction-state.js.map +1 -1
- package/lib/internal/template/internal/components/listbox/parts/common.d.ts.map +1 -0
- package/lib/internal/template/internal/components/listbox/parts/common.js.map +1 -0
- package/lib/internal/template/{select/utils → internal/components/listbox/parts}/get-item-props.d.ts +1 -1
- package/lib/internal/template/internal/components/listbox/parts/get-item-props.d.ts.map +1 -0
- package/lib/internal/template/{select/utils → internal/components/listbox/parts}/get-item-props.js +1 -1
- package/lib/internal/template/internal/components/listbox/parts/get-item-props.js.map +1 -0
- package/lib/internal/template/internal/components/listbox/parts/option-group.d.ts.map +1 -0
- package/lib/internal/template/{select → internal/components/listbox}/parts/option-group.js +1 -1
- package/lib/internal/template/internal/components/listbox/parts/option-group.js.map +1 -0
- package/lib/internal/template/{select/utils → internal/components/listbox/parts}/render-options.d.ts +5 -5
- package/lib/internal/template/internal/components/listbox/parts/render-options.d.ts.map +1 -0
- package/lib/internal/template/{select/utils → internal/components/listbox/parts}/render-options.js +4 -4
- package/lib/internal/template/internal/components/listbox/parts/render-options.js.map +1 -0
- package/lib/internal/template/internal/components/listbox/parts/scroll-to-index.d.ts.map +1 -0
- package/lib/internal/template/internal/components/listbox/parts/scroll-to-index.js.map +1 -0
- package/lib/internal/template/{select/utils → internal/components/listbox}/use-announcement.d.ts +2 -2
- package/lib/internal/template/internal/components/listbox/use-announcement.d.ts.map +1 -0
- package/lib/internal/template/{select/utils → internal/components/listbox}/use-announcement.js +1 -1
- package/lib/internal/template/internal/components/listbox/use-announcement.js.map +1 -0
- package/lib/internal/template/internal/components/listbox/utils/check-option-value-field.d.ts.map +1 -0
- package/lib/internal/template/{select → internal/components/listbox}/utils/check-option-value-field.js +1 -1
- package/lib/internal/template/internal/components/listbox/utils/check-option-value-field.js.map +1 -0
- package/lib/internal/template/{select → internal/components/listbox}/utils/connect-options.d.ts +2 -2
- package/lib/internal/template/internal/components/listbox/utils/connect-options.d.ts.map +1 -0
- package/lib/internal/template/internal/components/listbox/utils/connect-options.js.map +1 -0
- package/lib/internal/template/internal/components/option/index.d.ts +1 -1
- package/lib/internal/template/internal/components/option/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/option/index.js +4 -4
- package/lib/internal/template/internal/components/option/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/interfaces.d.ts +2 -0
- package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
- package/lib/internal/template/internal/components/option/option-parts.d.ts +2 -1
- package/lib/internal/template/internal/components/option/option-parts.d.ts.map +1 -1
- package/lib/internal/template/internal/components/option/option-parts.js +1 -1
- package/lib/internal/template/internal/components/option/option-parts.js.map +1 -1
- package/lib/internal/template/internal/components/option/styles.css.js +18 -17
- package/lib/internal/template/internal/components/option/styles.scoped.css +52 -29
- package/lib/internal/template/internal/components/option/styles.selectors.js +18 -17
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +27 -29
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/context/control-group-context.d.ts +7 -0
- package/lib/internal/template/internal/context/control-group-context.d.ts.map +1 -1
- package/lib/internal/template/internal/context/control-group-context.js +4 -1
- package/lib/internal/template/internal/context/control-group-context.js.map +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +2 -1
- package/lib/internal/template/internal/generated/styles/tokens.js +2 -1
- package/lib/internal/template/internal/generated/theming/index.cjs +36 -3
- package/lib/internal/template/internal/generated/theming/index.d.cts +9 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +9 -0
- package/lib/internal/template/internal/generated/theming/index.js +36 -3
- package/lib/internal/template/internal/grouped-control/dev-warnings.d.ts +39 -0
- package/lib/internal/template/internal/grouped-control/dev-warnings.d.ts.map +1 -0
- package/lib/internal/template/internal/grouped-control/dev-warnings.js +29 -0
- package/lib/internal/template/internal/grouped-control/dev-warnings.js.map +1 -0
- package/lib/internal/template/internal/grouped-control/grouped-control-styles.d.ts +10 -0
- package/lib/internal/template/internal/grouped-control/grouped-control-styles.d.ts.map +1 -0
- package/lib/internal/template/internal/grouped-control/grouped-control-styles.js +17 -0
- package/lib/internal/template/internal/grouped-control/grouped-control-styles.js.map +1 -0
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +133 -145
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/multiselect/interfaces.d.ts +1 -0
- package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
- package/lib/internal/template/multiselect/interfaces.js.map +1 -1
- package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
- package/lib/internal/template/multiselect/internal.js +11 -1
- package/lib/internal/template/multiselect/internal.js.map +1 -1
- package/lib/internal/template/multiselect/use-multiselect.d.ts.map +1 -1
- package/lib/internal/template/multiselect/use-multiselect.js +3 -3
- package/lib/internal/template/multiselect/use-multiselect.js.map +1 -1
- package/lib/internal/template/package.json +3 -0
- package/lib/internal/template/prompt-input/components/menu-dropdown.js +1 -1
- package/lib/internal/template/prompt-input/components/menu-dropdown.js.map +1 -1
- package/lib/internal/template/prompt-input/styles.css.js +26 -26
- package/lib/internal/template/prompt-input/styles.scoped.css +64 -64
- package/lib/internal/template/prompt-input/styles.selectors.js +26 -26
- package/lib/internal/template/radio-button/styles.css.js +1 -1
- package/lib/internal/template/radio-button/styles.scoped.css +5 -13
- package/lib/internal/template/radio-button/styles.selectors.js +1 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.js +3 -3
- package/lib/internal/template/segmented-control/internal-segmented-control.js.map +1 -1
- package/lib/internal/template/segmented-control/internal.js +2 -2
- package/lib/internal/template/segmented-control/internal.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +31 -27
- package/lib/internal/template/segmented-control/styles.scoped.css +136 -49
- package/lib/internal/template/segmented-control/styles.selectors.js +31 -27
- package/lib/internal/template/select/interfaces.d.ts +14 -0
- package/lib/internal/template/select/interfaces.d.ts.map +1 -1
- package/lib/internal/template/select/interfaces.js.map +1 -1
- package/lib/internal/template/select/internal.d.ts.map +1 -1
- package/lib/internal/template/select/internal.js +11 -2
- package/lib/internal/template/select/internal.js.map +1 -1
- package/lib/internal/template/select/parts/filter.d.ts +1 -1
- package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
- package/lib/internal/template/select/parts/plain-list.d.ts.map +1 -1
- package/lib/internal/template/select/parts/plain-list.js +3 -3
- package/lib/internal/template/select/parts/plain-list.js.map +1 -1
- package/lib/internal/template/select/parts/virtual-list.js +3 -3
- package/lib/internal/template/select/parts/virtual-list.js.map +1 -1
- package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
- package/lib/internal/template/select/utils/use-select.js +1 -1
- package/lib/internal/template/select/utils/use-select.js.map +1 -1
- package/lib/internal/template/side-navigation/interfaces.d.ts +6 -0
- package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
- package/lib/internal/template/side-navigation/parts.js +14 -4
- package/lib/internal/template/side-navigation/parts.js.map +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +65 -64
- package/lib/internal/template/side-navigation/styles.scoped.css +119 -111
- package/lib/internal/template/side-navigation/styles.selectors.js +65 -64
- package/lib/internal/template/styling/alert.scss +68 -0
- package/lib/internal/template/styling/badge.scss +55 -0
- package/lib/internal/template/styling/button.scss +59 -0
- package/lib/internal/template/styling/checkbox.scss +23 -0
- package/lib/internal/template/styling/dropdown.scss +31 -0
- package/lib/internal/template/styling/input.scss +106 -0
- package/lib/internal/template/styling/link.scss +29 -0
- package/lib/internal/template/styling/radio-button.scss +23 -0
- package/lib/internal/template/styling/textarea.scss +67 -0
- package/lib/internal/template/styling/toggle.scss +21 -0
- package/lib/internal/template/test-utils/dom/{internal/control-group.js → control-group/index.js} +2 -2
- package/lib/internal/template/test-utils/dom/control-group/index.js.map +1 -0
- package/lib/internal/template/test-utils/dom/index.d.ts +28 -0
- package/lib/internal/template/test-utils/dom/index.js +22 -3
- package/lib/internal/template/test-utils/dom/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/{internal/control-group.js → control-group/index.js} +2 -2
- package/lib/internal/template/test-utils/selectors/control-group/index.js.map +1 -0
- package/lib/internal/template/test-utils/selectors/index.d.ts +18 -0
- package/lib/internal/template/test-utils/selectors/index.js +17 -3
- package/lib/internal/template/test-utils/selectors/index.js.map +1 -1
- package/lib/internal/template/textarea/index.d.ts.map +1 -1
- package/lib/internal/template/textarea/index.js +2 -1
- package/lib/internal/template/textarea/index.js.map +1 -1
- package/lib/internal/template/textarea/styles.css.js +9 -9
- package/lib/internal/template/textarea/styles.scoped.css +51 -29
- package/lib/internal/template/textarea/styles.selectors.js +9 -9
- package/lib/internal/template/toggle/internal.d.ts +0 -2
- package/lib/internal/template/toggle/internal.d.ts.map +1 -1
- package/lib/internal/template/toggle/internal.js +1 -1
- package/lib/internal/template/toggle/internal.js.map +1 -1
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +38 -50
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/lib/internal/template/token/interfaces.d.ts +9 -6
- package/lib/internal/template/token/interfaces.d.ts.map +1 -1
- package/lib/internal/template/token/interfaces.js.map +1 -1
- package/lib/internal/template/token/internal.d.ts.map +1 -1
- package/lib/internal/template/token/internal.js +22 -17
- package/lib/internal/template/token/internal.js.map +1 -1
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +28 -27
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/package.json +1 -1
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts +0 -10
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts.map +0 -1
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.js +0 -15
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.js.map +0 -1
- package/lib/internal/template/internal/components/control-group/index.d.ts +0 -4
- package/lib/internal/template/internal/components/control-group/index.d.ts.map +0 -1
- package/lib/internal/template/internal/components/control-group/index.js.map +0 -1
- package/lib/internal/template/internal/components/control-group/interfaces.d.ts.map +0 -1
- package/lib/internal/template/internal/components/control-group/interfaces.js.map +0 -1
- package/lib/internal/template/internal/components/control-group/styles.css.js +0 -25
- package/lib/internal/template/internal/components/control-group/styles.selectors.js +0 -26
- package/lib/internal/template/internal/components/control-group/test-classes/styles.css.js +0 -9
- package/lib/internal/template/internal/components/control-group/test-classes/styles.selectors.js +0 -10
- package/lib/internal/template/select/parts/common.d.ts.map +0 -1
- package/lib/internal/template/select/parts/common.js.map +0 -1
- package/lib/internal/template/select/parts/option-group.d.ts.map +0 -1
- package/lib/internal/template/select/parts/option-group.js.map +0 -1
- package/lib/internal/template/select/utils/check-option-value-field.d.ts.map +0 -1
- package/lib/internal/template/select/utils/check-option-value-field.js.map +0 -1
- package/lib/internal/template/select/utils/connect-options.d.ts.map +0 -1
- package/lib/internal/template/select/utils/connect-options.js.map +0 -1
- package/lib/internal/template/select/utils/get-item-props.d.ts.map +0 -1
- package/lib/internal/template/select/utils/get-item-props.js.map +0 -1
- package/lib/internal/template/select/utils/render-options.d.ts.map +0 -1
- package/lib/internal/template/select/utils/render-options.js.map +0 -1
- package/lib/internal/template/select/utils/scroll-to-index.d.ts.map +0 -1
- package/lib/internal/template/select/utils/scroll-to-index.js.map +0 -1
- package/lib/internal/template/select/utils/use-announcement.d.ts.map +0 -1
- package/lib/internal/template/select/utils/use-announcement.js.map +0 -1
- package/lib/internal/template/test-utils/dom/internal/control-group.js.map +0 -1
- package/lib/internal/template/test-utils/selectors/internal/control-group.js.map +0 -1
- /package/lib/internal/scss/{internal/components/control-group → control-group}/test-classes/styles.scss +0 -0
- /package/lib/internal/template/{internal/components/control-group → control-group}/interfaces.js +0 -0
- /package/lib/internal/template/{select → internal/components/listbox}/parts/common.d.ts +0 -0
- /package/lib/internal/template/{select → internal/components/listbox}/parts/common.js +0 -0
- /package/lib/internal/template/{select → internal/components/listbox}/parts/option-group.d.ts +0 -0
- /package/lib/internal/template/{select/utils → internal/components/listbox/parts}/scroll-to-index.d.ts +0 -0
- /package/lib/internal/template/{select/utils → internal/components/listbox/parts}/scroll-to-index.js +0 -0
- /package/lib/internal/template/{select → internal/components/listbox}/utils/check-option-value-field.d.ts +0 -0
- /package/lib/internal/template/{select → internal/components/listbox}/utils/connect-options.js +0 -0
- /package/lib/internal/template/test-utils/dom/{internal/control-group.d.ts → control-group/index.d.ts} +0 -0
- /package/lib/internal/template/test-utils/selectors/{internal/control-group.d.ts → control-group/index.d.ts} +0 -0
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"segment": "
|
|
5
|
-
"full-width": "awsui_full-
|
|
6
|
-
"refresh": "
|
|
7
|
-
"disabled": "
|
|
8
|
-
"selected": "
|
|
9
|
-
"icon": "
|
|
10
|
-
"with-text": "awsui_with-
|
|
11
|
-
"with-no-text": "awsui_with-no-
|
|
12
|
-
"root": "
|
|
13
|
-
"segment-part": "awsui_segment-
|
|
14
|
-
"grouped": "
|
|
15
|
-
"grouped-only": "awsui_grouped-
|
|
16
|
-
"grouped-vertical": "awsui_grouped-
|
|
17
|
-
"grouped-horizontal-first": "awsui_grouped-horizontal-
|
|
18
|
-
"grouped-horizontal-middle": "awsui_grouped-horizontal-
|
|
19
|
-
"grouped-horizontal-last": "awsui_grouped-horizontal-
|
|
20
|
-
"grouped-vertical-first": "awsui_grouped-vertical-
|
|
21
|
-
"grouped-vertical-middle": "awsui_grouped-vertical-
|
|
22
|
-
"grouped-vertical-last": "awsui_grouped-vertical-
|
|
23
|
-
"grouped-with-action": "awsui_grouped-with-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"segment-count-
|
|
30
|
-
"
|
|
4
|
+
"segment": "awsui_segment_8cbea_kkspv_17",
|
|
5
|
+
"full-width": "awsui_full-width_8cbea_kkspv_44",
|
|
6
|
+
"refresh": "awsui_refresh_8cbea_kkspv_47",
|
|
7
|
+
"disabled": "awsui_disabled_8cbea_kkspv_53",
|
|
8
|
+
"selected": "awsui_selected_8cbea_kkspv_110",
|
|
9
|
+
"icon": "awsui_icon_8cbea_kkspv_122",
|
|
10
|
+
"with-text": "awsui_with-text_8cbea_kkspv_126",
|
|
11
|
+
"with-no-text": "awsui_with-no-text_8cbea_kkspv_132",
|
|
12
|
+
"root": "awsui_root_8cbea_kkspv_137",
|
|
13
|
+
"segment-part": "awsui_segment-part_8cbea_kkspv_169",
|
|
14
|
+
"grouped": "awsui_grouped_8cbea_kkspv_190",
|
|
15
|
+
"grouped-only": "awsui_grouped-only_8cbea_kkspv_190",
|
|
16
|
+
"grouped-vertical": "awsui_grouped-vertical_8cbea_kkspv_194",
|
|
17
|
+
"grouped-horizontal-first": "awsui_grouped-horizontal-first_8cbea_kkspv_206",
|
|
18
|
+
"grouped-horizontal-middle": "awsui_grouped-horizontal-middle_8cbea_kkspv_210",
|
|
19
|
+
"grouped-horizontal-last": "awsui_grouped-horizontal-last_8cbea_kkspv_216",
|
|
20
|
+
"grouped-vertical-first": "awsui_grouped-vertical-first_8cbea_kkspv_220",
|
|
21
|
+
"grouped-vertical-middle": "awsui_grouped-vertical-middle_8cbea_kkspv_224",
|
|
22
|
+
"grouped-vertical-last": "awsui_grouped-vertical-last_8cbea_kkspv_230",
|
|
23
|
+
"grouped-with-action": "awsui_grouped-with-action_8cbea_kkspv_234",
|
|
24
|
+
"grouped-with-error": "awsui_grouped-with-error_8cbea_kkspv_238",
|
|
25
|
+
"grouped-horizontal-only": "awsui_grouped-horizontal-only_8cbea_kkspv_266",
|
|
26
|
+
"grouped-vertical-only": "awsui_grouped-vertical-only_8cbea_kkspv_266",
|
|
27
|
+
"grouped-with-warning": "awsui_grouped-with-warning_8cbea_kkspv_272",
|
|
28
|
+
"select": "awsui_select_8cbea_kkspv_110",
|
|
29
|
+
"segment-count-2": "awsui_segment-count-2_8cbea_kkspv_336",
|
|
30
|
+
"segment-count-3": "awsui_segment-count-3_8cbea_kkspv_343",
|
|
31
|
+
"segment-count-4": "awsui_segment-count-4_8cbea_kkspv_350",
|
|
32
|
+
"segment-count-5": "awsui_segment-count-5_8cbea_kkspv_357",
|
|
33
|
+
"segment-count-6": "awsui_segment-count-6_8cbea_kkspv_364",
|
|
34
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_kkspv_371"
|
|
31
35
|
};
|
|
32
36
|
|
|
@@ -14,7 +14,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
14
14
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
15
15
|
SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
*/
|
|
17
|
-
.
|
|
17
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9) {
|
|
18
18
|
font-size: var(--font-size-body-m-tq5a14, 14px);
|
|
19
19
|
line-height: var(--line-height-body-m-5xw6xo, 22px);
|
|
20
20
|
word-wrap: break-word;
|
|
@@ -41,27 +41,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
41
41
|
border-block: none;
|
|
42
42
|
--awsui-style-focus-ring-box-shadow-ka4djm: 0 0 0 var(--awsui-style-focus-ring-border-width-ka4djm, 2px) var(--awsui-style-focus-ring-border-color-ka4djm, var(--color-border-item-focused-sewkzn, #0073bb));
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.awsui_segment_8cbea_kkspv_17.awsui_full-width_8cbea_kkspv_44:not(#\9) {
|
|
45
45
|
justify-content: center;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):not(.awsui_refresh_8cbea_kkspv_47) {
|
|
48
48
|
block-size: calc(100% - var(--space-static-xxs-vzto3j, 4px) - 2 * var(--border-width-field-2365x3, 1px));
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):focus {
|
|
51
51
|
outline: none;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.awsui_segment_8cbea_kkspv_17.awsui_disabled_8cbea_kkspv_53:not(#\9) {
|
|
54
54
|
background: var(--awsui-style-background-disabled-ka4djm, var(--color-background-segment-disabled-mjubn7, #ffffff));
|
|
55
55
|
color: var(--awsui-style-color-disabled-ka4djm, var(--color-text-interactive-disabled-tuxgxq, #aab7b8));
|
|
56
56
|
}
|
|
57
|
-
body[data-awsui-focus-visible=true] .
|
|
57
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_kkspv_17:not(#\9):focus {
|
|
58
58
|
position: relative;
|
|
59
59
|
}
|
|
60
|
-
body[data-awsui-focus-visible=true] .
|
|
60
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_kkspv_17:not(#\9):focus {
|
|
61
61
|
outline: 2px dotted transparent;
|
|
62
62
|
outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-sz9jgo, 3px) - 1px);
|
|
63
63
|
}
|
|
64
|
-
body[data-awsui-focus-visible=true] .
|
|
64
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_kkspv_17:not(#\9):focus::before {
|
|
65
65
|
content: " ";
|
|
66
66
|
display: block;
|
|
67
67
|
position: absolute;
|
|
@@ -76,7 +76,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus
|
|
|
76
76
|
box-shadow: var(--awsui-style-focus-ring-box-shadow-ka4djm);
|
|
77
77
|
z-index: 1;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):not(:last-child)::after {
|
|
80
80
|
content: "";
|
|
81
81
|
position: absolute;
|
|
82
82
|
inset-inline-end: calc(-1 * (var(--space-static-xxs-vzto3j, 4px) + 1px));
|
|
@@ -86,54 +86,55 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus
|
|
|
86
86
|
background: var(--color-border-segment-divider-mq01bu, #687078);
|
|
87
87
|
z-index: 1;
|
|
88
88
|
}
|
|
89
|
-
.
|
|
89
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):not(.awsui_refresh_8cbea_kkspv_47):not(:last-child)::after {
|
|
90
90
|
inset-inline-end: calc(-1 * var(--space-static-xxs-vzto3j, 4px));
|
|
91
91
|
}
|
|
92
|
-
.
|
|
92
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):nth-child(1) {
|
|
93
93
|
grid-column: 1;
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):nth-child(2) {
|
|
96
96
|
grid-column: 2;
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):nth-child(3) {
|
|
99
99
|
grid-column: 3;
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):nth-child(4) {
|
|
102
102
|
grid-column: 4;
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):nth-child(5) {
|
|
105
105
|
grid-column: 5;
|
|
106
106
|
}
|
|
107
|
-
.
|
|
107
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):nth-child(6) {
|
|
108
108
|
grid-column: 6;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
.awsui_segment_8cbea_kkspv_17.awsui_selected_8cbea_kkspv_110:not(#\9) {
|
|
111
111
|
background: var(--awsui-style-background-active-ka4djm, var(--color-background-segment-active-ns5rt6, #0073bb));
|
|
112
112
|
color: var(--awsui-style-color-active-ka4djm, var(--color-text-segment-active-hbbf1h, #ffffff));
|
|
113
|
-
box-shadow: inset 0 0 0 var(--awsui-internal-style-segment-
|
|
113
|
+
box-shadow: inset 0 0 0 var(--awsui-internal-style-segment-border-width, 0) var(--color-border-segment-active-y8x5lr, #16191f);
|
|
114
114
|
}
|
|
115
|
-
.
|
|
115
|
+
.awsui_segment_8cbea_kkspv_17:not(#\9):hover:not(.awsui_selected_8cbea_kkspv_110):not(.awsui_disabled_8cbea_kkspv_53):not(:focus) {
|
|
116
116
|
background: var(--awsui-style-background-hover-ka4djm, var(--color-background-segment-hover-el4hte, #fafafa));
|
|
117
117
|
color: var(--awsui-style-color-hover-ka4djm, var(--color-text-segment-hover-qq2b2e, #16191f));
|
|
118
|
+
box-shadow: inset 0 0 0 var(--awsui-internal-style-segment-border-width, 0) var(--color-border-segment-hover-3wvhit, #16191f);
|
|
118
119
|
cursor: pointer;
|
|
119
120
|
}
|
|
120
121
|
|
|
121
|
-
.
|
|
122
|
+
.awsui_icon_8cbea_kkspv_122:not(#\9) {
|
|
122
123
|
/* used in test-utils */
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
.awsui_with-
|
|
126
|
+
.awsui_with-text_8cbea_kkspv_126:not(#\9) {
|
|
126
127
|
position: relative;
|
|
127
128
|
inset-inline-start: calc(-1 * var(--space-xxs-3o1yoq, 4px));
|
|
128
129
|
margin-inline-end: var(--space-xxs-3o1yoq, 4px);
|
|
129
130
|
}
|
|
130
131
|
|
|
131
|
-
.awsui_with-no-
|
|
132
|
+
.awsui_with-no-text_8cbea_kkspv_132:not(#\9) {
|
|
132
133
|
margin-inline: auto;
|
|
133
134
|
inset-inline: 0;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
.
|
|
137
|
+
.awsui_root_8cbea_kkspv_137:not(#\9) {
|
|
137
138
|
border-collapse: separate;
|
|
138
139
|
border-spacing: 0;
|
|
139
140
|
box-sizing: border-box;
|
|
@@ -165,7 +166,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus
|
|
|
165
166
|
-moz-osx-font-smoothing: auto;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
|
-
.awsui_segment-
|
|
169
|
+
.awsui_segment-part_8cbea_kkspv_169:not(#\9) {
|
|
169
170
|
display: inline-grid;
|
|
170
171
|
border-inline: solid var(--border-width-field-2365x3, 1px) var(--color-border-segment-wrapper-ofstpm, #687078);
|
|
171
172
|
border-block: solid var(--border-width-field-2365x3, 1px) var(--color-border-segment-wrapper-ofstpm, #687078);
|
|
@@ -180,107 +181,193 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus
|
|
|
180
181
|
padding-inline: calc(var(--space-static-xxs-vzto3j, 4px) - var(--border-width-field-2365x3, 1px));
|
|
181
182
|
gap: calc(var(--space-static-xxs-vzto3j, 4px) * 2 + 1px);
|
|
182
183
|
}
|
|
183
|
-
.awsui_segment-
|
|
184
|
+
.awsui_segment-part_8cbea_kkspv_169:not(#\9):not(.awsui_refresh_8cbea_kkspv_47) {
|
|
184
185
|
padding-inline: calc(var(--space-static-xxxs-opeihl, 2px) + var(--border-width-field-2365x3, 1px));
|
|
185
186
|
padding-block: 0;
|
|
186
187
|
gap: calc(var(--space-static-xxs-vzto3j, 4px) * 2 - 1px);
|
|
187
188
|
}
|
|
188
189
|
@media (max-width: 688px) {
|
|
189
|
-
.awsui_segment-
|
|
190
|
+
.awsui_segment-part_8cbea_kkspv_169:not(#\9):not(.awsui_grouped_8cbea_kkspv_190), .awsui_segment-part_8cbea_kkspv_169.awsui_grouped-only_8cbea_kkspv_190:not(#\9) {
|
|
190
191
|
display: none;
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
|
-
.awsui_segment-
|
|
194
|
+
.awsui_segment-part_8cbea_kkspv_169.awsui_grouped_8cbea_kkspv_190.awsui_grouped-vertical_8cbea_kkspv_194:not(#\9) {
|
|
194
195
|
inline-size: 100%;
|
|
195
196
|
box-sizing: border-box;
|
|
196
197
|
}
|
|
197
198
|
|
|
198
|
-
.
|
|
199
|
+
.awsui_grouped_8cbea_kkspv_190:not(#\9) {
|
|
199
200
|
border-start-start-radius: var(--border-radius-input-k1q34z, 2px);
|
|
200
201
|
border-start-end-radius: var(--border-radius-input-k1q34z, 2px);
|
|
201
202
|
border-end-start-radius: var(--border-radius-input-k1q34z, 2px);
|
|
202
203
|
border-end-end-radius: var(--border-radius-input-k1q34z, 2px);
|
|
204
|
+
border-color: var(--color-border-control-group-default-of49c9, #879596);
|
|
203
205
|
}
|
|
204
|
-
.awsui_grouped-horizontal-
|
|
206
|
+
.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9) {
|
|
205
207
|
border-start-end-radius: 0;
|
|
206
208
|
border-end-end-radius: 0;
|
|
207
209
|
}
|
|
208
|
-
.awsui_grouped-horizontal-
|
|
210
|
+
.awsui_grouped-horizontal-middle_8cbea_kkspv_210:not(#\9) {
|
|
209
211
|
border-start-start-radius: 0;
|
|
210
212
|
border-start-end-radius: 0;
|
|
211
213
|
border-end-start-radius: 0;
|
|
212
214
|
border-end-end-radius: 0;
|
|
213
215
|
}
|
|
214
|
-
.awsui_grouped-horizontal-
|
|
216
|
+
.awsui_grouped-horizontal-last_8cbea_kkspv_216:not(#\9) {
|
|
215
217
|
border-start-start-radius: 0;
|
|
216
218
|
border-end-start-radius: 0;
|
|
217
219
|
}
|
|
218
|
-
.awsui_grouped-vertical-
|
|
220
|
+
.awsui_grouped-vertical-first_8cbea_kkspv_220:not(#\9) {
|
|
219
221
|
border-end-start-radius: 0;
|
|
220
222
|
border-end-end-radius: 0;
|
|
221
223
|
}
|
|
222
|
-
.awsui_grouped-vertical-
|
|
224
|
+
.awsui_grouped-vertical-middle_8cbea_kkspv_224:not(#\9) {
|
|
223
225
|
border-start-start-radius: 0;
|
|
224
226
|
border-start-end-radius: 0;
|
|
225
227
|
border-end-start-radius: 0;
|
|
226
228
|
border-end-end-radius: 0;
|
|
227
229
|
}
|
|
228
|
-
.awsui_grouped-vertical-
|
|
230
|
+
.awsui_grouped-vertical-last_8cbea_kkspv_230:not(#\9) {
|
|
229
231
|
border-start-start-radius: 0;
|
|
230
232
|
border-start-end-radius: 0;
|
|
231
233
|
}
|
|
232
|
-
.awsui_grouped-with-
|
|
234
|
+
.awsui_grouped-with-action_8cbea_kkspv_234:not(#\9) {
|
|
233
235
|
border-start-end-radius: 0;
|
|
234
236
|
border-end-end-radius: 0;
|
|
235
237
|
}
|
|
236
|
-
.
|
|
238
|
+
.awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9):hover, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9):focus {
|
|
239
|
+
border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
240
|
+
border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
241
|
+
border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
242
|
+
}
|
|
243
|
+
.awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-middle_8cbea_kkspv_210:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-middle_8cbea_kkspv_210:not(#\9):hover, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-middle_8cbea_kkspv_210:not(#\9):focus {
|
|
244
|
+
border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
245
|
+
border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
246
|
+
}
|
|
247
|
+
.awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-last_8cbea_kkspv_216:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-last_8cbea_kkspv_216:not(#\9):hover, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-last_8cbea_kkspv_216:not(#\9):focus {
|
|
248
|
+
border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
249
|
+
border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
250
|
+
border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
251
|
+
}
|
|
252
|
+
.awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-first_8cbea_kkspv_220:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-first_8cbea_kkspv_220:not(#\9):hover, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-first_8cbea_kkspv_220:not(#\9):focus {
|
|
253
|
+
border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
254
|
+
border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
255
|
+
border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
256
|
+
}
|
|
257
|
+
.awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-middle_8cbea_kkspv_224:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-middle_8cbea_kkspv_224:not(#\9):hover, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-middle_8cbea_kkspv_224:not(#\9):focus {
|
|
258
|
+
border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
259
|
+
border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
260
|
+
}
|
|
261
|
+
.awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-last_8cbea_kkspv_230:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-last_8cbea_kkspv_230:not(#\9):hover, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-last_8cbea_kkspv_230:not(#\9):focus {
|
|
262
|
+
border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
263
|
+
border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
264
|
+
border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
265
|
+
}
|
|
266
|
+
.awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-only_8cbea_kkspv_266:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-only_8cbea_kkspv_266:not(#\9):hover, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-only_8cbea_kkspv_266:not(#\9):focus, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-only_8cbea_kkspv_266:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-only_8cbea_kkspv_266:not(#\9):hover, .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical-only_8cbea_kkspv_266:not(#\9):focus {
|
|
267
|
+
border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
268
|
+
border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
269
|
+
border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
270
|
+
border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
|
|
271
|
+
}
|
|
272
|
+
.awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9):hover, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9):focus {
|
|
273
|
+
border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
274
|
+
border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
275
|
+
border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
276
|
+
}
|
|
277
|
+
.awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-middle_8cbea_kkspv_210:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-middle_8cbea_kkspv_210:not(#\9):hover, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-middle_8cbea_kkspv_210:not(#\9):focus {
|
|
278
|
+
border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
279
|
+
border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
280
|
+
}
|
|
281
|
+
.awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-last_8cbea_kkspv_216:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-last_8cbea_kkspv_216:not(#\9):hover, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-last_8cbea_kkspv_216:not(#\9):focus {
|
|
282
|
+
border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
283
|
+
border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
284
|
+
border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
285
|
+
}
|
|
286
|
+
.awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-first_8cbea_kkspv_220:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-first_8cbea_kkspv_220:not(#\9):hover, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-first_8cbea_kkspv_220:not(#\9):focus {
|
|
287
|
+
border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
288
|
+
border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
289
|
+
border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
290
|
+
}
|
|
291
|
+
.awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-middle_8cbea_kkspv_224:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-middle_8cbea_kkspv_224:not(#\9):hover, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-middle_8cbea_kkspv_224:not(#\9):focus {
|
|
292
|
+
border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
293
|
+
border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
294
|
+
}
|
|
295
|
+
.awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-last_8cbea_kkspv_230:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-last_8cbea_kkspv_230:not(#\9):hover, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-last_8cbea_kkspv_230:not(#\9):focus {
|
|
296
|
+
border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
297
|
+
border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
298
|
+
border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
299
|
+
}
|
|
300
|
+
.awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-only_8cbea_kkspv_266:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-only_8cbea_kkspv_266:not(#\9):hover, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-only_8cbea_kkspv_266:not(#\9):focus, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-only_8cbea_kkspv_266:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-only_8cbea_kkspv_266:not(#\9):hover, .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical-only_8cbea_kkspv_266:not(#\9):focus {
|
|
301
|
+
border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
302
|
+
border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
303
|
+
border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
304
|
+
border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
|
|
305
|
+
}
|
|
306
|
+
.awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-horizontal-only_8cbea_kkspv_266:not(#\9), .awsui_grouped-with-error_8cbea_kkspv_238.awsui_grouped-vertical_8cbea_kkspv_194:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-first_8cbea_kkspv_206:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-horizontal-only_8cbea_kkspv_266:not(#\9), .awsui_grouped-with-warning_8cbea_kkspv_272.awsui_grouped-vertical_8cbea_kkspv_194:not(#\9) {
|
|
307
|
+
padding-inline-start: calc(var(--border-width-field-status-inline-start-rhljdh, 4px) + calc(var(--space-field-horizontal-anki5k, 8px) - (var(--border-width-field-status-inline-start-rhljdh, 4px) - var(--border-width-field-2365x3, 1px))));
|
|
308
|
+
}
|
|
309
|
+
body[data-awsui-focus-visible=true] .awsui_grouped-with-error_8cbea_kkspv_238:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_grouped-with-warning_8cbea_kkspv_272:not(#\9):focus {
|
|
310
|
+
outline: 2px dotted transparent;
|
|
311
|
+
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-bl5nmx, 1px) var(--color-border-item-focused-sewkzn, #0073bb);
|
|
312
|
+
}
|
|
313
|
+
.awsui_grouped-with-error_8cbea_kkspv_238:not(#\9):focus-within, .awsui_grouped-with-warning_8cbea_kkspv_272:not(#\9):focus-within {
|
|
314
|
+
outline: 2px dotted transparent;
|
|
315
|
+
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-bl5nmx, 1px) var(--color-border-item-focused-sewkzn, #0073bb);
|
|
316
|
+
}
|
|
317
|
+
.awsui_grouped_8cbea_kkspv_190.awsui_grouped-horizontal-middle_8cbea_kkspv_210:not(#\9), .awsui_grouped_8cbea_kkspv_190.awsui_grouped-horizontal-last_8cbea_kkspv_216:not(#\9) {
|
|
237
318
|
border-inline-start: none;
|
|
238
319
|
}
|
|
320
|
+
.awsui_grouped-with-error_8cbea_kkspv_238:not(#\9):focus-within, .awsui_grouped-with-warning_8cbea_kkspv_272:not(#\9):focus-within {
|
|
321
|
+
box-shadow: none;
|
|
322
|
+
}
|
|
323
|
+
body[data-awsui-focus-visible=true] .awsui_grouped-with-error_8cbea_kkspv_238:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_grouped-with-warning_8cbea_kkspv_272:not(#\9):focus {
|
|
324
|
+
box-shadow: none;
|
|
325
|
+
}
|
|
239
326
|
|
|
240
|
-
.
|
|
327
|
+
.awsui_select_8cbea_kkspv_110:not(#\9) {
|
|
241
328
|
display: none;
|
|
242
329
|
}
|
|
243
330
|
@media (max-width: 688px) {
|
|
244
|
-
.
|
|
331
|
+
.awsui_select_8cbea_kkspv_110:not(#\9):not(.awsui_grouped_8cbea_kkspv_190), .awsui_select_8cbea_kkspv_110.awsui_grouped-only_8cbea_kkspv_190:not(#\9) {
|
|
245
332
|
display: block;
|
|
246
333
|
}
|
|
247
334
|
}
|
|
248
335
|
|
|
249
|
-
.awsui_segment-count-
|
|
336
|
+
.awsui_segment-count-2_8cbea_kkspv_336:not(#\9) {
|
|
250
337
|
grid-template-columns: repeat(2, auto);
|
|
251
338
|
}
|
|
252
|
-
.awsui_segment-count-
|
|
339
|
+
.awsui_segment-count-2_8cbea_kkspv_336.awsui_grouped_8cbea_kkspv_190.awsui_grouped-vertical_8cbea_kkspv_194:not(#\9) {
|
|
253
340
|
grid-template-columns: repeat(2, 1fr);
|
|
254
341
|
}
|
|
255
342
|
|
|
256
|
-
.awsui_segment-count-
|
|
343
|
+
.awsui_segment-count-3_8cbea_kkspv_343:not(#\9) {
|
|
257
344
|
grid-template-columns: repeat(3, auto);
|
|
258
345
|
}
|
|
259
|
-
.awsui_segment-count-
|
|
346
|
+
.awsui_segment-count-3_8cbea_kkspv_343.awsui_grouped_8cbea_kkspv_190.awsui_grouped-vertical_8cbea_kkspv_194:not(#\9) {
|
|
260
347
|
grid-template-columns: repeat(3, 1fr);
|
|
261
348
|
}
|
|
262
349
|
|
|
263
|
-
.awsui_segment-count-
|
|
350
|
+
.awsui_segment-count-4_8cbea_kkspv_350:not(#\9) {
|
|
264
351
|
grid-template-columns: repeat(4, auto);
|
|
265
352
|
}
|
|
266
|
-
.awsui_segment-count-
|
|
353
|
+
.awsui_segment-count-4_8cbea_kkspv_350.awsui_grouped_8cbea_kkspv_190.awsui_grouped-vertical_8cbea_kkspv_194:not(#\9) {
|
|
267
354
|
grid-template-columns: repeat(4, 1fr);
|
|
268
355
|
}
|
|
269
356
|
|
|
270
|
-
.awsui_segment-count-
|
|
357
|
+
.awsui_segment-count-5_8cbea_kkspv_357:not(#\9) {
|
|
271
358
|
grid-template-columns: repeat(5, auto);
|
|
272
359
|
}
|
|
273
|
-
.awsui_segment-count-
|
|
360
|
+
.awsui_segment-count-5_8cbea_kkspv_357.awsui_grouped_8cbea_kkspv_190.awsui_grouped-vertical_8cbea_kkspv_194:not(#\9) {
|
|
274
361
|
grid-template-columns: repeat(5, 1fr);
|
|
275
362
|
}
|
|
276
363
|
|
|
277
|
-
.awsui_segment-count-
|
|
364
|
+
.awsui_segment-count-6_8cbea_kkspv_364:not(#\9) {
|
|
278
365
|
grid-template-columns: repeat(6, auto);
|
|
279
366
|
}
|
|
280
|
-
.awsui_segment-count-
|
|
367
|
+
.awsui_segment-count-6_8cbea_kkspv_364.awsui_grouped_8cbea_kkspv_190.awsui_grouped-vertical_8cbea_kkspv_194:not(#\9) {
|
|
281
368
|
grid-template-columns: repeat(6, 1fr);
|
|
282
369
|
}
|
|
283
370
|
|
|
284
|
-
.awsui_disabled-reason-
|
|
371
|
+
.awsui_disabled-reason-tooltip_8cbea_kkspv_371:not(#\9) {
|
|
285
372
|
/* used in test-utils or tests */
|
|
286
373
|
}
|
|
@@ -2,32 +2,36 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"segment": "
|
|
6
|
-
"full-width": "awsui_full-
|
|
7
|
-
"refresh": "
|
|
8
|
-
"disabled": "
|
|
9
|
-
"selected": "
|
|
10
|
-
"icon": "
|
|
11
|
-
"with-text": "awsui_with-
|
|
12
|
-
"with-no-text": "awsui_with-no-
|
|
13
|
-
"root": "
|
|
14
|
-
"segment-part": "awsui_segment-
|
|
15
|
-
"grouped": "
|
|
16
|
-
"grouped-only": "awsui_grouped-
|
|
17
|
-
"grouped-vertical": "awsui_grouped-
|
|
18
|
-
"grouped-horizontal-first": "awsui_grouped-horizontal-
|
|
19
|
-
"grouped-horizontal-middle": "awsui_grouped-horizontal-
|
|
20
|
-
"grouped-horizontal-last": "awsui_grouped-horizontal-
|
|
21
|
-
"grouped-vertical-first": "awsui_grouped-vertical-
|
|
22
|
-
"grouped-vertical-middle": "awsui_grouped-vertical-
|
|
23
|
-
"grouped-vertical-last": "awsui_grouped-vertical-
|
|
24
|
-
"grouped-with-action": "awsui_grouped-with-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"segment-count-
|
|
31
|
-
"
|
|
5
|
+
"segment": "awsui_segment_8cbea_kkspv_17",
|
|
6
|
+
"full-width": "awsui_full-width_8cbea_kkspv_44",
|
|
7
|
+
"refresh": "awsui_refresh_8cbea_kkspv_47",
|
|
8
|
+
"disabled": "awsui_disabled_8cbea_kkspv_53",
|
|
9
|
+
"selected": "awsui_selected_8cbea_kkspv_110",
|
|
10
|
+
"icon": "awsui_icon_8cbea_kkspv_122",
|
|
11
|
+
"with-text": "awsui_with-text_8cbea_kkspv_126",
|
|
12
|
+
"with-no-text": "awsui_with-no-text_8cbea_kkspv_132",
|
|
13
|
+
"root": "awsui_root_8cbea_kkspv_137",
|
|
14
|
+
"segment-part": "awsui_segment-part_8cbea_kkspv_169",
|
|
15
|
+
"grouped": "awsui_grouped_8cbea_kkspv_190",
|
|
16
|
+
"grouped-only": "awsui_grouped-only_8cbea_kkspv_190",
|
|
17
|
+
"grouped-vertical": "awsui_grouped-vertical_8cbea_kkspv_194",
|
|
18
|
+
"grouped-horizontal-first": "awsui_grouped-horizontal-first_8cbea_kkspv_206",
|
|
19
|
+
"grouped-horizontal-middle": "awsui_grouped-horizontal-middle_8cbea_kkspv_210",
|
|
20
|
+
"grouped-horizontal-last": "awsui_grouped-horizontal-last_8cbea_kkspv_216",
|
|
21
|
+
"grouped-vertical-first": "awsui_grouped-vertical-first_8cbea_kkspv_220",
|
|
22
|
+
"grouped-vertical-middle": "awsui_grouped-vertical-middle_8cbea_kkspv_224",
|
|
23
|
+
"grouped-vertical-last": "awsui_grouped-vertical-last_8cbea_kkspv_230",
|
|
24
|
+
"grouped-with-action": "awsui_grouped-with-action_8cbea_kkspv_234",
|
|
25
|
+
"grouped-with-error": "awsui_grouped-with-error_8cbea_kkspv_238",
|
|
26
|
+
"grouped-horizontal-only": "awsui_grouped-horizontal-only_8cbea_kkspv_266",
|
|
27
|
+
"grouped-vertical-only": "awsui_grouped-vertical-only_8cbea_kkspv_266",
|
|
28
|
+
"grouped-with-warning": "awsui_grouped-with-warning_8cbea_kkspv_272",
|
|
29
|
+
"select": "awsui_select_8cbea_kkspv_110",
|
|
30
|
+
"segment-count-2": "awsui_segment-count-2_8cbea_kkspv_336",
|
|
31
|
+
"segment-count-3": "awsui_segment-count-3_8cbea_kkspv_343",
|
|
32
|
+
"segment-count-4": "awsui_segment-count-4_8cbea_kkspv_350",
|
|
33
|
+
"segment-count-5": "awsui_segment-count-5_8cbea_kkspv_357",
|
|
34
|
+
"segment-count-6": "awsui_segment-count-6_8cbea_kkspv_364",
|
|
35
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_kkspv_371"
|
|
32
36
|
};
|
|
33
37
|
|
|
@@ -162,6 +162,20 @@ export interface BaseSelectProps extends BaseDropdownHostProps, BaseComponentPro
|
|
|
162
162
|
* Adds `aria-describedby` to the dropdown's listbox/dialog content.
|
|
163
163
|
*/
|
|
164
164
|
dropdownAriaDescribedby?: string;
|
|
165
|
+
/**
|
|
166
|
+
* By default, the dropdown height is constrained to fit inside the height of its next scrollable container element.
|
|
167
|
+
* Enabling this property will allow the dropdown to extend beyond that container by using fixed positioning and
|
|
168
|
+
* [React Portals](https://reactjs.org/docs/portals.html).
|
|
169
|
+
*
|
|
170
|
+
* Set this property if the dropdown would otherwise be constrained by a scrollable container,
|
|
171
|
+
* for example inside table and split view layouts.
|
|
172
|
+
*
|
|
173
|
+
* We recommend you use discretion, and don't enable this property unless necessary
|
|
174
|
+
* because fixed positioning results in a slight, visible lag when scrolling complex pages.
|
|
175
|
+
*
|
|
176
|
+
* When the component is rendered in a control group, the dropdown will be rendered expanded to the viewport regardless of this property.
|
|
177
|
+
*/
|
|
178
|
+
expandToViewport?: boolean;
|
|
165
179
|
}
|
|
166
180
|
export interface SelectProps extends BaseSelectProps {
|
|
167
181
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/select/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC7G,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAEzF,MAAM,WAAW,eACf,SAAQ,qBAAqB,EAC3B,kBAAkB,EAClB,+BAA+B,EAC/B,mBAAmB;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiCI;IACJ,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE9B;;;;;;;;;;;;;;;;QAgBI;IACJ,aAAa,CAAC,EAAE,oBAAoB,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5E;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,yBAAyB,CAAC,EAAE,WAAW,CAAC,8BAA8B,CAAC;IACvE;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IAEpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,uBAAuB,CAAC;IAE3D;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,uBAAuB,CAAC;IAE3D;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC;IAExC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/select/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC7G,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAEzF,MAAM,WAAW,eACf,SAAQ,qBAAqB,EAC3B,kBAAkB,EAClB,+BAA+B,EAC/B,mBAAmB;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiCI;IACJ,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE9B;;;;;;;;;;;;;;;;QAgBI;IACJ,aAAa,CAAC,EAAE,oBAAoB,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5E;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,yBAAyB,CAAC,EAAE,WAAW,CAAC,8BAA8B,CAAC;IACvE;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IAEpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,uBAAuB,CAAC;IAE3D;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,uBAAuB,CAAC;IAE3D;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC;IAExC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;;;;;;;;;OAYG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IACrE;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC;IAC5C;;;OAGG;IACH,cAAc,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAE/D;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,wBAAwB,CAAC;CACrD;AAED,yBAAiB,WAAW,CAAC;IAC3B,KAAY,aAAa,GAAG,oBAAoB,CAAC;IACjD,KAAY,cAAc,GAAG,OAAO,GAAG,QAAQ,CAAC;IAEhD;;;OAGG;IACH,UAAiB,oBAAoB;QACnC,UAAU,EAAE,MAAM,CAAC;QAEnB,aAAa,EAAE,MAAM,IAAI,CAAC;KAC3B;IAED,KAAY,YAAY,GAAG,MAAM,GAAG,QAAQ,CAAC;IAE7C;;;OAGG;IACH,KAAY,uBAAuB,GAAG,CAAC,KAAK,EAAE,oBAAoB,KAAK,SAAS,GAAG,IAAI,CAAC;IAExF,KAAY,MAAM,GAAG,gBAAgB,CAAC;IACtC,KAAY,WAAW,GAAG,qBAAqB,CAAC;IAChD,KAAY,OAAO,GAAG,aAAa,CAAC,MAAM,GAAG,WAAW,CAAC,CAAC;IAE1D,UAAiB,gBAAgB;QAC/B,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,OAAO,CAAC;QACrB,QAAQ,EAAE,OAAO,CAAC;QAClB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;KACtC;IACD,UAAiB,qBAAqB;QACpC,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,WAAW,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;KACnB;IACD,UAAiB,uBAAuB;QACtC,IAAI,EAAE,SAAS,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB;IACD,KAAY,UAAU,GAAG,gBAAgB,GAAG,qBAAqB,GAAG,uBAAuB,CAAC;IAC5F,KAAY,wBAAwB,GAAG,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,GAAG,IAAI,CAAC;IAK9G,UAAiB,eAAgB,SAAQ,sBAAsB;KAAG;IAElE,UAAiB,YAAY;QAC3B,cAAc,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,8BAA8B;QAC7C,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;KAC/C;IAED,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/select/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport { BaseDropdownHostProps, OptionsFilteringType, OptionsLoadItemsDetail } from '../dropdown/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\nimport { DropdownStatusProps } from '../types/dropdown-status';\nimport { NonCancelableEventHandler } from '../types/events';\nimport { FormFieldValidationControlProps } from '../types/form-field';\nimport { OptionDefinition, OptionGroup as OptionGroupDefinition } from '../types/option';\n\nexport interface BaseSelectProps\n extends BaseDropdownHostProps,\n BaseComponentProps,\n FormFieldValidationControlProps,\n DropdownStatusProps {\n /**\n * Specifies an array of options that are displayed to the user as a dropdown list.\n * The options can be grouped using `OptionGroup` objects.\n *\n * #### Option\n * - `value` (string) - The returned value of the option when selected.\n *\n * #### OptionGroup\n * - `value` (string) - Used to locate option group in test utils.\n * - `options` (Option[]) - (Optional) The options under this group.\n *\n * #### Shared Option and OptionGroup properties\n * - `label` (string) - (Optional) Option or group text displayed to the user.\n * - `lang` (string) - (Optional) The language of the option or group, provided as a BCP 47 language tag.\n * - `description` (string) - (Optional) Further information about the option or group that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the option or group is disabled.\n * - `disabledReason` (ReactNode) - (Optional) Displays tooltip near the item when disabled. Use to provide additional context. Do not place interactive elements like links or buttons.\n * - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.\n * - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option or group.\n * - `filteringTags` [string[]] - (Optional) A list of additional tags used for automatic filtering.\n * - `iconName` (string) - (Optional) Specifies the name of an [icon](/components/icon/) to display in the option or group.\n * - `iconAriaLabel` (string) - (Optional) Specifies alternate text for the icon. We recommend that you provide this for accessibility.\n * - `iconAlt` (string) - (Optional) **Deprecated**, replaced by \\`iconAriaLabel\\`. Specifies alternate text for a custom icon, for use with `iconUrl`.\n * - `iconUrl` (string) - (Optional) URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * Note: Only one level of option nesting is supported.\n *\n * If you want to use the built-in filtering capabilities of this component, provide\n * a list of all valid options here and they will be automatically filtered based on the user's filtering input.\n *\n * Alternatively, you can listen to the `onChange` or `onLoadItems` event and set new options\n * on your own.\n **/\n options?: SelectProps.Options;\n\n /**\n * Determines how filtering is applied to the list of `options`:\n *\n * * `auto` - The component will automatically filter options based on user input.\n * * `manual` - You will set up `onChange` or `onLoadItems` event listeners and filter options on your side or request\n * them from server.\n *\n * By default the component will filter the provided `options` based on the value of the filtering input field.\n * Only options that have a `value`, `label`, `description` or `labelTag` that contains the input value as a substring\n * are displayed in the list of options.\n *\n * If you set this property to `manual`, this default filtering mechanism is disabled and all provided `options` are\n * displayed in the dropdown list. In that case make sure that you use the `onChange` or `onLoadItems` events in order\n * to set the `options` property to the options that are relevant for the user, given the filtering input value.\n *\n * Note: Manual filtering doesn't disable match highlighting.\n **/\n filteringType?: OptionsFilteringType;\n\n /**\n * Determines whether the whole select component is disabled.\n */\n disabled?: boolean;\n /**\n * Specifies the placeholder to display in the filtering input if filtering is enabled.\n */\n filteringPlaceholder?: string;\n\n /**\n * Specifies the text to display with the number of matches at the bottom of the dropdown menu while filtering.\n */\n filteringResultsText?: (matchesCount: number, totalCount: number) => string;\n /**\n * Adds an `aria-label` on the built-in filtering input if filtering is enabled.\n */\n filteringAriaLabel?: string;\n /**\n * Adds an `aria-label` to the clear button inside the search input.\n * @i18n\n */\n filteringClearAriaLabel?: string;\n /**\n * @deprecated Has no effect.\n */\n name?: string;\n /**\n * Specifies the hint text that's displayed in the field when no option has been selected.\n */\n placeholder?: string;\n /**\n * Specifies the ID for the trigger component. It uses an automatically generated ID by default.\n */\n controlId?: string;\n /**\n * Adds `aria-required` to the native input element.\n */\n ariaRequired?: boolean;\n /**\n * Adds `aria-label` to the select element.\n * Use this if you don't have a visible label for this control.\n */\n ariaLabel?: string;\n /**\n * Specifies the localized string that describes an option as being selected.\n * This is required to provide a good screen reader experience. For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n * @i18n\n */\n selectedAriaLabel?: string;\n /**\n * Overrides the element that is announced to screen readers\n * when the highlighted option changes. By default, this announces\n * the option's name and properties, and its selected state if\n * the `selectedAriaLabel` property is defined.\n * The highlighted option is provided, and its group (if groups\n * are used and it differs from the group of the previously highlighted option).\n *\n * For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n */\n renderHighlightedAriaLive?: SelectProps.ContainingOptionAndGroupString;\n /**\n * Displayed for `filteringType=\"auto\"` when there are no matches for the filtering.\n */\n noMatch?: React.ReactNode;\n /**\n * Called when input focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler;\n /**\n * Called when input focus is set onto the UI control.\n */\n onFocus?: NonCancelableEventHandler;\n\n /**\n * Specifies if the control is read-only, which prevents the\n * user from both modifying the value and opening the dropdown. A read-only control is still focusable.\n */\n readOnly?: boolean;\n\n /**\n * Renders content at the top of the dropdown, above the filter input (when filtering is enabled) and the\n * options list. Pinned (sticky) to the top and rendered in every state (empty, no-match, loading, error,\n * finished).\n */\n renderDropdownHeader?: SelectProps.DropdownContentRenderer;\n\n /**\n * Renders content at the bottom of the dropdown. The content is always sticky and never scrolls with the\n * options list. It is added below the built-in status region. Receives the current filtering state and a\n * callback to close the dropdown.\n */\n renderDropdownFooter?: SelectProps.DropdownContentRenderer;\n\n /**\n * Determines the ARIA role of the dropdown.\n *\n * - `auto` (default): the dropdown uses a listbox role, or a dialog role wrapping the listbox when built-in\n * filtering is enabled.\n * - `dialog`: the dropdown always uses a dialog role wrapping the listbox, even without built-in filtering. Use\n * this when you render interactive custom content and want assistive technologies to treat the dropdown as a dialog.\n */\n dropdownRole?: SelectProps.DropdownRole;\n\n /**\n * Adds `aria-describedby` to the dropdown's listbox/dialog content.\n */\n dropdownAriaDescribedby?: string;\n}\n\nexport interface SelectProps extends BaseSelectProps {\n /**\n * Adds a small label inline with the input for saving vertical space in the UI.\n * For use with collection select filters only.\n */\n inlineLabelText?: string;\n onLoadItems?: NonCancelableEventHandler<SelectProps.LoadItemsDetail>;\n /**\n * Adds `aria-labelledby` to the component. If you're using this component within a form field,\n * don't set this property because the form field component automatically sets it.\n *\n * Use this property if the component isn't using `inlineLabelText` and isn't surrounded by a form field, or you want to override the value\n * automatically set by the form field (for example, if you have two components within a single form field).\n *\n * To use it correctly, define an ID for the element you want to use as label and set the property to that ID.\n */\n ariaLabelledby?: string;\n /**\n * Defines the variant of the trigger. You can use a simple label or the entire option (`label | option`)\n */\n triggerVariant?: SelectProps.TriggerVariant;\n /**\n * Specifies the currently selected option.\n * If you want to clear the selection, use `null`.\n */\n selectedOption: SelectProps.Option | null;\n /**\n * Called when the user selects an option.\n * The event `detail` contains the current `selectedOption`.\n */\n onChange?: NonCancelableEventHandler<SelectProps.ChangeDetail>;\n\n /**\n * Automatically focuses the trigger when component is mounted.\n */\n autoFocus?: boolean;\n /**\n * Specifies a render function to render custom options in the dropdown menu or trigger.\n */\n renderOption?: SelectProps.SelectOptionItemRenderer;\n}\n\nexport namespace SelectProps {\n export type FilteringType = OptionsFilteringType;\n export type TriggerVariant = 'label' | 'option';\n\n /**\n * The argument passed to the dropdown render functions (`renderDropdownHeader`\n * and `renderDropdownFooter`).\n */\n export interface DropdownContentProps {\n filterText: string;\n\n closeDropdown: () => void;\n }\n\n export type DropdownRole = 'auto' | 'dialog';\n\n /**\n * A render function for custom dropdown content, used by `renderDropdownHeader` and `renderDropdownFooter`.\n * Receives the current filtering state and a callback to close the dropdown.\n */\n export type DropdownContentRenderer = (props: DropdownContentProps) => ReactNode | null;\n\n export type Option = OptionDefinition;\n export type OptionGroup = OptionGroupDefinition;\n export type Options = ReadonlyArray<Option | OptionGroup>;\n\n export interface SelectOptionItem {\n type: 'item';\n index: number;\n option: Option;\n highlighted: boolean;\n selected: boolean;\n disabled: boolean;\n parent: SelectOptionGroupItem | null;\n }\n export interface SelectOptionGroupItem {\n type: 'group';\n index: number;\n option: OptionGroup;\n disabled: boolean;\n }\n export interface SelectTriggerOptionItem {\n type: 'trigger';\n option: Option;\n }\n export type SelectItem = SelectOptionItem | SelectOptionGroupItem | SelectTriggerOptionItem;\n export type SelectOptionItemRenderer = (props: { item: SelectItem; filterText?: string }) => ReactNode | null;\n\n /* eslint-disable-next-line @typescript-eslint/no-empty-object-type --\n * Required to create a distinct named type for the documenter.\n **/\n export interface LoadItemsDetail extends OptionsLoadItemsDetail {}\n\n export interface ChangeDetail {\n selectedOption: Option;\n }\n\n export interface ContainingOptionAndGroupString {\n (option: Option, group?: OptionGroup): string;\n }\n\n export interface Ref {\n /**\n * Sets focus on the element without opening the dropdown or showing a visual focus indicator.\n */\n focus(): void;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/select/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport { BaseDropdownHostProps, OptionsFilteringType, OptionsLoadItemsDetail } from '../dropdown/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\nimport { DropdownStatusProps } from '../types/dropdown-status';\nimport { NonCancelableEventHandler } from '../types/events';\nimport { FormFieldValidationControlProps } from '../types/form-field';\nimport { OptionDefinition, OptionGroup as OptionGroupDefinition } from '../types/option';\n\nexport interface BaseSelectProps\n extends BaseDropdownHostProps,\n BaseComponentProps,\n FormFieldValidationControlProps,\n DropdownStatusProps {\n /**\n * Specifies an array of options that are displayed to the user as a dropdown list.\n * The options can be grouped using `OptionGroup` objects.\n *\n * #### Option\n * - `value` (string) - The returned value of the option when selected.\n *\n * #### OptionGroup\n * - `value` (string) - Used to locate option group in test utils.\n * - `options` (Option[]) - (Optional) The options under this group.\n *\n * #### Shared Option and OptionGroup properties\n * - `label` (string) - (Optional) Option or group text displayed to the user.\n * - `lang` (string) - (Optional) The language of the option or group, provided as a BCP 47 language tag.\n * - `description` (string) - (Optional) Further information about the option or group that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the option or group is disabled.\n * - `disabledReason` (ReactNode) - (Optional) Displays tooltip near the item when disabled. Use to provide additional context. Do not place interactive elements like links or buttons.\n * - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.\n * - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option or group.\n * - `filteringTags` [string[]] - (Optional) A list of additional tags used for automatic filtering.\n * - `iconName` (string) - (Optional) Specifies the name of an [icon](/components/icon/) to display in the option or group.\n * - `iconAriaLabel` (string) - (Optional) Specifies alternate text for the icon. We recommend that you provide this for accessibility.\n * - `iconAlt` (string) - (Optional) **Deprecated**, replaced by \\`iconAriaLabel\\`. Specifies alternate text for a custom icon, for use with `iconUrl`.\n * - `iconUrl` (string) - (Optional) URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * Note: Only one level of option nesting is supported.\n *\n * If you want to use the built-in filtering capabilities of this component, provide\n * a list of all valid options here and they will be automatically filtered based on the user's filtering input.\n *\n * Alternatively, you can listen to the `onChange` or `onLoadItems` event and set new options\n * on your own.\n **/\n options?: SelectProps.Options;\n\n /**\n * Determines how filtering is applied to the list of `options`:\n *\n * * `auto` - The component will automatically filter options based on user input.\n * * `manual` - You will set up `onChange` or `onLoadItems` event listeners and filter options on your side or request\n * them from server.\n *\n * By default the component will filter the provided `options` based on the value of the filtering input field.\n * Only options that have a `value`, `label`, `description` or `labelTag` that contains the input value as a substring\n * are displayed in the list of options.\n *\n * If you set this property to `manual`, this default filtering mechanism is disabled and all provided `options` are\n * displayed in the dropdown list. In that case make sure that you use the `onChange` or `onLoadItems` events in order\n * to set the `options` property to the options that are relevant for the user, given the filtering input value.\n *\n * Note: Manual filtering doesn't disable match highlighting.\n **/\n filteringType?: OptionsFilteringType;\n\n /**\n * Determines whether the whole select component is disabled.\n */\n disabled?: boolean;\n /**\n * Specifies the placeholder to display in the filtering input if filtering is enabled.\n */\n filteringPlaceholder?: string;\n\n /**\n * Specifies the text to display with the number of matches at the bottom of the dropdown menu while filtering.\n */\n filteringResultsText?: (matchesCount: number, totalCount: number) => string;\n /**\n * Adds an `aria-label` on the built-in filtering input if filtering is enabled.\n */\n filteringAriaLabel?: string;\n /**\n * Adds an `aria-label` to the clear button inside the search input.\n * @i18n\n */\n filteringClearAriaLabel?: string;\n /**\n * @deprecated Has no effect.\n */\n name?: string;\n /**\n * Specifies the hint text that's displayed in the field when no option has been selected.\n */\n placeholder?: string;\n /**\n * Specifies the ID for the trigger component. It uses an automatically generated ID by default.\n */\n controlId?: string;\n /**\n * Adds `aria-required` to the native input element.\n */\n ariaRequired?: boolean;\n /**\n * Adds `aria-label` to the select element.\n * Use this if you don't have a visible label for this control.\n */\n ariaLabel?: string;\n /**\n * Specifies the localized string that describes an option as being selected.\n * This is required to provide a good screen reader experience. For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n * @i18n\n */\n selectedAriaLabel?: string;\n /**\n * Overrides the element that is announced to screen readers\n * when the highlighted option changes. By default, this announces\n * the option's name and properties, and its selected state if\n * the `selectedAriaLabel` property is defined.\n * The highlighted option is provided, and its group (if groups\n * are used and it differs from the group of the previously highlighted option).\n *\n * For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n */\n renderHighlightedAriaLive?: SelectProps.ContainingOptionAndGroupString;\n /**\n * Displayed for `filteringType=\"auto\"` when there are no matches for the filtering.\n */\n noMatch?: React.ReactNode;\n /**\n * Called when input focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler;\n /**\n * Called when input focus is set onto the UI control.\n */\n onFocus?: NonCancelableEventHandler;\n\n /**\n * Specifies if the control is read-only, which prevents the\n * user from both modifying the value and opening the dropdown. A read-only control is still focusable.\n */\n readOnly?: boolean;\n\n /**\n * Renders content at the top of the dropdown, above the filter input (when filtering is enabled) and the\n * options list. Pinned (sticky) to the top and rendered in every state (empty, no-match, loading, error,\n * finished).\n */\n renderDropdownHeader?: SelectProps.DropdownContentRenderer;\n\n /**\n * Renders content at the bottom of the dropdown. The content is always sticky and never scrolls with the\n * options list. It is added below the built-in status region. Receives the current filtering state and a\n * callback to close the dropdown.\n */\n renderDropdownFooter?: SelectProps.DropdownContentRenderer;\n\n /**\n * Determines the ARIA role of the dropdown.\n *\n * - `auto` (default): the dropdown uses a listbox role, or a dialog role wrapping the listbox when built-in\n * filtering is enabled.\n * - `dialog`: the dropdown always uses a dialog role wrapping the listbox, even without built-in filtering. Use\n * this when you render interactive custom content and want assistive technologies to treat the dropdown as a dialog.\n */\n dropdownRole?: SelectProps.DropdownRole;\n\n /**\n * Adds `aria-describedby` to the dropdown's listbox/dialog content.\n */\n dropdownAriaDescribedby?: string;\n\n /**\n * By default, the dropdown height is constrained to fit inside the height of its next scrollable container element.\n * Enabling this property will allow the dropdown to extend beyond that container by using fixed positioning and\n * [React Portals](https://reactjs.org/docs/portals.html).\n *\n * Set this property if the dropdown would otherwise be constrained by a scrollable container,\n * for example inside table and split view layouts.\n *\n * We recommend you use discretion, and don't enable this property unless necessary\n * because fixed positioning results in a slight, visible lag when scrolling complex pages.\n *\n * When the component is rendered in a control group, the dropdown will be rendered expanded to the viewport regardless of this property.\n */\n expandToViewport?: boolean;\n}\n\nexport interface SelectProps extends BaseSelectProps {\n /**\n * Adds a small label inline with the input for saving vertical space in the UI.\n * For use with collection select filters only.\n */\n inlineLabelText?: string;\n onLoadItems?: NonCancelableEventHandler<SelectProps.LoadItemsDetail>;\n /**\n * Adds `aria-labelledby` to the component. If you're using this component within a form field,\n * don't set this property because the form field component automatically sets it.\n *\n * Use this property if the component isn't using `inlineLabelText` and isn't surrounded by a form field, or you want to override the value\n * automatically set by the form field (for example, if you have two components within a single form field).\n *\n * To use it correctly, define an ID for the element you want to use as label and set the property to that ID.\n */\n ariaLabelledby?: string;\n /**\n * Defines the variant of the trigger. You can use a simple label or the entire option (`label | option`)\n */\n triggerVariant?: SelectProps.TriggerVariant;\n /**\n * Specifies the currently selected option.\n * If you want to clear the selection, use `null`.\n */\n selectedOption: SelectProps.Option | null;\n /**\n * Called when the user selects an option.\n * The event `detail` contains the current `selectedOption`.\n */\n onChange?: NonCancelableEventHandler<SelectProps.ChangeDetail>;\n\n /**\n * Automatically focuses the trigger when component is mounted.\n */\n autoFocus?: boolean;\n /**\n * Specifies a render function to render custom options in the dropdown menu or trigger.\n */\n renderOption?: SelectProps.SelectOptionItemRenderer;\n}\n\nexport namespace SelectProps {\n export type FilteringType = OptionsFilteringType;\n export type TriggerVariant = 'label' | 'option';\n\n /**\n * The argument passed to the dropdown render functions (`renderDropdownHeader`\n * and `renderDropdownFooter`).\n */\n export interface DropdownContentProps {\n filterText: string;\n\n closeDropdown: () => void;\n }\n\n export type DropdownRole = 'auto' | 'dialog';\n\n /**\n * A render function for custom dropdown content, used by `renderDropdownHeader` and `renderDropdownFooter`.\n * Receives the current filtering state and a callback to close the dropdown.\n */\n export type DropdownContentRenderer = (props: DropdownContentProps) => ReactNode | null;\n\n export type Option = OptionDefinition;\n export type OptionGroup = OptionGroupDefinition;\n export type Options = ReadonlyArray<Option | OptionGroup>;\n\n export interface SelectOptionItem {\n type: 'item';\n index: number;\n option: Option;\n highlighted: boolean;\n selected: boolean;\n disabled: boolean;\n parent: SelectOptionGroupItem | null;\n }\n export interface SelectOptionGroupItem {\n type: 'group';\n index: number;\n option: OptionGroup;\n disabled: boolean;\n }\n export interface SelectTriggerOptionItem {\n type: 'trigger';\n option: Option;\n }\n export type SelectItem = SelectOptionItem | SelectOptionGroupItem | SelectTriggerOptionItem;\n export type SelectOptionItemRenderer = (props: { item: SelectItem; filterText?: string }) => ReactNode | null;\n\n /* eslint-disable-next-line @typescript-eslint/no-empty-object-type --\n * Required to create a distinct named type for the documenter.\n **/\n export interface LoadItemsDetail extends OptionsLoadItemsDetail {}\n\n export interface ChangeDetail {\n selectedOption: Option;\n }\n\n export interface ContainingOptionAndGroupString {\n (option: Option, group?: OptionGroup): string;\n }\n\n export interface Ref {\n /**\n * Sets focus on the element without opening the dropdown or showing a visual focus indicator.\n */\n focus(): void;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAmB3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAY3C,MAAM,WAAW,mBAAoB,SAAQ,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,0BAA0B;IAC3G,kBAAkB,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CACxC;AAED,QAAA,MAAM,cAAc,6FA8SnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|