@cloudscape-design/components 3.0.1401 → 3.0.1403
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 +267 -267
- 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 +97 -97
- package/alert/styles.selectors.js +27 -27
- package/anchor-navigation/styles.css.js +8 -8
- package/anchor-navigation/styles.scoped.css +64 -64
- package/anchor-navigation/styles.selectors.js +8 -8
- package/annotation-context/annotation/styles.css.js +13 -13
- package/annotation-context/annotation/styles.scoped.css +36 -36
- 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 +34 -34
- 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 +18 -18
- 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 +21 -21
- package/app-layout/styles.selectors.js +12 -12
- package/app-layout/toggles/styles.css.js +2 -2
- package/app-layout/toggles/styles.scoped.css +20 -20
- 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 +265 -265
- 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 +144 -144
- 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 +14 -14
- 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 +5 -5
- 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 +87 -87
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +15 -15
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +62 -62
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +15 -15
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +6 -6
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +34 -34
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +6 -6
- package/area-chart/styles.css.js +6 -6
- package/area-chart/styles.scoped.css +16 -16
- package/area-chart/styles.selectors.js +6 -6
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +49 -49
- package/attribute-editor/styles.selectors.js +15 -15
- package/badge/styles.css.js +10 -10
- package/badge/styles.scoped.css +62 -62
- package/badge/styles.selectors.js +10 -10
- package/box/styles.css.js +214 -214
- package/box/styles.scoped.css +542 -542
- package/box/styles.selectors.js +214 -214
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +44 -44
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/breadcrumb-group/styles.css.js +14 -14
- package/breadcrumb-group/styles.scoped.css +59 -59
- package/breadcrumb-group/styles.selectors.js +14 -14
- package/button/interfaces.d.ts +3 -1
- package/button/interfaces.d.ts.map +1 -1
- package/button/interfaces.js.map +1 -1
- package/button/styles.css.js +24 -24
- package/button/styles.scoped.css +227 -227
- package/button/styles.selectors.js +24 -24
- package/button-dropdown/category-elements/styles.css.js +18 -18
- package/button-dropdown/category-elements/styles.scoped.css +61 -61
- package/button-dropdown/category-elements/styles.selectors.js +18 -18
- package/button-dropdown/interfaces.d.ts +6 -3
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +21 -21
- package/button-dropdown/item-element/styles.scoped.css +86 -86
- package/button-dropdown/item-element/styles.selectors.js +21 -21
- package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
- package/button-dropdown/mobile-expandable-group/styles.scoped.css +11 -11
- package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/button-dropdown/styles.css.js +23 -23
- package/button-dropdown/styles.scoped.css +45 -45
- package/button-dropdown/styles.selectors.js +23 -23
- package/button-group/interfaces.d.ts +22 -13
- package/button-group/interfaces.d.ts.map +1 -1
- package/button-group/interfaces.js.map +1 -1
- package/button-group/styles.css.js +4 -4
- package/button-group/styles.scoped.css +13 -13
- package/button-group/styles.selectors.js +4 -4
- package/calendar/grid/index.js.map +1 -1
- package/calendar/interfaces.d.ts +3 -1
- package/calendar/interfaces.d.ts.map +1 -1
- package/calendar/interfaces.js.map +1 -1
- package/calendar/styles.css.js +21 -21
- package/calendar/styles.scoped.css +133 -133
- package/calendar/styles.selectors.js +21 -21
- package/cards/styles.css.js +39 -39
- package/cards/styles.scoped.css +70 -70
- package/cards/styles.selectors.js +39 -39
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +20 -20
- 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 +262 -262
- package/code-editor/styles.selectors.js +33 -33
- package/collection-preferences/styles.css.js +38 -38
- package/collection-preferences/styles.scoped.css +85 -85
- 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 +13 -13
- 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 +59 -59
- package/column-layout/styles.selectors.js +13 -13
- package/container/styles.css.js +34 -34
- package/container/styles.scoped.css +136 -136
- package/container/styles.selectors.js +34 -34
- 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/copy-to-clipboard/interfaces.d.ts +3 -1
- package/copy-to-clipboard/interfaces.d.ts.map +1 -1
- package/copy-to-clipboard/interfaces.js.map +1 -1
- 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 +20 -20
- package/date-picker/styles.selectors.js +7 -7
- package/date-range-picker/calendar/grids/grid-cell.d.ts +1 -1
- package/date-range-picker/calendar/grids/grid-cell.d.ts.map +1 -1
- package/date-range-picker/calendar/grids/grid-cell.js.map +1 -1
- package/date-range-picker/calendar/grids/styles.css.js +30 -30
- package/date-range-picker/calendar/grids/styles.scoped.css +127 -127
- package/date-range-picker/calendar/grids/styles.selectors.js +30 -30
- package/date-range-picker/interfaces.d.ts +3 -1
- package/date-range-picker/interfaces.d.ts.map +1 -1
- package/date-range-picker/interfaces.js.map +1 -1
- 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 +72 -72
- package/date-range-picker/styles.selectors.js +23 -23
- package/dialog/styles.css.js +8 -8
- package/dialog/styles.scoped.css +46 -46
- package/dialog/styles.selectors.js +8 -8
- package/divider/styles.css.js +6 -6
- package/divider/styles.scoped.css +16 -16
- package/divider/styles.selectors.js +6 -6
- package/drawer/interfaces.d.ts +3 -1
- package/drawer/interfaces.d.ts.map +1 -1
- package/drawer/interfaces.js.map +1 -1
- package/drawer/styles.css.js +29 -29
- package/drawer/styles.scoped.css +79 -79
- package/drawer/styles.selectors.js +29 -29
- package/dropdown/styles.css.js +20 -20
- package/dropdown/styles.scoped.css +66 -66
- package/dropdown/styles.selectors.js +20 -20
- package/expandable-section/styles.css.js +44 -44
- package/expandable-section/styles.scoped.css +172 -172
- package/expandable-section/styles.selectors.js +44 -44
- package/file-dropzone/styles.css.js +3 -3
- package/file-dropzone/styles.scoped.css +19 -19
- package/file-dropzone/styles.selectors.js +3 -3
- package/file-input/styles.css.js +5 -5
- package/file-input/styles.scoped.css +28 -28
- package/file-input/styles.selectors.js +5 -5
- package/file-token-group/styles.css.js +23 -23
- package/file-token-group/styles.scoped.css +84 -84
- 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 +263 -263
- package/flashbar/styles.selectors.js +50 -50
- package/form/styles.css.js +8 -8
- package/form/styles.scoped.css +21 -21
- package/form/styles.selectors.js +8 -8
- package/form-field/styles.css.js +24 -24
- package/form-field/styles.scoped.css +69 -69
- package/form-field/styles.selectors.js +24 -24
- package/grid/styles.css.js +53 -53
- package/grid/styles.scoped.css +63 -63
- package/grid/styles.selectors.js +53 -53
- package/header/styles.css.js +35 -35
- package/header/styles.scoped.css +146 -146
- package/header/styles.selectors.js +35 -35
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +192 -192
- 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 +43 -43
- package/icon/styles.scoped.css +174 -174
- package/icon/styles.selectors.js +43 -43
- package/input/internal.d.ts.map +1 -1
- package/input/internal.js +14 -18
- package/input/internal.js.map +1 -1
- package/input/styles.css.js +37 -38
- package/input/styles.scoped.css +220 -296
- package/input/styles.selectors.js +37 -38
- package/internal/base-component/styles.scoped.css +2 -2
- package/internal/base-theme/styles.scoped.css +2578 -2578
- package/internal/components/abstract-switch/styles.css.js +13 -13
- package/internal/components/abstract-switch/styles.scoped.css +28 -28
- package/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/internal/components/autosuggest-input/index.js +5 -2
- package/internal/components/autosuggest-input/index.js.map +1 -1
- package/internal/components/autosuggest-input/styles.css.js +27 -27
- package/internal/components/autosuggest-input/styles.scoped.css +79 -79
- package/internal/components/autosuggest-input/styles.selectors.js +27 -27
- package/internal/components/button-trigger/styles.css.js +23 -23
- package/internal/components/button-trigger/styles.scoped.css +131 -131
- package/internal/components/button-trigger/styles.selectors.js +23 -23
- package/internal/components/cartesian-chart/styles.css.js +28 -28
- package/internal/components/cartesian-chart/styles.scoped.css +44 -44
- package/internal/components/cartesian-chart/styles.selectors.js +28 -28
- package/internal/components/chart-filter/styles.css.js +3 -3
- package/internal/components/chart-filter/styles.scoped.css +8 -8
- package/internal/components/chart-filter/styles.selectors.js +3 -3
- package/internal/components/chart-legend/styles.css.js +6 -6
- package/internal/components/chart-legend/styles.scoped.css +26 -26
- package/internal/components/chart-legend/styles.selectors.js +6 -6
- package/internal/components/chart-plot/styles.css.js +5 -5
- package/internal/components/chart-plot/styles.scoped.css +6 -6
- package/internal/components/chart-plot/styles.selectors.js +5 -5
- package/internal/components/chart-popover/styles.css.js +3 -3
- package/internal/components/chart-popover/styles.scoped.css +12 -12
- 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 +58 -58
- 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 +15 -15
- package/internal/components/chart-series-marker/styles.selectors.js +5 -5
- package/internal/components/chart-status-container/styles.css.js +2 -2
- package/internal/components/chart-status-container/styles.scoped.css +3 -3
- package/internal/components/chart-status-container/styles.selectors.js +2 -2
- package/internal/components/chart-wrapper/styles.css.js +9 -9
- package/internal/components/chart-wrapper/styles.scoped.css +16 -16
- package/internal/components/chart-wrapper/styles.selectors.js +9 -9
- package/internal/components/checkbox-icon/styles.css.js +9 -9
- package/internal/components/checkbox-icon/styles.scoped.css +20 -20
- package/internal/components/checkbox-icon/styles.selectors.js +9 -9
- package/internal/components/control-group/styles.css.js +16 -16
- package/internal/components/control-group/styles.scoped.css +34 -34
- package/internal/components/control-group/styles.selectors.js +16 -16
- package/internal/components/drag-handle/styles.css.js +14 -14
- package/internal/components/drag-handle/styles.scoped.css +32 -32
- package/internal/components/drag-handle/styles.selectors.js +14 -14
- package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/internal/components/drag-handle-wrapper/styles.scoped.css +80 -80
- package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/internal/components/dropdown-footer/styles.css.js +3 -3
- package/internal/components/dropdown-footer/styles.scoped.css +10 -10
- package/internal/components/dropdown-footer/styles.selectors.js +3 -3
- package/internal/components/dropdown-status/styles.css.js +2 -2
- package/internal/components/dropdown-status/styles.scoped.css +11 -11
- 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 +34 -34
- 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 +35 -35
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/components/option/interfaces.d.ts +1 -1
- package/internal/components/option/interfaces.d.ts.map +1 -1
- package/internal/components/option/interfaces.js.map +1 -1
- package/internal/components/option/styles.css.js +17 -17
- package/internal/components/option/styles.scoped.css +50 -50
- package/internal/components/option/styles.selectors.js +17 -17
- package/internal/components/options-list/styles.css.js +3 -3
- package/internal/components/options-list/styles.scoped.css +12 -12
- package/internal/components/options-list/styles.selectors.js +3 -3
- package/internal/components/panel-resize-handle/styles.css.js +3 -3
- package/internal/components/panel-resize-handle/styles.scoped.css +12 -12
- package/internal/components/panel-resize-handle/styles.selectors.js +3 -3
- package/internal/components/radio-button/styles.css.js +7 -7
- package/internal/components/radio-button/styles.scoped.css +33 -33
- 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 +118 -118
- 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 +50 -50
- 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 +16 -16
- 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 +55 -55
- 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/styles/tokens.js +1167 -1167
- package/internal/generated/theming/index.cjs +1167 -1167
- package/internal/generated/theming/index.js +1167 -1167
- package/internal/hooks/use-hidden-description/index.d.ts +2 -1
- package/internal/hooks/use-hidden-description/index.d.ts.map +1 -1
- package/internal/hooks/use-hidden-description/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 +114 -114
- package/item-card/styles.selectors.js +14 -14
- package/key-value-pairs/styles.css.js +8 -8
- package/key-value-pairs/styles.scoped.css +32 -32
- package/key-value-pairs/styles.selectors.js +8 -8
- package/link/styles.css.js +21 -21
- package/link/styles.scoped.css +187 -187
- package/link/styles.selectors.js +21 -21
- package/list/styles.css.js +5 -5
- package/list/styles.scoped.css +15 -15
- 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 +22 -22
- package/mixed-line-bar-chart/styles.selectors.js +11 -11
- package/modal/styles.css.js +32 -32
- package/modal/styles.scoped.css +90 -90
- package/modal/styles.selectors.js +32 -32
- package/multiselect/styles.css.js +5 -5
- package/multiselect/styles.scoped.css +16 -16
- package/multiselect/styles.selectors.js +5 -5
- package/package.json +1 -1
- package/pagination/styles.css.js +12 -12
- package/pagination/styles.scoped.css +67 -67
- package/pagination/styles.selectors.js +12 -12
- package/panel-layout/styles.css.js +7 -7
- package/panel-layout/styles.scoped.css +25 -25
- package/panel-layout/styles.selectors.js +7 -7
- package/pie-chart/styles.css.js +27 -27
- package/pie-chart/styles.scoped.css +73 -73
- package/pie-chart/styles.selectors.js +27 -27
- package/popover/styles.css.js +58 -58
- package/popover/styles.scoped.css +171 -171
- package/popover/styles.selectors.js +58 -58
- package/progress-bar/styles.css.js +19 -19
- package/progress-bar/styles.scoped.css +58 -58
- package/progress-bar/styles.selectors.js +19 -19
- package/prompt-input/styles.css.js +26 -26
- package/prompt-input/styles.scoped.css +167 -167
- 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 +85 -85
- package/property-filter/filtering-token/styles.selectors.js +18 -18
- package/property-filter/styles.css.js +39 -39
- package/property-filter/styles.scoped.css +109 -109
- package/property-filter/styles.selectors.js +39 -39
- package/radio-button/styles.css.js +1 -1
- package/radio-button/styles.scoped.css +6 -6
- package/radio-button/styles.selectors.js +1 -1
- package/radio-group/styles.css.js +5 -5
- package/radio-group/styles.scoped.css +15 -15
- 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 +14 -14
- package/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
- package/s3-resource-selector/s3-modal/styles.css.js +3 -3
- package/s3-resource-selector/s3-modal/styles.scoped.css +7 -7
- package/s3-resource-selector/s3-modal/styles.selectors.js +3 -3
- package/segmented-control/interfaces.d.ts +2 -2
- package/segmented-control/interfaces.d.ts.map +1 -1
- package/segmented-control/interfaces.js.map +1 -1
- package/segmented-control/styles.css.js +27 -27
- package/segmented-control/styles.scoped.css +109 -109
- package/segmented-control/styles.selectors.js +27 -27
- package/select/interfaces.d.ts +1 -1
- package/select/interfaces.js.map +1 -1
- package/select/parts/styles.css.js +21 -21
- package/select/parts/styles.scoped.css +46 -46
- package/select/parts/styles.selectors.js +21 -21
- package/select/styles.css.js +3 -3
- package/select/styles.scoped.css +8 -8
- package/select/styles.selectors.js +3 -3
- package/side-navigation/styles.css.js +64 -64
- package/side-navigation/styles.scoped.css +237 -237
- package/side-navigation/styles.selectors.js +64 -64
- package/skeleton/styles.css.js +15 -15
- package/skeleton/styles.scoped.css +47 -47
- package/skeleton/styles.selectors.js +15 -15
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +201 -201
- package/slider/styles.selectors.js +26 -26
- package/space-between/styles.css.js +24 -24
- package/space-between/styles.scoped.css +41 -41
- package/space-between/styles.selectors.js +24 -24
- package/spinner/styles.css.js +14 -14
- package/spinner/styles.scoped.css +42 -42
- package/spinner/styles.selectors.js +14 -14
- package/split-panel/icons/styles.css.js +22 -22
- package/split-panel/icons/styles.scoped.css +47 -47
- package/split-panel/icons/styles.selectors.js +22 -22
- package/split-panel/styles.css.js +38 -38
- package/split-panel/styles.scoped.css +109 -109
- package/split-panel/styles.selectors.js +38 -38
- package/status-indicator/styles.css.js +26 -26
- package/status-indicator/styles.scoped.css +90 -90
- package/status-indicator/styles.selectors.js +26 -26
- package/steps/styles.css.js +17 -17
- package/steps/styles.scoped.css +60 -60
- package/steps/styles.selectors.js +17 -17
- package/table/body-cell/disabled-inline-editor.d.ts +2 -1
- package/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
- package/table/body-cell/disabled-inline-editor.js.map +1 -1
- package/table/body-cell/styles.css.js +47 -47
- package/table/body-cell/styles.scoped.css +886 -886
- package/table/body-cell/styles.selectors.js +47 -47
- package/table/header-cell/styles.css.js +39 -39
- package/table/header-cell/styles.scoped.css +225 -225
- package/table/header-cell/styles.selectors.js +39 -39
- package/table/interfaces.d.ts +5 -3
- package/table/interfaces.d.ts.map +1 -1
- package/table/interfaces.js.map +1 -1
- package/table/resizer/styles.css.js +17 -17
- package/table/resizer/styles.scoped.css +54 -54
- 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/sticky-scrollbar/styles.css.js +6 -6
- package/table/sticky-scrollbar/styles.scoped.css +12 -12
- package/table/sticky-scrollbar/styles.selectors.js +6 -6
- package/table/styles.css.js +37 -37
- package/table/styles.scoped.css +93 -93
- package/table/styles.selectors.js +37 -37
- package/table-body-cell/styles.css.js +2 -2
- package/table-body-cell/styles.scoped.css +12 -12
- package/table-body-cell/styles.selectors.js +2 -2
- package/table-header-cell/styles.css.js +6 -6
- package/table-header-cell/styles.scoped.css +14 -14
- package/table-header-cell/styles.selectors.js +6 -6
- package/table-root/styles.css.js +5 -5
- package/table-root/styles.scoped.css +17 -17
- package/table-root/styles.selectors.js +5 -5
- package/table-row/styles.css.js +2 -2
- package/table-row/styles.scoped.css +13 -13
- package/table-row/styles.selectors.js +2 -2
- package/tabs/interfaces.d.ts +4 -2
- package/tabs/interfaces.d.ts.map +1 -1
- package/tabs/interfaces.js.map +1 -1
- package/tabs/styles.css.js +30 -30
- package/tabs/styles.scoped.css +123 -123
- package/tabs/styles.selectors.js +30 -30
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +29 -29
- package/tag-editor/styles.selectors.js +3 -3
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +149 -149
- package/text-content/styles.selectors.js +1 -1
- package/text-filter/styles.css.js +3 -3
- package/text-filter/styles.scoped.css +11 -11
- package/text-filter/styles.selectors.js +3 -3
- package/textarea/styles.css.js +9 -9
- package/textarea/styles.scoped.css +62 -62
- package/textarea/styles.selectors.js +9 -9
- package/tiles/styles.css.js +30 -30
- package/tiles/styles.scoped.css +165 -165
- package/tiles/styles.selectors.js +30 -30
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +38 -38
- package/toggle/styles.selectors.js +10 -10
- package/toggle-button/interfaces.d.ts +3 -1
- package/toggle-button/interfaces.d.ts.map +1 -1
- package/toggle-button/interfaces.js.map +1 -1
- package/toggle-button/styles.css.js +4 -4
- package/toggle-button/styles.scoped.css +12 -12
- package/toggle-button/styles.selectors.js +4 -4
- package/token/styles.css.js +14 -14
- package/token/styles.scoped.css +80 -80
- package/token/styles.selectors.js +14 -14
- package/token-group/styles.css.js +5 -5
- package/token-group/styles.scoped.css +10 -10
- 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 +168 -168
- package/top-navigation/styles.selectors.js +47 -47
- package/tree-view/styles.css.js +2 -2
- package/tree-view/styles.scoped.css +12 -12
- 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 +20 -20
- 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 +8 -8
- package/tree-view/vertical-connector/styles.selectors.js +3 -3
- package/truncated-text/styles.css.js +1 -1
- package/truncated-text/styles.scoped.css +10 -10
- package/truncated-text/styles.selectors.js +1 -1
- package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +45 -45
- 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 +63 -63
- 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 +17 -17
- package/tutorial-panel/styles.selectors.js +1 -1
- package/types/option.d.ts +1 -1
- package/types/option.d.ts.map +1 -1
- package/types/option.js.map +1 -1
- package/wizard/styles.css.js +30 -30
- package/wizard/styles.scoped.css +122 -122
- package/wizard/styles.selectors.js +30 -30
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"content": "
|
|
6
|
-
"button": "
|
|
7
|
-
"variant-normal": "awsui_variant-
|
|
8
|
-
"disabled": "
|
|
9
|
-
"variant-primary": "awsui_variant-
|
|
10
|
-
"variant-link": "awsui_variant-
|
|
11
|
-
"variant-icon": "awsui_variant-
|
|
12
|
-
"variant-control-group-action": "awsui_variant-control-group-
|
|
13
|
-
"variant-inline-icon": "awsui_variant-inline-
|
|
14
|
-
"variant-inline-icon-pointer-target": "awsui_variant-inline-icon-pointer-
|
|
15
|
-
"variant-inline-link": "awsui_variant-inline-
|
|
16
|
-
"variant-modal-dismiss": "awsui_variant-modal-
|
|
17
|
-
"variant-flashbar-icon": "awsui_variant-flashbar-
|
|
18
|
-
"variant-breadcrumb-group": "awsui_variant-breadcrumb-
|
|
19
|
-
"variant-menu-trigger": "awsui_variant-menu-
|
|
20
|
-
"button-no-text": "awsui_button-no-
|
|
21
|
-
"button-no-wrap": "awsui_button-no-
|
|
22
|
-
"full-width": "awsui_full-
|
|
23
|
-
"button-compact": "awsui_button-
|
|
24
|
-
"icon-left": "awsui_icon-
|
|
25
|
-
"icon-right": "awsui_icon-
|
|
26
|
-
"icon": "
|
|
27
|
-
"link": "
|
|
28
|
-
"disabled-with-reason": "awsui_disabled-with-
|
|
5
|
+
"content": "awsui_content_vjswe_fe85r_66",
|
|
6
|
+
"button": "awsui_button_vjswe_fe85r_70",
|
|
7
|
+
"variant-normal": "awsui_variant-normal_vjswe_fe85r_132",
|
|
8
|
+
"disabled": "awsui_disabled_vjswe_fe85r_150",
|
|
9
|
+
"variant-primary": "awsui_variant-primary_vjswe_fe85r_157",
|
|
10
|
+
"variant-link": "awsui_variant-link_vjswe_fe85r_182",
|
|
11
|
+
"variant-icon": "awsui_variant-icon_vjswe_fe85r_207",
|
|
12
|
+
"variant-control-group-action": "awsui_variant-control-group-action_vjswe_fe85r_232",
|
|
13
|
+
"variant-inline-icon": "awsui_variant-inline-icon_vjswe_fe85r_259",
|
|
14
|
+
"variant-inline-icon-pointer-target": "awsui_variant-inline-icon-pointer-target_vjswe_fe85r_284",
|
|
15
|
+
"variant-inline-link": "awsui_variant-inline-link_vjswe_fe85r_309",
|
|
16
|
+
"variant-modal-dismiss": "awsui_variant-modal-dismiss_vjswe_fe85r_338",
|
|
17
|
+
"variant-flashbar-icon": "awsui_variant-flashbar-icon_vjswe_fe85r_363",
|
|
18
|
+
"variant-breadcrumb-group": "awsui_variant-breadcrumb-group_vjswe_fe85r_388",
|
|
19
|
+
"variant-menu-trigger": "awsui_variant-menu-trigger_vjswe_fe85r_418",
|
|
20
|
+
"button-no-text": "awsui_button-no-text_vjswe_fe85r_516",
|
|
21
|
+
"button-no-wrap": "awsui_button-no-wrap_vjswe_fe85r_520",
|
|
22
|
+
"full-width": "awsui_full-width_vjswe_fe85r_523",
|
|
23
|
+
"button-compact": "awsui_button-compact_vjswe_fe85r_540",
|
|
24
|
+
"icon-left": "awsui_icon-left_vjswe_fe85r_563",
|
|
25
|
+
"icon-right": "awsui_icon-right_vjswe_fe85r_568",
|
|
26
|
+
"icon": "awsui_icon_vjswe_fe85r_563",
|
|
27
|
+
"link": "awsui_link_vjswe_fe85r_587",
|
|
28
|
+
"disabled-with-reason": "awsui_disabled-with-reason_vjswe_fe85r_587"
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"header": "
|
|
5
|
-
"disabled": "
|
|
6
|
-
"no-content-styling": "awsui_no-content-
|
|
7
|
-
"expandable-header": "awsui_expandable-
|
|
8
|
-
"rolled-down": "awsui_rolled-
|
|
9
|
-
"highlighted": "
|
|
10
|
-
"is-focused": "awsui_is-
|
|
11
|
-
"visual-refresh": "awsui_visual-
|
|
12
|
-
"category": "
|
|
13
|
-
"expandable": "
|
|
14
|
-
"variant-navigation": "awsui_variant-
|
|
15
|
-
"expand-icon": "awsui_expand-
|
|
16
|
-
"expand-icon-up": "awsui_expand-icon-
|
|
17
|
-
"expand-icon-right": "awsui_expand-icon-
|
|
18
|
-
"items-list-container": "awsui_items-list-
|
|
19
|
-
"in-dropdown": "awsui_in-
|
|
20
|
-
"icon-wrapper": "awsui_icon-
|
|
21
|
-
"header-content": "awsui_header-
|
|
4
|
+
"header": "awsui_header_16mm3_196hb_9",
|
|
5
|
+
"disabled": "awsui_disabled_16mm3_196hb_25",
|
|
6
|
+
"no-content-styling": "awsui_no-content-styling_16mm3_196hb_29",
|
|
7
|
+
"expandable-header": "awsui_expandable-header_16mm3_196hb_35",
|
|
8
|
+
"rolled-down": "awsui_rolled-down_16mm3_196hb_46",
|
|
9
|
+
"highlighted": "awsui_highlighted_16mm3_196hb_49",
|
|
10
|
+
"is-focused": "awsui_is-focused_16mm3_196hb_72",
|
|
11
|
+
"visual-refresh": "awsui_visual-refresh_16mm3_196hb_75",
|
|
12
|
+
"category": "awsui_category_16mm3_196hb_79",
|
|
13
|
+
"expandable": "awsui_expandable_16mm3_196hb_35",
|
|
14
|
+
"variant-navigation": "awsui_variant-navigation_16mm3_196hb_94",
|
|
15
|
+
"expand-icon": "awsui_expand-icon_16mm3_196hb_101",
|
|
16
|
+
"expand-icon-up": "awsui_expand-icon-up_16mm3_196hb_119",
|
|
17
|
+
"expand-icon-right": "awsui_expand-icon-right_16mm3_196hb_122",
|
|
18
|
+
"items-list-container": "awsui_items-list-container_16mm3_196hb_130",
|
|
19
|
+
"in-dropdown": "awsui_in-dropdown_16mm3_196hb_139",
|
|
20
|
+
"icon-wrapper": "awsui_icon-wrapper_16mm3_196hb_143",
|
|
21
|
+
"header-content": "awsui_header-content_16mm3_196hb_147"
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -6,128 +6,128 @@
|
|
|
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
|
-
.
|
|
9
|
+
.awsui_header_16mm3_196hb_9:not(#\9) {
|
|
10
10
|
position: relative;
|
|
11
11
|
margin-block: 0;
|
|
12
12
|
margin-inline: 0;
|
|
13
|
-
color: var(--color-text-dropdown-group-label-
|
|
14
|
-
border-block: var(--border-divider-list-width-
|
|
15
|
-
border-inline: var(--border-divider-list-width-
|
|
13
|
+
color: var(--color-text-dropdown-group-label-zl3ool, #424650);
|
|
14
|
+
border-block: var(--border-divider-list-width-q8ujlb, 1px) solid transparent;
|
|
15
|
+
border-inline: var(--border-divider-list-width-q8ujlb, 1px) solid transparent;
|
|
16
16
|
border-inline-width: 0;
|
|
17
|
-
font-weight: var(--font-weight-bold-
|
|
17
|
+
font-weight: var(--font-weight-bold-5dun2i, 700);
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: space-between;
|
|
20
20
|
align-items: center;
|
|
21
|
-
padding-block: calc(var(--space-option-padding-vertical-
|
|
22
|
-
padding-inline: calc(var(--space-button-horizontal-
|
|
21
|
+
padding-block: calc(var(--space-option-padding-vertical-40lww2, 4px) + var(--border-item-width-0d09z3, 2px) - var(--border-divider-list-width-q8ujlb, 1px));
|
|
22
|
+
padding-inline: calc(var(--space-button-horizontal-0ykhor, 20px) + var(--border-item-width-0d09z3, 2px));
|
|
23
23
|
z-index: 1;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
26
|
-
color: var(--color-text-dropdown-item-disabled-
|
|
25
|
+
.awsui_header_16mm3_196hb_9.awsui_disabled_16mm3_196hb_25:not(#\9) {
|
|
26
|
+
color: var(--color-text-dropdown-item-disabled-0of6st, #b4b4bb);
|
|
27
27
|
cursor: default;
|
|
28
28
|
}
|
|
29
|
-
.
|
|
30
|
-
padding-block: calc(var(--border-item-width-
|
|
31
|
-
padding-inline: var(--border-item-width-
|
|
32
|
-
font-weight: var(--font-weight-normal-
|
|
29
|
+
.awsui_header_16mm3_196hb_9.awsui_no-content-styling_16mm3_196hb_29:not(#\9) {
|
|
30
|
+
padding-block: calc(var(--border-item-width-0d09z3, 2px) - var(--border-divider-list-width-q8ujlb, 1px));
|
|
31
|
+
padding-inline: var(--border-item-width-0d09z3, 2px);
|
|
32
|
+
font-weight: var(--font-weight-normal-jditlz, 400);
|
|
33
33
|
color: inherit;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
36
|
-
border-block-start-color: var(--color-border-dropdown-group-
|
|
37
|
-
border-block-end-color: var(--color-border-dropdown-group-
|
|
35
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35:not(#\9) {
|
|
36
|
+
border-block-start-color: var(--color-border-dropdown-group-xlzbiz, #c6c6cd);
|
|
37
|
+
border-block-end-color: var(--color-border-dropdown-group-xlzbiz, #c6c6cd);
|
|
38
38
|
cursor: pointer;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35.awsui_disabled_16mm3_196hb_25:not(#\9) {
|
|
41
41
|
cursor: default;
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35:not(#\9):focus {
|
|
44
44
|
outline: none;
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35.awsui_rolled-down_16mm3_196hb_46:not(#\9) {
|
|
47
47
|
border-block-end-color: transparent;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
50
|
-
background-color: var(--color-background-dropdown-item-hover-
|
|
51
|
-
color: var(--color-text-dropdown-item-highlighted-
|
|
52
|
-
padding-block: var(--space-option-padding-vertical-
|
|
53
|
-
padding-inline: var(--space-button-horizontal-
|
|
54
|
-
border-block: var(--border-item-width-
|
|
55
|
-
border-inline: var(--border-item-width-
|
|
56
|
-
border-start-start-radius: var(--border-radius-dropdown-
|
|
57
|
-
border-start-end-radius: var(--border-radius-dropdown-
|
|
58
|
-
border-end-start-radius: var(--border-radius-dropdown-
|
|
59
|
-
border-end-end-radius: var(--border-radius-dropdown-
|
|
49
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35.awsui_highlighted_16mm3_196hb_49:not(#\9) {
|
|
50
|
+
background-color: var(--color-background-dropdown-item-hover-mr2xfr, #f3f3f7);
|
|
51
|
+
color: var(--color-text-dropdown-item-highlighted-4gqf7q, #0f141a);
|
|
52
|
+
padding-block: var(--space-option-padding-vertical-40lww2, 4px);
|
|
53
|
+
padding-inline: var(--space-button-horizontal-0ykhor, 20px);
|
|
54
|
+
border-block: var(--border-item-width-0d09z3, 2px) solid var(--color-border-dropdown-item-hover-va201k, #8c8c94);
|
|
55
|
+
border-inline: var(--border-item-width-0d09z3, 2px) solid var(--color-border-dropdown-item-hover-va201k, #8c8c94);
|
|
56
|
+
border-start-start-radius: var(--border-radius-dropdown-a5d2oz, 8px);
|
|
57
|
+
border-start-end-radius: var(--border-radius-dropdown-a5d2oz, 8px);
|
|
58
|
+
border-end-start-radius: var(--border-radius-dropdown-a5d2oz, 8px);
|
|
59
|
+
border-end-end-radius: var(--border-radius-dropdown-a5d2oz, 8px);
|
|
60
60
|
z-index: 2;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35.awsui_highlighted_16mm3_196hb_49.awsui_no-content-styling_16mm3_196hb_29:not(#\9) {
|
|
63
63
|
padding-block: 0;
|
|
64
64
|
padding-inline: 0;
|
|
65
65
|
color: inherit;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
68
|
-
background-color: var(--color-background-dropdown-item-dimmed-
|
|
69
|
-
border-color: var(--color-border-dropdown-item-dimmed-hover-
|
|
70
|
-
color: var(--color-text-dropdown-item-dimmed-
|
|
67
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35.awsui_highlighted_16mm3_196hb_49.awsui_disabled_16mm3_196hb_25:not(#\9) {
|
|
68
|
+
background-color: var(--color-background-dropdown-item-dimmed-gzrdju, transparent);
|
|
69
|
+
border-color: var(--color-border-dropdown-item-dimmed-hover-t5ceij, #8c8c94);
|
|
70
|
+
color: var(--color-text-dropdown-item-dimmed-ab5vxl, #b4b4bb);
|
|
71
71
|
}
|
|
72
|
-
.
|
|
73
|
-
border-color: var(--color-border-dropdown-item-focused-
|
|
72
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35.awsui_highlighted_16mm3_196hb_49.awsui_is-focused_16mm3_196hb_72:not(#\9) {
|
|
73
|
+
border-color: var(--color-border-dropdown-item-focused-rpptac, #424650);
|
|
74
74
|
}
|
|
75
|
-
.
|
|
76
|
-
box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-
|
|
75
|
+
.awsui_header_16mm3_196hb_9.awsui_expandable-header_16mm3_196hb_35.awsui_highlighted_16mm3_196hb_49.awsui_is-focused_16mm3_196hb_72:not(#\9):not(.awsui_visual-refresh_16mm3_196hb_75) {
|
|
76
|
+
box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-jm8mwu, 1px) var(--color-border-item-focused-sb1fs0, #006ce0);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.
|
|
79
|
+
.awsui_category_16mm3_196hb_79:not(#\9) {
|
|
80
80
|
list-style: none;
|
|
81
|
-
margin-block-start: calc(-1 * var(--border-divider-list-width-
|
|
81
|
+
margin-block-start: calc(-1 * var(--border-divider-list-width-q8ujlb, 1px));
|
|
82
82
|
padding-block: 0;
|
|
83
83
|
padding-inline: 0;
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.awsui_category_16mm3_196hb_79:not(#\9):first-child {
|
|
86
86
|
margin-block-start: 0;
|
|
87
87
|
}
|
|
88
|
-
.
|
|
88
|
+
.awsui_category_16mm3_196hb_79.awsui_expandable_16mm3_196hb_35:not(#\9) {
|
|
89
89
|
border-block-start: 0;
|
|
90
90
|
}
|
|
91
|
-
.
|
|
91
|
+
.awsui_category_16mm3_196hb_79:not(#\9):last-child {
|
|
92
92
|
border-block-end: none;
|
|
93
93
|
}
|
|
94
|
-
.
|
|
95
|
-
padding-block-start: var(--space-xxs-
|
|
94
|
+
.awsui_category_16mm3_196hb_79.awsui_variant-navigation_16mm3_196hb_94:not(#\9) {
|
|
95
|
+
padding-block-start: var(--space-xxs-burh9x, 4px);
|
|
96
96
|
}
|
|
97
|
-
.
|
|
97
|
+
.awsui_category_16mm3_196hb_79.awsui_variant-navigation_16mm3_196hb_94.awsui_expandable_16mm3_196hb_35:not(#\9) {
|
|
98
98
|
padding-block-start: 0;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.awsui_expand-
|
|
101
|
+
.awsui_expand-icon_16mm3_196hb_101:not(#\9) {
|
|
102
102
|
position: relative;
|
|
103
|
-
inset-inline-end: calc(-1 * var(--space-s-
|
|
104
|
-
inline-size: var(--space-m-
|
|
103
|
+
inset-inline-end: calc(-1 * var(--space-s-f4zmjb, 12px));
|
|
104
|
+
inline-size: var(--space-m-txio36, 16px);
|
|
105
105
|
display: inline-block;
|
|
106
106
|
margin-inline-start: auto;
|
|
107
|
-
transition: transform var(--motion-duration-rotate-180-
|
|
107
|
+
transition: transform var(--motion-duration-rotate-180-sdkywx, 135ms) var(--motion-easing-rotate-180-oh461e, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
108
108
|
}
|
|
109
109
|
@media (prefers-reduced-motion: reduce) {
|
|
110
|
-
.awsui_expand-
|
|
110
|
+
.awsui_expand-icon_16mm3_196hb_101:not(#\9) {
|
|
111
111
|
animation: none;
|
|
112
112
|
transition: none;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
.awsui-motion-disabled .awsui_expand-
|
|
115
|
+
.awsui-motion-disabled .awsui_expand-icon_16mm3_196hb_101:not(#\9), .awsui-mode-entering .awsui_expand-icon_16mm3_196hb_101:not(#\9) {
|
|
116
116
|
animation: none;
|
|
117
117
|
transition: none;
|
|
118
118
|
}
|
|
119
|
-
.awsui_expand-icon-
|
|
119
|
+
.awsui_expand-icon-up_16mm3_196hb_119:not(#\9) {
|
|
120
120
|
transform: rotate(-180deg);
|
|
121
121
|
}
|
|
122
|
-
.awsui_expand-icon-
|
|
122
|
+
.awsui_expand-icon-right_16mm3_196hb_122:not(#\9) {
|
|
123
123
|
transform: rotate(-90deg);
|
|
124
124
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
125
125
|
}
|
|
126
|
-
.awsui_expand-icon-
|
|
126
|
+
.awsui_expand-icon-right_16mm3_196hb_122:not(#\9):dir(rtl) {
|
|
127
127
|
transform: rotate(90deg);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.awsui_items-list-
|
|
130
|
+
.awsui_items-list-container_16mm3_196hb_130:not(#\9) {
|
|
131
131
|
padding-block: 0;
|
|
132
132
|
padding-inline: 0;
|
|
133
133
|
margin-block-start: -1px;
|
|
@@ -136,15 +136,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
136
136
|
overflow-y: auto;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.awsui_in-
|
|
139
|
+
.awsui_in-dropdown_16mm3_196hb_139:not(#\9) {
|
|
140
140
|
margin-block-end: -1px;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
.awsui_icon-
|
|
144
|
-
margin-inline-end: var(--space-xxs-
|
|
143
|
+
.awsui_icon-wrapper_16mm3_196hb_143:not(#\9) {
|
|
144
|
+
margin-inline-end: var(--space-xxs-burh9x, 4px);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.awsui_header-
|
|
147
|
+
.awsui_header-content_16mm3_196hb_147:not(#\9) {
|
|
148
148
|
display: flex;
|
|
149
149
|
align-items: center;
|
|
150
150
|
}
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"header": "
|
|
6
|
-
"disabled": "
|
|
7
|
-
"no-content-styling": "awsui_no-content-
|
|
8
|
-
"expandable-header": "awsui_expandable-
|
|
9
|
-
"rolled-down": "awsui_rolled-
|
|
10
|
-
"highlighted": "
|
|
11
|
-
"is-focused": "awsui_is-
|
|
12
|
-
"visual-refresh": "awsui_visual-
|
|
13
|
-
"category": "
|
|
14
|
-
"expandable": "
|
|
15
|
-
"variant-navigation": "awsui_variant-
|
|
16
|
-
"expand-icon": "awsui_expand-
|
|
17
|
-
"expand-icon-up": "awsui_expand-icon-
|
|
18
|
-
"expand-icon-right": "awsui_expand-icon-
|
|
19
|
-
"items-list-container": "awsui_items-list-
|
|
20
|
-
"in-dropdown": "awsui_in-
|
|
21
|
-
"icon-wrapper": "awsui_icon-
|
|
22
|
-
"header-content": "awsui_header-
|
|
5
|
+
"header": "awsui_header_16mm3_196hb_9",
|
|
6
|
+
"disabled": "awsui_disabled_16mm3_196hb_25",
|
|
7
|
+
"no-content-styling": "awsui_no-content-styling_16mm3_196hb_29",
|
|
8
|
+
"expandable-header": "awsui_expandable-header_16mm3_196hb_35",
|
|
9
|
+
"rolled-down": "awsui_rolled-down_16mm3_196hb_46",
|
|
10
|
+
"highlighted": "awsui_highlighted_16mm3_196hb_49",
|
|
11
|
+
"is-focused": "awsui_is-focused_16mm3_196hb_72",
|
|
12
|
+
"visual-refresh": "awsui_visual-refresh_16mm3_196hb_75",
|
|
13
|
+
"category": "awsui_category_16mm3_196hb_79",
|
|
14
|
+
"expandable": "awsui_expandable_16mm3_196hb_35",
|
|
15
|
+
"variant-navigation": "awsui_variant-navigation_16mm3_196hb_94",
|
|
16
|
+
"expand-icon": "awsui_expand-icon_16mm3_196hb_101",
|
|
17
|
+
"expand-icon-up": "awsui_expand-icon-up_16mm3_196hb_119",
|
|
18
|
+
"expand-icon-right": "awsui_expand-icon-right_16mm3_196hb_122",
|
|
19
|
+
"items-list-container": "awsui_items-list-container_16mm3_196hb_130",
|
|
20
|
+
"in-dropdown": "awsui_in-dropdown_16mm3_196hb_139",
|
|
21
|
+
"icon-wrapper": "awsui_icon-wrapper_16mm3_196hb_143",
|
|
22
|
+
"header-content": "awsui_header-content_16mm3_196hb_147"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -53,6 +53,7 @@ export interface ButtonDropdownProps extends BaseComponentProps, ExpandToViewpor
|
|
|
53
53
|
*
|
|
54
54
|
* - `items` (ReadonlyArray<Item>) - an array of item objects. Items will be rendered as nested menu items but only for the first nesting level, multi-nesting is not supported.
|
|
55
55
|
* An item which belongs to nested group has the following properties: `id`, `text`, `disabled`, and `description`.
|
|
56
|
+
* - `expandable` (boolean) - (Optional) Defines whether the group is expandable (this overrides the component-level `expandableGroups` property).
|
|
56
57
|
*
|
|
57
58
|
*/
|
|
58
59
|
items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;
|
|
@@ -107,8 +108,10 @@ export interface ButtonDropdownProps extends BaseComponentProps, ExpandToViewpor
|
|
|
107
108
|
/**
|
|
108
109
|
* Provides a reason why the button dropdown is disabled (only when `disabled` is `true`).
|
|
109
110
|
* If provided, the disabled button becomes focusable.
|
|
111
|
+
*
|
|
112
|
+
* Do not place interactive elements like links or buttons.
|
|
110
113
|
*/
|
|
111
|
-
disabledReason?:
|
|
114
|
+
disabledReason?: React.ReactNode;
|
|
112
115
|
/**
|
|
113
116
|
* Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.
|
|
114
117
|
* It prevents clicks.
|
|
@@ -303,7 +306,7 @@ export declare namespace ButtonDropdownProps {
|
|
|
303
306
|
onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;
|
|
304
307
|
onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;
|
|
305
308
|
disabled?: boolean;
|
|
306
|
-
disabledReason?:
|
|
309
|
+
disabledReason?: React.ReactNode;
|
|
307
310
|
loading?: boolean;
|
|
308
311
|
loadingText?: string;
|
|
309
312
|
href?: string;
|
|
@@ -394,7 +397,7 @@ export interface CustomTriggerProps {
|
|
|
394
397
|
testUtilsClass: string;
|
|
395
398
|
ariaLabel: string | undefined;
|
|
396
399
|
disabled: boolean;
|
|
397
|
-
disabledReason?:
|
|
400
|
+
disabledReason?: React.ReactNode;
|
|
398
401
|
isOpen: boolean;
|
|
399
402
|
onClick: () => void;
|
|
400
403
|
ariaExpanded: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/button-dropdown/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,K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G,CACzB,IAAI,EAAE,mBAAmB,CAAC,IAAI,GAAG,mBAAmB,CAAC,YAAY,EACjE,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,KAC1C,IAAI,CAAC;AAEV,MAAM,WAAW,QAAS,SAAQ,mBAAmB,CAAC,IAAI;IACxD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button-dropdown/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { ExpandToViewport } from '../dropdown/interfaces';\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler } from '../types/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../types/native-attributes';\n\nexport interface ButtonDropdownProps extends BaseComponentProps, ExpandToViewport {\n /**\n * Array of objects with a number of supported types.\n *\n * The following properties are supported across all types:\n *\n * - `type` (string) - The type of the item. Can be `action`, `group`, `checkbox`. Defaults to `action` if `items` undefined and `group` otherwise.\n * - `id` (string) - allows to identify the item that the user clicked on. Mandatory for individual items, optional for categories.\n * - `text` (string) - description shown in the menu for this item. Mandatory for individual items, optional for categories.\n * - `lang` (string) - (Optional) The language of the item, provided as a BCP 47 language tag.\n * - `disabled` (boolean) - whether the item is disabled. Disabled items are not clickable, but they can be highlighted with the keyboard to make them accessible.\n * - `disabledReason` (string) - (Optional) Displays text near the `text` property when item is disabled. Use to provide additional context.\n * - `description` (string) - additional data that will be passed to a `data-description` attribute. **Deprecated**, has no effect.\n * - `ariaLabel` (string) - (Optional) - ARIA label of the item element.\n * - `dataAttributes` (Record<string, string>) - (Optional) Custom data attributes for the item element. Attribute names are automatically prefixed with \"data-\". The \"testid\" key is reserved.\n *\n * ### action\n *\n * - `href` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.\n * - `download` (boolean | string) - (Optional) Indicates that the link should be downloaded when clicked. Only works when `href` is also provided. If set to `true`, the browser will use the filename from the URL. If set to a string, that string will be used as the suggested filename.\n * - `external` (boolean) - Marks a menu item as external by adding an icon after the menu item text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.\n * - `externalIconAriaLabel` (string) - Adds an `aria-label` to the external icon.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * - `secondaryText` (string) - (Optional) Further information about the action that appears below the label.\n * - `labelTag` (string) - (Optional) - A label tag that provides additional guidance, shown next to the label.\n *\n * ### checkbox\n *\n * When `type` is set to \"checkbox\", the values set to `href`, `external` and `externalIconAriaLabel` will be ignored.\n *\n * - `checked` (boolean) - Controls the state of the checkbox item.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * - `secondaryText` (string) - (Optional) Further information about the action that appears below the label.\n * - `labelTag` (string) - (Optional) - A label tag that provides additional guidance, shown next to the label.\n *\n * ### group\n *\n * - `items` (ReadonlyArray<Item>) - an array of item objects. Items will be rendered as nested menu items but only for the first nesting level, multi-nesting is not supported.\n * An item which belongs to nested group has the following properties: `id`, `text`, `disabled`, and `description`.\n *\n */\n items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;\n\n /**\n * Specifies a render function to render custom options in the dropdown menu.\n *\n * The item inside the props has a different shape depending on its type:\n *\n *\n * ### action\n *\n * - `type` ('action') - The item type.\n * - `index` (number) - The item's position relative to its parent.\n * - `option` (Item) - The original item configuration.\n * - `highlighted` (boolean) - Whether the item is currently highlighted.\n * - `disabled` (boolean) - Whether the item is disabled.\n * - `parent` (GroupRenderItem | null) - The parent group item, if any.\n * - `filterText` (string) - The current value of the filtering input, when filtering is enabled.\n *\n * ### checkbox\n *\n * - `type` ('checkbox') - The item type.\n * - `index` (number) - The item's position relative to its parent.\n * - `option` (CheckboxItem) - The original item configuration.\n * - `disabled` (boolean) - Whether the item is disabled.\n * - `highlighted` (boolean) - Whether the item is currently highlighted.\n * - `checked` (boolean) - Controls the state of the checkbox item.\n * - `parent` (GroupRenderItem | null) - The parent group item, if any.\n * - `filterText` (string) - The current value of the filtering input, when filtering is enabled.\n *\n * ### group\n *\n * - `type` ('group') - The item type.\n * - `index` (number) - The item's position in the list.\n * - `option` (ItemGroup) - The original item configuration.\n * - `disabled` (boolean) - Whether the item is disabled.\n * - `highlighted` (boolean) - Whether the item is currently highlighted.\n * - `expanded` (boolean) - Whether the group is expanded.\n * - `expandDirection` ('vertical' | 'horizontal') - The direction in which the group expands.\n * - `filterText` (string) - The current value of the filtering input, when filtering is enabled.\n *\n * When providing a custom `renderItem` implementation, it fully replaces the default visual rendering and content for that item.\n * The component still manages focus, keyboard interactions, and selection state, but it no longer applies its default item layout or typography.\n *\n * When returning `null`, the default styling will be applied.\n */\n renderItem?: ButtonDropdownProps.ItemRenderer;\n\n /**\n * Determines whether the button dropdown is disabled. Users cannot interact with the control if it's disabled.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the button dropdown is disabled (only when `disabled` is `true`).\n * If provided, the disabled button becomes focusable.\n */\n disabledReason?: string;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents clicks.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button dropdown is in a loading state.\n */\n loadingText?: string;\n /** Determines the general styling of the button dropdown.\n * * `primary` for primary buttons\n * * `normal` for secondary buttons\n * * `icon` for icon buttons\n * * `inline-icon` for icon buttons with no outer padding\n */\n variant?: ButtonDropdownProps.Variant;\n /**\n * Specifies the name of the icon used in the button dropdown trigger, used with the [icon component](/components/icon/).\n * Defaults to `ellipsis`. Applies to the `icon` and `inline-icon` variants only.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies alternate text for a custom icon, for use with `iconUrl`. Applies to the `icon` and `inline-icon` variants only.\n */\n iconAlt?: string;\n /**\n * Specifies the URL of a custom icon. Applies to the `icon` and `inline-icon` variants only.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * Applies to the `icon` and `inline-icon` variants only.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconSvg?: React.ReactNode;\n /**\n * Controls expandability of the item groups.\n */\n expandableGroups?: boolean;\n /**\n * Adds `aria-label` to the button dropdown trigger.\n * Use this to provide an accessible name for buttons that don't have visible text.\n */\n ariaLabel?: string;\n /**\n * Text displayed in the button dropdown trigger.\n * @displayname text\n */\n children?: React.ReactNode;\n /**\n * Called when the user clicks on an item, and the item is not disabled. The event detail object contains the id of the clicked item.\n */\n onItemClick?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n /**\n * Called when the user clicks on an item with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the item has an `href` set.\n */\n onItemFollow?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n /**\n * A standalone action that is shown prior to the dropdown trigger.\n * Use it with \"primary\" and \"normal\" variant only.\n *\n * Main action properties:\n * * `text` (string) - Specifies the text shown in the main action.\n * * `external` (boolean) - Marks the main action as external by adding an icon after the text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.\n * * `externalIconAriaLabel` (string) - Adds an ARIA label to the external icon.\n *\n * The main action also supports the following properties of the [button](/components/button/?tabId=api) component:\n * `ariaLabel`, `disabled`, `loading`, `loadingText`, `href`, `target`, `rel`, `download`, `iconAlt`, `iconName`, `iconUrl`, `iconSvg`, `onClick`, `onFollow`.\n */\n mainAction?: ButtonDropdownProps.MainAction;\n\n /**\n * Sets the button width to be 100% of the parent container width. Button content is centered.\n */\n fullWidth?: boolean;\n\n /**\n * Enables filtering of the dropdown items.\n *\n * When set to `auto`, a search input is rendered inside the dropdown and the items are filtered as the user\n * types. Items are matched client-side using a case-insensitive substring match against their `text`,\n * `secondaryText`, and `labelTag`.\n */\n filteringType?: ButtonDropdownProps.FilteringType;\n\n /**\n * Specifies the placeholder to display in the filtering input. Only relevant when filtering is enabled.\n */\n filteringPlaceholder?: string;\n\n /**\n * Adds an `aria-label` to the filtering input. Only relevant when filtering is enabled.\n */\n filteringAriaLabel?: string;\n\n /**\n * Adds an `aria-label` to the clear button inside the filtering input. Only relevant when filtering is enabled.\n * @i18n\n */\n filteringClearAriaLabel?: string;\n\n /**\n * Specifies the text to display with the number of matches at the bottom of the dropdown menu while filtering.\n * @i18n\n */\n filteringResultsText?: (matchesCount: number, totalCount: number) => string;\n\n /**\n * Displayed when filtering is enabled and there are no matches for the filtering input.\n */\n noMatch?: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: ButtonDropdownProps.I18nStrings;\n\n /**\n * Attributes to add to the native `button` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * Pass a `ref` to access the native element for measurement, observation, or third-party integration.\n * For actions such as focus or selection, use the component's explicit ref methods;\n * operations performed directly on the native element may bypass the built-in component's behaviors.\n *\n * @awsuiSystem core\n */\n nativeTriggerAttributes?: NativeAttributes<React.ButtonHTMLAttributes<HTMLButtonElement>>;\n\n /**\n * Attributes to add to the native element of the `mainAction`.\n *\n * Specify either `button` for a standard main action, or `anchor` if `html` is set.\n *\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * Pass a `ref` to access the native element for measurement, observation, or third-party integration.\n * For actions such as focus or selection, use the component's explicit ref methods;\n * operations performed directly on the native element may bypass the built-in component's behaviors.\n *\n * @awsuiSystem core\n */\n nativeMainActionAttributes?: {\n button?: NativeAttributes<React.ButtonHTMLAttributes<HTMLButtonElement>>;\n anchor?: NativeAttributes<React.AnchorHTMLAttributes<HTMLAnchorElement>>;\n };\n}\n\nexport namespace ButtonDropdownProps {\n export type Variant = 'normal' | 'primary' | 'icon' | 'inline-icon';\n export type ItemType = 'action' | 'group';\n export type FilteringType = 'auto' | 'none';\n\n export interface I18nStrings {\n filteringItemAriaDescription?: string;\n }\n\n export interface ActionRenderItem {\n type: 'action';\n index: number;\n option: Item;\n highlighted: boolean;\n disabled: boolean;\n parent: GroupRenderItem | null;\n }\n export interface CheckboxRenderItem {\n type: 'checkbox';\n index: number;\n option: CheckboxItem;\n disabled: boolean;\n highlighted: boolean;\n checked: boolean;\n parent: GroupRenderItem | null;\n }\n export interface GroupRenderItem {\n type: 'group';\n index: number;\n option: ItemGroup;\n disabled: boolean;\n highlighted: boolean;\n expanded: boolean;\n expandDirection: 'vertical' | 'horizontal';\n }\n\n export type RenderItem = ActionRenderItem | CheckboxRenderItem | GroupRenderItem;\n export type ItemRenderer = (props: { item: ButtonDropdownProps.RenderItem; filterText?: string }) => ReactNode | null;\n\n export interface MainAction {\n text?: string;\n ariaLabel?: string;\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;\n disabled?: boolean;\n disabledReason?: string;\n loading?: boolean;\n loadingText?: string;\n href?: string;\n target?: string;\n rel?: string;\n download?: boolean | string;\n external?: boolean;\n externalIconAriaLabel?: string;\n iconAlt?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n }\n\n export interface Item {\n itemType?: ItemType;\n id: string;\n text: string;\n secondaryText?: string;\n ariaLabel?: string;\n lang?: string;\n disabled?: boolean;\n disabledReason?: string;\n /**\n * @deprecated Has no effect.\n */\n description?: string;\n href?: string;\n download?: boolean | string;\n external?: boolean;\n externalIconAriaLabel?: string;\n iconAlt?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n labelTag?: string;\n dataAttributes?: Record<string, string>;\n }\n\n export interface CheckboxItem\n extends Omit<ButtonDropdownProps.Item, 'href' | 'download' | 'external' | 'externalIconAriaLabel' | 'itemType'> {\n itemType: 'checkbox';\n checked: boolean;\n }\n\n export interface ItemGroup extends Omit<Item, 'id' | 'text' | 'itemType' | 'secondaryText' | 'labelTag'> {\n itemType?: 'group';\n id?: string;\n text?: string;\n items: Items;\n /**\n * Controls whether this group renders as an expandable submenu, overriding `expandableGroups`\n * for this group. Defaults to the `expandableGroups` value when unset.\n */\n expandable?: boolean;\n }\n\n export type ItemOrGroup = Item | CheckboxItem | ItemGroup;\n\n export type Items = ReadonlyArray<ItemOrGroup>;\n\n export interface ItemClickDetails extends BaseNavigationDetail {\n id: string;\n checked?: boolean;\n }\n\n export interface Ref {\n /**\n * Focuses the underlying native button. If a main action is defined this will focus that button.\n */\n focus(options?: FocusOptions): void;\n /**\n * Focuses the underlying native button for the dropdown.\n */\n focusDropdownTrigger(options?: FocusOptions): void;\n }\n}\n\nexport interface ButtonDropdownSettings {\n // this means whether action is required to make group expand\n hasExpandableGroups: boolean;\n // on smaller screens expandable groups are integrated into parent dropdown\n // this changes keyboard navigation, highlight and activation behavior for parent dropdown\n isInRestrictedView?: boolean;\n}\n\nexport interface HighlightProps {\n targetItem: ButtonDropdownProps.ItemOrGroup | null;\n isHighlighted: (item: ButtonDropdownProps.ItemOrGroup) => boolean;\n isKeyboardHighlight: (item: ButtonDropdownProps.ItemOrGroup) => boolean;\n isExpanded: (group: ButtonDropdownProps.ItemGroup) => boolean;\n highlightItem: (item: ButtonDropdownProps.ItemOrGroup) => void;\n}\n\nexport type GroupToggle = (item: ButtonDropdownProps.ItemGroup, event: React.SyntheticEvent) => void;\nexport type ItemActivate = (\n item: ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem,\n event: React.MouseEvent | React.KeyboardEvent\n) => void;\n\nexport interface LinkItem extends ButtonDropdownProps.Item {\n href: string;\n}\n\nexport interface CustomTriggerProps {\n triggerRef: React.Ref<HTMLElement>;\n testUtilsClass: string;\n ariaLabel: string | undefined;\n disabled: boolean;\n disabledReason?: string;\n isOpen: boolean;\n onClick: () => void;\n ariaExpanded: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button-dropdown/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { ExpandToViewport } from '../dropdown/interfaces';\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler } from '../types/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../types/native-attributes';\n\nexport interface ButtonDropdownProps extends BaseComponentProps, ExpandToViewport {\n /**\n * Array of objects with a number of supported types.\n *\n * The following properties are supported across all types:\n *\n * - `type` (string) - The type of the item. Can be `action`, `group`, `checkbox`. Defaults to `action` if `items` undefined and `group` otherwise.\n * - `id` (string) - allows to identify the item that the user clicked on. Mandatory for individual items, optional for categories.\n * - `text` (string) - description shown in the menu for this item. Mandatory for individual items, optional for categories.\n * - `lang` (string) - (Optional) The language of the item, provided as a BCP 47 language tag.\n * - `disabled` (boolean) - whether the item is disabled. Disabled items are not clickable, but they can be highlighted with the keyboard to make them accessible.\n * - `disabledReason` (string) - (Optional) Displays text near the `text` property when item is disabled. Use to provide additional context.\n * - `description` (string) - additional data that will be passed to a `data-description` attribute. **Deprecated**, has no effect.\n * - `ariaLabel` (string) - (Optional) - ARIA label of the item element.\n * - `dataAttributes` (Record<string, string>) - (Optional) Custom data attributes for the item element. Attribute names are automatically prefixed with \"data-\". The \"testid\" key is reserved.\n *\n * ### action\n *\n * - `href` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.\n * - `download` (boolean | string) - (Optional) Indicates that the link should be downloaded when clicked. Only works when `href` is also provided. If set to `true`, the browser will use the filename from the URL. If set to a string, that string will be used as the suggested filename.\n * - `external` (boolean) - Marks a menu item as external by adding an icon after the menu item text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.\n * - `externalIconAriaLabel` (string) - Adds an `aria-label` to the external icon.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * - `secondaryText` (string) - (Optional) Further information about the action that appears below the label.\n * - `labelTag` (string) - (Optional) - A label tag that provides additional guidance, shown next to the label.\n *\n * ### checkbox\n *\n * When `type` is set to \"checkbox\", the values set to `href`, `external` and `externalIconAriaLabel` will be ignored.\n *\n * - `checked` (boolean) - Controls the state of the checkbox item.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * - `secondaryText` (string) - (Optional) Further information about the action that appears below the label.\n * - `labelTag` (string) - (Optional) - A label tag that provides additional guidance, shown next to the label.\n *\n * ### group\n *\n * - `items` (ReadonlyArray<Item>) - an array of item objects. Items will be rendered as nested menu items but only for the first nesting level, multi-nesting is not supported.\n * An item which belongs to nested group has the following properties: `id`, `text`, `disabled`, and `description`.\n * - `expandable` (boolean) - (Optional) Defines whether the group is expandable (this overrides the component-level `expandableGroups` property).\n *\n */\n items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;\n\n /**\n * Specifies a render function to render custom options in the dropdown menu.\n *\n * The item inside the props has a different shape depending on its type:\n *\n *\n * ### action\n *\n * - `type` ('action') - The item type.\n * - `index` (number) - The item's position relative to its parent.\n * - `option` (Item) - The original item configuration.\n * - `highlighted` (boolean) - Whether the item is currently highlighted.\n * - `disabled` (boolean) - Whether the item is disabled.\n * - `parent` (GroupRenderItem | null) - The parent group item, if any.\n * - `filterText` (string) - The current value of the filtering input, when filtering is enabled.\n *\n * ### checkbox\n *\n * - `type` ('checkbox') - The item type.\n * - `index` (number) - The item's position relative to its parent.\n * - `option` (CheckboxItem) - The original item configuration.\n * - `disabled` (boolean) - Whether the item is disabled.\n * - `highlighted` (boolean) - Whether the item is currently highlighted.\n * - `checked` (boolean) - Controls the state of the checkbox item.\n * - `parent` (GroupRenderItem | null) - The parent group item, if any.\n * - `filterText` (string) - The current value of the filtering input, when filtering is enabled.\n *\n * ### group\n *\n * - `type` ('group') - The item type.\n * - `index` (number) - The item's position in the list.\n * - `option` (ItemGroup) - The original item configuration.\n * - `disabled` (boolean) - Whether the item is disabled.\n * - `highlighted` (boolean) - Whether the item is currently highlighted.\n * - `expanded` (boolean) - Whether the group is expanded.\n * - `expandDirection` ('vertical' | 'horizontal') - The direction in which the group expands.\n * - `filterText` (string) - The current value of the filtering input, when filtering is enabled.\n *\n * When providing a custom `renderItem` implementation, it fully replaces the default visual rendering and content for that item.\n * The component still manages focus, keyboard interactions, and selection state, but it no longer applies its default item layout or typography.\n *\n * When returning `null`, the default styling will be applied.\n */\n renderItem?: ButtonDropdownProps.ItemRenderer;\n\n /**\n * Determines whether the button dropdown is disabled. Users cannot interact with the control if it's disabled.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the button dropdown is disabled (only when `disabled` is `true`).\n * If provided, the disabled button becomes focusable.\n *\n * Do not place interactive elements like links or buttons.\n */\n disabledReason?: React.ReactNode;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents clicks.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button dropdown is in a loading state.\n */\n loadingText?: string;\n /** Determines the general styling of the button dropdown.\n * * `primary` for primary buttons\n * * `normal` for secondary buttons\n * * `icon` for icon buttons\n * * `inline-icon` for icon buttons with no outer padding\n */\n variant?: ButtonDropdownProps.Variant;\n /**\n * Specifies the name of the icon used in the button dropdown trigger, used with the [icon component](/components/icon/).\n * Defaults to `ellipsis`. Applies to the `icon` and `inline-icon` variants only.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies alternate text for a custom icon, for use with `iconUrl`. Applies to the `icon` and `inline-icon` variants only.\n */\n iconAlt?: string;\n /**\n * Specifies the URL of a custom icon. Applies to the `icon` and `inline-icon` variants only.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * Applies to the `icon` and `inline-icon` variants only.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconSvg?: React.ReactNode;\n /**\n * Controls expandability of the item groups.\n */\n expandableGroups?: boolean;\n /**\n * Adds `aria-label` to the button dropdown trigger.\n * Use this to provide an accessible name for buttons that don't have visible text.\n */\n ariaLabel?: string;\n /**\n * Text displayed in the button dropdown trigger.\n * @displayname text\n */\n children?: React.ReactNode;\n /**\n * Called when the user clicks on an item, and the item is not disabled. The event detail object contains the id of the clicked item.\n */\n onItemClick?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n /**\n * Called when the user clicks on an item with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the item has an `href` set.\n */\n onItemFollow?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n /**\n * A standalone action that is shown prior to the dropdown trigger.\n * Use it with \"primary\" and \"normal\" variant only.\n *\n * Main action properties:\n * * `text` (string) - Specifies the text shown in the main action.\n * * `external` (boolean) - Marks the main action as external by adding an icon after the text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.\n * * `externalIconAriaLabel` (string) - Adds an ARIA label to the external icon.\n *\n * The main action also supports the following properties of the [button](/components/button/?tabId=api) component:\n * `ariaLabel`, `disabled`, `loading`, `loadingText`, `href`, `target`, `rel`, `download`, `iconAlt`, `iconName`, `iconUrl`, `iconSvg`, `onClick`, `onFollow`.\n */\n mainAction?: ButtonDropdownProps.MainAction;\n\n /**\n * Sets the button width to be 100% of the parent container width. Button content is centered.\n */\n fullWidth?: boolean;\n\n /**\n * Enables filtering of the dropdown items.\n *\n * When set to `auto`, a search input is rendered inside the dropdown and the items are filtered as the user\n * types. Items are matched client-side using a case-insensitive substring match against their `text`,\n * `secondaryText`, and `labelTag`.\n */\n filteringType?: ButtonDropdownProps.FilteringType;\n\n /**\n * Specifies the placeholder to display in the filtering input. Only relevant when filtering is enabled.\n */\n filteringPlaceholder?: string;\n\n /**\n * Adds an `aria-label` to the filtering input. Only relevant when filtering is enabled.\n */\n filteringAriaLabel?: string;\n\n /**\n * Adds an `aria-label` to the clear button inside the filtering input. Only relevant when filtering is enabled.\n * @i18n\n */\n filteringClearAriaLabel?: string;\n\n /**\n * Specifies the text to display with the number of matches at the bottom of the dropdown menu while filtering.\n * @i18n\n */\n filteringResultsText?: (matchesCount: number, totalCount: number) => string;\n\n /**\n * Displayed when filtering is enabled and there are no matches for the filtering input.\n */\n noMatch?: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: ButtonDropdownProps.I18nStrings;\n\n /**\n * Attributes to add to the native `button` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * Pass a `ref` to access the native element for measurement, observation, or third-party integration.\n * For actions such as focus or selection, use the component's explicit ref methods;\n * operations performed directly on the native element may bypass the built-in component's behaviors.\n *\n * @awsuiSystem core\n */\n nativeTriggerAttributes?: NativeAttributes<React.ButtonHTMLAttributes<HTMLButtonElement>>;\n\n /**\n * Attributes to add to the native element of the `mainAction`.\n *\n * Specify either `button` for a standard main action, or `anchor` if `html` is set.\n *\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * Pass a `ref` to access the native element for measurement, observation, or third-party integration.\n * For actions such as focus or selection, use the component's explicit ref methods;\n * operations performed directly on the native element may bypass the built-in component's behaviors.\n *\n * @awsuiSystem core\n */\n nativeMainActionAttributes?: {\n button?: NativeAttributes<React.ButtonHTMLAttributes<HTMLButtonElement>>;\n anchor?: NativeAttributes<React.AnchorHTMLAttributes<HTMLAnchorElement>>;\n };\n}\n\nexport namespace ButtonDropdownProps {\n export type Variant = 'normal' | 'primary' | 'icon' | 'inline-icon';\n export type ItemType = 'action' | 'group';\n export type FilteringType = 'auto' | 'none';\n\n export interface I18nStrings {\n filteringItemAriaDescription?: string;\n }\n\n export interface ActionRenderItem {\n type: 'action';\n index: number;\n option: Item;\n highlighted: boolean;\n disabled: boolean;\n parent: GroupRenderItem | null;\n }\n export interface CheckboxRenderItem {\n type: 'checkbox';\n index: number;\n option: CheckboxItem;\n disabled: boolean;\n highlighted: boolean;\n checked: boolean;\n parent: GroupRenderItem | null;\n }\n export interface GroupRenderItem {\n type: 'group';\n index: number;\n option: ItemGroup;\n disabled: boolean;\n highlighted: boolean;\n expanded: boolean;\n expandDirection: 'vertical' | 'horizontal';\n }\n\n export type RenderItem = ActionRenderItem | CheckboxRenderItem | GroupRenderItem;\n export type ItemRenderer = (props: { item: ButtonDropdownProps.RenderItem; filterText?: string }) => ReactNode | null;\n\n export interface MainAction {\n text?: string;\n ariaLabel?: string;\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;\n disabled?: boolean;\n disabledReason?: React.ReactNode;\n loading?: boolean;\n loadingText?: string;\n href?: string;\n target?: string;\n rel?: string;\n download?: boolean | string;\n external?: boolean;\n externalIconAriaLabel?: string;\n iconAlt?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n }\n\n export interface Item {\n itemType?: ItemType;\n id: string;\n text: string;\n secondaryText?: string;\n ariaLabel?: string;\n lang?: string;\n disabled?: boolean;\n disabledReason?: string;\n /**\n * @deprecated Has no effect.\n */\n description?: string;\n href?: string;\n download?: boolean | string;\n external?: boolean;\n externalIconAriaLabel?: string;\n iconAlt?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n labelTag?: string;\n dataAttributes?: Record<string, string>;\n }\n\n export interface CheckboxItem\n extends Omit<ButtonDropdownProps.Item, 'href' | 'download' | 'external' | 'externalIconAriaLabel' | 'itemType'> {\n itemType: 'checkbox';\n checked: boolean;\n }\n\n export interface ItemGroup extends Omit<Item, 'id' | 'text' | 'itemType' | 'secondaryText' | 'labelTag'> {\n itemType?: 'group';\n id?: string;\n text?: string;\n items: Items;\n /**\n * Controls whether this group renders as an expandable submenu, overriding `expandableGroups`\n * for this group. Defaults to the `expandableGroups` value when unset.\n */\n expandable?: boolean;\n }\n\n export type ItemOrGroup = Item | CheckboxItem | ItemGroup;\n\n export type Items = ReadonlyArray<ItemOrGroup>;\n\n export interface ItemClickDetails extends BaseNavigationDetail {\n id: string;\n checked?: boolean;\n }\n\n export interface Ref {\n /**\n * Focuses the underlying native button. If a main action is defined this will focus that button.\n */\n focus(options?: FocusOptions): void;\n /**\n * Focuses the underlying native button for the dropdown.\n */\n focusDropdownTrigger(options?: FocusOptions): void;\n }\n}\n\nexport interface ButtonDropdownSettings {\n // this means whether action is required to make group expand\n hasExpandableGroups: boolean;\n // on smaller screens expandable groups are integrated into parent dropdown\n // this changes keyboard navigation, highlight and activation behavior for parent dropdown\n isInRestrictedView?: boolean;\n}\n\nexport interface HighlightProps {\n targetItem: ButtonDropdownProps.ItemOrGroup | null;\n isHighlighted: (item: ButtonDropdownProps.ItemOrGroup) => boolean;\n isKeyboardHighlight: (item: ButtonDropdownProps.ItemOrGroup) => boolean;\n isExpanded: (group: ButtonDropdownProps.ItemGroup) => boolean;\n highlightItem: (item: ButtonDropdownProps.ItemOrGroup) => void;\n}\n\nexport type GroupToggle = (item: ButtonDropdownProps.ItemGroup, event: React.SyntheticEvent) => void;\nexport type ItemActivate = (\n item: ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem,\n event: React.MouseEvent | React.KeyboardEvent\n) => void;\n\nexport interface LinkItem extends ButtonDropdownProps.Item {\n href: string;\n}\n\nexport interface CustomTriggerProps {\n triggerRef: React.Ref<HTMLElement>;\n testUtilsClass: string;\n ariaLabel: string | undefined;\n disabled: boolean;\n disabledReason?: React.ReactNode;\n isOpen: boolean;\n onClick: () => void;\n ariaExpanded: boolean;\n}\n"]}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"item-element": "awsui_item-
|
|
5
|
-
"no-content-styling": "awsui_no-content-
|
|
6
|
-
"disabled": "
|
|
7
|
-
"show-divider": "awsui_show-
|
|
8
|
-
"highlighted": "
|
|
9
|
-
"is-focused": "awsui_is-
|
|
10
|
-
"visual-refresh": "awsui_visual-
|
|
11
|
-
"menu-item": "awsui_menu-
|
|
12
|
-
"link-style": "awsui_link-
|
|
13
|
-
"current-breadcrumb": "awsui_current-
|
|
14
|
-
"link-style-highlighted": "awsui_link-style-
|
|
15
|
-
"has-category-header": "awsui_has-category-
|
|
16
|
-
"item-tooltip-wrapper": "awsui_item-tooltip-
|
|
17
|
-
"has-checkmark": "awsui_has-
|
|
18
|
-
"icon": "
|
|
19
|
-
"checkmark": "
|
|
20
|
-
"external-icon": "awsui_external-
|
|
21
|
-
"content-wrapper": "awsui_content-
|
|
22
|
-
"main-row": "awsui_main-
|
|
23
|
-
"label-tag": "awsui_label-
|
|
24
|
-
"secondary-text": "awsui_secondary-
|
|
4
|
+
"item-element": "awsui_item-element_93a1u_g24ou_9",
|
|
5
|
+
"no-content-styling": "awsui_no-content-styling_93a1u_g24ou_21",
|
|
6
|
+
"disabled": "awsui_disabled_93a1u_g24ou_26",
|
|
7
|
+
"show-divider": "awsui_show-divider_93a1u_g24ou_33",
|
|
8
|
+
"highlighted": "awsui_highlighted_93a1u_g24ou_36",
|
|
9
|
+
"is-focused": "awsui_is-focused_93a1u_g24ou_51",
|
|
10
|
+
"visual-refresh": "awsui_visual-refresh_93a1u_g24ou_54",
|
|
11
|
+
"menu-item": "awsui_menu-item_93a1u_g24ou_58",
|
|
12
|
+
"link-style": "awsui_link-style_93a1u_g24ou_75",
|
|
13
|
+
"current-breadcrumb": "awsui_current-breadcrumb_93a1u_g24ou_112",
|
|
14
|
+
"link-style-highlighted": "awsui_link-style-highlighted_93a1u_g24ou_120",
|
|
15
|
+
"has-category-header": "awsui_has-category-header_93a1u_g24ou_126",
|
|
16
|
+
"item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_g24ou_126",
|
|
17
|
+
"has-checkmark": "awsui_has-checkmark_93a1u_g24ou_126",
|
|
18
|
+
"icon": "awsui_icon_93a1u_g24ou_133",
|
|
19
|
+
"checkmark": "awsui_checkmark_93a1u_g24ou_137",
|
|
20
|
+
"external-icon": "awsui_external-icon_93a1u_g24ou_144",
|
|
21
|
+
"content-wrapper": "awsui_content-wrapper_93a1u_g24ou_148",
|
|
22
|
+
"main-row": "awsui_main-row_93a1u_g24ou_154",
|
|
23
|
+
"label-tag": "awsui_label-tag_93a1u_g24ou_161",
|
|
24
|
+
"secondary-text": "awsui_secondary-text_93a1u_g24ou_168"
|
|
25
25
|
};
|
|
26
26
|
|