@cloudscape-design/components 3.0.1412 → 3.0.1414
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/alert/styles.css.js +27 -27
- package/alert/styles.scoped.css +49 -49
- package/alert/styles.selectors.js +27 -27
- package/annotation-context/annotation/styles.css.js +13 -13
- package/annotation-context/annotation/styles.scoped.css +21 -21
- package/annotation-context/annotation/styles.selectors.js +13 -13
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
- package/app-layout/visual-refresh/mobile-toolbar.js +1 -1
- package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
- package/app-layout/visual-refresh/styles.css.js +86 -86
- package/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +28 -28
- package/attribute-editor/styles.selectors.js +15 -15
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +28 -28
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/button/styles.css.js +24 -24
- package/button/styles.scoped.css +328 -328
- package/button/styles.selectors.js +24 -24
- package/button-dropdown/item-element/styles.css.js +21 -21
- package/button-dropdown/item-element/styles.scoped.css +37 -37
- package/button-dropdown/item-element/styles.selectors.js +21 -21
- package/cards/styles.css.js +39 -39
- package/cards/styles.scoped.css +41 -41
- package/cards/styles.selectors.js +39 -39
- package/checkbox/internal.d.ts +1 -1
- package/checkbox/internal.d.ts.map +1 -1
- package/checkbox/internal.js.map +1 -1
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +10 -10
- package/checkbox/styles.selectors.js +3 -3
- package/container/styles.css.js +33 -33
- package/container/styles.scoped.css +106 -106
- package/container/styles.selectors.js +33 -33
- package/content-layout/interfaces.d.ts +4 -2
- package/content-layout/interfaces.d.ts.map +1 -1
- package/content-layout/interfaces.js.map +1 -1
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +27 -27
- package/content-layout/styles.selectors.js +14 -14
- package/control-group/styles.css.js +27 -27
- package/control-group/styles.scoped.css +28 -28
- package/control-group/styles.selectors.js +27 -27
- package/dropdown/styles.css.js +20 -20
- package/dropdown/styles.scoped.css +45 -45
- package/dropdown/styles.selectors.js +20 -20
- package/expandable-section/expandable-section-header.js +1 -1
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/file-token-group/styles.css.js +23 -23
- package/file-token-group/styles.scoped.css +36 -36
- package/file-token-group/styles.selectors.js +23 -23
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +182 -182
- package/flashbar/styles.selectors.js +50 -50
- package/header/interfaces.d.ts +4 -0
- package/header/interfaces.d.ts.map +1 -1
- package/header/interfaces.js.map +1 -1
- package/header/internal.d.ts +1 -6
- package/header/internal.d.ts.map +1 -1
- package/header/internal.js +2 -2
- package/header/internal.js.map +1 -1
- package/header/styles.css.js +36 -36
- package/header/styles.scoped.css +55 -55
- package/header/styles.selectors.js +36 -36
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +72 -72
- package/help-panel/styles.selectors.js +6 -6
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.json +1 -1
- package/i18n/messages/all.de.js +1 -1
- package/i18n/messages/all.de.json +1 -1
- package/i18n/messages/all.en-GB.js +1 -1
- package/i18n/messages/all.en-GB.json +1 -1
- package/i18n/messages/all.en.js +1 -1
- package/i18n/messages/all.en.json +1 -1
- package/i18n/messages/all.es.js +1 -1
- package/i18n/messages/all.es.json +1 -1
- package/i18n/messages/all.fr.js +1 -1
- package/i18n/messages/all.fr.json +1 -1
- package/i18n/messages/all.id.js +1 -1
- package/i18n/messages/all.id.json +1 -1
- package/i18n/messages/all.it.js +1 -1
- package/i18n/messages/all.it.json +1 -1
- package/i18n/messages/all.ja.js +1 -1
- package/i18n/messages/all.ja.json +1 -1
- package/i18n/messages/all.ko.js +1 -1
- package/i18n/messages/all.ko.json +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1
- package/i18n/messages/all.pt-BR.json +1 -1
- package/i18n/messages/all.tr.js +1 -1
- package/i18n/messages/all.tr.json +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1
- package/i18n/messages/all.zh-CN.json +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1
- package/i18n/messages/all.zh-TW.json +1 -1
- package/i18n/messages-types.d.ts +3 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/input/styles.css.js +45 -45
- package/input/styles.scoped.css +145 -145
- package/input/styles.selectors.js +45 -45
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/internal/components/focus-lock/utils.d.ts +2 -0
- package/internal/components/focus-lock/utils.d.ts.map +1 -1
- package/internal/components/focus-lock/utils.js +5 -1
- package/internal/components/focus-lock/utils.js.map +1 -1
- package/internal/components/listbox/parts/item.d.ts +2 -0
- package/internal/components/listbox/parts/item.d.ts.map +1 -1
- package/internal/components/listbox/parts/item.js +3 -3
- package/internal/components/listbox/parts/item.js.map +1 -1
- package/internal/components/listbox/parts/plain-list.d.ts +6 -0
- package/internal/components/listbox/parts/plain-list.d.ts.map +1 -1
- package/internal/components/listbox/parts/plain-list.js +5 -4
- package/internal/components/listbox/parts/plain-list.js.map +1 -1
- package/internal/components/listbox/parts/scroll-to-index.d.ts +11 -0
- package/internal/components/listbox/parts/scroll-to-index.d.ts.map +1 -1
- package/internal/components/listbox/parts/scroll-to-index.js +16 -0
- package/internal/components/listbox/parts/scroll-to-index.js.map +1 -1
- package/internal/components/listbox/use-listbox.d.ts +2 -2
- package/internal/components/listbox/use-listbox.d.ts.map +1 -1
- package/internal/components/listbox/use-listbox.js.map +1 -1
- package/internal/components/option/styles.css.js +19 -19
- package/internal/components/option/styles.scoped.css +36 -36
- package/internal/components/option/styles.selectors.js +19 -19
- package/internal/components/options-list/index.d.ts +4 -1
- package/internal/components/options-list/index.d.ts.map +1 -1
- package/internal/components/options-list/index.js +1 -1
- package/internal/components/options-list/index.js.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.d.ts +2 -1
- package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.js +4 -2
- package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
- package/internal/components/radio-button/styles.css.js +7 -7
- package/internal/components/radio-button/styles.scoped.css +17 -17
- package/internal/components/radio-button/styles.selectors.js +7 -7
- package/internal/components/selectable-item/index.d.ts +1 -0
- package/internal/components/selectable-item/index.d.ts.map +1 -1
- package/internal/components/selectable-item/index.js +2 -1
- package/internal/components/selectable-item/index.js.map +1 -1
- package/internal/components/selectable-item/interfaces.d.ts +1 -0
- package/internal/components/selectable-item/interfaces.d.ts.map +1 -1
- package/internal/components/selectable-item/interfaces.js.map +1 -1
- package/internal/components/selectable-item/styles.css.js +23 -22
- package/internal/components/selectable-item/styles.scoped.css +60 -57
- package/internal/components/selectable-item/styles.selectors.js +23 -22
- package/internal/components/sticky-header/use-untabbable-descendants.d.ts +2 -0
- package/internal/components/sticky-header/use-untabbable-descendants.d.ts.map +1 -0
- package/internal/components/sticky-header/use-untabbable-descendants.js +16 -0
- package/internal/components/sticky-header/use-untabbable-descendants.js.map +1 -0
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +25 -25
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/custom-css-properties/index.d.ts +1 -0
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +178 -177
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/item-card/styles.css.js +14 -14
- package/item-card/styles.scoped.css +73 -73
- package/item-card/styles.selectors.js +14 -14
- package/link/styles.css.js +21 -21
- package/link/styles.scoped.css +104 -104
- package/link/styles.selectors.js +21 -21
- package/manifest.json +2 -2
- package/modal/styles.css.js +32 -32
- package/modal/styles.scoped.css +49 -49
- package/modal/styles.selectors.js +32 -32
- package/multiselect/use-multiselect.d.ts +1 -1
- package/option-list/index.d.ts +5 -0
- package/option-list/index.d.ts.map +1 -0
- package/option-list/index.js +21 -0
- package/option-list/index.js.map +1 -0
- package/option-list/interfaces.d.ts +131 -0
- package/option-list/interfaces.d.ts.map +1 -0
- package/option-list/interfaces.js +2 -0
- package/option-list/interfaces.js.map +1 -0
- package/option-list/internal.d.ts +5 -0
- package/option-list/internal.d.ts.map +1 -0
- package/option-list/internal.js +138 -0
- package/option-list/internal.js.map +1 -0
- package/option-list/styles.css.js +6 -0
- package/option-list/styles.scoped.css +40 -0
- package/option-list/styles.selectors.js +7 -0
- package/option-list/test-classes/styles.css.js +8 -0
- package/option-list/test-classes/styles.scoped.css +9 -0
- package/option-list/test-classes/styles.selectors.js +9 -0
- package/option-list/use-option-list.d.ts +36 -0
- package/option-list/use-option-list.d.ts.map +1 -0
- package/option-list/use-option-list.js +69 -0
- package/option-list/use-option-list.js.map +1 -0
- package/package.json +4 -1
- package/popover/styles.css.js +58 -58
- package/popover/styles.scoped.css +94 -94
- package/popover/styles.selectors.js +58 -58
- package/progress-bar/styles.css.js +20 -20
- package/progress-bar/styles.scoped.css +59 -59
- package/progress-bar/styles.selectors.js +20 -20
- package/prompt-input/components/token-mode.d.ts +4 -0
- package/prompt-input/components/token-mode.d.ts.map +1 -1
- package/prompt-input/components/token-mode.js +2 -2
- package/prompt-input/components/token-mode.js.map +1 -1
- package/prompt-input/internal.d.ts +10 -1
- package/prompt-input/internal.d.ts.map +1 -1
- package/prompt-input/internal.js +35 -26
- package/prompt-input/internal.js.map +1 -1
- package/prompt-input/styles.css.js +26 -26
- package/prompt-input/styles.scoped.css +136 -107
- package/prompt-input/styles.selectors.js +26 -26
- package/prompt-input/tokens/use-token-mode.d.ts +4 -0
- package/prompt-input/tokens/use-token-mode.d.ts.map +1 -1
- package/prompt-input/tokens/use-token-mode.js +3 -3
- package/prompt-input/tokens/use-token-mode.js.map +1 -1
- package/property-filter/interfaces.d.ts +2 -0
- package/property-filter/interfaces.d.ts.map +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/token-editor-inputs.d.ts.map +1 -1
- package/property-filter/token-editor-inputs.js +3 -3
- package/property-filter/token-editor-inputs.js.map +1 -1
- package/segmented-control/styles.css.js +31 -31
- package/segmented-control/styles.scoped.css +81 -81
- package/segmented-control/styles.selectors.js +31 -31
- package/select/parts/styles.css.js +22 -22
- package/select/parts/styles.scoped.css +25 -25
- package/select/parts/styles.selectors.js +22 -22
- package/side-navigation/styles.css.js +65 -65
- package/side-navigation/styles.scoped.css +114 -114
- package/side-navigation/styles.selectors.js +65 -65
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +167 -167
- package/slider/styles.selectors.js +26 -26
- package/spinner/styles.css.js +14 -14
- package/spinner/styles.scoped.css +40 -40
- package/spinner/styles.selectors.js +14 -14
- package/styling/prompt-input.scss +76 -0
- package/styling/table.scss +102 -0
- package/styling/tabs.scss +128 -0
- package/table/body-cell/styles.css.js +47 -47
- package/table/body-cell/styles.scoped.css +426 -418
- package/table/body-cell/styles.selectors.js +47 -47
- package/table/body-cell/td-element.d.ts +1 -0
- package/table/body-cell/td-element.d.ts.map +1 -1
- package/table/body-cell/td-element.js +2 -2
- package/table/body-cell/td-element.js.map +1 -1
- package/table/clear-sort.d.ts +3 -1
- package/table/clear-sort.d.ts.map +1 -1
- package/table/clear-sort.js +2 -2
- package/table/clear-sort.js.map +1 -1
- package/table/header-cell/common-props.d.ts +2 -0
- package/table/header-cell/common-props.d.ts.map +1 -1
- package/table/header-cell/common-props.js.map +1 -1
- package/table/header-cell/group-header-cell.d.ts +2 -1
- package/table/header-cell/group-header-cell.d.ts.map +1 -1
- package/table/header-cell/group-header-cell.js +3 -2
- package/table/header-cell/group-header-cell.js.map +1 -1
- package/table/header-cell/index.d.ts +2 -1
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +12 -5
- package/table/header-cell/index.js.map +1 -1
- package/table/header-cell/sort-menu.d.ts +4 -1
- package/table/header-cell/sort-menu.d.ts.map +1 -1
- package/table/header-cell/sort-menu.js +2 -2
- package/table/header-cell/sort-menu.js.map +1 -1
- package/table/header-cell/styles.css.js +39 -39
- package/table/header-cell/styles.scoped.css +140 -125
- package/table/header-cell/styles.selectors.js +39 -39
- package/table/header-cell/th-element.d.ts +2 -0
- package/table/header-cell/th-element.d.ts.map +1 -1
- package/table/header-cell/th-element.js +2 -2
- package/table/header-cell/th-element.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +20 -7
- package/table/internal.js.map +1 -1
- package/table/resizer/index.d.ts.map +1 -1
- package/table/resizer/index.js +1 -1
- package/table/resizer/index.js.map +1 -1
- package/table/resizer/styles.css.js +17 -17
- package/table/resizer/styles.scoped.css +39 -35
- package/table/resizer/styles.selectors.js +17 -17
- package/table/selection/selection-cell.d.ts +5 -0
- package/table/selection/selection-cell.d.ts.map +1 -1
- package/table/selection/selection-cell.js +6 -5
- package/table/selection/selection-cell.js.map +1 -1
- package/table/selection/selection-control.d.ts +3 -0
- package/table/selection/selection-control.d.ts.map +1 -1
- package/table/selection/selection-control.js +2 -2
- package/table/selection/selection-control.js.map +1 -1
- package/table/style-api.d.ts +41 -0
- package/table/style-api.d.ts.map +1 -0
- package/table/style-api.js +4 -0
- package/table/style-api.js.map +1 -0
- package/table/styles.css.js +37 -37
- package/table/styles.scoped.css +119 -46
- package/table/styles.selectors.js +37 -37
- package/table/thead.d.ts +2 -0
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js +2 -1
- package/table/thead.js.map +1 -1
- package/table-root/index.js +1 -1
- package/table-root/index.js.map +1 -1
- package/table-root/interfaces.d.ts +15 -1
- package/table-root/interfaces.d.ts.map +1 -1
- package/table-root/interfaces.js.map +1 -1
- package/table-root/internal.d.ts +2 -0
- package/table-root/internal.d.ts.map +1 -1
- package/table-root/internal.js +23 -11
- package/table-root/internal.js.map +1 -1
- package/table-root/sticky-header-slot.d.ts +24 -0
- package/table-root/sticky-header-slot.d.ts.map +1 -0
- package/table-root/sticky-header-slot.js +13 -0
- package/table-root/sticky-header-slot.js.map +1 -0
- package/table-root/styles.css.js +10 -5
- package/table-root/styles.scoped.css +52 -7
- package/table-root/styles.selectors.js +10 -5
- package/table-root/use-sticky-header.d.ts +33 -0
- package/table-root/use-sticky-header.d.ts.map +1 -0
- package/table-root/use-sticky-header.js +141 -0
- package/table-root/use-sticky-header.js.map +1 -0
- package/tabs/index.d.ts.map +1 -1
- package/tabs/index.js +3 -2
- package/tabs/index.js.map +1 -1
- package/tabs/styles.css.js +30 -30
- package/tabs/styles.scoped.css +137 -81
- package/tabs/styles.selectors.js +30 -30
- package/tabs/tab-header-bar.d.ts +12 -1
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +14 -7
- package/tabs/tab-header-bar.js.map +1 -1
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +13 -13
- package/tag-editor/styles.selectors.js +3 -3
- package/test-utils/dom/header/index.d.ts +1 -0
- package/test-utils/dom/header/index.js +3 -0
- package/test-utils/dom/header/index.js.map +1 -1
- package/test-utils/dom/index.d.ts +28 -0
- package/test-utils/dom/index.js +21 -2
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/option-list/index.d.ts +69 -0
- package/test-utils/dom/option-list/index.js +132 -0
- package/test-utils/dom/option-list/index.js.map +1 -0
- package/test-utils/selectors/header/index.d.ts +1 -0
- package/test-utils/selectors/header/index.js +3 -0
- package/test-utils/selectors/header/index.js.map +1 -1
- package/test-utils/selectors/index.d.ts +18 -0
- package/test-utils/selectors/index.js +16 -2
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/option-list/index.d.ts +66 -0
- package/test-utils/selectors/option-list/index.js +108 -0
- package/test-utils/selectors/option-list/index.js.map +1 -0
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +66 -66
- package/text-content/styles.selectors.js +1 -1
- package/textarea/styles.css.js +9 -9
- package/textarea/styles.scoped.css +51 -51
- package/textarea/styles.selectors.js +9 -9
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +25 -25
- package/toggle/styles.selectors.js +10 -10
- package/token/styles.css.js +14 -14
- package/token/styles.scoped.css +57 -57
- package/token/styles.selectors.js +14 -14
package/modal/styles.scoped.css
CHANGED
|
@@ -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
|
-
@keyframes awsui_modal-slide-
|
|
17
|
+
@keyframes awsui_modal-slide-up_1d2i7_fo99r_1 {
|
|
18
18
|
0% {
|
|
19
19
|
transform: translate(0, 10px);
|
|
20
20
|
}
|
|
@@ -22,12 +22,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
22
22
|
transform: translate(0, 0);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
.
|
|
26
|
-
animation: awsui_modal-slide-
|
|
25
|
+
.awsui_dialog_1d2i7_fo99r_25:not(#\9) {
|
|
26
|
+
animation: awsui_modal-slide-up_1d2i7_fo99r_1 var(--motion-duration-slow-c82sxa, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1 var(--motion-duration-slow-c82sxa, 180ms) ease-out;
|
|
27
27
|
animation-delay: var(--motion-duration-fast-0xpm7h, 90ms);
|
|
28
28
|
animation-fill-mode: both;
|
|
29
29
|
}
|
|
30
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
30
|
+
@keyframes awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1 {
|
|
31
31
|
from {
|
|
32
32
|
opacity: 0;
|
|
33
33
|
}
|
|
@@ -36,22 +36,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
@media (prefers-reduced-motion: reduce) {
|
|
39
|
-
.
|
|
39
|
+
.awsui_dialog_1d2i7_fo99r_25:not(#\9) {
|
|
40
40
|
animation: none;
|
|
41
41
|
transition: none;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
.awsui-motion-disabled .
|
|
44
|
+
.awsui-motion-disabled .awsui_dialog_1d2i7_fo99r_25:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_fo99r_25:not(#\9) {
|
|
45
45
|
animation: none;
|
|
46
46
|
transition: none;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
49
|
-
animation: awsui_awsui-motion-scale-
|
|
48
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
|
|
49
|
+
animation: awsui_awsui-motion-scale-popup_1d2i7_fo99r_1, awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1;
|
|
50
50
|
animation-duration: var(--motion-duration-refresh-only-fast-hi50lq, 115ms);
|
|
51
51
|
animation-timing-function: var(--motion-easing-refresh-only-a-puvjff, cubic-bezier(0, 0, 0, 1));
|
|
52
52
|
animation-fill-mode: both;
|
|
53
53
|
}
|
|
54
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
54
|
+
@keyframes awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1 {
|
|
55
55
|
from {
|
|
56
56
|
opacity: 0;
|
|
57
57
|
}
|
|
@@ -59,7 +59,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
59
59
|
opacity: 1;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
@keyframes awsui_awsui-motion-scale-
|
|
62
|
+
@keyframes awsui_awsui-motion-scale-popup_1d2i7_fo99r_1 {
|
|
63
63
|
0% {
|
|
64
64
|
transform: scale(0.95);
|
|
65
65
|
}
|
|
@@ -68,21 +68,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
@media (prefers-reduced-motion: reduce) {
|
|
71
|
-
.
|
|
71
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
|
|
72
72
|
animation: none;
|
|
73
73
|
transition: none;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
.awsui-motion-disabled .
|
|
76
|
+
.awsui-motion-disabled .awsui_dialog_1d2i7_fo99r_25.awsui_refresh_1d2i7_fo99r_48:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_fo99r_25.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
|
|
77
77
|
animation: none;
|
|
78
78
|
transition: none;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.
|
|
82
|
-
animation: awsui_awsui-motion-fade-
|
|
81
|
+
.awsui_root_1d2i7_fo99r_81:not(#\9) {
|
|
82
|
+
animation: awsui_awsui-motion-fade-in_1d2i7_fo99r_1 var(--motion-duration-extra-slow-c5gw5h, 270ms) ease-out;
|
|
83
83
|
animation-fill-mode: both;
|
|
84
84
|
}
|
|
85
|
-
@keyframes awsui_awsui-motion-fade-
|
|
85
|
+
@keyframes awsui_awsui-motion-fade-in_1d2i7_fo99r_1 {
|
|
86
86
|
from {
|
|
87
87
|
opacity: 0.2;
|
|
88
88
|
}
|
|
@@ -91,30 +91,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
@media (prefers-reduced-motion: reduce) {
|
|
94
|
-
.
|
|
94
|
+
.awsui_root_1d2i7_fo99r_81:not(#\9) {
|
|
95
95
|
animation: none;
|
|
96
96
|
transition: none;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
.awsui-motion-disabled .
|
|
99
|
+
.awsui-motion-disabled .awsui_root_1d2i7_fo99r_81:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_fo99r_81:not(#\9) {
|
|
100
100
|
animation: none;
|
|
101
101
|
transition: none;
|
|
102
102
|
}
|
|
103
|
-
.
|
|
103
|
+
.awsui_root_1d2i7_fo99r_81.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
|
|
104
104
|
animation-duration: var(--motion-duration-refresh-only-fast-hi50lq, 115ms);
|
|
105
105
|
}
|
|
106
106
|
@media (prefers-reduced-motion: reduce) {
|
|
107
|
-
.
|
|
107
|
+
.awsui_root_1d2i7_fo99r_81.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
|
|
108
108
|
animation: none;
|
|
109
109
|
transition: none;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
.awsui-motion-disabled .
|
|
112
|
+
.awsui-motion-disabled .awsui_root_1d2i7_fo99r_81.awsui_refresh_1d2i7_fo99r_48:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_fo99r_81.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
|
|
113
113
|
animation: none;
|
|
114
114
|
transition: none;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
.
|
|
117
|
+
.awsui_root_1d2i7_fo99r_81:not(#\9) {
|
|
118
118
|
border-collapse: separate;
|
|
119
119
|
border-spacing: 0;
|
|
120
120
|
box-sizing: border-box;
|
|
@@ -155,14 +155,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
155
155
|
overflow: auto;
|
|
156
156
|
cursor: pointer;
|
|
157
157
|
}
|
|
158
|
-
.
|
|
158
|
+
.awsui_root_1d2i7_fo99r_81.awsui_hide-dismiss-button_1d2i7_fo99r_158:not(#\9) {
|
|
159
159
|
cursor: default;
|
|
160
160
|
}
|
|
161
|
-
.
|
|
161
|
+
.awsui_root_1d2i7_fo99r_81.awsui_hidden_1d2i7_fo99r_161:not(#\9) {
|
|
162
162
|
display: none;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.awsui_focus-
|
|
165
|
+
.awsui_focus-lock_1d2i7_fo99r_165:not(#\9) {
|
|
166
166
|
align-self: flex-start;
|
|
167
167
|
margin-inline: auto;
|
|
168
168
|
padding-block: var(--space-s-f4zmjb, 12px);
|
|
@@ -170,14 +170,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
170
170
|
z-index: 5000;
|
|
171
171
|
pointer-events: none;
|
|
172
172
|
}
|
|
173
|
-
.awsui_focus-
|
|
173
|
+
.awsui_focus-lock_1d2i7_fo99r_165.awsui_position-top_1d2i7_fo99r_173:not(#\9) {
|
|
174
174
|
margin-block-start: 0;
|
|
175
175
|
}
|
|
176
|
-
.awsui_focus-
|
|
176
|
+
.awsui_focus-lock_1d2i7_fo99r_165.awsui_position-center_1d2i7_fo99r_176:not(#\9) {
|
|
177
177
|
margin-block: auto;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
.
|
|
180
|
+
.awsui_dialog_1d2i7_fo99r_25:not(#\9) {
|
|
181
181
|
position: static;
|
|
182
182
|
inset-block-start: 0;
|
|
183
183
|
transform: translate(0, 0);
|
|
@@ -187,35 +187,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
187
187
|
z-index: 5000;
|
|
188
188
|
pointer-events: all;
|
|
189
189
|
}
|
|
190
|
-
.
|
|
190
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_small_1d2i7_fo99r_190:not(#\9) {
|
|
191
191
|
max-inline-size: 320px;
|
|
192
192
|
}
|
|
193
|
-
.
|
|
193
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_medium_1d2i7_fo99r_193:not(#\9) {
|
|
194
194
|
max-inline-size: 600px;
|
|
195
195
|
}
|
|
196
|
-
.
|
|
196
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_large_1d2i7_fo99r_196:not(#\9) {
|
|
197
197
|
max-inline-size: 820px;
|
|
198
198
|
}
|
|
199
|
-
.
|
|
199
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_x-large_1d2i7_fo99r_199:not(#\9) {
|
|
200
200
|
max-inline-size: 1024px;
|
|
201
201
|
}
|
|
202
|
-
.
|
|
202
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_xx-large_1d2i7_fo99r_202:not(#\9) {
|
|
203
203
|
max-inline-size: 1280px;
|
|
204
204
|
}
|
|
205
|
-
.
|
|
206
|
-
max-inline-size: var(--awsui-modal-custom-width-
|
|
205
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_custom-width_1d2i7_fo99r_205:not(#\9) {
|
|
206
|
+
max-inline-size: var(--awsui-modal-custom-width-6xj2gg);
|
|
207
207
|
}
|
|
208
|
-
.
|
|
208
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_max_1d2i7_fo99r_208.awsui_breakpoint-xs_1d2i7_fo99r_208:not(#\9) {
|
|
209
209
|
max-inline-size: calc(100vw - (8 * 10px + var(--space-xxxl-0rzsa3, 40px)));
|
|
210
210
|
margin-block: auto;
|
|
211
211
|
margin-inline: auto;
|
|
212
212
|
}
|
|
213
|
-
.
|
|
214
|
-
block-size: var(--awsui-modal-custom-height-
|
|
213
|
+
.awsui_dialog_1d2i7_fo99r_25.awsui_custom-height_1d2i7_fo99r_213:not(#\9) {
|
|
214
|
+
block-size: var(--awsui-modal-custom-height-6xj2gg);
|
|
215
215
|
max-block-size: calc(100vh - 2 * var(--space-s-f4zmjb, 12px));
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.
|
|
218
|
+
.awsui_container_1d2i7_fo99r_218:not(#\9) {
|
|
219
219
|
border-collapse: separate;
|
|
220
220
|
border-spacing: 0;
|
|
221
221
|
box-sizing: border-box;
|
|
@@ -255,27 +255,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
255
255
|
border-end-end-radius: var(--border-radius-container-cjce5i, 16px);
|
|
256
256
|
box-shadow: var(--shadow-modal-aotdcx, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
|
|
257
257
|
}
|
|
258
|
-
.
|
|
258
|
+
.awsui_container_1d2i7_fo99r_218.awsui_custom-height-container_1d2i7_fo99r_258:not(#\9) {
|
|
259
259
|
display: flex;
|
|
260
260
|
flex-direction: column;
|
|
261
261
|
block-size: 100%;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.
|
|
264
|
+
.awsui_content_1d2i7_fo99r_264:not(#\9) {
|
|
265
265
|
padding-block-start: var(--space-container-content-top-wtzf3r, 4px);
|
|
266
266
|
padding-block-end: var(--space-modal-content-bottom-3154al, 16px);
|
|
267
267
|
padding-inline: var(--space-modal-horizontal-q3dvhz, 20px);
|
|
268
268
|
}
|
|
269
|
-
.
|
|
269
|
+
.awsui_content_1d2i7_fo99r_264.awsui_no-paddings_1d2i7_fo99r_269:not(#\9) {
|
|
270
270
|
padding-block: 0;
|
|
271
271
|
padding-inline: 0;
|
|
272
272
|
}
|
|
273
|
-
.
|
|
273
|
+
.awsui_content_1d2i7_fo99r_264.awsui_custom-height-content_1d2i7_fo99r_273:not(#\9) {
|
|
274
274
|
flex-grow: 1;
|
|
275
275
|
overflow-y: auto;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
.
|
|
278
|
+
.awsui_header_1d2i7_fo99r_278:not(#\9) {
|
|
279
279
|
padding-block-start: var(--space-container-header-top-yolt6h, 12px);
|
|
280
280
|
padding-block-end: var(--space-container-header-bottom-r88nbd, 8px);
|
|
281
281
|
padding-inline: var(--space-modal-horizontal-q3dvhz, 20px);
|
|
@@ -287,11 +287,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
287
287
|
border-end-end-radius: 0;
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
.awsui_header--
|
|
290
|
+
.awsui_header--text_1d2i7_fo99r_290:not(#\9) {
|
|
291
291
|
/* used in test-utils */
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
.
|
|
294
|
+
.awsui_footer_1d2i7_fo99r_294:not(#\9) {
|
|
295
295
|
border-block-start: var(--border-divider-section-width-ljhehl, 1px) solid var(--color-border-divider-default-8vuq97, #c6c6cd);
|
|
296
296
|
padding-block: var(--space-scaled-s-srzhhj, 12px);
|
|
297
297
|
padding-inline: var(--space-container-horizontal-lzv1u4, 20px);
|
|
@@ -300,23 +300,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
300
300
|
inset-block-end: 0;
|
|
301
301
|
z-index: 800;
|
|
302
302
|
}
|
|
303
|
-
.awsui_footer--
|
|
303
|
+
.awsui_footer--rounded_1d2i7_fo99r_303:not(#\9) {
|
|
304
304
|
border-start-start-radius: 0;
|
|
305
305
|
border-start-end-radius: 0;
|
|
306
306
|
border-end-start-radius: var(--border-radius-container-cjce5i, 16px);
|
|
307
307
|
border-end-end-radius: var(--border-radius-container-cjce5i, 16px);
|
|
308
308
|
}
|
|
309
|
-
.
|
|
309
|
+
.awsui_footer_1d2i7_fo99r_294:not(#\9):after {
|
|
310
310
|
content: "";
|
|
311
311
|
display: table;
|
|
312
312
|
clear: both;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
.awsui_dismiss-
|
|
315
|
+
.awsui_dismiss-control_1d2i7_fo99r_315:not(#\9) {
|
|
316
316
|
/* used in test-utils */
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
.awsui_modal-
|
|
319
|
+
.awsui_modal-open_1d2i7_fo99r_319:not(#\9) {
|
|
320
320
|
overflow: hidden;
|
|
321
321
|
/*
|
|
322
322
|
* When padding-right is added to account for scrollbar being turned
|
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"dialog": "
|
|
6
|
-
"modal-slide-up": "awsui_modal-slide-
|
|
7
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
8
|
-
"refresh": "
|
|
9
|
-
"awsui-motion-scale-popup": "awsui_awsui-motion-scale-
|
|
10
|
-
"root": "
|
|
11
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
12
|
-
"hide-dismiss-button": "awsui_hide-dismiss-
|
|
13
|
-
"hidden": "
|
|
14
|
-
"focus-lock": "awsui_focus-
|
|
15
|
-
"position-top": "awsui_position-
|
|
16
|
-
"position-center": "awsui_position-
|
|
17
|
-
"small": "
|
|
18
|
-
"medium": "
|
|
19
|
-
"large": "
|
|
20
|
-
"x-large": "awsui_x-
|
|
21
|
-
"xx-large": "awsui_xx-
|
|
22
|
-
"custom-width": "awsui_custom-
|
|
23
|
-
"max": "
|
|
24
|
-
"breakpoint-xs": "awsui_breakpoint-
|
|
25
|
-
"custom-height": "awsui_custom-
|
|
26
|
-
"container": "
|
|
27
|
-
"custom-height-container": "awsui_custom-height-
|
|
28
|
-
"content": "
|
|
29
|
-
"no-paddings": "awsui_no-
|
|
30
|
-
"custom-height-content": "awsui_custom-height-
|
|
31
|
-
"header": "
|
|
32
|
-
"header--text": "awsui_header--
|
|
33
|
-
"footer": "
|
|
34
|
-
"footer--rounded": "awsui_footer--
|
|
35
|
-
"dismiss-control": "awsui_dismiss-
|
|
36
|
-
"modal-open": "awsui_modal-
|
|
5
|
+
"dialog": "awsui_dialog_1d2i7_fo99r_25",
|
|
6
|
+
"modal-slide-up": "awsui_modal-slide-up_1d2i7_fo99r_1",
|
|
7
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1",
|
|
8
|
+
"refresh": "awsui_refresh_1d2i7_fo99r_48",
|
|
9
|
+
"awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_fo99r_1",
|
|
10
|
+
"root": "awsui_root_1d2i7_fo99r_81",
|
|
11
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_fo99r_1",
|
|
12
|
+
"hide-dismiss-button": "awsui_hide-dismiss-button_1d2i7_fo99r_158",
|
|
13
|
+
"hidden": "awsui_hidden_1d2i7_fo99r_161",
|
|
14
|
+
"focus-lock": "awsui_focus-lock_1d2i7_fo99r_165",
|
|
15
|
+
"position-top": "awsui_position-top_1d2i7_fo99r_173",
|
|
16
|
+
"position-center": "awsui_position-center_1d2i7_fo99r_176",
|
|
17
|
+
"small": "awsui_small_1d2i7_fo99r_190",
|
|
18
|
+
"medium": "awsui_medium_1d2i7_fo99r_193",
|
|
19
|
+
"large": "awsui_large_1d2i7_fo99r_196",
|
|
20
|
+
"x-large": "awsui_x-large_1d2i7_fo99r_199",
|
|
21
|
+
"xx-large": "awsui_xx-large_1d2i7_fo99r_202",
|
|
22
|
+
"custom-width": "awsui_custom-width_1d2i7_fo99r_205",
|
|
23
|
+
"max": "awsui_max_1d2i7_fo99r_208",
|
|
24
|
+
"breakpoint-xs": "awsui_breakpoint-xs_1d2i7_fo99r_208",
|
|
25
|
+
"custom-height": "awsui_custom-height_1d2i7_fo99r_213",
|
|
26
|
+
"container": "awsui_container_1d2i7_fo99r_218",
|
|
27
|
+
"custom-height-container": "awsui_custom-height-container_1d2i7_fo99r_258",
|
|
28
|
+
"content": "awsui_content_1d2i7_fo99r_264",
|
|
29
|
+
"no-paddings": "awsui_no-paddings_1d2i7_fo99r_269",
|
|
30
|
+
"custom-height-content": "awsui_custom-height-content_1d2i7_fo99r_273",
|
|
31
|
+
"header": "awsui_header_1d2i7_fo99r_278",
|
|
32
|
+
"header--text": "awsui_header--text_1d2i7_fo99r_290",
|
|
33
|
+
"footer": "awsui_footer_1d2i7_fo99r_294",
|
|
34
|
+
"footer--rounded": "awsui_footer--rounded_1d2i7_fo99r_303",
|
|
35
|
+
"dismiss-control": "awsui_dismiss-control_1d2i7_fo99r_315",
|
|
36
|
+
"modal-open": "awsui_modal-open_1d2i7_fo99r_319"
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -76,7 +76,7 @@ export declare function useMultiselect({
|
|
|
76
76
|
ariaLabel?: string | undefined;
|
|
77
77
|
nativeAttributes?: Record<string, any> | undefined;
|
|
78
78
|
tagOverride?: "div" | "ul" | undefined;
|
|
79
|
-
statusType
|
|
79
|
+
statusType?: DropdownStatusProps.StatusType | undefined;
|
|
80
80
|
ariaRequired?: boolean | undefined;
|
|
81
81
|
decreaseBlockMargin?: boolean | undefined;
|
|
82
82
|
stickyItemBlockSize?: number | null | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/option-list/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,6FASd,CAAC;AAGH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
'use client';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
6
|
+
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
7
|
+
import { getExternalProps } from '../internal/utils/external-props';
|
|
8
|
+
import InternalOptionList from './internal';
|
|
9
|
+
const OptionList = React.forwardRef((props, ref) => {
|
|
10
|
+
const baseComponentProps = useBaseComponent('OptionList', {
|
|
11
|
+
props: { selectionType: props.selectionType },
|
|
12
|
+
metadata: {
|
|
13
|
+
optionsCount: props.options.length,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
const externalProps = getExternalProps(props);
|
|
17
|
+
return React.createElement(InternalOptionList, { ...externalProps, ...baseComponentProps, ref: ref });
|
|
18
|
+
});
|
|
19
|
+
applyDisplayName(OptionList, 'OptionList');
|
|
20
|
+
export default OptionList;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/option-list/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAI5C,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAsB,EAAE,GAAmC,EAAE,EAAE;IAClG,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,EAAE;QACxD,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE;QAC7C,QAAQ,EAAE;YACR,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM;SACnC;KACF,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,oBAAC,kBAAkB,OAAK,aAAa,KAAM,kBAAkB,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AACrF,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AAC3C,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { OptionListProps } from './interfaces';\nimport InternalOptionList from './internal';\n\nexport { OptionListProps };\n\nconst OptionList = React.forwardRef((props: OptionListProps, ref: React.Ref<OptionListProps.Ref>) => {\n const baseComponentProps = useBaseComponent('OptionList', {\n props: { selectionType: props.selectionType },\n metadata: {\n optionsCount: props.options.length,\n },\n });\n const externalProps = getExternalProps(props);\n return <InternalOptionList {...externalProps} {...baseComponentProps} ref={ref} />;\n});\n\napplyDisplayName(OptionList, 'OptionList');\nexport default OptionList;\n"]}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../types/base-component';
|
|
3
|
+
import { NonCancelableEventHandler } from '../types/events';
|
|
4
|
+
export interface OptionListProps extends BaseComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies an array of options that are displayed as a list.
|
|
7
|
+
* You can group options into one level of option groups.
|
|
8
|
+
*
|
|
9
|
+
* #### Option
|
|
10
|
+
* - `value` (string) - The returned value of the option when selected. Must be unique.
|
|
11
|
+
* - `label` (string) - (Optional) Option text displayed to the user.
|
|
12
|
+
* - `lang` (string) - (Optional) The language of the option, provided as a BCP 47 language tag.
|
|
13
|
+
* - `description` (string) - (Optional) Further information about the option that appears below the label.
|
|
14
|
+
* - `disabled` (boolean) - (Optional) Determines whether the option is disabled. Users can't select or deselect a disabled option.
|
|
15
|
+
* - `disabledReason` (ReactNode) - (Optional) Displays a tooltip near the item when disabled. Use to provide additional context.
|
|
16
|
+
* - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.
|
|
17
|
+
* - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option.
|
|
18
|
+
* - `icon` (ReactNode) - (Optional) An icon displayed in the option, such as an [icon component](/components/icon/).
|
|
19
|
+
*
|
|
20
|
+
* #### OptionGroup
|
|
21
|
+
* - `value` (string) - Identifies the option group. Must be unique among the groups.
|
|
22
|
+
* - `label` (string) - Option group text displayed to the user.
|
|
23
|
+
* - `disabled` (boolean) - (Optional) Determines whether the option group is disabled. Disables every option in the group.
|
|
24
|
+
* - `options` (Option[]) - The options in the group.
|
|
25
|
+
*
|
|
26
|
+
* Options are the selection target. Do not render interactive elements such as buttons or links inside them.
|
|
27
|
+
*/
|
|
28
|
+
options: OptionListProps.Options;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies whether the user can select one option (`single`) or several (`multi`).
|
|
31
|
+
* Multi selection shows a checkbox next to each option.
|
|
32
|
+
*/
|
|
33
|
+
selectionType: OptionListProps.SelectionType;
|
|
34
|
+
/**
|
|
35
|
+
* The selected options. Options are matched by `value`. In single selection, only the first option of the array is used.
|
|
36
|
+
* If you don't provide this property, the component manages its selection internally.
|
|
37
|
+
*/
|
|
38
|
+
selectedOptions?: ReadonlyArray<OptionListProps.Option>;
|
|
39
|
+
/**
|
|
40
|
+
* Called when the user selects or deselects an option.
|
|
41
|
+
* The event `detail` contains the new `selectedOptions`.
|
|
42
|
+
*/
|
|
43
|
+
onChange?: NonCancelableEventHandler<OptionListProps.ChangeDetail>;
|
|
44
|
+
/**
|
|
45
|
+
* Adds `aria-label` to the list. Use this when there is no visible label.
|
|
46
|
+
*/
|
|
47
|
+
ariaLabel?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Adds `aria-labelledby` to the list. Use this to reference the visible label of the list.
|
|
50
|
+
*/
|
|
51
|
+
ariaLabelledby?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Adds `aria-describedby` to the list.
|
|
54
|
+
*/
|
|
55
|
+
ariaDescribedby?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies a render function to render custom options.
|
|
58
|
+
*/
|
|
59
|
+
renderOption?: OptionListProps.OptionItemRenderer;
|
|
60
|
+
/**
|
|
61
|
+
* Overrides the element that is announced to screen readers
|
|
62
|
+
* when the highlighted option changes. By default, this announces
|
|
63
|
+
* the option's name and properties, and its selected state if
|
|
64
|
+
* the `selectedAriaLabel` property is defined.
|
|
65
|
+
* The highlighted option is provided, and its group (if groups
|
|
66
|
+
* are used and it differs from the group of the previously highlighted option).
|
|
67
|
+
* In multi selection, when a group header is highlighted, the group is provided as the option.
|
|
68
|
+
*
|
|
69
|
+
* For more information, see the
|
|
70
|
+
* [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).
|
|
71
|
+
*/
|
|
72
|
+
renderHighlightedAriaLive?: OptionListProps.ContainingOptionAndGroupString;
|
|
73
|
+
/**
|
|
74
|
+
* An object containing all the necessary localized strings required by the component.
|
|
75
|
+
* * `selectedAriaLabel` - Announced with the highlighted option when it is selected.
|
|
76
|
+
* @i18n
|
|
77
|
+
*/
|
|
78
|
+
i18nStrings?: OptionListProps.I18nStrings;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace OptionListProps {
|
|
81
|
+
type SelectionType = 'single' | 'multi';
|
|
82
|
+
interface Option {
|
|
83
|
+
value: string;
|
|
84
|
+
label?: string;
|
|
85
|
+
lang?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
disabledReason?: React.ReactNode;
|
|
89
|
+
labelTag?: string;
|
|
90
|
+
tags?: ReadonlyArray<string>;
|
|
91
|
+
icon?: React.ReactNode;
|
|
92
|
+
}
|
|
93
|
+
interface OptionGroup extends Option {
|
|
94
|
+
options: ReadonlyArray<Option>;
|
|
95
|
+
}
|
|
96
|
+
type Options = ReadonlyArray<Option | OptionGroup>;
|
|
97
|
+
interface OptionItem {
|
|
98
|
+
type: 'item';
|
|
99
|
+
index: number;
|
|
100
|
+
option: Option;
|
|
101
|
+
selected: boolean;
|
|
102
|
+
highlighted: boolean;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
parent: OptionGroupItem | null;
|
|
105
|
+
}
|
|
106
|
+
interface OptionGroupItem {
|
|
107
|
+
type: 'group';
|
|
108
|
+
index: number;
|
|
109
|
+
option: OptionGroup;
|
|
110
|
+
disabled: boolean;
|
|
111
|
+
selected?: boolean;
|
|
112
|
+
indeterminate?: boolean;
|
|
113
|
+
highlighted?: boolean;
|
|
114
|
+
}
|
|
115
|
+
type Item = OptionItem | OptionGroupItem;
|
|
116
|
+
type OptionItemRenderer = (props: {
|
|
117
|
+
item: Item;
|
|
118
|
+
}) => React.ReactNode | null;
|
|
119
|
+
interface ContainingOptionAndGroupString {
|
|
120
|
+
(option: Option | OptionGroup, group?: OptionGroup): string;
|
|
121
|
+
}
|
|
122
|
+
interface ChangeDetail {
|
|
123
|
+
selectedOptions: ReadonlyArray<Option>;
|
|
124
|
+
}
|
|
125
|
+
interface I18nStrings {
|
|
126
|
+
selectedAriaLabel?: string;
|
|
127
|
+
}
|
|
128
|
+
interface Ref {
|
|
129
|
+
focus(): void;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/option-list/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC;IAEjC;;;OAGG;IACH,aAAa,EAAE,eAAe,CAAC,aAAa,CAAC;IAE7C;;;OAGG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAExD;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IAEnE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC;IAElD;;;;;;;;;;;OAWG;IACH,yBAAyB,CAAC,EAAE,eAAe,CAAC,8BAA8B,CAAC;IAE3E;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC;CAC3C;AAED,yBAAiB,eAAe,CAAC;IAC/B,KAAY,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE/C,UAAiB,MAAM;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB;IAED,UAAiB,WAAY,SAAQ,MAAM;QACzC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KAChC;IAED,KAAY,OAAO,GAAG,aAAa,CAAC,MAAM,GAAG,WAAW,CAAC,CAAC;IAE1D,UAAiB,UAAU;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,OAAO,CAAC;QAClB,WAAW,EAAE,OAAO,CAAC;QACrB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;KAChC;IAED,UAAiB,eAAe;QAC9B,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,WAAW,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;IAED,KAAY,IAAI,GAAG,UAAU,GAAG,eAAe,CAAC;IAEhD,KAAY,kBAAkB,GAAG,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAEnF,UAAiB,8BAA8B;QAC7C,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;KAC7D;IAED,UAAiB,YAAY;QAC3B,eAAe,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KACxC;IAED,UAAiB,WAAW;QAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B;IAED,UAAiB,GAAG;QAClB,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/option-list/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface OptionListProps extends BaseComponentProps {\n /**\n * Specifies an array of options that are displayed as a list.\n * You can group options into one level of option groups.\n *\n * #### Option\n * - `value` (string) - The returned value of the option when selected. Must be unique.\n * - `label` (string) - (Optional) Option text displayed to the user.\n * - `lang` (string) - (Optional) The language of the option, provided as a BCP 47 language tag.\n * - `description` (string) - (Optional) Further information about the option that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the option is disabled. Users can't select or deselect a disabled option.\n * - `disabledReason` (ReactNode) - (Optional) Displays a tooltip near the item when disabled. Use to provide additional context.\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.\n * - `icon` (ReactNode) - (Optional) An icon displayed in the option, such as an [icon component](/components/icon/).\n *\n * #### OptionGroup\n * - `value` (string) - Identifies the option group. Must be unique among the groups.\n * - `label` (string) - Option group text displayed to the user.\n * - `disabled` (boolean) - (Optional) Determines whether the option group is disabled. Disables every option in the group.\n * - `options` (Option[]) - The options in the group.\n *\n * Options are the selection target. Do not render interactive elements such as buttons or links inside them.\n */\n options: OptionListProps.Options;\n\n /**\n * Specifies whether the user can select one option (`single`) or several (`multi`).\n * Multi selection shows a checkbox next to each option.\n */\n selectionType: OptionListProps.SelectionType;\n\n /**\n * The selected options. Options are matched by `value`. In single selection, only the first option of the array is used.\n * If you don't provide this property, the component manages its selection internally.\n */\n selectedOptions?: ReadonlyArray<OptionListProps.Option>;\n\n /**\n * Called when the user selects or deselects an option.\n * The event `detail` contains the new `selectedOptions`.\n */\n onChange?: NonCancelableEventHandler<OptionListProps.ChangeDetail>;\n\n /**\n * Adds `aria-label` to the list. Use this when there is no visible label.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the list. Use this to reference the visible label of the list.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the list.\n */\n ariaDescribedby?: string;\n\n /**\n * Specifies a render function to render custom options.\n */\n renderOption?: OptionListProps.OptionItemRenderer;\n\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 * In multi selection, when a group header is highlighted, the group is provided as the option.\n *\n * For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n */\n renderHighlightedAriaLive?: OptionListProps.ContainingOptionAndGroupString;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * * `selectedAriaLabel` - Announced with the highlighted option when it is selected.\n * @i18n\n */\n i18nStrings?: OptionListProps.I18nStrings;\n}\n\nexport namespace OptionListProps {\n export type SelectionType = 'single' | 'multi';\n\n export interface Option {\n value: string;\n label?: string;\n lang?: string;\n description?: string;\n disabled?: boolean;\n disabledReason?: React.ReactNode;\n labelTag?: string;\n tags?: ReadonlyArray<string>;\n icon?: React.ReactNode;\n }\n\n export interface OptionGroup extends Option {\n options: ReadonlyArray<Option>;\n }\n\n export type Options = ReadonlyArray<Option | OptionGroup>;\n\n export interface OptionItem {\n type: 'item';\n index: number;\n option: Option;\n selected: boolean;\n highlighted: boolean;\n disabled: boolean;\n parent: OptionGroupItem | null;\n }\n\n export interface OptionGroupItem {\n type: 'group';\n index: number;\n option: OptionGroup;\n disabled: boolean;\n selected?: boolean;\n indeterminate?: boolean;\n highlighted?: boolean;\n }\n\n export type Item = OptionItem | OptionGroupItem;\n\n export type OptionItemRenderer = (props: { item: Item }) => React.ReactNode | null;\n\n export interface ContainingOptionAndGroupString {\n (option: Option | OptionGroup, group?: OptionGroup): string;\n }\n\n export interface ChangeDetail {\n selectedOptions: ReadonlyArray<Option>;\n }\n\n export interface I18nStrings {\n selectedAriaLabel?: string;\n }\n\n export interface Ref {\n focus(): void;\n }\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
|
|
3
|
+
import { OptionListProps } from './interfaces';
|
|
4
|
+
declare const InternalOptionList: React.ForwardRefExoticComponent<OptionListProps & InternalBaseComponentProps & React.RefAttributes<OptionListProps.Ref>>;
|
|
5
|
+
export default InternalOptionList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/option-list/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAgBpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAyD/C,QAAA,MAAM,kBAAkB,0HAoJvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|