@cloudscape-design/components 3.0.116 → 3.0.118

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.
Files changed (113) hide show
  1. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  2. package/area-chart/model/use-chart-model.js +2 -1
  3. package/area-chart/model/use-chart-model.js.map +1 -1
  4. package/area-chart/model/utils.d.ts +0 -6
  5. package/area-chart/model/utils.d.ts.map +1 -1
  6. package/area-chart/model/utils.js +0 -52
  7. package/area-chart/model/utils.js.map +1 -1
  8. package/button/index.d.ts.map +1 -1
  9. package/button/index.js +2 -2
  10. package/button/index.js.map +1 -1
  11. package/button/interfaces.d.ts +4 -0
  12. package/button/interfaces.d.ts.map +1 -1
  13. package/button/interfaces.js.map +1 -1
  14. package/button/internal.d.ts.map +1 -1
  15. package/button/internal.js +10 -5
  16. package/button/internal.js.map +1 -1
  17. package/button-dropdown/index.d.ts.map +1 -1
  18. package/button-dropdown/index.js +2 -2
  19. package/button-dropdown/index.js.map +1 -1
  20. package/button-dropdown/interfaces.d.ts +4 -0
  21. package/button-dropdown/interfaces.d.ts.map +1 -1
  22. package/button-dropdown/interfaces.js.map +1 -1
  23. package/button-dropdown/internal.d.ts.map +1 -1
  24. package/button-dropdown/internal.js +2 -2
  25. package/button-dropdown/internal.js.map +1 -1
  26. package/cards/index.d.ts.map +1 -1
  27. package/cards/index.js +3 -1
  28. package/cards/index.js.map +1 -1
  29. package/code-editor/index.d.ts.map +1 -1
  30. package/code-editor/index.js +3 -1
  31. package/code-editor/index.js.map +1 -1
  32. package/expandable-section/expandable-section-header.d.ts +12 -4
  33. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  34. package/expandable-section/expandable-section-header.js +51 -11
  35. package/expandable-section/expandable-section-header.js.map +1 -1
  36. package/expandable-section/interfaces.d.ts +21 -3
  37. package/expandable-section/interfaces.d.ts.map +1 -1
  38. package/expandable-section/interfaces.js.map +1 -1
  39. package/expandable-section/internal.d.ts +1 -1
  40. package/expandable-section/internal.d.ts.map +1 -1
  41. package/expandable-section/internal.js +2 -2
  42. package/expandable-section/internal.js.map +1 -1
  43. package/expandable-section/styles.css.js +21 -20
  44. package/expandable-section/styles.scoped.css +56 -39
  45. package/expandable-section/styles.selectors.js +21 -20
  46. package/flashbar/flash.d.ts +3 -3
  47. package/flashbar/flash.d.ts.map +1 -1
  48. package/flashbar/flash.js +31 -15
  49. package/flashbar/flash.js.map +1 -1
  50. package/flashbar/index.d.ts.map +1 -1
  51. package/flashbar/index.js +61 -14
  52. package/flashbar/index.js.map +1 -1
  53. package/flashbar/interfaces.d.ts +16 -0
  54. package/flashbar/interfaces.d.ts.map +1 -1
  55. package/flashbar/interfaces.js.map +1 -1
  56. package/flashbar/styles.css.js +33 -29
  57. package/flashbar/styles.scoped.css +151 -112
  58. package/flashbar/styles.selectors.js +33 -29
  59. package/help-panel/index.d.ts.map +1 -1
  60. package/help-panel/index.js +3 -1
  61. package/help-panel/index.js.map +1 -1
  62. package/internal/components/chart-status-container/index.d.ts +2 -2
  63. package/internal/components/chart-status-container/index.d.ts.map +1 -1
  64. package/internal/components/chart-status-container/index.js +2 -3
  65. package/internal/components/chart-status-container/index.js.map +1 -1
  66. package/internal/components/live-region/index.d.ts +2 -1
  67. package/internal/components/live-region/index.d.ts.map +1 -1
  68. package/internal/components/live-region/index.js +6 -5
  69. package/internal/components/live-region/index.js.map +1 -1
  70. package/internal/environment.js +1 -1
  71. package/internal/manifest.json +1 -1
  72. package/internal/utils/throttle.d.ts +10 -0
  73. package/internal/utils/throttle.d.ts.map +1 -0
  74. package/internal/utils/throttle.js +57 -0
  75. package/internal/utils/throttle.js.map +1 -0
  76. package/package.json +1 -1
  77. package/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  78. package/s3-resource-selector/s3-in-context/index.js +3 -1
  79. package/s3-resource-selector/s3-in-context/index.js.map +1 -1
  80. package/side-navigation/internal.js +2 -2
  81. package/side-navigation/internal.js.map +1 -1
  82. package/table/internal.d.ts.map +1 -1
  83. package/table/internal.js +3 -1
  84. package/table/internal.js.map +1 -1
  85. package/tag-editor/index.d.ts.map +1 -1
  86. package/tag-editor/index.js +3 -1
  87. package/tag-editor/index.js.map +1 -1
  88. package/test-utils/dom/flashbar/flash.js +1 -1
  89. package/test-utils/dom/flashbar/flash.js.map +1 -1
  90. package/test-utils/dom/flashbar/index.js +1 -1
  91. package/test-utils/dom/flashbar/index.js.map +1 -1
  92. package/test-utils/selectors/flashbar/flash.js +1 -1
  93. package/test-utils/selectors/flashbar/flash.js.map +1 -1
  94. package/test-utils/selectors/flashbar/index.js +1 -1
  95. package/test-utils/selectors/flashbar/index.js.map +1 -1
  96. package/test-utils/tsconfig.tsbuildinfo +1 -1
  97. package/tiles/styles.css.js +28 -28
  98. package/tiles/styles.scoped.css +69 -68
  99. package/tiles/styles.selectors.js +28 -28
  100. package/tutorial-panel/components/tutorial-detail-view/task.js +1 -1
  101. package/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
  102. package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  103. package/tutorial-panel/components/tutorial-list/index.js +3 -1
  104. package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  105. package/wizard/index.d.ts.map +1 -1
  106. package/wizard/index.js +2 -20
  107. package/wizard/index.js.map +1 -1
  108. package/wizard/styles.css.js +32 -31
  109. package/wizard/styles.scoped.css +71 -59
  110. package/wizard/styles.selectors.js +32 -31
  111. package/wizard/wizard-form.d.ts.map +1 -1
  112. package/wizard/wizard-form.js +15 -3
  113. package/wizard/wizard-form.js.map +1 -1
