@cloudscape-design/components 3.0.1406 → 3.0.1408
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 +27 -27
- package/alert/styles.scoped.css +55 -53
- package/alert/styles.selectors.js +27 -27
- package/annotation-context/annotation/styles.css.js +13 -13
- package/annotation-context/annotation/styles.scoped.css +21 -21
- package/annotation-context/annotation/styles.selectors.js +13 -13
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +86 -86
- package/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +28 -28
- package/attribute-editor/styles.selectors.js +15 -15
- package/autosuggest/internal.d.ts.map +1 -1
- package/autosuggest/internal.js +9 -0
- package/autosuggest/internal.js.map +1 -1
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +28 -28
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/button/styles.css.js +24 -24
- package/button/styles.scoped.css +327 -327
- package/button/styles.selectors.js +24 -24
- package/button-dropdown/category-elements/expandable-category-element.d.ts +4 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.js +18 -3
- package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +4 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.js +23 -3
- package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/use-expandable-group-status.d.ts +34 -0
- package/button-dropdown/category-elements/use-expandable-group-status.d.ts.map +1 -0
- package/button-dropdown/category-elements/use-expandable-group-status.js +59 -0
- package/button-dropdown/category-elements/use-expandable-group-status.js.map +1 -0
- package/button-dropdown/index.d.ts.map +1 -1
- package/button-dropdown/index.js +3 -3
- package/button-dropdown/index.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +110 -8
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal-interfaces.d.ts +20 -0
- package/button-dropdown/internal-interfaces.d.ts.map +1 -1
- package/button-dropdown/internal-interfaces.js.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +149 -16
- package/button-dropdown/internal.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +21 -21
- package/button-dropdown/item-element/styles.scoped.css +37 -37
- package/button-dropdown/item-element/styles.selectors.js +21 -21
- package/button-dropdown/items-list.d.ts +4 -1
- package/button-dropdown/items-list.d.ts.map +1 -1
- package/button-dropdown/items-list.js +2 -2
- package/button-dropdown/items-list.js.map +1 -1
- package/button-dropdown/status-footer.d.ts +16 -0
- package/button-dropdown/status-footer.d.ts.map +1 -0
- package/button-dropdown/status-footer.js +23 -0
- package/button-dropdown/status-footer.js.map +1 -0
- package/button-dropdown/styles.css.js +23 -23
- package/button-dropdown/styles.scoped.css +34 -31
- package/button-dropdown/styles.selectors.js +23 -23
- package/button-dropdown/test-classes/styles.css.js +7 -0
- package/button-dropdown/test-classes/styles.scoped.css +11 -0
- package/button-dropdown/test-classes/styles.selectors.js +8 -0
- package/button-dropdown/utils/use-button-dropdown.d.ts +31 -2
- package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
- package/button-dropdown/utils/use-button-dropdown.js +62 -7
- package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
- package/button-dropdown/utils/use-highlighted-menu.d.ts +2 -0
- package/button-dropdown/utils/use-highlighted-menu.d.ts.map +1 -1
- package/button-dropdown/utils/use-highlighted-menu.js +7 -0
- package/button-dropdown/utils/use-highlighted-menu.js.map +1 -1
- package/button-dropdown/utils/use-load-items.d.ts +17 -0
- package/button-dropdown/utils/use-load-items.d.ts.map +1 -0
- package/button-dropdown/utils/use-load-items.js +23 -0
- package/button-dropdown/utils/use-load-items.js.map +1 -0
- package/button-group/copy-to-clipboard-item.d.ts +1 -0
- package/button-group/copy-to-clipboard-item.d.ts.map +1 -1
- package/button-group/copy-to-clipboard-item.js +2 -2
- package/button-group/copy-to-clipboard-item.js.map +1 -1
- package/button-group/file-input-item.d.ts +1 -0
- package/button-group/file-input-item.d.ts.map +1 -1
- package/button-group/file-input-item.js +2 -2
- package/button-group/file-input-item.js.map +1 -1
- package/button-group/icon-button-item.d.ts +1 -0
- package/button-group/icon-button-item.d.ts.map +1 -1
- package/button-group/icon-button-item.js +2 -2
- package/button-group/icon-button-item.js.map +1 -1
- package/button-group/icon-toggle-button-item.d.ts +1 -0
- package/button-group/icon-toggle-button-item.d.ts.map +1 -1
- package/button-group/icon-toggle-button-item.js +2 -2
- package/button-group/icon-toggle-button-item.js.map +1 -1
- package/button-group/index.d.ts.map +1 -1
- package/button-group/index.js +1 -1
- package/button-group/index.js.map +1 -1
- package/button-group/internal-interfaces.d.ts +8 -0
- package/button-group/internal-interfaces.d.ts.map +1 -1
- package/button-group/internal-interfaces.js.map +1 -1
- package/button-group/internal.d.ts.map +1 -1
- package/button-group/internal.js +3 -3
- package/button-group/internal.js.map +1 -1
- package/button-group/item-element.d.ts +2 -0
- package/button-group/item-element.d.ts.map +1 -1
- package/button-group/item-element.js +7 -6
- package/button-group/item-element.js.map +1 -1
- package/button-group/menu-dropdown-item.d.ts +2 -0
- package/button-group/menu-dropdown-item.d.ts.map +1 -1
- package/button-group/menu-dropdown-item.js +3 -3
- package/button-group/menu-dropdown-item.js.map +1 -1
- package/button-group/styles.css.js +4 -4
- package/button-group/styles.scoped.css +19 -6
- package/button-group/styles.selectors.js +4 -4
- package/cards/styles.css.js +39 -39
- package/cards/styles.scoped.css +41 -41
- package/cards/styles.selectors.js +39 -39
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +10 -10
- package/checkbox/styles.selectors.js +3 -3
- package/column-layout/internal.d.ts.map +1 -1
- package/column-layout/internal.js +12 -0
- package/column-layout/internal.js.map +1 -1
- package/container/internal.d.ts +11 -0
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +7 -4
- package/container/internal.js.map +1 -1
- package/container/styles.css.js +33 -34
- package/container/styles.scoped.css +140 -94
- package/container/styles.selectors.js +33 -34
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +27 -27
- package/content-layout/styles.selectors.js +14 -14
- package/{internal/components/control-group → control-group}/index.d.ts +0 -3
- package/control-group/index.d.ts.map +1 -0
- package/control-group/index.js +19 -0
- package/control-group/index.js.map +1 -0
- package/{internal/components/control-group → control-group}/interfaces.d.ts +7 -7
- package/control-group/interfaces.d.ts.map +1 -0
- package/control-group/interfaces.js.map +1 -0
- package/control-group/internal.d.ts +12 -0
- package/control-group/internal.d.ts.map +1 -0
- package/{internal/components/control-group/index.js → control-group/internal.js} +18 -12
- package/control-group/internal.js.map +1 -0
- package/control-group/styles.css.js +32 -0
- package/{internal/components/control-group → control-group}/styles.scoped.css +29 -29
- package/control-group/styles.selectors.js +33 -0
- package/control-group/test-classes/styles.css.js +9 -0
- package/{internal/components/control-group → control-group}/test-classes/styles.scoped.css +4 -4
- package/control-group/test-classes/styles.selectors.js +10 -0
- package/copy-to-clipboard/index.d.ts.map +1 -1
- package/copy-to-clipboard/index.js +1 -1
- package/copy-to-clipboard/index.js.map +1 -1
- package/copy-to-clipboard/internal.d.ts +9 -1
- package/copy-to-clipboard/internal.d.ts.map +1 -1
- package/copy-to-clipboard/internal.js +3 -3
- package/copy-to-clipboard/internal.js.map +1 -1
- package/copy-to-clipboard/styles.css.js +10 -10
- package/copy-to-clipboard/styles.scoped.css +16 -14
- package/copy-to-clipboard/styles.selectors.js +10 -10
- package/date-input/internal.d.ts +5 -0
- package/date-input/internal.d.ts.map +1 -1
- package/date-input/internal.js +2 -2
- package/date-input/internal.js.map +1 -1
- package/date-input/styles.css.js +1 -1
- package/date-input/styles.scoped.css +2 -1
- package/date-input/styles.selectors.js +1 -1
- package/divider/index.d.ts.map +1 -1
- package/divider/index.js +1 -1
- package/divider/index.js.map +1 -1
- package/divider/internal.d.ts +7 -1
- package/divider/internal.d.ts.map +1 -1
- package/divider/internal.js +2 -2
- package/divider/internal.js.map +1 -1
- package/divider/styles.css.js +6 -6
- package/divider/styles.scoped.css +20 -9
- package/divider/styles.selectors.js +6 -6
- package/dropdown/internal.d.ts +1 -1
- package/dropdown/internal.d.ts.map +1 -1
- package/dropdown/internal.js +1 -1
- package/dropdown/internal.js.map +1 -1
- package/dropdown/styles.css.js +20 -20
- package/dropdown/styles.scoped.css +48 -48
- package/dropdown/styles.selectors.js +20 -20
- package/expandable-section/expandable-section-container.d.ts +6 -0
- package/expandable-section/expandable-section-container.d.ts.map +1 -1
- package/expandable-section/expandable-section-container.js +4 -3
- package/expandable-section/expandable-section-container.js.map +1 -1
- package/expandable-section/expandable-section-header.d.ts +6 -0
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +34 -15
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/interfaces.d.ts +11 -0
- package/expandable-section/interfaces.d.ts.map +1 -1
- package/expandable-section/interfaces.js.map +1 -1
- package/expandable-section/internal.d.ts +2 -0
- package/expandable-section/internal.d.ts.map +1 -1
- package/expandable-section/internal.js +10 -3
- package/expandable-section/internal.js.map +1 -1
- package/expandable-section/styles.css.js +49 -46
- package/expandable-section/styles.scoped.css +121 -91
- package/expandable-section/styles.selectors.js +49 -46
- package/expandable-section/utils.d.ts +1 -0
- package/expandable-section/utils.d.ts.map +1 -1
- package/expandable-section/utils.js +3 -0
- package/expandable-section/utils.js.map +1 -1
- package/file-input/internal.d.ts +2 -0
- package/file-input/internal.d.ts.map +1 -1
- package/file-input/internal.js +2 -2
- package/file-input/internal.js.map +1 -1
- package/file-input/styles.css.js +5 -5
- package/file-input/styles.scoped.css +18 -22
- package/file-input/styles.selectors.js +5 -5
- package/file-token-group/styles.css.js +23 -23
- package/file-token-group/styles.scoped.css +38 -38
- package/file-token-group/styles.selectors.js +23 -23
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +184 -184
- package/flashbar/styles.selectors.js +50 -50
- package/form-field/interfaces.d.ts +2 -2
- package/form-field/interfaces.js.map +1 -1
- package/header/interfaces.d.ts +3 -2
- package/header/interfaces.d.ts.map +1 -1
- package/header/interfaces.js.map +1 -1
- package/header/internal.d.ts +6 -0
- package/header/internal.d.ts.map +1 -1
- package/header/internal.js +2 -1
- package/header/internal.js.map +1 -1
- package/header/styles.css.js +36 -35
- package/header/styles.scoped.css +69 -53
- package/header/styles.selectors.js +36 -35
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +72 -72
- package/help-panel/styles.selectors.js +6 -6
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.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 +28 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/input/internal.d.ts.map +1 -1
- package/input/internal.js +9 -1
- package/input/internal.js.map +1 -1
- package/input/styles.css.js +44 -44
- package/input/styles.scoped.css +152 -152
- package/input/styles.selectors.js +44 -44
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/base-theme/styles.scoped.css +1 -1
- package/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/internal/components/autosuggest-input/index.js +25 -24
- package/internal/components/autosuggest-input/index.js.map +1 -1
- package/internal/components/autosuggest-input/styles.css.js +33 -33
- package/internal/components/autosuggest-input/styles.scoped.css +91 -91
- package/internal/components/autosuggest-input/styles.selectors.js +33 -33
- package/internal/components/button-trigger/index.js +1 -1
- package/internal/components/button-trigger/index.js.map +1 -1
- package/internal/components/button-trigger/styles.css.js +29 -29
- package/internal/components/button-trigger/styles.scoped.css +71 -71
- package/internal/components/button-trigger/styles.selectors.js +29 -29
- package/internal/components/drag-handle/hooks/interfaces.d.ts +1 -0
- package/internal/components/drag-handle/hooks/interfaces.d.ts.map +1 -1
- package/internal/components/drag-handle/hooks/interfaces.js.map +1 -1
- package/internal/components/drag-handle/hooks/use-drag-handle-interaction-state.d.ts.map +1 -1
- package/internal/components/drag-handle/hooks/use-drag-handle-interaction-state.js +9 -1
- package/internal/components/drag-handle/hooks/use-drag-handle-interaction-state.js.map +1 -1
- package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/internal/components/dropdown-status/index.d.ts +7 -1
- package/internal/components/dropdown-status/index.d.ts.map +1 -1
- package/internal/components/dropdown-status/index.js +2 -2
- package/internal/components/dropdown-status/index.js.map +1 -1
- package/internal/components/listbox/selection/interfaces.d.ts +28 -0
- package/internal/components/listbox/selection/interfaces.d.ts.map +1 -0
- package/internal/components/listbox/selection/interfaces.js +2 -0
- package/internal/components/listbox/selection/interfaces.js.map +1 -0
- package/internal/components/listbox/selection/multi-selection.d.ts +24 -0
- package/internal/components/listbox/selection/multi-selection.d.ts.map +1 -0
- package/internal/components/listbox/selection/multi-selection.js +60 -0
- package/internal/components/listbox/selection/multi-selection.js.map +1 -0
- package/internal/components/listbox/selection/single-selection.d.ts +7 -0
- package/internal/components/listbox/selection/single-selection.d.ts.map +1 -0
- package/internal/components/listbox/selection/single-selection.js +26 -0
- package/internal/components/listbox/selection/single-selection.js.map +1 -0
- package/internal/components/option/styles.css.js +18 -18
- package/internal/components/option/styles.scoped.css +35 -35
- package/internal/components/option/styles.selectors.js +18 -18
- package/internal/components/radio-button/styles.css.js +7 -7
- package/internal/components/radio-button/styles.scoped.css +17 -17
- package/internal/components/radio-button/styles.selectors.js +7 -7
- package/internal/components/selectable-item/styles.css.js +22 -22
- package/internal/components/selectable-item/styles.scoped.css +57 -57
- package/internal/components/selectable-item/styles.selectors.js +22 -22
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +25 -25
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/custom-css-properties/index.d.ts +2 -0
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +177 -175
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/generated/styles/tokens.d.ts +1 -1
- package/internal/generated/styles/tokens.js +1 -1
- package/internal/generated/theming/index.cjs +5 -3
- package/internal/generated/theming/index.d.cts +9 -0
- package/internal/generated/theming/index.d.ts +9 -0
- package/internal/generated/theming/index.js +5 -3
- package/internal/grouped-control/dev-warnings.d.ts +46 -0
- package/internal/grouped-control/dev-warnings.d.ts.map +1 -0
- package/internal/grouped-control/dev-warnings.js +29 -0
- package/internal/grouped-control/dev-warnings.js.map +1 -0
- package/internal/{components/control-group → grouped-control}/grouped-control-styles.d.ts +1 -1
- package/internal/grouped-control/grouped-control-styles.d.ts.map +1 -0
- package/internal/grouped-control/grouped-control-styles.js.map +1 -0
- package/internal/hooks/use-load-items/index.d.ts +18 -0
- package/internal/hooks/use-load-items/index.d.ts.map +1 -0
- package/{select/utils/use-load-items.js → internal/hooks/use-load-items/index.js} +4 -5
- package/internal/hooks/use-load-items/index.js.map +1 -0
- package/internal/manifest.json +1 -1
- package/item-card/styles.css.js +14 -14
- package/item-card/styles.scoped.css +63 -63
- package/item-card/styles.selectors.js +14 -14
- package/link/styles.css.js +21 -21
- package/link/styles.scoped.css +104 -104
- package/link/styles.selectors.js +21 -21
- package/manifest.json +2 -2
- package/modal/styles.css.js +32 -32
- package/modal/styles.scoped.css +49 -49
- package/modal/styles.selectors.js +32 -32
- package/multiselect/interfaces.d.ts +1 -0
- package/multiselect/interfaces.d.ts.map +1 -1
- package/multiselect/interfaces.js.map +1 -1
- package/multiselect/internal.d.ts.map +1 -1
- package/multiselect/internal.js +11 -1
- package/multiselect/internal.js.map +1 -1
- package/multiselect/use-multiselect.d.ts.map +1 -1
- package/multiselect/use-multiselect.js +15 -48
- package/multiselect/use-multiselect.js.map +1 -1
- package/package.json +4 -1
- package/popover/arrow.d.ts +3 -1
- package/popover/arrow.d.ts.map +1 -1
- package/popover/arrow.js +2 -2
- package/popover/arrow.js.map +1 -1
- package/popover/body.d.ts +1 -0
- package/popover/body.d.ts.map +1 -1
- package/popover/body.js +2 -2
- package/popover/body.js.map +1 -1
- package/popover/container.d.ts +3 -1
- package/popover/container.d.ts.map +1 -1
- package/popover/container.js +2 -2
- package/popover/container.js.map +1 -1
- package/popover/internal.d.ts +6 -0
- package/popover/internal.d.ts.map +1 -1
- package/popover/internal.js +3 -3
- package/popover/internal.js.map +1 -1
- package/popover/styles.css.js +58 -58
- package/popover/styles.scoped.css +114 -95
- package/popover/styles.selectors.js +58 -58
- package/progress-bar/index.d.ts.map +1 -1
- package/progress-bar/index.js +4 -3
- package/progress-bar/index.js.map +1 -1
- package/progress-bar/internal.d.ts +7 -1
- package/progress-bar/internal.d.ts.map +1 -1
- package/progress-bar/internal.js +2 -2
- package/progress-bar/internal.js.map +1 -1
- package/progress-bar/styles.css.js +20 -19
- package/progress-bar/styles.scoped.css +92 -59
- package/progress-bar/styles.selectors.js +20 -19
- package/prompt-input/styles.css.js +26 -26
- package/prompt-input/styles.scoped.css +116 -116
- package/prompt-input/styles.selectors.js +26 -26
- package/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/segmented-control/internal-segmented-control.js +1 -1
- package/segmented-control/internal-segmented-control.js.map +1 -1
- package/segmented-control/internal.js +1 -1
- package/segmented-control/internal.js.map +1 -1
- package/segmented-control/styles.css.js +31 -31
- package/segmented-control/styles.scoped.css +82 -82
- package/segmented-control/styles.selectors.js +31 -31
- package/select/interfaces.d.ts +14 -0
- package/select/interfaces.d.ts.map +1 -1
- package/select/interfaces.js.map +1 -1
- package/select/internal.d.ts.map +1 -1
- package/select/internal.js +15 -3
- package/select/internal.js.map +1 -1
- package/select/parts/styles.css.js +21 -21
- package/select/parts/styles.scoped.css +24 -24
- package/select/parts/styles.selectors.js +21 -21
- package/select/utils/use-select.d.ts +4 -4
- package/select/utils/use-select.d.ts.map +1 -1
- package/select/utils/use-select.js +16 -29
- package/select/utils/use-select.js.map +1 -1
- package/side-navigation/styles.css.js +65 -65
- package/side-navigation/styles.scoped.css +114 -114
- package/side-navigation/styles.selectors.js +65 -65
- package/slider/internal.d.ts +6 -0
- package/slider/internal.d.ts.map +1 -1
- package/slider/internal.js +3 -3
- package/slider/internal.js.map +1 -1
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +202 -171
- package/slider/styles.selectors.js +26 -26
- package/spinner/styles.css.js +14 -14
- package/spinner/styles.scoped.css +40 -40
- package/spinner/styles.selectors.js +14 -14
- package/styling/button-dropdown.scss +1 -0
- package/styling/button-group.scss +15 -0
- package/styling/container.scss +95 -0
- package/styling/copy-to-clipboard.scss +1 -0
- package/styling/date-input.scss +1 -0
- package/styling/divider.scss +15 -0
- package/styling/dropdown.scss +2 -2
- package/styling/popover.scss +58 -0
- package/styling/progress-bar.scss +36 -0
- package/styling/slider.scss +30 -0
- package/styling/text-filter.scss +19 -0
- package/styling/textarea.scss +67 -0
- package/styling/time-input.scss +1 -0
- package/styling/toggle-button.scss +1 -0
- package/styling/token.scss +49 -0
- package/styling/tooltip.scss +58 -0
- package/table/column-groups/col-group.d.ts +1 -1
- package/table/column-groups/col-group.d.ts.map +1 -1
- package/table/column-groups/col-group.js +3 -3
- package/table/column-groups/col-group.js.map +1 -1
- package/table/header-cell/group-header-cell.js +2 -2
- package/table/header-cell/group-header-cell.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +1 -1
- package/table/internal.js.map +1 -1
- package/table/styles.css.js +37 -37
- package/table/styles.scoped.css +46 -46
- package/table/styles.selectors.js +37 -37
- package/table/use-column-widths.d.ts +2 -1
- package/table/use-column-widths.d.ts.map +1 -1
- package/table/use-column-widths.js +42 -11
- package/table/use-column-widths.js.map +1 -1
- package/tabs/styles.css.js +31 -30
- package/tabs/styles.scoped.css +93 -77
- package/tabs/styles.selectors.js +31 -30
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +54 -5
- package/tabs/tab-header-bar.js.map +1 -1
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +13 -13
- package/tag-editor/styles.selectors.js +3 -3
- package/test-utils/dom/button-dropdown/index.d.ts +16 -0
- package/test-utils/dom/button-dropdown/index.js +28 -6
- package/test-utils/dom/button-dropdown/index.js.map +1 -1
- package/test-utils/dom/{internal/control-group.js → control-group/index.js} +2 -2
- package/test-utils/dom/control-group/index.js.map +1 -0
- package/test-utils/dom/index.d.ts +28 -0
- package/test-utils/dom/index.js +22 -3
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/selectors/button-dropdown/index.d.ts +16 -0
- package/test-utils/selectors/button-dropdown/index.js +32 -6
- package/test-utils/selectors/button-dropdown/index.js.map +1 -1
- package/test-utils/selectors/{internal/control-group.js → control-group/index.js} +2 -2
- package/test-utils/selectors/control-group/index.js.map +1 -0
- package/test-utils/selectors/index.d.ts +18 -0
- package/test-utils/selectors/index.js +17 -3
- package/test-utils/selectors/index.js.map +1 -1
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +66 -66
- package/text-content/styles.selectors.js +1 -1
- package/text-filter/internal.d.ts +8 -1
- package/text-filter/internal.d.ts.map +1 -1
- package/text-filter/internal.js +3 -3
- package/text-filter/internal.js.map +1 -1
- package/text-filter/search-results.d.ts +1 -0
- package/text-filter/search-results.d.ts.map +1 -1
- package/text-filter/search-results.js +3 -2
- package/text-filter/search-results.js.map +1 -1
- package/text-filter/styles.css.js +3 -3
- package/text-filter/styles.scoped.css +6 -3
- package/text-filter/styles.selectors.js +3 -3
- package/textarea/index.d.ts.map +1 -1
- package/textarea/index.js +2 -1
- package/textarea/index.js.map +1 -1
- package/textarea/styles.css.js +9 -9
- package/textarea/styles.scoped.css +78 -56
- package/textarea/styles.selectors.js +9 -9
- package/time-input/internal.d.ts +7 -1
- package/time-input/internal.d.ts.map +1 -1
- package/time-input/internal.js +2 -1
- package/time-input/internal.js.map +1 -1
- package/time-input/styles.css.js +1 -1
- package/time-input/styles.scoped.css +2 -1
- package/time-input/styles.selectors.js +1 -1
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +25 -25
- package/toggle/styles.selectors.js +10 -10
- package/toggle-button/index.d.ts.map +1 -1
- package/toggle-button/index.js +1 -1
- package/toggle-button/index.js.map +1 -1
- package/toggle-button/internal.d.ts +2 -0
- package/toggle-button/internal.d.ts.map +1 -1
- package/toggle-button/internal.js +2 -2
- package/toggle-button/internal.js.map +1 -1
- package/toggle-button/styles.css.js +4 -4
- package/toggle-button/styles.scoped.css +5 -4
- package/toggle-button/styles.selectors.js +4 -4
- package/token/dismiss-button.d.ts +13 -3
- package/token/dismiss-button.d.ts.map +1 -1
- package/token/dismiss-button.js +6 -22
- package/token/dismiss-button.js.map +1 -1
- package/token/index.d.ts.map +1 -1
- package/token/index.js +1 -1
- package/token/index.js.map +1 -1
- package/token/internal.d.ts +6 -0
- package/token/internal.d.ts.map +1 -1
- package/token/internal.js +3 -3
- package/token/internal.js.map +1 -1
- package/token/styles.css.js +14 -14
- package/token/styles.d.ts +26 -1
- package/token/styles.d.ts.map +1 -1
- package/token/styles.js +22 -12
- package/token/styles.js.map +1 -1
- package/token/styles.scoped.css +67 -61
- package/token/styles.selectors.js +14 -14
- package/tooltip/internal.d.ts +6 -0
- package/tooltip/internal.d.ts.map +1 -1
- package/tooltip/internal.js +2 -2
- package/tooltip/internal.js.map +1 -1
- package/tooltip/styles.css.js +2 -2
- package/tooltip/styles.scoped.css +7 -5
- package/tooltip/styles.selectors.js +2 -2
- package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts +1 -1
- package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts.map +1 -1
- package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.js.map +1 -1
- package/tutorial-panel/components/tutorial-detail-view/index.d.ts +1 -1
- package/tutorial-panel/components/tutorial-detail-view/index.d.ts.map +1 -1
- package/tutorial-panel/components/tutorial-detail-view/index.js.map +1 -1
- package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts +1 -1
- package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts.map +1 -1
- package/tutorial-panel/components/tutorial-detail-view/task-list.js.map +1 -1
- package/tutorial-panel/components/tutorial-detail-view/task.d.ts +1 -1
- package/tutorial-panel/components/tutorial-detail-view/task.d.ts.map +1 -1
- package/tutorial-panel/components/tutorial-detail-view/task.js +9 -5
- package/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
- package/tutorial-panel/components/tutorial-list/index.d.ts +1 -1
- package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
- package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
- package/tutorial-panel/index.d.ts.map +1 -1
- package/tutorial-panel/index.js +27 -1
- package/tutorial-panel/index.js.map +1 -1
- package/tutorial-panel/interfaces.d.ts +19 -18
- package/tutorial-panel/interfaces.d.ts.map +1 -1
- package/tutorial-panel/interfaces.js.map +1 -1
- package/internal/components/control-group/grouped-control-styles.d.ts.map +0 -1
- package/internal/components/control-group/grouped-control-styles.js.map +0 -1
- package/internal/components/control-group/index.d.ts.map +0 -1
- package/internal/components/control-group/index.js.map +0 -1
- package/internal/components/control-group/interfaces.d.ts.map +0 -1
- package/internal/components/control-group/interfaces.js.map +0 -1
- package/internal/components/control-group/styles.css.js +0 -32
- package/internal/components/control-group/styles.selectors.js +0 -33
- package/internal/components/control-group/test-classes/styles.css.js +0 -9
- package/internal/components/control-group/test-classes/styles.selectors.js +0 -10
- package/select/utils/use-load-items.d.ts +0 -18
- package/select/utils/use-load-items.d.ts.map +0 -1
- package/select/utils/use-load-items.js.map +0 -1
- package/test-utils/dom/internal/control-group.js.map +0 -1
- package/test-utils/selectors/internal/control-group.js.map +0 -1
- /package/{internal/components/control-group → control-group}/interfaces.js +0 -0
- /package/internal/{components/control-group → grouped-control}/grouped-control-styles.js +0 -0
- /package/test-utils/dom/{internal/control-group.d.ts → control-group/index.d.ts} +0 -0
- /package/test-utils/selectors/{internal/control-group.d.ts → control-group/index.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGpD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,cAAc,EAAE,qBAAqB,EACrC,gBAAgB,GAAG,CAAC,EACpB,eAAe,EAAE,sBAAsB,EACvC,WAAW,GAOZ;IACC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,MAAM,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE;QACtC,sBAAsB,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9D,CAAC,EAAE,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtC,MAAM,eAAe,GAAG,OAAO,CAC7B,GAAG,EAAE,CAAC,sBAAsB,IAAI,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,EACpG,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CACnC,CAAC;IAEF,OAAO,CACL;QACE,oBAAC,oBAAoB,IAAC,IAAI,EAAC,IAAI;YAC7B,6BAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC;gBACtC,oBAAC,cAAc,IACb,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,WAAW,CAAC,iBAAiB,EACxC,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAC,YAAY,GACrB;gBAEF,oBAAC,WAAW,IACV,OAAO,EAAC,IAAI,EACZ,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EAC/C,OAAO,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EACvB,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,IAEpB,QAAQ,CAAC,KAAK,CACH,CACV;YACN;gBACE,oBAAC,kBAAkB,QAChB,QAAQ,CAAC,SAAS,IAAI,CACrB,oBAAC,oBAAoB,IAAC,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,IAC7E,QAAQ,CAAC,0BAA0B,CACf,CACxB,CACkB;gBACpB,CAAC,QAAQ,CAAC,SAAS,IAAI,CACtB,oBAAC,QAAQ,IACP,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,gBAAgB,EACxC,WAAW,EAAE,WAAW,GACxB,CACH,CACG,CACe,CACtB,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useMemo } from 'react';\n\nimport { HotspotContext } from '../../../annotation-context/context';\nimport InternalBox from '../../../box/internal';\nimport { InternalButton } from '../../../button/internal';\nimport { fireNonCancelableEvent } from '../../../internal/events/index';\nimport { useVisualRefresh } from '../../../internal/hooks/use-visual-mode';\nimport InternalLiveRegion from '../../../live-region/internal';\nimport InternalSpaceBetween from '../../../space-between/internal';\nimport { TutorialPanelProps } from '../../interfaces';\nimport { CongratulationScreen } from './congratulation-screen';\nimport { TaskList } from './task-list';\n\nimport styles from './styles.css.js';\n\nexport default function TutorialDetailView({\n tutorial,\n onExitTutorial: onExitTutorialHandler,\n currentStepIndex = 0,\n onFeedbackClick: onFeedbackClickHandler,\n i18nStrings,\n}: {\n tutorial: TutorialPanelProps.Tutorial;\n onExitTutorial: HotspotContext['onExitTutorial'];\n currentStepIndex: HotspotContext['currentStepIndex'];\n onFeedbackClick: TutorialPanelProps['onFeedbackClick'];\n i18nStrings: TutorialPanelProps
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGpD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QA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ACpB,CAAC,QAAQ,CAAC,SAAS,IAAI,CACtB,oBAAC,QAAQ,IACP,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,gBAAgB,EACxC,WAAW,EAAE,WAAW,GACxB,CACH,CACG,CACe,CACtB,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useMemo } from 'react';\n\nimport { HotspotContext } from '../../../annotation-context/context';\nimport InternalBox from '../../../box/internal';\nimport { InternalButton } from '../../../button/internal';\nimport { fireNonCancelableEvent } from '../../../internal/events/index';\nimport { useVisualRefresh } from '../../../internal/hooks/use-visual-mode';\nimport InternalLiveRegion from '../../../live-region/internal';\nimport InternalSpaceBetween from '../../../space-between/internal';\nimport { TutorialPanelProps } from '../../interfaces';\nimport { CongratulationScreen } from './congratulation-screen';\nimport { TaskList } from './task-list';\n\nimport styles from './styles.css.js';\n\nexport default function TutorialDetailView({\n tutorial,\n onExitTutorial: onExitTutorialHandler,\n currentStepIndex = 0,\n onFeedbackClick: onFeedbackClickHandler,\n i18nStrings,\n}: {\n tutorial: TutorialPanelProps.Tutorial;\n onExitTutorial: HotspotContext['onExitTutorial'];\n currentStepIndex: HotspotContext['currentStepIndex'];\n onFeedbackClick: TutorialPanelProps['onFeedbackClick'];\n i18nStrings: TutorialPanelProps.I18nStrings;\n}) {\n const isRefresh = useVisualRefresh();\n\n const onExitTutorial = useCallback(() => {\n fireNonCancelableEvent(onExitTutorialHandler, { tutorial });\n }, [onExitTutorialHandler, tutorial]);\n\n const onFeedbackClick = useMemo(\n () => onFeedbackClickHandler && (() => fireNonCancelableEvent(onFeedbackClickHandler, { tutorial })),\n [onFeedbackClickHandler, tutorial]\n );\n\n return (\n <>\n <InternalSpaceBetween size=\"xl\">\n <div className={styles['tutorial-title']}>\n <InternalButton\n variant=\"icon\"\n onClick={onExitTutorial}\n ariaLabel={i18nStrings.labelExitTutorial}\n formAction=\"none\"\n iconName=\"arrow-left\"\n />\n\n <InternalBox\n variant=\"h2\"\n fontSize={isRefresh ? 'heading-m' : 'heading-l'}\n padding={{ top: 'xxs' }}\n margin={{ left: 's' }}\n >\n {tutorial.title}\n </InternalBox>\n </div>\n <div>\n <InternalLiveRegion>\n {tutorial.completed && (\n <CongratulationScreen onFeedbackClick={onFeedbackClick} i18nStrings={i18nStrings}>\n {tutorial.completedScreenDescription}\n </CongratulationScreen>\n )}\n </InternalLiveRegion>\n {!tutorial.completed && (\n <TaskList\n tasks={tutorial.tasks}\n onExitTutorial={onExitTutorial}\n currentGlobalStepIndex={currentStepIndex}\n i18nStrings={i18nStrings}\n />\n )}\n </div>\n </InternalSpaceBetween>\n </>\n );\n}\n"]}
|
|
@@ -4,7 +4,7 @@ interface TaskListProps {
|
|
|
4
4
|
tasks: ReadonlyArray<TutorialPanelProps.Task>;
|
|
5
5
|
onExitTutorial: () => void;
|
|
6
6
|
currentGlobalStepIndex: HotspotContext['currentStepIndex'];
|
|
7
|
-
i18nStrings: TutorialPanelProps
|
|
7
|
+
i18nStrings: TutorialPanelProps.I18nStrings;
|
|
8
8
|
}
|
|
9
9
|
export declare function TaskList({
|
|
10
10
|
tasks,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-list.d.ts","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/task-list.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAKrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAKtD,UAAU,aAAa;IACrB,KAAK,EAAE,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC9C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,sBAAsB,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAC3D,WAAW,EAAE,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"task-list.d.ts","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/task-list.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAKrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAKtD,UAAU,aAAa;IACrB,KAAK,EAAE,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC9C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,sBAAsB,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAC3D,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC;CAC7C;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,WAAW,EAAE,EAAE,aAAa,eAmCrG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-list.js","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/task-list.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AASrC,MAAM,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,WAAW,EAAiB;IACpG,MAAM,gBAAgB,GAAG,WAAW,CAAC,KAAK,EAAE,sBAAsB,aAAtB,sBAAsB,cAAtB,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AC,yBAAyB,CACvB,CACL,CACO,CACxB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useState } from 'react';\n\nimport { HotspotContext } from '../../../annotation-context/context';\nimport { getStepInfo } from '../../../annotation-context/utils';\nimport InternalBox from '../../../box/internal';\nimport { InternalButton } from '../../../button/internal';\nimport InternalSpaceBetween from '../../../space-between/internal';\nimport { TutorialPanelProps } from '../../interfaces';\nimport { Task } from './task';\n\nimport styles from './styles.css.js';\n\ninterface TaskListProps {\n tasks: ReadonlyArray<TutorialPanelProps.Task>;\n onExitTutorial: () => void;\n currentGlobalStepIndex: HotspotContext['currentStepIndex'];\n i18nStrings: TutorialPanelProps
|
|
1
|
+
{"version":3,"file":"task-list.js","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/task-list.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AASrC,MAAM,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,WAAW,EAAiB;IACpG,MAAM,gBAAgB,GAAG,WAAW,CAAC,KAAK,EAAE,sBAAsB,aAAtB,sBAAsB,cAAtB,sBAAsB,GAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACnF,MAAM,CAAC,aAAa,EAAE,gBAA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. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useState } from 'react';\n\nimport { HotspotContext } from '../../../annotation-context/context';\nimport { getStepInfo } from '../../../annotation-context/utils';\nimport InternalBox from '../../../box/internal';\nimport { InternalButton } from '../../../button/internal';\nimport InternalSpaceBetween from '../../../space-between/internal';\nimport { TutorialPanelProps } from '../../interfaces';\nimport { Task } from './task';\n\nimport styles from './styles.css.js';\n\ninterface TaskListProps {\n tasks: ReadonlyArray<TutorialPanelProps.Task>;\n onExitTutorial: () => void;\n currentGlobalStepIndex: HotspotContext['currentStepIndex'];\n i18nStrings: TutorialPanelProps.I18nStrings;\n}\n\nexport function TaskList({ tasks, onExitTutorial, currentGlobalStepIndex, i18nStrings }: TaskListProps) {\n const currentTaskIndex = getStepInfo(tasks, currentGlobalStepIndex ?? 0).taskIndex;\n const [expandedTasks, setExpandedTasks] = useState({ [currentTaskIndex]: true });\n\n const onToggleExpand = useCallback((stepIndex: number) => {\n setExpandedTasks(prevTasks => ({ ...prevTasks, [stepIndex]: !prevTasks[stepIndex] }));\n }, []);\n\n // When the user progresses to a different task, all tasks except this one are collapsed.\n useEffect(() => {\n setExpandedTasks({ [currentTaskIndex]: true });\n }, [currentTaskIndex]);\n\n return (\n <InternalSpaceBetween size=\"xxl\">\n <ol className={styles['tutorial-list']}>\n {tasks.map((task, index) => (\n <Task\n task={task}\n key={index}\n taskIndex={index}\n currentTaskIndex={currentTaskIndex}\n expanded={expandedTasks[index] ?? false}\n onToggleExpand={onToggleExpand}\n i18nStrings={i18nStrings}\n />\n ))}\n </ol>\n <InternalBox margin={{ top: 'xxxs' }}>\n <InternalButton onClick={onExitTutorial} formAction=\"none\" className={styles['dismiss-button']}>\n {i18nStrings.dismissTutorialButtonText}\n </InternalButton>\n </InternalBox>\n </InternalSpaceBetween>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/task.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AActD,UAAU,SAAS;IACjB,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/task.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AActD,UAAU,SAAS;IACjB,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC;CAC7C;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,EAAE,SAAS,eA6D3G"}
|
|
@@ -17,6 +17,7 @@ function getStatusIndicatorType(taskIndex, currentTaskIndex) {
|
|
|
17
17
|
return 'pending';
|
|
18
18
|
}
|
|
19
19
|
export function Task({ task, taskIndex, currentTaskIndex, expanded, onToggleExpand, i18nStrings }) {
|
|
20
|
+
var _a, _b, _c, _d, _e;
|
|
20
21
|
const statusIndicatorType = getStatusIndicatorType(taskIndex, currentTaskIndex);
|
|
21
22
|
const onExpandChange = useCallback(() => {
|
|
22
23
|
onToggleExpand(taskIndex);
|
|
@@ -24,11 +25,14 @@ export function Task({ task, taskIndex, currentTaskIndex, expanded, onToggleExpa
|
|
|
24
25
|
return (React.createElement("li", { className: styles.task },
|
|
25
26
|
React.createElement(InternalSpaceBetween, { size: "xxs" },
|
|
26
27
|
React.createElement("div", { className: styles['task-title'] },
|
|
27
|
-
React.createElement(InternalStatusIndicator, { __size: "inherit", type: statusIndicatorType, iconAriaLabel: i18nStrings.labelsTaskStatus[statusIndicatorType], className: styles['task-title--status'] }),
|
|
28
|
-
React.createElement(InternalBox, { variant: "h3", padding: { left: 'xxxs', vertical: 'n' }, fontSize: "heading-s", color: taskIndex < currentTaskIndex ? 'text-status-success' : 'text-status-inactive' }, i18nStrings.taskTitle(taskIndex, task.title))),
|
|
28
|
+
React.createElement(InternalStatusIndicator, { __size: "inherit", type: statusIndicatorType, iconAriaLabel: (_a = i18nStrings.labelsTaskStatus) === null || _a === void 0 ? void 0 : _a[statusIndicatorType], className: styles['task-title--status'] }),
|
|
29
|
+
React.createElement(InternalBox, { variant: "h3", padding: { left: 'xxxs', vertical: 'n' }, fontSize: "heading-s", color: taskIndex < currentTaskIndex ? 'text-status-success' : 'text-status-inactive' }, (_b = i18nStrings.taskTitle) === null || _b === void 0 ? void 0 : _b.call(i18nStrings, taskIndex, task.title))),
|
|
29
30
|
React.createElement("div", { className: styles['expandable-section-wrapper'] },
|
|
30
|
-
React.createElement(InternalExpandableSection, { header: React.createElement("span", { className: styles['expandable-section-header'] }, i18nStrings.labelTotalSteps(task.steps.length)), expanded: expanded, onChange: onExpandChange, headerAriaLabel: joinStrings(i18nStrings.taskTitle(taskIndex, task.title), i18nStrings.labelTotalSteps(task.steps.length)) },
|
|
31
|
-
React.createElement("ol", { className: styles['step-list'] }, task.steps.map((step, stepIndex) =>
|
|
32
|
-
|
|
31
|
+
React.createElement(InternalExpandableSection, { header: React.createElement("span", { className: styles['expandable-section-header'] }, (_c = i18nStrings.labelTotalSteps) === null || _c === void 0 ? void 0 : _c.call(i18nStrings, task.steps.length)), expanded: expanded, onChange: onExpandChange, headerAriaLabel: joinStrings((_d = i18nStrings.taskTitle) === null || _d === void 0 ? void 0 : _d.call(i18nStrings, taskIndex, task.title), (_e = i18nStrings.labelTotalSteps) === null || _e === void 0 ? void 0 : _e.call(i18nStrings, task.steps.length)) },
|
|
32
|
+
React.createElement("ol", { className: styles['step-list'] }, task.steps.map((step, stepIndex) => {
|
|
33
|
+
var _a;
|
|
34
|
+
return (React.createElement("li", { key: stepIndex, className: styles.step },
|
|
35
|
+
React.createElement(InternalBox, { color: "text-body-secondary", fontSize: "body-m", padding: { left: 'l' }, className: styles['step-title'] }, (_a = i18nStrings.stepTitle) === null || _a === void 0 ? void 0 : _a.call(i18nStrings, stepIndex, step.title))));
|
|
36
|
+
})))))));
|
|
33
37
|
}
|
|
34
38
|
//# sourceMappingURL=task.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-detail-view/task.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,yBAAyB,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AAGzE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,SAAS,sBAAsB,CAAC,SAAiB,EAAE,gBAAwB;IACzE,IAAI,SAAS,GAAG,gBAAgB,EAAE,CAAC;QACjC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,SAAS,KAAK,gBAAgB,EAAE,CAAC;QACnC,OAAO,aAAa,CAAC;IACvB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAWD,MAAM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V,KAAK,EAAC,qBAAqB,EAC3B,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EACtB,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,IAE9B,MAAA,WAAW,CAAC,SAAS,4DAAG,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,CACnC,CACX,CACN,CAAA;qBAAA,CAAC,CACC,CACqB,CACxB,CACe,CACpB,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback } from 'react';\n\nimport InternalBox from '../../../box/internal';\nimport InternalExpandableSection from '../../../expandable-section/internal';\nimport { joinStrings } from '../../../internal/utils/strings/join-strings.js';\nimport InternalSpaceBetween from '../../../space-between/internal';\nimport InternalStatusIndicator from '../../../status-indicator/internal';\nimport { TutorialPanelProps } from '../../interfaces';\n\nimport styles from './styles.css.js';\n\nfunction getStatusIndicatorType(taskIndex: number, currentTaskIndex: number) {\n if (taskIndex < currentTaskIndex) {\n return 'success';\n }\n if (taskIndex === currentTaskIndex) {\n return 'in-progress';\n }\n return 'pending';\n}\n\ninterface TaskProps {\n task: TutorialPanelProps.Task;\n taskIndex: number;\n currentTaskIndex: number;\n expanded: boolean;\n onToggleExpand: (step: number) => void;\n i18nStrings: TutorialPanelProps.I18nStrings;\n}\n\nexport function Task({ task, taskIndex, currentTaskIndex, expanded, onToggleExpand, i18nStrings }: TaskProps) {\n const statusIndicatorType = getStatusIndicatorType(taskIndex, currentTaskIndex);\n\n const onExpandChange = useCallback(() => {\n onToggleExpand(taskIndex);\n }, [onToggleExpand, taskIndex]);\n\n return (\n <li className={styles.task}>\n <InternalSpaceBetween size=\"xxs\">\n <div className={styles['task-title']}>\n <InternalStatusIndicator\n __size=\"inherit\"\n type={statusIndicatorType}\n iconAriaLabel={i18nStrings.labelsTaskStatus?.[statusIndicatorType]}\n className={styles['task-title--status']}\n />\n\n <InternalBox\n variant=\"h3\"\n padding={{ left: 'xxxs', vertical: 'n' }}\n fontSize=\"heading-s\"\n color={taskIndex < currentTaskIndex ? 'text-status-success' : 'text-status-inactive'}\n >\n {i18nStrings.taskTitle?.(taskIndex, task.title)}\n </InternalBox>\n </div>\n\n <div className={styles['expandable-section-wrapper']}>\n <InternalExpandableSection\n header={\n <span className={styles['expandable-section-header']}>\n {i18nStrings.labelTotalSteps?.(task.steps.length)}\n </span>\n }\n expanded={expanded}\n onChange={onExpandChange}\n headerAriaLabel={joinStrings(\n i18nStrings.taskTitle?.(taskIndex, task.title),\n i18nStrings.labelTotalSteps?.(task.steps.length)\n )}\n >\n <ol className={styles['step-list']}>\n {task.steps.map((step, stepIndex) => (\n <li key={stepIndex} className={styles.step}>\n <InternalBox\n color=\"text-body-secondary\"\n fontSize=\"body-m\"\n padding={{ left: 'l' }}\n className={styles['step-title']}\n >\n {i18nStrings.stepTitle?.(stepIndex, step.title)}\n </InternalBox>\n </li>\n ))}\n </ol>\n </InternalExpandableSection>\n </div>\n </InternalSpaceBetween>\n </li>\n );\n}\n"]}
|
|
@@ -4,7 +4,7 @@ interface TutorialListProps {
|
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
tutorials: TutorialPanelProps['tutorials'];
|
|
6
6
|
onStartTutorial: HotspotContext['onStartTutorial'];
|
|
7
|
-
i18nStrings: TutorialPanelProps
|
|
7
|
+
i18nStrings: TutorialPanelProps.I18nStrings;
|
|
8
8
|
downloadUrl: TutorialPanelProps['downloadUrl'];
|
|
9
9
|
headingId?: string;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-list/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAWxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAItD,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3C,eAAe,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;IACnD,WAAW,EAAE,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-list/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAWxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAItD,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3C,eAAe,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;IACnD,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC;IAC5C,WAAW,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,SAAS,EACT,OAAe,EACf,eAAe,EACf,WAAW,EACX,SAAS,GACV,EAAE,iBAAiB,eAmDnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-list/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAEpD,OAAO,WA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C,EAC9B,OAAO,QAAQ,CAAC,WAAW,KAAK,QAAQ,IAAI,MAAM,CAAC,gCAAgC,CAAC,CACrF,IAEA,QAAQ,CAAC,WAAW,CACjB,CACM;4BACb,QAAQ,CAAC,YAAY,IAAI,CACxB,oBAAC,YAAY,IACX,IAAI,EAAE,QAAQ,CAAC,YAAY,EAC3B,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EACpC,qBAAqB,EAAE,WAAW,CAAC,0BAA0B,EAC7D,SAAS,EAAE,WAAW,CAAC,kBAAkB,EACzC,QAAQ,EAAE,IAAI,EACd,OAAO,EAAC,SAAS,IAEhB,WAAW,CAAC,iBAAiB,CACjB,CAChB,CACoB,CACF;oBAEvB,oBAAC,WAAW,IAAC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;wBACpC,oBAAC,cAAc,IACb,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAA,QAAQ,CAAC,mBAAmB,mCAAI,KAAK,EAC/C,UAAU,EAAC,MAAM,EACjB,SAAS,EAAE,MAAM,CAAC,KAAK,IAEtB,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAClF,CACL,CACO,CACnB,CACQ,CACb,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useRef, useState } from 'react';\nimport { CSSTransition } from 'react-transition-group';\nimport clsx from 'clsx';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalAlert from '../../../alert/internal';\nimport { HotspotContext } from '../../../annotation-context/context.js';\nimport InternalBox from '../../../box/internal';\nimport { InternalButton } from '../../../button/internal';\nimport InternalIcon from '../../../icon/internal';\nimport { fireNonCancelableEvent } from '../../../internal/events/index.js';\nimport { useVisualRefresh } from '../../../internal/hooks/use-visual-mode';\nimport { checkSafeUrl } from '../../../internal/utils/check-safe-url';\nimport InternalLink from '../../../link/internal';\nimport InternalLiveRegion from '../../../live-region/internal';\nimport InternalSpaceBetween from '../../../space-between/internal';\nimport InternalStatusIndicator from '../../../status-indicator/internal';\nimport { TutorialPanelProps } from '../../interfaces';\n\nimport styles from './styles.css.js';\n\ninterface TutorialListProps {\n loading?: boolean;\n tutorials: TutorialPanelProps['tutorials'];\n onStartTutorial: HotspotContext['onStartTutorial'];\n i18nStrings: TutorialPanelProps['i18nStrings'];\n downloadUrl: TutorialPanelProps['downloadUrl'];\n headingId?: string;\n}\n\nexport default function TutorialList({\n i18nStrings,\n tutorials,\n loading = false,\n onStartTutorial,\n downloadUrl,\n headingId,\n}: TutorialListProps) {\n checkSafeUrl('TutorialPanel', downloadUrl);\n\n const isRefresh = useVisualRefresh();\n\n return (\n <>\n <InternalSpaceBetween size=\"s\">\n <InternalSpaceBetween size=\"m\">\n <InternalBox\n variant=\"h2\"\n fontSize={isRefresh ? 'heading-m' : 'heading-l'}\n padding={{ bottom: 'n' }}\n id={headingId}\n >\n {i18nStrings.tutorialListTitle}\n </InternalBox>\n <InternalBox variant=\"p\" color=\"text-body-secondary\" padding=\"n\">\n {i18nStrings.tutorialListDescription}\n </InternalBox>\n </InternalSpaceBetween>\n <InternalSpaceBetween size=\"l\">\n {downloadUrl && (\n <a\n href={downloadUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={styles['download-link']}\n aria-label={i18nStrings.labelTutorialListDownloadLink}\n >\n <InternalIcon name=\"download\" />\n <InternalBox padding={{ left: 'xs' }} color=\"inherit\" fontWeight=\"bold\" display=\"inline\">\n {i18nStrings.tutorialListDownloadLinkText}\n </InternalBox>\n </a>\n )}\n {loading ? (\n <InternalStatusIndicator type=\"loading\">\n <InternalLiveRegion tagName=\"span\">{i18nStrings.loadingText}</InternalLiveRegion>\n </InternalStatusIndicator>\n ) : (\n <ul className={styles['tutorial-list']} role=\"list\">\n {tutorials.map((tutorial, index) => (\n <Tutorial tutorial={tutorial} key={index} onStartTutorial={onStartTutorial} i18nStrings={i18nStrings} />\n ))}\n </ul>\n )}\n </InternalSpaceBetween>\n </InternalSpaceBetween>\n </>\n );\n}\n\nfunction Tutorial({\n tutorial,\n onStartTutorial: onStartTutorialEventHandler,\n i18nStrings,\n}: {\n tutorial: TutorialPanelProps.Tutorial;\n onStartTutorial: HotspotContext['onStartTutorial'];\n i18nStrings: TutorialPanelProps['i18nStrings'];\n}) {\n checkSafeUrl('TutorialPanel', tutorial.learnMoreUrl);\n const controlId = useUniqueId();\n const triggerControldId = useUniqueId();\n const headerId = useUniqueId();\n\n const isRefresh = useVisualRefresh();\n\n const onStartTutorial = useCallback(() => {\n fireNonCancelableEvent(onStartTutorialEventHandler, { tutorial });\n }, [onStartTutorialEventHandler, tutorial]);\n\n const [expanded, setExpanded] = useState(!tutorial.prerequisitesNeeded && !tutorial.completed);\n\n const expandableSectionRef = useRef<HTMLDivElement>(null);\n\n const onClick = useCallback(() => {\n setExpanded(expanded => !expanded);\n }, []);\n\n return (\n <li className={styles['tutorial-box']} role=\"listitem\">\n <InternalSpaceBetween size=\"xs\">\n <div className={styles['tutorial-box-title']}>\n <InternalBox\n variant=\"h3\"\n fontSize={isRefresh ? 'heading-s' : 'heading-m'}\n id={headerId}\n margin={{ right: 'xs' }}\n padding=\"n\"\n className={styles.title}\n >\n {tutorial.title}\n </InternalBox>\n <div className={styles['button-wrapper']}>\n <InternalButton\n id={triggerControldId}\n variant=\"icon\"\n ariaExpanded={expanded}\n nativeButtonAttributes={{\n 'aria-controls': controlId,\n 'aria-labelledby': headerId,\n }}\n formAction=\"none\"\n onClick={onClick}\n className={expanded ? styles['collapse-button'] : styles['expand-button']}\n iconName={expanded ? 'angle-up' : 'angle-down'}\n />\n </div>\n </div>\n\n {tutorial.completed ? (\n <InternalStatusIndicator __size=\"inherit\" type=\"success\" className={styles.completed} wrapText={true}>\n {i18nStrings.tutorialCompletedText}\n </InternalStatusIndicator>\n ) : null}\n </InternalSpaceBetween>\n\n <CSSTransition\n in={expanded}\n timeout={30}\n classNames={{ enter: styles['content-enter'] }}\n nodeRef={expandableSectionRef}\n >\n <div\n className={clsx(styles['expandable-section'], expanded && styles.expanded)}\n id={controlId}\n ref={expandableSectionRef}\n >\n <InternalSpaceBetween size=\"l\">\n <InternalSpaceBetween size=\"m\">\n {tutorial.prerequisitesNeeded && tutorial.prerequisitesAlert && (\n <InternalAlert type=\"info\" className={styles['prerequisites-alert']}>\n {tutorial.prerequisitesAlert}\n </InternalAlert>\n )}\n <InternalSpaceBetween size=\"s\">\n <InternalBox color=\"text-body-secondary\">\n <div\n className={clsx(\n styles['tutorial-description'],\n typeof tutorial.description === 'string' && styles['tutorial-description-plaintext']\n )}\n >\n {tutorial.description}\n </div>\n </InternalBox>\n {tutorial.learnMoreUrl && (\n <InternalLink\n href={tutorial.learnMoreUrl}\n className={styles['learn-more-link']}\n externalIconAriaLabel={i18nStrings.labelLearnMoreExternalIcon}\n ariaLabel={i18nStrings.labelLearnMoreLink}\n external={true}\n variant=\"primary\"\n >\n {i18nStrings.learnMoreLinkText}\n </InternalLink>\n )}\n </InternalSpaceBetween>\n </InternalSpaceBetween>\n\n <InternalBox margin={{ bottom: 'xxs' }}>\n <InternalButton\n onClick={onStartTutorial}\n disabled={tutorial.prerequisitesNeeded ?? false}\n formAction=\"none\"\n className={styles.start}\n >\n {tutorial.completed ? i18nStrings.restartTutorialButtonText : i18nStrings.startTutorialButtonText}\n </InternalButton>\n </InternalBox>\n </InternalSpaceBetween>\n </div>\n </CSSTransition>\n </li>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tutorial-panel/components/tutorial-list/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,aAAa,EA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,CACd,CACjB;wBACD,oBAAC,oBAAoB,IAAC,IAAI,EAAC,GAAG;4BAC5B,oBAAC,WAAW,IAAC,KAAK,EAAC,qBAAqB;gCACtC,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,sBAAsB,CAAC,EAC9B,OAAO,QAAQ,CAAC,WAAW,KAAK,QAAQ,IAAI,MAAM,CAAC,gCAAgC,CAAC,CACrF,IAEA,QAAQ,CAAC,WAAW,CACjB,CACM;4BACb,QAAQ,CAAC,YAAY,IAAI,CACxB,oBAAC,YAAY,IACX,IAAI,EAAE,QAAQ,CAAC,YAAY,EAC3B,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EACpC,qBAAqB,EAAE,WAAW,CAAC,0BAA0B,EAC7D,SAAS,EAAE,WAAW,CAAC,kBAAkB,EACzC,QAAQ,EAAE,IAAI,EACd,OAAO,EAAC,SAAS,IAEhB,WAAW,CAAC,iBAAiB,CACjB,CAChB,CACoB,CACF;oBAEvB,oBAAC,WAAW,IAAC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;wBACpC,oBAAC,cAAc,IACb,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAA,QAAQ,CAAC,mBAAmB,mCAAI,KAAK,EAC/C,UAAU,EAAC,MAAM,EACjB,SAAS,EAAE,MAAM,CAAC,KAAK,IAEtB,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAClF,CACL,CACO,CACnB,CACQ,CACb,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useRef, useState } from 'react';\nimport { CSSTransition } from 'react-transition-group';\nimport clsx from 'clsx';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalAlert from '../../../alert/internal';\nimport { HotspotContext } from '../../../annotation-context/context.js';\nimport InternalBox from '../../../box/internal';\nimport { InternalButton } from '../../../button/internal';\nimport InternalIcon from '../../../icon/internal';\nimport { fireNonCancelableEvent } from '../../../internal/events/index.js';\nimport { useVisualRefresh } from '../../../internal/hooks/use-visual-mode';\nimport { checkSafeUrl } from '../../../internal/utils/check-safe-url';\nimport InternalLink from '../../../link/internal';\nimport InternalLiveRegion from '../../../live-region/internal';\nimport InternalSpaceBetween from '../../../space-between/internal';\nimport InternalStatusIndicator from '../../../status-indicator/internal';\nimport { TutorialPanelProps } from '../../interfaces';\n\nimport styles from './styles.css.js';\n\ninterface TutorialListProps {\n loading?: boolean;\n tutorials: TutorialPanelProps['tutorials'];\n onStartTutorial: HotspotContext['onStartTutorial'];\n i18nStrings: TutorialPanelProps.I18nStrings;\n downloadUrl: TutorialPanelProps['downloadUrl'];\n headingId?: string;\n}\n\nexport default function TutorialList({\n i18nStrings,\n tutorials,\n loading = false,\n onStartTutorial,\n downloadUrl,\n headingId,\n}: TutorialListProps) {\n checkSafeUrl('TutorialPanel', downloadUrl);\n\n const isRefresh = useVisualRefresh();\n\n return (\n <>\n <InternalSpaceBetween size=\"s\">\n <InternalSpaceBetween size=\"m\">\n <InternalBox\n variant=\"h2\"\n fontSize={isRefresh ? 'heading-m' : 'heading-l'}\n padding={{ bottom: 'n' }}\n id={headingId}\n >\n {i18nStrings.tutorialListTitle}\n </InternalBox>\n <InternalBox variant=\"p\" color=\"text-body-secondary\" padding=\"n\">\n {i18nStrings.tutorialListDescription}\n </InternalBox>\n </InternalSpaceBetween>\n <InternalSpaceBetween size=\"l\">\n {downloadUrl && (\n <a\n href={downloadUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={styles['download-link']}\n aria-label={i18nStrings.labelTutorialListDownloadLink}\n >\n <InternalIcon name=\"download\" />\n <InternalBox padding={{ left: 'xs' }} color=\"inherit\" fontWeight=\"bold\" display=\"inline\">\n {i18nStrings.tutorialListDownloadLinkText}\n </InternalBox>\n </a>\n )}\n {loading ? (\n <InternalStatusIndicator type=\"loading\">\n <InternalLiveRegion tagName=\"span\">{i18nStrings.loadingText}</InternalLiveRegion>\n </InternalStatusIndicator>\n ) : (\n <ul className={styles['tutorial-list']} role=\"list\">\n {tutorials.map((tutorial, index) => (\n <Tutorial tutorial={tutorial} key={index} onStartTutorial={onStartTutorial} i18nStrings={i18nStrings} />\n ))}\n </ul>\n )}\n </InternalSpaceBetween>\n </InternalSpaceBetween>\n </>\n );\n}\n\nfunction Tutorial({\n tutorial,\n onStartTutorial: onStartTutorialEventHandler,\n i18nStrings,\n}: {\n tutorial: TutorialPanelProps.Tutorial;\n onStartTutorial: HotspotContext['onStartTutorial'];\n i18nStrings: TutorialPanelProps.I18nStrings;\n}) {\n checkSafeUrl('TutorialPanel', tutorial.learnMoreUrl);\n const controlId = useUniqueId();\n const triggerControldId = useUniqueId();\n const headerId = useUniqueId();\n\n const isRefresh = useVisualRefresh();\n\n const onStartTutorial = useCallback(() => {\n fireNonCancelableEvent(onStartTutorialEventHandler, { tutorial });\n }, [onStartTutorialEventHandler, tutorial]);\n\n const [expanded, setExpanded] = useState(!tutorial.prerequisitesNeeded && !tutorial.completed);\n\n const expandableSectionRef = useRef<HTMLDivElement>(null);\n\n const onClick = useCallback(() => {\n setExpanded(expanded => !expanded);\n }, []);\n\n return (\n <li className={styles['tutorial-box']} role=\"listitem\">\n <InternalSpaceBetween size=\"xs\">\n <div className={styles['tutorial-box-title']}>\n <InternalBox\n variant=\"h3\"\n fontSize={isRefresh ? 'heading-s' : 'heading-m'}\n id={headerId}\n margin={{ right: 'xs' }}\n padding=\"n\"\n className={styles.title}\n >\n {tutorial.title}\n </InternalBox>\n <div className={styles['button-wrapper']}>\n <InternalButton\n id={triggerControldId}\n variant=\"icon\"\n ariaExpanded={expanded}\n nativeButtonAttributes={{\n 'aria-controls': controlId,\n 'aria-labelledby': headerId,\n }}\n formAction=\"none\"\n onClick={onClick}\n className={expanded ? styles['collapse-button'] : styles['expand-button']}\n iconName={expanded ? 'angle-up' : 'angle-down'}\n />\n </div>\n </div>\n\n {tutorial.completed ? (\n <InternalStatusIndicator __size=\"inherit\" type=\"success\" className={styles.completed} wrapText={true}>\n {i18nStrings.tutorialCompletedText}\n </InternalStatusIndicator>\n ) : null}\n </InternalSpaceBetween>\n\n <CSSTransition\n in={expanded}\n timeout={30}\n classNames={{ enter: styles['content-enter'] }}\n nodeRef={expandableSectionRef}\n >\n <div\n className={clsx(styles['expandable-section'], expanded && styles.expanded)}\n id={controlId}\n ref={expandableSectionRef}\n >\n <InternalSpaceBetween size=\"l\">\n <InternalSpaceBetween size=\"m\">\n {tutorial.prerequisitesNeeded && tutorial.prerequisitesAlert && (\n <InternalAlert type=\"info\" className={styles['prerequisites-alert']}>\n {tutorial.prerequisitesAlert}\n </InternalAlert>\n )}\n <InternalSpaceBetween size=\"s\">\n <InternalBox color=\"text-body-secondary\">\n <div\n className={clsx(\n styles['tutorial-description'],\n typeof tutorial.description === 'string' && styles['tutorial-description-plaintext']\n )}\n >\n {tutorial.description}\n </div>\n </InternalBox>\n {tutorial.learnMoreUrl && (\n <InternalLink\n href={tutorial.learnMoreUrl}\n className={styles['learn-more-link']}\n externalIconAriaLabel={i18nStrings.labelLearnMoreExternalIcon}\n ariaLabel={i18nStrings.labelLearnMoreLink}\n external={true}\n variant=\"primary\"\n >\n {i18nStrings.learnMoreLinkText}\n </InternalLink>\n )}\n </InternalSpaceBetween>\n </InternalSpaceBetween>\n\n <InternalBox margin={{ bottom: 'xxs' }}>\n <InternalButton\n onClick={onStartTutorial}\n disabled={tutorial.prerequisitesNeeded ?? false}\n formAction=\"none\"\n className={styles.start}\n >\n {tutorial.completed ? i18nStrings.restartTutorialButtonText : i18nStrings.startTutorialButtonText}\n </InternalButton>\n </InternalBox>\n </InternalSpaceBetween>\n </div>\n </CSSTransition>\n </li>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tutorial-panel/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tutorial-panel/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,WAAW,EACX,OAAO,EACP,SAAS,EACT,eAAe,EACf,WAAW,EACX,GAAG,SAAS,EACb,EAAE,kBAAkB,eA6FpB"}
|
package/tutorial-panel/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import React, { useContext, useRef } from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';
|
|
7
7
|
import { hotspotContext } from '../annotation-context/context';
|
|
8
|
+
import { useInternalI18n } from '../i18n/context';
|
|
8
9
|
import { getBaseProps } from '../internal/base-component';
|
|
9
10
|
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
10
11
|
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
@@ -12,11 +13,36 @@ import TutorialDetailView from './components/tutorial-detail-view';
|
|
|
12
13
|
import TutorialList from './components/tutorial-list';
|
|
13
14
|
import styles from './styles.css.js';
|
|
14
15
|
export default function TutorialPanel({ i18nStrings, loading, tutorials, onFeedbackClick, downloadUrl, ...restProps }) {
|
|
16
|
+
var _a, _b, _c;
|
|
15
17
|
const { __internalRootRef } = useBaseComponent('TutorialPanel');
|
|
16
18
|
const panelRef = useRef(null);
|
|
17
19
|
const headingId = useUniqueId();
|
|
18
20
|
const baseProps = getBaseProps(restProps);
|
|
19
21
|
const context = useContext(hotspotContext);
|
|
22
|
+
const i18n = useInternalI18n('tutorial-panel');
|
|
23
|
+
const resolvedI18nStrings = {
|
|
24
|
+
...i18nStrings,
|
|
25
|
+
loadingText: i18n('i18nStrings.loadingText', i18nStrings.loadingText),
|
|
26
|
+
tutorialListTitle: i18n('i18nStrings.tutorialListTitle', i18nStrings.tutorialListTitle),
|
|
27
|
+
tutorialListDownloadLinkText: i18n('i18nStrings.tutorialListDownloadLinkText', i18nStrings.tutorialListDownloadLinkText),
|
|
28
|
+
labelTutorialListDownloadLink: i18n('i18nStrings.labelTutorialListDownloadLink', i18nStrings.labelTutorialListDownloadLink),
|
|
29
|
+
tutorialCompletedText: i18n('i18nStrings.tutorialCompletedText', i18nStrings.tutorialCompletedText),
|
|
30
|
+
learnMoreLinkText: i18n('i18nStrings.learnMoreLinkText', i18nStrings.learnMoreLinkText),
|
|
31
|
+
startTutorialButtonText: i18n('i18nStrings.startTutorialButtonText', i18nStrings.startTutorialButtonText),
|
|
32
|
+
restartTutorialButtonText: i18n('i18nStrings.restartTutorialButtonText', i18nStrings.restartTutorialButtonText),
|
|
33
|
+
completionScreenTitle: i18n('i18nStrings.completionScreenTitle', i18nStrings.completionScreenTitle),
|
|
34
|
+
feedbackLinkText: i18n('i18nStrings.feedbackLinkText', i18nStrings.feedbackLinkText),
|
|
35
|
+
dismissTutorialButtonText: i18n('i18nStrings.dismissTutorialButtonText', i18nStrings.dismissTutorialButtonText),
|
|
36
|
+
labelExitTutorial: i18n('i18nStrings.labelExitTutorial', i18nStrings.labelExitTutorial),
|
|
37
|
+
taskTitle: i18n('i18nStrings.taskTitle', i18nStrings.taskTitle, format => (taskIndex, taskTitle) => format({ taskNumber: taskIndex + 1, taskTitle })),
|
|
38
|
+
stepTitle: i18n('i18nStrings.stepTitle', i18nStrings.stepTitle, format => (stepIndex, stepTitle) => format({ stepNumber: stepIndex + 1, stepTitle })),
|
|
39
|
+
labelTotalSteps: i18n('i18nStrings.labelTotalSteps', i18nStrings.labelTotalSteps, format => totalStepCount => format({ totalStepCount })),
|
|
40
|
+
labelsTaskStatus: {
|
|
41
|
+
pending: i18n('i18nStrings.labelsTaskStatus.pending', (_a = i18nStrings.labelsTaskStatus) === null || _a === void 0 ? void 0 : _a.pending),
|
|
42
|
+
'in-progress': i18n('i18nStrings.labelsTaskStatus.in-progress', (_b = i18nStrings.labelsTaskStatus) === null || _b === void 0 ? void 0 : _b['in-progress']),
|
|
43
|
+
success: i18n('i18nStrings.labelsTaskStatus.success', (_c = i18nStrings.labelsTaskStatus) === null || _c === void 0 ? void 0 : _c.success),
|
|
44
|
+
},
|
|
45
|
+
};
|
|
20
46
|
function handleExitTutorial(event) {
|
|
21
47
|
var _a;
|
|
22
48
|
context.onExitTutorial(event);
|
|
@@ -27,7 +53,7 @@ export default function TutorialPanel({ i18nStrings, loading, tutorials, onFeedb
|
|
|
27
53
|
React.createElement("div", { ...baseProps, className: clsx(baseProps.className, styles['tutorial-panel']), ref: mergedRef, tabIndex: -1, ...(!context.currentTutorial && {
|
|
28
54
|
role: 'region',
|
|
29
55
|
'aria-labelledby': headingId,
|
|
30
|
-
}) }, context.currentTutorial ? (React.createElement(TutorialDetailView, { i18nStrings:
|
|
56
|
+
}) }, context.currentTutorial ? (React.createElement(TutorialDetailView, { i18nStrings: resolvedI18nStrings, tutorial: context.currentTutorial, onExitTutorial: handleExitTutorial, currentStepIndex: context.currentStepIndex, onFeedbackClick: onFeedbackClick })) : (React.createElement(TutorialList, { i18nStrings: resolvedI18nStrings, tutorials: tutorials, loading: loading, onStartTutorial: context.onStartTutorial, downloadUrl: downloadUrl, headingId: headingId })))));
|
|
31
57
|
}
|
|
32
58
|
applyDisplayName(TutorialPanel, 'TutorialPanel');
|
|
33
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tutorial-panel/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,W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,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC,EAC9D,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,CAAC,CAAC,KAGR,CAAC,CAAC,OAAO,CAAC,eAAe,IAAI;gBAC/B,IAAI,EAAE,QAAQ;gBACd,iBAAiB,EAAE,SAAS;aAC7B,CAAC,IAED,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CACzB,oBAAC,kBAAkB,IACjB,WAAW,EAAE,mBAAmB,EAChC,QAAQ,EAAE,OAAO,CAAC,eAAe,EACjC,cAAc,EAAE,kBAAkB,EAClC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAC1C,eAAe,EAAE,eAAe,GAChC,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,YAAY,IACX,WAAW,EAAE,mBAAmB,EAChC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,OAAO,CAAC,eAAe,EACxC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,GACpB,CACH,CACG,CACL,CACJ,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React, { useContext, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport { hotspotContext } from '../annotation-context/context';\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { NonCancelableCustomEvent } from '../types/events';\nimport TutorialDetailView from './components/tutorial-detail-view';\nimport TutorialList from './components/tutorial-list';\nimport { TutorialPanelProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport { TutorialPanelProps };\n\nexport default function TutorialPanel({\n i18nStrings,\n loading,\n tutorials,\n onFeedbackClick,\n downloadUrl,\n ...restProps\n}: TutorialPanelProps) {\n const { __internalRootRef } = useBaseComponent('TutorialPanel');\n const panelRef = useRef<HTMLDivElement>(null);\n const headingId = useUniqueId();\n\n const baseProps = getBaseProps(restProps);\n const context = useContext(hotspotContext);\n\n const i18n = useInternalI18n('tutorial-panel');\n const resolvedI18nStrings: TutorialPanelProps.I18nStrings = {\n ...i18nStrings,\n loadingText: i18n('i18nStrings.loadingText', i18nStrings.loadingText),\n tutorialListTitle: i18n('i18nStrings.tutorialListTitle', i18nStrings.tutorialListTitle),\n tutorialListDownloadLinkText: i18n(\n 'i18nStrings.tutorialListDownloadLinkText',\n i18nStrings.tutorialListDownloadLinkText\n ),\n labelTutorialListDownloadLink: i18n(\n 'i18nStrings.labelTutorialListDownloadLink',\n i18nStrings.labelTutorialListDownloadLink\n ),\n tutorialCompletedText: i18n('i18nStrings.tutorialCompletedText', i18nStrings.tutorialCompletedText),\n learnMoreLinkText: i18n('i18nStrings.learnMoreLinkText', i18nStrings.learnMoreLinkText),\n startTutorialButtonText: i18n('i18nStrings.startTutorialButtonText', i18nStrings.startTutorialButtonText),\n restartTutorialButtonText: i18n('i18nStrings.restartTutorialButtonText', i18nStrings.restartTutorialButtonText),\n completionScreenTitle: i18n('i18nStrings.completionScreenTitle', i18nStrings.completionScreenTitle),\n feedbackLinkText: i18n('i18nStrings.feedbackLinkText', i18nStrings.feedbackLinkText),\n dismissTutorialButtonText: i18n('i18nStrings.dismissTutorialButtonText', i18nStrings.dismissTutorialButtonText),\n labelExitTutorial: i18n('i18nStrings.labelExitTutorial', i18nStrings.labelExitTutorial),\n taskTitle: i18n(\n 'i18nStrings.taskTitle',\n i18nStrings.taskTitle,\n format => (taskIndex, taskTitle) => format({ taskNumber: taskIndex + 1, taskTitle })\n ),\n stepTitle: i18n(\n 'i18nStrings.stepTitle',\n i18nStrings.stepTitle,\n format => (stepIndex, stepTitle) => format({ stepNumber: stepIndex + 1, stepTitle })\n ),\n labelTotalSteps: i18n(\n 'i18nStrings.labelTotalSteps',\n i18nStrings.labelTotalSteps,\n format => totalStepCount => format({ totalStepCount })\n ),\n labelsTaskStatus: {\n pending: i18n('i18nStrings.labelsTaskStatus.pending', i18nStrings.labelsTaskStatus?.pending),\n 'in-progress': i18n('i18nStrings.labelsTaskStatus.in-progress', i18nStrings.labelsTaskStatus?.['in-progress']),\n success: i18n('i18nStrings.labelsTaskStatus.success', i18nStrings.labelsTaskStatus?.success),\n },\n };\n\n function handleExitTutorial(event: NonCancelableCustomEvent<TutorialPanelProps.TutorialDetail>) {\n context.onExitTutorial(event);\n panelRef.current?.focus();\n }\n\n const mergedRef = useMergeRefs(panelRef, __internalRootRef);\n\n return (\n <>\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles['tutorial-panel'])}\n ref={mergedRef}\n tabIndex={-1}\n // Adding attributes conditionally since we don't want to point to\n // a non existent header in the aria-labelledby\n {...(!context.currentTutorial && {\n role: 'region',\n 'aria-labelledby': headingId,\n })}\n >\n {context.currentTutorial ? (\n <TutorialDetailView\n i18nStrings={resolvedI18nStrings}\n tutorial={context.currentTutorial}\n onExitTutorial={handleExitTutorial}\n currentStepIndex={context.currentStepIndex}\n onFeedbackClick={onFeedbackClick}\n />\n ) : (\n <TutorialList\n i18nStrings={resolvedI18nStrings}\n tutorials={tutorials}\n loading={loading}\n onStartTutorial={context.onStartTutorial}\n downloadUrl={downloadUrl}\n headingId={headingId}\n />\n )}\n </div>\n </>\n );\n}\n\napplyDisplayName(TutorialPanel, 'TutorialPanel');\n"]}
|
|
@@ -57,6 +57,7 @@ export interface TutorialPanelProps extends BaseComponentProps {
|
|
|
57
57
|
downloadUrl?: string;
|
|
58
58
|
/**
|
|
59
59
|
* An object containing all the necessary localized strings required by the component.
|
|
60
|
+
* @i18n
|
|
60
61
|
*/
|
|
61
62
|
i18nStrings: TutorialPanelProps.I18nStrings;
|
|
62
63
|
/**
|
|
@@ -159,26 +160,26 @@ export declare namespace TutorialPanelProps {
|
|
|
159
160
|
hotspotId: string;
|
|
160
161
|
}
|
|
161
162
|
interface I18nStrings {
|
|
162
|
-
loadingText
|
|
163
|
-
tutorialListTitle
|
|
163
|
+
loadingText?: string;
|
|
164
|
+
tutorialListTitle?: string;
|
|
164
165
|
tutorialListDescription: React.ReactNode;
|
|
165
|
-
tutorialListDownloadLinkText
|
|
166
|
-
tutorialCompletedText
|
|
167
|
-
learnMoreLinkText
|
|
168
|
-
startTutorialButtonText
|
|
169
|
-
restartTutorialButtonText
|
|
170
|
-
completionScreenTitle
|
|
171
|
-
feedbackLinkText
|
|
172
|
-
dismissTutorialButtonText
|
|
173
|
-
taskTitle
|
|
174
|
-
stepTitle
|
|
175
|
-
labelExitTutorial
|
|
176
|
-
labelTotalSteps
|
|
166
|
+
tutorialListDownloadLinkText?: string;
|
|
167
|
+
tutorialCompletedText?: string;
|
|
168
|
+
learnMoreLinkText?: string;
|
|
169
|
+
startTutorialButtonText?: string;
|
|
170
|
+
restartTutorialButtonText?: string;
|
|
171
|
+
completionScreenTitle?: string;
|
|
172
|
+
feedbackLinkText?: string;
|
|
173
|
+
dismissTutorialButtonText?: string;
|
|
174
|
+
taskTitle?: (taskIndex: number, taskTitle: string) => string;
|
|
175
|
+
stepTitle?: (stepIndex: number, stepTitle: string) => string;
|
|
176
|
+
labelExitTutorial?: string;
|
|
177
|
+
labelTotalSteps?: (totalStepCount: number) => string;
|
|
177
178
|
labelLearnMoreExternalIcon: string;
|
|
178
|
-
labelsTaskStatus
|
|
179
|
-
pending
|
|
180
|
-
'in-progress'
|
|
181
|
-
success
|
|
179
|
+
labelsTaskStatus?: {
|
|
180
|
+
pending?: string;
|
|
181
|
+
'in-progress'?: string;
|
|
182
|
+
success?: string;
|
|
182
183
|
};
|
|
183
184
|
labelTutorialListDownloadLink?: string;
|
|
184
185
|
labelLearnMoreLink?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/tutorial-panel/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,SAAS,EAAE,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAEtD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/tutorial-panel/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,SAAS,EAAE,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAEtD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC;IAE5C;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;CAChF;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,cAAc;QAC7B,QAAQ,EAAE,QAAQ,CAAC;KACpB;IAED,U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AAC,EAAE,MAAM,CAAC;QAC1B,yBAAyB,CAAC,EAAE,MAAM,CAAC;QAEnC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;QAC7D,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;QAE7D,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,eAAe,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;QACrD,0BAA0B,EAAE,MAAM,CAAC;QAEnC,gBAAgB,CAAC,EAAE;YACjB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,CAAC;QAEF,6BAA6B,CAAC,EAAE,MAAM,CAAC;QACvC,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tutorial-panel/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface TutorialPanelProps extends BaseComponentProps {\n /**\n * Whether the content of the panel is currently loading. If this property\n * is set to `true`, the panel displays a spinner and the loadingText that is\n * specified in the `i18nStrings` property.\n */\n loading?: boolean;\n\n /**\n * List of all available tutorials. An array of objects with the following properties:\n *\n * * `title` (string) - Name of the tutorial\n *\n * * `description` (ReactNode) - Short description of the tutorial's content.\n *\n * * `tasks` - Array of tasks (in intended order). Each Task has the following properties:\n * * `title` (string) - Name of this task. This is shown in the task list overview of the tutorial's detail view.\n * * `steps` - Array of steps in this task (in intended order). Each step has the following properties:\n * * `title` (string) - Title of this step. This is shown in the step list in the tutorial's detail view.\n * * `content` (ReactNode) - Content to be shown in the popover of this step. Can be JSX or plain text.\n * * `warningAlert` (ReactNode) - (Optional) If this field is present, a warning alert will be displayed\n * inside the step's popover, showing this field's content. Can be JSX or plain text.\n * * `hotspotId` (string) - ID of the hotspot that this tutorial step points to.\n *\n * A hotspot with this ID needs to be added manually to the code of the application and represents a location\n * in the application that a tutorial step can be attached to. It can be re-used by multiple tutorials. Hotspot\n * IDs need to be unique in the scope of the whole application that uses this tutorial.\n *\n * * `completedScreenDescription` (ReactNode) - Description to be shown on the last page of the tutorial, when the\n * user has successfully completed the tutorial.\n *\n * * `prerequisitesAlert` (ReactNode) - (Optional) If the application determines that the user cannot start the tutorial\n * yet (by specifying the property `prerequisitesNeeded` on the tutorial object), the content of `prerequisitesAlert`\n * will be shown in the tutorial list underneath the tutorial title.\n *\n * Example: `<><Link>Create a bucket first</Link> to complete this tutorial.</>`\n *\n * * `prerequisitesNeeded` (boolean) - (Optional) If this property is set to `true`, the tutorial list will disable the\n * `Start tutorial` button for this tutorial, and it will show the contents of the tutorial's `prerequisitesAlert` field\n * in an alert underneath the tutorial title.\n *\n * * `learnMoreUrl` (string | null) - (Optional) If present, the tutorial list will show a \"Learn More\" link pointing to\n * this URL underneath the tutorial's description.\n *\n * * `completed` (boolean) - Whether the user has already completed this tutorial.\n *\n * If this property is set to `true`, the tutorial list will show a status indicator underneath the tutorial title with\n * a message that indicates that this tutorial has already been completed by the user (e.g. \"Tutorial completed\"), and\n * the \"Start tutorial\" button will be replaced by a \"Restart tutorial\" button.\n */\n tutorials: ReadonlyArray<TutorialPanelProps.Tutorial>;\n\n /**\n * The link to a file documenting all tutorials (usually a PDF).\n */\n downloadUrl?: string;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: TutorialPanelProps.I18nStrings;\n\n /**\n * Fired when the user clicks on the feedback link at the end of a tutorial.\n */\n onFeedbackClick?: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n}\n\nexport namespace TutorialPanelProps {\n export interface TutorialDetail {\n tutorial: Tutorial;\n }\n\n export interface Tutorial {\n /**\n * Title of the tutorial\n * */\n title: string;\n\n /**\n * Short description of the tutorial's content. This is displayed in the tutorial list.\n */\n description: React.ReactNode;\n\n /**\n * List of tasks (in intended order)\n */\n tasks: ReadonlyArray<Task>;\n\n /**\n * Description to be shown on the last page of the tutorial, when the user has\n * successfully completed the tutorial.\n */\n completedScreenDescription: React.ReactNode;\n\n /**\n * If the application determines that the user cannot start\n * the tutorial yet (by specifying the property `prerequisitesNeeded` on the\n * tutorial object), the content of `prerequisitesAlert` will be shown in the\n * tutorial list underneath the tutorial title.\n *\n * @deprecated Use alert component inside description property directly.\n */\n prerequisitesAlert?: React.ReactNode;\n\n /**\n * If this property is set to `true`, the tutorial list\n * will disable the `Start tutorial` button for this\n * tutorial, and it will show the contents of the\n * tutorial's `prerequisitesAlert` field in an alert underneath\n * the tutorial title.\n */\n prerequisitesNeeded?: boolean;\n\n /**\n * If present, the tutorial list will show a \"Learn More\" link pointing to\n * this URL underneath the tutorial's description.\n */\n learnMoreUrl?: string | null;\n\n /**\n * Whether the user has already completed this tutorial.\n *\n * If this property is set to `true`, the tutorial list\n * will show a status indicator underneath the tutorial\n * title with a message that indicates that this tutorial\n * has already been completed by the user (e.g.\n * \"Tutorial completed\"), and the \"Start tutorial\" button\n * will be replaced by a \"Restart tutorial\" button.\n *\n */\n completed: boolean;\n }\n\n export interface Task {\n /**\n * Title of this task. This is shown in the task list overview of the tutorial's\n * detail view.\n */\n title: string;\n\n /**\n * Steps in this task (in intended order)\n */\n steps: ReadonlyArray<Step>;\n }\n\n export interface Step {\n /**\n * Title of this step. This is shown in the step list in the tutorial's\n * detail view.\n */\n title: string;\n\n /**\n * Content to be shown in the popover of this step. Can be JSX or plain text.\n */\n content: React.ReactNode;\n\n /**\n * If this field is present, a warning alert will be displayed inside\n * the step's popover, showing this field's content. Can be JSX or plain text.\n * @deprecated Use alert component inside content property directly.\n */\n warningAlert?: React.ReactNode;\n\n /**\n * ID of the hotspot that this tutorial step points to.\n *\n * A hotspot with this ID needs to be added manually to the code of the application\n * and represents a location in the application that a tutorial step can be\n * attached to. It can be re-used by multiple tutorials. Hotspot IDs need\n * to be unique in the scope of the whole application that uses this tutorial.\n */\n hotspotId: string;\n }\n\n export interface I18nStrings {\n loadingText
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tutorial-panel/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface TutorialPanelProps extends BaseComponentProps {\n /**\n * Whether the content of the panel is currently loading. If this property\n * is set to `true`, the panel displays a spinner and the loadingText that is\n * specified in the `i18nStrings` property.\n */\n loading?: boolean;\n\n /**\n * List of all available tutorials. An array of objects with the following properties:\n *\n * * `title` (string) - Name of the tutorial\n *\n * * `description` (ReactNode) - Short description of the tutorial's content.\n *\n * * `tasks` - Array of tasks (in intended order). Each Task has the following properties:\n * * `title` (string) - Name of this task. This is shown in the task list overview of the tutorial's detail view.\n * * `steps` - Array of steps in this task (in intended order). Each step has the following properties:\n * * `title` (string) - Title of this step. This is shown in the step list in the tutorial's detail view.\n * * `content` (ReactNode) - Content to be shown in the popover of this step. Can be JSX or plain text.\n * * `warningAlert` (ReactNode) - (Optional) If this field is present, a warning alert will be displayed\n * inside the step's popover, showing this field's content. Can be JSX or plain text.\n * * `hotspotId` (string) - ID of the hotspot that this tutorial step points to.\n *\n * A hotspot with this ID needs to be added manually to the code of the application and represents a location\n * in the application that a tutorial step can be attached to. It can be re-used by multiple tutorials. Hotspot\n * IDs need to be unique in the scope of the whole application that uses this tutorial.\n *\n * * `completedScreenDescription` (ReactNode) - Description to be shown on the last page of the tutorial, when the\n * user has successfully completed the tutorial.\n *\n * * `prerequisitesAlert` (ReactNode) - (Optional) If the application determines that the user cannot start the tutorial\n * yet (by specifying the property `prerequisitesNeeded` on the tutorial object), the content of `prerequisitesAlert`\n * will be shown in the tutorial list underneath the tutorial title.\n *\n * Example: `<><Link>Create a bucket first</Link> to complete this tutorial.</>`\n *\n * * `prerequisitesNeeded` (boolean) - (Optional) If this property is set to `true`, the tutorial list will disable the\n * `Start tutorial` button for this tutorial, and it will show the contents of the tutorial's `prerequisitesAlert` field\n * in an alert underneath the tutorial title.\n *\n * * `learnMoreUrl` (string | null) - (Optional) If present, the tutorial list will show a \"Learn More\" link pointing to\n * this URL underneath the tutorial's description.\n *\n * * `completed` (boolean) - Whether the user has already completed this tutorial.\n *\n * If this property is set to `true`, the tutorial list will show a status indicator underneath the tutorial title with\n * a message that indicates that this tutorial has already been completed by the user (e.g. \"Tutorial completed\"), and\n * the \"Start tutorial\" button will be replaced by a \"Restart tutorial\" button.\n */\n tutorials: ReadonlyArray<TutorialPanelProps.Tutorial>;\n\n /**\n * The link to a file documenting all tutorials (usually a PDF).\n */\n downloadUrl?: string;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings: TutorialPanelProps.I18nStrings;\n\n /**\n * Fired when the user clicks on the feedback link at the end of a tutorial.\n */\n onFeedbackClick?: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n}\n\nexport namespace TutorialPanelProps {\n export interface TutorialDetail {\n tutorial: Tutorial;\n }\n\n export interface Tutorial {\n /**\n * Title of the tutorial\n * */\n title: string;\n\n /**\n * Short description of the tutorial's content. This is displayed in the tutorial list.\n */\n description: React.ReactNode;\n\n /**\n * List of tasks (in intended order)\n */\n tasks: ReadonlyArray<Task>;\n\n /**\n * Description to be shown on the last page of the tutorial, when the user has\n * successfully completed the tutorial.\n */\n completedScreenDescription: React.ReactNode;\n\n /**\n * If the application determines that the user cannot start\n * the tutorial yet (by specifying the property `prerequisitesNeeded` on the\n * tutorial object), the content of `prerequisitesAlert` will be shown in the\n * tutorial list underneath the tutorial title.\n *\n * @deprecated Use alert component inside description property directly.\n */\n prerequisitesAlert?: React.ReactNode;\n\n /**\n * If this property is set to `true`, the tutorial list\n * will disable the `Start tutorial` button for this\n * tutorial, and it will show the contents of the\n * tutorial's `prerequisitesAlert` field in an alert underneath\n * the tutorial title.\n */\n prerequisitesNeeded?: boolean;\n\n /**\n * If present, the tutorial list will show a \"Learn More\" link pointing to\n * this URL underneath the tutorial's description.\n */\n learnMoreUrl?: string | null;\n\n /**\n * Whether the user has already completed this tutorial.\n *\n * If this property is set to `true`, the tutorial list\n * will show a status indicator underneath the tutorial\n * title with a message that indicates that this tutorial\n * has already been completed by the user (e.g.\n * \"Tutorial completed\"), and the \"Start tutorial\" button\n * will be replaced by a \"Restart tutorial\" button.\n *\n */\n completed: boolean;\n }\n\n export interface Task {\n /**\n * Title of this task. This is shown in the task list overview of the tutorial's\n * detail view.\n */\n title: string;\n\n /**\n * Steps in this task (in intended order)\n */\n steps: ReadonlyArray<Step>;\n }\n\n export interface Step {\n /**\n * Title of this step. This is shown in the step list in the tutorial's\n * detail view.\n */\n title: string;\n\n /**\n * Content to be shown in the popover of this step. Can be JSX or plain text.\n */\n content: React.ReactNode;\n\n /**\n * If this field is present, a warning alert will be displayed inside\n * the step's popover, showing this field's content. Can be JSX or plain text.\n * @deprecated Use alert component inside content property directly.\n */\n warningAlert?: React.ReactNode;\n\n /**\n * ID of the hotspot that this tutorial step points to.\n *\n * A hotspot with this ID needs to be added manually to the code of the application\n * and represents a location in the application that a tutorial step can be\n * attached to. It can be re-used by multiple tutorials. Hotspot IDs need\n * to be unique in the scope of the whole application that uses this tutorial.\n */\n hotspotId: string;\n }\n\n export interface I18nStrings {\n loadingText?: string;\n\n tutorialListTitle?: string;\n tutorialListDescription: React.ReactNode;\n tutorialListDownloadLinkText?: string;\n\n tutorialCompletedText?: string;\n learnMoreLinkText?: string;\n\n startTutorialButtonText?: string;\n restartTutorialButtonText?: string;\n\n completionScreenTitle?: string;\n\n feedbackLinkText?: string;\n dismissTutorialButtonText?: string;\n\n taskTitle?: (taskIndex: number, taskTitle: string) => string;\n stepTitle?: (stepIndex: number, stepTitle: string) => string;\n\n labelExitTutorial?: string;\n labelTotalSteps?: (totalStepCount: number) => string;\n labelLearnMoreExternalIcon: string;\n\n labelsTaskStatus?: {\n pending?: string;\n 'in-progress'?: string;\n success?: string;\n };\n\n labelTutorialListDownloadLink?: string;\n labelLearnMoreLink?: string;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grouped-control-styles.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/grouped-control-styles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEjF;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,0BAA0B,GACzE,MAAM,CAWR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grouped-control-styles.js","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/grouped-control-styles.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAA8B,EAC9B,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAA8B;IAE1E,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAI,CACT,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,WAAW,SAAS,EAAE,CAAC,EAC9B,MAAM,CAAC,WAAW,SAAS,IAAI,QAAQ,EAAE,CAAC,EAC1C,SAAS,IAAI,MAAM,CAAC,qBAAqB,CAAC,EAC1C,UAAU,IAAI,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,CACvG,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\n\nimport { GroupedControlContextProps } from '../../context/control-group-context';\n\n/**\n * Builds the shared grouped-control CSS classes for a consumer.\n *\n * Returns an empty string when the control is not in a group (falsy `position`),\n * otherwise the `grouped` base class plus the position/direction modifier.\n * Pass the result into `clsx(...)` at the call site.\n */\nexport function getGroupedControlClassNames(\n styles: Record<string, string>,\n { position, direction, hasAction, validation }: GroupedControlContextProps\n): string {\n if (!position) {\n return '';\n }\n return clsx(\n styles.grouped,\n styles[`grouped-${direction}`],\n styles[`grouped-${direction}-${position}`],\n hasAction && styles['grouped-with-action'],\n validation && (validation === 'error' ? styles['grouped-with-error'] : styles['grouped-with-warning'])\n );\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKjD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,SAAkB,EAClB,eAAe,EACf,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,iBAAiB,eAuInB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,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AAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,iBAAc,MAAM,GAAG;YACpE,6BAAK,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC;gBACpC,6BAAK,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,iBAAc,MAAM,IAC5D,iBAAiB,CAAC,IAAI,CAAC,CACpB,CACF,CACL,CACJ,CACG,CACP,CAAC;IAEF,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,CACL,gCAAS,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,cAAc,EAAE,MAAM,CAAC,sBAAsB,CAAC,CAAC;YACpF,+BAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,IACxF,eAAe,CACV;YACR,6BAAK,SAAS,EAAE,MAAM,CAAC,8BAA8B,CAAC,IAAG,kBAAkB,CAAO,CAC9E,CACP,CAAC;IACJ,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC5B,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 { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport { InternalButton } from '../../../button/internal';\nimport { getBaseProps } from '../../base-component';\nimport {\n GroupedControlContext,\n GroupedControlDirection,\n GroupedControlPosition,\n} from '../../context/control-group-context';\nimport { FormFieldContext, useFormFieldContext } from '../../context/form-field-context';\nimport { useFitsInline } from '../../hooks/use-fits-inline';\nimport { flattenChildren } from '../../utils/flatten-children';\nimport { joinStrings } from '../../utils/strings/join-strings';\nimport { ControlGroupProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport { ControlGroupProps };\n\nexport default function ControlGroup({\n children,\n direction = 'auto',\n inlineLabelText,\n actionButton,\n ...props\n}: ControlGroupProps) {\n const baseProps = getBaseProps(props);\n const labelId = useUniqueId('control-group-label');\n\n const formFieldContext = useFormFieldContext({});\n const isInvalid = !!formFieldContext.invalid;\n const isWarning = !!formFieldContext.warning && !isInvalid;\n\n // The parent FormField's validation (describedby/invalid) and label associate with the group as a\n // unit, not the inner controls (whose FormField context is reset below).\n // Merge FormField's label id (first) with the internal inline label when present.\n const groupAriaLabelledby = joinStrings(formFieldContext.ariaLabelledby, inlineLabelText ? labelId : undefined);\n const groupAriaDescribedby = joinStrings(formFieldContext.ariaDescribedby);\n\n const flattenedChildren = flattenChildren(children, 'ControlGroup');\n const controlCount = flattenedChildren.length;\n\n const { fits, ghostRef, sensorRef } = useFitsInline<HTMLDivElement>();\n const resolvedDirection: GroupedControlDirection =\n direction === 'auto' ? (fits ? 'horizontal' : 'vertical') : direction;\n\n const rootClassnames = [styles.root, baseProps.className, testUtilStyles.root];\n\n const renderControlSlots = (isGhost: boolean) => {\n const slotDirection: GroupedControlDirection = isGhost\n ? 'horizontal' // The ghost always uses horizontal mode for measuring\n : resolvedDirection;\n return flattenedChildren.map((child, index) => {\n const key = child && typeof child === 'object' ? (child as Record<'key', unknown>).key : undefined;\n const position: GroupedControlPosition =\n controlCount === 1 ? 'only' : index === 0 ? 'first' : index === controlCount - 1 ? 'last' : 'middle';\n const isLeading = slotDirection === 'vertical' || position === 'first' || position === 'only';\n return (\n <div\n key={key !== null && key !== undefined ? String(key) : index}\n className={clsx(\n // Make sure that test utils exclude the ghost\n !isGhost && testUtilStyles.control,\n styles.control,\n styles[`control-${position}-${slotDirection}`],\n isLeading && (isInvalid || isWarning) && styles['control-validation'],\n isLeading && isInvalid && styles['control-in-error'],\n isLeading && isWarning && styles['control-in-warning']\n )}\n >\n <GroupedControlContext.Provider\n value={{\n position,\n direction: slotDirection,\n hasAction: !!actionButton,\n validation: isInvalid ? 'error' : isWarning ? 'warning' : null,\n }}\n >\n <FormFieldContext.Provider value={{}}>{child}</FormFieldContext.Provider>\n </GroupedControlContext.Provider>\n </div>\n );\n });\n };\n\n const renderActionButton = (isGhost: boolean) =>\n actionButton ? (\n <div className={styles['action-slot']}>\n <InternalButton\n // Make sure that test utils exclude the ghost\n className={isGhost ? undefined : testUtilStyles['action-button']}\n variant=\"control-group-action\"\n formAction=\"none\"\n iconName={actionButton.iconName}\n ariaLabel={actionButton.ariaLabel}\n disabled={actionButton.disabled}\n disabledReason={actionButton.disabledReason}\n ariaDescribedby={actionButton.ariaDescribedby}\n onClick={actionButton.onClick}\n />\n </div>\n ) : null;\n\n // A single render path for both the real group layout and the ghost copy, so the ghost measures\n // the whole group (controls + action button, including the overlap seam between them) as one unit.\n // The ghost copy carries no role, no aria wiring, no base props, and no test-util classes.\n const renderGroupLayout = (isGhost: boolean) => {\n const slotDirection: GroupedControlDirection = isGhost ? 'horizontal' : resolvedDirection;\n return (\n <div className={clsx(styles['group-layout'], styles[`group-layout-${slotDirection}`])}>\n <div\n {...(isGhost\n ? {}\n : {\n role: 'group',\n 'aria-labelledby': groupAriaLabelledby,\n 'aria-describedby': groupAriaDescribedby,\n 'aria-invalid': isInvalid ? 'true' : undefined,\n })}\n className={clsx(styles.controls, styles[`controls-${slotDirection}`])}\n >\n {renderControlSlots(isGhost)}\n </div>\n {renderActionButton(isGhost)}\n </div>\n );\n };\n\n const groupLayoutWrapper = (\n <div\n {...(inlineLabelText ? {} : baseProps)}\n className={clsx(styles['group-layout-wrapper'], !inlineLabelText && rootClassnames)}\n >\n {renderGroupLayout(false)}\n\n {direction === 'auto' && (\n <>\n <div ref={sensorRef} className={styles.sensor} aria-hidden=\"true\" />\n <div className={styles['ghost-anchor']}>\n <div ref={ghostRef} className={styles.ghost} aria-hidden=\"true\">\n {renderGroupLayout(true)}\n </div>\n </div>\n </>\n )}\n </div>\n );\n\n if (inlineLabelText) {\n return (\n <div {...baseProps} className={clsx(...rootClassnames, styles['inline-label-wrapper'])}>\n <label id={labelId} className={clsx(styles['inline-label'], testUtilStyles['inline-label'])}>\n {inlineLabelText}\n </label>\n <div className={styles['inline-label-trigger-wrapper']}>{groupLayoutWrapper}</div>\n </div>\n );\n }\n\n return groupLayoutWrapper;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC,qBAAqB,CAAC;IACpD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC;CAC/C;AAED,yBAAiB,iBAAiB,CAAC;IAGjC,KAAY,qBAAqB,GAAG,uBAAuB,GAAG,MAAM,CAAC;IAErE,UAAiB,YAAY;QAC3B;;WAEG;QACH,OAAO,CAAC,EAAE,sBAAsB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAE1D;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB,uEAAuE;QACvE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;KAC1B;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/control-group/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonProps } from '../../../button/interfaces';\nimport { IconProps } from '../../../icon/interfaces';\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { GroupedControlDirection } from '../../context/control-group-context';\nimport { CancelableEventHandler } from '../../events';\n\nexport interface ControlGroupProps extends BaseComponentProps {\n children?: React.ReactNode;\n /**\n * The axis along which the controls are laid out (`horizontal`, `vertical` or `auto`).\n * When set to `auto` (default), the component decides the direction based on whether it\n * fits in the padding box of its\n * [containing block](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Display/Containing_block).\n */\n direction?: ControlGroupProps.ControlGroupDirection;\n inlineLabelText?: string;\n /**\n * Specifies an action button rendered next to the grouped controls.\n */\n actionButton?: ControlGroupProps.ActionButton;\n}\n\nexport namespace ControlGroupProps {\n // `'auto'` exists only for the control group but not for the inner grouped controls,\n // which receive a definite value (`horizontal` or `vertical`).\n export type ControlGroupDirection = GroupedControlDirection | 'auto';\n\n export interface ActionButton {\n /**\n * Called when the user clicks on the button and the button is not disabled.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n\n /**\n * Provides a reason why the button is disabled (only when `disabled` is `true`).\n * If provided, the button becomes focusable.\n */\n disabledReason?: string;\n\n /**\n * Adds `aria-label` to the button element.\n * The text will also be added to the `title` attribute of the button.\n */\n ariaLabel: string;\n\n /**\n * Adds `aria-describedby` to the button.\n */\n ariaDescribedby?: string;\n\n /** Specifies the icon to display (for example `remove` or `close`). */\n iconName: IconProps.Name;\n }\n}\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import './styles.scoped.css';
|
|
3
|
-
export default {
|
|
4
|
-
"root": "awsui_root_o08jm_15663_9",
|
|
5
|
-
"group-layout-wrapper": "awsui_group-layout-wrapper_o08jm_15663_41",
|
|
6
|
-
"action-slot": "awsui_action-slot_o08jm_15663_45",
|
|
7
|
-
"group-layout": "awsui_group-layout_o08jm_15663_41",
|
|
8
|
-
"group-layout-horizontal": "awsui_group-layout-horizontal_o08jm_15663_55",
|
|
9
|
-
"group-layout-vertical": "awsui_group-layout-vertical_o08jm_15663_58",
|
|
10
|
-
"controls": "awsui_controls_o08jm_15663_62",
|
|
11
|
-
"controls-horizontal": "awsui_controls-horizontal_o08jm_15663_67",
|
|
12
|
-
"controls-vertical": "awsui_controls-vertical_o08jm_15663_73",
|
|
13
|
-
"control": "awsui_control_o08jm_15663_62",
|
|
14
|
-
"control-middle-horizontal": "awsui_control-middle-horizontal_o08jm_15663_82",
|
|
15
|
-
"control-last-horizontal": "awsui_control-last-horizontal_o08jm_15663_82",
|
|
16
|
-
"control-middle-vertical": "awsui_control-middle-vertical_o08jm_15663_85",
|
|
17
|
-
"control-last-vertical": "awsui_control-last-vertical_o08jm_15663_85",
|
|
18
|
-
"control-validation": "awsui_control-validation_o08jm_15663_88",
|
|
19
|
-
"control-in-error": "awsui_control-in-error_o08jm_15663_102",
|
|
20
|
-
"control-in-warning": "awsui_control-in-warning_o08jm_15663_105",
|
|
21
|
-
"control-first-horizontal": "awsui_control-first-horizontal_o08jm_15663_108",
|
|
22
|
-
"control-only-horizontal": "awsui_control-only-horizontal_o08jm_15663_108",
|
|
23
|
-
"control-only-vertical": "awsui_control-only-vertical_o08jm_15663_108",
|
|
24
|
-
"control-first-vertical": "awsui_control-first-vertical_o08jm_15663_112",
|
|
25
|
-
"sensor": "awsui_sensor_o08jm_15663_124",
|
|
26
|
-
"ghost-anchor": "awsui_ghost-anchor_o08jm_15663_136",
|
|
27
|
-
"inline-label": "awsui_inline-label_o08jm_15663_141",
|
|
28
|
-
"inline-label-wrapper": "awsui_inline-label-wrapper_o08jm_15663_166",
|
|
29
|
-
"inline-label-trigger-wrapper": "awsui_inline-label-trigger-wrapper_o08jm_15663_171",
|
|
30
|
-
"ghost": "awsui_ghost_o08jm_15663_136"
|
|
31
|
-
};
|
|
32
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// es-module interop with Babel and Typescript
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
module.exports.default = {
|
|
5
|
-
"root": "awsui_root_o08jm_15663_9",
|
|
6
|
-
"group-layout-wrapper": "awsui_group-layout-wrapper_o08jm_15663_41",
|
|
7
|
-
"action-slot": "awsui_action-slot_o08jm_15663_45",
|
|
8
|
-
"group-layout": "awsui_group-layout_o08jm_15663_41",
|
|
9
|
-
"group-layout-horizontal": "awsui_group-layout-horizontal_o08jm_15663_55",
|
|
10
|
-
"group-layout-vertical": "awsui_group-layout-vertical_o08jm_15663_58",
|
|
11
|
-
"controls": "awsui_controls_o08jm_15663_62",
|
|
12
|
-
"controls-horizontal": "awsui_controls-horizontal_o08jm_15663_67",
|
|
13
|
-
"controls-vertical": "awsui_controls-vertical_o08jm_15663_73",
|
|
14
|
-
"control": "awsui_control_o08jm_15663_62",
|
|
15
|
-
"control-middle-horizontal": "awsui_control-middle-horizontal_o08jm_15663_82",
|
|
16
|
-
"control-last-horizontal": "awsui_control-last-horizontal_o08jm_15663_82",
|
|
17
|
-
"control-middle-vertical": "awsui_control-middle-vertical_o08jm_15663_85",
|
|
18
|
-
"control-last-vertical": "awsui_control-last-vertical_o08jm_15663_85",
|
|
19
|
-
"control-validation": "awsui_control-validation_o08jm_15663_88",
|
|
20
|
-
"control-in-error": "awsui_control-in-error_o08jm_15663_102",
|
|
21
|
-
"control-in-warning": "awsui_control-in-warning_o08jm_15663_105",
|
|
22
|
-
"control-first-horizontal": "awsui_control-first-horizontal_o08jm_15663_108",
|
|
23
|
-
"control-only-horizontal": "awsui_control-only-horizontal_o08jm_15663_108",
|
|
24
|
-
"control-only-vertical": "awsui_control-only-vertical_o08jm_15663_108",
|
|
25
|
-
"control-first-vertical": "awsui_control-first-vertical_o08jm_15663_112",
|
|
26
|
-
"sensor": "awsui_sensor_o08jm_15663_124",
|
|
27
|
-
"ghost-anchor": "awsui_ghost-anchor_o08jm_15663_136",
|
|
28
|
-
"inline-label": "awsui_inline-label_o08jm_15663_141",
|
|
29
|
-
"inline-label-wrapper": "awsui_inline-label-wrapper_o08jm_15663_166",
|
|
30
|
-
"inline-label-trigger-wrapper": "awsui_inline-label-trigger-wrapper_o08jm_15663_171",
|
|
31
|
-
"ghost": "awsui_ghost_o08jm_15663_136"
|
|
32
|
-
};
|
|
33
|
-
|