@cloudscape-design/components-themeable 3.0.199 → 3.0.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/notifications/styles.scss +2 -0
- package/lib/internal/scss/app-layout/visual-refresh/notifications.scss +1 -0
- package/lib/internal/scss/cards/motion.scss +9 -1
- package/lib/internal/scss/cards/styles.scss +2 -10
- package/lib/internal/scss/container/styles.scss +41 -21
- package/lib/internal/scss/flashbar/collapsible.motion.scss +1 -1
- package/lib/internal/scss/flashbar/collapsible.scss +7 -6
- package/lib/internal/scss/flashbar/styles.scss +4 -14
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +28 -27
- package/lib/internal/scss/internal/styles/forms/mixins.scss +17 -3
- package/lib/internal/scss/internal/styles/utils/mixins.scss +12 -0
- package/lib/internal/scss/modal/styles.scss +3 -2
- package/lib/internal/scss/wizard/styles.scss +2 -3
- package/lib/internal/template/alert/styles.css.js +19 -19
- package/lib/internal/template/alert/styles.scoped.css +33 -33
- package/lib/internal/template/alert/styles.selectors.js +19 -19
- package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +32 -32
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
- package/lib/internal/template/app-layout/content-wrapper/styles.css.js +3 -3
- package/lib/internal/template/app-layout/content-wrapper/styles.scoped.css +8 -8
- package/lib/internal/template/app-layout/content-wrapper/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/mobile-toolbar/styles.css.js +4 -4
- package/lib/internal/template/app-layout/mobile-toolbar/styles.scoped.css +9 -9
- package/lib/internal/template/app-layout/mobile-toolbar/styles.selectors.js +4 -4
- package/lib/internal/template/app-layout/notifications/styles.css.js +1 -1
- package/lib/internal/template/app-layout/notifications/styles.scoped.css +2 -1
- package/lib/internal/template/app-layout/notifications/styles.selectors.js +1 -1
- package/lib/internal/template/app-layout/styles.css.js +26 -26
- package/lib/internal/template/app-layout/styles.scoped.css +35 -35
- package/lib/internal/template/app-layout/styles.selectors.js +26 -26
- package/lib/internal/template/app-layout/toggles/styles.css.js +1 -1
- package/lib/internal/template/app-layout/toggles/styles.scoped.css +3 -3
- package/lib/internal/template/app-layout/toggles/styles.selectors.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +60 -60
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +225 -224
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +60 -60
- package/lib/internal/template/area-chart/styles.css.js +13 -13
- package/lib/internal/template/area-chart/styles.scoped.css +18 -18
- package/lib/internal/template/area-chart/styles.selectors.js +13 -13
- package/lib/internal/template/attribute-editor/interfaces.d.ts +1 -0
- package/lib/internal/template/attribute-editor/interfaces.d.ts.map +1 -1
- package/lib/internal/template/attribute-editor/interfaces.js.map +1 -1
- package/lib/internal/template/attribute-editor/internal.d.ts.map +1 -1
- package/lib/internal/template/attribute-editor/internal.js +17 -2
- package/lib/internal/template/attribute-editor/internal.js.map +1 -1
- package/lib/internal/template/attribute-editor/styles.css.js +14 -14
- package/lib/internal/template/attribute-editor/styles.scoped.css +26 -26
- package/lib/internal/template/attribute-editor/styles.selectors.js +14 -14
- package/lib/internal/template/badge/styles.css.js +5 -5
- package/lib/internal/template/badge/styles.scoped.css +7 -7
- package/lib/internal/template/badge/styles.selectors.js +5 -5
- package/lib/internal/template/box/styles.css.js +189 -189
- package/lib/internal/template/box/styles.scoped.css +240 -240
- package/lib/internal/template/box/styles.selectors.js +189 -189
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +9 -9
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +19 -19
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +9 -9
- package/lib/internal/template/breadcrumb-group/styles.css.js +6 -6
- package/lib/internal/template/breadcrumb-group/styles.scoped.css +13 -13
- package/lib/internal/template/breadcrumb-group/styles.selectors.js +6 -6
- package/lib/internal/template/button/styles.css.js +18 -18
- package/lib/internal/template/button/styles.scoped.css +138 -138
- package/lib/internal/template/button/styles.selectors.js +18 -18
- package/lib/internal/template/button-dropdown/category-elements/styles.css.js +13 -13
- package/lib/internal/template/button-dropdown/category-elements/styles.scoped.css +25 -25
- package/lib/internal/template/button-dropdown/category-elements/styles.selectors.js +13 -13
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +14 -14
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +20 -20
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +14 -14
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.scoped.css +7 -7
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/lib/internal/template/button-dropdown/styles.css.js +8 -8
- package/lib/internal/template/button-dropdown/styles.scoped.css +16 -16
- package/lib/internal/template/button-dropdown/styles.selectors.js +8 -8
- package/lib/internal/template/calendar/styles.css.js +18 -18
- package/lib/internal/template/calendar/styles.scoped.css +40 -40
- package/lib/internal/template/calendar/styles.selectors.js +18 -18
- package/lib/internal/template/cards/styles.css.js +37 -37
- package/lib/internal/template/cards/styles.scoped.css +122 -57
- package/lib/internal/template/cards/styles.selectors.js +37 -37
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +7 -7
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/code-editor/styles.css.js +32 -32
- package/lib/internal/template/code-editor/styles.scoped.css +159 -159
- package/lib/internal/template/code-editor/styles.selectors.js +32 -32
- package/lib/internal/template/collection-preferences/styles.css.js +20 -20
- package/lib/internal/template/collection-preferences/styles.scoped.css +25 -25
- package/lib/internal/template/collection-preferences/styles.selectors.js +20 -20
- package/lib/internal/template/column-layout/styles.css.js +13 -13
- package/lib/internal/template/column-layout/styles.scoped.css +45 -45
- package/lib/internal/template/column-layout/styles.selectors.js +13 -13
- package/lib/internal/template/container/internal.d.ts.map +1 -1
- package/lib/internal/template/container/internal.js +1 -1
- package/lib/internal/template/container/internal.js.map +1 -1
- package/lib/internal/template/container/styles.css.js +18 -17
- package/lib/internal/template/container/styles.scoped.css +106 -43
- package/lib/internal/template/container/styles.selectors.js +18 -17
- package/lib/internal/template/container/use-sticky-header.d.ts.map +1 -1
- package/lib/internal/template/container/use-sticky-header.js +4 -15
- package/lib/internal/template/container/use-sticky-header.js.map +1 -1
- package/lib/internal/template/content-layout/styles.css.js +7 -7
- package/lib/internal/template/content-layout/styles.scoped.css +13 -13
- package/lib/internal/template/content-layout/styles.selectors.js +7 -7
- package/lib/internal/template/date-picker/styles.css.js +7 -7
- package/lib/internal/template/date-picker/styles.scoped.css +11 -11
- package/lib/internal/template/date-picker/styles.selectors.js +7 -7
- package/lib/internal/template/date-range-picker/calendar/grids/styles.css.js +25 -25
- package/lib/internal/template/date-range-picker/calendar/grids/styles.scoped.css +44 -44
- package/lib/internal/template/date-range-picker/calendar/grids/styles.selectors.js +25 -25
- package/lib/internal/template/date-range-picker/relative-range/styles.css.js +9 -9
- package/lib/internal/template/date-range-picker/relative-range/styles.scoped.css +15 -15
- package/lib/internal/template/date-range-picker/relative-range/styles.selectors.js +9 -9
- package/lib/internal/template/date-range-picker/styles.css.js +38 -38
- package/lib/internal/template/date-range-picker/styles.scoped.css +47 -47
- package/lib/internal/template/date-range-picker/styles.selectors.js +38 -38
- package/lib/internal/template/expandable-section/styles.css.js +21 -21
- package/lib/internal/template/expandable-section/styles.scoped.css +44 -44
- package/lib/internal/template/expandable-section/styles.selectors.js +21 -21
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts +2 -2
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.js +19 -9
- package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/common.d.ts +2 -2
- package/lib/internal/template/flashbar/common.d.ts.map +1 -1
- package/lib/internal/template/flashbar/common.js.map +1 -1
- package/lib/internal/template/flashbar/index.d.ts +2 -2
- package/lib/internal/template/flashbar/index.d.ts.map +1 -1
- package/lib/internal/template/flashbar/index.js +1 -4
- package/lib/internal/template/flashbar/index.js.map +1 -1
- package/lib/internal/template/flashbar/interfaces.d.ts +30 -17
- package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/flashbar/interfaces.js.map +1 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts +2 -2
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +43 -43
- package/lib/internal/template/flashbar/styles.scoped.css +152 -163
- package/lib/internal/template/flashbar/styles.selectors.js +43 -43
- package/lib/internal/template/flashbar/utils.d.ts +1 -0
- package/lib/internal/template/flashbar/utils.d.ts.map +1 -1
- package/lib/internal/template/flashbar/utils.js +3 -0
- package/lib/internal/template/flashbar/utils.js.map +1 -1
- package/lib/internal/template/form/styles.css.js +8 -8
- package/lib/internal/template/form/styles.scoped.css +10 -10
- package/lib/internal/template/form/styles.selectors.js +8 -8
- package/lib/internal/template/form-field/styles.css.js +19 -19
- package/lib/internal/template/form-field/styles.scoped.css +31 -31
- package/lib/internal/template/form-field/styles.selectors.js +19 -19
- package/lib/internal/template/grid/styles.css.js +53 -53
- package/lib/internal/template/grid/styles.scoped.css +56 -56
- package/lib/internal/template/grid/styles.selectors.js +53 -53
- package/lib/internal/template/header/styles.css.js +44 -44
- package/lib/internal/template/header/styles.scoped.css +49 -49
- package/lib/internal/template/header/styles.selectors.js +44 -44
- package/lib/internal/template/help-panel/styles.css.js +4 -4
- package/lib/internal/template/help-panel/styles.scoped.css +60 -60
- package/lib/internal/template/help-panel/styles.selectors.js +4 -4
- package/lib/internal/template/hotspot/styles.css.js +7 -7
- package/lib/internal/template/hotspot/styles.scoped.css +9 -9
- package/lib/internal/template/hotspot/styles.selectors.js +7 -7
- package/lib/internal/template/icon/styles.css.js +21 -21
- package/lib/internal/template/icon/styles.scoped.css +50 -50
- package/lib/internal/template/icon/styles.selectors.js +21 -21
- package/lib/internal/template/input/styles.css.js +12 -12
- package/lib/internal/template/input/styles.scoped.css +32 -32
- package/lib/internal/template/input/styles.selectors.js +12 -12
- package/lib/internal/template/internal/base-component/styles.scoped.css +4 -4
- package/lib/internal/template/internal/components/abstract-switch/styles.css.js +12 -12
- package/lib/internal/template/internal/components/abstract-switch/styles.scoped.css +21 -21
- package/lib/internal/template/internal/components/abstract-switch/styles.selectors.js +12 -12
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +9 -9
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +25 -25
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +9 -9
- package/lib/internal/template/internal/components/chart-filter/styles.css.js +3 -3
- package/lib/internal/template/internal/components/chart-filter/styles.scoped.css +5 -5
- package/lib/internal/template/internal/components/chart-filter/styles.selectors.js +3 -3
- package/lib/internal/template/internal/components/chart-legend/styles.css.js +6 -6
- package/lib/internal/template/internal/components/chart-legend/styles.scoped.css +17 -17
- package/lib/internal/template/internal/components/chart-legend/styles.selectors.js +6 -6
- package/lib/internal/template/internal/components/chart-plot/styles.css.js +5 -5
- package/lib/internal/template/internal/components/chart-plot/styles.scoped.css +7 -7
- package/lib/internal/template/internal/components/chart-plot/styles.selectors.js +5 -5
- package/lib/internal/template/internal/components/chart-popover/styles.css.js +3 -3
- package/lib/internal/template/internal/components/chart-popover/styles.scoped.css +5 -5
- package/lib/internal/template/internal/components/chart-popover/styles.selectors.js +3 -3
- package/lib/internal/template/internal/components/chart-series-details/styles.css.js +5 -5
- package/lib/internal/template/internal/components/chart-series-details/styles.scoped.css +10 -10
- package/lib/internal/template/internal/components/chart-series-details/styles.selectors.js +5 -5
- package/lib/internal/template/internal/components/chart-series-marker/styles.css.js +5 -5
- package/lib/internal/template/internal/components/chart-series-marker/styles.scoped.css +9 -9
- package/lib/internal/template/internal/components/chart-series-marker/styles.selectors.js +5 -5
- package/lib/internal/template/internal/components/checkbox-icon/styles.css.js +7 -7
- package/lib/internal/template/internal/components/checkbox-icon/styles.scoped.css +10 -10
- package/lib/internal/template/internal/components/checkbox-icon/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
- package/lib/internal/template/internal/components/dropdown/styles.scoped.css +37 -37
- package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/internal/components/dropdown-footer/styles.css.js +3 -3
- package/lib/internal/template/internal/components/dropdown-footer/styles.scoped.css +5 -5
- package/lib/internal/template/internal/components/dropdown-footer/styles.selectors.js +3 -3
- package/lib/internal/template/internal/components/dropdown-status/styles.css.js +2 -2
- package/lib/internal/template/internal/components/dropdown-status/styles.scoped.css +4 -4
- package/lib/internal/template/internal/components/dropdown-status/styles.selectors.js +2 -2
- package/lib/internal/template/internal/components/filtering-token/styles.css.js +7 -7
- package/lib/internal/template/internal/components/filtering-token/styles.scoped.css +15 -15
- package/lib/internal/template/internal/components/filtering-token/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/menu-dropdown/styles.css.js +7 -7
- package/lib/internal/template/internal/components/menu-dropdown/styles.scoped.css +15 -15
- package/lib/internal/template/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/option/styles.css.js +17 -17
- package/lib/internal/template/internal/components/option/styles.scoped.css +31 -31
- package/lib/internal/template/internal/components/option/styles.selectors.js +17 -17
- package/lib/internal/template/internal/components/options-list/styles.css.js +2 -2
- package/lib/internal/template/internal/components/options-list/styles.scoped.css +4 -4
- package/lib/internal/template/internal/components/options-list/styles.selectors.js +2 -2
- package/lib/internal/template/internal/components/screenreader-only/styles.css.js +1 -1
- package/lib/internal/template/internal/components/screenreader-only/styles.scoped.css +3 -3
- package/lib/internal/template/internal/components/screenreader-only/styles.selectors.js +1 -1
- package/lib/internal/template/internal/components/selectable-item/styles.css.js +16 -16
- package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +29 -29
- package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +16 -16
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.js +28 -27
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/internal/generated/theming/index.cjs +6 -6
- package/lib/internal/template/internal/generated/theming/index.js +6 -6
- package/lib/internal/template/link/styles.css.js +20 -20
- package/lib/internal/template/link/styles.scoped.css +73 -73
- package/lib/internal/template/link/styles.selectors.js +20 -20
- package/lib/internal/template/mixed-line-bar-chart/styles.css.js +19 -19
- package/lib/internal/template/mixed-line-bar-chart/styles.scoped.css +28 -28
- package/lib/internal/template/mixed-line-bar-chart/styles.selectors.js +19 -19
- package/lib/internal/template/modal/styles.css.js +22 -22
- package/lib/internal/template/modal/styles.scoped.css +40 -47
- package/lib/internal/template/modal/styles.selectors.js +22 -22
- package/lib/internal/template/multiselect/styles.css.js +1 -1
- package/lib/internal/template/multiselect/styles.scoped.css +3 -3
- package/lib/internal/template/multiselect/styles.selectors.js +1 -1
- package/lib/internal/template/pagination/styles.css.js +9 -9
- package/lib/internal/template/pagination/styles.scoped.css +25 -25
- package/lib/internal/template/pagination/styles.selectors.js +9 -9
- package/lib/internal/template/pie-chart/styles.css.js +27 -27
- package/lib/internal/template/pie-chart/styles.scoped.css +45 -45
- package/lib/internal/template/pie-chart/styles.selectors.js +27 -27
- package/lib/internal/template/popover/styles.css.js +50 -50
- package/lib/internal/template/popover/styles.scoped.css +73 -73
- package/lib/internal/template/popover/styles.selectors.js +50 -50
- package/lib/internal/template/progress-bar/styles.css.js +18 -18
- package/lib/internal/template/progress-bar/styles.scoped.css +36 -36
- package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
- package/lib/internal/template/property-filter/styles.css.js +33 -33
- package/lib/internal/template/property-filter/styles.scoped.css +37 -37
- package/lib/internal/template/property-filter/styles.selectors.js +33 -33
- package/lib/internal/template/radio-group/styles.css.js +9 -9
- package/lib/internal/template/radio-group/styles.scoped.css +17 -17
- package/lib/internal/template/radio-group/styles.selectors.js +9 -9
- package/lib/internal/template/segmented-control/styles.css.js +14 -14
- package/lib/internal/template/segmented-control/styles.scoped.css +35 -35
- package/lib/internal/template/segmented-control/styles.selectors.js +14 -14
- package/lib/internal/template/select/parts/styles.css.js +9 -9
- package/lib/internal/template/select/parts/styles.scoped.css +14 -14
- package/lib/internal/template/select/parts/styles.selectors.js +9 -9
- package/lib/internal/template/select/styles.css.js +1 -1
- package/lib/internal/template/select/styles.scoped.css +3 -3
- package/lib/internal/template/select/styles.selectors.js +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +26 -26
- package/lib/internal/template/side-navigation/styles.scoped.css +38 -38
- package/lib/internal/template/side-navigation/styles.selectors.js +26 -26
- package/lib/internal/template/space-between/styles.css.js +28 -28
- package/lib/internal/template/space-between/styles.scoped.css +31 -31
- package/lib/internal/template/space-between/styles.selectors.js +28 -28
- package/lib/internal/template/spinner/styles.css.js +13 -13
- package/lib/internal/template/spinner/styles.scoped.css +20 -20
- package/lib/internal/template/spinner/styles.selectors.js +13 -13
- package/lib/internal/template/split-panel/styles.css.js +59 -59
- package/lib/internal/template/split-panel/styles.scoped.css +85 -85
- package/lib/internal/template/split-panel/styles.selectors.js +59 -59
- package/lib/internal/template/status-indicator/styles.css.js +20 -20
- package/lib/internal/template/status-indicator/styles.scoped.css +28 -28
- package/lib/internal/template/status-indicator/styles.selectors.js +20 -20
- package/lib/internal/template/table/body-cell/styles.css.js +18 -18
- package/lib/internal/template/table/body-cell/styles.scoped.css +52 -52
- package/lib/internal/template/table/body-cell/styles.selectors.js +18 -18
- package/lib/internal/template/table/header-cell/styles.css.js +19 -19
- package/lib/internal/template/table/header-cell/styles.scoped.css +33 -33
- package/lib/internal/template/table/header-cell/styles.selectors.js +19 -19
- package/lib/internal/template/table/resizer/styles.css.js +6 -6
- package/lib/internal/template/table/resizer/styles.scoped.css +13 -13
- package/lib/internal/template/table/resizer/styles.selectors.js +6 -6
- package/lib/internal/template/table/selection-control/styles.css.js +3 -3
- package/lib/internal/template/table/selection-control/styles.scoped.css +5 -5
- package/lib/internal/template/table/selection-control/styles.selectors.js +3 -3
- package/lib/internal/template/table/styles.css.js +33 -33
- package/lib/internal/template/table/styles.scoped.css +41 -41
- package/lib/internal/template/table/styles.selectors.js +33 -33
- package/lib/internal/template/tabs/styles.css.js +21 -21
- package/lib/internal/template/tabs/styles.scoped.css +42 -42
- package/lib/internal/template/tabs/styles.selectors.js +21 -21
- package/lib/internal/template/tag-editor/interfaces.d.ts +1 -0
- package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
- package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +12 -12
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/test-utils/dom/flashbar/index.d.ts +2 -0
- package/lib/internal/template/test-utils/dom/flashbar/index.js +2 -0
- package/lib/internal/template/test-utils/dom/flashbar/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/flashbar/index.d.ts +2 -0
- package/lib/internal/template/test-utils/selectors/flashbar/index.js +2 -0
- package/lib/internal/template/test-utils/selectors/flashbar/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +62 -62
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/text-filter/styles.css.js +4 -4
- package/lib/internal/template/text-filter/styles.scoped.css +6 -6
- package/lib/internal/template/text-filter/styles.selectors.js +4 -4
- package/lib/internal/template/textarea/styles.css.js +4 -4
- package/lib/internal/template/textarea/styles.scoped.css +14 -14
- package/lib/internal/template/textarea/styles.selectors.js +4 -4
- package/lib/internal/template/tiles/styles.css.js +28 -28
- package/lib/internal/template/tiles/styles.scoped.css +70 -70
- package/lib/internal/template/tiles/styles.selectors.js +28 -28
- package/lib/internal/template/toggle/styles.css.js +8 -8
- package/lib/internal/template/toggle/styles.scoped.css +15 -15
- package/lib/internal/template/toggle/styles.selectors.js +8 -8
- package/lib/internal/template/token-group/styles.css.js +7 -7
- package/lib/internal/template/token-group/styles.scoped.css +24 -24
- package/lib/internal/template/token-group/styles.selectors.js +7 -7
- package/lib/internal/template/top-navigation/1.0-beta/styles.css.js +25 -25
- package/lib/internal/template/top-navigation/1.0-beta/styles.scoped.css +44 -44
- package/lib/internal/template/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/lib/internal/template/top-navigation/styles.css.js +47 -47
- package/lib/internal/template/top-navigation/styles.scoped.css +68 -68
- package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +23 -23
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.scoped.css +29 -29
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/lib/internal/template/tutorial-panel/styles.css.js +1 -1
- package/lib/internal/template/tutorial-panel/styles.scoped.css +3 -3
- package/lib/internal/template/tutorial-panel/styles.selectors.js +1 -1
- package/lib/internal/template/wizard/index.d.ts.map +1 -1
- package/lib/internal/template/wizard/index.js +5 -4
- package/lib/internal/template/wizard/index.js.map +1 -1
- package/lib/internal/template/wizard/internal/analytics.d.ts +3 -3
- package/lib/internal/template/wizard/internal/analytics.d.ts.map +1 -1
- package/lib/internal/template/wizard/internal/analytics.js +6 -11
- package/lib/internal/template/wizard/internal/analytics.js.map +1 -1
- package/lib/internal/template/wizard/styles.css.js +32 -32
- package/lib/internal/template/wizard/styles.scoped.css +98 -64
- package/lib/internal/template/wizard/styles.selectors.js +32 -32
- package/package.json +1 -1
|
@@ -2,48 +2,48 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"flash-with-motion": "awsui_flash-with-
|
|
6
|
-
"enter": "
|
|
7
|
-
"flash-body": "awsui_flash-
|
|
8
|
-
"flash-message": "awsui_flash-
|
|
9
|
-
"flash-header": "awsui_flash-
|
|
10
|
-
"flash-content": "awsui_flash-
|
|
11
|
-
"action-button-wrapper": "awsui_action-button-
|
|
12
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
13
|
-
"flash-icon": "awsui_flash-
|
|
14
|
-
"entering": "
|
|
15
|
-
"entered": "
|
|
16
|
-
"exiting": "
|
|
17
|
-
"stack": "
|
|
18
|
-
"animation-running": "awsui_animation-
|
|
19
|
-
"item": "
|
|
20
|
-
"flash-list-item": "awsui_flash-list-
|
|
21
|
-
"
|
|
22
|
-
"collapsed": "
|
|
23
|
-
"animation-ready": "awsui_animation-
|
|
24
|
-
"expanded-only": "awsui_expanded-
|
|
25
|
-
"expanded": "
|
|
26
|
-
"flash": "
|
|
27
|
-
"status": "
|
|
28
|
-
"header": "
|
|
29
|
-
"item-count": "awsui_item-
|
|
30
|
-
"button": "
|
|
31
|
-
"type-count": "awsui_type-
|
|
32
|
-
"count-number": "awsui_count-
|
|
33
|
-
"visual-refresh": "awsui_visual-
|
|
34
|
-
"icon": "
|
|
35
|
-
"
|
|
36
|
-
"flashbar": "
|
|
37
|
-
"flash-refresh": "awsui_flash-
|
|
38
|
-
"flash-list": "awsui_flash-
|
|
39
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
40
|
-
"flash-text": "awsui_flash-
|
|
41
|
-
"dismiss-button": "awsui_dismiss-
|
|
42
|
-
"breakpoint-default": "awsui_breakpoint-
|
|
43
|
-
"action-button": "awsui_action-
|
|
44
|
-
"flash-type-success": "awsui_flash-type-
|
|
45
|
-
"flash-type-error": "awsui_flash-type-
|
|
46
|
-
"flash-type-warning": "awsui_flash-type-
|
|
47
|
-
"flash-type-info": "awsui_flash-type-
|
|
5
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_awnup_93",
|
|
6
|
+
"enter": "awsui_enter_1q84n_awnup_93",
|
|
7
|
+
"flash-body": "awsui_flash-body_1q84n_awnup_107",
|
|
8
|
+
"flash-message": "awsui_flash-message_1q84n_awnup_107",
|
|
9
|
+
"flash-header": "awsui_flash-header_1q84n_awnup_107",
|
|
10
|
+
"flash-content": "awsui_flash-content_1q84n_awnup_108",
|
|
11
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_awnup_109",
|
|
12
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_awnup_110",
|
|
13
|
+
"flash-icon": "awsui_flash-icon_1q84n_awnup_133",
|
|
14
|
+
"entering": "awsui_entering_1q84n_awnup_146",
|
|
15
|
+
"entered": "awsui_entered_1q84n_awnup_167",
|
|
16
|
+
"exiting": "awsui_exiting_1q84n_awnup_272",
|
|
17
|
+
"stack": "awsui_stack_1q84n_awnup_294",
|
|
18
|
+
"animation-running": "awsui_animation-running_1q84n_awnup_294",
|
|
19
|
+
"item": "awsui_item_1q84n_awnup_294",
|
|
20
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_awnup_295",
|
|
21
|
+
"notification-bar": "awsui_notification-bar_1q84n_awnup_296",
|
|
22
|
+
"collapsed": "awsui_collapsed_1q84n_awnup_316",
|
|
23
|
+
"animation-ready": "awsui_animation-ready_1q84n_awnup_316",
|
|
24
|
+
"expanded-only": "awsui_expanded-only_1q84n_awnup_316",
|
|
25
|
+
"expanded": "awsui_expanded_1q84n_awnup_316",
|
|
26
|
+
"flash": "awsui_flash_1q84n_awnup_93",
|
|
27
|
+
"status": "awsui_status_1q84n_awnup_403",
|
|
28
|
+
"header": "awsui_header_1q84n_awnup_403",
|
|
29
|
+
"item-count": "awsui_item-count_1q84n_awnup_404",
|
|
30
|
+
"button": "awsui_button_1q84n_awnup_405",
|
|
31
|
+
"type-count": "awsui_type-count_1q84n_awnup_430",
|
|
32
|
+
"count-number": "awsui_count-number_1q84n_awnup_430",
|
|
33
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_awnup_443",
|
|
34
|
+
"icon": "awsui_icon_1q84n_awnup_493",
|
|
35
|
+
"floating": "awsui_floating_1q84n_awnup_531",
|
|
36
|
+
"flashbar": "awsui_flashbar_1q84n_awnup_539",
|
|
37
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_awnup_581",
|
|
38
|
+
"flash-list": "awsui_flash-list_1q84n_awnup_295",
|
|
39
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_awnup_600",
|
|
40
|
+
"flash-text": "awsui_flash-text_1q84n_awnup_627",
|
|
41
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_awnup_110",
|
|
42
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_awnup_668",
|
|
43
|
+
"action-button": "awsui_action-button_1q84n_awnup_109",
|
|
44
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_awnup_681",
|
|
45
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_awnup_685",
|
|
46
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_awnup_689",
|
|
47
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_awnup_693"
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,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CAAC,aAAa,CAAC,iBAAiB,CAAC,EACrD,aAAa,EAAE,MAAM,GACpB,aAAa,CAAC,aAAa,CAAC,CAgD9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,aAAa,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAO9G;AAED,MAAM,MAAM,SAAS,GACjB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,GACtB,mBAAmB,GACnB,yBAAyB,CAAC;AAE9B,eAAO,MAAM,YAAY,EAAE;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;CAC1B,EAMA,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,WAAW,WAE9D"}
|
|
@@ -92,4 +92,7 @@ export var counterTypes = [
|
|
|
92
92
|
{ type: 'info', labelName: 'infoIconAriaLabel', iconName: 'status-info' },
|
|
93
93
|
{ type: 'progress', labelName: 'inProgressIconAriaLabel', iconName: 'status-in-progress' },
|
|
94
94
|
];
|
|
95
|
+
export function isElementTopBeyondViewport(element) {
|
|
96
|
+
return element.getBoundingClientRect().top < 0;
|
|
97
|
+
}
|
|
95
98
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":";AAKA,MAAM,CAAC,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAUzC,IAAM,aAAa,GAA8B;IAC/C,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,SAAS,gBAAgB,CAAC,IAAgB;IACxC,IAAM,YAAY,GAAG,MAAM,CAAC;IAC5B,OAAO,IAAI,CAAC,CAAC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eAAK,EAAL,mBAAK,EAAL,IAAK,EAAE;QAArB,IAAM,IAAI,cAAA;QACb,IAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AASD,MAAM,CAAC,IAAM,YAAY,GAInB;IACJ,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IAC/E,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,EAAE,gBAAgB,EAAE;IAClF,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IACnF,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,aAAa,EAAE;IACzE,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,yBAAyB,EAAE,QAAQ,EAAE,oBAAoB,EAAE;CAC3F,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { FlashbarProps, FlashType } from './interfaces';\nimport { IconProps } from '../icon/interfaces';\n\nexport const FOCUS_THROTTLE_DELAY = 2000;\n\n// Since the position of a notification changes when the Flashbar is collapsed,\n// it is useful on some situations (e.g, for animating) to know the original position of the item\n// in the non-collapsed state.\nexport interface StackableItem extends FlashbarProps.MessageDefinition {\n expandedIndex: number;\n collapsedIndex?: number;\n}\n\nconst typesToColors: Record<FlashType, string> = {\n error: 'red',\n info: 'blue',\n progress: 'blue',\n success: 'green',\n warning: 'blue',\n};\n\nfunction getColorFromType(type?: FlashType): string {\n const defaultColor = 'blue';\n return type ? typesToColors[type] || defaultColor : defaultColor;\n}\n\nexport function getItemType(item: FlashbarProps.MessageDefinition) {\n if (item.loading) {\n return 'progress';\n } else {\n return item.type || 'info';\n }\n}\n\nfunction getItemColor(item: FlashbarProps.MessageDefinition) {\n return getColorFromType(getItemType(item));\n}\n\n/*\n Returns a selection of notifications, preserving the order when possible but making sure that all different colors in\n the stack are represented in the returned array.\n The order corresponds to how they are represented when using the collapsible feature (newest first, oldest last).\n */\nexport function getVisibleCollapsedItems(\n items: ReadonlyArray<FlashbarProps.MessageDefinition>,\n desiredLength: number\n): ReadonlyArray<StackableItem> {\n // First `desiredLength` items in the original array,\n // together with `isColorRepeated` to tell if they can be subject to be replaced later on if necessary\n const itemsOnTop: { item: StackableItem; isColorRepeated: boolean }[] = [];\n\n // Items that fall outside `desiredIndexLength` but need to be \"promoted\" if possible\n // because they are of a different color which otherwise wouldn't be represented\n const itemsToPromote: StackableItem[] = [];\n\n const addedColors: Set<string> = new Set();\n const allPossibleColors = Object.keys(typesToColors).length;\n const finalLength = Math.min(items.length, desiredLength);\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const color = getItemColor(item);\n const isColorRepeated = addedColors.has(color);\n if (i < finalLength) {\n itemsOnTop.push({ item: { ...item, expandedIndex: i }, isColorRepeated });\n } else {\n if (addedColors.size === allPossibleColors) {\n // No need to keep looking for unrepresented colors, we can stop looping\n break;\n } else if (!isColorRepeated) {\n itemsToPromote.push({ ...item, expandedIndex: i });\n }\n }\n addedColors.add(color);\n }\n // Generate the new array with the selected items, by picking from both arrays.\n // First, from the non-repeated items within the desired length...\n // We loop `itemsOnTop` starting from the end because we prefer to preserve the first ones rather than the old ones\n const reversedInitialSelection = [];\n let slotsReservedForPromotions = 0;\n for (let j = itemsOnTop.length - 1; j >= 0; j--) {\n const item = itemsOnTop[j];\n if (item.isColorRepeated && slotsReservedForPromotions < itemsToPromote.length) {\n slotsReservedForPromotions += 1;\n } else {\n reversedInitialSelection.push(item.item);\n }\n }\n const selectedItems = reversedInitialSelection.reverse();\n // ...and then complete the selection with as many promotable items as we can fit in the rest of the array\n for (let k = 0; selectedItems.length < desiredLength; k++) {\n selectedItems.push(itemsToPromote[k]);\n }\n return selectedItems;\n}\n\nexport function getFlashTypeCount(items: readonly FlashbarProps.MessageDefinition[]): Record<FlashType, number> {\n const count = { error: 0, info: 0, progress: 0, success: 0, warning: 0 };\n for (const item of items) {\n const type = getItemType(item);\n count[type] += 1;\n }\n return count;\n}\n\nexport type LabelName =\n | 'errorIconAriaLabel'\n | 'warningIconAriaLabel'\n | 'successIconAriaLabel'\n | 'infoIconAriaLabel'\n | 'inProgressIconAriaLabel';\n\nexport const counterTypes: {\n type: FlashType;\n labelName: LabelName;\n iconName: IconProps.Name;\n}[] = [\n { type: 'error', labelName: 'errorIconAriaLabel', iconName: 'status-negative' },\n { type: 'warning', labelName: 'warningIconAriaLabel', iconName: 'status-warning' },\n { type: 'success', labelName: 'successIconAriaLabel', iconName: 'status-positive' },\n { type: 'info', labelName: 'infoIconAriaLabel', iconName: 'status-info' },\n { type: 'progress', labelName: 'inProgressIconAriaLabel', iconName: 'status-in-progress' },\n];\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":";AAKA,MAAM,CAAC,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAUzC,IAAM,aAAa,GAA8B;IAC/C,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,SAAS,gBAAgB,CAAC,IAAgB;IACxC,IAAM,YAAY,GAAG,MAAM,CAAC;IAC5B,OAAO,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAqC;IAC/D,IAAI,IAAI,CAAC,OAAO,EAAE;QAChB,OAAO,UAAU,CAAC;KACnB;SAAM;QACL,OAA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AASD,MAAM,CAAC,IAAM,YAAY,GAInB;IACJ,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IAC/E,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,EAAE,gBAAgB,EAAE;IAClF,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IACnF,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,aAAa,EAAE;IACzE,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,yBAAyB,EAAE,QAAQ,EAAE,oBAAoB,EAAE;CAC3F,CAAC;AAEF,MAAM,UAAU,0BAA0B,CAAC,OAAoB;IAC7D,OAAO,OAAO,CAAC,qBAAqB,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC;AACjD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { FlashbarProps, FlashType } from './interfaces';\nimport { IconProps } from '../icon/interfaces';\n\nexport const FOCUS_THROTTLE_DELAY = 2000;\n\n// Since the position of a notification changes when the Flashbar is collapsed,\n// it is useful on some situations (e.g, for animating) to know the original position of the item\n// in the non-collapsed state.\nexport interface StackableItem extends FlashbarProps.MessageDefinition {\n expandedIndex: number;\n collapsedIndex?: number;\n}\n\nconst typesToColors: Record<FlashType, string> = {\n error: 'red',\n info: 'blue',\n progress: 'blue',\n success: 'green',\n warning: 'blue',\n};\n\nfunction getColorFromType(type?: FlashType): string {\n const defaultColor = 'blue';\n return type ? typesToColors[type] || defaultColor : defaultColor;\n}\n\nexport function getItemType(item: FlashbarProps.MessageDefinition) {\n if (item.loading) {\n return 'progress';\n } else {\n return item.type || 'info';\n }\n}\n\nfunction getItemColor(item: FlashbarProps.MessageDefinition) {\n return getColorFromType(getItemType(item));\n}\n\n/*\n Returns a selection of notifications, preserving the order when possible but making sure that all different colors in\n the stack are represented in the returned array.\n The order corresponds to how they are represented when using the collapsible feature (newest first, oldest last).\n */\nexport function getVisibleCollapsedItems(\n items: ReadonlyArray<FlashbarProps.MessageDefinition>,\n desiredLength: number\n): ReadonlyArray<StackableItem> {\n // First `desiredLength` items in the original array,\n // together with `isColorRepeated` to tell if they can be subject to be replaced later on if necessary\n const itemsOnTop: { item: StackableItem; isColorRepeated: boolean }[] = [];\n\n // Items that fall outside `desiredIndexLength` but need to be \"promoted\" if possible\n // because they are of a different color which otherwise wouldn't be represented\n const itemsToPromote: StackableItem[] = [];\n\n const addedColors: Set<string> = new Set();\n const allPossibleColors = Object.keys(typesToColors).length;\n const finalLength = Math.min(items.length, desiredLength);\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const color = getItemColor(item);\n const isColorRepeated = addedColors.has(color);\n if (i < finalLength) {\n itemsOnTop.push({ item: { ...item, expandedIndex: i }, isColorRepeated });\n } else {\n if (addedColors.size === allPossibleColors) {\n // No need to keep looking for unrepresented colors, we can stop looping\n break;\n } else if (!isColorRepeated) {\n itemsToPromote.push({ ...item, expandedIndex: i });\n }\n }\n addedColors.add(color);\n }\n // Generate the new array with the selected items, by picking from both arrays.\n // First, from the non-repeated items within the desired length...\n // We loop `itemsOnTop` starting from the end because we prefer to preserve the first ones rather than the old ones\n const reversedInitialSelection = [];\n let slotsReservedForPromotions = 0;\n for (let j = itemsOnTop.length - 1; j >= 0; j--) {\n const item = itemsOnTop[j];\n if (item.isColorRepeated && slotsReservedForPromotions < itemsToPromote.length) {\n slotsReservedForPromotions += 1;\n } else {\n reversedInitialSelection.push(item.item);\n }\n }\n const selectedItems = reversedInitialSelection.reverse();\n // ...and then complete the selection with as many promotable items as we can fit in the rest of the array\n for (let k = 0; selectedItems.length < desiredLength; k++) {\n selectedItems.push(itemsToPromote[k]);\n }\n return selectedItems;\n}\n\nexport function getFlashTypeCount(items: readonly FlashbarProps.MessageDefinition[]): Record<FlashType, number> {\n const count = { error: 0, info: 0, progress: 0, success: 0, warning: 0 };\n for (const item of items) {\n const type = getItemType(item);\n count[type] += 1;\n }\n return count;\n}\n\nexport type LabelName =\n | 'errorIconAriaLabel'\n | 'warningIconAriaLabel'\n | 'successIconAriaLabel'\n | 'infoIconAriaLabel'\n | 'inProgressIconAriaLabel';\n\nexport const counterTypes: {\n type: FlashType;\n labelName: LabelName;\n iconName: IconProps.Name;\n}[] = [\n { type: 'error', labelName: 'errorIconAriaLabel', iconName: 'status-negative' },\n { type: 'warning', labelName: 'warningIconAriaLabel', iconName: 'status-warning' },\n { type: 'success', labelName: 'successIconAriaLabel', iconName: 'status-positive' },\n { type: 'info', labelName: 'infoIconAriaLabel', iconName: 'status-info' },\n { type: 'progress', labelName: 'inProgressIconAriaLabel', iconName: 'status-in-progress' },\n];\n\nexport function isElementTopBeyondViewport(element: HTMLElement) {\n return element.getBoundingClientRect().top < 0;\n}\n"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"header": "
|
|
6
|
-
"content": "
|
|
7
|
-
"error": "
|
|
8
|
-
"footer": "
|
|
9
|
-
"actions-section": "awsui_actions-
|
|
10
|
-
"secondary-actions": "awsui_secondary-
|
|
11
|
-
"actions": "
|
|
4
|
+
"root": "awsui_root_1i0s3_1u0cl_93",
|
|
5
|
+
"header": "awsui_header_1i0s3_1u0cl_106",
|
|
6
|
+
"content": "awsui_content_1i0s3_1u0cl_110",
|
|
7
|
+
"error": "awsui_error_1i0s3_1u0cl_114",
|
|
8
|
+
"footer": "awsui_footer_1i0s3_1u0cl_118",
|
|
9
|
+
"actions-section": "awsui_actions-section_1i0s3_1u0cl_122",
|
|
10
|
+
"secondary-actions": "awsui_secondary-actions_1i0s3_1u0cl_131",
|
|
11
|
+
"actions": "awsui_actions_1i0s3_1u0cl_122"
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -50,8 +50,6 @@
|
|
|
50
50
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
51
51
|
SPDX-License-Identifier: Apache-2.0
|
|
52
52
|
*/
|
|
53
|
-
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
54
|
-
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
55
53
|
/*
|
|
56
54
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
57
55
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -64,6 +62,8 @@
|
|
|
64
62
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
65
63
|
SPDX-License-Identifier: Apache-2.0
|
|
66
64
|
*/
|
|
65
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
66
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
67
67
|
/*
|
|
68
68
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
69
69
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
93
|
+
.awsui_root_1i0s3_1u0cl_93:not(#\9) {
|
|
94
94
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
95
95
|
border-collapse: separate;
|
|
96
96
|
border-spacing: 0;
|
|
@@ -129,23 +129,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
129
129
|
-moz-osx-font-smoothing: auto;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.
|
|
132
|
+
.awsui_header_1i0s3_1u0cl_106:not(#\9) {
|
|
133
133
|
margin-bottom: var(--space-scaled-m-pv0fmt, 16px);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.
|
|
136
|
+
.awsui_content_1i0s3_1u0cl_110:not(#\9) {
|
|
137
137
|
/* used in test-utils */
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.
|
|
140
|
+
.awsui_error_1i0s3_1u0cl_114:not(#\9) {
|
|
141
141
|
/* used in test-utils */
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
.
|
|
144
|
+
.awsui_footer_1i0s3_1u0cl_118:not(#\9) {
|
|
145
145
|
margin-top: var(--space-scaled-l-t03y3z, 20px);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
.awsui_actions-
|
|
148
|
+
.awsui_actions-section_1i0s3_1u0cl_122:not(#\9) {
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: row-reverse;
|
|
151
151
|
justify-content: space-between;
|
|
@@ -154,13 +154,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
margin-bottom: calc(-1 * var(--space-scaled-m-pv0fmt, 16px));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
.awsui_secondary-
|
|
157
|
+
.awsui_secondary-actions_1i0s3_1u0cl_131:not(#\9) {
|
|
158
158
|
min-width: 1px;
|
|
159
159
|
margin-left: var(--space-scaled-m-pv0fmt, 16px);
|
|
160
160
|
margin-bottom: var(--space-scaled-m-pv0fmt, 16px);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.
|
|
163
|
+
.awsui_actions_1i0s3_1u0cl_122:not(#\9) {
|
|
164
164
|
min-width: 1px;
|
|
165
165
|
margin-left: var(--space-scaled-m-pv0fmt, 16px);
|
|
166
166
|
margin-bottom: var(--space-scaled-m-pv0fmt, 16px);
|
|
@@ -2,13 +2,13 @@
|
|
|
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
|
-
"header": "
|
|
7
|
-
"content": "
|
|
8
|
-
"error": "
|
|
9
|
-
"footer": "
|
|
10
|
-
"actions-section": "awsui_actions-
|
|
11
|
-
"secondary-actions": "awsui_secondary-
|
|
12
|
-
"actions": "
|
|
5
|
+
"root": "awsui_root_1i0s3_1u0cl_93",
|
|
6
|
+
"header": "awsui_header_1i0s3_1u0cl_106",
|
|
7
|
+
"content": "awsui_content_1i0s3_1u0cl_110",
|
|
8
|
+
"error": "awsui_error_1i0s3_1u0cl_114",
|
|
9
|
+
"footer": "awsui_footer_1i0s3_1u0cl_118",
|
|
10
|
+
"actions-section": "awsui_actions-section_1i0s3_1u0cl_122",
|
|
11
|
+
"secondary-actions": "awsui_secondary-actions_1i0s3_1u0cl_131",
|
|
12
|
+
"actions": "awsui_actions_1i0s3_1u0cl_122"
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"error-icon-shake-wrapper": "awsui_error-icon-shake-
|
|
5
|
-
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-
|
|
6
|
-
"error-icon-scale-wrapper": "awsui_error-icon-scale-
|
|
7
|
-
"awsui-motion-scale-popup": "awsui_awsui-motion-scale-
|
|
8
|
-
"error": "
|
|
9
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
10
|
-
"root": "
|
|
11
|
-
"label": "
|
|
12
|
-
"info": "
|
|
13
|
-
"description": "
|
|
14
|
-
"constraint": "
|
|
15
|
-
"hints": "
|
|
16
|
-
"constraint-has-error": "awsui_constraint-has-
|
|
17
|
-
"secondary-control": "awsui_secondary-
|
|
18
|
-
"controls": "
|
|
19
|
-
"label-hidden": "awsui_label-
|
|
20
|
-
"control": "
|
|
21
|
-
"error__message": "
|
|
22
|
-
"visually-hidden": "awsui_visually-
|
|
4
|
+
"error-icon-shake-wrapper": "awsui_error-icon-shake-wrapper_14mhv_24jy9_97",
|
|
5
|
+
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_14mhv_24jy9_1",
|
|
6
|
+
"error-icon-scale-wrapper": "awsui_error-icon-scale-wrapper_14mhv_24jy9_124",
|
|
7
|
+
"awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_14mhv_24jy9_1",
|
|
8
|
+
"error": "awsui_error_14mhv_24jy9_97",
|
|
9
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_14mhv_24jy9_1",
|
|
10
|
+
"root": "awsui_root_14mhv_24jy9_168",
|
|
11
|
+
"label": "awsui_label_14mhv_24jy9_182",
|
|
12
|
+
"info": "awsui_info_14mhv_24jy9_195",
|
|
13
|
+
"description": "awsui_description_14mhv_24jy9_200",
|
|
14
|
+
"constraint": "awsui_constraint_14mhv_24jy9_201",
|
|
15
|
+
"hints": "awsui_hints_14mhv_24jy9_208",
|
|
16
|
+
"constraint-has-error": "awsui_constraint-has-error_14mhv_24jy9_209",
|
|
17
|
+
"secondary-control": "awsui_secondary-control_14mhv_24jy9_213",
|
|
18
|
+
"controls": "awsui_controls_14mhv_24jy9_217",
|
|
19
|
+
"label-hidden": "awsui_label-hidden_14mhv_24jy9_217",
|
|
20
|
+
"control": "awsui_control_14mhv_24jy9_217",
|
|
21
|
+
"error__message": "awsui_error__message_14mhv_24jy9_236",
|
|
22
|
+
"visually-hidden": "awsui_visually-hidden_14mhv_24jy9_240"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -50,8 +50,6 @@
|
|
|
50
50
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
51
51
|
SPDX-License-Identifier: Apache-2.0
|
|
52
52
|
*/
|
|
53
|
-
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
54
|
-
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
55
53
|
/*
|
|
56
54
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
57
55
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -64,6 +62,8 @@
|
|
|
64
62
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
65
63
|
SPDX-License-Identifier: Apache-2.0
|
|
66
64
|
*/
|
|
65
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
66
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
67
67
|
/*
|
|
68
68
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
69
69
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -94,10 +94,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.awsui_error-icon-shake-
|
|
98
|
-
animation: awsui_awsui-motion-shake-
|
|
97
|
+
.awsui_error-icon-shake-wrapper_14mhv_24jy9_97:not(#\9) {
|
|
98
|
+
animation: awsui_awsui-motion-shake-horizontally_14mhv_24jy9_1 var(--motion-duration-refresh-only-medium-5flen2, 165ms);
|
|
99
99
|
}
|
|
100
|
-
@keyframes awsui_awsui-motion-shake-
|
|
100
|
+
@keyframes awsui_awsui-motion-shake-horizontally_14mhv_24jy9_1 {
|
|
101
101
|
0% {
|
|
102
102
|
transform: translateX(-5px);
|
|
103
103
|
animation-timing-function: linear;
|
|
@@ -111,20 +111,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
@media (prefers-reduced-motion: reduce) {
|
|
114
|
-
.awsui_error-icon-shake-
|
|
114
|
+
.awsui_error-icon-shake-wrapper_14mhv_24jy9_97:not(#\9) {
|
|
115
115
|
animation: none;
|
|
116
116
|
transition: none;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
.awsui-motion-disabled .awsui_error-icon-shake-
|
|
119
|
+
.awsui-motion-disabled .awsui_error-icon-shake-wrapper_14mhv_24jy9_97:not(#\9), .awsui-mode-entering .awsui_error-icon-shake-wrapper_14mhv_24jy9_97:not(#\9) {
|
|
120
120
|
animation: none;
|
|
121
121
|
transition: none;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.awsui_error-icon-scale-
|
|
125
|
-
animation: awsui_awsui-motion-scale-
|
|
124
|
+
.awsui_error-icon-scale-wrapper_14mhv_24jy9_124:not(#\9) {
|
|
125
|
+
animation: awsui_awsui-motion-scale-popup_14mhv_24jy9_1 var(--motion-duration-refresh-only-medium-5flen2, 165ms) var(--motion-easing-refresh-only-a-sy0g8m, cubic-bezier(0, 0, 0, 1));
|
|
126
126
|
}
|
|
127
|
-
@keyframes awsui_awsui-motion-scale-
|
|
127
|
+
@keyframes awsui_awsui-motion-scale-popup_14mhv_24jy9_1 {
|
|
128
128
|
0% {
|
|
129
129
|
transform: scale(0.95);
|
|
130
130
|
}
|
|
@@ -133,20 +133,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
@media (prefers-reduced-motion: reduce) {
|
|
136
|
-
.awsui_error-icon-scale-
|
|
136
|
+
.awsui_error-icon-scale-wrapper_14mhv_24jy9_124:not(#\9) {
|
|
137
137
|
animation: none;
|
|
138
138
|
transition: none;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
.awsui-motion-disabled .awsui_error-icon-scale-
|
|
141
|
+
.awsui-motion-disabled .awsui_error-icon-scale-wrapper_14mhv_24jy9_124:not(#\9), .awsui-mode-entering .awsui_error-icon-scale-wrapper_14mhv_24jy9_124:not(#\9) {
|
|
142
142
|
animation: none;
|
|
143
143
|
transition: none;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.
|
|
147
|
-
animation: awsui_awsui-motion-fade-in-
|
|
146
|
+
.awsui_error_14mhv_24jy9_97:not(#\9) {
|
|
147
|
+
animation: awsui_awsui-motion-fade-in-0_14mhv_24jy9_1 var(--motion-duration-refresh-only-medium-5flen2, 165ms) var(--motion-easing-refresh-only-a-sy0g8m, cubic-bezier(0, 0, 0, 1));
|
|
148
148
|
}
|
|
149
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
149
|
+
@keyframes awsui_awsui-motion-fade-in-0_14mhv_24jy9_1 {
|
|
150
150
|
from {
|
|
151
151
|
opacity: 0;
|
|
152
152
|
}
|
|
@@ -155,17 +155,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
@media (prefers-reduced-motion: reduce) {
|
|
158
|
-
.
|
|
158
|
+
.awsui_error_14mhv_24jy9_97:not(#\9) {
|
|
159
159
|
animation: none;
|
|
160
160
|
transition: none;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
.awsui-motion-disabled .
|
|
163
|
+
.awsui-motion-disabled .awsui_error_14mhv_24jy9_97:not(#\9), .awsui-mode-entering .awsui_error_14mhv_24jy9_97:not(#\9) {
|
|
164
164
|
animation: none;
|
|
165
165
|
transition: none;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
.
|
|
168
|
+
.awsui_root_14mhv_24jy9_168:not(#\9) {
|
|
169
169
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
170
170
|
border-collapse: separate;
|
|
171
171
|
border-spacing: 0;
|
|
@@ -205,7 +205,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
205
205
|
box-sizing: border-box;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
.
|
|
208
|
+
.awsui_label_14mhv_24jy9_182:not(#\9) {
|
|
209
209
|
box-sizing: border-box;
|
|
210
210
|
color: var(--color-text-form-label-i9s99a, #16191f);
|
|
211
211
|
display: inline;
|
|
@@ -214,43 +214,43 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
214
214
|
font-weight: var(--font-display-label-weight-tjy9e4, 400);
|
|
215
215
|
margin-right: var(--space-xs-rsr2qu, 8px);
|
|
216
216
|
}
|
|
217
|
-
.
|
|
217
|
+
.awsui_label_14mhv_24jy9_182:not(#\9):only-child {
|
|
218
218
|
margin: 0;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
.
|
|
221
|
+
.awsui_info_14mhv_24jy9_195:not(#\9) {
|
|
222
222
|
padding-left: var(--space-xs-rsr2qu, 8px);
|
|
223
223
|
border-left: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.
|
|
227
|
-
.
|
|
226
|
+
.awsui_description_14mhv_24jy9_200:not(#\9),
|
|
227
|
+
.awsui_constraint_14mhv_24jy9_201:not(#\9) {
|
|
228
228
|
color: var(--color-text-form-secondary-1c3szk, #687078);
|
|
229
229
|
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
230
230
|
line-height: var(--font-body-s-line-height-kdsbrl, 16px);
|
|
231
231
|
letter-spacing: var(--font-body-s-letter-spacing-p88gax, normal);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.
|
|
235
|
-
.awsui_constraint-has-
|
|
234
|
+
.awsui_hints_14mhv_24jy9_208:not(#\9),
|
|
235
|
+
.awsui_constraint-has-error_14mhv_24jy9_209:not(#\9) {
|
|
236
236
|
padding-top: var(--space-xxs-ynfts5, 4px);
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
.awsui_secondary-
|
|
239
|
+
.awsui_secondary-control_14mhv_24jy9_213:not(#\9) {
|
|
240
240
|
/* used in test-utils */
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
.
|
|
243
|
+
.awsui_controls_14mhv_24jy9_217:not(#\9):not(.awsui_label-hidden_14mhv_24jy9_217) {
|
|
244
244
|
padding-top: var(--space-xxs-ynfts5, 4px);
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
.
|
|
247
|
+
.awsui_control_14mhv_24jy9_217:not(#\9) {
|
|
248
248
|
min-width: 0;
|
|
249
249
|
-ms-word-break: break-all;
|
|
250
250
|
word-break: break-word;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
.
|
|
253
|
+
.awsui_error_14mhv_24jy9_97:not(#\9) {
|
|
254
254
|
color: var(--color-text-status-error-jer77f, #d13212);
|
|
255
255
|
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
256
256
|
line-height: var(--font-body-s-line-height-kdsbrl, 16px);
|
|
@@ -259,11 +259,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
259
259
|
align-items: flex-start;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
.
|
|
262
|
+
.awsui_error__message_14mhv_24jy9_236:not(#\9) {
|
|
263
263
|
margin-left: var(--space-xxs-ynfts5, 4px);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
.awsui_visually-
|
|
266
|
+
.awsui_visually-hidden_14mhv_24jy9_240:not(#\9) {
|
|
267
267
|
position: absolute !important;
|
|
268
268
|
top: -9999px !important;
|
|
269
269
|
left: -9999px !important;
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"error-icon-shake-wrapper": "awsui_error-icon-shake-
|
|
6
|
-
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-
|
|
7
|
-
"error-icon-scale-wrapper": "awsui_error-icon-scale-
|
|
8
|
-
"awsui-motion-scale-popup": "awsui_awsui-motion-scale-
|
|
9
|
-
"error": "
|
|
10
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
11
|
-
"root": "
|
|
12
|
-
"label": "
|
|
13
|
-
"info": "
|
|
14
|
-
"description": "
|
|
15
|
-
"constraint": "
|
|
16
|
-
"hints": "
|
|
17
|
-
"constraint-has-error": "awsui_constraint-has-
|
|
18
|
-
"secondary-control": "awsui_secondary-
|
|
19
|
-
"controls": "
|
|
20
|
-
"label-hidden": "awsui_label-
|
|
21
|
-
"control": "
|
|
22
|
-
"error__message": "
|
|
23
|
-
"visually-hidden": "awsui_visually-
|
|
5
|
+
"error-icon-shake-wrapper": "awsui_error-icon-shake-wrapper_14mhv_24jy9_97",
|
|
6
|
+
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_14mhv_24jy9_1",
|
|
7
|
+
"error-icon-scale-wrapper": "awsui_error-icon-scale-wrapper_14mhv_24jy9_124",
|
|
8
|
+
"awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_14mhv_24jy9_1",
|
|
9
|
+
"error": "awsui_error_14mhv_24jy9_97",
|
|
10
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_14mhv_24jy9_1",
|
|
11
|
+
"root": "awsui_root_14mhv_24jy9_168",
|
|
12
|
+
"label": "awsui_label_14mhv_24jy9_182",
|
|
13
|
+
"info": "awsui_info_14mhv_24jy9_195",
|
|
14
|
+
"description": "awsui_description_14mhv_24jy9_200",
|
|
15
|
+
"constraint": "awsui_constraint_14mhv_24jy9_201",
|
|
16
|
+
"hints": "awsui_hints_14mhv_24jy9_208",
|
|
17
|
+
"constraint-has-error": "awsui_constraint-has-error_14mhv_24jy9_209",
|
|
18
|
+
"secondary-control": "awsui_secondary-control_14mhv_24jy9_213",
|
|
19
|
+
"controls": "awsui_controls_14mhv_24jy9_217",
|
|
20
|
+
"label-hidden": "awsui_label-hidden_14mhv_24jy9_217",
|
|
21
|
+
"control": "awsui_control_14mhv_24jy9_217",
|
|
22
|
+
"error__message": "awsui_error__message_14mhv_24jy9_236",
|
|
23
|
+
"visually-hidden": "awsui_visually-hidden_14mhv_24jy9_240"
|
|
24
24
|
};
|
|
25
25
|
|