@cloudscape-design/components 3.0.1402 → 3.0.1404
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/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/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/styles.css.js +4 -4
- package/button-group/styles.scoped.css +13 -13
- package/button-group/styles.selectors.js +4 -4
- 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/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/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/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/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/styles.css.js +37 -37
- package/input/styles.scoped.css +161 -161
- package/input/styles.selectors.js +37 -37
- 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/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/index.d.ts.map +1 -1
- package/internal/components/control-group/index.js +41 -14
- package/internal/components/control-group/index.js.map +1 -1
- package/internal/components/control-group/interfaces.d.ts +8 -1
- package/internal/components/control-group/interfaces.d.ts.map +1 -1
- package/internal/components/control-group/interfaces.js.map +1 -1
- package/internal/components/control-group/styles.css.js +20 -16
- package/internal/components/control-group/styles.scoped.css +70 -34
- package/internal/components/control-group/styles.selectors.js +20 -16
- package/internal/components/control-group/test-classes/styles.css.js +4 -3
- package/internal/components/control-group/test-classes/styles.scoped.css +7 -3
- package/internal/components/control-group/test-classes/styles.selectors.js +4 -3
- 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/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-fits-inline.d.ts +15 -0
- package/internal/hooks/use-fits-inline.d.ts.map +1 -0
- package/internal/hooks/use-fits-inline.js +31 -0
- package/internal/hooks/use-fits-inline.js.map +1 -0
- 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/styles.css.js +27 -27
- package/segmented-control/styles.scoped.css +109 -109
- package/segmented-control/styles.selectors.js +27 -27
- 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/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/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/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/test-utils/dom/internal/control-group.d.ts +4 -0
- package/test-utils/dom/internal/control-group.js +6 -0
- package/test-utils/dom/internal/control-group.js.map +1 -1
- package/test-utils/selectors/internal/control-group.d.ts +4 -0
- package/test-utils/selectors/internal/control-group.js +6 -0
- package/test-utils/selectors/internal/control-group.js.map +1 -1
- 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 +51 -38
- package/toggle/styles.selectors.js +10 -10
- 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/wizard/styles.css.js +30 -30
- package/wizard/styles.scoped.css +122 -122
- package/wizard/styles.selectors.js +30 -30
|
@@ -6,45 +6,45 @@
|
|
|
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_root_1fn7j_1xzur_9:not(#\9) {
|
|
10
10
|
position: absolute;
|
|
11
11
|
inline-size: 100%;
|
|
12
12
|
block-size: 100%;
|
|
13
13
|
inset-block-start: 0;
|
|
14
14
|
inset-inline-start: 0;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
17
|
-
fill: var(--awsui-internal-style-background-color, var(--color-background-control-default-
|
|
18
|
-
stroke: var(--awsui-internal-style-border-color, var(--color-border-control-default-
|
|
19
|
-
stroke-width: var(--border-width-field-
|
|
20
|
-
transition: fill var(--motion-duration-transition-quick-
|
|
16
|
+
.awsui_root_1fn7j_1xzur_9 > .awsui_styled-box_1fn7j_1xzur_16:not(#\9) {
|
|
17
|
+
fill: var(--awsui-internal-style-background-color, var(--color-background-control-default-03ibzy, #ffffff));
|
|
18
|
+
stroke: var(--awsui-internal-style-border-color, var(--color-border-control-default-dfulha, #8c8c94));
|
|
19
|
+
stroke-width: var(--border-width-field-f7slp9, 1px);
|
|
20
|
+
transition: fill var(--motion-duration-transition-quick-wyqttl, 90ms) var(--motion-easing-transition-quick-28eo3q, linear), stroke var(--motion-duration-transition-quick-wyqttl, 90ms) var(--motion-easing-transition-quick-28eo3q, linear);
|
|
21
21
|
}
|
|
22
22
|
@media (prefers-reduced-motion: reduce) {
|
|
23
|
-
.
|
|
23
|
+
.awsui_root_1fn7j_1xzur_9 > .awsui_styled-box_1fn7j_1xzur_16:not(#\9) {
|
|
24
24
|
animation: none;
|
|
25
25
|
transition: none;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
.awsui-motion-disabled .
|
|
28
|
+
.awsui-motion-disabled .awsui_root_1fn7j_1xzur_9 > .awsui_styled-box_1fn7j_1xzur_16:not(#\9), .awsui-mode-entering .awsui_root_1fn7j_1xzur_9 > .awsui_styled-box_1fn7j_1xzur_16:not(#\9) {
|
|
29
29
|
animation: none;
|
|
30
30
|
transition: none;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
33
|
-
fill: var(--awsui-internal-style-background-color, var(--color-background-control-checked-
|
|
34
|
-
stroke: var(--awsui-internal-style-border-color, var(--color-border-control-checked-
|
|
32
|
+
.awsui_root_1fn7j_1xzur_9 > .awsui_styled-box-checked_1fn7j_1xzur_32:not(#\9), .awsui_root_1fn7j_1xzur_9 > .awsui_styled-box-indeterminate_1fn7j_1xzur_32:not(#\9) {
|
|
33
|
+
fill: var(--awsui-internal-style-background-color, var(--color-background-control-checked-4bqnep, #006ce0));
|
|
34
|
+
stroke: var(--awsui-internal-style-border-color, var(--color-border-control-checked-fgnalc, #006ce0));
|
|
35
35
|
}
|
|
36
|
-
.
|
|
37
|
-
fill: var(--awsui-internal-style-background-color, var(--color-background-control-disabled-
|
|
38
|
-
stroke: var(--awsui-internal-style-border-color, var(--color-border-control-disabled-
|
|
36
|
+
.awsui_root_1fn7j_1xzur_9 > .awsui_styled-box-disabled_1fn7j_1xzur_36:not(#\9), .awsui_root_1fn7j_1xzur_9 > .awsui_styled-box-readonly_1fn7j_1xzur_36:not(#\9) {
|
|
37
|
+
fill: var(--awsui-internal-style-background-color, var(--color-background-control-disabled-tdp2nu, #dedee3));
|
|
38
|
+
stroke: var(--awsui-internal-style-border-color, var(--color-border-control-disabled-gg2cew, #dedee3));
|
|
39
39
|
}
|
|
40
|
-
.
|
|
41
|
-
stroke: var(--awsui-internal-style-color, var(--color-foreground-control-default-
|
|
40
|
+
.awsui_root_1fn7j_1xzur_9 > .awsui_styled-line_1fn7j_1xzur_40:not(#\9) {
|
|
41
|
+
stroke: var(--awsui-internal-style-color, var(--color-foreground-control-default-vycayl, #ffffff));
|
|
42
42
|
stroke-width: 2;
|
|
43
43
|
fill: none;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
46
|
-
stroke: var(--awsui-internal-style-color, var(--color-foreground-control-disabled-
|
|
45
|
+
.awsui_root_1fn7j_1xzur_9 > .awsui_styled-line-disabled_1fn7j_1xzur_45:not(#\9) {
|
|
46
|
+
stroke: var(--awsui-internal-style-color, var(--color-foreground-control-disabled-0eaxkw, #ffffff));
|
|
47
47
|
}
|
|
48
|
-
.
|
|
49
|
-
stroke: var(--awsui-internal-style-color, var(--color-foreground-control-read-only-
|
|
48
|
+
.awsui_root_1fn7j_1xzur_9 > .awsui_styled-line-readonly_1fn7j_1xzur_48:not(#\9) {
|
|
49
|
+
stroke: var(--awsui-internal-style-color, var(--color-foreground-control-read-only-i0z7u3, #656871));
|
|
50
50
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"styled-box": "awsui_styled-
|
|
7
|
-
"styled-box-checked": "awsui_styled-box-
|
|
8
|
-
"styled-box-indeterminate": "awsui_styled-box-
|
|
9
|
-
"styled-box-disabled": "awsui_styled-box-
|
|
10
|
-
"styled-box-readonly": "awsui_styled-box-
|
|
11
|
-
"styled-line": "awsui_styled-
|
|
12
|
-
"styled-line-disabled": "awsui_styled-line-
|
|
13
|
-
"styled-line-readonly": "awsui_styled-line-
|
|
5
|
+
"root": "awsui_root_1fn7j_1xzur_9",
|
|
6
|
+
"styled-box": "awsui_styled-box_1fn7j_1xzur_16",
|
|
7
|
+
"styled-box-checked": "awsui_styled-box-checked_1fn7j_1xzur_32",
|
|
8
|
+
"styled-box-indeterminate": "awsui_styled-box-indeterminate_1fn7j_1xzur_32",
|
|
9
|
+
"styled-box-disabled": "awsui_styled-box-disabled_1fn7j_1xzur_36",
|
|
10
|
+
"styled-box-readonly": "awsui_styled-box-readonly_1fn7j_1xzur_36",
|
|
11
|
+
"styled-line": "awsui_styled-line_1fn7j_1xzur_40",
|
|
12
|
+
"styled-line-disabled": "awsui_styled-line-disabled_1fn7j_1xzur_45",
|
|
13
|
+
"styled-line-readonly": "awsui_styled-line-readonly_1fn7j_1xzur_48"
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKjD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,SAAkB,EAClB,eAAe,EACf,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,iBAAiB,eA2GnB"}
|
|
@@ -5,31 +5,58 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { useUniqueId } from '@cloudscape-design/component-toolkit/internal';
|
|
6
6
|
import { InternalButton } from '../../../button/internal';
|
|
7
7
|
import { getBaseProps } from '../../base-component';
|
|
8
|
-
import { GroupedControlContext } from '../../context/control-group-context';
|
|
8
|
+
import { GroupedControlContext, } from '../../context/control-group-context';
|
|
9
|
+
import { useFitsInline } from '../../hooks/use-fits-inline';
|
|
9
10
|
import { flattenChildren } from '../../utils/flatten-children';
|
|
10
11
|
import styles from './styles.css.js';
|
|
11
12
|
import testUtilStyles from './test-classes/styles.css.js';
|
|
12
|
-
export default function ControlGroup({ children, direction = '
|
|
13
|
+
export default function ControlGroup({ children, direction = 'auto', inlineLabelText, actionButton, ...props }) {
|
|
13
14
|
const baseProps = getBaseProps(props);
|
|
14
15
|
const labelId = useUniqueId('control-group-label');
|
|
15
16
|
const flattenedChildren = flattenChildren(children, 'ControlGroup');
|
|
16
17
|
const controlCount = flattenedChildren.length;
|
|
18
|
+
const { fits, ghostRef, sensorRef } = useFitsInline();
|
|
19
|
+
const resolvedDirection = direction === 'auto' ? (fits ? 'horizontal' : 'vertical') : direction;
|
|
17
20
|
const rootClassnames = [styles.root, baseProps.className, testUtilStyles.root];
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
const renderControlSlots = (isGhost) => {
|
|
22
|
+
const slotDirection = isGhost
|
|
23
|
+
? 'horizontal' // The ghost always uses horizontal mode for measuring
|
|
24
|
+
: resolvedDirection;
|
|
25
|
+
return flattenedChildren.map((child, index) => {
|
|
26
|
+
const key = child && typeof child === 'object' ? child.key : undefined;
|
|
27
|
+
const position = controlCount === 1 ? 'only' : index === 0 ? 'first' : index === controlCount - 1 ? 'last' : 'middle';
|
|
28
|
+
return (React.createElement("div", { key: key !== null && key !== undefined ? String(key) : index, className: clsx(
|
|
29
|
+
// Make sure that test utils exclude the ghost
|
|
30
|
+
!isGhost && testUtilStyles.control, styles.control, styles[`control-${position}-${slotDirection}`]) },
|
|
31
|
+
React.createElement(GroupedControlContext.Provider, { value: { position, direction: slotDirection, hasAction: !!actionButton } }, child)));
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const renderActionButton = (isGhost) => actionButton ? (React.createElement("div", { className: styles['action-slot'] },
|
|
35
|
+
React.createElement(InternalButton
|
|
36
|
+
// Make sure that test utils exclude the ghost
|
|
37
|
+
, {
|
|
38
|
+
// Make sure that test utils exclude the ghost
|
|
39
|
+
className: isGhost ? undefined : testUtilStyles['action-button'], variant: "control-group-action", formAction: "none", iconName: actionButton.iconName, ariaLabel: actionButton.ariaLabel, disabled: actionButton.disabled, disabledReason: actionButton.disabledReason, ariaDescribedby: actionButton.ariaDescribedby, onClick: actionButton.onClick }))) : null;
|
|
40
|
+
// A single render path for both the real group layout and the ghost copy, so the ghost measures
|
|
41
|
+
// the whole group (controls + action button, including the overlap seam between them) as one unit.
|
|
42
|
+
// The ghost copy carries no role, no aria-labelledby, no base props, and no test-util classes.
|
|
43
|
+
const renderGroupLayout = (isGhost) => {
|
|
44
|
+
const slotDirection = isGhost ? 'horizontal' : resolvedDirection;
|
|
45
|
+
return (React.createElement("div", { className: clsx(styles['group-layout'], styles[`group-layout-${slotDirection}`]) },
|
|
46
|
+
React.createElement("div", { ...(isGhost ? {} : inlineLabelText ? { role: 'group', 'aria-labelledby': labelId } : { role: 'group' }), className: clsx(styles.controls, styles[`controls-${slotDirection}`]) }, renderControlSlots(isGhost)),
|
|
47
|
+
renderActionButton(isGhost)));
|
|
48
|
+
};
|
|
49
|
+
const groupLayoutWrapper = (React.createElement("div", { ...(inlineLabelText ? {} : baseProps), className: clsx(styles['group-layout-wrapper'], !inlineLabelText && rootClassnames) },
|
|
50
|
+
renderGroupLayout(false),
|
|
51
|
+
direction === 'auto' && (React.createElement(React.Fragment, null,
|
|
52
|
+
React.createElement("div", { ref: sensorRef, className: styles.sensor, "aria-hidden": "true" }),
|
|
53
|
+
React.createElement("div", { className: styles['ghost-anchor'] },
|
|
54
|
+
React.createElement("div", { ref: ghostRef, className: styles.ghost, "aria-hidden": "true" }, renderGroupLayout(true)))))));
|
|
28
55
|
if (inlineLabelText) {
|
|
29
56
|
return (React.createElement("div", { ...baseProps, className: clsx(...rootClassnames, styles['inline-label-wrapper']) },
|
|
30
57
|
React.createElement("label", { id: labelId, className: clsx(styles['inline-label'], testUtilStyles['inline-label']) }, inlineLabelText),
|
|
31
|
-
React.createElement("div", { className: styles['inline-label-trigger-wrapper'] },
|
|
58
|
+
React.createElement("div", { className: styles['inline-label-trigger-wrapper'] }, groupLayoutWrapper)));
|
|
32
59
|
}
|
|
33
|
-
return
|
|
60
|
+
return groupLayoutWrapper;
|
|
34
61
|
}
|
|
35
62
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/index.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport { InternalButton } from '../../../button/internal';\nimport { getBaseProps } from '../../base-component';\nimport {\n GroupedControlContext,\n GroupedControlDirection,\n GroupedControlPosition,\n} from '../../context/control-group-context';\nimport { useFitsInline } from '../../hooks/use-fits-inline';\nimport { flattenChildren } from '../../utils/flatten-children';\nimport { ControlGroupProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport { ControlGroupProps };\n\nexport default function ControlGroup({\n children,\n direction = 'auto',\n inlineLabelText,\n actionButton,\n ...props\n}: ControlGroupProps) {\n const baseProps = getBaseProps(props);\n const labelId = useUniqueId('control-group-label');\n\n const flattenedChildren = flattenChildren(children, 'ControlGroup');\n const controlCount = flattenedChildren.length;\n\n const { fits, ghostRef, sensorRef } = useFitsInline<HTMLDivElement>();\n const resolvedDirection: GroupedControlDirection =\n direction === 'auto' ? (fits ? 'horizontal' : 'vertical') : direction;\n\n const rootClassnames = [styles.root, baseProps.className, testUtilStyles.root];\n\n const renderControlSlots = (isGhost: boolean) => {\n const slotDirection: GroupedControlDirection = isGhost\n ? 'horizontal' // The ghost always uses horizontal mode for measuring\n : resolvedDirection;\n return flattenedChildren.map((child, index) => {\n const key = child && typeof child === 'object' ? (child as Record<'key', unknown>).key : undefined;\n const position: GroupedControlPosition =\n controlCount === 1 ? 'only' : index === 0 ? 'first' : index === controlCount - 1 ? 'last' : 'middle';\n return (\n <div\n key={key !== null && key !== undefined ? String(key) : index}\n className={clsx(\n // Make sure that test utils exclude the ghost\n !isGhost && testUtilStyles.control,\n styles.control,\n styles[`control-${position}-${slotDirection}`]\n )}\n >\n <GroupedControlContext.Provider value={{ position, direction: slotDirection, hasAction: !!actionButton }}>\n {child}\n </GroupedControlContext.Provider>\n </div>\n );\n });\n };\n\n const renderActionButton = (isGhost: boolean) =>\n actionButton ? (\n <div className={styles['action-slot']}>\n <InternalButton\n // Make sure that test utils exclude the ghost\n className={isGhost ? undefined : testUtilStyles['action-button']}\n variant=\"control-group-action\"\n formAction=\"none\"\n iconName={actionButton.iconName}\n ariaLabel={actionButton.ariaLabel}\n disabled={actionButton.disabled}\n disabledReason={actionButton.disabledReason}\n ariaDescribedby={actionButton.ariaDescribedby}\n onClick={actionButton.onClick}\n />\n </div>\n ) : null;\n\n // A single render path for both the real group layout and the ghost copy, so the ghost measures\n // the whole group (controls + action button, including the overlap seam between them) as one unit.\n // The ghost copy carries no role, no aria-labelledby, no base props, and no test-util classes.\n const renderGroupLayout = (isGhost: boolean) => {\n const slotDirection: GroupedControlDirection = isGhost ? 'horizontal' : resolvedDirection;\n return (\n <div className={clsx(styles['group-layout'], styles[`group-layout-${slotDirection}`])}>\n <div\n {...(isGhost ? {} : inlineLabelText ? { role: 'group', 'aria-labelledby': labelId } : { role: 'group' })}\n className={clsx(styles.controls, styles[`controls-${slotDirection}`])}\n >\n {renderControlSlots(isGhost)}\n </div>\n {renderActionButton(isGhost)}\n </div>\n );\n };\n\n const groupLayoutWrapper = (\n <div\n {...(inlineLabelText ? {} : baseProps)}\n className={clsx(styles['group-layout-wrapper'], !inlineLabelText && rootClassnames)}\n >\n {renderGroupLayout(false)}\n\n {direction === 'auto' && (\n <>\n <div ref={sensorRef} className={styles.sensor} aria-hidden=\"true\" />\n <div className={styles['ghost-anchor']}>\n <div ref={ghostRef} className={styles.ghost} aria-hidden=\"true\">\n {renderGroupLayout(true)}\n </div>\n </div>\n </>\n )}\n </div>\n );\n\n if (inlineLabelText) {\n return (\n <div {...baseProps} className={clsx(...rootClassnames, styles['inline-label-wrapper'])}>\n <label id={labelId} className={clsx(styles['inline-label'], testUtilStyles['inline-label'])}>\n {inlineLabelText}\n </label>\n <div className={styles['inline-label-trigger-wrapper']}>{groupLayoutWrapper}</div>\n </div>\n );\n }\n\n return groupLayoutWrapper;\n}\n"]}
|
|
@@ -5,7 +5,13 @@ import { GroupedControlDirection } from '../../context/control-group-context';
|
|
|
5
5
|
import { CancelableEventHandler } from '../../events';
|
|
6
6
|
export interface ControlGroupProps extends BaseComponentProps {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The axis along which the controls are laid out (`horizontal`, `vertical` or `auto`).
|
|
10
|
+
* When set to `auto` (default), the component decides the direction based on whether it
|
|
11
|
+
* fits in the padding box of its
|
|
12
|
+
* [containing block](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Display/Containing_block).
|
|
13
|
+
*/
|
|
14
|
+
direction?: ControlGroupProps.ControlGroupDirection;
|
|
9
15
|
inlineLabelText?: string;
|
|
10
16
|
/**
|
|
11
17
|
* Specifies an action button rendered next to the grouped controls.
|
|
@@ -13,6 +19,7 @@ export interface ControlGroupProps extends BaseComponentProps {
|
|
|
13
19
|
actionButton?: ControlGroupProps.ActionButton;
|
|
14
20
|
}
|
|
15
21
|
export declare namespace ControlGroupProps {
|
|
22
|
+
type ControlGroupDirection = GroupedControlDirection | 'auto';
|
|
16
23
|
interface ActionButton {
|
|
17
24
|
/**
|
|
18
25
|
* Called when the user clicks on the button and the button is not disabled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC,qBAAqB,CAAC;IACpD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC;CAC/C;AAED,yBAAiB,iBAAiB,CAAC;IAGjC,KAAY,qBAAqB,GAAG,uBAAuB,GAAG,MAAM,CAAC;IAErE,UAAiB,YAAY;QAC3B;;WAEG;QACH,OAAO,CAAC,EAAE,sBAAsB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAE1D;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB,uEAAuE;QACvE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;KAC1B;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonProps } from '../../../button/interfaces';\nimport { IconProps } from '../../../icon/interfaces';\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { GroupedControlDirection } from '../../context/control-group-context';\nimport { CancelableEventHandler } from '../../events';\n\nexport interface ControlGroupProps extends BaseComponentProps {\n children?: React.ReactNode;\n direction?:
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonProps } from '../../../button/interfaces';\nimport { IconProps } from '../../../icon/interfaces';\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { GroupedControlDirection } from '../../context/control-group-context';\nimport { CancelableEventHandler } from '../../events';\n\nexport interface ControlGroupProps extends BaseComponentProps {\n children?: React.ReactNode;\n /**\n * The axis along which the controls are laid out (`horizontal`, `vertical` or `auto`).\n * When set to `auto` (default), the component decides the direction based on whether it\n * fits in the padding box of its\n * [containing block](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Display/Containing_block).\n */\n direction?: ControlGroupProps.ControlGroupDirection;\n inlineLabelText?: string;\n /**\n * Specifies an action button rendered next to the grouped controls.\n */\n actionButton?: ControlGroupProps.ActionButton;\n}\n\nexport namespace ControlGroupProps {\n // `'auto'` exists only for the control group but not for the inner grouped controls,\n // which receive a definite value (`horizontal` or `vertical`).\n export type ControlGroupDirection = GroupedControlDirection | 'auto';\n\n export interface ActionButton {\n /**\n * Called when the user clicks on the button and the button is not disabled.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n\n /**\n * Provides a reason why the button is disabled (only when `disabled` is `true`).\n * If provided, the button becomes focusable.\n */\n disabledReason?: string;\n\n /**\n * Adds `aria-label` to the button element.\n * The text will also be added to the `title` attribute of the button.\n */\n ariaLabel: string;\n\n /**\n * Adds `aria-describedby` to the button.\n */\n ariaDescribedby?: string;\n\n /** Specifies the icon to display (for example `remove` or `close`). */\n iconName: IconProps.Name;\n }\n}\n"]}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"group-layout
|
|
8
|
-
"group-layout-
|
|
9
|
-
"
|
|
10
|
-
"controls
|
|
11
|
-
"controls-
|
|
12
|
-
"
|
|
13
|
-
"control
|
|
14
|
-
"control-
|
|
15
|
-
"control-
|
|
16
|
-
"control-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
4
|
+
"root": "awsui_root_o08jm_4qu6h_9",
|
|
5
|
+
"group-layout-wrapper": "awsui_group-layout-wrapper_o08jm_4qu6h_41",
|
|
6
|
+
"action-slot": "awsui_action-slot_o08jm_4qu6h_45",
|
|
7
|
+
"group-layout": "awsui_group-layout_o08jm_4qu6h_41",
|
|
8
|
+
"group-layout-horizontal": "awsui_group-layout-horizontal_o08jm_4qu6h_55",
|
|
9
|
+
"group-layout-vertical": "awsui_group-layout-vertical_o08jm_4qu6h_58",
|
|
10
|
+
"controls": "awsui_controls_o08jm_4qu6h_62",
|
|
11
|
+
"controls-horizontal": "awsui_controls-horizontal_o08jm_4qu6h_66",
|
|
12
|
+
"controls-vertical": "awsui_controls-vertical_o08jm_4qu6h_72",
|
|
13
|
+
"control": "awsui_control_o08jm_4qu6h_62",
|
|
14
|
+
"control-middle-horizontal": "awsui_control-middle-horizontal_o08jm_4qu6h_81",
|
|
15
|
+
"control-last-horizontal": "awsui_control-last-horizontal_o08jm_4qu6h_81",
|
|
16
|
+
"control-middle-vertical": "awsui_control-middle-vertical_o08jm_4qu6h_84",
|
|
17
|
+
"control-last-vertical": "awsui_control-last-vertical_o08jm_4qu6h_84",
|
|
18
|
+
"sensor": "awsui_sensor_o08jm_4qu6h_93",
|
|
19
|
+
"ghost-anchor": "awsui_ghost-anchor_o08jm_4qu6h_105",
|
|
20
|
+
"inline-label": "awsui_inline-label_o08jm_4qu6h_110",
|
|
21
|
+
"inline-label-wrapper": "awsui_inline-label-wrapper_o08jm_4qu6h_135",
|
|
22
|
+
"inline-label-trigger-wrapper": "awsui_inline-label-trigger-wrapper_o08jm_4qu6h_140",
|
|
23
|
+
"ghost": "awsui_ghost_o08jm_4qu6h_105"
|
|
20
24
|
};
|
|
21
25
|
|
|
@@ -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
|
-
.
|
|
9
|
+
.awsui_root_o08jm_4qu6h_9:not(#\9) {
|
|
10
10
|
border-collapse: separate;
|
|
11
11
|
border-spacing: 0;
|
|
12
12
|
box-sizing: border-box;
|
|
@@ -29,89 +29,125 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
29
29
|
visibility: visible;
|
|
30
30
|
white-space: normal;
|
|
31
31
|
word-spacing: normal;
|
|
32
|
-
font-size: var(--font-size-body-m-
|
|
33
|
-
line-height: var(--line-height-body-m-
|
|
34
|
-
color: var(--color-text-body-default-
|
|
35
|
-
font-weight: var(--font-weight-normal-
|
|
36
|
-
font-family: var(--font-family-base-
|
|
32
|
+
font-size: var(--font-size-body-m-diae7s, 14px);
|
|
33
|
+
line-height: var(--line-height-body-m-18p63n, 20px);
|
|
34
|
+
color: var(--color-text-body-default-9im48h, #0f141a);
|
|
35
|
+
font-weight: var(--font-weight-normal-jditlz, 400);
|
|
36
|
+
font-family: var(--font-family-base-khplu5, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
37
37
|
-webkit-font-smoothing: auto;
|
|
38
38
|
-moz-osx-font-smoothing: auto;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
41
|
+
.awsui_group-layout-wrapper_o08jm_4qu6h_41:not(#\9) {
|
|
42
|
+
position: static;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.awsui_action-slot_o08jm_4qu6h_45:not(#\9) {
|
|
42
46
|
display: flex;
|
|
43
|
-
margin-inline-start: calc(-1 * var(--border-width-field-
|
|
47
|
+
margin-inline-start: calc(-1 * var(--border-width-field-f7slp9, 1px));
|
|
48
|
+
flex-shrink: 0;
|
|
44
49
|
}
|
|
45
50
|
|
|
46
|
-
.awsui_group-
|
|
51
|
+
.awsui_group-layout_o08jm_4qu6h_41:not(#\9) {
|
|
47
52
|
display: flex;
|
|
48
53
|
flex-direction: row;
|
|
49
54
|
}
|
|
50
|
-
.awsui_group-layout-
|
|
55
|
+
.awsui_group-layout-horizontal_o08jm_4qu6h_55:not(#\9) {
|
|
51
56
|
align-items: flex-end;
|
|
52
57
|
}
|
|
53
|
-
.awsui_group-layout-
|
|
58
|
+
.awsui_group-layout-vertical_o08jm_4qu6h_58:not(#\9), .awsui_group-layout-vertical_o08jm_4qu6h_58 > .awsui_action-slot_o08jm_4qu6h_45:not(#\9) {
|
|
54
59
|
align-items: stretch;
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
.
|
|
62
|
+
.awsui_controls_o08jm_4qu6h_62:not(#\9) {
|
|
58
63
|
display: flex;
|
|
59
64
|
align-items: stretch;
|
|
60
65
|
}
|
|
61
|
-
.awsui_controls-
|
|
66
|
+
.awsui_controls-horizontal_o08jm_4qu6h_66:not(#\9) {
|
|
62
67
|
flex-direction: row;
|
|
63
68
|
flex-wrap: nowrap;
|
|
69
|
+
min-inline-size: 0;
|
|
70
|
+
flex-shrink: 1;
|
|
64
71
|
}
|
|
65
|
-
.awsui_controls-
|
|
72
|
+
.awsui_controls-vertical_o08jm_4qu6h_72:not(#\9) {
|
|
66
73
|
flex-direction: column;
|
|
74
|
+
flex-grow: 1;
|
|
67
75
|
}
|
|
68
76
|
|
|
69
|
-
.
|
|
77
|
+
.awsui_control_o08jm_4qu6h_62:not(#\9) {
|
|
70
78
|
min-inline-size: 0;
|
|
71
79
|
isolation: isolate;
|
|
72
80
|
}
|
|
73
|
-
.awsui_control-middle-
|
|
74
|
-
margin-inline-start: calc(-1 * var(--border-width-field-
|
|
81
|
+
.awsui_control-middle-horizontal_o08jm_4qu6h_81:not(#\9), .awsui_control-last-horizontal_o08jm_4qu6h_81:not(#\9) {
|
|
82
|
+
margin-inline-start: calc(-1 * var(--border-width-field-f7slp9, 1px));
|
|
75
83
|
}
|
|
76
|
-
.awsui_control-middle-
|
|
77
|
-
margin-block-start: calc(-1 * var(--border-width-field-
|
|
84
|
+
.awsui_control-middle-vertical_o08jm_4qu6h_84:not(#\9), .awsui_control-last-vertical_o08jm_4qu6h_84:not(#\9) {
|
|
85
|
+
margin-block-start: calc(-1 * var(--border-width-field-f7slp9, 1px));
|
|
78
86
|
}
|
|
79
87
|
|
|
80
|
-
.awsui_action-
|
|
81
|
-
.
|
|
88
|
+
.awsui_action-slot_o08jm_4qu6h_45:not(#\9):focus-within,
|
|
89
|
+
.awsui_control_o08jm_4qu6h_62:not(#\9):focus-within {
|
|
82
90
|
z-index: 1;
|
|
83
91
|
}
|
|
84
92
|
|
|
85
|
-
.
|
|
86
|
-
|
|
93
|
+
.awsui_sensor_o08jm_4qu6h_93:not(#\9) {
|
|
94
|
+
position: absolute;
|
|
95
|
+
inset-block-start: 0;
|
|
96
|
+
inset-inline-start: 0;
|
|
97
|
+
block-size: 0;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
visibility: hidden;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
inset-inline-end: 0;
|
|
102
|
+
min-inline-size: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.awsui_ghost-anchor_o08jm_4qu6h_105:not(#\9) {
|
|
106
|
+
position: relative;
|
|
107
|
+
block-size: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.awsui_inline-label_o08jm_4qu6h_110:not(#\9) {
|
|
111
|
+
background: linear-gradient(to bottom, var(--awsui-inline-label-background-color-ka4djm, var(--color-background-layout-main-lursna, #ffffff)), var(--color-background-input-default-dfjnbd, #ffffff));
|
|
87
112
|
border-start-start-radius: 2px;
|
|
88
113
|
border-start-end-radius: 2px;
|
|
89
114
|
border-end-start-radius: 2px;
|
|
90
115
|
border-end-end-radius: 2px;
|
|
91
116
|
box-sizing: border-box;
|
|
92
117
|
display: inline-block;
|
|
93
|
-
color: var(--color-text-form-label-
|
|
94
|
-
font-weight: var(--font-display-label-weight-
|
|
95
|
-
font-size: var(--font-size-body-s-
|
|
118
|
+
color: var(--color-text-form-label-rqteix, #0f141a);
|
|
119
|
+
font-weight: var(--font-display-label-weight-sfjkdk, 700);
|
|
120
|
+
font-size: var(--font-size-body-s-ovzhcr, 12px);
|
|
96
121
|
line-height: 14px;
|
|
97
|
-
letter-spacing: var(--letter-spacing-body-s-
|
|
122
|
+
letter-spacing: var(--letter-spacing-body-s-71brc7, 0.005em);
|
|
98
123
|
position: relative;
|
|
99
|
-
inset-inline-start: calc(var(--border-width-field-
|
|
100
|
-
margin-block-start: var(--space-scaled-xs-
|
|
124
|
+
inset-inline-start: calc(var(--border-width-field-f7slp9, 1px) + var(--space-field-horizontal-d3xvls, 12px) - var(--space-scaled-xxs-54nfiu, 4px));
|
|
125
|
+
margin-block-start: var(--space-scaled-xs-65ylh6, 8px);
|
|
101
126
|
padding-block-end: 2px;
|
|
102
|
-
padding-inline: var(--space-scaled-xxs-
|
|
103
|
-
max-inline-size: calc(100% - 2 * var(--space-field-horizontal-
|
|
127
|
+
padding-inline: var(--space-scaled-xxs-54nfiu, 4px);
|
|
128
|
+
max-inline-size: calc(100% - 2 * var(--space-field-horizontal-d3xvls, 12px));
|
|
104
129
|
z-index: 1;
|
|
105
130
|
padding-block-end: 0;
|
|
106
131
|
transform: translateY(-1.5px);
|
|
107
132
|
z-index: 2;
|
|
108
133
|
}
|
|
109
134
|
|
|
110
|
-
.awsui_inline-label-
|
|
111
|
-
margin-block-start: calc(var(--space-scaled-xs-
|
|
135
|
+
.awsui_inline-label-wrapper_o08jm_4qu6h_135:not(#\9) {
|
|
136
|
+
margin-block-start: calc(var(--space-scaled-xs-65ylh6, 8px) * -1);
|
|
112
137
|
isolation: isolate;
|
|
113
138
|
}
|
|
114
139
|
|
|
115
|
-
.awsui_inline-label-trigger-
|
|
140
|
+
.awsui_inline-label-trigger-wrapper_o08jm_4qu6h_140:not(#\9) {
|
|
116
141
|
margin-block-start: -7px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.awsui_ghost_o08jm_4qu6h_105:not(#\9) {
|
|
145
|
+
position: absolute;
|
|
146
|
+
inset-block-start: 0;
|
|
147
|
+
inset-inline-start: 0;
|
|
148
|
+
block-size: 0;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
visibility: hidden;
|
|
151
|
+
pointer-events: none;
|
|
152
|
+
inline-size: max-content;
|
|
117
153
|
}
|
|
@@ -2,21 +2,25 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"group-layout
|
|
9
|
-
"group-layout-
|
|
10
|
-
"
|
|
11
|
-
"controls
|
|
12
|
-
"controls-
|
|
13
|
-
"
|
|
14
|
-
"control
|
|
15
|
-
"control-
|
|
16
|
-
"control-
|
|
17
|
-
"control-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
5
|
+
"root": "awsui_root_o08jm_4qu6h_9",
|
|
6
|
+
"group-layout-wrapper": "awsui_group-layout-wrapper_o08jm_4qu6h_41",
|
|
7
|
+
"action-slot": "awsui_action-slot_o08jm_4qu6h_45",
|
|
8
|
+
"group-layout": "awsui_group-layout_o08jm_4qu6h_41",
|
|
9
|
+
"group-layout-horizontal": "awsui_group-layout-horizontal_o08jm_4qu6h_55",
|
|
10
|
+
"group-layout-vertical": "awsui_group-layout-vertical_o08jm_4qu6h_58",
|
|
11
|
+
"controls": "awsui_controls_o08jm_4qu6h_62",
|
|
12
|
+
"controls-horizontal": "awsui_controls-horizontal_o08jm_4qu6h_66",
|
|
13
|
+
"controls-vertical": "awsui_controls-vertical_o08jm_4qu6h_72",
|
|
14
|
+
"control": "awsui_control_o08jm_4qu6h_62",
|
|
15
|
+
"control-middle-horizontal": "awsui_control-middle-horizontal_o08jm_4qu6h_81",
|
|
16
|
+
"control-last-horizontal": "awsui_control-last-horizontal_o08jm_4qu6h_81",
|
|
17
|
+
"control-middle-vertical": "awsui_control-middle-vertical_o08jm_4qu6h_84",
|
|
18
|
+
"control-last-vertical": "awsui_control-last-vertical_o08jm_4qu6h_84",
|
|
19
|
+
"sensor": "awsui_sensor_o08jm_4qu6h_93",
|
|
20
|
+
"ghost-anchor": "awsui_ghost-anchor_o08jm_4qu6h_105",
|
|
21
|
+
"inline-label": "awsui_inline-label_o08jm_4qu6h_110",
|
|
22
|
+
"inline-label-wrapper": "awsui_inline-label-wrapper_o08jm_4qu6h_135",
|
|
23
|
+
"inline-label-trigger-wrapper": "awsui_inline-label-trigger-wrapper_o08jm_4qu6h_140",
|
|
24
|
+
"ghost": "awsui_ghost_o08jm_4qu6h_105"
|
|
21
25
|
};
|
|
22
26
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"action-button": "awsui_action-
|
|
6
|
-
"
|
|
4
|
+
"root": "awsui_root_1gp1v_1w0bf_5",
|
|
5
|
+
"action-button": "awsui_action-button_1gp1v_1w0bf_9",
|
|
6
|
+
"control": "awsui_control_1gp1v_1w0bf_13",
|
|
7
|
+
"inline-label": "awsui_inline-label_1gp1v_1w0bf_17"
|
|
7
8
|
};
|
|
8
9
|
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
.
|
|
5
|
+
.awsui_root_1gp1v_1w0bf_5:not(#\9) {
|
|
6
6
|
/* used in test-utils */
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.awsui_action-
|
|
9
|
+
.awsui_action-button_1gp1v_1w0bf_9:not(#\9) {
|
|
10
10
|
/* used in test-utils */
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.
|
|
13
|
+
.awsui_control_1gp1v_1w0bf_13:not(#\9) {
|
|
14
|
+
/* used in test-utils */
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.awsui_inline-label_1gp1v_1w0bf_17:not(#\9) {
|
|
14
18
|
/* used in test-utils */
|
|
15
19
|
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"action-button": "awsui_action-
|
|
7
|
-
"
|
|
5
|
+
"root": "awsui_root_1gp1v_1w0bf_5",
|
|
6
|
+
"action-button": "awsui_action-button_1gp1v_1w0bf_9",
|
|
7
|
+
"control": "awsui_control_1gp1v_1w0bf_13",
|
|
8
|
+
"inline-label": "awsui_inline-label_1gp1v_1w0bf_17"
|
|
8
9
|
};
|
|
9
10
|
|