package/wizard/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { __assign, __rest } from "tslib";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
- import React, { useEffect, useRef } from 'react';
4
+ import React, { useRef } from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { getBaseProps } from '../internal/base-component';
7
7
  import { fireNonCancelableEvent } from '../internal/events';
@@ -15,20 +15,6 @@ import { applyDisplayName } from '../internal/utils/apply-display-name';
15
15
  import useBaseComponent from '../internal/hooks/use-base-component';
16
16
  import { useMergeRefs } from '../internal/hooks/use-merge-refs';
17
17
  import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
18
- var scrollToTop = function (ref) {
19
- var _a;
20
- var overflowRegex = /(auto|scroll)/;
21
- var parent = (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.parentElement;
22
- while (parent && !overflowRegex.test(getComputedStyle(parent).overflow)) {
23
- parent = parent.parentElement;
24
- }
25
- if (parent) {
26
- parent.scrollTop = 0;
27
- }
28
- else {
29
- window.scrollTo(window.pageXOffset, 0);
30
- }
31
- };
32
18
  export default function Wizard(_a) {
33
19
  var steps = _a.steps, controlledActiveStepIndex = _a.activeStepIndex, i18nStrings = _a.i18nStrings, _b = _a.isLoadingNextStep, isLoadingNextStep = _b === void 0 ? false : _b, _c = _a.allowSkipTo, allowSkipTo = _c === void 0 ? false : _c, secondaryActions = _a.secondaryActions, onCancel = _a.onCancel, onSubmit = _a.onSubmit, onNavigate = _a.onNavigate, rest = __rest(_a, ["steps", "activeStepIndex", "i18nStrings", "isLoadingNextStep", "allowSkipTo", "secondaryActions", "onCancel", "onSubmit", "onNavigate"]);
34
20
  var __internalRootRef = useBaseComponent('Wizard').__internalRootRef;
@@ -44,10 +30,6 @@ export default function Wizard(_a) {
44
30
  var actualActiveStepIndex = activeStepIndex ? Math.min(activeStepIndex, steps.length - 1) : 0;
45
31
  var farthestStepIndex = useRef(actualActiveStepIndex);
46
32
  farthestStepIndex.current = Math.max(farthestStepIndex.current, actualActiveStepIndex);
47
- var internalRef = useRef(null);
48
- useEffect(function () {
49
- scrollToTop(internalRef);
50
- }, [actualActiveStepIndex]);
51
33
  var isVisualRefresh = useVisualRefresh();
52
34
  var isLastStep = actualActiveStepIndex >= steps.length - 1;
53
35
  var navigationEvent = function (requestedStepIndex, reason) {
@@ -68,7 +50,7 @@ export default function Wizard(_a) {
68
50
  warnOnce('Wizard', "You have set `allowSkipTo` but you have not provided `i18nStrings.skipToButtonLabel`. The skip-to button will not be rendered.");
69
51
  }
70
52
  return (React.createElement("div", __assign({}, baseProps, { className: clsx(styles.root, baseProps.className), ref: ref }),
71
- React.createElement("div", { className: clsx(styles.wizard, isVisualRefresh && styles.refresh, smallContainer && styles['small-container']), ref: internalRef },
53
+ React.createElement("div", { className: clsx(styles.wizard, isVisualRefresh && styles.refresh, smallContainer && styles['small-container']) },
72
54
  React.createElement(WizardNavigation, { activeStepIndex: actualActiveStepIndex, farthestStepIndex: farthestStepIndex.current, allowSkipTo: allowSkipTo, hidden: smallContainer, i18nStrings: i18nStrings, isVisualRefresh: isVisualRefresh, isLoadingNextStep: isLoadingNextStep, onStepClick: onStepClick, onSkipToClick: onSkipToClick, steps: steps }),
73
55
  React.createElement("div", { className: clsx(styles.form, isVisualRefresh && styles.refresh, smallContainer && styles['small-container']) },
74
56
  isVisualRefresh && React.createElement("div", { className: clsx(styles.background, 'awsui-context-content-header') }),
@@ -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,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,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,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,gBAAgB,MA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E,iBAAiB,CAAC,OAAO,EAC5C,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,cAAc,EACtB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,GACZ;YACF,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,IAAI,MAAM,CAAC,OAAO,EAAE,cAAc,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC;gBAE3G,eAAe,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,8BAA8B,CAAC,GAAI;gBAE/F,oBAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,cAAc,EAClC,WAAW,EAAE,WAAW,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, { useEffect, 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\nconst scrollToTop = (ref: React.RefObject<HTMLDivElement>) => {\n const overflowRegex = /(auto|scroll)/;\n let parent = ref?.current?.parentElement;\n while (parent && !overflowRegex.test(getComputedStyle(parent).overflow)) {\n parent = parent.parentElement;\n }\n if (parent) {\n parent.scrollTop = 0;\n } else {\n window.scrollTo(window.pageXOffset, 0);\n }\n};\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 internalRef = useRef<HTMLDivElement>(null);\n useEffect(() => {\n scrollToTop(internalRef);\n }, [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 ref={internalRef}\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"]}
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,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAIrE,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAWjB;IAVZ,IAAA,KAAK,WAAA,EACY,yBAAyB,qBAAA,EAC1C,WAAW,iBAAA,EACX,yBAAyB,EAAzB,iBAAiB,mBAAG,KAAK,KAAA,EACzB,mBAAmB,EAAnB,WAAW,mBAAG,KAAK,KAAA,EACnB,gBAAgB,sBAAA,EAChB,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,UAAU,gBAAA,EACP,IAAI,cAVsB,yIAW9B,CADQ;IAEC,IAAA,iBAAiB,GAAK,gBAAgB,CAAC,Q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cAAc,EACtB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,GACZ;YACF,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,IAAI,MAAM,CAAC,OAAO,EAAE,cAAc,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC;gBAE3G,eAAe,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,8BAA8B,CAAC,GAAI;gBAE/F,oBAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,cAAc,EAClC,WAAW,EAAE,WAAW,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"]}
@@ -1,36 +1,37 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_1xupv_1vqk5_94",
5
- "wizard": "awsui_wizard_1xupv_1vqk5_105",
6
- "refresh": "awsui_refresh_1xupv_1vqk5_105",
7
- "small-container": "awsui_small-container_1xupv_1vqk5_112",
8
- "navigation": "awsui_navigation_1xupv_1vqk5_120",
9
- "number": "awsui_number_1xupv_1vqk5_148",
10
- "circle": "awsui_circle_1xupv_1vqk5_164",
11
- "title": "awsui_title_1xupv_1vqk5_172",
12
- "active": "awsui_active_1xupv_1vqk5_201",
13
- "disabled": "awsui_disabled_1xupv_1vqk5_212",
14
- "enabled": "awsui_enabled_1xupv_1vqk5_222",
15
- "form": "awsui_form_1xupv_1vqk5_261",
16
- "form-header": "awsui_form-header_1xupv_1vqk5_267",
17
- "background": "awsui_background_1xupv_1vqk5_278",
18
- "form-header-content": "awsui_form-header-content_1xupv_1vqk5_288",
19
- "form-component": "awsui_form-component_1xupv_1vqk5_292",
20
- "hidden": "awsui_hidden_1xupv_1vqk5_306",
21
- "collapsed-steps": "awsui_collapsed-steps_1xupv_1vqk5_310",
22
- "collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-padding_1xupv_1vqk5_315",
23
- "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_1vqk5_318",
24
- "form-header-component": "awsui_form-header-component_1xupv_1vqk5_322",
25
- "navigation-link": "awsui_navigation-link_1xupv_1vqk5_323",
26
- "navigation-link-item": "awsui_navigation-link-item_1xupv_1vqk5_324",
27
- "navigation-link-label": "awsui_navigation-link-label_1xupv_1vqk5_325",
28
- "navigation-link-active": "awsui_navigation-link-active_1xupv_1vqk5_329",
29
- "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_1vqk5_334",
30
- "cancel-button": "awsui_cancel-button_1xupv_1vqk5_338",
31
- "previous-button": "awsui_previous-button_1xupv_1vqk5_339",
32
- "primary-button": "awsui_primary-button_1xupv_1vqk5_340",
33
- "skip-to-button": "awsui_skip-to-button_1xupv_1vqk5_341",
34
- "action-buttons": "awsui_action-buttons_1xupv_1vqk5_345"
4
+ "root": "awsui_root_1xupv_1l2g1_94",
5
+ "wizard": "awsui_wizard_1xupv_1l2g1_105",
6
+ "refresh": "awsui_refresh_1xupv_1l2g1_105",
7
+ "small-container": "awsui_small-container_1xupv_1l2g1_112",
8
+ "navigation": "awsui_navigation_1xupv_1l2g1_120",
9
+ "number": "awsui_number_1xupv_1l2g1_148",
10
+ "circle": "awsui_circle_1xupv_1l2g1_164",
11
+ "title": "awsui_title_1xupv_1l2g1_172",
12
+ "active": "awsui_active_1xupv_1l2g1_201",
13
+ "disabled": "awsui_disabled_1xupv_1l2g1_212",
14
+ "enabled": "awsui_enabled_1xupv_1l2g1_222",
15
+ "form": "awsui_form_1xupv_1l2g1_261",
16
+ "form-header": "awsui_form-header_1xupv_1l2g1_267",
17
+ "background": "awsui_background_1xupv_1l2g1_278",
18
+ "form-header-content": "awsui_form-header-content_1xupv_1l2g1_288",
19
+ "form-component": "awsui_form-component_1xupv_1l2g1_292",
20
+ "hidden": "awsui_hidden_1xupv_1l2g1_306",
21
+ "collapsed-steps": "awsui_collapsed-steps_1xupv_1l2g1_310",
22
+ "collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-padding_1xupv_1l2g1_315",
23
+ "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_1l2g1_318",
24
+ "form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_1l2g1_322",
25
+ "form-header-component": "awsui_form-header-component_1xupv_1l2g1_322",
26
+ "navigation-link": "awsui_navigation-link_1xupv_1l2g1_335",
27
+ "navigation-link-item": "awsui_navigation-link-item_1xupv_1l2g1_336",
28
+ "navigation-link-label": "awsui_navigation-link-label_1xupv_1l2g1_337",
29
+ "navigation-link-active": "awsui_navigation-link-active_1xupv_1l2g1_341",
30
+ "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_1l2g1_346",
31
+ "cancel-button": "awsui_cancel-button_1xupv_1l2g1_350",
32
+ "previous-button": "awsui_previous-button_1xupv_1l2g1_351",
33
+ "primary-button": "awsui_primary-button_1xupv_1l2g1_352",
34
+ "skip-to-button": "awsui_skip-to-button_1xupv_1l2g1_353",
35
+ "action-buttons": "awsui_action-buttons_1xupv_1l2g1_357"
35
36
  };
36
37
 
@@ -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
- .awsui_root_1xupv_1vqk5_94:not(#\9) {
94
+ .awsui_root_1xupv_1l2g1_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
- .awsui_wizard_1xupv_1vqk5_105.awsui_refresh_1xupv_1vqk5_105:not(#\9) {
131
+ .awsui_wizard_1xupv_1l2g1_105.awsui_refresh_1xupv_1l2g1_105:not(#\9) {
132
132
  column-gap: var(--space-xl-a39hup, 24px);
133
133
  display: grid;
134
- grid-template-columns: auto 1fr;
134
+ grid-template-columns: auto minmax(0, 1fr);
135
135
  grid-template-rows: auto 1fr;
136
136
  row-gap: var(--space-scaled-xl-w2t504, 24px);
137
137
  }
138
- .awsui_wizard_1xupv_1vqk5_105.awsui_refresh_1xupv_1vqk5_105.awsui_small-container_1xupv_1vqk5_112:not(#\9) {
138
+ .awsui_wizard_1xupv_1l2g1_105.awsui_refresh_1xupv_1l2g1_105.awsui_small-container_1xupv_1l2g1_112:not(#\9) {
139
139
  row-gap: var(--space-scaled-l-t03y3z, 20px);
140
140
  }
141
141
 
142
- .awsui_wizard_1xupv_1vqk5_105:not(#\9):not(.awsui_refresh_1xupv_1vqk5_105) {
142
+ .awsui_wizard_1xupv_1l2g1_105:not(#\9):not(.awsui_refresh_1xupv_1l2g1_105) {
143
143
  display: flex;
144
144
  }
145
145
 
146
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105:not(#\9) {
146
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul:not(#\9) {
152
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li:not(#\9) {
161
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li > hr:not(#\9) {
167
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li > .awsui_number_1xupv_1vqk5_148:not(#\9) {
174
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li > .awsui_number_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li > a:not(#\9) {
180
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li > a > .awsui_circle_1xupv_1vqk5_164:not(#\9) {
190
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li > a > .awsui_circle_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li > a > .awsui_title_1xupv_1vqk5_172:not(#\9) {
198
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li > a > .awsui_title_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li > a[data-awsui-focus-visible=true]:not(#\9):focus {
204
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li:not(#\9):first-child > hr {
212
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li:not(#\9):first-child > hr {
213
213
  grid-row: 2/span 2;
214
214
  }
215
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li:not(#\9):not(:first-child) > .awsui_number_1xupv_1vqk5_148 {
215
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li:not(#\9):not(:first-child) > .awsui_number_1xupv_1l2g1_148 {
216
216
  margin-top: var(--space-scaled-xl-w2t504, 24px);
217
217
  }
218
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li:not(#\9):last-child > hr {
218
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li:not(#\9):last-child > hr {
219
219
  grid-row: 1;
220
220
  }
221
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li:not(#\9):only-of-type > hr {
221
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li:not(#\9):only-of-type > hr {
222
222
  display: none;
223
223
  }
224
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li:not(#\9):not(:first-child):not(:last-child) > hr {
224
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li:not(#\9):not(:first-child):not(:last-child) > hr {
225
225
  grid-row: 1/span 3;
226
226
  }
227
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_active_1xupv_1vqk5_201 > a:not(#\9) {
227
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_active_1xupv_1l2g1_201 > a:not(#\9) {
228
228
  cursor: text;
229
229
  }
230
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_active_1xupv_1vqk5_201 > a > .awsui_circle_1xupv_1vqk5_164:not(#\9) {
230
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_active_1xupv_1l2g1_201 > a > .awsui_circle_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_active_1xupv_1vqk5_201 > a > .awsui_title_1xupv_1vqk5_172:not(#\9) {
234
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_active_1xupv_1l2g1_201 > a > .awsui_title_1xupv_1l2g1_172:not(#\9) {
235
235
  color: var(--color-background-control-checked-9admlu, #0972d3);
236
236
  font-weight: 700;
237
237
  }
238
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_disabled_1xupv_1vqk5_212 > a:not(#\9) {
238
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_disabled_1xupv_1l2g1_212 > a:not(#\9) {
239
239
  cursor: text;
240
240
  }
241
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_disabled_1xupv_1vqk5_212 > a > .awsui_circle_1xupv_1vqk5_164:not(#\9) {
241
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_disabled_1xupv_1l2g1_212 > a > .awsui_circle_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_disabled_1xupv_1vqk5_212 > a > .awsui_title_1xupv_1vqk5_172:not(#\9) {
245
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_disabled_1xupv_1l2g1_212 > a > .awsui_title_1xupv_1l2g1_172:not(#\9) {
246
246
  color: var(--color-text-status-inactive-5ei55p, #5f6b7a);
247
247
  }
248
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_enabled_1xupv_1vqk5_222 > a > .awsui_circle_1xupv_1vqk5_164:not(#\9) {
248
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_enabled_1xupv_1l2g1_222 > a > .awsui_circle_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_enabled_1xupv_1vqk5_222 > a > .awsui_title_1xupv_1vqk5_172:not(#\9) {
252
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_enabled_1xupv_1l2g1_222 > a > .awsui_title_1xupv_1l2g1_172:not(#\9) {
253
253
  color: var(--color-text-interactive-default-eg5fsa, #414d5c);
254
254
  }
255
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_enabled_1xupv_1vqk5_222 > a:not(#\9):hover > .awsui_circle_1xupv_1vqk5_164 {
255
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_enabled_1xupv_1l2g1_222 > a:not(#\9):hover > .awsui_circle_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120.awsui_refresh_1xupv_1vqk5_105 > ul > li.awsui_enabled_1xupv_1vqk5_222 > a:not(#\9):hover > .awsui_title_1xupv_1vqk5_172 {
259
+ .awsui_navigation_1xupv_1l2g1_120.awsui_refresh_1xupv_1l2g1_105 > ul > li.awsui_enabled_1xupv_1l2g1_222 > a:not(#\9):hover > .awsui_title_1xupv_1l2g1_172 {
260
260
  color: var(--color-background-control-checked-9admlu, #0972d3);
261
261
  }
262
262
 
263
- .awsui_navigation_1xupv_1vqk5_120:not(#\9):not(.awsui_refresh_1xupv_1vqk5_105) {
263
+ .awsui_navigation_1xupv_1l2g1_120:not(#\9):not(.awsui_refresh_1xupv_1l2g1_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
- .awsui_navigation_1xupv_1vqk5_120:not(#\9):not(.awsui_refresh_1xupv_1vqk5_105) > ul {
271
+ .awsui_navigation_1xupv_1l2g1_120:not(#\9):not(.awsui_refresh_1xupv_1l2g1_105) > ul {
272
272
  list-style: none;
273
273
  padding: 0;
274
274
  margin: 0;
275
275
  }
276
- .awsui_navigation_1xupv_1vqk5_120:not(#\9):not(.awsui_refresh_1xupv_1vqk5_105) > ul > li {
276
+ .awsui_navigation_1xupv_1l2g1_120:not(#\9):not(.awsui_refresh_1xupv_1l2g1_105) > ul > li {
277
277
  padding-bottom: var(--space-scaled-m-pv0fmt, 16px);
278
278
  padding-top: 0;
279
279
  }
280
- .awsui_navigation_1xupv_1vqk5_120:not(#\9):not(.awsui_refresh_1xupv_1vqk5_105) > ul > li:not(:first-child) {
280
+ .awsui_navigation_1xupv_1l2g1_120:not(#\9):not(.awsui_refresh_1xupv_1l2g1_105) > ul > li:not(:first-child) {
281
281
  margin-top: var(--space-scaled-m-pv0fmt, 16px);
282
282
  }
283
- .awsui_navigation_1xupv_1vqk5_120:not(#\9):not(.awsui_refresh_1xupv_1vqk5_105) > ul > li:not(:last-child) {
283
+ .awsui_navigation_1xupv_1l2g1_120:not(#\9):not(.awsui_refresh_1xupv_1l2g1_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
- .awsui_form_1xupv_1vqk5_261:not(#\9):not(.awsui_refresh_1xupv_1vqk5_105) {
287
+ .awsui_form_1xupv_1l2g1_261:not(#\9):not(.awsui_refresh_1xupv_1l2g1_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
- .awsui_form_1xupv_1vqk5_261:not(#\9):not(.awsui_refresh_1xupv_1vqk5_105) > .awsui_form-header_1xupv_1vqk5_267 {
293
+ .awsui_form_1xupv_1l2g1_261:not(#\9):not(.awsui_refresh_1xupv_1l2g1_105) > .awsui_form-header_1xupv_1l2g1_267 {
294
294
  position: relative;
295
295
  margin-bottom: var(--space-scaled-m-pv0fmt, 16px);
296
296
  }
297
297
 
298
- .awsui_form_1xupv_1vqk5_261.awsui_refresh_1xupv_1vqk5_105:not(#\9) {
298
+ .awsui_form_1xupv_1l2g1_261.awsui_refresh_1xupv_1l2g1_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
- .awsui_form_1xupv_1vqk5_261.awsui_refresh_1xupv_1vqk5_105 > .awsui_background_1xupv_1vqk5_278:not(#\9) {
304
+ .awsui_form_1xupv_1l2g1_261.awsui_refresh_1xupv_1l2g1_105 > .awsui_background_1xupv_1l2g1_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
- .awsui_form_1xupv_1vqk5_261.awsui_refresh_1xupv_1vqk5_105 > .awsui_form-header_1xupv_1vqk5_267:not(#\9) {
309
+ .awsui_form_1xupv_1l2g1_261.awsui_refresh_1xupv_1l2g1_105 > .awsui_form-header_1xupv_1l2g1_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
- .awsui_form_1xupv_1vqk5_261.awsui_refresh_1xupv_1vqk5_105 > .awsui_form-header_1xupv_1vqk5_267 > .awsui_form-header-content_1xupv_1vqk5_288:not(#\9) {
314
+ .awsui_form_1xupv_1l2g1_261.awsui_refresh_1xupv_1l2g1_105 > .awsui_form-header_1xupv_1l2g1_267 > .awsui_form-header-content_1xupv_1l2g1_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
- .awsui_form_1xupv_1vqk5_261.awsui_refresh_1xupv_1vqk5_105 > .awsui_form-component_1xupv_1vqk5_292:not(#\9) {
318
+ .awsui_form_1xupv_1l2g1_261.awsui_refresh_1xupv_1l2g1_105 > .awsui_form-component_1xupv_1l2g1_292:not(#\9) {
319
319
  grid-column: 2;
320
320
  grid-row: 2;
321
321
  }
322
- .awsui_form_1xupv_1vqk5_261.awsui_refresh_1xupv_1vqk5_105.awsui_small-container_1xupv_1vqk5_112 > .awsui_form-header_1xupv_1vqk5_267:not(#\9) {
322
+ .awsui_form_1xupv_1l2g1_261.awsui_refresh_1xupv_1l2g1_105.awsui_small-container_1xupv_1l2g1_112 > .awsui_form-header_1xupv_1l2g1_267:not(#\9) {
323
323
  grid-column: 1/span 2;
324
324
  }
325
- .awsui_form_1xupv_1vqk5_261.awsui_refresh_1xupv_1vqk5_105.awsui_small-container_1xupv_1vqk5_112 > .awsui_form-header_1xupv_1vqk5_267 > .awsui_form-header-content_1xupv_1vqk5_288:not(#\9) {
325
+ .awsui_form_1xupv_1l2g1_261.awsui_refresh_1xupv_1l2g1_105.awsui_small-container_1xupv_1l2g1_112 > .awsui_form-header_1xupv_1l2g1_267 > .awsui_form-header-content_1xupv_1l2g1_288:not(#\9) {
326
326
  padding-top: 0;
327
327
  }
328
- .awsui_form_1xupv_1vqk5_261.awsui_refresh_1xupv_1vqk5_105.awsui_small-container_1xupv_1vqk5_112 > .awsui_form-component_1xupv_1vqk5_292:not(#\9) {
328
+ .awsui_form_1xupv_1l2g1_261.awsui_refresh_1xupv_1l2g1_105.awsui_small-container_1xupv_1l2g1_112 > .awsui_form-component_1xupv_1l2g1_292:not(#\9) {
329
329
  grid-column: 1/span 2;
330
330
  }
331
331
 
332
- .awsui_navigation_1xupv_1vqk5_120.awsui_hidden_1xupv_1vqk5_306:not(#\9) {
332
+ .awsui_navigation_1xupv_1l2g1_120.awsui_hidden_1xupv_1l2g1_306:not(#\9) {
333
333
  display: none;
334
334
  }
335
335
 
336
- .awsui_collapsed-steps_1xupv_1vqk5_310:not(#\9) {
336
+ .awsui_collapsed-steps_1xupv_1l2g1_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-padding_1xupv_1vqk5_315:not(#\9) {
341
+ .awsui_collapsed-steps-extra-padding_1xupv_1l2g1_315:not(#\9) {
342
342
  padding-top: var(--space-scaled-l-t03y3z, 20px);
343
343
  }
344
- .awsui_collapsed-steps-hidden_1xupv_1vqk5_318:not(#\9) {
344
+ .awsui_collapsed-steps-hidden_1xupv_1l2g1_318:not(#\9) {
345
345
  display: none;
346
346
  }
347
347
 
348
- .awsui_form-header-component_1xupv_1vqk5_322:not(#\9),
349
- .awsui_navigation-link_1xupv_1vqk5_323:not(#\9),
350
- .awsui_navigation-link-item_1xupv_1vqk5_324:not(#\9),
351
- .awsui_navigation-link-label_1xupv_1vqk5_325:not(#\9) {
348
+ .awsui_form-header-component-wrapper_1xupv_1l2g1_322:not(#\9) {
349
+ outline: none;
350
+ }
351
+ .awsui_form-header-component-wrapper_1xupv_1l2g1_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_1l2g1_322:not(#\9),
361
+ .awsui_navigation-link_1xupv_1l2g1_335:not(#\9),
362
+ .awsui_navigation-link-item_1xupv_1l2g1_336:not(#\9),
363
+ .awsui_navigation-link-label_1xupv_1l2g1_337:not(#\9) {
352
364
  /* used in test-utils */
353
365
  }
354
366
 
355
- .awsui_navigation-link-active_1xupv_1vqk5_329:not(#\9) {
367
+ .awsui_navigation-link-active_1xupv_1l2g1_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-disabled_1xupv_1vqk5_334:not(#\9) {
372
+ .awsui_navigation-link-disabled_1xupv_1l2g1_346:not(#\9) {
361
373
  color: var(--color-text-status-inactive-5ei55p, #5f6b7a);
362
374
  }
363
375
 
364
- .awsui_cancel-button_1xupv_1vqk5_338:not(#\9),
365
- .awsui_previous-button_1xupv_1vqk5_339:not(#\9),
366
- .awsui_primary-button_1xupv_1vqk5_340:not(#\9),
367
- .awsui_skip-to-button_1xupv_1vqk5_341:not(#\9) {
376
+ .awsui_cancel-button_1xupv_1l2g1_350:not(#\9),
377
+ .awsui_previous-button_1xupv_1l2g1_351:not(#\9),
378
+ .awsui_primary-button_1xupv_1l2g1_352:not(#\9),
379
+ .awsui_skip-to-button_1xupv_1l2g1_353:not(#\9) {
368
380
  /* used in test-utils */
369
381
  }
370
382
 
371
- .awsui_action-buttons_1xupv_1vqk5_345:not(#\9) {
383
+ .awsui_action-buttons_1xupv_1l2g1_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": "awsui_root_1xupv_1vqk5_94",
6
- "wizard": "awsui_wizard_1xupv_1vqk5_105",
7
- "refresh": "awsui_refresh_1xupv_1vqk5_105",
8
- "small-container": "awsui_small-container_1xupv_1vqk5_112",
9
- "navigation": "awsui_navigation_1xupv_1vqk5_120",
10
- "number": "awsui_number_1xupv_1vqk5_148",
11
- "circle": "awsui_circle_1xupv_1vqk5_164",
12
- "title": "awsui_title_1xupv_1vqk5_172",
13
- "active": "awsui_active_1xupv_1vqk5_201",
14
- "disabled": "awsui_disabled_1xupv_1vqk5_212",
15
- "enabled": "awsui_enabled_1xupv_1vqk5_222",
16
- "form": "awsui_form_1xupv_1vqk5_261",
17
- "form-header": "awsui_form-header_1xupv_1vqk5_267",
18
- "background": "awsui_background_1xupv_1vqk5_278",
19
- "form-header-content": "awsui_form-header-content_1xupv_1vqk5_288",
20
- "form-component": "awsui_form-component_1xupv_1vqk5_292",
21
- "hidden": "awsui_hidden_1xupv_1vqk5_306",
22
- "collapsed-steps": "awsui_collapsed-steps_1xupv_1vqk5_310",
23
- "collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-padding_1xupv_1vqk5_315",
24
- "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_1vqk5_318",
25
- "form-header-component": "awsui_form-header-component_1xupv_1vqk5_322",
26
- "navigation-link": "awsui_navigation-link_1xupv_1vqk5_323",
27
- "navigation-link-item": "awsui_navigation-link-item_1xupv_1vqk5_324",
28
- "navigation-link-label": "awsui_navigation-link-label_1xupv_1vqk5_325",
29
- "navigation-link-active": "awsui_navigation-link-active_1xupv_1vqk5_329",
30
- "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_1vqk5_334",
31
- "cancel-button": "awsui_cancel-button_1xupv_1vqk5_338",
32
- "previous-button": "awsui_previous-button_1xupv_1vqk5_339",
33
- "primary-button": "awsui_primary-button_1xupv_1vqk5_340",
34
- "skip-to-button": "awsui_skip-to-button_1xupv_1vqk5_341",
35
- "action-buttons": "awsui_action-buttons_1xupv_1vqk5_345"
5
+ "root": "awsui_root_1xupv_1l2g1_94",
6
+ "wizard": "awsui_wizard_1xupv_1l2g1_105",
7
+ "refresh": "awsui_refresh_1xupv_1l2g1_105",
8
+ "small-container": "awsui_small-container_1xupv_1l2g1_112",
9
+ "navigation": "awsui_navigation_1xupv_1l2g1_120",
10
+ "number": "awsui_number_1xupv_1l2g1_148",
11
+ "circle": "awsui_circle_1xupv_1l2g1_164",
12
+ "title": "awsui_title_1xupv_1l2g1_172",
13
+ "active": "awsui_active_1xupv_1l2g1_201",
14
+ "disabled": "awsui_disabled_1xupv_1l2g1_212",
15
+ "enabled": "awsui_enabled_1xupv_1l2g1_222",
16
+ "form": "awsui_form_1xupv_1l2g1_261",
17
+ "form-header": "awsui_form-header_1xupv_1l2g1_267",
18
+ "background": "awsui_background_1xupv_1l2g1_278",
19
+ "form-header-content": "awsui_form-header-content_1xupv_1l2g1_288",
20
+ "form-component": "awsui_form-component_1xupv_1l2g1_292",
21
+ "hidden": "awsui_hidden_1xupv_1l2g1_306",
22
+ "collapsed-steps": "awsui_collapsed-steps_1xupv_1l2g1_310",
23
+ "collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-padding_1xupv_1l2g1_315",
24
+ "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_1l2g1_318",
25
+ "form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_1l2g1_322",
26
+ "form-header-component": "awsui_form-header-component_1xupv_1l2g1_322",
27
+ "navigation-link": "awsui_navigation-link_1xupv_1l2g1_335",
28
+ "navigation-link-item": "awsui_navigation-link-item_1xupv_1l2g1_336",
29
+ "navigation-link-label": "awsui_navigation-link-label_1xupv_1l2g1_337",
30
+ "navigation-link-active": "awsui_navigation-link-active_1xupv_1l2g1_341",
31
+ "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_1l2g1_346",
32
+ "cancel-button": "awsui_cancel-button_1xupv_1l2g1_350",
33
+ "previous-button": "awsui_previous-button_1xupv_1l2g1_351",
34
+ "primary-button": "awsui_primary-button_1xupv_1l2g1_352",
35
+ "skip-to-button": "awsui_skip-to-button_1xupv_1l2g1_353",
36
+ "action-buttons": "awsui_action-buttons_1xupv_1l2g1_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,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,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,eAsDjB"}
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"}
@@ -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
- title,
26
- isOptional && React.createElement("i", null, " - ".concat(i18nStrings.optional)))),
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) {