@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
|
-
.awsui_selectable-
|
|
145
|
+
.awsui_selectable-item_15o6u_ieaqn_145:not(#\9) {
|
|
142
146
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
143
147
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
144
148
|
color: var(--color-text-body-default-7v1jfn, #0f141a);
|
|
@@ -160,17 +164,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
160
164
|
padding-block: calc(var(--space-xxs-p8yyaw, 4px) + var(--border-item-width-yel47s, 2px) - var(--border-divider-list-width-27y3k5, 1px));
|
|
161
165
|
padding-inline: calc(var(--space-field-horizontal-gg19kw, 12px) + var(--border-item-width-yel47s, 2px));
|
|
162
166
|
}
|
|
163
|
-
.awsui_selectable-
|
|
167
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_pad-bottom_15o6u_ieaqn_167:not(#\9) {
|
|
164
168
|
padding-block-end: calc(calc(var(--space-xxs-p8yyaw, 4px) + var(--border-item-width-yel47s, 2px) - var(--border-divider-list-width-27y3k5, 1px)) + var(--space-xxxs-zbmxqb, 2px));
|
|
165
169
|
border-block-end-color: transparent;
|
|
166
170
|
}
|
|
167
|
-
.awsui_selectable-
|
|
171
|
+
.awsui_selectable-item_15o6u_ieaqn_145:not(#\9):not(:first-child) {
|
|
168
172
|
margin-block-start: calc(-1 * var(--border-item-width-yel47s, 2px));
|
|
169
173
|
}
|
|
170
|
-
.awsui_selectable-
|
|
174
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_has-background_15o6u_ieaqn_174:not(#\9) {
|
|
171
175
|
background-color: var(--color-background-dropdown-item-hover-zhzc84, #f3f3f7);
|
|
172
176
|
}
|
|
173
|
-
.awsui_selectable-
|
|
177
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_highlighted_15o6u_ieaqn_177:not(#\9), .awsui_selectable-item_15o6u_ieaqn_145.awsui_selected_15o6u_ieaqn_177:not(#\9) {
|
|
174
178
|
color: var(--color-text-dropdown-item-highlighted-rnfxxj, #0f141a);
|
|
175
179
|
border-width: var(--border-item-width-yel47s, 2px);
|
|
176
180
|
border-start-start-radius: var(--border-radius-item-05df9h, 8px);
|
|
@@ -180,87 +184,87 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
180
184
|
padding-block: var(--space-xxs-p8yyaw, 4px);
|
|
181
185
|
padding-inline: var(--space-field-horizontal-gg19kw, 12px);
|
|
182
186
|
}
|
|
183
|
-
.awsui_selectable-
|
|
187
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_highlighted_15o6u_ieaqn_177.awsui_pad-bottom_15o6u_ieaqn_167:not(#\9), .awsui_selectable-item_15o6u_ieaqn_145.awsui_selected_15o6u_ieaqn_177.awsui_pad-bottom_15o6u_ieaqn_167:not(#\9) {
|
|
184
188
|
padding-block-end: calc(var(--space-xxs-p8yyaw, 4px) + var(--space-xxxs-zbmxqb, 2px));
|
|
185
189
|
}
|
|
186
|
-
.awsui_selectable-
|
|
190
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_highlighted_15o6u_ieaqn_177:not(#\9) {
|
|
187
191
|
z-index: 3;
|
|
188
192
|
background-color: var(--color-background-dropdown-item-hover-zhzc84, #f3f3f7);
|
|
189
193
|
border-color: var(--color-border-dropdown-item-hover-4p0gsi, #8c8c94);
|
|
190
194
|
}
|
|
191
|
-
.awsui_selectable-
|
|
195
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_highlighted_15o6u_ieaqn_177.awsui_disabled_15o6u_ieaqn_195:not(#\9) {
|
|
192
196
|
color: var(--color-text-dropdown-item-dimmed-7c5xo0, #b4b4bb);
|
|
193
197
|
border-color: var(--color-border-dropdown-item-dimmed-hover-6qayyi, #8c8c94);
|
|
194
198
|
background-color: var(--color-background-dropdown-item-dimmed-dlm6wk, transparent);
|
|
195
199
|
}
|
|
196
|
-
.awsui_selectable-
|
|
200
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_selected_15o6u_ieaqn_177:not(#\9) {
|
|
197
201
|
z-index: 2;
|
|
198
202
|
background-color: var(--color-background-dropdown-item-selected-idfej7, #f0fbff);
|
|
199
203
|
border-color: var(--color-border-dropdown-item-selected-rtthnt, #006ce0);
|
|
200
204
|
}
|
|
201
|
-
.awsui_selectable-
|
|
205
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_selected_15o6u_ieaqn_177.awsui_next-item-selected_15o6u_ieaqn_205:not(#\9) {
|
|
202
206
|
border-end-start-radius: 0;
|
|
203
207
|
border-end-end-radius: 0;
|
|
204
208
|
}
|
|
205
|
-
.awsui_selectable-
|
|
209
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_selected_15o6u_ieaqn_177.awsui_highlighted_15o6u_ieaqn_177:not(#\9) {
|
|
206
210
|
border-color: var(--color-border-dropdown-item-hover-4p0gsi, #8c8c94);
|
|
207
211
|
z-index: 3;
|
|
208
212
|
}
|
|
209
|
-
.awsui_selectable-
|
|
213
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_selected_15o6u_ieaqn_177 + .awsui_selectable-item_15o6u_ieaqn_145.awsui_selected_15o6u_ieaqn_177:not(#\9) {
|
|
210
214
|
border-start-start-radius: 0;
|
|
211
215
|
border-start-end-radius: 0;
|
|
212
216
|
}
|
|
213
|
-
.awsui_selectable-
|
|
217
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_highlighted_15o6u_ieaqn_177.awsui_is-keyboard_15o6u_ieaqn_217:not(#\9) {
|
|
214
218
|
border-color: var(--color-border-dropdown-item-focused-5afjvu, #424650);
|
|
215
219
|
box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
216
220
|
}
|
|
217
|
-
.awsui_selectable-
|
|
221
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_parent_15o6u_ieaqn_221:not(#\9) {
|
|
218
222
|
font-weight: bold;
|
|
219
223
|
color: var(--color-text-dropdown-group-label-iy2p4t, #424650);
|
|
220
224
|
}
|
|
221
|
-
.awsui_selectable-
|
|
225
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_parent_15o6u_ieaqn_221:not(#\9):not(.awsui_interactiveGroups_15o6u_ieaqn_225) {
|
|
222
226
|
border-block-start-color: var(--color-border-dropdown-group-2xoluv, #c6c6cd);
|
|
223
227
|
padding-block: var(--space-xs-zb16t3, 8px);
|
|
224
228
|
padding-inline: var(--space-xs-zb16t3, 8px);
|
|
225
229
|
}
|
|
226
|
-
.awsui_selectable-
|
|
230
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_parent_15o6u_ieaqn_221.awsui_interactiveGroups_15o6u_ieaqn_225:not(#\9) {
|
|
227
231
|
padding-block: calc(var(--space-xs-zb16t3, 8px) + var(--border-item-width-yel47s, 2px) - var(--border-divider-list-width-27y3k5, 1px));
|
|
228
232
|
padding-inline: calc(var(--space-field-horizontal-gg19kw, 12px) + var(--border-item-width-yel47s, 2px));
|
|
229
233
|
}
|
|
230
|
-
.awsui_selectable-
|
|
234
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_parent_15o6u_ieaqn_221.awsui_interactiveGroups_15o6u_ieaqn_225.awsui_highlighted_15o6u_ieaqn_177:not(#\9) {
|
|
231
235
|
color: var(--color-text-dropdown-item-highlighted-rnfxxj, #0f141a);
|
|
232
236
|
}
|
|
233
|
-
.awsui_selectable-
|
|
237
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_parent_15o6u_ieaqn_221.awsui_interactiveGroups_15o6u_ieaqn_225.awsui_highlighted_15o6u_ieaqn_177:not(#\9), .awsui_selectable-item_15o6u_ieaqn_145.awsui_parent_15o6u_ieaqn_221.awsui_interactiveGroups_15o6u_ieaqn_225.awsui_selected_15o6u_ieaqn_177:not(#\9) {
|
|
234
238
|
padding-block: var(--space-xs-zb16t3, 8px);
|
|
235
239
|
padding-inline: var(--space-field-horizontal-gg19kw, 12px);
|
|
236
240
|
}
|
|
237
|
-
.awsui_selectable-
|
|
241
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_child_15o6u_ieaqn_241:not(#\9) {
|
|
238
242
|
padding-inline-start: calc(var(--space-xxl-cu2m1r, 32px) + var(--border-item-width-yel47s, 2px));
|
|
239
243
|
}
|
|
240
|
-
.awsui_selectable-
|
|
244
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_child_15o6u_ieaqn_241.awsui_highlighted_15o6u_ieaqn_177:not(#\9), .awsui_selectable-item_15o6u_ieaqn_145.awsui_child_15o6u_ieaqn_241.awsui_selected_15o6u_ieaqn_177:not(#\9) {
|
|
241
245
|
padding-inline-start: var(--space-xxl-cu2m1r, 32px);
|
|
242
246
|
}
|
|
243
|
-
.awsui_selectable-
|
|
247
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_disabled_15o6u_ieaqn_195:not(#\9) {
|
|
244
248
|
color: var(--color-text-dropdown-item-disabled-7fg5u8, #b4b4bb);
|
|
245
249
|
}
|
|
246
|
-
.awsui_selectable-
|
|
250
|
+
.awsui_selectable-item_15o6u_ieaqn_145:not(#\9):not(.awsui_disabled_15o6u_ieaqn_195):not(.awsui_parent_15o6u_ieaqn_221) {
|
|
247
251
|
cursor: pointer;
|
|
248
252
|
}
|
|
249
|
-
.awsui_selectable-
|
|
253
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_interactiveGroups_15o6u_ieaqn_225:not(#\9):not(.awsui_disabled_15o6u_ieaqn_195) {
|
|
250
254
|
cursor: pointer;
|
|
251
255
|
}
|
|
252
|
-
.awsui_selectable-
|
|
256
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_virtual_15o6u_ieaqn_256:not(#\9) {
|
|
253
257
|
position: absolute;
|
|
254
258
|
inset-block-start: var(--border-dropdown-virtual-offset-width-kekgc0, 2px);
|
|
255
259
|
inset-inline-start: 0;
|
|
256
260
|
inline-size: 100%;
|
|
257
261
|
box-sizing: border-box;
|
|
258
262
|
}
|
|
259
|
-
.awsui_selectable-
|
|
263
|
+
.awsui_selectable-item_15o6u_ieaqn_145.awsui_virtual_15o6u_ieaqn_256:not(#\9):first-of-type:not(.awsui_selected_15o6u_ieaqn_177, .awsui_highlighted_15o6u_ieaqn_177) {
|
|
260
264
|
border-block-start-color: var(--color-border-dropdown-item-top-ky64jq, transparent);
|
|
261
265
|
}
|
|
262
266
|
|
|
263
|
-
.awsui_measure-
|
|
267
|
+
.awsui_measure-strut_15o6u_ieaqn_267:not(#\9) {
|
|
264
268
|
position: absolute;
|
|
265
269
|
pointer-events: none;
|
|
266
270
|
block-size: 100%;
|
|
@@ -269,16 +273,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
269
273
|
inset-inline-start: 0;
|
|
270
274
|
padding-block-start: var(--border-divider-list-width-27y3k5, 1px);
|
|
271
275
|
}
|
|
272
|
-
.awsui_measure-strut-
|
|
276
|
+
.awsui_measure-strut-first_15o6u_ieaqn_276:not(#\9) {
|
|
273
277
|
padding-block-end: var(--border-divider-list-width-27y3k5, 1px);
|
|
274
278
|
}
|
|
275
279
|
|
|
276
|
-
.awsui_screenreader-
|
|
280
|
+
.awsui_screenreader-content_15o6u_ieaqn_280:not(#\9) {
|
|
277
281
|
position: absolute !important;
|
|
278
282
|
inset-block-start: -9999px !important;
|
|
279
283
|
inset-inline-start: -9999px !important;
|
|
280
284
|
}
|
|
281
285
|
|
|
282
|
-
.awsui_option-
|
|
286
|
+
.awsui_option-content_15o6u_ieaqn_286:not(#\9) {
|
|
283
287
|
/* used in test-utils */
|
|
284
288
|
}
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"selectable-item": "awsui_selectable-
|
|
6
|
-
"pad-bottom": "awsui_pad-
|
|
7
|
-
"has-background": "awsui_has-
|
|
8
|
-
"highlighted": "
|
|
9
|
-
"selected": "
|
|
10
|
-
"disabled": "
|
|
11
|
-
"next-item-selected": "awsui_next-item-
|
|
12
|
-
"is-keyboard": "awsui_is-
|
|
13
|
-
"parent": "
|
|
14
|
-
"interactiveGroups": "
|
|
15
|
-
"child": "
|
|
16
|
-
"virtual": "
|
|
17
|
-
"measure-strut": "awsui_measure-
|
|
18
|
-
"measure-strut-first": "awsui_measure-strut-
|
|
19
|
-
"screenreader-content": "awsui_screenreader-
|
|
20
|
-
"option-content": "awsui_option-
|
|
5
|
+
"selectable-item": "awsui_selectable-item_15o6u_ieaqn_145",
|
|
6
|
+
"pad-bottom": "awsui_pad-bottom_15o6u_ieaqn_167",
|
|
7
|
+
"has-background": "awsui_has-background_15o6u_ieaqn_174",
|
|
8
|
+
"highlighted": "awsui_highlighted_15o6u_ieaqn_177",
|
|
9
|
+
"selected": "awsui_selected_15o6u_ieaqn_177",
|
|
10
|
+
"disabled": "awsui_disabled_15o6u_ieaqn_195",
|
|
11
|
+
"next-item-selected": "awsui_next-item-selected_15o6u_ieaqn_205",
|
|
12
|
+
"is-keyboard": "awsui_is-keyboard_15o6u_ieaqn_217",
|
|
13
|
+
"parent": "awsui_parent_15o6u_ieaqn_221",
|
|
14
|
+
"interactiveGroups": "awsui_interactiveGroups_15o6u_ieaqn_225",
|
|
15
|
+
"child": "awsui_child_15o6u_ieaqn_241",
|
|
16
|
+
"virtual": "awsui_virtual_15o6u_ieaqn_256",
|
|
17
|
+
"measure-strut": "awsui_measure-strut_15o6u_ieaqn_267",
|
|
18
|
+
"measure-strut-first": "awsui_measure-strut-first_15o6u_ieaqn_276",
|
|
19
|
+
"screenreader-content": "awsui_screenreader-content_15o6u_ieaqn_280",
|
|
20
|
+
"option-content": "awsui_option-content_15o6u_ieaqn_286"
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"horizontal": "
|
|
6
|
-
"vertical": "
|
|
7
|
-
"list": "
|
|
8
|
-
"grid": "
|
|
9
|
-
"list-item": "awsui_list-
|
|
10
|
-
"toggle-container-inline": "awsui_toggle-container-
|
|
11
|
-
"toggle": "
|
|
12
|
-
"description": "
|
|
13
|
-
"separator": "
|
|
4
|
+
"root": "awsui_root_gfwv3_31y6j_193",
|
|
5
|
+
"horizontal": "awsui_horizontal_gfwv3_31y6j_196",
|
|
6
|
+
"vertical": "awsui_vertical_gfwv3_31y6j_202",
|
|
7
|
+
"list": "awsui_list_gfwv3_31y6j_207",
|
|
8
|
+
"grid": "awsui_grid_gfwv3_31y6j_226",
|
|
9
|
+
"list-item": "awsui_list-item_gfwv3_31y6j_238",
|
|
10
|
+
"toggle-container-inline": "awsui_toggle-container-inline_gfwv3_31y6j_245",
|
|
11
|
+
"toggle": "awsui_toggle_gfwv3_31y6j_245",
|
|
12
|
+
"description": "awsui_description_gfwv3_31y6j_337",
|
|
13
|
+
"separator": "awsui_separator_gfwv3_31y6j_341"
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -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
|
|
@@ -186,21 +190,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
186
190
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
187
191
|
SPDX-License-Identifier: Apache-2.0
|
|
188
192
|
*/
|
|
189
|
-
.
|
|
193
|
+
.awsui_root_gfwv3_31y6j_193:not(#\9) {
|
|
190
194
|
gap: var(--space-scaled-xs-26e2du, 8px);
|
|
191
195
|
}
|
|
192
|
-
.
|
|
196
|
+
.awsui_root_gfwv3_31y6j_193.awsui_horizontal_gfwv3_31y6j_196:not(#\9) {
|
|
193
197
|
display: flex;
|
|
194
198
|
gap: var(--space-xs-zb16t3, 8px);
|
|
195
199
|
flex-direction: row;
|
|
196
200
|
flex-wrap: wrap;
|
|
197
201
|
}
|
|
198
|
-
.
|
|
202
|
+
.awsui_root_gfwv3_31y6j_193.awsui_vertical_gfwv3_31y6j_202:not(#\9) {
|
|
199
203
|
display: flex;
|
|
200
204
|
flex-direction: column;
|
|
201
205
|
}
|
|
202
206
|
|
|
203
|
-
.
|
|
207
|
+
.awsui_list_gfwv3_31y6j_207:not(#\9) {
|
|
204
208
|
display: contents;
|
|
205
209
|
list-style: none;
|
|
206
210
|
padding-block: 0;
|
|
@@ -208,43 +212,43 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
208
212
|
margin-block: 0;
|
|
209
213
|
margin-inline: 0;
|
|
210
214
|
}
|
|
211
|
-
.
|
|
215
|
+
.awsui_list_gfwv3_31y6j_207.awsui_horizontal_gfwv3_31y6j_196:not(#\9), .awsui_list_gfwv3_31y6j_207.awsui_vertical_gfwv3_31y6j_202:not(#\9) {
|
|
212
216
|
display: flex;
|
|
213
217
|
gap: var(--space-xs-zb16t3, 8px);
|
|
214
218
|
}
|
|
215
|
-
.
|
|
219
|
+
.awsui_list_gfwv3_31y6j_207.awsui_horizontal_gfwv3_31y6j_196:not(#\9) {
|
|
216
220
|
flex-direction: row;
|
|
217
221
|
flex-wrap: wrap;
|
|
218
222
|
}
|
|
219
|
-
.
|
|
223
|
+
.awsui_list_gfwv3_31y6j_207.awsui_vertical_gfwv3_31y6j_202:not(#\9) {
|
|
220
224
|
flex-direction: column;
|
|
221
225
|
}
|
|
222
|
-
.
|
|
226
|
+
.awsui_list_gfwv3_31y6j_207.awsui_grid_gfwv3_31y6j_226:not(#\9) {
|
|
223
227
|
display: grid;
|
|
224
228
|
gap: var(--space-xs-zb16t3, 8px);
|
|
225
229
|
grid-template-columns: repeat(auto-fill, 230px);
|
|
226
230
|
}
|
|
227
231
|
@media (max-width: 688px) {
|
|
228
|
-
.
|
|
232
|
+
.awsui_list_gfwv3_31y6j_207.awsui_grid_gfwv3_31y6j_226:not(#\9) {
|
|
229
233
|
display: flex;
|
|
230
234
|
flex-direction: column;
|
|
231
235
|
}
|
|
232
236
|
}
|
|
233
237
|
|
|
234
|
-
.awsui_list-
|
|
238
|
+
.awsui_list-item_gfwv3_31y6j_238:not(#\9) {
|
|
235
239
|
padding-block: 0;
|
|
236
240
|
padding-inline: 0;
|
|
237
241
|
margin-block: 0;
|
|
238
242
|
margin-inline: 0;
|
|
239
243
|
}
|
|
240
244
|
|
|
241
|
-
.awsui_toggle-container-
|
|
245
|
+
.awsui_toggle-container-inline_gfwv3_31y6j_245:not(#\9) {
|
|
242
246
|
padding-inline-start: var(--space-xs-zb16t3, 8px);
|
|
243
247
|
display: flex;
|
|
244
248
|
align-items: center;
|
|
245
249
|
}
|
|
246
250
|
|
|
247
|
-
.
|
|
251
|
+
.awsui_toggle_gfwv3_31y6j_245:not(#\9) {
|
|
248
252
|
border-collapse: separate;
|
|
249
253
|
border-spacing: 0;
|
|
250
254
|
box-sizing: border-box;
|
|
@@ -296,34 +300,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
296
300
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
297
301
|
}
|
|
298
302
|
@media (prefers-reduced-motion: reduce) {
|
|
299
|
-
.
|
|
303
|
+
.awsui_toggle_gfwv3_31y6j_245:not(#\9) {
|
|
300
304
|
animation: none;
|
|
301
305
|
transition: none;
|
|
302
306
|
}
|
|
303
307
|
}
|
|
304
|
-
.awsui-motion-disabled .
|
|
308
|
+
.awsui-motion-disabled .awsui_toggle_gfwv3_31y6j_245:not(#\9), .awsui-mode-entering .awsui_toggle_gfwv3_31y6j_245:not(#\9) {
|
|
305
309
|
animation: none;
|
|
306
310
|
transition: none;
|
|
307
311
|
}
|
|
308
|
-
.
|
|
312
|
+
.awsui_toggle_gfwv3_31y6j_245:not(#\9):hover {
|
|
309
313
|
cursor: pointer;
|
|
310
314
|
color: var(--color-text-link-hover-49uoe9, #002b66);
|
|
311
315
|
}
|
|
312
|
-
.
|
|
316
|
+
.awsui_toggle_gfwv3_31y6j_245:not(#\9):focus {
|
|
313
317
|
outline: none;
|
|
314
318
|
}
|
|
315
|
-
.
|
|
319
|
+
.awsui_toggle_gfwv3_31y6j_245:not(#\9):active {
|
|
316
320
|
color: var(--color-text-link-hover-49uoe9, #002b66);
|
|
317
321
|
}
|
|
318
|
-
.
|
|
322
|
+
.awsui_toggle_gfwv3_31y6j_245:not(#\9):active, .awsui_toggle_gfwv3_31y6j_245:not(#\9):focus, .awsui_toggle_gfwv3_31y6j_245:not(#\9):hover {
|
|
319
323
|
text-decoration-line: underline;
|
|
320
324
|
text-decoration-color: currentColor;
|
|
321
325
|
}
|
|
322
|
-
.
|
|
326
|
+
.awsui_toggle_gfwv3_31y6j_245:not(#\9):active, .awsui_toggle_gfwv3_31y6j_245:not(#\9):focus, .awsui_toggle_gfwv3_31y6j_245:not(#\9):hover {
|
|
323
327
|
text-decoration: none;
|
|
324
328
|
text-decoration-color: transparent;
|
|
325
329
|
}
|
|
326
|
-
body[data-awsui-focus-visible=true] .
|
|
330
|
+
body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_31y6j_245:not(#\9):focus {
|
|
327
331
|
outline: 2px dotted transparent;
|
|
328
332
|
border-block: var(--border-width-field-h1g7tw, 2px) solid var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
329
333
|
border-inline: var(--border-width-field-h1g7tw, 2px) solid var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
@@ -333,11 +337,11 @@ body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_1lmww_241:not(#\9):focus
|
|
|
333
337
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
334
338
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
335
339
|
}
|
|
336
|
-
.
|
|
340
|
+
.awsui_toggle_gfwv3_31y6j_245 > .awsui_description_gfwv3_31y6j_337:not(#\9) {
|
|
337
341
|
margin-inline-start: var(--space-xxs-p8yyaw, 4px);
|
|
338
342
|
}
|
|
339
343
|
|
|
340
|
-
.
|
|
344
|
+
.awsui_separator_gfwv3_31y6j_341:not(#\9) {
|
|
341
345
|
margin-block: 0;
|
|
342
346
|
margin-inline: var(--space-scaled-m-mo5yse, 16px);
|
|
343
347
|
inline-size: var(--border-divider-section-width-1061zr, 1px);
|
|
@@ -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
|
-
"horizontal": "
|
|
7
|
-
"vertical": "
|
|
8
|
-
"list": "
|
|
9
|
-
"grid": "
|
|
10
|
-
"list-item": "awsui_list-
|
|
11
|
-
"toggle-container-inline": "awsui_toggle-container-
|
|
12
|
-
"toggle": "
|
|
13
|
-
"description": "
|
|
14
|
-
"separator": "
|
|
5
|
+
"root": "awsui_root_gfwv3_31y6j_193",
|
|
6
|
+
"horizontal": "awsui_horizontal_gfwv3_31y6j_196",
|
|
7
|
+
"vertical": "awsui_vertical_gfwv3_31y6j_202",
|
|
8
|
+
"list": "awsui_list_gfwv3_31y6j_207",
|
|
9
|
+
"grid": "awsui_grid_gfwv3_31y6j_226",
|
|
10
|
+
"list-item": "awsui_list-item_gfwv3_31y6j_238",
|
|
11
|
+
"toggle-container-inline": "awsui_toggle-container-inline_gfwv3_31y6j_245",
|
|
12
|
+
"toggle": "awsui_toggle_gfwv3_31y6j_245",
|
|
13
|
+
"description": "awsui_description_gfwv3_31y6j_337",
|
|
14
|
+
"separator": "awsui_separator_gfwv3_31y6j_341"
|
|
15
15
|
};
|
|
16
16
|
|
package/internal/environment.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-performance-marks/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-performance-marks/index.ts"],"names":[],"mappings":";AAoCA;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EACxC,UAAU,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,EACvE,YAAY,EAAE,KAAK,CAAC,cAAc;;EAsDnC"}
|
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { useEffect } from 'react';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
4
|
import { useModalContext } from '../../context/modal-context';
|
|
5
5
|
import { useDOMAttribute } from '../use-dom-attribute';
|
|
6
6
|
import { useEffectOnUpdate } from '../use-effect-on-update';
|
|
7
7
|
import { useRandomId } from '../use-unique-id';
|
|
8
|
+
const EVALUATE_COMPONENT_VISIBILITY_EVENT = 'awsui-evaluate-component-visibility';
|
|
9
|
+
/**
|
|
10
|
+
* This hook manages a boolean state (`evaluateComponentVisibility`) that toggles
|
|
11
|
+
* whenever a custom DOM event (`EVALUATE_COMPONENT_VISIBILITY_EVENT`) is triggered.
|
|
12
|
+
*
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
const useEvaluateComponentVisibility = () => {
|
|
16
|
+
const [evaluateComponentVisibility, setEvaluateComponentVisibility] = useState(false);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
const handleEvaluateComponentVisibility = () => {
|
|
19
|
+
setEvaluateComponentVisibility(prev => !prev);
|
|
20
|
+
};
|
|
21
|
+
document.addEventListener(EVALUATE_COMPONENT_VISIBILITY_EVENT, handleEvaluateComponentVisibility);
|
|
22
|
+
return () => {
|
|
23
|
+
document.removeEventListener(EVALUATE_COMPONENT_VISIBILITY_EVENT, handleEvaluateComponentVisibility);
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
return evaluateComponentVisibility;
|
|
27
|
+
};
|
|
8
28
|
/**
|
|
9
29
|
* This function returns an object that needs to be spread onto the same
|
|
10
30
|
* element as the `elementRef`, so that the data attribute is applied
|
|
@@ -14,6 +34,7 @@ export function usePerformanceMarks(name, enabled, elementRef, getDetails, depen
|
|
|
14
34
|
const id = useRandomId();
|
|
15
35
|
const { isInModal } = useModalContext();
|
|
16
36
|
const attributes = useDOMAttribute(elementRef, 'data-analytics-performance-mark', id);
|
|
37
|
+
const evaluateComponentVisibility = useEvaluateComponentVisibility();
|
|
17
38
|
useEffect(() => {
|
|
18
39
|
if (!enabled || !elementRef.current || isInModal) {
|
|
19
40
|
return;
|
|
@@ -45,7 +66,7 @@ export function usePerformanceMarks(name, enabled, elementRef, getDetails, depen
|
|
|
45
66
|
detail: Object.assign({ source: 'awsui', instanceIdentifier: id }, getDetails()),
|
|
46
67
|
});
|
|
47
68
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48
|
-
}, dependencies);
|
|
69
|
+
}, [evaluateComponentVisibility, ...dependencies]);
|
|
49
70
|
return attributes;
|
|
50
71
|
}
|
|
51
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-performance-marks/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-performance-marks/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,mCAAmC,GAAG,qCAAqC,CAAC;AAElF;;;;;GAKG;AACH,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC1C,MAAM,CAAC,2BAA2B,EAAE,8BAA8B,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,iCAAiC,GAAG,GAAG,EAAE;YAC7C,8BAA8B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QAChD,CAAC,CAAC;QAEF,QAAQ,CAAC,gBAAgB,CAAC,mCAAmC,EAAE,iCAAiC,CAAC,CAAC;QAElG,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,mCAAmC,EAAE,iCAAiC,CAAC,CAAC;QACvG,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,2BAA2B,CAAC;AACrC,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAY,EACZ,OAAgB,EAChB,UAAwC,EACxC,UAAuE,EACvE,YAAkC;IAElC,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,EAAE,SAAS,EAAE,GAAG,eAAe,EAAE,CAAC;IACxC,MAAM,UAAU,GAAG,eAAe,CAAC,UAAU,EAAE,iCAAiC,EAAE,EAAE,CAAC,CAAC;IACtF,MAAM,2BAA2B,GAAG,8BAA8B,EAAE,CAAC;IACrE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,SAAS,EAAE;YAChD,OAAO;SACR;QACD,MAAM,cAAc,GAClB,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,CAAC;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC;YACnC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC;QAE/D,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QAED,MAAM,gBAAgB,GAAG,GAAG,IAAI,UAAU,CAAC;QAC3C,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACjC,MAAM,kBACJ,MAAM,EAAE,OAAO,EACf,kBAAkB,EAAE,EAAE,IACnB,UAAU,EAAE,CAChB;SACF,CAAC,CAAC;QACH,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,iBAAiB,CAAC,GAAG,EAAE;QACrB,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,SAAS,EAAE;YAChD,OAAO;SACR;QACD,MAAM,cAAc,GAClB,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,CAAC;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC;YACnC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC;QAE/D,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QACD,MAAM,eAAe,GAAG,GAAG,IAAI,SAAS,CAAC;QACzC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE;YAChC,MAAM,kBACJ,MAAM,EAAE,OAAO,EACf,kBAAkB,EAAE,EAAE,IACnB,UAAU,EAAE,CAChB;SACF,CAAC,CAAC;QACH,uDAAuD;IACzD,CAAC,EAAE,CAAC,2BAA2B,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC;IAEnD,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useEffect, useState } from 'react';\n\nimport { useModalContext } from '../../context/modal-context';\nimport { useDOMAttribute } from '../use-dom-attribute';\nimport { useEffectOnUpdate } from '../use-effect-on-update';\nimport { useRandomId } from '../use-unique-id';\n\nconst EVALUATE_COMPONENT_VISIBILITY_EVENT = 'awsui-evaluate-component-visibility';\n\n/**\n * This hook manages a boolean state (`evaluateComponentVisibility`) that toggles\n * whenever a custom DOM event (`EVALUATE_COMPONENT_VISIBILITY_EVENT`) is triggered.\n *\n * @returns\n */\nconst useEvaluateComponentVisibility = () => {\n const [evaluateComponentVisibility, setEvaluateComponentVisibility] = useState(false);\n\n useEffect(() => {\n const handleEvaluateComponentVisibility = () => {\n setEvaluateComponentVisibility(prev => !prev);\n };\n\n document.addEventListener(EVALUATE_COMPONENT_VISIBILITY_EVENT, handleEvaluateComponentVisibility);\n\n return () => {\n document.removeEventListener(EVALUATE_COMPONENT_VISIBILITY_EVENT, handleEvaluateComponentVisibility);\n };\n }, []);\n\n return evaluateComponentVisibility;\n};\n\n/**\n * This function returns an object that needs to be spread onto the same\n * element as the `elementRef`, so that the data attribute is applied\n * correctly.\n */\nexport function usePerformanceMarks(\n name: string,\n enabled: boolean,\n elementRef: React.RefObject<HTMLElement>,\n getDetails: () => Record<string, string | boolean | number | undefined>,\n dependencies: React.DependencyList\n) {\n const id = useRandomId();\n const { isInModal } = useModalContext();\n const attributes = useDOMAttribute(elementRef, 'data-analytics-performance-mark', id);\n const evaluateComponentVisibility = useEvaluateComponentVisibility();\n useEffect(() => {\n if (!enabled || !elementRef.current || isInModal) {\n return;\n }\n const elementVisible =\n elementRef.current.offsetWidth > 0 &&\n elementRef.current.offsetHeight > 0 &&\n getComputedStyle(elementRef.current).visibility !== 'hidden';\n\n if (!elementVisible) {\n return;\n }\n\n const renderedMarkName = `${name}Rendered`;\n performance.mark(renderedMarkName, {\n detail: {\n source: 'awsui',\n instanceIdentifier: id,\n ...getDetails(),\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffectOnUpdate(() => {\n if (!enabled || !elementRef.current || isInModal) {\n return;\n }\n const elementVisible =\n elementRef.current.offsetWidth > 0 &&\n elementRef.current.offsetHeight > 0 &&\n getComputedStyle(elementRef.current).visibility !== 'hidden';\n\n if (!elementVisible) {\n return;\n }\n const updatedMarkName = `${name}Updated`;\n performance.mark(updatedMarkName, {\n detail: {\n source: 'awsui',\n instanceIdentifier: id,\n ...getDetails(),\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [evaluateComponentVisibility, ...dependencies]);\n\n return attributes;\n}\n"]}
|
package/internal/manifest.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/internal/styles/motion/utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,WAAY,OAAO,MAAM,EAAE,MAAM,CAAC,aAAa,MAAM,QAAQ,OAAO,WAC/B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
export const spinWhenOpen = (styles, className, open) => clsx(styles[className], open && styles[`${className}-open`]);
|
|
5
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/internal/styles/motion/utils.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAA8B,EAAE,SAAiB,EAAE,IAAa,EAAE,EAAE,CAC/F,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,IAAI,IAAI,MAAM,CAAC,GAAG,SAAS,OAAO,CAAC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\n\nexport const spinWhenOpen = (styles: Record<string, string>, className: string, open: boolean) =>\n clsx(styles[className], open && styles[`${className}-open`]);\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export default function ({ date: isoDate, hideTimeOffset, isDateOnly, timeOffset, }: {
|
|
1
|
+
export default function ({ date: isoDate, hideTimeOffset, isDateOnly, timeOffset, isMonthOnly, }: {
|
|
2
2
|
date: string;
|
|
3
3
|
hideTimeOffset?: boolean;
|
|
4
4
|
isDateOnly: boolean;
|
|
5
|
+
isMonthOnly: boolean;
|
|
5
6
|
timeOffset?: number;
|
|
6
7
|
}): string;
|
|
7
8
|
//# sourceMappingURL=format-date-iso.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-date-iso.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-iso.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-date-iso.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-iso.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,WAAW,EACvB,IAAI,EAAE,OAAO,EACb,cAAc,EACd,UAAU,EACV,UAAU,EACV,WAAW,GACZ,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,UAMA"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { format, parseISO } from 'date-fns';
|
|
3
4
|
import { formatTimeOffsetISO } from './format-time-offset';
|
|
4
|
-
export default function ({ date: isoDate, hideTimeOffset, isDateOnly, timeOffset, }) {
|
|
5
|
-
const formattedOffset = hideTimeOffset || isDateOnly ? '' : formatTimeOffsetISO(isoDate, timeOffset);
|
|
5
|
+
export default function ({ date: isoDate, hideTimeOffset, isDateOnly, timeOffset, isMonthOnly, }) {
|
|
6
|
+
const formattedOffset = hideTimeOffset || isDateOnly || isMonthOnly ? '' : formatTimeOffsetISO(isoDate, timeOffset);
|
|
7
|
+
if (isMonthOnly) {
|
|
8
|
+
return format(parseISO(isoDate), 'yyyy-MM');
|
|
9
|
+
}
|
|
6
10
|
return isoDate + formattedOffset;
|
|
7
11
|
}
|
|
8
12
|
//# sourceMappingURL=format-date-iso.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-date-iso.js","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-iso.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;
|
|
1
|
+
{"version":3,"file":"format-date-iso.js","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-iso.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,CAAC,OAAO,WAAW,EACvB,IAAI,EAAE,OAAO,EACb,cAAc,EACd,UAAU,EACV,UAAU,EACV,WAAW,GAOZ;IACC,MAAM,eAAe,GAAG,cAAc,IAAI,UAAU,IAAI,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACpH,IAAI,WAAW,EAAE;QACf,OAAO,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC;KAC7C;IACD,OAAO,OAAO,GAAG,eAAe,CAAC;AACnC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { format, parseISO } from 'date-fns';\n\nimport { formatTimeOffsetISO } from './format-time-offset';\n\nexport default function ({\n date: isoDate,\n hideTimeOffset,\n isDateOnly,\n timeOffset,\n isMonthOnly,\n}: {\n date: string;\n hideTimeOffset?: boolean;\n isDateOnly: boolean;\n isMonthOnly: boolean;\n timeOffset?: number;\n}) {\n const formattedOffset = hideTimeOffset || isDateOnly || isMonthOnly ? '' : formatTimeOffsetISO(isoDate, timeOffset);\n if (isMonthOnly) {\n return format(parseISO(isoDate), 'yyyy-MM');\n }\n return isoDate + formattedOffset;\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export default function formatDateLocalized({ date: isoDate, hideTimeOffset, isDateOnly, timeOffset, locale, }: {
|
|
1
|
+
export default function formatDateLocalized({ date: isoDate, hideTimeOffset, isDateOnly, isMonthOnly, timeOffset, locale, }: {
|
|
2
2
|
date: string;
|
|
3
3
|
hideTimeOffset?: boolean;
|
|
4
|
+
isMonthOnly: boolean;
|
|
4
5
|
isDateOnly: boolean;
|
|
5
6
|
timeOffset?: number;
|
|
6
7
|
locale?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-date-localized.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-localized.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,IAAI,EAAE,OAAO,EACb,cAAc,EACd,UAAU,EACV,UAAU,EACV,MAAM,GACP,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,
|
|
1
|
+
{"version":3,"file":"format-date-localized.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-localized.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,IAAI,EAAE,OAAO,EACb,cAAc,EACd,UAAU,EACV,WAAW,EACX,UAAU,EACV,MAAM,GACP,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,UAyCA"}
|
|
@@ -2,16 +2,23 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { isValid, parseISO } from 'date-fns';
|
|
4
4
|
import { formatTimeOffsetLocalized } from './format-time-offset';
|
|
5
|
-
export default function formatDateLocalized({ date: isoDate, hideTimeOffset, isDateOnly, timeOffset, locale, }) {
|
|
5
|
+
export default function formatDateLocalized({ date: isoDate, hideTimeOffset, isDateOnly, isMonthOnly, timeOffset, locale, }) {
|
|
6
6
|
let date = parseISO(isoDate);
|
|
7
7
|
// if the date is not ISO formatted, fallback to built-in date parsing
|
|
8
8
|
if (!isValid(date)) {
|
|
9
9
|
date = new Date(isoDate);
|
|
10
10
|
}
|
|
11
|
+
if (isMonthOnly) {
|
|
12
|
+
const formattedMonthDate = new Intl.DateTimeFormat(locale, {
|
|
13
|
+
month: 'long',
|
|
14
|
+
year: 'numeric',
|
|
15
|
+
}).format(date);
|
|
16
|
+
return formattedMonthDate;
|
|
17
|
+
}
|
|
11
18
|
const formattedDate = new Intl.DateTimeFormat(locale, {
|
|
12
|
-
day: 'numeric',
|
|
13
19
|
month: 'long',
|
|
14
20
|
year: 'numeric',
|
|
21
|
+
day: 'numeric',
|
|
15
22
|
}).format(date);
|
|
16
23
|
if (isDateOnly) {
|
|
17
24
|
return formattedDate;
|