@cloudscape-design/components 3.0.1365 → 3.0.1366
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/action-card/styles.css.js +17 -17
- package/action-card/styles.scoped.css +117 -117
- package/action-card/styles.selectors.js +17 -17
- package/alert/actions-wrapper/styles.css.js +1 -1
- package/alert/actions-wrapper/styles.scoped.css +3 -3
- package/alert/actions-wrapper/styles.selectors.js +1 -1
- package/alert/styles.css.js +27 -27
- package/alert/styles.scoped.css +67 -67
- package/alert/styles.selectors.js +27 -27
- package/anchor-navigation/styles.css.js +8 -8
- package/anchor-navigation/styles.scoped.css +22 -22
- package/anchor-navigation/styles.selectors.js +8 -8
- package/annotation-context/annotation/styles.css.js +13 -13
- package/annotation-context/annotation/styles.scoped.css +23 -23
- package/annotation-context/annotation/styles.selectors.js +13 -13
- package/app-layout/content-wrapper/styles.css.js +3 -3
- package/app-layout/content-wrapper/styles.scoped.css +10 -10
- package/app-layout/content-wrapper/styles.selectors.js +3 -3
- package/app-layout/drawer/styles.css.js +14 -14
- package/app-layout/drawer/styles.scoped.css +25 -25
- package/app-layout/drawer/styles.selectors.js +14 -14
- package/app-layout/mobile-toolbar/styles.css.js +8 -8
- package/app-layout/mobile-toolbar/styles.scoped.css +13 -13
- package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
- 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/resize/styles.css.js +5 -5
- package/app-layout/resize/styles.scoped.css +14 -14
- package/app-layout/resize/styles.selectors.js +5 -5
- package/app-layout/styles.css.js +12 -12
- package/app-layout/styles.scoped.css +18 -18
- package/app-layout/styles.selectors.js +12 -12
- package/app-layout/toggles/styles.css.js +2 -2
- package/app-layout/toggles/styles.scoped.css +15 -15
- package/app-layout/toggles/styles.selectors.js +2 -2
- package/app-layout/visual-refresh/styles.css.js +86 -86
- package/app-layout/visual-refresh/styles.scoped.css +288 -288
- 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 +112 -112
- 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 +15 -15
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/app-layout/visual-refresh-toolbar/notifications/styles.css.js +3 -3
- package/app-layout/visual-refresh-toolbar/notifications/styles.scoped.css +4 -4
- package/app-layout/visual-refresh-toolbar/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +74 -74
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +14 -14
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +44 -44
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +14 -14
- package/area-chart/styles.css.js +6 -6
- package/area-chart/styles.scoped.css +11 -11
- package/area-chart/styles.selectors.js +6 -6
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +32 -32
- package/attribute-editor/styles.selectors.js +15 -15
- package/badge/styles.css.js +10 -10
- package/badge/styles.scoped.css +11 -11
- package/badge/styles.selectors.js +10 -10
- package/box/styles.css.js +220 -220
- package/box/styles.scoped.css +433 -433
- package/box/styles.selectors.js +220 -220
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +30 -30
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/breadcrumb-group/styles.css.js +14 -14
- package/breadcrumb-group/styles.scoped.css +32 -32
- package/breadcrumb-group/styles.selectors.js +14 -14
- package/button/styles.css.js +23 -23
- package/button/styles.scoped.css +295 -295
- package/button/styles.selectors.js +23 -23
- package/button-dropdown/category-elements/styles.css.js +18 -18
- package/button-dropdown/category-elements/styles.scoped.css +37 -37
- package/button-dropdown/category-elements/styles.selectors.js +18 -18
- package/button-dropdown/filter.d.ts +1 -1
- package/button-dropdown/filter.d.ts.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +9 -3
- package/button-dropdown/internal.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +21 -21
- package/button-dropdown/item-element/styles.scoped.css +45 -45
- package/button-dropdown/item-element/styles.selectors.js +21 -21
- package/button-dropdown/styles.css.js +23 -23
- package/button-dropdown/styles.scoped.css +40 -40
- package/button-dropdown/styles.selectors.js +23 -23
- package/button-dropdown/utils/use-button-dropdown.d.ts +5 -2
- package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
- package/button-dropdown/utils/use-button-dropdown.js +14 -2
- package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
- package/button-group/styles.css.js +4 -4
- package/button-group/styles.scoped.css +6 -6
- package/button-group/styles.selectors.js +4 -4
- package/calendar/styles.css.js +21 -21
- package/calendar/styles.scoped.css +62 -62
- package/calendar/styles.selectors.js +21 -21
- package/cards/styles.css.js +39 -38
- package/cards/styles.scoped.css +54 -51
- package/cards/styles.selectors.js +39 -38
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +16 -16
- package/checkbox/styles.selectors.js +3 -3
- package/code-editor/resizable-box/styles.css.js +4 -4
- package/code-editor/resizable-box/styles.scoped.css +9 -9
- package/code-editor/resizable-box/styles.selectors.js +4 -4
- package/code-editor/styles.css.js +33 -33
- package/code-editor/styles.scoped.css +159 -159
- package/code-editor/styles.selectors.js +33 -33
- package/collection-preferences/styles.css.js +38 -38
- package/collection-preferences/styles.scoped.css +52 -52
- package/collection-preferences/styles.selectors.js +38 -38
- package/column-layout/flexible-column-layout/styles.css.js +5 -5
- package/column-layout/flexible-column-layout/styles.scoped.css +12 -12
- package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
- package/column-layout/styles.css.js +13 -13
- package/column-layout/styles.scoped.css +51 -51
- package/column-layout/styles.selectors.js +13 -13
- package/container/styles.css.js +33 -33
- package/container/styles.scoped.css +73 -72
- package/container/styles.selectors.js +33 -33
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +30 -30
- package/content-layout/styles.selectors.js +14 -14
- package/copy-to-clipboard/styles.css.js +5 -5
- package/copy-to-clipboard/styles.scoped.css +7 -7
- package/copy-to-clipboard/styles.selectors.js +5 -5
- package/date-picker/styles.css.js +7 -7
- package/date-picker/styles.scoped.css +10 -10
- package/date-picker/styles.selectors.js +7 -7
- package/date-range-picker/calendar/grids/styles.css.js +30 -30
- package/date-range-picker/calendar/grids/styles.scoped.css +69 -69
- package/date-range-picker/calendar/grids/styles.selectors.js +30 -30
- package/date-range-picker/relative-range/styles.css.js +6 -6
- package/date-range-picker/relative-range/styles.scoped.css +13 -13
- package/date-range-picker/relative-range/styles.selectors.js +6 -6
- package/date-range-picker/styles.css.js +23 -23
- package/date-range-picker/styles.scoped.css +46 -46
- package/date-range-picker/styles.selectors.js +23 -23
- package/divider/styles.css.js +6 -6
- package/divider/styles.scoped.css +8 -8
- package/divider/styles.selectors.js +6 -6
- package/drawer/styles.css.js +29 -29
- package/drawer/styles.scoped.css +47 -47
- package/drawer/styles.selectors.js +29 -29
- package/dropdown/styles.css.js +20 -20
- package/dropdown/styles.scoped.css +54 -54
- package/dropdown/styles.selectors.js +20 -20
- package/expandable-section/styles.css.js +43 -43
- package/expandable-section/styles.scoped.css +129 -129
- package/expandable-section/styles.selectors.js +43 -43
- package/file-dropzone/styles.css.js +3 -3
- package/file-dropzone/styles.scoped.css +6 -6
- package/file-dropzone/styles.selectors.js +3 -3
- package/file-input/styles.css.js +5 -5
- package/file-input/styles.scoped.css +18 -18
- package/file-input/styles.selectors.js +5 -5
- package/file-token-group/styles.css.js +23 -23
- package/file-token-group/styles.scoped.css +52 -52
- package/file-token-group/styles.selectors.js +23 -23
- package/file-upload/styles.css.js +2 -2
- package/file-upload/styles.scoped.css +4 -4
- package/file-upload/styles.selectors.js +2 -2
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +249 -249
- package/flashbar/styles.selectors.js +50 -50
- package/form/styles.css.js +8 -8
- package/form/styles.scoped.css +16 -16
- package/form/styles.selectors.js +8 -8
- package/form-field/styles.css.js +24 -24
- package/form-field/styles.scoped.css +44 -44
- package/form-field/styles.selectors.js +24 -24
- package/grid/styles.css.js +53 -53
- package/grid/styles.scoped.css +58 -58
- package/grid/styles.selectors.js +53 -53
- package/header/styles.css.js +35 -35
- package/header/styles.scoped.css +83 -83
- package/header/styles.selectors.js +35 -35
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +100 -100
- package/help-panel/styles.selectors.js +6 -6
- package/hotspot/styles.css.js +7 -7
- package/hotspot/styles.scoped.css +10 -10
- package/hotspot/styles.selectors.js +7 -7
- package/icon/styles.css.js +42 -42
- package/icon/styles.scoped.css +118 -118
- package/icon/styles.selectors.js +42 -42
- package/input/index.d.ts.map +1 -1
- package/input/index.js +3 -2
- package/input/index.js.map +1 -1
- package/input/interfaces.d.ts +6 -0
- package/input/interfaces.d.ts.map +1 -1
- package/input/interfaces.js.map +1 -1
- package/input/internal.d.ts +0 -1
- package/input/internal.d.ts.map +1 -1
- package/input/internal.js +26 -12
- package/input/internal.js.map +1 -1
- package/input/styles.css.js +29 -28
- package/input/styles.scoped.css +159 -156
- package/input/styles.selectors.js +29 -28
- package/internal/base-component/styles.scoped.css +2 -2
- package/internal/base-theme/styles.scoped.css +319 -319
- package/internal/components/abstract-switch/styles.css.js +13 -13
- package/internal/components/abstract-switch/styles.scoped.css +22 -22
- package/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/internal/components/button-trigger/styles.css.js +14 -14
- package/internal/components/button-trigger/styles.scoped.css +43 -43
- package/internal/components/button-trigger/styles.selectors.js +14 -14
- package/internal/components/chart-legend/styles.css.js +6 -6
- package/internal/components/chart-legend/styles.scoped.css +16 -16
- package/internal/components/chart-legend/styles.selectors.js +6 -6
- package/internal/components/chart-popover/styles.css.js +3 -3
- package/internal/components/chart-popover/styles.scoped.css +6 -6
- package/internal/components/chart-popover/styles.selectors.js +3 -3
- package/internal/components/chart-series-details/styles.css.js +19 -19
- package/internal/components/chart-series-details/styles.scoped.css +39 -39
- package/internal/components/chart-series-details/styles.selectors.js +19 -19
- package/internal/components/chart-series-marker/styles.css.js +5 -5
- package/internal/components/chart-series-marker/styles.scoped.css +9 -9
- package/internal/components/chart-series-marker/styles.selectors.js +5 -5
- package/internal/components/checkbox-icon/styles.css.js +9 -9
- package/internal/components/checkbox-icon/styles.scoped.css +10 -10
- package/internal/components/checkbox-icon/styles.selectors.js +9 -9
- package/internal/components/drag-handle/styles.css.js +14 -14
- package/internal/components/drag-handle/styles.scoped.css +21 -21
- package/internal/components/drag-handle/styles.selectors.js +14 -14
- package/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
- package/internal/components/drag-handle-wrapper/index.js +2 -1
- package/internal/components/drag-handle-wrapper/index.js.map +1 -1
- package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/internal/components/drag-handle-wrapper/styles.scoped.css +84 -84
- package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/internal/components/dropdown-status/styles.css.js +2 -2
- package/internal/components/dropdown-status/styles.scoped.css +5 -5
- package/internal/components/dropdown-status/styles.selectors.js +2 -2
- package/internal/components/expand-toggle-button/styles.css.js +4 -4
- package/internal/components/expand-toggle-button/styles.scoped.css +21 -21
- package/internal/components/expand-toggle-button/styles.selectors.js +4 -4
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +18 -18
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/components/option/styles.css.js +17 -17
- package/internal/components/option/styles.scoped.css +34 -34
- package/internal/components/option/styles.selectors.js +17 -17
- package/internal/components/radio-button/styles.css.js +7 -7
- package/internal/components/radio-button/styles.scoped.css +24 -24
- package/internal/components/radio-button/styles.selectors.js +7 -7
- package/internal/components/selectable-item/styles.css.js +22 -22
- package/internal/components/selectable-item/styles.scoped.css +66 -66
- package/internal/components/selectable-item/styles.selectors.js +22 -22
- package/internal/components/sortable-area/styles.css.js +8 -8
- package/internal/components/sortable-area/styles.scoped.css +17 -17
- package/internal/components/sortable-area/styles.selectors.js +8 -8
- package/internal/components/structured-item/styles.css.js +7 -7
- package/internal/components/structured-item/styles.scoped.css +11 -11
- package/internal/components/structured-item/styles.selectors.js +7 -7
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +33 -33
- 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 +174 -173
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/generated/styles/tokens.js +200 -200
- package/internal/generated/theming/index.cjs +200 -200
- package/internal/generated/theming/index.js +200 -200
- package/internal/manifest.json +1 -1
- package/internal/utils/focus-visible.d.ts +14 -0
- package/internal/utils/focus-visible.d.ts.map +1 -0
- package/internal/utils/focus-visible.js +21 -0
- package/internal/utils/focus-visible.js.map +1 -0
- package/item-card/styles.css.js +14 -14
- package/item-card/styles.scoped.css +94 -94
- package/item-card/styles.selectors.js +14 -14
- package/key-value-pairs/styles.css.js +8 -8
- package/key-value-pairs/styles.scoped.css +14 -14
- package/key-value-pairs/styles.selectors.js +8 -8
- package/link/styles.css.js +21 -21
- package/link/styles.scoped.css +112 -112
- package/link/styles.selectors.js +21 -21
- package/list/styles.css.js +5 -5
- package/list/styles.scoped.css +9 -9
- package/list/styles.selectors.js +5 -5
- package/manifest.json +2 -2
- package/mixed-line-bar-chart/styles.css.js +11 -11
- package/mixed-line-bar-chart/styles.scoped.css +18 -18
- package/mixed-line-bar-chart/styles.selectors.js +11 -11
- package/modal/styles.css.js +31 -31
- package/modal/styles.scoped.css +65 -65
- package/modal/styles.selectors.js +31 -31
- package/multiselect/styles.css.js +5 -5
- package/multiselect/styles.scoped.css +6 -6
- package/multiselect/styles.selectors.js +5 -5
- package/package.json +1 -1
- package/pagination/internal.js +1 -1
- package/pagination/internal.js.map +1 -1
- package/pagination/styles.css.js +12 -12
- package/pagination/styles.scoped.css +36 -36
- package/pagination/styles.selectors.js +12 -12
- package/pie-chart/styles.css.js +27 -27
- package/pie-chart/styles.scoped.css +58 -58
- package/pie-chart/styles.selectors.js +27 -27
- package/popover/styles.css.js +58 -58
- package/popover/styles.scoped.css +102 -102
- package/popover/styles.selectors.js +58 -58
- package/progress-bar/styles.css.js +19 -19
- package/progress-bar/styles.scoped.css +64 -64
- package/progress-bar/styles.selectors.js +19 -19
- package/prompt-input/styles.css.js +26 -26
- package/prompt-input/styles.scoped.css +127 -127
- package/prompt-input/styles.selectors.js +26 -26
- package/property-filter/filtering-token/styles.css.js +18 -18
- package/property-filter/filtering-token/styles.scoped.css +54 -54
- package/property-filter/filtering-token/styles.selectors.js +18 -18
- package/property-filter/styles.css.js +39 -39
- package/property-filter/styles.scoped.css +75 -75
- package/property-filter/styles.selectors.js +39 -39
- package/radio-group/styles.css.js +5 -5
- package/radio-group/styles.scoped.css +10 -10
- package/radio-group/styles.selectors.js +5 -5
- package/s3-resource-selector/s3-in-context/styles.css.js +7 -7
- package/s3-resource-selector/s3-in-context/styles.scoped.css +13 -13
- package/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
- package/segmented-control/styles.css.js +16 -16
- package/segmented-control/styles.scoped.css +67 -67
- package/segmented-control/styles.selectors.js +16 -16
- package/select/parts/filter.d.ts +1 -1
- package/select/parts/filter.d.ts.map +1 -1
- package/select/parts/styles.css.js +21 -21
- package/select/parts/styles.scoped.css +38 -38
- package/select/parts/styles.selectors.js +21 -21
- package/side-navigation/styles.css.js +64 -64
- package/side-navigation/styles.scoped.css +162 -162
- package/side-navigation/styles.selectors.js +64 -64
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +205 -205
- package/slider/styles.selectors.js +26 -26
- package/space-between/styles.css.js +23 -23
- package/space-between/styles.scoped.css +40 -40
- package/space-between/styles.selectors.js +23 -23
- package/spinner/styles.css.js +14 -14
- package/spinner/styles.scoped.css +55 -55
- package/spinner/styles.selectors.js +14 -14
- package/split-panel/styles.css.js +38 -38
- package/split-panel/styles.scoped.css +84 -84
- package/split-panel/styles.selectors.js +38 -38
- package/status-indicator/styles.css.js +25 -25
- package/status-indicator/styles.scoped.css +50 -50
- package/status-indicator/styles.selectors.js +25 -25
- package/steps/styles.css.js +17 -17
- package/steps/styles.scoped.css +51 -51
- package/steps/styles.selectors.js +17 -17
- package/table/body-cell/styles.css.js +48 -48
- package/table/body-cell/styles.scoped.css +816 -816
- package/table/body-cell/styles.selectors.js +48 -48
- package/table/header-cell/styles.css.js +38 -38
- package/table/header-cell/styles.scoped.css +156 -156
- package/table/header-cell/styles.selectors.js +38 -38
- package/table/resizer/styles.css.js +17 -17
- package/table/resizer/styles.scoped.css +39 -39
- package/table/resizer/styles.selectors.js +17 -17
- package/table/selection/styles.css.js +4 -4
- package/table/selection/styles.scoped.css +6 -6
- package/table/selection/styles.selectors.js +4 -4
- package/table/styles.css.js +37 -37
- package/table/styles.scoped.css +73 -70
- package/table/styles.selectors.js +37 -37
- package/tabs/styles.css.js +30 -30
- package/tabs/styles.scoped.css +105 -105
- package/tabs/styles.selectors.js +30 -30
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +14 -14
- package/tag-editor/styles.selectors.js +3 -3
- package/test-utils/dom/input/index.d.ts +1 -0
- package/test-utils/dom/input/index.js +3 -0
- package/test-utils/dom/input/index.js.map +1 -1
- package/test-utils/selectors/input/index.d.ts +1 -0
- package/test-utils/selectors/input/index.js +3 -0
- package/test-utils/selectors/input/index.js.map +1 -1
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +73 -73
- package/text-content/styles.selectors.js +1 -1
- package/text-filter/styles.css.js +3 -3
- package/text-filter/styles.scoped.css +5 -5
- package/text-filter/styles.selectors.js +3 -3
- package/textarea/styles.css.js +9 -9
- package/textarea/styles.scoped.css +55 -55
- package/textarea/styles.selectors.js +9 -9
- package/tiles/styles.css.js +30 -30
- package/tiles/styles.scoped.css +123 -123
- package/tiles/styles.selectors.js +30 -30
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +24 -24
- package/toggle/styles.selectors.js +10 -10
- package/token/styles.css.js +14 -14
- package/token/styles.scoped.css +58 -58
- package/token/styles.selectors.js +14 -14
- package/token-group/styles.css.js +5 -5
- package/token-group/styles.scoped.css +5 -5
- package/token-group/styles.selectors.js +5 -5
- package/tooltip/styles.css.js +2 -2
- package/tooltip/styles.scoped.css +5 -5
- package/tooltip/styles.selectors.js +2 -2
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +97 -97
- package/top-navigation/styles.selectors.js +47 -47
- package/tree-view/styles.css.js +2 -2
- package/tree-view/styles.scoped.css +4 -4
- package/tree-view/styles.selectors.js +2 -2
- package/tree-view/tree-item/styles.css.js +10 -10
- package/tree-view/tree-item/styles.scoped.css +15 -15
- package/tree-view/tree-item/styles.selectors.js +10 -10
- package/tree-view/vertical-connector/styles.css.js +3 -3
- package/tree-view/vertical-connector/styles.scoped.css +4 -4
- package/tree-view/vertical-connector/styles.selectors.js +3 -3
- package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +26 -26
- package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +33 -33
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/tutorial-panel/styles.css.js +1 -1
- package/tutorial-panel/styles.scoped.css +7 -7
- package/tutorial-panel/styles.selectors.js +1 -1
- package/wizard/styles.css.js +30 -30
- package/wizard/styles.scoped.css +79 -79
- package/wizard/styles.selectors.js +30 -30
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
7
7
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
8
8
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
9
|
-
.awsui_item-
|
|
9
|
+
.awsui_item-element_93a1u_d5fl3_9:not(#\9) {
|
|
10
10
|
position: relative;
|
|
11
11
|
z-index: 1;
|
|
12
12
|
border-block: var(--border-item-width-pyfg4s, 2px) solid transparent;
|
|
@@ -18,22 +18,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
18
18
|
margin-block-start: calc(-1 * var(--border-width-dropdown-4gpjx5, 2px));
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
}
|
|
21
|
-
.awsui_item-
|
|
21
|
+
.awsui_item-element_93a1u_d5fl3_9.awsui_no-content-styling_93a1u_d5fl3_21:not(#\9) {
|
|
22
22
|
padding-block: 0;
|
|
23
23
|
padding-inline: 0;
|
|
24
24
|
color: var(--color-text-dropdown-item-default-zani00, #0f141a);
|
|
25
25
|
}
|
|
26
|
-
.awsui_item-
|
|
26
|
+
.awsui_item-element_93a1u_d5fl3_9.awsui_disabled_93a1u_d5fl3_26:not(#\9) {
|
|
27
27
|
cursor: default;
|
|
28
28
|
color: var(--color-text-dropdown-item-disabled-pl4fy2, #b4b4bb);
|
|
29
29
|
}
|
|
30
|
-
.awsui_item-
|
|
30
|
+
.awsui_item-element_93a1u_d5fl3_9:not(#\9):first-child {
|
|
31
31
|
margin-block-start: 0;
|
|
32
32
|
}
|
|
33
|
-
.awsui_item-
|
|
33
|
+
.awsui_item-element_93a1u_d5fl3_9.awsui_show-divider_93a1u_d5fl3_33:not(#\9) {
|
|
34
34
|
border-block-end: var(--border-item-width-pyfg4s, 2px) solid var(--color-border-dropdown-group-0ocu9j, #c6c6cd);
|
|
35
35
|
}
|
|
36
|
-
.awsui_item-
|
|
36
|
+
.awsui_item-element_93a1u_d5fl3_9.awsui_highlighted_93a1u_d5fl3_36:not(#\9) {
|
|
37
37
|
color: var(--color-text-dropdown-item-highlighted-q6vxih, #0f141a);
|
|
38
38
|
z-index: 2;
|
|
39
39
|
background-color: var(--color-background-dropdown-item-hover-wyujnt, #f3f3f7);
|
|
@@ -43,41 +43,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
43
43
|
border-end-start-radius: var(--border-radius-item-mitz8h, 8px);
|
|
44
44
|
border-end-end-radius: var(--border-radius-item-mitz8h, 8px);
|
|
45
45
|
}
|
|
46
|
-
.awsui_item-
|
|
46
|
+
.awsui_item-element_93a1u_d5fl3_9.awsui_highlighted_93a1u_d5fl3_36.awsui_disabled_93a1u_d5fl3_26:not(#\9) {
|
|
47
47
|
color: var(--color-text-dropdown-item-dimmed-iy2k20, #b4b4bb);
|
|
48
48
|
border-color: var(--color-border-dropdown-item-dimmed-hover-ga9sch, #8c8c94);
|
|
49
49
|
background-color: var(--color-background-dropdown-item-dimmed-dhho03, transparent);
|
|
50
50
|
}
|
|
51
|
-
.awsui_item-
|
|
51
|
+
.awsui_item-element_93a1u_d5fl3_9.awsui_highlighted_93a1u_d5fl3_36.awsui_is-focused_93a1u_d5fl3_51:not(#\9) {
|
|
52
52
|
border-color: var(--color-border-dropdown-item-focused-k9miqq, #424650);
|
|
53
53
|
}
|
|
54
|
-
.awsui_item-
|
|
54
|
+
.awsui_item-element_93a1u_d5fl3_9.awsui_highlighted_93a1u_d5fl3_36.awsui_is-focused_93a1u_d5fl3_51:not(#\9):not(.awsui_visual-refresh_93a1u_d5fl3_54) {
|
|
55
55
|
box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-iijyo6, 1px) var(--color-border-item-focused-ditkrb, #006ce0);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.awsui_menu-
|
|
58
|
+
.awsui_menu-item_93a1u_d5fl3_58:not(#\9) {
|
|
59
59
|
min-inline-size: 0;
|
|
60
60
|
word-break: break-word;
|
|
61
61
|
display: flex;
|
|
62
62
|
align-items: flex-start;
|
|
63
|
-
padding-block: var(--space-option-padding-vertical-
|
|
64
|
-
padding-inline: var(--space-option-padding-horizontal-
|
|
63
|
+
padding-block: var(--space-option-padding-vertical-hggcse, 4px);
|
|
64
|
+
padding-inline: var(--space-option-padding-horizontal-5om7we, 20px);
|
|
65
65
|
color: inherit;
|
|
66
66
|
text-decoration: none;
|
|
67
67
|
/* stylelint-disable selector-max-type */
|
|
68
68
|
/* stylelint-enable selector-max-type */
|
|
69
69
|
}
|
|
70
|
-
.awsui_menu-
|
|
70
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_no-content-styling_93a1u_d5fl3_21:not(#\9) {
|
|
71
71
|
padding-block: 0;
|
|
72
72
|
padding-inline: 0;
|
|
73
73
|
color: var(--color-text-dropdown-item-default-zani00, #0f141a);
|
|
74
74
|
}
|
|
75
|
-
.awsui_menu-
|
|
76
|
-
padding-block-end: calc(var(--space-option-padding-vertical-
|
|
75
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9) {
|
|
76
|
+
padding-block-end: calc(var(--space-option-padding-vertical-hggcse, 4px) + var(--space-xxxs-3ulqs3, 2px));
|
|
77
77
|
text-underline-offset: 0.25em;
|
|
78
78
|
text-decoration-thickness: var(--font-decoration-thickness-link-n3u7wl, 1px);
|
|
79
79
|
text-decoration-style: var(--font-decoration-style-link-lw1s9g, solid);
|
|
80
|
-
color: var(--awsui-style-color-default-
|
|
80
|
+
color: var(--awsui-style-color-default-66120l, var(--color-text-link-default-rhby5q, #006ce0));
|
|
81
81
|
font-weight: inherit;
|
|
82
82
|
letter-spacing: normal;
|
|
83
83
|
text-decoration-line: underline;
|
|
@@ -85,33 +85,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
85
85
|
transition-property: color, -webkit-text-decoration;
|
|
86
86
|
transition-property: color, text-decoration;
|
|
87
87
|
transition-property: color, text-decoration, -webkit-text-decoration;
|
|
88
|
-
transition-duration: var(--motion-duration-refresh-only-medium-
|
|
88
|
+
transition-duration: var(--motion-duration-refresh-only-medium-s8g1xv, 165ms);
|
|
89
89
|
}
|
|
90
90
|
@media (prefers-reduced-motion: reduce) {
|
|
91
|
-
.awsui_menu-
|
|
91
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9) {
|
|
92
92
|
animation: none;
|
|
93
93
|
transition: none;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
.awsui-motion-disabled .awsui_menu-
|
|
96
|
+
.awsui-motion-disabled .awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9), .awsui-mode-entering .awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9) {
|
|
97
97
|
animation: none;
|
|
98
98
|
transition: none;
|
|
99
99
|
}
|
|
100
|
-
.awsui_menu-
|
|
100
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9):hover {
|
|
101
101
|
cursor: pointer;
|
|
102
|
-
color: var(--awsui-style-color-hover-
|
|
102
|
+
color: var(--awsui-style-color-hover-66120l, var(--color-text-link-hover-br6snu, #002b66));
|
|
103
103
|
}
|
|
104
|
-
.awsui_menu-
|
|
104
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9):focus {
|
|
105
105
|
outline: none;
|
|
106
106
|
}
|
|
107
|
-
.awsui_menu-
|
|
108
|
-
color: var(--awsui-style-color-active-
|
|
107
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9):active {
|
|
108
|
+
color: var(--awsui-style-color-active-66120l, var(--color-text-link-hover-br6snu, #002b66));
|
|
109
109
|
}
|
|
110
|
-
.awsui_menu-
|
|
110
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9):active, .awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9):focus, .awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75:not(#\9):hover {
|
|
111
111
|
text-decoration-line: underline;
|
|
112
112
|
text-decoration-color: var(--color-text-link-decoration-hover-kui2t9, currentColor);
|
|
113
113
|
}
|
|
114
|
-
.awsui_menu-
|
|
114
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75.awsui_current-breadcrumb_93a1u_d5fl3_112:not(#\9) {
|
|
115
115
|
font-weight: var(--font-weight-button-2p3grf, 700);
|
|
116
116
|
-webkit-font-smoothing: var(--font-smoothing-webkit-dpz0hr, antialiased);
|
|
117
117
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-kjlydy, grayscale);
|
|
@@ -119,63 +119,63 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
119
119
|
font-weight: var(--font-weight-bold-xpar9m, 700);
|
|
120
120
|
text-decoration: none;
|
|
121
121
|
}
|
|
122
|
-
.awsui_menu-
|
|
122
|
+
.awsui_menu-item_93a1u_d5fl3_58.awsui_link-style_93a1u_d5fl3_75.awsui_link-style-highlighted_93a1u_d5fl3_120:not(#\9) {
|
|
123
123
|
color: var(--color-text-link-hover-br6snu, #002b66);
|
|
124
124
|
}
|
|
125
|
-
.awsui_menu-
|
|
125
|
+
.awsui_menu-item_93a1u_d5fl3_58:not(#\9):focus {
|
|
126
126
|
outline: none;
|
|
127
127
|
}
|
|
128
|
-
.awsui_has-category-
|
|
129
|
-
padding-inline-start: calc(var(--space-xs-
|
|
128
|
+
.awsui_has-category-header_93a1u_d5fl3_126 > .awsui_menu-item_93a1u_d5fl3_58:not(#\9), .awsui_has-category-header_93a1u_d5fl3_126 > .awsui_item-tooltip-wrapper_93a1u_d5fl3_126 > .awsui_menu-item_93a1u_d5fl3_58:not(#\9), .awsui_has-category-header_93a1u_d5fl3_126:not(#\9):not(.awsui_has-checkmark_93a1u_d5fl3_126) > span > .awsui_menu-item_93a1u_d5fl3_58 {
|
|
129
|
+
padding-inline-start: calc(var(--space-xs-m9b7jf, 8px) + var(--space-option-padding-horizontal-5om7we, 20px));
|
|
130
130
|
}
|
|
131
|
-
.awsui_has-category-
|
|
131
|
+
.awsui_has-category-header_93a1u_d5fl3_126 > .awsui_menu-item_93a1u_d5fl3_58.awsui_no-content-styling_93a1u_d5fl3_21:not(#\9), .awsui_has-category-header_93a1u_d5fl3_126 > .awsui_item-tooltip-wrapper_93a1u_d5fl3_126 > .awsui_menu-item_93a1u_d5fl3_58.awsui_no-content-styling_93a1u_d5fl3_21:not(#\9), .awsui_has-category-header_93a1u_d5fl3_126:not(#\9):not(.awsui_has-checkmark_93a1u_d5fl3_126) > span > .awsui_menu-item_93a1u_d5fl3_58.awsui_no-content-styling_93a1u_d5fl3_21 {
|
|
132
132
|
padding-inline-start: 0;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.
|
|
136
|
-
padding-inline-end: var(--space-xxs-
|
|
135
|
+
.awsui_icon_93a1u_d5fl3_133:not(#\9) {
|
|
136
|
+
padding-inline-end: var(--space-xxs-3o1yoq, 4px);
|
|
137
137
|
flex-shrink: 0;
|
|
138
138
|
}
|
|
139
|
-
.
|
|
139
|
+
.awsui_icon_93a1u_d5fl3_133.awsui_checkmark_93a1u_d5fl3_137:not(#\9) {
|
|
140
140
|
color: var(--color-item-selected-rz6ktw, #006ce0);
|
|
141
141
|
}
|
|
142
|
-
.
|
|
142
|
+
.awsui_icon_93a1u_d5fl3_133.awsui_disabled_93a1u_d5fl3_26:not(#\9) {
|
|
143
143
|
color: var(--color-text-interactive-disabled-bhh1zo, #b4b4bb);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.awsui_external-
|
|
147
|
-
margin-inline-start: var(--space-xxs-
|
|
146
|
+
.awsui_external-icon_93a1u_d5fl3_144:not(#\9) {
|
|
147
|
+
margin-inline-start: var(--space-xxs-3o1yoq, 4px);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.awsui_content-
|
|
150
|
+
.awsui_content-wrapper_93a1u_d5fl3_148:not(#\9) {
|
|
151
151
|
flex: 1;
|
|
152
152
|
display: flex;
|
|
153
153
|
flex-direction: column;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.awsui_main-
|
|
156
|
+
.awsui_main-row_93a1u_d5fl3_154:not(#\9) {
|
|
157
157
|
display: flex;
|
|
158
158
|
justify-content: space-between;
|
|
159
159
|
align-items: center;
|
|
160
|
-
gap: var(--space-s-
|
|
160
|
+
gap: var(--space-s-kll7oj, 12px);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.awsui_label-
|
|
163
|
+
.awsui_label-tag_93a1u_d5fl3_161:not(#\9) {
|
|
164
164
|
color: var(--color-text-body-default-gtm97i, #0f141a);
|
|
165
165
|
}
|
|
166
|
-
.awsui_label-
|
|
166
|
+
.awsui_label-tag_93a1u_d5fl3_161.awsui_disabled_93a1u_d5fl3_26:not(#\9) {
|
|
167
167
|
color: var(--color-text-interactive-disabled-bhh1zo, #b4b4bb);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
.awsui_secondary-
|
|
170
|
+
.awsui_secondary-text_93a1u_d5fl3_168:not(#\9) {
|
|
171
171
|
font-size: var(--font-size-body-s-89y7qg, 12px);
|
|
172
172
|
line-height: var(--line-height-body-s-gako33, 16px);
|
|
173
173
|
letter-spacing: var(--letter-spacing-body-s-dzcybc, 0.005em);
|
|
174
174
|
color: var(--color-text-dropdown-item-secondary-77b2z6, #656871);
|
|
175
175
|
}
|
|
176
|
-
.awsui_secondary-
|
|
176
|
+
.awsui_secondary-text_93a1u_d5fl3_168.awsui_highlighted_93a1u_d5fl3_36:not(#\9) {
|
|
177
177
|
color: var(--color-text-dropdown-item-highlighted-q6vxih, #0f141a);
|
|
178
178
|
}
|
|
179
|
-
.awsui_secondary-
|
|
179
|
+
.awsui_secondary-text_93a1u_d5fl3_168.awsui_disabled_93a1u_d5fl3_26:not(#\9) {
|
|
180
180
|
color: var(--color-text-interactive-disabled-bhh1zo, #b4b4bb);
|
|
181
181
|
}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"item-element": "awsui_item-
|
|
6
|
-
"no-content-styling": "awsui_no-content-
|
|
7
|
-
"disabled": "
|
|
8
|
-
"show-divider": "awsui_show-
|
|
9
|
-
"highlighted": "
|
|
10
|
-
"is-focused": "awsui_is-
|
|
11
|
-
"visual-refresh": "awsui_visual-
|
|
12
|
-
"menu-item": "awsui_menu-
|
|
13
|
-
"link-style": "awsui_link-
|
|
14
|
-
"current-breadcrumb": "awsui_current-
|
|
15
|
-
"link-style-highlighted": "awsui_link-style-
|
|
16
|
-
"has-category-header": "awsui_has-category-
|
|
17
|
-
"item-tooltip-wrapper": "awsui_item-tooltip-
|
|
18
|
-
"has-checkmark": "awsui_has-
|
|
19
|
-
"icon": "
|
|
20
|
-
"checkmark": "
|
|
21
|
-
"external-icon": "awsui_external-
|
|
22
|
-
"content-wrapper": "awsui_content-
|
|
23
|
-
"main-row": "awsui_main-
|
|
24
|
-
"label-tag": "awsui_label-
|
|
25
|
-
"secondary-text": "awsui_secondary-
|
|
5
|
+
"item-element": "awsui_item-element_93a1u_d5fl3_9",
|
|
6
|
+
"no-content-styling": "awsui_no-content-styling_93a1u_d5fl3_21",
|
|
7
|
+
"disabled": "awsui_disabled_93a1u_d5fl3_26",
|
|
8
|
+
"show-divider": "awsui_show-divider_93a1u_d5fl3_33",
|
|
9
|
+
"highlighted": "awsui_highlighted_93a1u_d5fl3_36",
|
|
10
|
+
"is-focused": "awsui_is-focused_93a1u_d5fl3_51",
|
|
11
|
+
"visual-refresh": "awsui_visual-refresh_93a1u_d5fl3_54",
|
|
12
|
+
"menu-item": "awsui_menu-item_93a1u_d5fl3_58",
|
|
13
|
+
"link-style": "awsui_link-style_93a1u_d5fl3_75",
|
|
14
|
+
"current-breadcrumb": "awsui_current-breadcrumb_93a1u_d5fl3_112",
|
|
15
|
+
"link-style-highlighted": "awsui_link-style-highlighted_93a1u_d5fl3_120",
|
|
16
|
+
"has-category-header": "awsui_has-category-header_93a1u_d5fl3_126",
|
|
17
|
+
"item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_d5fl3_126",
|
|
18
|
+
"has-checkmark": "awsui_has-checkmark_93a1u_d5fl3_126",
|
|
19
|
+
"icon": "awsui_icon_93a1u_d5fl3_133",
|
|
20
|
+
"checkmark": "awsui_checkmark_93a1u_d5fl3_137",
|
|
21
|
+
"external-icon": "awsui_external-icon_93a1u_d5fl3_144",
|
|
22
|
+
"content-wrapper": "awsui_content-wrapper_93a1u_d5fl3_148",
|
|
23
|
+
"main-row": "awsui_main-row_93a1u_d5fl3_154",
|
|
24
|
+
"label-tag": "awsui_label-tag_93a1u_d5fl3_161",
|
|
25
|
+
"secondary-text": "awsui_secondary-text_93a1u_d5fl3_168"
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"button-dropdown": "awsui_button-
|
|
5
|
-
"full-width": "awsui_full-
|
|
6
|
-
"items-list-container": "awsui_items-list-
|
|
7
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
8
|
-
"rotate": "
|
|
9
|
-
"rotate-open": "awsui_rotate-
|
|
10
|
-
"header": "
|
|
11
|
-
"title": "
|
|
12
|
-
"description": "
|
|
13
|
-
"trigger-button": "awsui_trigger-
|
|
14
|
-
"loading": "
|
|
15
|
-
"split-trigger-wrapper": "awsui_split-trigger-
|
|
16
|
-
"trigger-item": "awsui_trigger-
|
|
17
|
-
"has-no-text": "awsui_has-no-
|
|
18
|
-
"visual-refresh": "awsui_visual-
|
|
19
|
-
"has-trigger-text": "awsui_has-trigger-
|
|
20
|
-
"variant-normal": "awsui_variant-
|
|
21
|
-
"split-trigger": "awsui_split-
|
|
22
|
-
"dropdown-trigger": "awsui_dropdown-
|
|
23
|
-
"main-action-full-width": "awsui_main-action-full-
|
|
24
|
-
"main-action-trigger-full-width": "awsui_main-action-trigger-full-
|
|
25
|
-
"filter": "
|
|
26
|
-
"test-utils-button-trigger": "awsui_test-utils-button-
|
|
4
|
+
"button-dropdown": "awsui_button-dropdown_sne0l_15v7y_9",
|
|
5
|
+
"full-width": "awsui_full-width_sne0l_15v7y_12",
|
|
6
|
+
"items-list-container": "awsui_items-list-container_sne0l_15v7y_17",
|
|
7
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_sne0l_15v7y_1",
|
|
8
|
+
"rotate": "awsui_rotate_sne0l_15v7y_36",
|
|
9
|
+
"rotate-open": "awsui_rotate-open_sne0l_15v7y_50",
|
|
10
|
+
"header": "awsui_header_sne0l_15v7y_54",
|
|
11
|
+
"title": "awsui_title_sne0l_15v7y_65",
|
|
12
|
+
"description": "awsui_description_sne0l_15v7y_66",
|
|
13
|
+
"trigger-button": "awsui_trigger-button_sne0l_15v7y_70",
|
|
14
|
+
"loading": "awsui_loading_sne0l_15v7y_74",
|
|
15
|
+
"split-trigger-wrapper": "awsui_split-trigger-wrapper_sne0l_15v7y_78",
|
|
16
|
+
"trigger-item": "awsui_trigger-item_sne0l_15v7y_81",
|
|
17
|
+
"has-no-text": "awsui_has-no-text_sne0l_15v7y_90",
|
|
18
|
+
"visual-refresh": "awsui_visual-refresh_sne0l_15v7y_93",
|
|
19
|
+
"has-trigger-text": "awsui_has-trigger-text_sne0l_15v7y_104",
|
|
20
|
+
"variant-normal": "awsui_variant-normal_sne0l_15v7y_107",
|
|
21
|
+
"split-trigger": "awsui_split-trigger_sne0l_15v7y_78",
|
|
22
|
+
"dropdown-trigger": "awsui_dropdown-trigger_sne0l_15v7y_118",
|
|
23
|
+
"main-action-full-width": "awsui_main-action-full-width_sne0l_15v7y_122",
|
|
24
|
+
"main-action-trigger-full-width": "awsui_main-action-trigger-full-width_sne0l_15v7y_126",
|
|
25
|
+
"filter": "awsui_filter_sne0l_15v7y_130",
|
|
26
|
+
"test-utils-button-trigger": "awsui_test-utils-button-trigger_sne0l_15v7y_136"
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -6,133 +6,133 @@
|
|
|
6
6
|
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
7
7
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
8
8
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
9
|
-
.awsui_button-
|
|
9
|
+
.awsui_button-dropdown_sne0l_15v7y_9:not(#\9) {
|
|
10
10
|
display: inline-block;
|
|
11
11
|
}
|
|
12
|
-
.awsui_button-
|
|
12
|
+
.awsui_button-dropdown_sne0l_15v7y_9.awsui_full-width_sne0l_15v7y_12:not(#\9) {
|
|
13
13
|
inline-size: 100%;
|
|
14
14
|
display: block;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.awsui_items-list-
|
|
17
|
+
.awsui_items-list-container_sne0l_15v7y_17:not(#\9) {
|
|
18
18
|
padding-block: 0;
|
|
19
19
|
padding-inline: 0;
|
|
20
20
|
margin-block: 0;
|
|
21
21
|
margin-inline: 0;
|
|
22
|
-
animation: awsui_awsui-motion-fade-in-
|
|
22
|
+
animation: awsui_awsui-motion-fade-in-0_sne0l_15v7y_1 500ms var(--motion-easing-show-quick-gb8584, ease-out);
|
|
23
23
|
animation-fill-mode: none;
|
|
24
24
|
}
|
|
25
25
|
@media (prefers-reduced-motion: reduce) {
|
|
26
|
-
.awsui_items-list-
|
|
26
|
+
.awsui_items-list-container_sne0l_15v7y_17:not(#\9) {
|
|
27
27
|
animation: none;
|
|
28
28
|
transition: none;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
.awsui-motion-disabled .awsui_items-list-
|
|
31
|
+
.awsui-motion-disabled .awsui_items-list-container_sne0l_15v7y_17:not(#\9), .awsui-mode-entering .awsui_items-list-container_sne0l_15v7y_17:not(#\9) {
|
|
32
32
|
animation: none;
|
|
33
33
|
transition: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
.awsui_rotate_sne0l_15v7y_36:not(#\9) {
|
|
37
37
|
transform: rotate(0deg);
|
|
38
|
-
transition: transform var(--motion-duration-rotate-180-
|
|
38
|
+
transition: transform var(--motion-duration-rotate-180-69rh8b, 135ms) var(--motion-easing-rotate-180-nmpsiw, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
39
39
|
}
|
|
40
40
|
@media (prefers-reduced-motion: reduce) {
|
|
41
|
-
.
|
|
41
|
+
.awsui_rotate_sne0l_15v7y_36:not(#\9) {
|
|
42
42
|
animation: none;
|
|
43
43
|
transition: none;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
.awsui-motion-disabled .
|
|
46
|
+
.awsui-motion-disabled .awsui_rotate_sne0l_15v7y_36:not(#\9), .awsui-mode-entering .awsui_rotate_sne0l_15v7y_36:not(#\9) {
|
|
47
47
|
animation: none;
|
|
48
48
|
transition: none;
|
|
49
49
|
}
|
|
50
|
-
.awsui_rotate-
|
|
50
|
+
.awsui_rotate-open_sne0l_15v7y_50:not(#\9) {
|
|
51
51
|
transform: rotate(-180deg);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
.awsui_header_sne0l_15v7y_54:not(#\9) {
|
|
55
55
|
display: flex;
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
list-style: none;
|
|
58
|
-
padding-block: var(--space-s-
|
|
59
|
-
padding-inline: var(--space-l-
|
|
58
|
+
padding-block: var(--space-s-kll7oj, 12px);
|
|
59
|
+
padding-inline: var(--space-l-dpyxli, 20px);
|
|
60
60
|
border-block-start: var(--border-width-dropdown-4gpjx5, 2px) solid transparent;
|
|
61
61
|
border-block-end: var(--border-width-dropdown-4gpjx5, 2px) solid var(--color-border-dropdown-group-0ocu9j, #c6c6cd);
|
|
62
62
|
border-inline: var(--border-width-dropdown-4gpjx5, 2px) solid transparent;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.
|
|
66
|
-
.
|
|
65
|
+
.awsui_title_sne0l_15v7y_65:not(#\9),
|
|
66
|
+
.awsui_description_sne0l_15v7y_66:not(#\9) {
|
|
67
67
|
color: var(--color-text-top-navigation-title-kiop92, #0f141a);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.awsui_trigger-
|
|
70
|
+
.awsui_trigger-button_sne0l_15v7y_70.awsui_full-width_sne0l_15v7y_12:not(#\9) {
|
|
71
71
|
display: grid;
|
|
72
72
|
grid-template-columns: 1fr auto;
|
|
73
73
|
}
|
|
74
|
-
.awsui_trigger-
|
|
74
|
+
.awsui_trigger-button_sne0l_15v7y_70.awsui_full-width_sne0l_15v7y_12.awsui_loading_sne0l_15v7y_74:not(#\9) {
|
|
75
75
|
grid-template-columns: auto 1fr auto;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.awsui_split-trigger-
|
|
78
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78:not(#\9) {
|
|
79
79
|
display: flex;
|
|
80
80
|
}
|
|
81
|
-
.awsui_split-trigger-
|
|
81
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81 > .awsui_trigger-button_sne0l_15v7y_70:not(#\9):focus, .awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81 > .awsui_trigger-button_sne0l_15v7y_70:not(#\9):hover {
|
|
82
82
|
z-index: 1;
|
|
83
83
|
}
|
|
84
|
-
.awsui_split-trigger-
|
|
84
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81:not(#\9):not(:last-child) > .awsui_trigger-button_sne0l_15v7y_70 {
|
|
85
85
|
border-start-end-radius: 0;
|
|
86
86
|
border-end-end-radius: 0;
|
|
87
|
-
padding-inline-end: var(--space-m-
|
|
88
|
-
margin-inline-end: var(--space-xxxs-
|
|
87
|
+
padding-inline-end: var(--space-m-n8iq8o, 16px);
|
|
88
|
+
margin-inline-end: var(--space-xxxs-3ulqs3, 2px);
|
|
89
89
|
}
|
|
90
|
-
.awsui_split-trigger-
|
|
91
|
-
padding-inline: var(--space-button-icon-only-horizontal-
|
|
90
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81:not(#\9):not(:last-child) > .awsui_trigger-button_sne0l_15v7y_70.awsui_has-no-text_sne0l_15v7y_90 {
|
|
91
|
+
padding-inline: var(--space-button-icon-only-horizontal-p5zb7m, 6px);
|
|
92
92
|
}
|
|
93
|
-
.awsui_split-trigger-
|
|
94
|
-
padding-inline-start: calc(var(--space-s-
|
|
93
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81:not(#\9):not(:last-child) > .awsui_trigger-button_sne0l_15v7y_70.awsui_has-no-text_sne0l_15v7y_90.awsui_visual-refresh_sne0l_15v7y_93 {
|
|
94
|
+
padding-inline-start: calc(var(--space-s-kll7oj, 12px) - 2px);
|
|
95
95
|
}
|
|
96
|
-
.awsui_split-trigger-
|
|
96
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81:not(#\9):not(:first-child) > .awsui_trigger-button_sne0l_15v7y_70 {
|
|
97
97
|
border-start-start-radius: 0;
|
|
98
98
|
border-end-start-radius: 0;
|
|
99
|
-
padding-inline: calc(var(--space-xs-
|
|
99
|
+
padding-inline: calc(var(--space-xs-m9b7jf, 8px) - 2px);
|
|
100
100
|
}
|
|
101
|
-
.awsui_split-trigger-
|
|
102
|
-
padding-inline-end: calc(var(--space-s-
|
|
101
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81:not(#\9):not(:first-child).awsui_visual-refresh_sne0l_15v7y_93 > .awsui_trigger-button_sne0l_15v7y_70 {
|
|
102
|
+
padding-inline-end: calc(var(--space-s-kll7oj, 12px) - 2px);
|
|
103
103
|
}
|
|
104
|
-
.awsui_split-trigger-
|
|
104
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81:not(#\9):not(:first-child).awsui_has-trigger-text_sne0l_15v7y_104 {
|
|
105
105
|
/* this comment keeps the class in the style sheet */
|
|
106
106
|
}
|
|
107
|
-
.awsui_split-trigger-
|
|
107
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81.awsui_variant-normal_sne0l_15v7y_107:not(#\9):not(:last-child) > .awsui_trigger-button_sne0l_15v7y_70 {
|
|
108
108
|
margin-inline-end: 0;
|
|
109
109
|
}
|
|
110
|
-
.awsui_split-trigger-
|
|
110
|
+
.awsui_split-trigger-wrapper_sne0l_15v7y_78 > .awsui_trigger-item_sne0l_15v7y_81.awsui_variant-normal_sne0l_15v7y_107:not(#\9):not(:first-child) > .awsui_trigger-button_sne0l_15v7y_70 {
|
|
111
111
|
margin-inline-start: calc(var(--border-width-button-lffd4t, 2px) * -1);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.awsui_split-
|
|
114
|
+
.awsui_split-trigger_sne0l_15v7y_78:not(#\9) {
|
|
115
115
|
display: contents;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
.awsui_dropdown-
|
|
118
|
+
.awsui_dropdown-trigger_sne0l_15v7y_118:not(#\9) {
|
|
119
119
|
display: contents;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.awsui_main-action-full-
|
|
122
|
+
.awsui_main-action-full-width_sne0l_15v7y_122:not(#\9) {
|
|
123
123
|
flex: 1 1 0;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.awsui_main-action-trigger-full-
|
|
126
|
+
.awsui_main-action-trigger-full-width_sne0l_15v7y_126:not(#\9) {
|
|
127
127
|
flex: 0 0 auto;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.
|
|
130
|
+
.awsui_filter_sne0l_15v7y_130:not(#\9) {
|
|
131
131
|
position: relative;
|
|
132
132
|
z-index: 4;
|
|
133
133
|
flex-shrink: 0;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.awsui_test-utils-button-
|
|
136
|
+
.awsui_test-utils-button-trigger_sne0l_15v7y_136:not(#\9) {
|
|
137
137
|
/* used in test-utils */
|
|
138
138
|
}
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"button-dropdown": "awsui_button-
|
|
6
|
-
"full-width": "awsui_full-
|
|
7
|
-
"items-list-container": "awsui_items-list-
|
|
8
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
9
|
-
"rotate": "
|
|
10
|
-
"rotate-open": "awsui_rotate-
|
|
11
|
-
"header": "
|
|
12
|
-
"title": "
|
|
13
|
-
"description": "
|
|
14
|
-
"trigger-button": "awsui_trigger-
|
|
15
|
-
"loading": "
|
|
16
|
-
"split-trigger-wrapper": "awsui_split-trigger-
|
|
17
|
-
"trigger-item": "awsui_trigger-
|
|
18
|
-
"has-no-text": "awsui_has-no-
|
|
19
|
-
"visual-refresh": "awsui_visual-
|
|
20
|
-
"has-trigger-text": "awsui_has-trigger-
|
|
21
|
-
"variant-normal": "awsui_variant-
|
|
22
|
-
"split-trigger": "awsui_split-
|
|
23
|
-
"dropdown-trigger": "awsui_dropdown-
|
|
24
|
-
"main-action-full-width": "awsui_main-action-full-
|
|
25
|
-
"main-action-trigger-full-width": "awsui_main-action-trigger-full-
|
|
26
|
-
"filter": "
|
|
27
|
-
"test-utils-button-trigger": "awsui_test-utils-button-
|
|
5
|
+
"button-dropdown": "awsui_button-dropdown_sne0l_15v7y_9",
|
|
6
|
+
"full-width": "awsui_full-width_sne0l_15v7y_12",
|
|
7
|
+
"items-list-container": "awsui_items-list-container_sne0l_15v7y_17",
|
|
8
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_sne0l_15v7y_1",
|
|
9
|
+
"rotate": "awsui_rotate_sne0l_15v7y_36",
|
|
10
|
+
"rotate-open": "awsui_rotate-open_sne0l_15v7y_50",
|
|
11
|
+
"header": "awsui_header_sne0l_15v7y_54",
|
|
12
|
+
"title": "awsui_title_sne0l_15v7y_65",
|
|
13
|
+
"description": "awsui_description_sne0l_15v7y_66",
|
|
14
|
+
"trigger-button": "awsui_trigger-button_sne0l_15v7y_70",
|
|
15
|
+
"loading": "awsui_loading_sne0l_15v7y_74",
|
|
16
|
+
"split-trigger-wrapper": "awsui_split-trigger-wrapper_sne0l_15v7y_78",
|
|
17
|
+
"trigger-item": "awsui_trigger-item_sne0l_15v7y_81",
|
|
18
|
+
"has-no-text": "awsui_has-no-text_sne0l_15v7y_90",
|
|
19
|
+
"visual-refresh": "awsui_visual-refresh_sne0l_15v7y_93",
|
|
20
|
+
"has-trigger-text": "awsui_has-trigger-text_sne0l_15v7y_104",
|
|
21
|
+
"variant-normal": "awsui_variant-normal_sne0l_15v7y_107",
|
|
22
|
+
"split-trigger": "awsui_split-trigger_sne0l_15v7y_78",
|
|
23
|
+
"dropdown-trigger": "awsui_dropdown-trigger_sne0l_15v7y_118",
|
|
24
|
+
"main-action-full-width": "awsui_main-action-full-width_sne0l_15v7y_122",
|
|
25
|
+
"main-action-trigger-full-width": "awsui_main-action-trigger-full-width_sne0l_15v7y_126",
|
|
26
|
+
"filter": "awsui_filter_sne0l_15v7y_130",
|
|
27
|
+
"test-utils-button-trigger": "awsui_test-utils-button-trigger_sne0l_15v7y_136"
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CancelableEventHandler } from '../../types/events';
|
|
2
|
+
import { CancelableEventHandler, NonCancelableCustomEvent } from '../../types/events';
|
|
3
3
|
import { ButtonDropdownProps, ButtonDropdownSettings, GroupToggle, HighlightProps, ItemActivate } from '../interfaces';
|
|
4
|
+
type DropdownFocusLeaveEvent = NonCancelableCustomEvent<Pick<React.FocusEvent, 'target' | 'relatedTarget'>>;
|
|
4
5
|
interface UseButtonDropdownOptions extends ButtonDropdownSettings {
|
|
5
6
|
items: ButtonDropdownProps.Items;
|
|
6
7
|
onItemClick?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;
|
|
7
8
|
onItemFollow?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;
|
|
8
9
|
onReturnFocus: () => void;
|
|
10
|
+
isTriggerElement: (element: Element) => boolean;
|
|
9
11
|
expandToViewport?: boolean;
|
|
10
12
|
hasFiltering: boolean;
|
|
11
13
|
}
|
|
@@ -15,7 +17,7 @@ interface UseButtonDropdownApi extends HighlightProps {
|
|
|
15
17
|
onKeyUp: (event: React.KeyboardEvent) => void;
|
|
16
18
|
onItemActivate: ItemActivate;
|
|
17
19
|
onGroupToggle: GroupToggle;
|
|
18
|
-
onDropdownFocusLeave: () => void;
|
|
20
|
+
onDropdownFocusLeave: (event: DropdownFocusLeaveEvent) => void;
|
|
19
21
|
onDropdownBlur: () => void;
|
|
20
22
|
toggleDropdown: (options?: {
|
|
21
23
|
moveHighlightOnOpen?: boolean;
|
|
@@ -32,6 +34,7 @@ export declare function useButtonDropdown({
|
|
|
32
34
|
onItemClick,
|
|
33
35
|
onItemFollow,
|
|
34
36
|
onReturnFocus,
|
|
37
|
+
isTriggerElement,
|
|
35
38
|
hasExpandableGroups,
|
|
36
39
|
isInRestrictedView,
|
|
37
40
|
expandToViewport,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-button-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/utils/use-button-dropdown.ts"],"names":[],"mappings":"AAEA,OAAO,KAA+C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"use-button-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/utils/use-button-dropdown.ts"],"names":[],"mappings":"AAEA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKvH,KAAK,uBAAuB,GAAG,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC,CAAC;AAE5G,UAAU,wBAAyB,SAAQ,sBAAsB;IAC/D,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACjC,WAAW,CAAC,EAAE,sBAAsB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAC3E,YAAY,CAAC,EAAE,sBAAsB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAC5E,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,oBAAqB,SAAQ,cAAc;IACnD,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IAChD,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IAC9C,cAAc,EAAE,YAAY,CAAC;IAC7B,aAAa,EAAE,WAAW,CAAC;IAC3B,oBAAoB,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC/D,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,mBAAmB,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACtE,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACzC,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAAW,EACX,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,kBAA0B,EAC1B,gBAAwB,EACxB,YAAY,GACb,EAAE,wBAAwB,GAAG,oBAAoB,CAuQjD"}
|
|
@@ -4,10 +4,12 @@ import { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
4
4
|
import { useOpenState } from '../../internal/components/options-list/utils/use-open-state';
|
|
5
5
|
import { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';
|
|
6
6
|
import { KeyCode } from '../../internal/keycode';
|
|
7
|
+
import { isElement } from '../../internal/utils/dom';
|
|
8
|
+
import { isKeyboardInteraction } from '../../internal/utils/focus-visible';
|
|
7
9
|
import { filterItems } from './filter-items';
|
|
8
10
|
import useHighlightedMenu from './use-highlighted-menu';
|
|
9
11
|
import { getItemTarget, isCheckboxItem, isItemGroup, isLinkItem } from './utils';
|
|
10
|
-
export function useButtonDropdown({ items, onItemClick, onItemFollow, onReturnFocus, hasExpandableGroups, isInRestrictedView = false, expandToViewport = false, hasFiltering, }) {
|
|
12
|
+
export function useButtonDropdown({ items, onItemClick, onItemFollow, onReturnFocus, isTriggerElement, hasExpandableGroups, isInRestrictedView = false, expandToViewport = false, hasFiltering, }) {
|
|
11
13
|
const [filteringValue, setFilteringValue] = useState('');
|
|
12
14
|
const filteredItems = useMemo(() => (hasFiltering && filteringValue ? filterItems(items, filteringValue) : items), [hasFiltering, filteringValue, items]);
|
|
13
15
|
const showExpandableGroups = hasExpandableGroups && !filteringValue;
|
|
@@ -41,8 +43,18 @@ export function useButtonDropdown({ items, onItemClick, onItemFollow, onReturnFo
|
|
|
41
43
|
}
|
|
42
44
|
openStateProps.toggleDropdown();
|
|
43
45
|
};
|
|
44
|
-
const onDropdownFocusLeave = () => {
|
|
46
|
+
const onDropdownFocusLeave = (event) => {
|
|
45
47
|
if (hasFiltering && isOpen) {
|
|
48
|
+
const { relatedTarget } = event.detail;
|
|
49
|
+
// When focus moves from the filter input to the trigger via a mouse click, the trigger's
|
|
50
|
+
// own click handler already closes the dropdown.
|
|
51
|
+
const clickedTrigger = !!relatedTarget &&
|
|
52
|
+
isElement(relatedTarget) &&
|
|
53
|
+
isTriggerElement(relatedTarget) &&
|
|
54
|
+
!isKeyboardInteraction(relatedTarget);
|
|
55
|
+
if (clickedTrigger) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
46
58
|
if (expandToViewport) {
|
|
47
59
|
// When expanded to viewport the focus can't move naturally to the next element.
|
|
48
60
|
// Returning the focus to the trigger instead.
|