@cloudscape-design/components-themeable 3.0.1332 → 3.0.1334
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/constants.scss +4 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/navigation/styles.scss +43 -13
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/skeleton/styles.scss +7 -1
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/toolbar/styles.scss +2 -2
- package/lib/internal/scss/box/visual-accent.scss +61 -25
- package/lib/internal/scss/button/styles.scss +6 -0
- package/lib/internal/scss/code-editor/ace-editor.scss +1 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +174 -173
- package/lib/internal/scss/side-navigation/styles.scss +14 -10
- package/lib/internal/scss/status-indicator/styles.scss +4 -2
- package/lib/internal/scss/steps/styles.scss +113 -31
- package/lib/internal/scss/table/header-cell/styles.scss +42 -14
- package/lib/internal/scss/table/styles.scss +6 -0
- package/lib/internal/scss/tooltip/styles.scss +22 -0
- package/lib/internal/template/alert/styles.css.js +27 -27
- package/lib/internal/template/alert/styles.scoped.css +50 -50
- package/lib/internal/template/alert/styles.selectors.js +27 -27
- package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +21 -21
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
- package/lib/internal/template/app-layout/classic.d.ts +1 -0
- package/lib/internal/template/app-layout/classic.d.ts.map +1 -1
- package/lib/internal/template/app-layout/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/index.js +2 -1
- package/lib/internal/template/app-layout/index.js.map +1 -1
- package/lib/internal/template/app-layout/interfaces.d.ts +16 -1
- package/lib/internal/template/app-layout/interfaces.d.ts.map +1 -1
- package/lib/internal/template/app-layout/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/internal.d.ts +1 -0
- package/lib/internal/template/app-layout/internal.d.ts.map +1 -1
- package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
- package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
- package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh/index.d.ts +1 -0
- package/lib/internal/template/app-layout/visual-refresh/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +262 -262
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.d.ts +3 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +93 -93
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +2 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.d.ts +2 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.js +11 -5
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +34 -15
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.js +4 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -29
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +72 -67
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -29
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/interfaces.d.ts +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/interfaces.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/props-merger.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/props-merger.js +2 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/props-merger.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js +26 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.js +2 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +14 -14
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +36 -36
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +14 -14
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -1
- package/lib/internal/template/app-layout-toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout-toolbar/index.js +2 -1
- package/lib/internal/template/app-layout-toolbar/index.js.map +1 -1
- package/lib/internal/template/attribute-editor/styles.css.js +15 -15
- package/lib/internal/template/attribute-editor/styles.scoped.css +29 -29
- package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
- package/lib/internal/template/box/interfaces.d.ts +1 -1
- package/lib/internal/template/box/interfaces.d.ts.map +1 -1
- package/lib/internal/template/box/interfaces.js.map +1 -1
- package/lib/internal/template/box/styles.css.js +220 -224
- package/lib/internal/template/box/styles.scoped.css +293 -313
- package/lib/internal/template/box/styles.selectors.js +220 -224
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +30 -30
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
- package/lib/internal/template/button/internal.d.ts +2 -0
- package/lib/internal/template/button/internal.d.ts.map +1 -1
- package/lib/internal/template/button/internal.js +2 -1
- package/lib/internal/template/button/internal.js.map +1 -1
- package/lib/internal/template/button/styles.css.js +23 -22
- package/lib/internal/template/button/styles.scoped.css +261 -256
- package/lib/internal/template/button/styles.selectors.js +23 -22
- package/lib/internal/template/button-dropdown/internal-interfaces.d.ts +11 -0
- package/lib/internal/template/button-dropdown/internal-interfaces.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/internal-interfaces.js.map +1 -1
- package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/internal.js +3 -2
- package/lib/internal/template/button-dropdown/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +37 -37
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
- package/lib/internal/template/button-group/copy-to-clipboard-item.d.ts +16 -0
- package/lib/internal/template/button-group/copy-to-clipboard-item.d.ts.map +1 -0
- package/lib/internal/template/button-group/copy-to-clipboard-item.js +38 -0
- package/lib/internal/template/button-group/copy-to-clipboard-item.js.map +1 -0
- package/lib/internal/template/button-group/index.d.ts.map +1 -1
- package/lib/internal/template/button-group/index.js +9 -1
- package/lib/internal/template/button-group/index.js.map +1 -1
- package/lib/internal/template/button-group/interfaces.d.ts +38 -2
- package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button-group/interfaces.js.map +1 -1
- package/lib/internal/template/button-group/internal-interfaces.d.ts +1 -1
- package/lib/internal/template/button-group/internal-interfaces.d.ts.map +1 -1
- package/lib/internal/template/button-group/internal-interfaces.js.map +1 -1
- package/lib/internal/template/button-group/internal.d.ts.map +1 -1
- package/lib/internal/template/button-group/internal.js +2 -2
- package/lib/internal/template/button-group/internal.js.map +1 -1
- package/lib/internal/template/button-group/item-element.d.ts +2 -0
- package/lib/internal/template/button-group/item-element.d.ts.map +1 -1
- package/lib/internal/template/button-group/item-element.js +13 -3
- package/lib/internal/template/button-group/item-element.js.map +1 -1
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +11 -11
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/code-editor/styles.css.js +33 -33
- package/lib/internal/template/code-editor/styles.scoped.css +187 -187
- package/lib/internal/template/code-editor/styles.selectors.js +33 -33
- package/lib/internal/template/content-layout/styles.css.js +14 -14
- package/lib/internal/template/content-layout/styles.scoped.css +27 -27
- package/lib/internal/template/content-layout/styles.selectors.js +14 -14
- package/lib/internal/template/dropdown/styles.css.js +20 -20
- package/lib/internal/template/dropdown/styles.scoped.css +49 -49
- package/lib/internal/template/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/file-token-group/styles.css.js +23 -23
- package/lib/internal/template/file-token-group/styles.scoped.css +36 -36
- package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +192 -192
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/help-panel/styles.css.js +6 -6
- package/lib/internal/template/help-panel/styles.scoped.css +72 -72
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/i18n/messages/all.all.js +1 -1
- package/lib/internal/template/i18n/messages/all.all.json +1 -1
- package/lib/internal/template/i18n/messages/all.ar.js +1 -1
- package/lib/internal/template/i18n/messages/all.ar.json +1 -1
- package/lib/internal/template/i18n/messages/all.de.js +1 -1
- package/lib/internal/template/i18n/messages/all.de.json +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
- package/lib/internal/template/i18n/messages/all.en.js +1 -1
- package/lib/internal/template/i18n/messages/all.en.json +1 -1
- package/lib/internal/template/i18n/messages/all.es.js +1 -1
- package/lib/internal/template/i18n/messages/all.es.json +1 -1
- package/lib/internal/template/i18n/messages/all.fr.js +1 -1
- package/lib/internal/template/i18n/messages/all.fr.json +1 -1
- package/lib/internal/template/i18n/messages/all.id.js +1 -1
- package/lib/internal/template/i18n/messages/all.id.json +1 -1
- package/lib/internal/template/i18n/messages/all.it.js +1 -1
- package/lib/internal/template/i18n/messages/all.it.json +1 -1
- package/lib/internal/template/i18n/messages/all.ja.js +1 -1
- package/lib/internal/template/i18n/messages/all.ja.json +1 -1
- package/lib/internal/template/i18n/messages/all.ko.js +1 -1
- package/lib/internal/template/i18n/messages/all.ko.json +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
- package/lib/internal/template/i18n/messages/all.tr.js +1 -1
- package/lib/internal/template/i18n/messages/all.tr.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
- package/lib/internal/template/i18n/messages-types.d.ts +19 -0
- package/lib/internal/template/i18n/messages-types.d.ts.map +1 -1
- package/lib/internal/template/i18n/messages-types.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +18 -18
- package/lib/internal/template/input/styles.scoped.css +82 -82
- package/lib/internal/template/input/styles.selectors.js +18 -18
- package/lib/internal/template/internal/base-component/styles.scoped.css +171 -3
- package/lib/internal/template/internal/components/abstract-switch/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/abstract-switch/index.js +7 -1
- package/lib/internal/template/internal/components/abstract-switch/index.js.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/lib/internal/template/internal/components/option/styles.css.js +17 -17
- package/lib/internal/template/internal/components/option/styles.scoped.css +31 -31
- package/lib/internal/template/internal/components/option/styles.selectors.js +17 -17
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +18 -18
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/selectable-item/styles.css.js +22 -22
- package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +57 -57
- package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +22 -22
- package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
- package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
- package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +1 -0
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.js +173 -172
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +37 -38
- package/lib/internal/template/internal/generated/styles/tokens.js +37 -38
- package/lib/internal/template/internal/generated/theming/index.cjs +625 -774
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +63 -9
- package/lib/internal/template/internal/generated/theming/index.d.ts +63 -9
- package/lib/internal/template/internal/generated/theming/index.js +625 -774
- package/lib/internal/template/item-card/styles.css.js +14 -14
- package/lib/internal/template/item-card/styles.scoped.css +63 -63
- package/lib/internal/template/item-card/styles.selectors.js +14 -14
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +117 -117
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/modal/styles.css.js +31 -31
- package/lib/internal/template/modal/styles.scoped.css +48 -48
- package/lib/internal/template/modal/styles.selectors.js +31 -31
- package/lib/internal/template/package.json +94 -0
- package/lib/internal/template/progress-bar/styles.css.js +18 -18
- package/lib/internal/template/progress-bar/styles.scoped.css +48 -48
- package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
- package/lib/internal/template/prompt-input/styles.css.js +26 -26
- package/lib/internal/template/prompt-input/styles.scoped.css +105 -105
- package/lib/internal/template/prompt-input/styles.selectors.js +26 -26
- package/lib/internal/template/segmented-control/styles.css.js +16 -16
- package/lib/internal/template/segmented-control/styles.scoped.css +46 -46
- package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
- package/lib/internal/template/side-navigation/implementation.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/implementation.js +6 -4
- package/lib/internal/template/side-navigation/implementation.js.map +1 -1
- package/lib/internal/template/side-navigation/parts.d.ts +4 -1
- package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/parts.js +45 -32
- package/lib/internal/template/side-navigation/parts.js.map +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +48 -47
- package/lib/internal/template/side-navigation/styles.scoped.css +79 -78
- package/lib/internal/template/side-navigation/styles.selectors.js +48 -47
- package/lib/internal/template/side-navigation/util.d.ts +1 -0
- package/lib/internal/template/side-navigation/util.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/util.js +5 -0
- package/lib/internal/template/side-navigation/util.js.map +1 -1
- package/lib/internal/template/slider/styles.css.js +26 -26
- package/lib/internal/template/slider/styles.scoped.css +165 -165
- package/lib/internal/template/slider/styles.selectors.js +26 -26
- package/lib/internal/template/spinner/styles.css.js +13 -13
- package/lib/internal/template/spinner/styles.scoped.css +39 -39
- package/lib/internal/template/spinner/styles.selectors.js +13 -13
- package/lib/internal/template/status-indicator/internal-interfaces.d.ts +3 -0
- package/lib/internal/template/status-indicator/internal-interfaces.d.ts.map +1 -0
- package/lib/internal/template/status-indicator/internal-interfaces.js +2 -0
- package/lib/internal/template/status-indicator/internal-interfaces.js.map +1 -0
- package/lib/internal/template/status-indicator/internal.d.ts +6 -2
- package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
- package/lib/internal/template/status-indicator/internal.js +1 -0
- package/lib/internal/template/status-indicator/internal.js.map +1 -1
- package/lib/internal/template/status-indicator/styles.css.js +25 -24
- package/lib/internal/template/status-indicator/styles.scoped.css +59 -53
- package/lib/internal/template/status-indicator/styles.selectors.js +25 -24
- package/lib/internal/template/steps/interfaces.d.ts +4 -2
- package/lib/internal/template/steps/interfaces.d.ts.map +1 -1
- package/lib/internal/template/steps/interfaces.js.map +1 -1
- package/lib/internal/template/steps/internal.d.ts.map +1 -1
- package/lib/internal/template/steps/internal.js +36 -12
- package/lib/internal/template/steps/internal.js.map +1 -1
- package/lib/internal/template/steps/styles.css.js +17 -13
- package/lib/internal/template/steps/styles.scoped.css +99 -42
- package/lib/internal/template/steps/styles.selectors.js +17 -13
- package/lib/internal/template/table/clear-sort.d.ts +9 -0
- package/lib/internal/template/table/clear-sort.d.ts.map +1 -0
- package/lib/internal/template/table/clear-sort.js +15 -0
- package/lib/internal/template/table/clear-sort.js.map +1 -0
- package/lib/internal/template/table/header-cell/index.d.ts +4 -1
- package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/index.js +122 -33
- package/lib/internal/template/table/header-cell/index.js.map +1 -1
- package/lib/internal/template/table/header-cell/sort-menu.d.ts +14 -0
- package/lib/internal/template/table/header-cell/sort-menu.d.ts.map +1 -0
- package/lib/internal/template/table/header-cell/sort-menu.js +50 -0
- package/lib/internal/template/table/header-cell/sort-menu.js.map +1 -0
- package/lib/internal/template/table/header-cell/styles.css.js +38 -33
- package/lib/internal/template/table/header-cell/styles.scoped.css +101 -76
- package/lib/internal/template/table/header-cell/styles.selectors.js +38 -33
- package/lib/internal/template/table/header-cell/th-element.d.ts +8 -1
- package/lib/internal/template/table/header-cell/th-element.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/th-element.js +6 -2
- package/lib/internal/template/table/header-cell/th-element.js.map +1 -1
- package/lib/internal/template/table/index.d.ts.map +1 -1
- package/lib/internal/template/table/index.js +1 -0
- package/lib/internal/template/table/index.js.map +1 -1
- package/lib/internal/template/table/interfaces.d.ts +67 -1
- package/lib/internal/template/table/interfaces.d.ts.map +1 -1
- package/lib/internal/template/table/interfaces.js.map +1 -1
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +21 -3
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/multi-column-sort/live-announcement.d.ts +16 -0
- package/lib/internal/template/table/multi-column-sort/live-announcement.d.ts.map +1 -0
- package/lib/internal/template/table/multi-column-sort/live-announcement.js +68 -0
- package/lib/internal/template/table/multi-column-sort/live-announcement.js.map +1 -0
- package/lib/internal/template/table/multi-column-sort/utils.d.ts +45 -0
- package/lib/internal/template/table/multi-column-sort/utils.d.ts.map +1 -0
- package/lib/internal/template/table/multi-column-sort/utils.js +76 -0
- package/lib/internal/template/table/multi-column-sort/utils.js.map +1 -0
- package/lib/internal/template/table/styles.css.js +37 -36
- package/lib/internal/template/table/styles.scoped.css +46 -43
- package/lib/internal/template/table/styles.selectors.js +37 -36
- package/lib/internal/template/table/thead.d.ts +3 -0
- package/lib/internal/template/table/thead.d.ts.map +1 -1
- package/lib/internal/template/table/thead.js +3 -3
- package/lib/internal/template/table/thead.js.map +1 -1
- package/lib/internal/template/table/tools-header.d.ts +2 -1
- package/lib/internal/template/table/tools-header.d.ts.map +1 -1
- package/lib/internal/template/table/tools-header.js +4 -3
- package/lib/internal/template/table/tools-header.js.map +1 -1
- package/lib/internal/template/tabs/styles.css.js +30 -30
- package/lib/internal/template/tabs/styles.scoped.css +76 -76
- package/lib/internal/template/tabs/styles.selectors.js +30 -30
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/test-utils/dom/button-group/index.d.ts +4 -0
- package/lib/internal/template/test-utils/dom/button-group/index.js +8 -0
- package/lib/internal/template/test-utils/dom/button-group/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/steps/index.d.ts +4 -0
- package/lib/internal/template/test-utils/dom/steps/index.js +6 -0
- package/lib/internal/template/test-utils/dom/steps/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/table/index.d.ts +77 -0
- package/lib/internal/template/test-utils/dom/table/index.js +87 -2
- package/lib/internal/template/test-utils/dom/table/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/button-group/index.d.ts +4 -0
- package/lib/internal/template/test-utils/selectors/button-group/index.js +8 -0
- package/lib/internal/template/test-utils/selectors/button-group/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/steps/index.d.ts +4 -0
- package/lib/internal/template/test-utils/selectors/steps/index.js +6 -0
- package/lib/internal/template/test-utils/selectors/steps/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/table/index.d.ts +77 -0
- package/lib/internal/template/test-utils/selectors/table/index.js +87 -2
- package/lib/internal/template/test-utils/selectors/table/index.js.map +1 -1
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +66 -66
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/textarea/styles.css.js +5 -5
- package/lib/internal/template/textarea/styles.scoped.css +45 -45
- package/lib/internal/template/textarea/styles.selectors.js +5 -5
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +23 -23
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +47 -47
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/lib/internal/template/tooltip/internal.d.ts.map +1 -1
- package/lib/internal/template/tooltip/internal.js +2 -1
- package/lib/internal/template/tooltip/internal.js.map +1 -1
- package/lib/internal/template/tooltip/styles.css.js +7 -0
- package/lib/internal/template/tooltip/styles.scoped.css +165 -0
- package/lib/internal/template/tooltip/styles.selectors.js +8 -0
- package/lib/internal/template/top-navigation/use-top-navigation.d.ts.map +1 -1
- package/lib/internal/template/top-navigation/use-top-navigation.js +2 -5
- package/lib/internal/template/top-navigation/use-top-navigation.js.map +1 -1
- package/package.json +1 -1
|
@@ -150,11 +150,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
150
150
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
151
151
|
SPDX-License-Identifier: Apache-2.0
|
|
152
152
|
*/
|
|
153
|
-
.awsui_icon-
|
|
153
|
+
.awsui_icon-shake_1cbgc_rnop3_153:not(#\9) {
|
|
154
154
|
display: inline-block;
|
|
155
|
-
animation: awsui_awsui-motion-shake-
|
|
155
|
+
animation: awsui_awsui-motion-shake-horizontally_1cbgc_rnop3_1 var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
156
156
|
}
|
|
157
|
-
@keyframes awsui_awsui-motion-shake-
|
|
157
|
+
@keyframes awsui_awsui-motion-shake-horizontally_1cbgc_rnop3_1 {
|
|
158
158
|
0% {
|
|
159
159
|
transform: translateX(-5px);
|
|
160
160
|
animation-timing-function: linear;
|
|
@@ -168,20 +168,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
@media (prefers-reduced-motion: reduce) {
|
|
171
|
-
.awsui_icon-
|
|
171
|
+
.awsui_icon-shake_1cbgc_rnop3_153:not(#\9) {
|
|
172
172
|
animation: none;
|
|
173
173
|
transition: none;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
.awsui-motion-disabled .awsui_icon-
|
|
176
|
+
.awsui-motion-disabled .awsui_icon-shake_1cbgc_rnop3_153:not(#\9), .awsui-mode-entering .awsui_icon-shake_1cbgc_rnop3_153:not(#\9) {
|
|
177
177
|
animation: none;
|
|
178
178
|
transition: none;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
.awsui_container-fade-
|
|
182
|
-
animation: awsui_awsui-motion-fade-in-
|
|
181
|
+
.awsui_container-fade-in_1cbgc_rnop3_181:not(#\9) {
|
|
182
|
+
animation: awsui_awsui-motion-fade-in-0_1cbgc_rnop3_1 var(--motion-duration-refresh-only-medium-h3wrr6, 0ms) var(--motion-easing-refresh-only-a-8gio5w, cubic-bezier(0, 0, 0, 1));
|
|
183
183
|
}
|
|
184
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
184
|
+
@keyframes awsui_awsui-motion-fade-in-0_1cbgc_rnop3_1 {
|
|
185
185
|
from {
|
|
186
186
|
opacity: 0;
|
|
187
187
|
}
|
|
@@ -190,17 +190,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
@media (prefers-reduced-motion: reduce) {
|
|
193
|
-
.awsui_container-fade-
|
|
193
|
+
.awsui_container-fade-in_1cbgc_rnop3_181:not(#\9) {
|
|
194
194
|
animation: none;
|
|
195
195
|
transition: none;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
.awsui-motion-disabled .awsui_container-fade-
|
|
198
|
+
.awsui-motion-disabled .awsui_container-fade-in_1cbgc_rnop3_181:not(#\9), .awsui-mode-entering .awsui_container-fade-in_1cbgc_rnop3_181:not(#\9) {
|
|
199
199
|
animation: none;
|
|
200
200
|
transition: none;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
.
|
|
203
|
+
.awsui_root_1cbgc_rnop3_203:not(#\9) {
|
|
204
204
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
205
205
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
206
206
|
color: var(--color-text-body-default-5qid0u, #16191f);
|
|
@@ -209,143 +209,149 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
209
209
|
-webkit-font-smoothing: auto;
|
|
210
210
|
-moz-osx-font-smoothing: auto;
|
|
211
211
|
}
|
|
212
|
-
.
|
|
212
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-error_1cbgc_rnop3_212:not(#\9) {
|
|
213
213
|
color: var(--color-text-status-error-c3at5p, #d13212);
|
|
214
214
|
}
|
|
215
|
-
.
|
|
215
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-warning_1cbgc_rnop3_215:not(#\9) {
|
|
216
216
|
color: var(--color-text-status-warning-08d9ki, #906806);
|
|
217
217
|
}
|
|
218
|
-
.
|
|
218
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-success_1cbgc_rnop3_218:not(#\9) {
|
|
219
219
|
color: var(--color-text-status-success-ya1ikb, #1d8102);
|
|
220
220
|
}
|
|
221
|
-
.
|
|
221
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-info_1cbgc_rnop3_221:not(#\9) {
|
|
222
222
|
color: var(--color-text-status-info-5vpe5d, #0073bb);
|
|
223
223
|
}
|
|
224
|
-
.
|
|
224
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-stopped_1cbgc_rnop3_224:not(#\9) {
|
|
225
225
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
226
226
|
}
|
|
227
|
-
.
|
|
227
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-pending_1cbgc_rnop3_227:not(#\9) {
|
|
228
228
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
229
229
|
}
|
|
230
|
-
.
|
|
230
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-in-progress_1cbgc_rnop3_230:not(#\9) {
|
|
231
231
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
232
232
|
}
|
|
233
|
-
.
|
|
233
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-loading_1cbgc_rnop3_233:not(#\9) {
|
|
234
234
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
235
235
|
}
|
|
236
|
-
.
|
|
236
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-not-started_1cbgc_rnop3_236:not(#\9) {
|
|
237
237
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
238
238
|
}
|
|
239
|
-
.
|
|
239
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-log_1cbgc_rnop3_239:not(#\9) {
|
|
240
|
+
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
241
|
+
}
|
|
242
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-red_1cbgc_rnop3_242:not(#\9) {
|
|
240
243
|
color: var(--color-text-status-error-c3at5p, #d13212);
|
|
241
244
|
}
|
|
242
|
-
.
|
|
245
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-grey_1cbgc_rnop3_245:not(#\9) {
|
|
243
246
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
244
247
|
}
|
|
245
|
-
.
|
|
248
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-blue_1cbgc_rnop3_248:not(#\9) {
|
|
246
249
|
color: var(--color-text-status-info-5vpe5d, #0073bb);
|
|
247
250
|
}
|
|
248
|
-
.
|
|
251
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-green_1cbgc_rnop3_251:not(#\9) {
|
|
249
252
|
color: var(--color-text-status-success-ya1ikb, #1d8102);
|
|
250
253
|
}
|
|
251
|
-
.
|
|
254
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-yellow_1cbgc_rnop3_254:not(#\9) {
|
|
252
255
|
color: var(--color-text-status-warning-08d9ki, #906806);
|
|
253
256
|
}
|
|
254
|
-
.
|
|
257
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-error_1cbgc_rnop3_212 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
255
258
|
background: var(--color-background-status-indicator-error-621sf8, transparent);
|
|
256
259
|
}
|
|
257
|
-
.
|
|
260
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-warning_1cbgc_rnop3_215 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
258
261
|
background: var(--color-background-status-indicator-warning-3kccdi, transparent);
|
|
259
262
|
}
|
|
260
|
-
.
|
|
263
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-success_1cbgc_rnop3_218 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
261
264
|
background: var(--color-background-status-indicator-success-9mizpw, transparent);
|
|
262
265
|
}
|
|
263
|
-
.
|
|
266
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-info_1cbgc_rnop3_221 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
264
267
|
background: var(--color-background-status-indicator-info-zw9ljm, transparent);
|
|
265
268
|
}
|
|
266
|
-
.
|
|
269
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-stopped_1cbgc_rnop3_224 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
270
|
+
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
271
|
+
}
|
|
272
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-pending_1cbgc_rnop3_227 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
267
273
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
268
274
|
}
|
|
269
|
-
.
|
|
275
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-in-progress_1cbgc_rnop3_230 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
270
276
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
271
277
|
}
|
|
272
|
-
.
|
|
278
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-loading_1cbgc_rnop3_233 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
273
279
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
274
280
|
}
|
|
275
|
-
.
|
|
281
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-not-started_1cbgc_rnop3_236 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
276
282
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
277
283
|
}
|
|
278
|
-
.
|
|
284
|
+
.awsui_root_1cbgc_rnop3_203.awsui_status-log_1cbgc_rnop3_239 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
279
285
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
280
286
|
}
|
|
281
|
-
.
|
|
287
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-red_1cbgc_rnop3_242 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
282
288
|
background: var(--color-background-status-indicator-error-621sf8, transparent);
|
|
283
289
|
}
|
|
284
|
-
.
|
|
290
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-grey_1cbgc_rnop3_245 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
285
291
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
286
292
|
}
|
|
287
|
-
.
|
|
293
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-blue_1cbgc_rnop3_248 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
288
294
|
background: var(--color-background-status-indicator-info-zw9ljm, transparent);
|
|
289
295
|
}
|
|
290
|
-
.
|
|
296
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-green_1cbgc_rnop3_251 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
291
297
|
background: var(--color-background-status-indicator-success-9mizpw, transparent);
|
|
292
298
|
}
|
|
293
|
-
.
|
|
299
|
+
.awsui_root_1cbgc_rnop3_203.awsui_color-override-yellow_1cbgc_rnop3_254 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
294
300
|
background: var(--color-background-status-indicator-warning-3kccdi, transparent);
|
|
295
301
|
}
|
|
296
302
|
|
|
297
|
-
.
|
|
303
|
+
.awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
298
304
|
padding-inline: var(--space-status-indicator-padding-horizontal-hzqgcr, 0px);
|
|
299
305
|
border-start-start-radius: var(--border-radius-status-indicator-1d9bsf, 16px);
|
|
300
306
|
border-start-end-radius: var(--border-radius-status-indicator-1d9bsf, 16px);
|
|
301
307
|
border-end-start-radius: var(--border-radius-status-indicator-1d9bsf, 16px);
|
|
302
308
|
border-end-end-radius: var(--border-radius-status-indicator-1d9bsf, 16px);
|
|
303
309
|
}
|
|
304
|
-
.awsui-one-theme .
|
|
310
|
+
.awsui-one-theme .awsui_root_1cbgc_rnop3_203.awsui_status-loading_1cbgc_rnop3_233 > .awsui_container_1cbgc_rnop3_181:not(#\9) {
|
|
305
311
|
background: transparent;
|
|
306
312
|
align-items: center;
|
|
307
313
|
color: var(--color-text-body-secondary-gaft81, #545b64);
|
|
308
314
|
}
|
|
309
|
-
.
|
|
315
|
+
.awsui_container_1cbgc_rnop3_181.awsui_display-inline_1cbgc_rnop3_315:not(#\9) {
|
|
310
316
|
min-inline-size: 0;
|
|
311
317
|
word-break: break-word;
|
|
312
318
|
display: inline;
|
|
313
319
|
}
|
|
314
|
-
.
|
|
320
|
+
.awsui_container_1cbgc_rnop3_181.awsui_display-inline_1cbgc_rnop3_315 > .awsui_icon_1cbgc_rnop3_153:not(#\9) {
|
|
315
321
|
white-space: nowrap;
|
|
316
322
|
}
|
|
317
|
-
.awsui-one-theme .
|
|
323
|
+
.awsui-one-theme .awsui_container_1cbgc_rnop3_181.awsui_display-inline_1cbgc_rnop3_315 > .awsui_icon_1cbgc_rnop3_153:not(#\9) {
|
|
318
324
|
vertical-align: middle;
|
|
319
325
|
}
|
|
320
|
-
.
|
|
326
|
+
.awsui_container_1cbgc_rnop3_181.awsui_display-inline-block_1cbgc_rnop3_326:not(#\9) {
|
|
321
327
|
display: inline-block;
|
|
322
328
|
word-wrap: break-word;
|
|
323
329
|
word-break: break-all;
|
|
324
330
|
}
|
|
325
|
-
.awsui-one-theme .
|
|
331
|
+
.awsui-one-theme .awsui_container_1cbgc_rnop3_181.awsui_display-inline-block_1cbgc_rnop3_326:not(#\9) {
|
|
326
332
|
display: inline-flex;
|
|
327
|
-
align
|
|
333
|
+
vertical-align: top;
|
|
328
334
|
}
|
|
329
|
-
.
|
|
335
|
+
.awsui_container_1cbgc_rnop3_181.awsui_display-inline-block_1cbgc_rnop3_326 > .awsui_icon_1cbgc_rnop3_153:not(#\9) {
|
|
330
336
|
padding-inline-end: var(--space-xxs-jnczic, 4px);
|
|
331
337
|
}
|
|
332
|
-
.awsui-one-theme .
|
|
338
|
+
.awsui-one-theme .awsui_container_1cbgc_rnop3_181.awsui_display-inline-block_1cbgc_rnop3_326 > .awsui_icon_1cbgc_rnop3_153:not(#\9) {
|
|
333
339
|
display: inline-flex;
|
|
334
340
|
align-items: center;
|
|
335
|
-
|
|
341
|
+
block-size: var(--line-height-body-m-bedeoh, 22px);
|
|
336
342
|
}
|
|
337
343
|
|
|
338
|
-
.awsui_overflow-
|
|
344
|
+
.awsui_overflow-ellipsis_1cbgc_rnop3_344:not(#\9) {
|
|
339
345
|
max-inline-size: 100%;
|
|
340
346
|
overflow: hidden;
|
|
341
347
|
text-overflow: ellipsis;
|
|
342
348
|
white-space: nowrap;
|
|
343
349
|
vertical-align: text-bottom;
|
|
344
350
|
}
|
|
345
|
-
.awsui-one-theme .awsui_overflow-
|
|
351
|
+
.awsui-one-theme .awsui_overflow-ellipsis_1cbgc_rnop3_344:not(#\9) {
|
|
346
352
|
text-overflow: unset;
|
|
347
353
|
}
|
|
348
|
-
.awsui-one-theme .awsui_overflow-
|
|
354
|
+
.awsui-one-theme .awsui_overflow-ellipsis_1cbgc_rnop3_344 > span:not(#\9):last-child {
|
|
349
355
|
overflow: hidden;
|
|
350
356
|
text-overflow: ellipsis;
|
|
351
357
|
white-space: nowrap;
|
|
@@ -2,29 +2,30 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"icon-shake": "awsui_icon-
|
|
6
|
-
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-
|
|
7
|
-
"container-fade-in": "awsui_container-fade-
|
|
8
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
9
|
-
"root": "
|
|
10
|
-
"status-error": "awsui_status-
|
|
11
|
-
"status-warning": "awsui_status-
|
|
12
|
-
"status-success": "awsui_status-
|
|
13
|
-
"status-info": "awsui_status-
|
|
14
|
-
"status-stopped": "awsui_status-
|
|
15
|
-
"status-pending": "awsui_status-
|
|
16
|
-
"status-in-progress": "awsui_status-in-
|
|
17
|
-
"status-loading": "awsui_status-
|
|
18
|
-
"status-not-started": "awsui_status-not-
|
|
19
|
-
"
|
|
20
|
-
"color-override-
|
|
21
|
-
"color-override-
|
|
22
|
-
"color-override-
|
|
23
|
-
"color-override-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
5
|
+
"icon-shake": "awsui_icon-shake_1cbgc_rnop3_153",
|
|
6
|
+
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_rnop3_1",
|
|
7
|
+
"container-fade-in": "awsui_container-fade-in_1cbgc_rnop3_181",
|
|
8
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_rnop3_1",
|
|
9
|
+
"root": "awsui_root_1cbgc_rnop3_203",
|
|
10
|
+
"status-error": "awsui_status-error_1cbgc_rnop3_212",
|
|
11
|
+
"status-warning": "awsui_status-warning_1cbgc_rnop3_215",
|
|
12
|
+
"status-success": "awsui_status-success_1cbgc_rnop3_218",
|
|
13
|
+
"status-info": "awsui_status-info_1cbgc_rnop3_221",
|
|
14
|
+
"status-stopped": "awsui_status-stopped_1cbgc_rnop3_224",
|
|
15
|
+
"status-pending": "awsui_status-pending_1cbgc_rnop3_227",
|
|
16
|
+
"status-in-progress": "awsui_status-in-progress_1cbgc_rnop3_230",
|
|
17
|
+
"status-loading": "awsui_status-loading_1cbgc_rnop3_233",
|
|
18
|
+
"status-not-started": "awsui_status-not-started_1cbgc_rnop3_236",
|
|
19
|
+
"status-log": "awsui_status-log_1cbgc_rnop3_239",
|
|
20
|
+
"color-override-red": "awsui_color-override-red_1cbgc_rnop3_242",
|
|
21
|
+
"color-override-grey": "awsui_color-override-grey_1cbgc_rnop3_245",
|
|
22
|
+
"color-override-blue": "awsui_color-override-blue_1cbgc_rnop3_248",
|
|
23
|
+
"color-override-green": "awsui_color-override-green_1cbgc_rnop3_251",
|
|
24
|
+
"color-override-yellow": "awsui_color-override-yellow_1cbgc_rnop3_254",
|
|
25
|
+
"container": "awsui_container_1cbgc_rnop3_181",
|
|
26
|
+
"display-inline": "awsui_display-inline_1cbgc_rnop3_315",
|
|
27
|
+
"icon": "awsui_icon_1cbgc_rnop3_153",
|
|
28
|
+
"display-inline-block": "awsui_display-inline-block_1cbgc_rnop3_326",
|
|
29
|
+
"overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_rnop3_344"
|
|
29
30
|
};
|
|
30
31
|
|
|
@@ -5,10 +5,11 @@ export interface StepsProps extends BaseComponentProps {
|
|
|
5
5
|
* An array of individual steps
|
|
6
6
|
*
|
|
7
7
|
* Each step definition has the following properties:
|
|
8
|
-
* * `status` (string) - Status of the step corresponding to a status indicator.
|
|
8
|
+
* * `status` (string) - Status of the step corresponding to a status indicator. The `log` status renders a neutral dot marker.
|
|
9
9
|
* * `statusIconAriaLabel` - (string) - (Optional) Alternative text for the status icon.
|
|
10
10
|
* * `header` (ReactNode) - Summary corresponding to the step.
|
|
11
11
|
* * `details` (ReactNode) - (Optional) Additional information corresponding to the step.
|
|
12
|
+
* * `annotation` (ReactNode) - (Optional) Content rendered at the start of the step, before the icon. Typically a timestamp in a timeline view.
|
|
12
13
|
*/
|
|
13
14
|
steps: ReadonlyArray<StepsProps.Step>;
|
|
14
15
|
/**
|
|
@@ -51,12 +52,13 @@ export interface StepsProps extends BaseComponentProps {
|
|
|
51
52
|
ariaDescribedby?: string;
|
|
52
53
|
}
|
|
53
54
|
export declare namespace StepsProps {
|
|
54
|
-
type Status = StatusIndicatorProps.Type;
|
|
55
|
+
type Status = StatusIndicatorProps.Type | 'log';
|
|
55
56
|
interface Step {
|
|
56
57
|
status: Status;
|
|
57
58
|
statusIconAriaLabel?: string;
|
|
58
59
|
header: React.ReactNode;
|
|
59
60
|
details?: React.ReactNode;
|
|
61
|
+
annotation?: React.ReactNode;
|
|
60
62
|
}
|
|
61
63
|
type Orientation = 'vertical' | 'horizontal';
|
|
62
64
|
type ConnectorLinesVariant = 'visible' | 'none';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/steps/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/steps/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD;;;;;;;;;OASG;IACH,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACtC;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC;IACrC;;;;OAIG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAClD;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,KAAK;QACtC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,yBAAiB,UAAU,CAAC;IAC1B,KAAY,MAAM,GAAG,oBAAoB,CAAC,IAAI,GAAG,KAAK,CAAC;IAEvD,UAAiB,IAAI;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B;IAED,KAAY,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;IAEpD,KAAY,qBAAqB,GAAG,SAAS,GAAG,MAAM,CAAC;CACxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/steps/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { StatusIndicatorProps } from '../status-indicator/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface StepsProps extends BaseComponentProps {\n /**\n * An array of individual steps\n *\n * Each step definition has the following properties:\n * * `status` (string) - Status of the step corresponding to a status indicator.\n * * `statusIconAriaLabel` - (string) - (Optional) Alternative text for the status icon.\n * * `header` (ReactNode) - Summary corresponding to the step.\n * * `details` (ReactNode) - (Optional) Additional information corresponding to the step.\n */\n steps: ReadonlyArray<StepsProps.Step>;\n /**\n * The visual orientation of the steps (vertical or horizontal).\n * By default the orientation is vertical.\n */\n orientation?: StepsProps.Orientation;\n /**\n * Determines whether the connector lines between steps are displayed. The following variants are available:\n * * `visible` - Shows connector lines between consecutive steps.\n * * `none` - Hides the connector lines between steps.\n */\n connectorLines?: StepsProps.ConnectorLinesVariant;\n /**\n * Render a step. This overrides the default icon, header, and details provided by the component.\n * The function is called for each step and should return an object with the following keys:\n * * `header` (React.ReactNode) - Summary corresponding to the step.\n * * `details` (React.ReactNode) - (Optional) Additional information corresponding to the step.\n * * `icon` (React.ReactNode) - (Optional) Replaces the standard step icon from the status indicator.\n */\n renderStep?: (step: StepsProps.Step) => {\n header: React.ReactNode;\n details?: React.ReactNode;\n icon?: React.ReactNode;\n };\n /**\n * Provides an `aria-label` to the progress steps container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n /**\n * Sets the `aria-labelledby` property on the progress steps container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n /**\n * Sets the `aria-describedby` property on the progress steps container.\n */\n ariaDescribedby?: string;\n}\n\nexport namespace StepsProps {\n export type Status = StatusIndicatorProps.Type;\n\n export interface Step {\n status: Status;\n statusIconAriaLabel?: string;\n header: React.ReactNode;\n details?: React.ReactNode;\n }\n\n export type Orientation = 'vertical' | 'horizontal';\n\n export type ConnectorLinesVariant = 'visible' | 'none';\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/steps/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { StatusIndicatorProps } from '../status-indicator/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface StepsProps extends BaseComponentProps {\n /**\n * An array of individual steps\n *\n * Each step definition has the following properties:\n * * `status` (string) - Status of the step corresponding to a status indicator. The `log` status renders a neutral dot marker.\n * * `statusIconAriaLabel` - (string) - (Optional) Alternative text for the status icon.\n * * `header` (ReactNode) - Summary corresponding to the step.\n * * `details` (ReactNode) - (Optional) Additional information corresponding to the step.\n * * `annotation` (ReactNode) - (Optional) Content rendered at the start of the step, before the icon. Typically a timestamp in a timeline view.\n */\n steps: ReadonlyArray<StepsProps.Step>;\n /**\n * The visual orientation of the steps (vertical or horizontal).\n * By default the orientation is vertical.\n */\n orientation?: StepsProps.Orientation;\n /**\n * Determines whether the connector lines between steps are displayed. The following variants are available:\n * * `visible` - Shows connector lines between consecutive steps.\n * * `none` - Hides the connector lines between steps.\n */\n connectorLines?: StepsProps.ConnectorLinesVariant;\n /**\n * Render a step. This overrides the default icon, header, and details provided by the component.\n * The function is called for each step and should return an object with the following keys:\n * * `header` (React.ReactNode) - Summary corresponding to the step.\n * * `details` (React.ReactNode) - (Optional) Additional information corresponding to the step.\n * * `icon` (React.ReactNode) - (Optional) Replaces the standard step icon from the status indicator.\n */\n renderStep?: (step: StepsProps.Step) => {\n header: React.ReactNode;\n details?: React.ReactNode;\n icon?: React.ReactNode;\n };\n /**\n * Provides an `aria-label` to the progress steps container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n /**\n * Sets the `aria-labelledby` property on the progress steps container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n /**\n * Sets the `aria-describedby` property on the progress steps container.\n */\n ariaDescribedby?: string;\n}\n\nexport namespace StepsProps {\n export type Status = StatusIndicatorProps.Type | 'log';\n\n export interface Step {\n status: Status;\n statusIconAriaLabel?: string;\n header: React.ReactNode;\n details?: React.ReactNode;\n annotation?: React.ReactNode;\n }\n\n export type Orientation = 'vertical' | 'horizontal';\n\n export type ConnectorLinesVariant = 'visible' | 'none';\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,OAAO,GAAG,aAAa,GAAG,gBAAgB,CAAC,GAC5F,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,OAAO,GAAG,aAAa,GAAG,gBAAgB,CAAC,GAC5F,0BAA0B,CAAC;AA8H7B,QAAA,MAAM,aAAa,GAAI,6HAUpB,kBAAkB,gBAwCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -15,47 +15,71 @@ const statusToColor = {
|
|
|
15
15
|
'in-progress': 'text-status-inactive',
|
|
16
16
|
loading: 'text-status-inactive',
|
|
17
17
|
'not-started': 'text-status-inactive',
|
|
18
|
+
log: 'text-status-inactive',
|
|
19
|
+
};
|
|
20
|
+
const StepAnnotation = ({ children }) => {
|
|
21
|
+
if (children === undefined || children === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return React.createElement("div", { className: styles.annotation }, children);
|
|
25
|
+
};
|
|
26
|
+
const StepDetails = ({ children }) => {
|
|
27
|
+
if (children === undefined || children === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return React.createElement("div", { className: styles.details }, children);
|
|
18
31
|
};
|
|
19
32
|
const CustomStep = ({ step, orientation, renderStep, hideConnectors, }) => {
|
|
20
|
-
const { status, statusIconAriaLabel } = step;
|
|
33
|
+
const { status, statusIconAriaLabel, annotation } = step;
|
|
21
34
|
const { header, details, icon } = renderStep(step);
|
|
22
35
|
const iconNode = icon ? icon : React.createElement(InternalStatusIcon, { type: status, iconAriaLabel: statusIconAriaLabel });
|
|
23
36
|
const connectorClassName = clsx(styles.connector, hideConnectors && styles['connector-hidden']);
|
|
24
37
|
if (orientation === 'horizontal') {
|
|
25
38
|
return (React.createElement("li", { className: styles.container },
|
|
26
|
-
React.createElement(
|
|
39
|
+
React.createElement(StepAnnotation, null, annotation),
|
|
40
|
+
React.createElement("div", { className: styles['step-layout'] },
|
|
27
41
|
iconNode,
|
|
28
42
|
React.createElement("hr", { className: connectorClassName, role: "none" })),
|
|
29
|
-
React.createElement("div", { className: styles
|
|
30
|
-
|
|
43
|
+
React.createElement("div", { className: styles.content },
|
|
44
|
+
React.createElement("div", { className: styles.header }, header),
|
|
45
|
+
React.createElement(StepDetails, null, details))));
|
|
31
46
|
}
|
|
32
47
|
// Vertical orientation: render the icon and the connector together in a column-1 "rail" so the
|
|
33
48
|
// connector starts directly beneath the icon and stretches the full height of the step. Unlike
|
|
34
49
|
// placing the header in the same row as the icon, this keeps the vertical line continuous even
|
|
35
|
-
// when the custom header wraps onto multiple lines.
|
|
50
|
+
// when the custom header wraps onto multiple lines. `annotation` (for example, a timeline timestamp)
|
|
51
|
+
// is rendered before the rail.
|
|
36
52
|
return (React.createElement("li", { className: clsx(styles.container, styles['custom-vertical']) },
|
|
53
|
+
React.createElement(StepAnnotation, null, annotation),
|
|
37
54
|
React.createElement("div", { className: styles.rail },
|
|
38
55
|
iconNode,
|
|
39
56
|
React.createElement("hr", { className: connectorClassName, role: "none" })),
|
|
40
57
|
React.createElement("div", { className: styles.content },
|
|
41
58
|
React.createElement("div", { className: styles.header }, header),
|
|
42
|
-
|
|
59
|
+
React.createElement(StepDetails, null, details))));
|
|
43
60
|
};
|
|
44
|
-
const InternalStep = ({ status, statusIconAriaLabel, header, details, orientation, hideConnectors, }) => {
|
|
61
|
+
const InternalStep = ({ status, statusIconAriaLabel, header, details, annotation, orientation, hideConnectors, }) => {
|
|
45
62
|
const connectorClassName = clsx(styles.connector, hideConnectors && styles['connector-hidden']);
|
|
46
63
|
return (React.createElement("li", { className: styles.container },
|
|
47
|
-
React.createElement(
|
|
64
|
+
React.createElement(StepAnnotation, null, annotation),
|
|
65
|
+
React.createElement("div", { className: styles['step-layout'] }, orientation === 'vertical' ? (React.createElement(React.Fragment, null,
|
|
66
|
+
React.createElement("div", { className: styles.header },
|
|
67
|
+
React.createElement(InternalStatusIndicator, { type: status, iconAriaLabel: statusIconAriaLabel }, header)),
|
|
68
|
+
React.createElement(StepDetails, null, details),
|
|
69
|
+
React.createElement("hr", { className: clsx(connectorClassName, styles['connector-continuation']), role: "none" }))) : (React.createElement(React.Fragment, null,
|
|
48
70
|
React.createElement(InternalBox, { color: statusToColor[status] },
|
|
49
71
|
React.createElement(InternalStatusIcon, { type: status, iconAriaLabel: statusIconAriaLabel })),
|
|
50
72
|
React.createElement("hr", { className: connectorClassName, role: "none" })))),
|
|
51
|
-
orientation === '
|
|
52
|
-
React.createElement(
|
|
53
|
-
|
|
73
|
+
orientation === 'horizontal' && (React.createElement("div", { className: styles.content },
|
|
74
|
+
React.createElement("div", { className: styles.header },
|
|
75
|
+
React.createElement(InternalBox, { color: statusToColor[status] }, header)),
|
|
76
|
+
React.createElement(StepDetails, null, details)))));
|
|
54
77
|
};
|
|
55
78
|
const InternalSteps = ({ steps, orientation, connectorLines, renderStep, ariaLabel, ariaLabelledby, ariaDescribedby, __internalRootRef, ...props }) => {
|
|
56
79
|
const hideConnectors = connectorLines === 'none';
|
|
80
|
+
const hasAnnotations = steps.some(step => step.annotation !== undefined && step.annotation !== null);
|
|
57
81
|
return (React.createElement("div", { ...props, className: clsx(styles.root, props.className, orientation === 'horizontal' ? styles.horizontal : styles.vertical), ref: __internalRootRef },
|
|
58
|
-
React.createElement("ol", { className: styles.list, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby }, steps.map((step, index) => renderStep ? (React.createElement(CustomStep, { key: index, orientation: orientation, step: step, renderStep: renderStep, hideConnectors: hideConnectors })) : (React.createElement(InternalStep, { key: index, status: step.status, statusIconAriaLabel: step.statusIconAriaLabel, header: step.header, details: step.details, orientation: orientation, hideConnectors: hideConnectors }))))));
|
|
82
|
+
React.createElement("ol", { className: clsx(styles.list, orientation === 'vertical' && hasAnnotations && styles['with-annotation']), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby }, steps.map((step, index) => renderStep ? (React.createElement(CustomStep, { key: index, orientation: orientation, step: step, renderStep: renderStep, hideConnectors: hideConnectors })) : (React.createElement(InternalStep, { key: index, status: step.status, statusIconAriaLabel: step.statusIconAriaLabel, header: step.header, details: step.details, annotation: step.annotation, orientation: orientation, hideConnectors: hideConnectors }))))));
|
|
59
83
|
};
|
|
60
84
|
export default InternalSteps;
|
|
61
85
|
//# sourceMappingURL=internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAG1C,OAAO,uBAAuB,EAAE,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAG3F,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAKrC,MAAM,aAAa,GAA8C;IAC/D,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,qBAAqB;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,sBAAsB;IAC/B,aAAa,EAAE,sBAAsB;IACrC,OAAO,EAAE,sBAAsB;IAC/B,aAAa,EAAE,sBAAsB;CACtC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAClB,IAAI,EACJ,WAAW,EACX,UAAU,EACV,cAAc,GAMf,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAC7C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EA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,EAAE;IACvB,MAAM,cAAc,GAAG,cAAc,KAAK,MAAM,CAAC;IACjD,OAAO,CACL,gCACM,KAAK,EACT,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EACjH,GAAG,EAAE,iBAAiB;QAEtB,4BACE,SAAS,EAAE,MAAM,CAAC,IAAI,gBACV,SAAS,qBACJ,cAAc,sBACb,eAAe,IAEhC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACzB,UAAU,CAAC,CAAC,CAAC,CACX,oBAAC,UAAU,IACT,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,YAAY,IACX,GAAG,EAAE,KAAK,EACV,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAC7C,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,GAC9B,CACH,CACF,CACE,CACD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { BoxProps } from '../box/interfaces';\nimport InternalBox from '../box/internal';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport InternalStatusIndicator, { InternalStatusIcon } from '../status-indicator/internal';\nimport { StepsProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalStepsProps = SomeRequired<StepsProps, 'steps' | 'orientation' | 'connectorLines'> &\n InternalBaseComponentProps;\n\nconst statusToColor: Record<StepsProps.Status, BoxProps.Color> = {\n error: 'text-status-error',\n warning: 'text-status-warning',\n success: 'text-status-success',\n info: 'text-status-info',\n stopped: 'text-status-inactive',\n pending: 'text-status-inactive',\n 'in-progress': 'text-status-inactive',\n loading: 'text-status-inactive',\n 'not-started': 'text-status-inactive',\n};\n\nconst CustomStep = ({\n step,\n orientation,\n renderStep,\n hideConnectors,\n}: {\n step: StepsProps.Step;\n orientation: StepsProps.Orientation;\n renderStep: Required<StepsProps>['renderStep'];\n hideConnectors: boolean;\n}) => {\n const { status, statusIconAriaLabel } = step;\n const { header, details, icon } = renderStep(step);\n const iconNode = icon ? icon : <InternalStatusIcon type={status} iconAriaLabel={statusIconAriaLabel} />;\n const connectorClassName = clsx(styles.connector, hideConnectors && styles['connector-hidden']);\n\n if (orientation === 'horizontal') {\n return (\n <li className={styles.container}>\n <div className={styles.header}>\n {iconNode}\n <hr className={connectorClassName} role=\"none\" />\n </div>\n <div className={styles['horizontal-header']}>{header}</div>\n {details && <div className={styles.details}>{details}</div>}\n </li>\n );\n }\n\n // Vertical orientation: render the icon and the connector together in a column-1 \"rail\" so the\n // connector starts directly beneath the icon and stretches the full height of the step. Unlike\n // placing the header in the same row as the icon, this keeps the vertical line continuous even\n // when the custom header wraps onto multiple lines.\n return (\n <li className={clsx(styles.container, styles['custom-vertical'])}>\n <div className={styles.rail}>\n {iconNode}\n <hr className={connectorClassName} role=\"none\" />\n </div>\n <div className={styles.content}>\n <div className={styles.header}>{header}</div>\n {details && <div className={styles.details}>{details}</div>}\n </div>\n </li>\n );\n};\n\nconst InternalStep = ({\n status,\n statusIconAriaLabel,\n header,\n details,\n orientation,\n hideConnectors,\n}: StepsProps.Step & { orientation: StepsProps.Orientation; hideConnectors: boolean }) => {\n const connectorClassName = clsx(styles.connector, hideConnectors && styles['connector-hidden']);\n return (\n <li className={styles.container}>\n <div className={styles.header}>\n {orientation === 'vertical' ? (\n <InternalStatusIndicator type={status} iconAriaLabel={statusIconAriaLabel}>\n {header}\n </InternalStatusIndicator>\n ) : (\n <>\n <InternalBox color={statusToColor[status]}>\n <InternalStatusIcon type={status} iconAriaLabel={statusIconAriaLabel} />\n </InternalBox>\n <hr className={connectorClassName} role=\"none\" />\n </>\n )}\n </div>\n {orientation === 'vertical' ? (\n <hr className={connectorClassName} role=\"none\" />\n ) : (\n <div className={styles['horizontal-header']}>\n <InternalBox color={statusToColor[status]}>{header}</InternalBox>\n </div>\n )}\n {details && <div className={styles.details}>{details}</div>}\n </li>\n );\n};\n\nconst InternalSteps = ({\n steps,\n orientation,\n connectorLines,\n renderStep,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n __internalRootRef,\n ...props\n}: InternalStepsProps) => {\n const hideConnectors = connectorLines === 'none';\n return (\n <div\n {...props}\n className={clsx(styles.root, props.className, orientation === 'horizontal' ? styles.horizontal : styles.vertical)}\n ref={__internalRootRef}\n >\n <ol\n className={styles.list}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n >\n {steps.map((step, index) =>\n renderStep ? (\n <CustomStep\n key={index}\n orientation={orientation}\n step={step}\n renderStep={renderStep}\n hideConnectors={hideConnectors}\n />\n ) : (\n <InternalStep\n key={index}\n status={step.status}\n statusIconAriaLabel={step.statusIconAriaLabel}\n header={step.header}\n details={step.details}\n orientation={orientation}\n hideConnectors={hideConnectors}\n />\n )\n )}\n </ol>\n </div>\n );\n};\n\nexport default InternalSteps;\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,WAAW,MAAM,iBAAiB,C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O,EACrB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,GAC9B,CACH,CACF,CACE,CACD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { BoxProps } from '../box/interfaces';\nimport InternalBox from '../box/internal';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport InternalStatusIndicator, { InternalStatusIcon } from '../status-indicator/internal';\nimport { StepsProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalStepsProps = SomeRequired<StepsProps, 'steps' | 'orientation' | 'connectorLines'> &\n InternalBaseComponentProps;\n\nconst statusToColor: Record<StepsProps.Status, BoxProps.Color> = {\n error: 'text-status-error',\n warning: 'text-status-warning',\n success: 'text-status-success',\n info: 'text-status-info',\n stopped: 'text-status-inactive',\n pending: 'text-status-inactive',\n 'in-progress': 'text-status-inactive',\n loading: 'text-status-inactive',\n 'not-started': 'text-status-inactive',\n log: 'text-status-inactive',\n};\n\nconst StepAnnotation = ({ children }: { children: StepsProps.Step['annotation'] }) => {\n if (children === undefined || children === null) {\n return null;\n }\n return <div className={styles.annotation}>{children}</div>;\n};\n\nconst StepDetails = ({ children }: { children: StepsProps.Step['details'] }) => {\n if (children === undefined || children === null) {\n return null;\n }\n return <div className={styles.details}>{children}</div>;\n};\n\nconst CustomStep = ({\n step,\n orientation,\n renderStep,\n hideConnectors,\n}: {\n step: StepsProps.Step;\n orientation: StepsProps.Orientation;\n renderStep: Required<StepsProps>['renderStep'];\n hideConnectors: boolean;\n}) => {\n const { status, statusIconAriaLabel, annotation } = step;\n const { header, details, icon } = renderStep(step);\n const iconNode = icon ? icon : <InternalStatusIcon type={status} iconAriaLabel={statusIconAriaLabel} />;\n const connectorClassName = clsx(styles.connector, hideConnectors && styles['connector-hidden']);\n\n if (orientation === 'horizontal') {\n return (\n <li className={styles.container}>\n <StepAnnotation>{annotation}</StepAnnotation>\n <div className={styles['step-layout']}>\n {iconNode}\n <hr className={connectorClassName} role=\"none\" />\n </div>\n <div className={styles.content}>\n <div className={styles.header}>{header}</div>\n <StepDetails>{details}</StepDetails>\n </div>\n </li>\n );\n }\n\n // Vertical orientation: render the icon and the connector together in a column-1 \"rail\" so the\n // connector starts directly beneath the icon and stretches the full height of the step. Unlike\n // placing the header in the same row as the icon, this keeps the vertical line continuous even\n // when the custom header wraps onto multiple lines. `annotation` (for example, a timeline timestamp)\n // is rendered before the rail.\n return (\n <li className={clsx(styles.container, styles['custom-vertical'])}>\n <StepAnnotation>{annotation}</StepAnnotation>\n <div className={styles.rail}>\n {iconNode}\n <hr className={connectorClassName} role=\"none\" />\n </div>\n <div className={styles.content}>\n <div className={styles.header}>{header}</div>\n <StepDetails>{details}</StepDetails>\n </div>\n </li>\n );\n};\n\nconst InternalStep = ({\n status,\n statusIconAriaLabel,\n header,\n details,\n annotation,\n orientation,\n hideConnectors,\n}: StepsProps.Step & { orientation: StepsProps.Orientation; hideConnectors: boolean }) => {\n const connectorClassName = clsx(styles.connector, hideConnectors && styles['connector-hidden']);\n return (\n <li className={styles.container}>\n <StepAnnotation>{annotation}</StepAnnotation>\n <div className={styles['step-layout']}>\n {orientation === 'vertical' ? (\n <>\n <div className={styles.header}>\n <InternalStatusIndicator type={status} iconAriaLabel={statusIconAriaLabel}>\n {header}\n </InternalStatusIndicator>\n </div>\n <StepDetails>{details}</StepDetails>\n <hr className={clsx(connectorClassName, styles['connector-continuation'])} role=\"none\" />\n </>\n ) : (\n <>\n <InternalBox color={statusToColor[status]}>\n <InternalStatusIcon type={status} iconAriaLabel={statusIconAriaLabel} />\n </InternalBox>\n <hr className={connectorClassName} role=\"none\" />\n </>\n )}\n </div>\n {orientation === 'horizontal' && (\n <div className={styles.content}>\n <div className={styles.header}>\n <InternalBox color={statusToColor[status]}>{header}</InternalBox>\n </div>\n <StepDetails>{details}</StepDetails>\n </div>\n )}\n </li>\n );\n};\n\nconst InternalSteps = ({\n steps,\n orientation,\n connectorLines,\n renderStep,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n __internalRootRef,\n ...props\n}: InternalStepsProps) => {\n const hideConnectors = connectorLines === 'none';\n const hasAnnotations = steps.some(step => step.annotation !== undefined && step.annotation !== null);\n return (\n <div\n {...props}\n className={clsx(styles.root, props.className, orientation === 'horizontal' ? styles.horizontal : styles.vertical)}\n ref={__internalRootRef}\n >\n <ol\n className={clsx(styles.list, orientation === 'vertical' && hasAnnotations && styles['with-annotation'])}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n >\n {steps.map((step, index) =>\n renderStep ? (\n <CustomStep\n key={index}\n orientation={orientation}\n step={step}\n renderStep={renderStep}\n hideConnectors={hideConnectors}\n />\n ) : (\n <InternalStep\n key={index}\n status={step.status}\n statusIconAriaLabel={step.statusIconAriaLabel}\n header={step.header}\n details={step.details}\n annotation={step.annotation}\n orientation={orientation}\n hideConnectors={hideConnectors}\n />\n )\n )}\n </ol>\n </div>\n );\n};\n\nexport default InternalSteps;\n"]}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"connector": "
|
|
5
|
-
"connector-hidden": "awsui_connector-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
4
|
+
"connector": "awsui_connector_gxp9y_166tz_181",
|
|
5
|
+
"connector-hidden": "awsui_connector-hidden_gxp9y_166tz_185",
|
|
6
|
+
"header": "awsui_header_gxp9y_166tz_189",
|
|
7
|
+
"root": "awsui_root_gxp9y_166tz_193",
|
|
8
|
+
"list": "awsui_list_gxp9y_166tz_226",
|
|
9
|
+
"container": "awsui_container_gxp9y_166tz_231",
|
|
10
|
+
"annotation": "awsui_annotation_gxp9y_166tz_236",
|
|
11
|
+
"step-layout": "awsui_step-layout_gxp9y_166tz_241",
|
|
12
|
+
"details": "awsui_details_gxp9y_166tz_247",
|
|
13
|
+
"custom": "awsui_custom_gxp9y_166tz_253",
|
|
14
|
+
"horizontal": "awsui_horizontal_gxp9y_166tz_257",
|
|
15
|
+
"content": "awsui_content_gxp9y_166tz_293",
|
|
16
|
+
"vertical": "awsui_vertical_gxp9y_166tz_307",
|
|
17
|
+
"connector-continuation": "awsui_connector-continuation_gxp9y_166tz_321",
|
|
18
|
+
"custom-vertical": "awsui_custom-vertical_gxp9y_166tz_339",
|
|
19
|
+
"rail": "awsui_rail_gxp9y_166tz_339",
|
|
20
|
+
"with-annotation": "awsui_with-annotation_gxp9y_166tz_362"
|
|
17
21
|
};
|
|
18
22
|
|