@cloudscape-design/components 3.0.841 → 3.0.842
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/styles.css.js +28 -28
- package/alert/styles.scoped.css +49 -45
- package/alert/styles.selectors.js +28 -28
- package/anchor-navigation/styles.css.js +8 -8
- package/anchor-navigation/styles.scoped.css +24 -20
- package/anchor-navigation/styles.selectors.js +8 -8
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +36 -32
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/content-wrapper/styles.css.js +3 -3
- package/app-layout/content-wrapper/styles.scoped.css +10 -6
- 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 +28 -24
- 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 +12 -8
- package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
- package/app-layout/resize/styles.css.js +5 -5
- package/app-layout/resize/styles.scoped.css +16 -12
- package/app-layout/resize/styles.selectors.js +5 -5
- package/app-layout/split-panel/styles.css.js +2 -2
- package/app-layout/split-panel/styles.scoped.css +6 -2
- package/app-layout/split-panel/styles.selectors.js +2 -2
- package/app-layout/styles.css.js +12 -12
- package/app-layout/styles.scoped.css +16 -12
- package/app-layout/styles.selectors.js +12 -12
- package/app-layout/toggles/styles.css.js +2 -2
- package/app-layout/toggles/styles.scoped.css +12 -8
- 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 +167 -163
- package/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +10 -10
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +17 -13
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +10 -10
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +9 -5
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +19 -19
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +39 -35
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +19 -19
- package/app-layout/visual-refresh-toolbar/split-panel/styles.css.js +1 -1
- package/app-layout/visual-refresh-toolbar/split-panel/styles.scoped.css +5 -1
- package/app-layout/visual-refresh-toolbar/split-panel/styles.selectors.js +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +13 -13
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +19 -15
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +13 -13
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +7 -7
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +23 -19
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +7 -7
- package/area-chart/styles.css.js +6 -6
- package/area-chart/styles.scoped.css +15 -11
- package/area-chart/styles.selectors.js +6 -6
- package/attribute-editor/styles.css.js +14 -14
- package/attribute-editor/styles.scoped.css +28 -24
- package/attribute-editor/styles.selectors.js +14 -14
- package/badge/styles.css.js +10 -10
- package/badge/styles.scoped.css +14 -10
- package/badge/styles.selectors.js +10 -10
- package/box/styles.css.js +191 -191
- package/box/styles.scoped.css +240 -236
- package/box/styles.selectors.js +191 -191
- package/breadcrumb-group/all-items-dropdown.d.ts +15 -0
- package/breadcrumb-group/all-items-dropdown.d.ts.map +1 -0
- package/breadcrumb-group/all-items-dropdown.js +47 -0
- package/breadcrumb-group/all-items-dropdown.js.map +1 -0
- package/breadcrumb-group/implementation.d.ts.map +1 -1
- package/breadcrumb-group/implementation.js +9 -6
- package/breadcrumb-group/implementation.js.map +1 -1
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +29 -25
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/breadcrumb-group/styles.css.js +14 -10
- package/breadcrumb-group/styles.scoped.css +124 -11
- package/breadcrumb-group/styles.selectors.js +14 -10
- package/breadcrumb-group/utils.d.ts +0 -2
- package/breadcrumb-group/utils.d.ts.map +1 -1
- package/breadcrumb-group/utils.js +17 -46
- package/breadcrumb-group/utils.js.map +1 -1
- package/button/index.d.ts.map +1 -1
- package/button/index.js +3 -3
- package/button/index.js.map +1 -1
- package/button/interfaces.d.ts +18 -0
- package/button/interfaces.d.ts.map +1 -1
- package/button/interfaces.js.map +1 -1
- package/button/internal.d.ts.map +1 -1
- package/button/internal.js +15 -2
- package/button/internal.js.map +1 -1
- package/button/styles.css.js +21 -21
- package/button/styles.scoped.css +158 -154
- package/button/styles.selectors.js +21 -21
- package/button/test-classes/styles.css.js +2 -1
- package/button/test-classes/styles.scoped.css +5 -1
- package/button/test-classes/styles.selectors.js +2 -1
- package/button-dropdown/category-elements/styles.css.js +14 -14
- package/button-dropdown/category-elements/styles.scoped.css +27 -23
- package/button-dropdown/category-elements/styles.selectors.js +14 -14
- package/button-dropdown/index.d.ts.map +1 -1
- package/button-dropdown/index.js +2 -2
- package/button-dropdown/index.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +18 -2
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +13 -6
- package/button-dropdown/internal.js.map +1 -1
- package/button-dropdown/item-element/index.d.ts.map +1 -1
- package/button-dropdown/item-element/index.js +3 -2
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +14 -13
- package/button-dropdown/item-element/styles.scoped.css +33 -21
- package/button-dropdown/item-element/styles.selectors.js +14 -13
- package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
- package/button-dropdown/mobile-expandable-group/styles.scoped.css +9 -5
- package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/button-dropdown/styles.css.js +21 -17
- package/button-dropdown/styles.scoped.css +51 -38
- package/button-dropdown/styles.selectors.js +21 -17
- package/button-group/file-input-item.d.ts +11 -0
- package/button-group/file-input-item.d.ts.map +1 -0
- package/button-group/file-input-item.js +23 -0
- package/button-group/file-input-item.js.map +1 -0
- package/button-group/interfaces.d.ts +23 -1
- package/button-group/interfaces.d.ts.map +1 -1
- package/button-group/interfaces.js.map +1 -1
- package/button-group/internal.d.ts.map +1 -1
- package/button-group/internal.js +2 -2
- package/button-group/internal.js.map +1 -1
- package/button-group/item-element.d.ts +1 -0
- package/button-group/item-element.d.ts.map +1 -1
- package/button-group/item-element.js +12 -6
- package/button-group/item-element.js.map +1 -1
- package/button-group/styles.css.js +4 -4
- package/button-group/styles.scoped.css +10 -6
- package/button-group/styles.selectors.js +4 -4
- package/calendar/grid/index.d.ts +1 -2
- package/calendar/grid/index.d.ts.map +1 -1
- package/calendar/grid/index.js.map +1 -1
- package/calendar/grid/use-calendar-grid-keyboard-navigation.d.ts.map +1 -1
- package/calendar/grid/use-calendar-grid-keyboard-navigation.js +2 -1
- package/calendar/grid/use-calendar-grid-keyboard-navigation.js.map +1 -1
- package/calendar/internal.d.ts.map +1 -1
- package/calendar/internal.js +2 -1
- package/calendar/internal.js.map +1 -1
- package/calendar/styles.css.js +21 -21
- package/calendar/styles.scoped.css +47 -43
- package/calendar/styles.selectors.js +21 -21
- package/calendar/utils/navigation-day.d.ts +8 -0
- package/calendar/utils/navigation-day.d.ts.map +1 -0
- package/calendar/utils/navigation-day.js +39 -0
- package/calendar/utils/navigation-day.js.map +1 -0
- package/calendar/utils/{navigation.d.ts → navigation-month.d.ts} +2 -6
- package/calendar/utils/navigation-month.d.ts.map +1 -0
- package/calendar/utils/navigation-month.js +39 -0
- package/calendar/utils/navigation-month.js.map +1 -0
- package/cards/styles.css.js +39 -39
- package/cards/styles.scoped.css +54 -50
- package/cards/styles.selectors.js +39 -39
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +9 -5
- package/checkbox/styles.selectors.js +3 -3
- package/code-editor/resizable-box/styles.css.js +3 -3
- package/code-editor/resizable-box/styles.scoped.css +10 -6
- package/code-editor/resizable-box/styles.selectors.js +3 -3
- package/code-editor/styles.css.js +33 -33
- package/code-editor/styles.scoped.css +139 -135
- package/code-editor/styles.selectors.js +33 -33
- package/collection-preferences/content-display/styles.css.js +12 -12
- package/collection-preferences/content-display/styles.scoped.css +23 -15
- package/collection-preferences/content-display/styles.selectors.js +12 -12
- package/collection-preferences/styles.css.js +38 -38
- package/collection-preferences/styles.scoped.css +58 -42
- 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 +14 -10
- 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 +49 -45
- package/column-layout/styles.selectors.js +13 -13
- package/container/styles.css.js +31 -31
- package/container/styles.scoped.css +60 -56
- package/container/styles.selectors.js +31 -31
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +20 -16
- package/content-layout/styles.selectors.js +14 -14
- package/date-picker/styles.css.js +7 -7
- package/date-picker/styles.scoped.css +13 -9
- package/date-picker/styles.selectors.js +7 -7
- package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
- package/date-range-picker/calendar/grids/index.js +1 -1
- package/date-range-picker/calendar/grids/index.js.map +1 -1
- package/date-range-picker/calendar/grids/styles.css.js +28 -28
- package/date-range-picker/calendar/grids/styles.scoped.css +47 -43
- package/date-range-picker/calendar/grids/styles.selectors.js +28 -28
- package/date-range-picker/calendar/index.js +1 -1
- package/date-range-picker/calendar/index.js.map +1 -1
- package/date-range-picker/index.d.ts.map +1 -1
- package/date-range-picker/index.js +3 -10
- package/date-range-picker/index.js.map +1 -1
- package/date-range-picker/relative-range/styles.css.js +9 -9
- package/date-range-picker/relative-range/styles.scoped.css +17 -13
- package/date-range-picker/relative-range/styles.selectors.js +9 -9
- package/date-range-picker/styles.css.js +38 -38
- package/date-range-picker/styles.scoped.css +51 -47
- package/date-range-picker/styles.selectors.js +38 -38
- package/date-range-picker/time-offset.d.ts +2 -1
- package/date-range-picker/time-offset.d.ts.map +1 -1
- package/date-range-picker/time-offset.js +1 -1
- package/date-range-picker/time-offset.js.map +1 -1
- package/date-range-picker/utils.d.ts +9 -0
- package/date-range-picker/utils.d.ts.map +1 -1
- package/date-range-picker/utils.js +19 -2
- package/date-range-picker/utils.js.map +1 -1
- package/drawer/styles.css.js +5 -5
- package/drawer/styles.scoped.css +16 -12
- package/drawer/styles.selectors.js +5 -5
- package/expandable-section/styles.css.js +34 -34
- package/expandable-section/styles.scoped.css +69 -65
- package/expandable-section/styles.selectors.js +34 -34
- package/file-dropzone/styles.css.js +3 -3
- package/file-dropzone/styles.scoped.css +9 -5
- package/file-dropzone/styles.selectors.js +3 -3
- package/file-input/internal.d.ts +5 -1
- package/file-input/internal.d.ts.map +1 -1
- package/file-input/internal.js +18 -10
- package/file-input/internal.js.map +1 -1
- package/file-input/styles.css.js +6 -5
- package/file-input/styles.scoped.css +33 -8
- package/file-input/styles.selectors.js +6 -5
- package/file-token-group/styles.css.js +22 -22
- package/file-token-group/styles.scoped.css +35 -31
- package/file-token-group/styles.selectors.js +22 -22
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +152 -148
- package/flashbar/styles.selectors.js +50 -50
- package/form/styles.css.js +8 -8
- package/form/styles.scoped.css +12 -8
- package/form/styles.selectors.js +8 -8
- package/form-field/styles.css.js +24 -24
- package/form-field/styles.scoped.css +42 -38
- package/form-field/styles.selectors.js +24 -24
- package/grid/styles.css.js +53 -53
- package/grid/styles.scoped.css +58 -54
- package/grid/styles.selectors.js +53 -53
- package/header/styles.css.js +34 -34
- package/header/styles.scoped.css +56 -52
- package/header/styles.selectors.js +34 -34
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +73 -69
- package/help-panel/styles.selectors.js +6 -6
- package/hotspot/styles.css.js +7 -7
- package/hotspot/styles.scoped.css +13 -9
- package/hotspot/styles.selectors.js +7 -7
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.json +1 -1
- package/i18n/messages/all.ar.js +1 -1
- package/i18n/messages/all.ar.json +1 -1
- package/i18n/messages/all.de.js +1 -1
- package/i18n/messages/all.de.json +1 -1
- package/i18n/messages/all.en-GB.js +1 -1
- package/i18n/messages/all.en-GB.json +1 -1
- package/i18n/messages/all.en.js +1 -1
- package/i18n/messages/all.en.json +1 -1
- package/i18n/messages/all.es.js +1 -1
- package/i18n/messages/all.es.json +1 -1
- package/i18n/messages/all.fr.js +1 -1
- package/i18n/messages/all.fr.json +1 -1
- package/i18n/messages/all.id.js +1 -1
- package/i18n/messages/all.id.json +1 -1
- package/i18n/messages/all.it.js +1 -1
- package/i18n/messages/all.it.json +1 -1
- package/i18n/messages/all.ja.js +1 -1
- package/i18n/messages/all.ja.json +1 -1
- package/i18n/messages/all.ko.js +1 -1
- package/i18n/messages/all.ko.json +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1
- package/i18n/messages/all.pt-BR.json +1 -1
- package/i18n/messages/all.tr.js +1 -1
- package/i18n/messages/all.tr.json +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1
- package/i18n/messages/all.zh-CN.json +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1
- package/i18n/messages/all.zh-TW.json +1 -1
- package/i18n/messages-types.d.ts +3 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/icon/styles.css.js +38 -38
- package/icon/styles.scoped.css +89 -85
- package/icon/styles.selectors.js +38 -38
- package/input/styles.css.js +13 -13
- package/input/styles.scoped.css +36 -32
- package/input/styles.selectors.js +13 -13
- package/internal/components/abstract-switch/styles.css.js +13 -13
- package/internal/components/abstract-switch/styles.scoped.css +24 -20
- package/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/internal/components/button-trigger/styles.css.js +13 -13
- package/internal/components/button-trigger/styles.scoped.css +31 -27
- package/internal/components/button-trigger/styles.selectors.js +13 -13
- package/internal/components/chart-filter/styles.css.js +3 -3
- package/internal/components/chart-filter/styles.scoped.css +7 -3
- 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 +19 -15
- 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 +9 -5
- 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 +7 -3
- package/internal/components/chart-popover/styles.selectors.js +3 -3
- package/internal/components/chart-series-details/styles.css.js +20 -20
- package/internal/components/chart-series-details/styles.scoped.css +37 -33
- package/internal/components/chart-series-details/styles.selectors.js +20 -20
- package/internal/components/chart-series-marker/styles.css.js +5 -5
- package/internal/components/chart-series-marker/styles.scoped.css +11 -7
- package/internal/components/chart-series-marker/styles.selectors.js +5 -5
- package/internal/components/chart-wrapper/styles.css.js +9 -9
- package/internal/components/chart-wrapper/styles.scoped.css +15 -11
- 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 +13 -9
- package/internal/components/checkbox-icon/styles.selectors.js +9 -9
- package/internal/components/dnd-container/styles.css.js +1 -1
- package/internal/components/dnd-container/styles.scoped.css +8 -4
- package/internal/components/dnd-container/styles.selectors.js +1 -1
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +41 -37
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/components/dropdown-footer/styles.css.js +3 -3
- package/internal/components/dropdown-footer/styles.scoped.css +7 -3
- 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 +6 -2
- package/internal/components/dropdown-status/styles.selectors.js +2 -2
- package/internal/components/handle/styles.css.js +2 -2
- package/internal/components/handle/styles.scoped.css +10 -6
- package/internal/components/handle/styles.selectors.js +2 -2
- package/internal/components/menu-dropdown/index.d.ts.map +1 -1
- package/internal/components/menu-dropdown/index.js +2 -1
- package/internal/components/menu-dropdown/index.js.map +1 -1
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +17 -13
- 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 +33 -29
- 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 +7 -3
- package/internal/components/options-list/styles.selectors.js +3 -3
- package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.js +13 -16
- package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
- package/internal/components/panel-resize-handle/styles.css.js +5 -5
- package/internal/components/panel-resize-handle/styles.scoped.css +14 -10
- package/internal/components/panel-resize-handle/styles.selectors.js +5 -5
- package/internal/components/screenreader-only/styles.css.js +1 -1
- package/internal/components/screenreader-only/styles.scoped.css +5 -1
- package/internal/components/screenreader-only/styles.selectors.js +1 -1
- package/internal/components/selectable-item/styles.css.js +16 -16
- package/internal/components/selectable-item/styles.scoped.css +33 -29
- package/internal/components/selectable-item/styles.selectors.js +16 -16
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +28 -24
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/hooks/use-performance-marks/index.d.ts.map +1 -1
- package/internal/hooks/use-performance-marks/index.js +23 -2
- package/internal/hooks/use-performance-marks/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/internal/styles/motion/utils.d.ts +2 -0
- package/internal/styles/motion/utils.d.ts.map +1 -0
- package/internal/styles/motion/utils.js +5 -0
- package/internal/styles/motion/utils.js.map +1 -0
- package/internal/utils/date-time/format-date-iso.d.ts +2 -1
- package/internal/utils/date-time/format-date-iso.d.ts.map +1 -1
- package/internal/utils/date-time/format-date-iso.js +6 -2
- package/internal/utils/date-time/format-date-iso.js.map +1 -1
- package/internal/utils/date-time/format-date-localized.d.ts +2 -1
- package/internal/utils/date-time/format-date-localized.d.ts.map +1 -1
- package/internal/utils/date-time/format-date-localized.js +9 -2
- package/internal/utils/date-time/format-date-localized.js.map +1 -1
- package/internal/utils/date-time/format-date-time-with-offset.d.ts.map +1 -1
- package/internal/utils/date-time/format-date-time-with-offset.js +4 -3
- package/internal/utils/date-time/format-date-time-with-offset.js.map +1 -1
- package/internal/utils/date-time/index.d.ts +1 -1
- package/internal/utils/date-time/index.d.ts.map +1 -1
- package/internal/utils/date-time/index.js +1 -1
- package/internal/utils/date-time/index.js.map +1 -1
- package/internal/utils/date-time/is-iso-only.d.ts +9 -0
- package/internal/utils/date-time/is-iso-only.d.ts.map +1 -0
- package/internal/utils/date-time/is-iso-only.js +18 -0
- package/internal/utils/date-time/is-iso-only.js.map +1 -0
- package/internal/utils/handle-key.d.ts +1 -2
- package/internal/utils/handle-key.d.ts.map +1 -1
- package/internal/utils/handle-key.js.map +1 -1
- package/internal/utils/throttle.d.ts +1 -2
- package/internal/utils/throttle.d.ts.map +1 -1
- package/internal/utils/throttle.js.map +1 -1
- package/key-value-pairs/styles.css.js +8 -8
- package/key-value-pairs/styles.scoped.css +13 -9
- package/key-value-pairs/styles.selectors.js +8 -8
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +75 -71
- package/link/styles.selectors.js +20 -20
- package/live-region/styles.css.js +2 -2
- package/live-region/styles.scoped.css +7 -3
- package/live-region/styles.selectors.js +2 -2
- package/mixed-line-bar-chart/styles.css.js +11 -11
- package/mixed-line-bar-chart/styles.scoped.css +23 -19
- package/mixed-line-bar-chart/styles.selectors.js +11 -11
- package/modal/index.js +1 -1
- package/modal/index.js.map +1 -1
- package/modal/styles.css.js +23 -23
- package/modal/styles.scoped.css +42 -38
- package/modal/styles.selectors.js +23 -23
- package/multiselect/styles.css.js +3 -3
- package/multiselect/styles.scoped.css +7 -3
- package/multiselect/styles.selectors.js +3 -3
- package/package.json +1 -1
- package/pagination/styles.css.js +9 -9
- package/pagination/styles.scoped.css +27 -23
- package/pagination/styles.selectors.js +9 -9
- package/pie-chart/styles.css.js +27 -27
- package/pie-chart/styles.scoped.css +52 -48
- package/pie-chart/styles.selectors.js +27 -27
- package/popover/styles.css.js +53 -53
- package/popover/styles.scoped.css +89 -69
- package/popover/styles.selectors.js +53 -53
- package/progress-bar/styles.css.js +19 -19
- package/progress-bar/styles.scoped.css +42 -34
- package/progress-bar/styles.selectors.js +19 -19
- package/prompt-input/styles.css.js +14 -14
- package/prompt-input/styles.scoped.css +43 -39
- package/prompt-input/styles.selectors.js +14 -14
- package/property-filter/filtering-token/styles.css.js +18 -18
- package/property-filter/filtering-token/styles.scoped.css +45 -41
- package/property-filter/filtering-token/styles.selectors.js +18 -18
- package/property-filter/styles.css.js +39 -39
- package/property-filter/styles.scoped.css +45 -41
- package/property-filter/styles.selectors.js +39 -39
- package/radio-group/styles.css.js +10 -10
- package/radio-group/styles.scoped.css +20 -16
- package/radio-group/styles.selectors.js +10 -10
- package/s3-resource-selector/s3-modal/basic-table.js +1 -0
- package/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
- package/s3-resource-selector/s3-modal/styles.css.js +3 -3
- package/s3-resource-selector/s3-modal/styles.scoped.css +9 -5
- package/s3-resource-selector/s3-modal/styles.selectors.js +3 -3
- package/segmented-control/styles.css.js +15 -15
- package/segmented-control/styles.scoped.css +38 -34
- package/segmented-control/styles.selectors.js +15 -15
- package/select/parts/filter.d.ts +1 -1
- package/select/parts/styles.css.js +21 -21
- package/select/parts/styles.scoped.css +26 -22
- package/select/parts/styles.selectors.js +21 -21
- package/select/styles.css.js +1 -1
- package/select/styles.scoped.css +5 -1
- package/select/styles.selectors.js +1 -1
- package/select/utils/use-select.js +1 -1
- package/select/utils/use-select.js.map +1 -1
- package/side-navigation/styles.css.js +30 -30
- package/side-navigation/styles.scoped.css +50 -46
- package/side-navigation/styles.selectors.js +30 -30
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +80 -76
- package/slider/styles.selectors.js +26 -26
- package/space-between/styles.css.js +23 -23
- package/space-between/styles.scoped.css +28 -24
- package/space-between/styles.selectors.js +23 -23
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +23 -19
- package/spinner/styles.selectors.js +13 -13
- package/split-panel/icons/styles.css.js +22 -22
- package/split-panel/icons/styles.scoped.css +28 -24
- package/split-panel/icons/styles.selectors.js +22 -22
- package/split-panel/styles.css.js +26 -26
- package/split-panel/styles.scoped.css +47 -43
- package/split-panel/styles.selectors.js +26 -26
- package/status-indicator/styles.css.js +23 -23
- package/status-indicator/styles.scoped.css +33 -29
- package/status-indicator/styles.selectors.js +23 -23
- package/steps/styles.css.js +6 -6
- package/steps/styles.scoped.css +13 -9
- package/steps/styles.selectors.js +6 -6
- package/table/body-cell/styles.css.js +46 -46
- package/table/body-cell/styles.scoped.css +296 -292
- package/table/body-cell/styles.selectors.js +46 -46
- package/table/expandable-rows/styles.css.js +3 -3
- package/table/expandable-rows/styles.scoped.css +17 -13
- package/table/expandable-rows/styles.selectors.js +3 -3
- package/table/header-cell/styles.css.js +26 -26
- package/table/header-cell/styles.scoped.css +69 -65
- package/table/header-cell/styles.selectors.js +26 -26
- package/table/header-cell/th-element.d.ts +2 -1
- package/table/header-cell/th-element.d.ts.map +1 -1
- package/table/header-cell/th-element.js +2 -2
- package/table/header-cell/th-element.js.map +1 -1
- package/table/interfaces.d.ts +14 -3
- package/table/interfaces.d.ts.map +1 -1
- package/table/interfaces.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +13 -4
- package/table/internal.js.map +1 -1
- package/table/progressive-loading/items-loader.d.ts +8 -2
- package/table/progressive-loading/items-loader.d.ts.map +1 -1
- package/table/progressive-loading/items-loader.js +11 -5
- package/table/progressive-loading/items-loader.js.map +1 -1
- package/table/progressive-loading/loader-cell.d.ts +2 -3
- package/table/progressive-loading/loader-cell.d.ts.map +1 -1
- package/table/progressive-loading/loader-cell.js +2 -2
- package/table/progressive-loading/loader-cell.js.map +1 -1
- package/table/progressive-loading/progressive-loading-utils.d.ts.map +1 -1
- package/table/progressive-loading/progressive-loading-utils.js +2 -2
- package/table/progressive-loading/progressive-loading-utils.js.map +1 -1
- package/table/resizer/styles.css.js +8 -8
- package/table/resizer/styles.scoped.css +19 -15
- package/table/resizer/styles.selectors.js +8 -8
- package/table/selection/interfaces.d.ts +1 -0
- package/table/selection/interfaces.d.ts.map +1 -1
- package/table/selection/interfaces.js.map +1 -1
- package/table/selection/selection-cell.d.ts.map +1 -1
- package/table/selection/selection-cell.js +4 -3
- package/table/selection/selection-cell.js.map +1 -1
- package/table/selection/styles.css.js +3 -3
- package/table/selection/styles.scoped.css +7 -3
- package/table/selection/styles.selectors.js +3 -3
- package/table/selection/use-selection.js +1 -0
- package/table/selection/use-selection.js.map +1 -1
- package/table/sticky-scrollbar/styles.css.js +6 -6
- package/table/sticky-scrollbar/styles.scoped.css +14 -10
- package/table/sticky-scrollbar/styles.selectors.js +6 -6
- package/table/styles.css.js +34 -34
- package/table/styles.scoped.css +45 -41
- package/table/styles.selectors.js +34 -34
- package/tabs/styles.css.js +28 -28
- package/tabs/styles.scoped.css +57 -49
- package/tabs/styles.selectors.js +28 -28
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +14 -10
- package/tag-editor/styles.selectors.js +3 -3
- package/test-utils/dom/button-group/index.d.ts +5 -0
- package/test-utils/dom/button-group/index.js +16 -7
- package/test-utils/dom/button-group/index.js.map +1 -1
- package/test-utils/selectors/button-group/index.d.ts +5 -0
- package/test-utils/selectors/button-group/index.js +16 -7
- package/test-utils/selectors/button-group/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +64 -60
- package/text-content/styles.selectors.js +1 -1
- package/text-filter/styles.css.js +3 -3
- package/text-filter/styles.scoped.css +7 -3
- package/text-filter/styles.selectors.js +3 -3
- package/textarea/styles.css.js +5 -5
- package/textarea/styles.scoped.css +18 -14
- package/textarea/styles.selectors.js +5 -5
- package/tiles/styles.css.js +30 -30
- package/tiles/styles.scoped.css +77 -73
- package/tiles/styles.selectors.js +30 -30
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +21 -17
- package/toggle/styles.selectors.js +10 -10
- package/token-group/styles.css.js +8 -8
- package/token-group/styles.scoped.css +20 -16
- package/token-group/styles.selectors.js +8 -8
- package/top-navigation/1.0-beta/styles.css.js +23 -25
- package/top-navigation/1.0-beta/styles.scoped.css +40 -66
- package/top-navigation/1.0-beta/styles.selectors.js +23 -25
- package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.js +3 -2
- package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +78 -85
- package/top-navigation/styles.selectors.js +47 -47
- package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +27 -23
- package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +33 -29
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/tutorial-panel/styles.css.js +1 -1
- package/tutorial-panel/styles.scoped.css +7 -3
- package/tutorial-panel/styles.selectors.js +1 -1
- package/wizard/styles.css.js +30 -30
- package/wizard/styles.scoped.css +62 -58
- package/wizard/styles.selectors.js +30 -30
- package/calendar/utils/navigation.d.ts.map +0 -1
- package/calendar/utils/navigation.js +0 -73
- package/calendar/utils/navigation.js.map +0 -1
- package/internal/utils/date-time/is-iso-date-only.d.ts +0 -5
- package/internal/utils/date-time/is-iso-date-only.d.ts.map +0 -1
- package/internal/utils/date-time/is-iso-date-only.js +0 -10
- package/internal/utils/date-time/is-iso-date-only.js.map +0 -1
|
@@ -136,9 +136,13 @@
|
|
|
136
136
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
137
137
|
SPDX-License-Identifier: Apache-2.0
|
|
138
138
|
*/
|
|
139
|
+
/*
|
|
140
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
141
|
+
SPDX-License-Identifier: Apache-2.0
|
|
142
|
+
*/
|
|
139
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
140
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
141
|
-
.
|
|
145
|
+
.awsui_root_1wzqe_piuc8_145:not(#\9) {
|
|
142
146
|
border-collapse: separate;
|
|
143
147
|
border-spacing: 0;
|
|
144
148
|
box-sizing: border-box;
|
|
@@ -171,40 +175,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
171
175
|
-moz-osx-font-smoothing: auto;
|
|
172
176
|
}
|
|
173
177
|
|
|
174
|
-
.awsui_search-
|
|
178
|
+
.awsui_search-field_1wzqe_piuc8_177:not(#\9) {
|
|
175
179
|
display: flex;
|
|
176
180
|
align-items: flex-end;
|
|
177
181
|
flex-wrap: wrap;
|
|
178
182
|
gap: var(--space-xs-zb16t3, 8px) var(--space-s-34lx8l, 12px);
|
|
179
183
|
}
|
|
180
184
|
|
|
181
|
-
.awsui_input-
|
|
185
|
+
.awsui_input-wrapper_1wzqe_piuc8_184:not(#\9) {
|
|
182
186
|
flex-grow: 1;
|
|
183
187
|
display: flex;
|
|
184
188
|
align-items: flex-end;
|
|
185
189
|
max-inline-size: calc(688px - 2 * var(--space-l-t419sm, 20px));
|
|
186
190
|
}
|
|
187
191
|
|
|
188
|
-
.awsui_add-
|
|
192
|
+
.awsui_add-token_1wzqe_piuc8_191:not(#\9) {
|
|
189
193
|
border-inline-start: 1px solid var(--color-border-divider-default-cx07f2, #c6c6cd);
|
|
190
194
|
box-sizing: border-box;
|
|
191
195
|
margin-inline-start: var(--space-m-udix3p, 16px);
|
|
192
196
|
padding-inline-start: var(--space-m-udix3p, 16px);
|
|
193
197
|
}
|
|
194
198
|
|
|
195
|
-
.
|
|
199
|
+
.awsui_tokens_1wzqe_piuc8_198:not(#\9) {
|
|
196
200
|
margin-block: var(--space-xs-zb16t3, 8px);
|
|
197
201
|
margin-inline: 0;
|
|
198
202
|
}
|
|
199
203
|
|
|
200
|
-
.awsui_token-
|
|
204
|
+
.awsui_token-operator_1wzqe_piuc8_203:not(#\9) {
|
|
201
205
|
font-weight: bold;
|
|
202
206
|
}
|
|
203
207
|
|
|
204
|
-
.awsui_property-
|
|
208
|
+
.awsui_property-editor_1wzqe_piuc8_207:not(#\9) {
|
|
205
209
|
overflow-y: auto;
|
|
206
210
|
}
|
|
207
|
-
.awsui_property-editor-
|
|
211
|
+
.awsui_property-editor-header_1wzqe_piuc8_210:not(#\9) {
|
|
208
212
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
209
213
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
210
214
|
color: var(--color-text-body-default-7v1jfn, #0f141a);
|
|
@@ -217,7 +221,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
217
221
|
padding-block-end: var(--space-xxs-p8yyaw, 4px);
|
|
218
222
|
padding-inline: var(--space-s-34lx8l, 12px);
|
|
219
223
|
}
|
|
220
|
-
.awsui_property-editor-header-
|
|
224
|
+
.awsui_property-editor-header-enum_1wzqe_piuc8_223:not(#\9) {
|
|
221
225
|
display: flex;
|
|
222
226
|
gap: var(--space-xs-zb16t3, 8px);
|
|
223
227
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
@@ -232,15 +236,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
232
236
|
padding-block: calc(var(--space-xs-zb16t3, 8px) + var(--border-item-width-yel47s, 2px) - var(--border-divider-list-width-27y3k5, 1px));
|
|
233
237
|
padding-inline: calc(var(--space-field-horizontal-gg19kw, 12px) + var(--border-item-width-yel47s, 2px));
|
|
234
238
|
}
|
|
235
|
-
.awsui_property-editor-
|
|
239
|
+
.awsui_property-editor-form_1wzqe_piuc8_238:not(#\9) {
|
|
236
240
|
padding-block-start: var(--space-xxs-p8yyaw, 4px);
|
|
237
241
|
padding-block-end: var(--space-s-34lx8l, 12px);
|
|
238
242
|
padding-inline: var(--space-s-34lx8l, 12px);
|
|
239
243
|
}
|
|
240
|
-
.awsui_property-editor-
|
|
244
|
+
.awsui_property-editor-cancel_1wzqe_piuc8_243:not(#\9) {
|
|
241
245
|
margin-inline-end: var(--space-xs-zb16t3, 8px);
|
|
242
246
|
}
|
|
243
|
-
.awsui_property-editor-
|
|
247
|
+
.awsui_property-editor-actions_1wzqe_piuc8_246:not(#\9) {
|
|
244
248
|
display: flex;
|
|
245
249
|
justify-content: flex-end;
|
|
246
250
|
border-block-start: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-dropdown-item-default-xiw1xo, #c6c6cd);
|
|
@@ -248,46 +252,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
248
252
|
padding-block: var(--space-s-34lx8l, 12px);
|
|
249
253
|
}
|
|
250
254
|
|
|
251
|
-
.awsui_property-editor-
|
|
255
|
+
.awsui_property-editor-enum_1wzqe_piuc8_254:not(#\9) {
|
|
252
256
|
display: flex;
|
|
253
257
|
flex-direction: column;
|
|
254
258
|
}
|
|
255
259
|
|
|
256
|
-
.awsui_token-
|
|
260
|
+
.awsui_token-editor_1wzqe_piuc8_259:not(#\9) {
|
|
257
261
|
display: flex;
|
|
258
262
|
flex-direction: column;
|
|
259
263
|
gap: var(--space-s-34lx8l, 12px);
|
|
260
264
|
margin-block: var(--space-xxs-p8yyaw, 4px);
|
|
261
265
|
margin-inline: var(--space-xxs-p8yyaw, 4px);
|
|
262
266
|
}
|
|
263
|
-
.awsui_token-editor-
|
|
267
|
+
.awsui_token-editor-form_1wzqe_piuc8_266:not(#\9) {
|
|
264
268
|
/* used in test-utils */
|
|
265
269
|
}
|
|
266
|
-
.awsui_token-editor-field-
|
|
270
|
+
.awsui_token-editor-field-property_1wzqe_piuc8_269:not(#\9) {
|
|
267
271
|
flex-grow: 2;
|
|
268
272
|
}
|
|
269
|
-
.awsui_token-editor-field-
|
|
273
|
+
.awsui_token-editor-field-operator_1wzqe_piuc8_272:not(#\9) {
|
|
270
274
|
flex-grow: 1;
|
|
271
275
|
}
|
|
272
|
-
.awsui_token-editor-field-
|
|
276
|
+
.awsui_token-editor-field-value_1wzqe_piuc8_275:not(#\9) {
|
|
273
277
|
flex-grow: 2;
|
|
274
278
|
}
|
|
275
|
-
.awsui_token-editor-multiselect-
|
|
279
|
+
.awsui_token-editor-multiselect-wrapper_1wzqe_piuc8_278:not(#\9) {
|
|
276
280
|
position: relative;
|
|
277
281
|
block-size: var(--size-vertical-input-v5iwwf, 32px);
|
|
278
282
|
min-inline-size: 200px;
|
|
279
283
|
}
|
|
280
|
-
.awsui_token-editor-multiselect-wrapper-
|
|
284
|
+
.awsui_token-editor-multiselect-wrapper-inner_1wzqe_piuc8_283:not(#\9) {
|
|
281
285
|
position: absolute;
|
|
282
286
|
inline-size: 100%;
|
|
283
287
|
}
|
|
284
|
-
.awsui_token-editor-
|
|
288
|
+
.awsui_token-editor-cancel_1wzqe_piuc8_287:not(#\9) {
|
|
285
289
|
margin-inline-end: var(--space-xs-zb16t3, 8px);
|
|
286
290
|
}
|
|
287
|
-
.awsui_token-editor-
|
|
291
|
+
.awsui_token-editor-submit_1wzqe_piuc8_290:not(#\9) {
|
|
288
292
|
/* used in test-utils */
|
|
289
293
|
}
|
|
290
|
-
.awsui_token-editor-
|
|
294
|
+
.awsui_token-editor-actions_1wzqe_piuc8_293:not(#\9) {
|
|
291
295
|
display: flex;
|
|
292
296
|
justify-content: flex-end;
|
|
293
297
|
padding-block-start: var(--space-s-34lx8l, 12px);
|
|
@@ -296,7 +300,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
296
300
|
margin-inline: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
|
|
297
301
|
margin-block-start: var(--space-s-34lx8l, 12px);
|
|
298
302
|
}
|
|
299
|
-
.awsui_token-editor-
|
|
303
|
+
.awsui_token-editor-grid_1wzqe_piuc8_302:not(#\9) {
|
|
300
304
|
border-collapse: separate;
|
|
301
305
|
border-spacing: 0;
|
|
302
306
|
box-sizing: border-box;
|
|
@@ -331,70 +335,70 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
331
335
|
gap: var(--space-s-34lx8l, 12px);
|
|
332
336
|
grid-template-columns: minmax(min-content, 2fr) minmax(min-content, 120px) minmax(min-content, 3fr) min-content;
|
|
333
337
|
}
|
|
334
|
-
.awsui_token-editor-grid-
|
|
338
|
+
.awsui_token-editor-grid-group_1wzqe_piuc8_336:not(#\9) {
|
|
335
339
|
display: contents;
|
|
336
340
|
}
|
|
337
|
-
.awsui_token-editor-
|
|
341
|
+
.awsui_token-editor-grid_1wzqe_piuc8_302.awsui_token-editor-narrow_1wzqe_piuc8_339:not(#\9) {
|
|
338
342
|
grid-template-columns: minmax(100px, 1fr);
|
|
339
343
|
gap: var(--space-m-udix3p, 16px);
|
|
340
344
|
}
|
|
341
|
-
.awsui_token-editor-
|
|
345
|
+
.awsui_token-editor-grid_1wzqe_piuc8_302.awsui_token-editor-narrow_1wzqe_piuc8_339 > .awsui_token-editor-grid-group_1wzqe_piuc8_336:not(#\9) {
|
|
342
346
|
display: flex;
|
|
343
347
|
flex-direction: column;
|
|
344
348
|
gap: var(--space-s-34lx8l, 12px);
|
|
345
349
|
}
|
|
346
|
-
.awsui_token-editor-
|
|
350
|
+
.awsui_token-editor-grid_1wzqe_piuc8_302.awsui_token-editor-narrow_1wzqe_piuc8_339 > .awsui_token-editor-grid-group_1wzqe_piuc8_336.awsui_token-editor-supports-groups_1wzqe_piuc8_348:not(#\9) {
|
|
347
351
|
padding-block-end: var(--space-m-udix3p, 16px);
|
|
348
352
|
border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-cx07f2, #c6c6cd);
|
|
349
353
|
}
|
|
350
|
-
.awsui_token-editor-grid-
|
|
354
|
+
.awsui_token-editor-grid-header_1wzqe_piuc8_352:not(#\9) {
|
|
351
355
|
color: var(--color-text-column-header-18yqaj, #424650);
|
|
352
356
|
font-weight: var(--font-weight-heading-s-cwn6wc, 700);
|
|
353
357
|
padding-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
354
358
|
text-align: start;
|
|
355
359
|
}
|
|
356
|
-
.awsui_token-editor-grid-
|
|
360
|
+
.awsui_token-editor-grid-cell_1wzqe_piuc8_358:not(#\9):not(.awsui_token-editor-narrow_1wzqe_piuc8_339) {
|
|
357
361
|
display: flex;
|
|
358
362
|
align-items: flex-end;
|
|
359
363
|
justify-content: flex-end;
|
|
360
364
|
}
|
|
361
|
-
.awsui_token-editor-grid-
|
|
365
|
+
.awsui_token-editor-grid-cell_1wzqe_piuc8_358.awsui_token-editor-narrow_1wzqe_piuc8_339:not(#\9):nth-child(4) {
|
|
362
366
|
display: flex;
|
|
363
367
|
justify-content: flex-end;
|
|
364
368
|
}
|
|
365
|
-
.awsui_token-editor-add-
|
|
369
|
+
.awsui_token-editor-add-token_1wzqe_piuc8_367:not(#\9) {
|
|
366
370
|
margin-block-start: var(--space-s-34lx8l, 12px);
|
|
367
371
|
}
|
|
368
372
|
|
|
369
|
-
.awsui_custom-content-
|
|
373
|
+
.awsui_custom-content-wrapper_1wzqe_piuc8_371:not(#\9) {
|
|
370
374
|
display: contents;
|
|
371
375
|
}
|
|
372
376
|
|
|
373
|
-
.awsui_custom-
|
|
377
|
+
.awsui_custom-control_1wzqe_piuc8_375:not(#\9) {
|
|
374
378
|
/* used in test-utils */
|
|
375
379
|
}
|
|
376
380
|
|
|
377
|
-
.
|
|
381
|
+
.awsui_input_1wzqe_piuc8_184:not(#\9) {
|
|
378
382
|
flex: 1;
|
|
379
383
|
}
|
|
380
384
|
|
|
381
|
-
.
|
|
385
|
+
.awsui_results_1wzqe_piuc8_383:not(#\9) {
|
|
382
386
|
padding-block: calc(var(--space-scaled-xxs-7597g1, 4px) + var(--border-width-field-h1g7tw, 2px));
|
|
383
387
|
padding-inline: 0;
|
|
384
388
|
}
|
|
385
389
|
|
|
386
|
-
.awsui_token-
|
|
390
|
+
.awsui_token-trigger_1wzqe_piuc8_388:not(#\9) {
|
|
387
391
|
min-inline-size: 0;
|
|
388
392
|
word-break: break-word;
|
|
389
393
|
}
|
|
390
394
|
|
|
391
|
-
.awsui_remove-
|
|
392
|
-
.awsui_join-
|
|
393
|
-
.awsui_custom-filter-
|
|
395
|
+
.awsui_remove-all_1wzqe_piuc8_393:not(#\9),
|
|
396
|
+
.awsui_join-operation_1wzqe_piuc8_394:not(#\9),
|
|
397
|
+
.awsui_custom-filter-actions_1wzqe_piuc8_395:not(#\9) {
|
|
394
398
|
/* used in test-utils */
|
|
395
399
|
}
|
|
396
400
|
|
|
397
|
-
.
|
|
401
|
+
.awsui_constraint_1wzqe_piuc8_399:not(#\9) {
|
|
398
402
|
padding-block-start: var(--space-xxs-p8yyaw, 4px);
|
|
399
403
|
color: var(--color-text-form-secondary-54emib, #656871);
|
|
400
404
|
font-size: var(--font-size-body-s-asqx2i, 12px);
|
|
@@ -2,44 +2,44 @@
|
|
|
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
|
-
"search-field": "awsui_search-
|
|
7
|
-
"input-wrapper": "awsui_input-
|
|
8
|
-
"add-token": "awsui_add-
|
|
9
|
-
"tokens": "
|
|
10
|
-
"token-operator": "awsui_token-
|
|
11
|
-
"property-editor": "awsui_property-
|
|
12
|
-
"property-editor-header": "awsui_property-editor-
|
|
13
|
-
"property-editor-header-enum": "awsui_property-editor-header-
|
|
14
|
-
"property-editor-form": "awsui_property-editor-
|
|
15
|
-
"property-editor-cancel": "awsui_property-editor-
|
|
16
|
-
"property-editor-actions": "awsui_property-editor-
|
|
17
|
-
"property-editor-enum": "awsui_property-editor-
|
|
18
|
-
"token-editor": "awsui_token-
|
|
19
|
-
"token-editor-form": "awsui_token-editor-
|
|
20
|
-
"token-editor-field-property": "awsui_token-editor-field-
|
|
21
|
-
"token-editor-field-operator": "awsui_token-editor-field-
|
|
22
|
-
"token-editor-field-value": "awsui_token-editor-field-
|
|
23
|
-
"token-editor-multiselect-wrapper": "awsui_token-editor-multiselect-
|
|
24
|
-
"token-editor-multiselect-wrapper-inner": "awsui_token-editor-multiselect-wrapper-
|
|
25
|
-
"token-editor-cancel": "awsui_token-editor-
|
|
26
|
-
"token-editor-submit": "awsui_token-editor-
|
|
27
|
-
"token-editor-actions": "awsui_token-editor-
|
|
28
|
-
"token-editor-grid": "awsui_token-editor-
|
|
29
|
-
"token-editor-grid-group": "awsui_token-editor-grid-
|
|
30
|
-
"token-editor-narrow": "awsui_token-editor-
|
|
31
|
-
"token-editor-supports-groups": "awsui_token-editor-supports-
|
|
32
|
-
"token-editor-grid-header": "awsui_token-editor-grid-
|
|
33
|
-
"token-editor-grid-cell": "awsui_token-editor-grid-
|
|
34
|
-
"token-editor-add-token": "awsui_token-editor-add-
|
|
35
|
-
"custom-content-wrapper": "awsui_custom-content-
|
|
36
|
-
"custom-control": "awsui_custom-
|
|
37
|
-
"input": "
|
|
38
|
-
"results": "
|
|
39
|
-
"token-trigger": "awsui_token-
|
|
40
|
-
"remove-all": "awsui_remove-
|
|
41
|
-
"join-operation": "awsui_join-
|
|
42
|
-
"custom-filter-actions": "awsui_custom-filter-
|
|
43
|
-
"constraint": "
|
|
5
|
+
"root": "awsui_root_1wzqe_piuc8_145",
|
|
6
|
+
"search-field": "awsui_search-field_1wzqe_piuc8_177",
|
|
7
|
+
"input-wrapper": "awsui_input-wrapper_1wzqe_piuc8_184",
|
|
8
|
+
"add-token": "awsui_add-token_1wzqe_piuc8_191",
|
|
9
|
+
"tokens": "awsui_tokens_1wzqe_piuc8_198",
|
|
10
|
+
"token-operator": "awsui_token-operator_1wzqe_piuc8_203",
|
|
11
|
+
"property-editor": "awsui_property-editor_1wzqe_piuc8_207",
|
|
12
|
+
"property-editor-header": "awsui_property-editor-header_1wzqe_piuc8_210",
|
|
13
|
+
"property-editor-header-enum": "awsui_property-editor-header-enum_1wzqe_piuc8_223",
|
|
14
|
+
"property-editor-form": "awsui_property-editor-form_1wzqe_piuc8_238",
|
|
15
|
+
"property-editor-cancel": "awsui_property-editor-cancel_1wzqe_piuc8_243",
|
|
16
|
+
"property-editor-actions": "awsui_property-editor-actions_1wzqe_piuc8_246",
|
|
17
|
+
"property-editor-enum": "awsui_property-editor-enum_1wzqe_piuc8_254",
|
|
18
|
+
"token-editor": "awsui_token-editor_1wzqe_piuc8_259",
|
|
19
|
+
"token-editor-form": "awsui_token-editor-form_1wzqe_piuc8_266",
|
|
20
|
+
"token-editor-field-property": "awsui_token-editor-field-property_1wzqe_piuc8_269",
|
|
21
|
+
"token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_piuc8_272",
|
|
22
|
+
"token-editor-field-value": "awsui_token-editor-field-value_1wzqe_piuc8_275",
|
|
23
|
+
"token-editor-multiselect-wrapper": "awsui_token-editor-multiselect-wrapper_1wzqe_piuc8_278",
|
|
24
|
+
"token-editor-multiselect-wrapper-inner": "awsui_token-editor-multiselect-wrapper-inner_1wzqe_piuc8_283",
|
|
25
|
+
"token-editor-cancel": "awsui_token-editor-cancel_1wzqe_piuc8_287",
|
|
26
|
+
"token-editor-submit": "awsui_token-editor-submit_1wzqe_piuc8_290",
|
|
27
|
+
"token-editor-actions": "awsui_token-editor-actions_1wzqe_piuc8_293",
|
|
28
|
+
"token-editor-grid": "awsui_token-editor-grid_1wzqe_piuc8_302",
|
|
29
|
+
"token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_piuc8_336",
|
|
30
|
+
"token-editor-narrow": "awsui_token-editor-narrow_1wzqe_piuc8_339",
|
|
31
|
+
"token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_piuc8_348",
|
|
32
|
+
"token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_piuc8_352",
|
|
33
|
+
"token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_piuc8_358",
|
|
34
|
+
"token-editor-add-token": "awsui_token-editor-add-token_1wzqe_piuc8_367",
|
|
35
|
+
"custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_piuc8_371",
|
|
36
|
+
"custom-control": "awsui_custom-control_1wzqe_piuc8_375",
|
|
37
|
+
"input": "awsui_input_1wzqe_piuc8_184",
|
|
38
|
+
"results": "awsui_results_1wzqe_piuc8_383",
|
|
39
|
+
"token-trigger": "awsui_token-trigger_1wzqe_piuc8_388",
|
|
40
|
+
"remove-all": "awsui_remove-all_1wzqe_piuc8_393",
|
|
41
|
+
"join-operation": "awsui_join-operation_1wzqe_piuc8_394",
|
|
42
|
+
"custom-filter-actions": "awsui_custom-filter-actions_1wzqe_piuc8_395",
|
|
43
|
+
"constraint": "awsui_constraint_1wzqe_piuc8_399"
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"radio": "
|
|
6
|
-
"radio--has-description": "awsui_radio--has-
|
|
7
|
-
"radio-control": "awsui_radio-
|
|
8
|
-
"outline": "
|
|
9
|
-
"styled-circle-border": "awsui_styled-circle-
|
|
10
|
-
"styled-circle-disabled": "awsui_styled-circle-
|
|
11
|
-
"styled-circle-readonly": "awsui_styled-circle-
|
|
12
|
-
"styled-circle-fill": "awsui_styled-circle-
|
|
13
|
-
"styled-circle-checked": "awsui_styled-circle-
|
|
4
|
+
"root": "awsui_root_1mabk_16xu4_145",
|
|
5
|
+
"radio": "awsui_radio_1mabk_16xu4_178",
|
|
6
|
+
"radio--has-description": "awsui_radio--has-description_1mabk_16xu4_186",
|
|
7
|
+
"radio-control": "awsui_radio-control_1mabk_16xu4_190",
|
|
8
|
+
"outline": "awsui_outline_1mabk_16xu4_198",
|
|
9
|
+
"styled-circle-border": "awsui_styled-circle-border_1mabk_16xu4_220",
|
|
10
|
+
"styled-circle-disabled": "awsui_styled-circle-disabled_1mabk_16xu4_224",
|
|
11
|
+
"styled-circle-readonly": "awsui_styled-circle-readonly_1mabk_16xu4_224",
|
|
12
|
+
"styled-circle-fill": "awsui_styled-circle-fill_1mabk_16xu4_229",
|
|
13
|
+
"styled-circle-checked": "awsui_styled-circle-checked_1mabk_16xu4_245"
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -136,9 +136,13 @@
|
|
|
136
136
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
137
137
|
SPDX-License-Identifier: Apache-2.0
|
|
138
138
|
*/
|
|
139
|
+
/*
|
|
140
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
141
|
+
SPDX-License-Identifier: Apache-2.0
|
|
142
|
+
*/
|
|
139
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
140
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
141
|
-
.
|
|
145
|
+
.awsui_root_1mabk_16xu4_145:not(#\9) {
|
|
142
146
|
border-collapse: separate;
|
|
143
147
|
border-spacing: 0;
|
|
144
148
|
box-sizing: border-box;
|
|
@@ -172,19 +176,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
172
176
|
display: block;
|
|
173
177
|
}
|
|
174
178
|
|
|
175
|
-
.
|
|
179
|
+
.awsui_radio_1mabk_16xu4_178:not(#\9) {
|
|
176
180
|
/*used in test-utils*/
|
|
177
181
|
}
|
|
178
182
|
|
|
179
|
-
.
|
|
183
|
+
.awsui_radio_1mabk_16xu4_178 + .awsui_radio_1mabk_16xu4_178:not(#\9) {
|
|
180
184
|
margin-block-start: var(--space-scaled-xxs-7597g1, 4px);
|
|
181
185
|
}
|
|
182
186
|
|
|
183
|
-
.awsui_radio--has-
|
|
187
|
+
.awsui_radio--has-description_1mabk_16xu4_186 + .awsui_radio_1mabk_16xu4_178:not(#\9) {
|
|
184
188
|
margin-block-start: var(--space-scaled-xs-26e2du, 8px);
|
|
185
189
|
}
|
|
186
190
|
|
|
187
|
-
.awsui_radio-
|
|
191
|
+
.awsui_radio-control_1mabk_16xu4_190:not(#\9) {
|
|
188
192
|
margin-block-start: calc((var(--line-height-body-m-30ar75, 20px) - var(--size-control-28i7hr, 16px)) / 2);
|
|
189
193
|
min-block-size: var(--size-control-28i7hr, 16px);
|
|
190
194
|
min-inline-size: var(--size-control-28i7hr, 16px);
|
|
@@ -192,14 +196,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
192
196
|
inline-size: var(--size-control-28i7hr, 16px);
|
|
193
197
|
}
|
|
194
198
|
|
|
195
|
-
.
|
|
199
|
+
.awsui_outline_1mabk_16xu4_198:not(#\9) {
|
|
196
200
|
position: relative;
|
|
197
201
|
}
|
|
198
|
-
.
|
|
202
|
+
.awsui_outline_1mabk_16xu4_198:not(#\9) {
|
|
199
203
|
outline: 2px dotted transparent;
|
|
200
204
|
outline-offset: calc(2px - 1px);
|
|
201
205
|
}
|
|
202
|
-
.
|
|
206
|
+
.awsui_outline_1mabk_16xu4_198:not(#\9)::before {
|
|
203
207
|
content: " ";
|
|
204
208
|
display: block;
|
|
205
209
|
position: absolute;
|
|
@@ -214,39 +218,39 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
214
218
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
215
219
|
}
|
|
216
220
|
|
|
217
|
-
.awsui_styled-circle-
|
|
221
|
+
.awsui_styled-circle-border_1mabk_16xu4_220:not(#\9) {
|
|
218
222
|
stroke: var(--color-border-control-default-8m5t80, #8c8c94);
|
|
219
223
|
fill: var(--color-background-control-default-5ol8rv, #ffffff);
|
|
220
224
|
}
|
|
221
|
-
.awsui_styled-circle-
|
|
225
|
+
.awsui_styled-circle-border_1mabk_16xu4_220.awsui_styled-circle-disabled_1mabk_16xu4_224:not(#\9), .awsui_styled-circle-border_1mabk_16xu4_220.awsui_styled-circle-readonly_1mabk_16xu4_224:not(#\9) {
|
|
222
226
|
fill: var(--color-background-control-disabled-5cbvij, #dedee3);
|
|
223
227
|
stroke: var(--color-background-control-disabled-5cbvij, #dedee3);
|
|
224
228
|
}
|
|
225
229
|
|
|
226
|
-
.awsui_styled-circle-
|
|
230
|
+
.awsui_styled-circle-fill_1mabk_16xu4_229:not(#\9) {
|
|
227
231
|
stroke: var(--color-background-control-checked-hz4k40, #006ce0);
|
|
228
232
|
fill: var(--color-foreground-control-default-p84gz5, #ffffff);
|
|
229
233
|
opacity: 0;
|
|
230
234
|
transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
|
|
231
235
|
}
|
|
232
236
|
@media (prefers-reduced-motion: reduce) {
|
|
233
|
-
.awsui_styled-circle-
|
|
237
|
+
.awsui_styled-circle-fill_1mabk_16xu4_229:not(#\9) {
|
|
234
238
|
animation: none;
|
|
235
239
|
transition: none;
|
|
236
240
|
}
|
|
237
241
|
}
|
|
238
|
-
.awsui-motion-disabled .awsui_styled-circle-
|
|
242
|
+
.awsui-motion-disabled .awsui_styled-circle-fill_1mabk_16xu4_229:not(#\9), .awsui-mode-entering .awsui_styled-circle-fill_1mabk_16xu4_229:not(#\9) {
|
|
239
243
|
animation: none;
|
|
240
244
|
transition: none;
|
|
241
245
|
}
|
|
242
|
-
.awsui_styled-circle-
|
|
246
|
+
.awsui_styled-circle-fill_1mabk_16xu4_229.awsui_styled-circle-checked_1mabk_16xu4_245:not(#\9) {
|
|
243
247
|
opacity: 1;
|
|
244
248
|
}
|
|
245
|
-
.awsui_styled-circle-
|
|
249
|
+
.awsui_styled-circle-fill_1mabk_16xu4_229.awsui_styled-circle-disabled_1mabk_16xu4_224:not(#\9) {
|
|
246
250
|
fill: var(--color-foreground-control-disabled-c64ihu, #ffffff);
|
|
247
251
|
stroke: var(--color-background-control-disabled-5cbvij, #dedee3);
|
|
248
252
|
}
|
|
249
|
-
.awsui_styled-circle-
|
|
253
|
+
.awsui_styled-circle-fill_1mabk_16xu4_229.awsui_styled-circle-readonly_1mabk_16xu4_224:not(#\9) {
|
|
250
254
|
fill: var(--color-foreground-control-read-only-e43ooq, #656871);
|
|
251
255
|
stroke: var(--color-background-control-disabled-5cbvij, #dedee3);
|
|
252
256
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
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
|
-
"radio": "
|
|
7
|
-
"radio--has-description": "awsui_radio--has-
|
|
8
|
-
"radio-control": "awsui_radio-
|
|
9
|
-
"outline": "
|
|
10
|
-
"styled-circle-border": "awsui_styled-circle-
|
|
11
|
-
"styled-circle-disabled": "awsui_styled-circle-
|
|
12
|
-
"styled-circle-readonly": "awsui_styled-circle-
|
|
13
|
-
"styled-circle-fill": "awsui_styled-circle-
|
|
14
|
-
"styled-circle-checked": "awsui_styled-circle-
|
|
5
|
+
"root": "awsui_root_1mabk_16xu4_145",
|
|
6
|
+
"radio": "awsui_radio_1mabk_16xu4_178",
|
|
7
|
+
"radio--has-description": "awsui_radio--has-description_1mabk_16xu4_186",
|
|
8
|
+
"radio-control": "awsui_radio-control_1mabk_16xu4_190",
|
|
9
|
+
"outline": "awsui_outline_1mabk_16xu4_198",
|
|
10
|
+
"styled-circle-border": "awsui_styled-circle-border_1mabk_16xu4_220",
|
|
11
|
+
"styled-circle-disabled": "awsui_styled-circle-disabled_1mabk_16xu4_224",
|
|
12
|
+
"styled-circle-readonly": "awsui_styled-circle-readonly_1mabk_16xu4_224",
|
|
13
|
+
"styled-circle-fill": "awsui_styled-circle-fill_1mabk_16xu4_229",
|
|
14
|
+
"styled-circle-checked": "awsui_styled-circle-checked_1mabk_16xu4_245"
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -83,6 +83,7 @@ function InternalHeaderActions({ i18nStrings, reloadData, lastUpdated }) {
|
|
|
83
83
|
const formattedDate = formatDateLocalized({
|
|
84
84
|
date: lastUpdated.toString(),
|
|
85
85
|
isDateOnly: false,
|
|
86
|
+
isMonthOnly: false,
|
|
86
87
|
});
|
|
87
88
|
return (React.createElement("div", { className: styles['last-updated-caption'] },
|
|
88
89
|
i18nStrings.lastUpdatedText,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-table.js","sourceRoot":"","sources":["../../../../src/s3-resource-selector/s3-modal/basic-table.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,M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,MAAM,EAAC,OAAO,EAAE,CAAC,WAAW,CAAC,eAAe,EAAE,aAAa,CAAC,GAAI,CACxF,CACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,oBAAC,oBAAoB,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,YAAY,EAAC,UAAU,EAAC,QAAQ;QACtE,cAAc,EAAE;QACjB,oBAAC,cAAc,IAAC,QAAQ,EAAC,SAAS,EAAC,SAAS,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,GAAI,CAC1E,CACxB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { useCollection } from '@cloudscape-design/collection-hooks';\nimport { useStableCallback } from '@cloudscape-design/component-toolkit/internal';\n\nimport { InternalButton } from '../../button/internal';\nimport InternalHeader from '../../header/internal';\nimport { ComponentFormatFunction } from '../../i18n/context';\nimport useForwardFocus, { ForwardFocusRef } from '../../internal/hooks/forward-focus';\nimport formatDateLocalized from '../../internal/utils/date-time/format-date-localized';\nimport InternalLiveRegion from '../../live-region/internal';\nimport { PaginationProps } from '../../pagination/interfaces';\nimport InternalPagination from '../../pagination/internal';\nimport InternalSpaceBetween from '../../space-between/internal';\nimport { TableProps } from '../../table/interfaces';\nimport InternalTable from '../../table/internal';\nimport { TextFilterProps } from '../../text-filter/interfaces';\nimport InternalTextFilter from '../../text-filter/internal';\nimport { S3ResourceSelectorProps } from '../interfaces';\nimport { EmptyState } from './empty-state';\n\nimport styles from './styles.css.js';\n\ninterface BasicS3TableStrings<T> {\n labelRefresh?: string;\n labelsPagination?: PaginationProps.Labels;\n header?: string;\n loadingText?: string;\n filteringPlaceholder?: string;\n filteringAriaLabel?: string;\n filteringClearAriaLabel?: string;\n filteringCounterText?: S3ResourceSelectorProps.I18nStrings['filteringCounterText'];\n lastUpdatedText?: string;\n emptyText?: string;\n noMatchTitle?: string;\n noMatchSubtitle?: string;\n clearFilterButtonText?: string;\n selectionLabels?: TableProps.AriaLabels<T>;\n}\n\ninterface BasicS3TableProps<T> {\n // We do not use idiomatic `ref` prop because it does not allow generics.\n // Option 3 from this solution: https://stackoverflow.com/a/58473012/1297743\n forwardFocusRef: React.Ref<ForwardFocusRef>;\n columnDefinitions: ReadonlyArray<TableProps.ColumnDefinition<T>>;\n fetchData: () => Promise<ReadonlyArray<T>>;\n trackBy: TableProps.TrackBy<T>;\n i18nStrings: BasicS3TableStrings<T>;\n isVisualRefresh?: boolean;\n visibleColumns: ReadonlyArray<string>;\n isItemDisabled: TableProps.IsItemDisabled<T> | undefined;\n onSelect: (item: T | undefined) => void;\n}\n\nexport function getSharedI18Strings(\n i18n: ComponentFormatFunction<'s3-resource-selector'>,\n i18nStrings: S3ResourceSelectorProps.I18nStrings | undefined\n): BasicS3TableStrings<unknown> {\n return {\n filteringCounterText: i18n(\n 'i18nStrings.filteringCounterText',\n i18nStrings?.filteringCounterText,\n format => count => format({ count })\n ),\n labelRefresh: i18n('i18nStrings.labelRefresh', i18nStrings?.labelRefresh),\n labelsPagination: i18nStrings?.labelsPagination,\n noMatchTitle: i18n('i18nStrings.filteringNoMatches', i18nStrings?.filteringNoMatches),\n noMatchSubtitle: i18n('i18nStrings.filteringCantFindMatch', i18nStrings?.filteringCantFindMatch),\n clearFilterButtonText: i18n('i18nStrings.clearFilterButtonText', i18nStrings?.clearFilterButtonText),\n filteringClearAriaLabel: i18nStrings?.labelClearFilter,\n lastUpdatedText: i18n('i18nStrings.modalLastUpdatedText', i18nStrings?.modalLastUpdatedText),\n };\n}\n\nexport function BasicS3Table<T>({\n forwardFocusRef,\n columnDefinitions,\n fetchData,\n trackBy,\n i18nStrings = {},\n isVisualRefresh,\n visibleColumns,\n isItemDisabled,\n onSelect,\n}: BasicS3TableProps<T>) {\n const [loading, setLoading] = useState(false);\n const [allItems, setAllItems] = useState<ReadonlyArray<T>>([]);\n const [lastUpdated, setLastUpdated] = useState<Date>();\n const textFilterRef = useRef<TextFilterProps.Ref>(null);\n const onSelectLatest = useStableCallback(onSelect);\n\n function loadData() {\n setLoading(true);\n return fetchData()\n .then(items => {\n setAllItems(items);\n setLoading(false);\n })\n .catch(() => {\n // error handling should happen on the customer side, outside of this component\n setLoading(false);\n });\n }\n\n async function reloadData() {\n await loadData();\n setLastUpdated(new Date());\n }\n\n useEffect(() => {\n loadData();\n // Data loading is only happening on initial render, or via refresh button\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useForwardFocus(forwardFocusRef, textFilterRef);\n\n const { items, filteredItemsCount, collectionProps, filterProps, paginationProps, actions } = useCollection(\n allItems,\n {\n selection: { trackBy },\n filtering: {\n empty: i18nStrings.emptyText,\n noMatch: (\n <EmptyState\n title={i18nStrings.noMatchTitle}\n subtitle={i18nStrings.noMatchSubtitle}\n action={\n <InternalButton onClick={() => actions.setFiltering('')}>\n {i18nStrings.clearFilterButtonText}\n </InternalButton>\n }\n />\n ),\n },\n pagination: {},\n sorting: {},\n }\n );\n const selectedItem = collectionProps.selectedItems?.[0];\n\n // selectedItem can change internally inside the hook after pagination or filtering\n // useEffect will capture all possible changes\n useEffect(() => {\n onSelectLatest(selectedItem);\n }, [selectedItem, onSelectLatest]);\n\n return (\n <InternalTable<T>\n variant={isVisualRefresh ? 'borderless' : 'container'}\n {...collectionProps}\n header={\n <InternalHeader\n variant={isVisualRefresh ? 'h3' : 'h2'}\n headingTagOverride={'h3'}\n actions={\n <InternalHeaderActions<T> reloadData={reloadData} i18nStrings={i18nStrings} lastUpdated={lastUpdated} />\n }\n counter={selectedItem ? `(1/${allItems.length})` : `(${allItems.length})`}\n >\n {i18nStrings.header}\n </InternalHeader>\n }\n trackBy={trackBy}\n filter={\n <InternalTextFilter\n {...filterProps}\n ref={textFilterRef}\n filteringAriaLabel={i18nStrings.filteringAriaLabel}\n filteringClearAriaLabel={i18nStrings.filteringClearAriaLabel}\n filteringPlaceholder={i18nStrings.filteringPlaceholder}\n countText={i18nStrings.filteringCounterText ? i18nStrings.filteringCounterText(filteredItemsCount!) : ''}\n />\n }\n pagination={<InternalPagination {...paginationProps} ariaLabels={i18nStrings.labelsPagination} />}\n selectionType=\"single\"\n ariaLabels={i18nStrings.selectionLabels}\n loading={loading}\n loadingText={i18nStrings.loadingText}\n items={items}\n visibleColumns={visibleColumns}\n isItemDisabled={isItemDisabled}\n columnDefinitions={columnDefinitions}\n enableKeyboardNavigation={true}\n />\n );\n}\n\ninterface InternalHeaderActionsProps<T> {\n reloadData: () => void;\n i18nStrings: BasicS3TableProps<T>['i18nStrings'];\n lastUpdated: Date | undefined;\n}\n\nfunction InternalHeaderActions<T>({ i18nStrings, reloadData, lastUpdated }: InternalHeaderActionsProps<T>) {\n function getLastUpdated() {\n if (!lastUpdated || !i18nStrings.lastUpdatedText) {\n return null;\n }\n\n const formattedDate = formatDateLocalized({\n date: lastUpdated.toString(),\n isDateOnly: false,\n });\n\n return (\n <div className={styles['last-updated-caption']}>\n {i18nStrings.lastUpdatedText}\n <br />\n {formattedDate}\n <InternalLiveRegion tagName=\"span\" sources={[i18nStrings.lastUpdatedText, formattedDate]} />\n </div>\n );\n }\n\n return (\n <InternalSpaceBetween size=\"s\" direction=\"horizontal\" alignItems=\"center\">\n {getLastUpdated()}\n <InternalButton iconName=\"refresh\" ariaLabel={i18nStrings.labelRefresh} onClick={reloadData} />\n </InternalSpaceBetween>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"basic-table.js","sourceRoot":"","sources":["../../../../src/s3-resource-selector/s3-modal/basic-table.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO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,EAAC,OAAO,EAAE,CAAC,WAAW,CAAC,eAAe,EAAE,aAAa,CAAC,GAAI,CACxF,CACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,oBAAC,oBAAoB,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,YAAY,EAAC,UAAU,EAAC,QAAQ;QACtE,cAAc,EAAE;QACjB,oBAAC,cAAc,IAAC,QAAQ,EAAC,SAAS,EAAC,SAAS,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,GAAI,CAC1E,CACxB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { useCollection } from '@cloudscape-design/collection-hooks';\nimport { useStableCallback } from '@cloudscape-design/component-toolkit/internal';\n\nimport { InternalButton } from '../../button/internal';\nimport InternalHeader from '../../header/internal';\nimport { ComponentFormatFunction } from '../../i18n/context';\nimport useForwardFocus, { ForwardFocusRef } from '../../internal/hooks/forward-focus';\nimport formatDateLocalized from '../../internal/utils/date-time/format-date-localized';\nimport InternalLiveRegion from '../../live-region/internal';\nimport { PaginationProps } from '../../pagination/interfaces';\nimport InternalPagination from '../../pagination/internal';\nimport InternalSpaceBetween from '../../space-between/internal';\nimport { TableProps } from '../../table/interfaces';\nimport InternalTable from '../../table/internal';\nimport { TextFilterProps } from '../../text-filter/interfaces';\nimport InternalTextFilter from '../../text-filter/internal';\nimport { S3ResourceSelectorProps } from '../interfaces';\nimport { EmptyState } from './empty-state';\n\nimport styles from './styles.css.js';\n\ninterface BasicS3TableStrings<T> {\n labelRefresh?: string;\n labelsPagination?: PaginationProps.Labels;\n header?: string;\n loadingText?: string;\n filteringPlaceholder?: string;\n filteringAriaLabel?: string;\n filteringClearAriaLabel?: string;\n filteringCounterText?: S3ResourceSelectorProps.I18nStrings['filteringCounterText'];\n lastUpdatedText?: string;\n emptyText?: string;\n noMatchTitle?: string;\n noMatchSubtitle?: string;\n clearFilterButtonText?: string;\n selectionLabels?: TableProps.AriaLabels<T>;\n}\n\ninterface BasicS3TableProps<T> {\n // We do not use idiomatic `ref` prop because it does not allow generics.\n // Option 3 from this solution: https://stackoverflow.com/a/58473012/1297743\n forwardFocusRef: React.Ref<ForwardFocusRef>;\n columnDefinitions: ReadonlyArray<TableProps.ColumnDefinition<T>>;\n fetchData: () => Promise<ReadonlyArray<T>>;\n trackBy: TableProps.TrackBy<T>;\n i18nStrings: BasicS3TableStrings<T>;\n isVisualRefresh?: boolean;\n visibleColumns: ReadonlyArray<string>;\n isItemDisabled: TableProps.IsItemDisabled<T> | undefined;\n onSelect: (item: T | undefined) => void;\n}\n\nexport function getSharedI18Strings(\n i18n: ComponentFormatFunction<'s3-resource-selector'>,\n i18nStrings: S3ResourceSelectorProps.I18nStrings | undefined\n): BasicS3TableStrings<unknown> {\n return {\n filteringCounterText: i18n(\n 'i18nStrings.filteringCounterText',\n i18nStrings?.filteringCounterText,\n format => count => format({ count })\n ),\n labelRefresh: i18n('i18nStrings.labelRefresh', i18nStrings?.labelRefresh),\n labelsPagination: i18nStrings?.labelsPagination,\n noMatchTitle: i18n('i18nStrings.filteringNoMatches', i18nStrings?.filteringNoMatches),\n noMatchSubtitle: i18n('i18nStrings.filteringCantFindMatch', i18nStrings?.filteringCantFindMatch),\n clearFilterButtonText: i18n('i18nStrings.clearFilterButtonText', i18nStrings?.clearFilterButtonText),\n filteringClearAriaLabel: i18nStrings?.labelClearFilter,\n lastUpdatedText: i18n('i18nStrings.modalLastUpdatedText', i18nStrings?.modalLastUpdatedText),\n };\n}\n\nexport function BasicS3Table<T>({\n forwardFocusRef,\n columnDefinitions,\n fetchData,\n trackBy,\n i18nStrings = {},\n isVisualRefresh,\n visibleColumns,\n isItemDisabled,\n onSelect,\n}: BasicS3TableProps<T>) {\n const [loading, setLoading] = useState(false);\n const [allItems, setAllItems] = useState<ReadonlyArray<T>>([]);\n const [lastUpdated, setLastUpdated] = useState<Date>();\n const textFilterRef = useRef<TextFilterProps.Ref>(null);\n const onSelectLatest = useStableCallback(onSelect);\n\n function loadData() {\n setLoading(true);\n return fetchData()\n .then(items => {\n setAllItems(items);\n setLoading(false);\n })\n .catch(() => {\n // error handling should happen on the customer side, outside of this component\n setLoading(false);\n });\n }\n\n async function reloadData() {\n await loadData();\n setLastUpdated(new Date());\n }\n\n useEffect(() => {\n loadData();\n // Data loading is only happening on initial render, or via refresh button\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useForwardFocus(forwardFocusRef, textFilterRef);\n\n const { items, filteredItemsCount, collectionProps, filterProps, paginationProps, actions } = useCollection(\n allItems,\n {\n selection: { trackBy },\n filtering: {\n empty: i18nStrings.emptyText,\n noMatch: (\n <EmptyState\n title={i18nStrings.noMatchTitle}\n subtitle={i18nStrings.noMatchSubtitle}\n action={\n <InternalButton onClick={() => actions.setFiltering('')}>\n {i18nStrings.clearFilterButtonText}\n </InternalButton>\n }\n />\n ),\n },\n pagination: {},\n sorting: {},\n }\n );\n const selectedItem = collectionProps.selectedItems?.[0];\n\n // selectedItem can change internally inside the hook after pagination or filtering\n // useEffect will capture all possible changes\n useEffect(() => {\n onSelectLatest(selectedItem);\n }, [selectedItem, onSelectLatest]);\n\n return (\n <InternalTable<T>\n variant={isVisualRefresh ? 'borderless' : 'container'}\n {...collectionProps}\n header={\n <InternalHeader\n variant={isVisualRefresh ? 'h3' : 'h2'}\n headingTagOverride={'h3'}\n actions={\n <InternalHeaderActions<T> reloadData={reloadData} i18nStrings={i18nStrings} lastUpdated={lastUpdated} />\n }\n counter={selectedItem ? `(1/${allItems.length})` : `(${allItems.length})`}\n >\n {i18nStrings.header}\n </InternalHeader>\n }\n trackBy={trackBy}\n filter={\n <InternalTextFilter\n {...filterProps}\n ref={textFilterRef}\n filteringAriaLabel={i18nStrings.filteringAriaLabel}\n filteringClearAriaLabel={i18nStrings.filteringClearAriaLabel}\n filteringPlaceholder={i18nStrings.filteringPlaceholder}\n countText={i18nStrings.filteringCounterText ? i18nStrings.filteringCounterText(filteredItemsCount!) : ''}\n />\n }\n pagination={<InternalPagination {...paginationProps} ariaLabels={i18nStrings.labelsPagination} />}\n selectionType=\"single\"\n ariaLabels={i18nStrings.selectionLabels}\n loading={loading}\n loadingText={i18nStrings.loadingText}\n items={items}\n visibleColumns={visibleColumns}\n isItemDisabled={isItemDisabled}\n columnDefinitions={columnDefinitions}\n enableKeyboardNavigation={true}\n />\n );\n}\n\ninterface InternalHeaderActionsProps<T> {\n reloadData: () => void;\n i18nStrings: BasicS3TableProps<T>['i18nStrings'];\n lastUpdated: Date | undefined;\n}\n\nfunction InternalHeaderActions<T>({ i18nStrings, reloadData, lastUpdated }: InternalHeaderActionsProps<T>) {\n function getLastUpdated() {\n if (!lastUpdated || !i18nStrings.lastUpdatedText) {\n return null;\n }\n\n const formattedDate = formatDateLocalized({\n date: lastUpdated.toString(),\n isDateOnly: false,\n isMonthOnly: false,\n });\n\n return (\n <div className={styles['last-updated-caption']}>\n {i18nStrings.lastUpdatedText}\n <br />\n {formattedDate}\n <InternalLiveRegion tagName=\"span\" sources={[i18nStrings.lastUpdatedText, formattedDate]} />\n </div>\n );\n }\n\n return (\n <InternalSpaceBetween size=\"s\" direction=\"horizontal\" alignItems=\"center\">\n {getLastUpdated()}\n <InternalButton iconName=\"refresh\" ariaLabel={i18nStrings.labelRefresh} onClick={reloadData} />\n </InternalSpaceBetween>\n );\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"modal-actions": "awsui_modal-
|
|
5
|
-
"submit-button": "awsui_submit-
|
|
6
|
-
"last-updated-caption": "awsui_last-updated-
|
|
4
|
+
"modal-actions": "awsui_modal-actions_12hyz_1yyk9_181",
|
|
5
|
+
"submit-button": "awsui_submit-button_12hyz_1yyk9_185",
|
|
6
|
+
"last-updated-caption": "awsui_last-updated-caption_12hyz_1yyk9_189"
|
|
7
7
|
};
|
|
8
8
|
|
|
@@ -134,12 +134,16 @@
|
|
|
134
134
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
135
135
|
SPDX-License-Identifier: Apache-2.0
|
|
136
136
|
*/
|
|
137
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
138
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
139
|
+
/*
|
|
140
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
141
|
+
SPDX-License-Identifier: Apache-2.0
|
|
142
|
+
*/
|
|
137
143
|
/*
|
|
138
144
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
139
145
|
SPDX-License-Identifier: Apache-2.0
|
|
140
146
|
*/
|
|
141
|
-
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
142
|
-
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
143
147
|
/*
|
|
144
148
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
145
149
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -174,15 +178,15 @@
|
|
|
174
178
|
*/
|
|
175
179
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
176
180
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
177
|
-
.awsui_modal-
|
|
181
|
+
.awsui_modal-actions_12hyz_1yyk9_181:not(#\9) {
|
|
178
182
|
justify-content: flex-end;
|
|
179
183
|
}
|
|
180
184
|
|
|
181
|
-
.awsui_submit-
|
|
185
|
+
.awsui_submit-button_12hyz_1yyk9_185:not(#\9) {
|
|
182
186
|
/* used in test-utils */
|
|
183
187
|
}
|
|
184
188
|
|
|
185
|
-
.awsui_last-updated-
|
|
189
|
+
.awsui_last-updated-caption_12hyz_1yyk9_189:not(#\9) {
|
|
186
190
|
font-size: var(--font-size-body-s-asqx2i, 12px);
|
|
187
191
|
line-height: var(--line-height-body-s-7zv1j5, 16px);
|
|
188
192
|
letter-spacing: var(--letter-spacing-body-s-z9jkwp, 0.005em);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"modal-actions": "awsui_modal-
|
|
6
|
-
"submit-button": "awsui_submit-
|
|
7
|
-
"last-updated-caption": "awsui_last-updated-
|
|
5
|
+
"modal-actions": "awsui_modal-actions_12hyz_1yyk9_181",
|
|
6
|
+
"submit-button": "awsui_submit-button_12hyz_1yyk9_185",
|
|
7
|
+
"last-updated-caption": "awsui_last-updated-caption_12hyz_1yyk9_189"
|
|
8
8
|
};
|
|
9
9
|
|