@cloudscape-design/components 3.0.116 → 3.0.117
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/area-chart/model/use-chart-model.d.ts.map +1 -1
- package/area-chart/model/use-chart-model.js +2 -1
- package/area-chart/model/use-chart-model.js.map +1 -1
- package/area-chart/model/utils.d.ts +0 -6
- package/area-chart/model/utils.d.ts.map +1 -1
- package/area-chart/model/utils.js +0 -52
- package/area-chart/model/utils.js.map +1 -1
- package/button/index.d.ts.map +1 -1
- package/button/index.js +2 -2
- package/button/index.js.map +1 -1
- package/button/interfaces.d.ts +4 -0
- package/button/interfaces.d.ts.map +1 -1
- package/button/interfaces.js.map +1 -1
- package/button/internal.d.ts.map +1 -1
- package/button/internal.js +10 -5
- package/button/internal.js.map +1 -1
- package/button-dropdown/index.d.ts.map +1 -1
- package/button-dropdown/index.js +2 -2
- package/button-dropdown/index.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +4 -0
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +2 -2
- package/button-dropdown/internal.js.map +1 -1
- package/cards/index.d.ts.map +1 -1
- package/cards/index.js +3 -1
- package/cards/index.js.map +1 -1
- package/code-editor/index.d.ts.map +1 -1
- package/code-editor/index.js +3 -1
- package/code-editor/index.js.map +1 -1
- package/expandable-section/expandable-section-header.d.ts +12 -4
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +51 -11
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/interfaces.d.ts +21 -3
- package/expandable-section/interfaces.d.ts.map +1 -1
- package/expandable-section/interfaces.js.map +1 -1
- package/expandable-section/internal.d.ts +1 -1
- package/expandable-section/internal.d.ts.map +1 -1
- package/expandable-section/internal.js +2 -2
- package/expandable-section/internal.js.map +1 -1
- package/expandable-section/styles.css.js +21 -20
- package/expandable-section/styles.scoped.css +56 -39
- package/expandable-section/styles.selectors.js +21 -20
- package/flashbar/flash.d.ts +3 -3
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +31 -15
- package/flashbar/flash.js.map +1 -1
- package/flashbar/index.d.ts.map +1 -1
- package/flashbar/index.js +61 -14
- package/flashbar/index.js.map +1 -1
- package/flashbar/interfaces.d.ts +16 -0
- package/flashbar/interfaces.d.ts.map +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/flashbar/styles.css.js +33 -29
- package/flashbar/styles.scoped.css +151 -112
- package/flashbar/styles.selectors.js +33 -29
- package/help-panel/index.d.ts.map +1 -1
- package/help-panel/index.js +3 -1
- package/help-panel/index.js.map +1 -1
- package/internal/components/chart-status-container/index.d.ts +2 -2
- package/internal/components/chart-status-container/index.d.ts.map +1 -1
- package/internal/components/chart-status-container/index.js +2 -3
- package/internal/components/chart-status-container/index.js.map +1 -1
- package/internal/components/live-region/index.d.ts +2 -1
- package/internal/components/live-region/index.d.ts.map +1 -1
- package/internal/components/live-region/index.js +6 -5
- package/internal/components/live-region/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/throttle.d.ts +10 -0
- package/internal/utils/throttle.d.ts.map +1 -0
- package/internal/utils/throttle.js +57 -0
- package/internal/utils/throttle.js.map +1 -0
- package/package.json +1 -1
- package/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
- package/s3-resource-selector/s3-in-context/index.js +3 -1
- package/s3-resource-selector/s3-in-context/index.js.map +1 -1
- package/side-navigation/internal.js +2 -2
- package/side-navigation/internal.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +3 -1
- package/table/internal.js.map +1 -1
- package/tag-editor/index.d.ts.map +1 -1
- package/tag-editor/index.js +3 -1
- package/tag-editor/index.js.map +1 -1
- package/test-utils/dom/flashbar/flash.js +1 -1
- package/test-utils/dom/flashbar/flash.js.map +1 -1
- package/test-utils/dom/flashbar/index.js +1 -1
- package/test-utils/dom/flashbar/index.js.map +1 -1
- package/test-utils/selectors/flashbar/flash.js +1 -1
- package/test-utils/selectors/flashbar/flash.js.map +1 -1
- package/test-utils/selectors/flashbar/index.js +1 -1
- package/test-utils/selectors/flashbar/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/tutorial-panel/components/tutorial-detail-view/task.js +1 -1
- package/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
- package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
- package/tutorial-panel/components/tutorial-list/index.js +3 -1
- package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
- package/wizard/index.d.ts.map +1 -1
- package/wizard/index.js +2 -20
- package/wizard/index.js.map +1 -1
- package/wizard/styles.css.js +32 -31
- package/wizard/styles.scoped.css +70 -58
- package/wizard/styles.selectors.js +32 -31
- package/wizard/wizard-form.d.ts.map +1 -1
- package/wizard/wizard-form.js +15 -3
- package/wizard/wizard-form.js.map +1 -1
package/wizard/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wizard/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wizard/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OA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AAW,EACxB,eAAe,EAAE,qBAAqB,EACtC,gBAAgB,EAAE,iBAAiB,EACnC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B,CACE,CACF,CACF,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { warnOnce } from '../internal/logging';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport WizardForm from './wizard-form';\nimport WizardNavigation from './wizard-navigation';\nimport { WizardProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\nexport { WizardProps };\n\nexport default function Wizard({\n steps,\n activeStepIndex: controlledActiveStepIndex,\n i18nStrings,\n isLoadingNextStep = false,\n allowSkipTo = false,\n secondaryActions,\n onCancel,\n onSubmit,\n onNavigate,\n ...rest\n}: WizardProps) {\n const { __internalRootRef } = useBaseComponent('Wizard');\n const baseProps = getBaseProps(rest);\n\n const [breakpoint, breakpointsRef] = useContainerBreakpoints(['xs']);\n const ref = useMergeRefs(breakpointsRef, __internalRootRef);\n\n const smallContainer = breakpoint === 'default';\n\n const [activeStepIndex, setActiveStepIndex] = useControllable(controlledActiveStepIndex, onNavigate, 0, {\n componentName: 'Wizard',\n controlledProp: 'activeStepIndex',\n changeHandler: 'onNavigate',\n });\n const actualActiveStepIndex = activeStepIndex ? Math.min(activeStepIndex, steps.length - 1) : 0;\n\n const farthestStepIndex = useRef<number>(actualActiveStepIndex);\n farthestStepIndex.current = Math.max(farthestStepIndex.current, actualActiveStepIndex);\n\n const isVisualRefresh = useVisualRefresh();\n const isLastStep = actualActiveStepIndex >= steps.length - 1;\n\n const navigationEvent = (requestedStepIndex: number, reason: WizardProps.NavigationReason) => {\n setActiveStepIndex(requestedStepIndex);\n fireNonCancelableEvent(onNavigate, { requestedStepIndex, reason });\n };\n const onStepClick = (stepIndex: number) => navigationEvent(stepIndex, 'step');\n const onSkipToClick = (stepIndex: number) => navigationEvent(stepIndex, 'skip');\n const onCancelClick = () => fireNonCancelableEvent(onCancel);\n const onPreviousClick = () => navigationEvent(actualActiveStepIndex - 1, 'previous');\n const onPrimaryClick = isLastStep\n ? () => fireNonCancelableEvent(onSubmit)\n : () => navigationEvent(actualActiveStepIndex + 1, 'next');\n\n if (activeStepIndex && activeStepIndex >= steps.length) {\n warnOnce(\n 'Wizard',\n `You have set \\`activeStepIndex\\` to ${activeStepIndex} but you have provided only ${\n steps.length\n } steps. Its value is ignored and the component uses ${steps.length - 1} instead.`\n );\n }\n\n if (allowSkipTo && !i18nStrings.skipToButtonLabel) {\n warnOnce(\n 'Wizard',\n `You have set \\`allowSkipTo\\` but you have not provided \\`i18nStrings.skipToButtonLabel\\`. The skip-to button will not be rendered.`\n );\n }\n\n return (\n <div {...baseProps} className={clsx(styles.root, baseProps.className)} ref={ref}>\n <div\n className={clsx(styles.wizard, isVisualRefresh && styles.refresh, smallContainer && styles['small-container'])}\n >\n <WizardNavigation\n activeStepIndex={actualActiveStepIndex}\n farthestStepIndex={farthestStepIndex.current}\n allowSkipTo={allowSkipTo}\n hidden={smallContainer}\n i18nStrings={i18nStrings}\n isVisualRefresh={isVisualRefresh}\n isLoadingNextStep={isLoadingNextStep}\n onStepClick={onStepClick}\n onSkipToClick={onSkipToClick}\n steps={steps}\n />\n <div\n className={clsx(styles.form, isVisualRefresh && styles.refresh, smallContainer && styles['small-container'])}\n >\n {isVisualRefresh && <div className={clsx(styles.background, 'awsui-context-content-header')} />}\n\n <WizardForm\n steps={steps}\n isVisualRefresh={isVisualRefresh}\n showCollapsedSteps={smallContainer}\n i18nStrings={i18nStrings}\n activeStepIndex={actualActiveStepIndex}\n isPrimaryLoading={isLoadingNextStep}\n allowSkipTo={allowSkipTo}\n secondaryActions={secondaryActions}\n onCancelClick={onCancelClick}\n onPreviousClick={onPreviousClick}\n onSkipToClick={onSkipToClick}\n onPrimaryClick={onPrimaryClick}\n />\n </div>\n </div>\n </div>\n );\n}\n\napplyDisplayName(Wizard, 'Wizard');\n"]}
|
package/wizard/styles.css.js
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"wizard": "
|
|
6
|
-
"refresh": "
|
|
7
|
-
"small-container": "awsui_small-
|
|
8
|
-
"navigation": "
|
|
9
|
-
"number": "
|
|
10
|
-
"circle": "
|
|
11
|
-
"title": "
|
|
12
|
-
"active": "
|
|
13
|
-
"disabled": "
|
|
14
|
-
"enabled": "
|
|
15
|
-
"form": "
|
|
16
|
-
"form-header": "awsui_form-
|
|
17
|
-
"background": "
|
|
18
|
-
"form-header-content": "awsui_form-header-
|
|
19
|
-
"form-component": "awsui_form-
|
|
20
|
-
"hidden": "
|
|
21
|
-
"collapsed-steps": "awsui_collapsed-
|
|
22
|
-
"collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-
|
|
23
|
-
"collapsed-steps-hidden": "awsui_collapsed-steps-
|
|
24
|
-
"form-header-component": "awsui_form-header-
|
|
25
|
-
"
|
|
26
|
-
"navigation-link
|
|
27
|
-
"navigation-link-
|
|
28
|
-
"navigation-link-
|
|
29
|
-
"navigation-link-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
4
|
+
"root": "awsui_root_1xupv_631vd_94",
|
|
5
|
+
"wizard": "awsui_wizard_1xupv_631vd_105",
|
|
6
|
+
"refresh": "awsui_refresh_1xupv_631vd_105",
|
|
7
|
+
"small-container": "awsui_small-container_1xupv_631vd_112",
|
|
8
|
+
"navigation": "awsui_navigation_1xupv_631vd_120",
|
|
9
|
+
"number": "awsui_number_1xupv_631vd_148",
|
|
10
|
+
"circle": "awsui_circle_1xupv_631vd_164",
|
|
11
|
+
"title": "awsui_title_1xupv_631vd_172",
|
|
12
|
+
"active": "awsui_active_1xupv_631vd_201",
|
|
13
|
+
"disabled": "awsui_disabled_1xupv_631vd_212",
|
|
14
|
+
"enabled": "awsui_enabled_1xupv_631vd_222",
|
|
15
|
+
"form": "awsui_form_1xupv_631vd_261",
|
|
16
|
+
"form-header": "awsui_form-header_1xupv_631vd_267",
|
|
17
|
+
"background": "awsui_background_1xupv_631vd_278",
|
|
18
|
+
"form-header-content": "awsui_form-header-content_1xupv_631vd_288",
|
|
19
|
+
"form-component": "awsui_form-component_1xupv_631vd_292",
|
|
20
|
+
"hidden": "awsui_hidden_1xupv_631vd_306",
|
|
21
|
+
"collapsed-steps": "awsui_collapsed-steps_1xupv_631vd_310",
|
|
22
|
+
"collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-padding_1xupv_631vd_315",
|
|
23
|
+
"collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_631vd_318",
|
|
24
|
+
"form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_631vd_322",
|
|
25
|
+
"form-header-component": "awsui_form-header-component_1xupv_631vd_322",
|
|
26
|
+
"navigation-link": "awsui_navigation-link_1xupv_631vd_335",
|
|
27
|
+
"navigation-link-item": "awsui_navigation-link-item_1xupv_631vd_336",
|
|
28
|
+
"navigation-link-label": "awsui_navigation-link-label_1xupv_631vd_337",
|
|
29
|
+
"navigation-link-active": "awsui_navigation-link-active_1xupv_631vd_341",
|
|
30
|
+
"navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_631vd_346",
|
|
31
|
+
"cancel-button": "awsui_cancel-button_1xupv_631vd_350",
|
|
32
|
+
"previous-button": "awsui_previous-button_1xupv_631vd_351",
|
|
33
|
+
"primary-button": "awsui_primary-button_1xupv_631vd_352",
|
|
34
|
+
"skip-to-button": "awsui_skip-to-button_1xupv_631vd_353",
|
|
35
|
+
"action-buttons": "awsui_action-buttons_1xupv_631vd_357"
|
|
35
36
|
};
|
|
36
37
|
|
package/wizard/styles.scoped.css
CHANGED
|
@@ -91,7 +91,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
93
|
/* stylelint-disable selector-max-universal, selector-max-type */
|
|
94
|
-
.
|
|
94
|
+
.awsui_root_1xupv_631vd_94:not(#\9) {
|
|
95
95
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
96
96
|
border-collapse: separate;
|
|
97
97
|
border-spacing: 0;
|
|
@@ -128,28 +128,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
128
128
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.
|
|
131
|
+
.awsui_wizard_1xupv_631vd_105.awsui_refresh_1xupv_631vd_105:not(#\9) {
|
|
132
132
|
column-gap: var(--space-xl-a39hup, 24px);
|
|
133
133
|
display: grid;
|
|
134
134
|
grid-template-columns: auto 1fr;
|
|
135
135
|
grid-template-rows: auto 1fr;
|
|
136
136
|
row-gap: var(--space-scaled-xl-w2t504, 24px);
|
|
137
137
|
}
|
|
138
|
-
.
|
|
138
|
+
.awsui_wizard_1xupv_631vd_105.awsui_refresh_1xupv_631vd_105.awsui_small-container_1xupv_631vd_112:not(#\9) {
|
|
139
139
|
row-gap: var(--space-scaled-l-t03y3z, 20px);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.
|
|
142
|
+
.awsui_wizard_1xupv_631vd_105:not(#\9):not(.awsui_refresh_1xupv_631vd_105) {
|
|
143
143
|
display: flex;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.
|
|
146
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105:not(#\9) {
|
|
147
147
|
grid-column: 1;
|
|
148
148
|
grid-row: 1/span 2;
|
|
149
149
|
padding-top: var(--space-scaled-xxs-95dhkm, 4px);
|
|
150
150
|
z-index: 1;
|
|
151
151
|
}
|
|
152
|
-
.
|
|
152
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul:not(#\9) {
|
|
153
153
|
background: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
154
154
|
border-radius: var(--border-radius-container-gh9ysk, 16px);
|
|
155
155
|
box-shadow: var(--shadow-container-7nblnj, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
|
|
@@ -158,26 +158,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
158
158
|
width: 280px;
|
|
159
159
|
box-sizing: border-box;
|
|
160
160
|
}
|
|
161
|
-
.
|
|
161
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li:not(#\9) {
|
|
162
162
|
display: grid;
|
|
163
163
|
column-gap: var(--space-s-hv8c1d, 12px);
|
|
164
164
|
grid-template-columns: var(--space-l-4vl6xu, 20px) 1fr;
|
|
165
165
|
grid-template-rows: repeat(2, auto);
|
|
166
166
|
}
|
|
167
|
-
.
|
|
167
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li > hr:not(#\9) {
|
|
168
168
|
background-color: var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
169
169
|
border: 0;
|
|
170
170
|
grid-column: 1;
|
|
171
171
|
height: 100%;
|
|
172
172
|
width: var(--space-xxxs-k2w98v, 2px);
|
|
173
173
|
}
|
|
174
|
-
.
|
|
174
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li > .awsui_number_1xupv_631vd_148:not(#\9) {
|
|
175
175
|
color: var(--color-text-small-le1y42, #5f6b7a);
|
|
176
176
|
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
177
177
|
grid-column: 2;
|
|
178
178
|
grid-row: 1;
|
|
179
179
|
}
|
|
180
|
-
.
|
|
180
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li > a:not(#\9) {
|
|
181
181
|
align-items: start;
|
|
182
182
|
column-gap: var(--space-s-hv8c1d, 12px);
|
|
183
183
|
cursor: pointer;
|
|
@@ -187,7 +187,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
187
187
|
grid-row: 2;
|
|
188
188
|
grid-template-columns: var(--space-l-4vl6xu, 20px) 1fr;
|
|
189
189
|
}
|
|
190
|
-
.
|
|
190
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li > a > .awsui_circle_1xupv_631vd_164:not(#\9) {
|
|
191
191
|
border-radius: 100%;
|
|
192
192
|
grid-column: 1;
|
|
193
193
|
height: 10px;
|
|
@@ -195,13 +195,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
195
195
|
margin-top: 6px;
|
|
196
196
|
width: 10px;
|
|
197
197
|
}
|
|
198
|
-
.
|
|
198
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li > a > .awsui_title_1xupv_631vd_172:not(#\9) {
|
|
199
199
|
min-width: 0;
|
|
200
200
|
-ms-word-break: break-all;
|
|
201
201
|
word-break: break-word;
|
|
202
202
|
grid-column: 2;
|
|
203
203
|
}
|
|
204
|
-
.
|
|
204
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li > a[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
205
205
|
outline: thin dotted;
|
|
206
206
|
outline: var(--border-link-focus-ring-outline-k2wccv, 0);
|
|
207
207
|
outline-offset: 2px;
|
|
@@ -209,58 +209,58 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
209
209
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
210
210
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-nv4ahb, 2px) var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
211
211
|
}
|
|
212
|
-
.
|
|
212
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li:not(#\9):first-child > hr {
|
|
213
213
|
grid-row: 2/span 2;
|
|
214
214
|
}
|
|
215
|
-
.
|
|
215
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li:not(#\9):not(:first-child) > .awsui_number_1xupv_631vd_148 {
|
|
216
216
|
margin-top: var(--space-scaled-xl-w2t504, 24px);
|
|
217
217
|
}
|
|
218
|
-
.
|
|
218
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li:not(#\9):last-child > hr {
|
|
219
219
|
grid-row: 1;
|
|
220
220
|
}
|
|
221
|
-
.
|
|
221
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li:not(#\9):only-of-type > hr {
|
|
222
222
|
display: none;
|
|
223
223
|
}
|
|
224
|
-
.
|
|
224
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li:not(#\9):not(:first-child):not(:last-child) > hr {
|
|
225
225
|
grid-row: 1/span 3;
|
|
226
226
|
}
|
|
227
|
-
.
|
|
227
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_active_1xupv_631vd_201 > a:not(#\9) {
|
|
228
228
|
cursor: text;
|
|
229
229
|
}
|
|
230
|
-
.
|
|
230
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_active_1xupv_631vd_201 > a > .awsui_circle_1xupv_631vd_164:not(#\9) {
|
|
231
231
|
background-color: var(--color-background-control-checked-9admlu, #0972d3);
|
|
232
232
|
box-shadow: 0 0 0 3px var(--color-background-container-content-i8i4a0, #ffffff), 0 0 0 5px var(--color-background-control-checked-9admlu, #0972d3), 0 0 0 7px var(--color-background-container-content-i8i4a0, #ffffff);
|
|
233
233
|
}
|
|
234
|
-
.
|
|
234
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_active_1xupv_631vd_201 > a > .awsui_title_1xupv_631vd_172:not(#\9) {
|
|
235
235
|
color: var(--color-background-control-checked-9admlu, #0972d3);
|
|
236
236
|
font-weight: 700;
|
|
237
237
|
}
|
|
238
|
-
.
|
|
238
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_disabled_1xupv_631vd_212 > a:not(#\9) {
|
|
239
239
|
cursor: text;
|
|
240
240
|
}
|
|
241
|
-
.
|
|
241
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_disabled_1xupv_631vd_212 > a > .awsui_circle_1xupv_631vd_164:not(#\9) {
|
|
242
242
|
background-color: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
243
243
|
box-shadow: 0 0 0 2px var(--color-text-interactive-disabled-3pbb07, #9ba7b6), 0 0 0 4px var(--color-background-container-content-i8i4a0, #ffffff);
|
|
244
244
|
}
|
|
245
|
-
.
|
|
245
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_disabled_1xupv_631vd_212 > a > .awsui_title_1xupv_631vd_172:not(#\9) {
|
|
246
246
|
color: var(--color-text-status-inactive-5ei55p, #5f6b7a);
|
|
247
247
|
}
|
|
248
|
-
.
|
|
248
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_enabled_1xupv_631vd_222 > a > .awsui_circle_1xupv_631vd_164:not(#\9) {
|
|
249
249
|
background-color: var(--color-text-interactive-default-eg5fsa, #414d5c);
|
|
250
250
|
box-shadow: 0 0 0 2px var(--color-text-interactive-default-eg5fsa, #414d5c), 0 0 0 4px var(--color-background-container-content-i8i4a0, #ffffff);
|
|
251
251
|
}
|
|
252
|
-
.
|
|
252
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_enabled_1xupv_631vd_222 > a > .awsui_title_1xupv_631vd_172:not(#\9) {
|
|
253
253
|
color: var(--color-text-interactive-default-eg5fsa, #414d5c);
|
|
254
254
|
}
|
|
255
|
-
.
|
|
255
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_enabled_1xupv_631vd_222 > a:not(#\9):hover > .awsui_circle_1xupv_631vd_164 {
|
|
256
256
|
background-color: var(--color-background-control-checked-9admlu, #0972d3);
|
|
257
257
|
box-shadow: 0 0 0 2px var(--color-background-control-checked-9admlu, #0972d3), 0 0 0 4px var(--color-background-container-content-i8i4a0, #ffffff);
|
|
258
258
|
}
|
|
259
|
-
.
|
|
259
|
+
.awsui_navigation_1xupv_631vd_120.awsui_refresh_1xupv_631vd_105 > ul > li.awsui_enabled_1xupv_631vd_222 > a:not(#\9):hover > .awsui_title_1xupv_631vd_172 {
|
|
260
260
|
color: var(--color-background-control-checked-9admlu, #0972d3);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
.
|
|
263
|
+
.awsui_navigation_1xupv_631vd_120:not(#\9):not(.awsui_refresh_1xupv_631vd_105) {
|
|
264
264
|
color: var(--color-text-disabled-a2nkh4, #9ba7b6);
|
|
265
265
|
display: inline-block;
|
|
266
266
|
margin-right: calc(2 * var(--space-xxxl-bo9z7f, 40px));
|
|
@@ -268,107 +268,119 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
268
268
|
padding-top: var(--space-xxs-ynfts5, 4px);
|
|
269
269
|
width: 200px;
|
|
270
270
|
}
|
|
271
|
-
.
|
|
271
|
+
.awsui_navigation_1xupv_631vd_120:not(#\9):not(.awsui_refresh_1xupv_631vd_105) > ul {
|
|
272
272
|
list-style: none;
|
|
273
273
|
padding: 0;
|
|
274
274
|
margin: 0;
|
|
275
275
|
}
|
|
276
|
-
.
|
|
276
|
+
.awsui_navigation_1xupv_631vd_120:not(#\9):not(.awsui_refresh_1xupv_631vd_105) > ul > li {
|
|
277
277
|
padding-bottom: var(--space-scaled-m-pv0fmt, 16px);
|
|
278
278
|
padding-top: 0;
|
|
279
279
|
}
|
|
280
|
-
.
|
|
280
|
+
.awsui_navigation_1xupv_631vd_120:not(#\9):not(.awsui_refresh_1xupv_631vd_105) > ul > li:not(:first-child) {
|
|
281
281
|
margin-top: var(--space-scaled-m-pv0fmt, 16px);
|
|
282
282
|
}
|
|
283
|
-
.
|
|
283
|
+
.awsui_navigation_1xupv_631vd_120:not(#\9):not(.awsui_refresh_1xupv_631vd_105) > ul > li:not(:last-child) {
|
|
284
284
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-layout-wf5alz, #d1d5db);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
.
|
|
287
|
+
.awsui_form_1xupv_631vd_261:not(#\9):not(.awsui_refresh_1xupv_631vd_105) {
|
|
288
288
|
min-width: 0;
|
|
289
289
|
-ms-word-break: break-all;
|
|
290
290
|
word-break: break-word;
|
|
291
291
|
width: 100%;
|
|
292
292
|
}
|
|
293
|
-
.
|
|
293
|
+
.awsui_form_1xupv_631vd_261:not(#\9):not(.awsui_refresh_1xupv_631vd_105) > .awsui_form-header_1xupv_631vd_267 {
|
|
294
294
|
position: relative;
|
|
295
295
|
margin-bottom: var(--space-scaled-m-pv0fmt, 16px);
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
.
|
|
298
|
+
.awsui_form_1xupv_631vd_261.awsui_refresh_1xupv_631vd_105:not(#\9) {
|
|
299
299
|
min-width: 0;
|
|
300
300
|
-ms-word-break: break-all;
|
|
301
301
|
word-break: break-word;
|
|
302
302
|
display: contents;
|
|
303
303
|
}
|
|
304
|
-
.
|
|
304
|
+
.awsui_form_1xupv_631vd_261.awsui_refresh_1xupv_631vd_105 > .awsui_background_1xupv_631vd_278:not(#\9) {
|
|
305
305
|
background-color: var(--color-background-layout-main-sfhm4y, #ffffff);
|
|
306
306
|
grid-column: 1/span 2;
|
|
307
307
|
grid-row: 1;
|
|
308
308
|
}
|
|
309
|
-
.
|
|
309
|
+
.awsui_form_1xupv_631vd_261.awsui_refresh_1xupv_631vd_105 > .awsui_form-header_1xupv_631vd_267:not(#\9) {
|
|
310
310
|
background-color: var(--color-background-layout-main-sfhm4y, #ffffff);
|
|
311
311
|
grid-column: 2;
|
|
312
312
|
grid-row: 1;
|
|
313
313
|
}
|
|
314
|
-
.
|
|
314
|
+
.awsui_form_1xupv_631vd_261.awsui_refresh_1xupv_631vd_105 > .awsui_form-header_1xupv_631vd_267 > .awsui_form-header-content_1xupv_631vd_288:not(#\9) {
|
|
315
315
|
padding-top: var(--space-scaled-xl-w2t504, 24px);
|
|
316
316
|
padding-bottom: var(--space-scaled-xl-w2t504, 24px);
|
|
317
317
|
}
|
|
318
|
-
.
|
|
318
|
+
.awsui_form_1xupv_631vd_261.awsui_refresh_1xupv_631vd_105 > .awsui_form-component_1xupv_631vd_292:not(#\9) {
|
|
319
319
|
grid-column: 2;
|
|
320
320
|
grid-row: 2;
|
|
321
321
|
}
|
|
322
|
-
.
|
|
322
|
+
.awsui_form_1xupv_631vd_261.awsui_refresh_1xupv_631vd_105.awsui_small-container_1xupv_631vd_112 > .awsui_form-header_1xupv_631vd_267:not(#\9) {
|
|
323
323
|
grid-column: 1/span 2;
|
|
324
324
|
}
|
|
325
|
-
.
|
|
325
|
+
.awsui_form_1xupv_631vd_261.awsui_refresh_1xupv_631vd_105.awsui_small-container_1xupv_631vd_112 > .awsui_form-header_1xupv_631vd_267 > .awsui_form-header-content_1xupv_631vd_288:not(#\9) {
|
|
326
326
|
padding-top: 0;
|
|
327
327
|
}
|
|
328
|
-
.
|
|
328
|
+
.awsui_form_1xupv_631vd_261.awsui_refresh_1xupv_631vd_105.awsui_small-container_1xupv_631vd_112 > .awsui_form-component_1xupv_631vd_292:not(#\9) {
|
|
329
329
|
grid-column: 1/span 2;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
.
|
|
332
|
+
.awsui_navigation_1xupv_631vd_120.awsui_hidden_1xupv_631vd_306:not(#\9) {
|
|
333
333
|
display: none;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
.awsui_collapsed-
|
|
336
|
+
.awsui_collapsed-steps_1xupv_631vd_310:not(#\9) {
|
|
337
337
|
color: var(--color-text-heading-secondary-corkaj, #414d5c);
|
|
338
338
|
font-weight: 700;
|
|
339
339
|
padding-top: var(--space-scaled-xxs-95dhkm, 4px);
|
|
340
340
|
}
|
|
341
|
-
.awsui_collapsed-steps-extra-
|
|
341
|
+
.awsui_collapsed-steps-extra-padding_1xupv_631vd_315:not(#\9) {
|
|
342
342
|
padding-top: var(--space-scaled-l-t03y3z, 20px);
|
|
343
343
|
}
|
|
344
|
-
.awsui_collapsed-steps-
|
|
344
|
+
.awsui_collapsed-steps-hidden_1xupv_631vd_318:not(#\9) {
|
|
345
345
|
display: none;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
.awsui_form-header-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
.
|
|
348
|
+
.awsui_form-header-component-wrapper_1xupv_631vd_322:not(#\9) {
|
|
349
|
+
outline: none;
|
|
350
|
+
}
|
|
351
|
+
.awsui_form-header-component-wrapper_1xupv_631vd_322[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
352
|
+
outline: thin dotted;
|
|
353
|
+
outline: var(--border-link-focus-ring-outline-k2wccv, 0);
|
|
354
|
+
outline-offset: 2px;
|
|
355
|
+
outline-color: var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
356
|
+
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
357
|
+
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-nv4ahb, 2px) var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.awsui_form-header-component_1xupv_631vd_322:not(#\9),
|
|
361
|
+
.awsui_navigation-link_1xupv_631vd_335:not(#\9),
|
|
362
|
+
.awsui_navigation-link-item_1xupv_631vd_336:not(#\9),
|
|
363
|
+
.awsui_navigation-link-label_1xupv_631vd_337:not(#\9) {
|
|
352
364
|
/* used in test-utils */
|
|
353
365
|
}
|
|
354
366
|
|
|
355
|
-
.awsui_navigation-link-
|
|
367
|
+
.awsui_navigation-link-active_1xupv_631vd_341:not(#\9) {
|
|
356
368
|
font-weight: 700;
|
|
357
369
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
358
370
|
}
|
|
359
371
|
|
|
360
|
-
.awsui_navigation-link-
|
|
372
|
+
.awsui_navigation-link-disabled_1xupv_631vd_346:not(#\9) {
|
|
361
373
|
color: var(--color-text-status-inactive-5ei55p, #5f6b7a);
|
|
362
374
|
}
|
|
363
375
|
|
|
364
|
-
.awsui_cancel-
|
|
365
|
-
.awsui_previous-
|
|
366
|
-
.awsui_primary-
|
|
367
|
-
.awsui_skip-to-
|
|
376
|
+
.awsui_cancel-button_1xupv_631vd_350:not(#\9),
|
|
377
|
+
.awsui_previous-button_1xupv_631vd_351:not(#\9),
|
|
378
|
+
.awsui_primary-button_1xupv_631vd_352:not(#\9),
|
|
379
|
+
.awsui_skip-to-button_1xupv_631vd_353:not(#\9) {
|
|
368
380
|
/* used in test-utils */
|
|
369
381
|
}
|
|
370
382
|
|
|
371
|
-
.awsui_action-
|
|
383
|
+
.awsui_action-buttons_1xupv_631vd_357:not(#\9) {
|
|
372
384
|
display: flex;
|
|
373
385
|
justify-content: flex-end;
|
|
374
386
|
}
|
|
@@ -2,36 +2,37 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"wizard": "
|
|
7
|
-
"refresh": "
|
|
8
|
-
"small-container": "awsui_small-
|
|
9
|
-
"navigation": "
|
|
10
|
-
"number": "
|
|
11
|
-
"circle": "
|
|
12
|
-
"title": "
|
|
13
|
-
"active": "
|
|
14
|
-
"disabled": "
|
|
15
|
-
"enabled": "
|
|
16
|
-
"form": "
|
|
17
|
-
"form-header": "awsui_form-
|
|
18
|
-
"background": "
|
|
19
|
-
"form-header-content": "awsui_form-header-
|
|
20
|
-
"form-component": "awsui_form-
|
|
21
|
-
"hidden": "
|
|
22
|
-
"collapsed-steps": "awsui_collapsed-
|
|
23
|
-
"collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-
|
|
24
|
-
"collapsed-steps-hidden": "awsui_collapsed-steps-
|
|
25
|
-
"form-header-component": "awsui_form-header-
|
|
26
|
-
"
|
|
27
|
-
"navigation-link
|
|
28
|
-
"navigation-link-
|
|
29
|
-
"navigation-link-
|
|
30
|
-
"navigation-link-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
5
|
+
"root": "awsui_root_1xupv_631vd_94",
|
|
6
|
+
"wizard": "awsui_wizard_1xupv_631vd_105",
|
|
7
|
+
"refresh": "awsui_refresh_1xupv_631vd_105",
|
|
8
|
+
"small-container": "awsui_small-container_1xupv_631vd_112",
|
|
9
|
+
"navigation": "awsui_navigation_1xupv_631vd_120",
|
|
10
|
+
"number": "awsui_number_1xupv_631vd_148",
|
|
11
|
+
"circle": "awsui_circle_1xupv_631vd_164",
|
|
12
|
+
"title": "awsui_title_1xupv_631vd_172",
|
|
13
|
+
"active": "awsui_active_1xupv_631vd_201",
|
|
14
|
+
"disabled": "awsui_disabled_1xupv_631vd_212",
|
|
15
|
+
"enabled": "awsui_enabled_1xupv_631vd_222",
|
|
16
|
+
"form": "awsui_form_1xupv_631vd_261",
|
|
17
|
+
"form-header": "awsui_form-header_1xupv_631vd_267",
|
|
18
|
+
"background": "awsui_background_1xupv_631vd_278",
|
|
19
|
+
"form-header-content": "awsui_form-header-content_1xupv_631vd_288",
|
|
20
|
+
"form-component": "awsui_form-component_1xupv_631vd_292",
|
|
21
|
+
"hidden": "awsui_hidden_1xupv_631vd_306",
|
|
22
|
+
"collapsed-steps": "awsui_collapsed-steps_1xupv_631vd_310",
|
|
23
|
+
"collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-padding_1xupv_631vd_315",
|
|
24
|
+
"collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_631vd_318",
|
|
25
|
+
"form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_631vd_322",
|
|
26
|
+
"form-header-component": "awsui_form-header-component_1xupv_631vd_322",
|
|
27
|
+
"navigation-link": "awsui_navigation-link_1xupv_631vd_335",
|
|
28
|
+
"navigation-link-item": "awsui_navigation-link-item_1xupv_631vd_336",
|
|
29
|
+
"navigation-link-label": "awsui_navigation-link-label_1xupv_631vd_337",
|
|
30
|
+
"navigation-link-active": "awsui_navigation-link-active_1xupv_631vd_341",
|
|
31
|
+
"navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_631vd_346",
|
|
32
|
+
"cancel-button": "awsui_cancel-button_1xupv_631vd_350",
|
|
33
|
+
"previous-button": "awsui_previous-button_1xupv_631vd_351",
|
|
34
|
+
"primary-button": "awsui_primary-button_1xupv_631vd_352",
|
|
35
|
+
"skip-to-button": "awsui_skip-to-button_1xupv_631vd_353",
|
|
36
|
+
"action-buttons": "awsui_action-buttons_1xupv_631vd_357"
|
|
36
37
|
};
|
|
37
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard-form.d.ts","sourceRoot":"","sources":["../../../src/wizard/wizard-form.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"wizard-form.d.ts","sourceRoot":"","sources":["../../../src/wizard/wizard-form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAMtC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAM3C,UAAU,eAAe;IACvB,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC;IACrC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EACL,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,cAAc,EACd,aAAa,GACd,EAAE,eAAe,eAiEjB"}
|
package/wizard/wizard-form.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
1
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import React from 'react';
|
|
4
|
+
import React, { useRef } from 'react';
|
|
4
5
|
import clsx from 'clsx';
|
|
5
6
|
import InternalForm from '../form/internal';
|
|
6
7
|
import InternalHeader from '../header/internal';
|
|
@@ -8,12 +9,22 @@ import { useMobile } from '../internal/hooks/use-mobile';
|
|
|
8
9
|
import WizardActions from './wizard-actions';
|
|
9
10
|
import WizardFormHeader from './wizard-form-header';
|
|
10
11
|
import styles from './styles.css.js';
|
|
12
|
+
import useFocusVisible from '../internal/hooks/focus-visible';
|
|
13
|
+
import { useEffectOnUpdate } from '../internal/hooks/use-effect-on-update';
|
|
11
14
|
export default function WizardForm(_a) {
|
|
12
15
|
var steps = _a.steps, activeStepIndex = _a.activeStepIndex, isVisualRefresh = _a.isVisualRefresh, showCollapsedSteps = _a.showCollapsedSteps, i18nStrings = _a.i18nStrings, isPrimaryLoading = _a.isPrimaryLoading, allowSkipTo = _a.allowSkipTo, secondaryActions = _a.secondaryActions, onCancelClick = _a.onCancelClick, onPreviousClick = _a.onPreviousClick, onPrimaryClick = _a.onPrimaryClick, onSkipToClick = _a.onSkipToClick;
|
|
13
16
|
var _b = steps[activeStepIndex] || {}, title = _b.title, info = _b.info, description = _b.description, content = _b.content, errorText = _b.errorText, isOptional = _b.isOptional;
|
|
14
17
|
var isLastStep = activeStepIndex >= steps.length - 1;
|
|
15
18
|
var skipToTargetIndex = findSkipToTargetIndex(steps, activeStepIndex);
|
|
16
19
|
var isMobile = useMobile();
|
|
20
|
+
var stepHeaderRef = useRef(null);
|
|
21
|
+
useEffectOnUpdate(function () {
|
|
22
|
+
var _a;
|
|
23
|
+
if (stepHeaderRef && stepHeaderRef.current) {
|
|
24
|
+
(_a = stepHeaderRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
25
|
+
}
|
|
26
|
+
}, [activeStepIndex]);
|
|
27
|
+
var focusVisible = useFocusVisible();
|
|
17
28
|
var showSkipTo = allowSkipTo && skipToTargetIndex !== -1;
|
|
18
29
|
var skipToButtonText = skipToTargetIndex !== -1 && i18nStrings.skipToButtonLabel
|
|
19
30
|
? i18nStrings.skipToButtonLabel(steps[skipToTargetIndex], skipToTargetIndex + 1)
|
|
@@ -22,8 +33,9 @@ export default function WizardForm(_a) {
|
|
|
22
33
|
React.createElement(WizardFormHeader, { isMobile: isMobile || showCollapsedSteps, isVisualRefresh: isVisualRefresh },
|
|
23
34
|
React.createElement("div", { className: clsx(styles['collapsed-steps'], !showCollapsedSteps && styles['collapsed-steps-hidden'], isVisualRefresh && isMobile && styles['collapsed-steps-extra-padding']) }, i18nStrings.collapsedStepsLabel(activeStepIndex + 1, steps.length)),
|
|
24
35
|
React.createElement(InternalHeader, { className: styles['form-header-component'], variant: "h1", description: description, info: info },
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
React.createElement("span", __assign({ className: styles['form-header-component-wrapper'], tabIndex: -1, ref: stepHeaderRef }, focusVisible),
|
|
37
|
+
title,
|
|
38
|
+
isOptional && React.createElement("i", null, " - ".concat(i18nStrings.optional))))),
|
|
27
39
|
React.createElement(InternalForm, { className: clsx(styles['form-component']), actions: React.createElement(WizardActions, { cancelButtonText: i18nStrings.cancelButton, primaryButtonText: isLastStep ? i18nStrings.submitButton : i18nStrings.nextButton, previousButtonText: i18nStrings.previousButton, onCancelClick: onCancelClick, onPreviousClick: onPreviousClick, onPrimaryClick: onPrimaryClick, onSkipToClick: function () { return onSkipToClick(skipToTargetIndex); }, showPrevious: activeStepIndex !== 0, isPrimaryLoading: isPrimaryLoading, showSkipTo: showSkipTo, skipToButtonText: skipToButtonText }), secondaryActions: secondaryActions, errorText: errorText, errorIconAriaLabel: i18nStrings.errorIconAriaLabel }, content)));
|
|
28
40
|
}
|
|
29
41
|
function findSkipToTargetIndex(steps, activeStepIndex) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard-form.js","sourceRoot":"","sources":["../../../src/wizard/wizard-form.tsx"],"names":[],"mappings":"AAAA,qEAAqE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AI,+BAAI,aAAM,WAAW,CAAC,QAAQ,CAAE,CAAK,CAC/C,CACQ,CACA;QACnB,oBAAC,YAAY,IACX,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,EACzC,OAAO,EACL,oBAAC,aAAa,IACZ,gBAAgB,EAAE,WAAW,CAAC,YAAY,EAC1C,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,EACjF,kBAAkB,EAAE,WAAW,CAAC,cAAc,EAC9C,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,cAAM,OAAA,aAAa,CAAC,iBAAiB,CAAC,EAAhC,CAAgC,EACrD,YAAY,EAAE,eAAe,KAAK,CAAC,EACnC,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,gBAAgB,GAClC,EAEJ,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,IAEjD,OAAO,CACK,CACd,CACJ,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAsC,EAAE,eAAuB;IAC5F,IAAI,qBAAqB,GAAG,eAAe,CAAC;IAC5C,GAAG;QACD,qBAAqB,EAAE,CAAC;KACzB,QAAQ,qBAAqB,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC,UAAU,EAAE;IAE9F,OAAO,qBAAqB,GAAG,eAAe,GAAG,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport InternalForm from '../form/internal';\nimport InternalHeader from '../header/internal';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport WizardActions from './wizard-actions';\nimport { WizardProps } from './interfaces';\nimport WizardFormHeader from './wizard-form-header';\nimport styles from './styles.css.js';\nimport useFocusVisible from '../internal/hooks/focus-visible';\nimport { useEffectOnUpdate } from '../internal/hooks/use-effect-on-update';\n\ninterface WizardFormProps {\n steps: ReadonlyArray<WizardProps.Step>;\n activeStepIndex: number;\n isVisualRefresh: boolean;\n showCollapsedSteps: boolean;\n i18nStrings: WizardProps.I18nStrings;\n isPrimaryLoading: boolean;\n allowSkipTo: boolean;\n secondaryActions?: React.ReactNode;\n onCancelClick: () => void;\n onPreviousClick: () => void;\n onPrimaryClick: () => void;\n onSkipToClick: (stepIndex: number) => void;\n}\n\nexport default function WizardForm({\n steps,\n activeStepIndex,\n isVisualRefresh,\n showCollapsedSteps,\n i18nStrings,\n isPrimaryLoading,\n allowSkipTo,\n secondaryActions,\n onCancelClick,\n onPreviousClick,\n onPrimaryClick,\n onSkipToClick,\n}: WizardFormProps) {\n const { title, info, description, content, errorText, isOptional } = steps[activeStepIndex] || {};\n const isLastStep = activeStepIndex >= steps.length - 1;\n const skipToTargetIndex = findSkipToTargetIndex(steps, activeStepIndex);\n const isMobile = useMobile();\n const stepHeaderRef = useRef<HTMLDivElement | null>(null);\n\n useEffectOnUpdate(() => {\n if (stepHeaderRef && stepHeaderRef.current) {\n stepHeaderRef.current?.focus();\n }\n }, [activeStepIndex]);\n\n const focusVisible = useFocusVisible();\n\n const showSkipTo = allowSkipTo && skipToTargetIndex !== -1;\n const skipToButtonText =\n skipToTargetIndex !== -1 && i18nStrings.skipToButtonLabel\n ? i18nStrings.skipToButtonLabel(steps[skipToTargetIndex], skipToTargetIndex + 1)\n : undefined;\n\n return (\n <>\n <WizardFormHeader isMobile={isMobile || showCollapsedSteps} isVisualRefresh={isVisualRefresh}>\n <div\n className={clsx(\n styles['collapsed-steps'],\n !showCollapsedSteps && styles['collapsed-steps-hidden'],\n isVisualRefresh && isMobile && styles['collapsed-steps-extra-padding']\n )}\n >\n {i18nStrings.collapsedStepsLabel(activeStepIndex + 1, steps.length)}\n </div>\n <InternalHeader className={styles['form-header-component']} variant=\"h1\" description={description} info={info}>\n <span className={styles['form-header-component-wrapper']} tabIndex={-1} ref={stepHeaderRef} {...focusVisible}>\n {title}\n {isOptional && <i>{` - ${i18nStrings.optional}`}</i>}\n </span>\n </InternalHeader>\n </WizardFormHeader>\n <InternalForm\n className={clsx(styles['form-component'])}\n actions={\n <WizardActions\n cancelButtonText={i18nStrings.cancelButton}\n primaryButtonText={isLastStep ? i18nStrings.submitButton : i18nStrings.nextButton}\n previousButtonText={i18nStrings.previousButton}\n onCancelClick={onCancelClick}\n onPreviousClick={onPreviousClick}\n onPrimaryClick={onPrimaryClick}\n onSkipToClick={() => onSkipToClick(skipToTargetIndex)}\n showPrevious={activeStepIndex !== 0}\n isPrimaryLoading={isPrimaryLoading}\n showSkipTo={showSkipTo}\n skipToButtonText={skipToButtonText}\n />\n }\n secondaryActions={secondaryActions}\n errorText={errorText}\n errorIconAriaLabel={i18nStrings.errorIconAriaLabel}\n >\n {content}\n </InternalForm>\n </>\n );\n}\n\nfunction findSkipToTargetIndex(steps: ReadonlyArray<WizardProps.Step>, activeStepIndex: number): number {\n let nextRequiredStepIndex = activeStepIndex;\n do {\n nextRequiredStepIndex++;\n } while (nextRequiredStepIndex < steps.length - 1 && steps[nextRequiredStepIndex].isOptional);\n\n return nextRequiredStepIndex > activeStepIndex + 1 ? nextRequiredStepIndex : -1;\n}\n"]}
|