@cloudscape-design/components 3.0.244 → 3.0.246
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/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
- package/annotation-context/annotation/annotation-trigger.js +1 -3
- package/annotation-context/annotation/annotation-trigger.js.map +1 -1
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +29 -29
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/visual-refresh/styles.css.js +61 -61
- package/app-layout/visual-refresh/styles.scoped.css +151 -151
- package/app-layout/visual-refresh/styles.selectors.js +61 -61
- package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
- package/app-layout/visual-refresh/trigger-button.js +2 -4
- package/app-layout/visual-refresh/trigger-button.js.map +1 -1
- package/breadcrumb-group/item/item.d.ts.map +1 -1
- package/breadcrumb-group/item/item.js +2 -5
- package/breadcrumb-group/item/item.js.map +1 -1
- package/breadcrumb-group/item/styles.css.js +9 -9
- package/breadcrumb-group/item/styles.scoped.css +17 -17
- package/breadcrumb-group/item/styles.selectors.js +9 -9
- package/button/internal.d.ts.map +1 -1
- package/button/internal.js +2 -3
- package/button/internal.js.map +1 -1
- package/button/styles.css.js +19 -18
- package/button/styles.scoped.css +136 -136
- package/button/styles.selectors.js +19 -18
- package/calendar/grid/index.d.ts.map +1 -1
- package/calendar/grid/index.js +2 -4
- package/calendar/grid/index.js.map +1 -1
- package/calendar/styles.css.js +18 -18
- package/calendar/styles.scoped.css +38 -38
- package/calendar/styles.selectors.js +18 -18
- package/code-editor/styles.css.js +32 -32
- package/code-editor/styles.scoped.css +109 -109
- package/code-editor/styles.selectors.js +32 -32
- package/code-editor/tab-button.d.ts.map +1 -1
- package/code-editor/tab-button.js +2 -4
- package/code-editor/tab-button.js.map +1 -1
- package/date-picker/index.d.ts.map +1 -1
- package/date-picker/index.js +1 -3
- package/date-picker/index.js.map +1 -1
- package/date-picker/styles.css.js +7 -7
- package/date-picker/styles.scoped.css +9 -9
- package/date-picker/styles.selectors.js +7 -7
- package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
- package/date-range-picker/calendar/grids/grid.js +1 -3
- package/date-range-picker/calendar/grids/grid.js.map +1 -1
- package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
- package/date-range-picker/calendar/grids/index.js +1 -3
- package/date-range-picker/calendar/grids/index.js.map +1 -1
- package/date-range-picker/calendar/grids/styles.css.js +25 -25
- package/date-range-picker/calendar/grids/styles.scoped.css +42 -42
- package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
- package/date-range-picker/dropdown.d.ts.map +1 -1
- package/date-range-picker/dropdown.js +1 -3
- package/date-range-picker/dropdown.js.map +1 -1
- package/date-range-picker/styles.css.js +38 -38
- package/date-range-picker/styles.scoped.css +45 -45
- package/date-range-picker/styles.selectors.js +38 -38
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +8 -11
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/styles.css.js +23 -23
- package/expandable-section/styles.scoped.css +44 -44
- package/expandable-section/styles.selectors.js +23 -23
- package/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/collapsible-flashbar.js +1 -3
- package/flashbar/collapsible-flashbar.js.map +1 -1
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +1 -3
- package/flashbar/flash.js.map +1 -1
- package/flashbar/styles.css.js +45 -45
- package/flashbar/styles.scoped.css +144 -144
- package/flashbar/styles.selectors.js +45 -45
- package/internal/components/abstract-switch/index.d.ts.map +1 -1
- package/internal/components/abstract-switch/index.js +8 -4
- package/internal/components/abstract-switch/index.js.map +1 -1
- package/internal/components/abstract-switch/styles.css.js +13 -13
- package/internal/components/abstract-switch/styles.scoped.css +19 -19
- package/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/internal/components/button-trigger/index.d.ts.map +1 -1
- package/internal/components/button-trigger/index.js +1 -3
- package/internal/components/button-trigger/index.js.map +1 -1
- package/internal/components/button-trigger/styles.css.js +9 -9
- package/internal/components/button-trigger/styles.scoped.css +23 -23
- package/internal/components/button-trigger/styles.selectors.js +9 -9
- package/internal/components/chart-legend/index.d.ts.map +1 -1
- package/internal/components/chart-legend/index.js +2 -4
- package/internal/components/chart-legend/index.js.map +1 -1
- package/internal/components/chart-legend/styles.css.js +6 -6
- package/internal/components/chart-legend/styles.scoped.css +15 -15
- package/internal/components/chart-legend/styles.selectors.js +6 -6
- package/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
- package/internal/components/chart-plot/focus-outline.js +25 -3
- package/internal/components/chart-plot/focus-outline.js.map +1 -1
- package/internal/components/filtering-token/index.d.ts +2 -1
- package/internal/components/filtering-token/index.d.ts.map +1 -1
- package/internal/components/filtering-token/index.js +3 -5
- package/internal/components/filtering-token/index.js.map +1 -1
- package/internal/components/filtering-token/styles.css.js +7 -7
- package/internal/components/filtering-token/styles.scoped.css +13 -13
- package/internal/components/filtering-token/styles.selectors.js +7 -7
- package/internal/components/menu-dropdown/index.d.ts.map +1 -1
- package/internal/components/menu-dropdown/index.js +2 -4
- package/internal/components/menu-dropdown/index.js.map +1 -1
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +13 -13
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/components/options-list/utils/use-keyboard.d.ts +0 -2
- package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.js +2 -3
- package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
- package/internal/components/token-list/index.d.ts +1 -1
- package/internal/components/token-list/index.d.ts.map +1 -1
- package/internal/components/token-list/index.js +3 -3
- package/internal/components/token-list/index.js.map +1 -1
- package/internal/components/token-list/interfaces.d.ts +0 -1
- package/internal/components/token-list/interfaces.d.ts.map +1 -1
- package/internal/components/token-list/interfaces.js.map +1 -1
- package/internal/components/token-list/styles.css.js +9 -9
- package/internal/components/token-list/styles.scoped.css +20 -20
- package/internal/components/token-list/styles.selectors.js +9 -9
- package/internal/components/token-list/token-focus-controller.js +1 -1
- package/internal/components/token-list/token-focus-controller.js.map +1 -1
- package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
- package/internal/components/token-list/token-limit-toggle.js +1 -3
- package/internal/components/token-list/token-limit-toggle.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/hooks/focus-visible/index.d.ts +2 -5
- package/internal/hooks/focus-visible/index.d.ts.map +1 -1
- package/internal/hooks/focus-visible/index.js +42 -22
- package/internal/hooks/focus-visible/index.js.map +1 -1
- package/internal/hooks/use-base-component/index.d.ts.map +1 -1
- package/internal/hooks/use-base-component/index.js +2 -0
- package/internal/hooks/use-base-component/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/link/internal.d.ts.map +1 -1
- package/link/internal.js +1 -3
- package/link/internal.js.map +1 -1
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +71 -71
- package/link/styles.selectors.js +20 -20
- package/package.json +1 -1
- package/pagination/internal.d.ts.map +1 -1
- package/pagination/internal.js +1 -3
- package/pagination/internal.js.map +1 -1
- package/pagination/styles.css.js +9 -9
- package/pagination/styles.scoped.css +23 -23
- package/pagination/styles.selectors.js +9 -9
- package/popover/internal.d.ts.map +1 -1
- package/popover/internal.js +1 -3
- package/popover/internal.js.map +1 -1
- package/popover/styles.css.js +50 -50
- package/popover/styles.scoped.css +63 -63
- package/popover/styles.selectors.js +50 -50
- package/property-filter/index.d.ts.map +1 -1
- package/property-filter/index.js +2 -2
- package/property-filter/index.js.map +1 -1
- package/property-filter/token.d.ts.map +1 -1
- package/property-filter/token.js +1 -1
- package/property-filter/token.js.map +1 -1
- package/segmented-control/segment.d.ts.map +1 -1
- package/segmented-control/segment.js +1 -3
- package/segmented-control/segment.js.map +1 -1
- package/segmented-control/styles.css.js +14 -14
- package/segmented-control/styles.scoped.css +33 -33
- package/segmented-control/styles.selectors.js +14 -14
- package/select/utils/use-select.d.ts.map +1 -1
- package/select/utils/use-select.js +0 -3
- package/select/utils/use-select.js.map +1 -1
- package/side-navigation/internal.d.ts.map +1 -1
- package/side-navigation/internal.js +2 -5
- package/side-navigation/internal.js.map +1 -1
- package/side-navigation/styles.css.js +27 -27
- package/side-navigation/styles.scoped.css +37 -37
- package/side-navigation/styles.selectors.js +27 -27
- package/split-panel/index.d.ts.map +1 -1
- package/split-panel/index.js +1 -3
- package/split-panel/index.js.map +1 -1
- package/split-panel/styles.css.js +59 -59
- package/split-panel/styles.scoped.css +81 -81
- package/split-panel/styles.selectors.js +59 -59
- package/table/body-cell/index.d.ts.map +1 -1
- package/table/body-cell/index.js +3 -3
- package/table/body-cell/index.js.map +1 -1
- package/table/body-cell/styles.css.js +18 -18
- package/table/body-cell/styles.scoped.css +57 -55
- package/table/body-cell/styles.selectors.js +18 -18
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +11 -9
- package/table/header-cell/index.js.map +1 -1
- package/table/header-cell/styles.css.js +19 -19
- package/table/header-cell/styles.scoped.css +32 -32
- package/table/header-cell/styles.selectors.js +19 -19
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +1 -3
- package/table/internal.js.map +1 -1
- package/table/resizer/styles.css.js +6 -6
- package/table/resizer/styles.scoped.css +11 -11
- package/table/resizer/styles.selectors.js +6 -6
- package/table/styles.css.js +33 -33
- package/table/styles.scoped.css +41 -41
- package/table/styles.selectors.js +33 -33
- package/tabs/index.d.ts.map +1 -1
- package/tabs/index.js +8 -3
- package/tabs/index.js.map +1 -1
- package/tabs/styles.css.js +21 -21
- package/tabs/styles.scoped.css +38 -38
- package/tabs/styles.selectors.js +21 -21
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +9 -3
- package/tabs/tab-header-bar.js.map +1 -1
- package/tag-editor/internal.d.ts.map +1 -1
- package/tag-editor/internal.js +2 -4
- package/tag-editor/internal.js.map +1 -1
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +10 -10
- package/tag-editor/styles.selectors.js +3 -3
- package/token-group/dismiss-button.d.ts.map +1 -1
- package/token-group/dismiss-button.js +1 -3
- package/token-group/dismiss-button.js.map +1 -1
- package/token-group/internal.js +2 -2
- package/token-group/internal.js.map +1 -1
- package/token-group/styles.css.js +5 -5
- package/token-group/styles.scoped.css +12 -12
- package/token-group/styles.selectors.js +5 -5
- package/token-group/token.d.ts +3 -5
- package/token-group/token.d.ts.map +1 -1
- package/token-group/token.js +2 -2
- package/token-group/token.js.map +1 -1
- package/top-navigation/1.0-beta/internal.d.ts.map +1 -1
- package/top-navigation/1.0-beta/internal.js +1 -3
- package/top-navigation/1.0-beta/internal.js.map +1 -1
- package/top-navigation/1.0-beta/styles.css.js +25 -25
- package/top-navigation/1.0-beta/styles.scoped.css +42 -42
- package/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/top-navigation/interfaces.d.ts +4 -0
- package/top-navigation/interfaces.d.ts.map +1 -1
- package/top-navigation/interfaces.js.map +1 -1
- package/top-navigation/internal.d.ts.map +1 -1
- package/top-navigation/internal.js +1 -3
- package/top-navigation/internal.js.map +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.js +9 -13
- package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
- package/top-navigation/parts/utility.d.ts.map +1 -1
- package/top-navigation/parts/utility.js +2 -1
- package/top-navigation/parts/utility.js.map +1 -1
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +66 -66
- package/top-navigation/styles.selectors.js +47 -47
- package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
- package/tutorial-panel/components/tutorial-list/index.js +1 -3
- package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +27 -27
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/wizard/styles.css.js +32 -32
- package/wizard/styles.scoped.css +63 -63
- package/wizard/styles.selectors.js +32 -32
- package/wizard/wizard-form.d.ts.map +1 -1
- package/wizard/wizard-form.js +1 -3
- package/wizard/wizard-form.js.map +1 -1
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_1df87_94:not(#\9) {
|
|
95
95
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
96
96
|
border-collapse: separate;
|
|
97
97
|
border-spacing: 0;
|
|
@@ -130,28 +130,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
130
130
|
-moz-osx-font-smoothing: auto;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
.
|
|
133
|
+
.awsui_wizard_1xupv_1df87_107.awsui_refresh_1xupv_1df87_107:not(#\9) {
|
|
134
134
|
column-gap: var(--space-xl-a39hup, 24px);
|
|
135
135
|
display: grid;
|
|
136
136
|
grid-template-columns: auto minmax(0, 1fr);
|
|
137
137
|
grid-template-rows: auto 1fr;
|
|
138
138
|
row-gap: var(--space-scaled-xl-w2t504, 24px);
|
|
139
139
|
}
|
|
140
|
-
.
|
|
140
|
+
.awsui_wizard_1xupv_1df87_107.awsui_refresh_1xupv_1df87_107.awsui_small-container_1xupv_1df87_114:not(#\9) {
|
|
141
141
|
grid-template-columns: minmax(0, 1fr) 0;
|
|
142
142
|
row-gap: var(--space-scaled-l-t03y3z, 20px);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
.
|
|
145
|
+
.awsui_wizard_1xupv_1df87_107:not(#\9):not(.awsui_refresh_1xupv_1df87_107) {
|
|
146
146
|
display: flex;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
.
|
|
149
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107:not(#\9) {
|
|
150
150
|
grid-column: 1;
|
|
151
151
|
grid-row: 1/span 2;
|
|
152
152
|
padding-top: var(--space-scaled-xxs-95dhkm, 4px);
|
|
153
153
|
}
|
|
154
|
-
.
|
|
154
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul:not(#\9) {
|
|
155
155
|
background: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
156
156
|
position: relative;
|
|
157
157
|
border-radius: var(--border-radius-container-gh9ysk, 16px);
|
|
@@ -161,7 +161,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
161
161
|
width: 280px;
|
|
162
162
|
box-sizing: border-box;
|
|
163
163
|
}
|
|
164
|
-
.
|
|
164
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul:not(#\9)::before {
|
|
165
165
|
content: "";
|
|
166
166
|
position: absolute;
|
|
167
167
|
left: 0px;
|
|
@@ -176,7 +176,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
176
176
|
border-radius: var(--border-radius-container-gh9ysk, 16px);
|
|
177
177
|
z-index: 1;
|
|
178
178
|
}
|
|
179
|
-
.
|
|
179
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul:not(#\9)::after {
|
|
180
180
|
content: "";
|
|
181
181
|
position: absolute;
|
|
182
182
|
left: 0px;
|
|
@@ -191,30 +191,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
191
191
|
mix-blend-mode: multiply;
|
|
192
192
|
}
|
|
193
193
|
@media screen and (-ms-high-contrast: active) {
|
|
194
|
-
.
|
|
194
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul:not(#\9) {
|
|
195
195
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-container-top-srcvx4, transparent);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
.
|
|
198
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li:not(#\9) {
|
|
199
199
|
display: grid;
|
|
200
200
|
column-gap: var(--space-s-hv8c1d, 12px);
|
|
201
201
|
grid-template-columns: var(--space-l-4vl6xu, 20px) 1fr;
|
|
202
202
|
grid-template-rows: repeat(2, auto);
|
|
203
203
|
}
|
|
204
|
-
.
|
|
204
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li > hr:not(#\9) {
|
|
205
205
|
background-color: var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
206
206
|
border: 0;
|
|
207
207
|
grid-column: 1;
|
|
208
208
|
height: 100%;
|
|
209
209
|
width: var(--space-xxxs-k2w98v, 2px);
|
|
210
210
|
}
|
|
211
|
-
.
|
|
211
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li > .awsui_number_1xupv_1df87_185:not(#\9) {
|
|
212
212
|
color: var(--color-text-small-le1y42, #5f6b7a);
|
|
213
213
|
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
214
214
|
grid-column: 2;
|
|
215
215
|
grid-row: 1;
|
|
216
216
|
}
|
|
217
|
-
.
|
|
217
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li > a:not(#\9) {
|
|
218
218
|
align-items: start;
|
|
219
219
|
column-gap: var(--space-s-hv8c1d, 12px);
|
|
220
220
|
cursor: pointer;
|
|
@@ -224,7 +224,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
224
224
|
grid-row: 2;
|
|
225
225
|
grid-template-columns: var(--space-l-4vl6xu, 20px) 1fr;
|
|
226
226
|
}
|
|
227
|
-
.
|
|
227
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li > a > .awsui_circle_1xupv_1df87_201:not(#\9) {
|
|
228
228
|
border-radius: 100%;
|
|
229
229
|
grid-column: 1;
|
|
230
230
|
height: 10px;
|
|
@@ -232,13 +232,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
232
232
|
margin-top: 6px;
|
|
233
233
|
width: 10px;
|
|
234
234
|
}
|
|
235
|
-
.
|
|
235
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li > a > .awsui_title_1xupv_1df87_209:not(#\9) {
|
|
236
236
|
min-width: 0;
|
|
237
237
|
-ms-word-break: break-all;
|
|
238
238
|
word-break: break-word;
|
|
239
239
|
grid-column: 2;
|
|
240
240
|
}
|
|
241
|
-
.
|
|
241
|
+
body[data-awsui-focus-visible=true] .awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li > a:not(#\9):focus {
|
|
242
242
|
outline: thin dotted;
|
|
243
243
|
outline: var(--border-link-focus-ring-outline-k2wccv, 0);
|
|
244
244
|
outline-offset: 2px;
|
|
@@ -246,58 +246,58 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
246
246
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
247
247
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-nv4ahb, 2px) var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
248
248
|
}
|
|
249
|
-
.
|
|
249
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li:not(#\9):first-child > hr {
|
|
250
250
|
grid-row: 2/span 2;
|
|
251
251
|
}
|
|
252
|
-
.
|
|
252
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li:not(#\9):not(:first-child) > .awsui_number_1xupv_1df87_185 {
|
|
253
253
|
margin-top: var(--space-scaled-xl-w2t504, 24px);
|
|
254
254
|
}
|
|
255
|
-
.
|
|
255
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li:not(#\9):last-child > hr {
|
|
256
256
|
grid-row: 1;
|
|
257
257
|
}
|
|
258
|
-
.
|
|
258
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li:not(#\9):only-of-type > hr {
|
|
259
259
|
display: none;
|
|
260
260
|
}
|
|
261
|
-
.
|
|
261
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li:not(#\9):not(:first-child):not(:last-child) > hr {
|
|
262
262
|
grid-row: 1/span 3;
|
|
263
263
|
}
|
|
264
|
-
.
|
|
264
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_active_1xupv_1df87_238 > a:not(#\9) {
|
|
265
265
|
cursor: text;
|
|
266
266
|
}
|
|
267
|
-
.
|
|
267
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_active_1xupv_1df87_238 > a > .awsui_circle_1xupv_1df87_201:not(#\9) {
|
|
268
268
|
background-color: var(--color-background-control-checked-9admlu, #0972d3);
|
|
269
269
|
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);
|
|
270
270
|
}
|
|
271
|
-
.
|
|
271
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_active_1xupv_1df87_238 > a > .awsui_title_1xupv_1df87_209:not(#\9) {
|
|
272
272
|
color: var(--color-background-control-checked-9admlu, #0972d3);
|
|
273
273
|
font-weight: 700;
|
|
274
274
|
}
|
|
275
|
-
.
|
|
275
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_disabled_1xupv_1df87_249 > a:not(#\9) {
|
|
276
276
|
cursor: text;
|
|
277
277
|
}
|
|
278
|
-
.
|
|
278
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_disabled_1xupv_1df87_249 > a > .awsui_circle_1xupv_1df87_201:not(#\9) {
|
|
279
279
|
background-color: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
280
280
|
box-shadow: 0 0 0 2px var(--color-text-interactive-disabled-3pbb07, #9ba7b6), 0 0 0 4px var(--color-background-container-content-i8i4a0, #ffffff);
|
|
281
281
|
}
|
|
282
|
-
.
|
|
282
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_disabled_1xupv_1df87_249 > a > .awsui_title_1xupv_1df87_209:not(#\9) {
|
|
283
283
|
color: var(--color-text-status-inactive-5ei55p, #5f6b7a);
|
|
284
284
|
}
|
|
285
|
-
.
|
|
285
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_enabled_1xupv_1df87_259 > a > .awsui_circle_1xupv_1df87_201:not(#\9) {
|
|
286
286
|
background-color: var(--color-text-interactive-default-eg5fsa, #414d5c);
|
|
287
287
|
box-shadow: 0 0 0 2px var(--color-text-interactive-default-eg5fsa, #414d5c), 0 0 0 4px var(--color-background-container-content-i8i4a0, #ffffff);
|
|
288
288
|
}
|
|
289
|
-
.
|
|
289
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_enabled_1xupv_1df87_259 > a > .awsui_title_1xupv_1df87_209:not(#\9) {
|
|
290
290
|
color: var(--color-text-interactive-default-eg5fsa, #414d5c);
|
|
291
291
|
}
|
|
292
|
-
.
|
|
292
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_enabled_1xupv_1df87_259 > a:not(#\9):hover > .awsui_circle_1xupv_1df87_201 {
|
|
293
293
|
background-color: var(--color-background-control-checked-9admlu, #0972d3);
|
|
294
294
|
box-shadow: 0 0 0 2px var(--color-background-control-checked-9admlu, #0972d3), 0 0 0 4px var(--color-background-container-content-i8i4a0, #ffffff);
|
|
295
295
|
}
|
|
296
|
-
.
|
|
296
|
+
.awsui_navigation_1xupv_1df87_123.awsui_refresh_1xupv_1df87_107 > ul > li.awsui_enabled_1xupv_1df87_259 > a:not(#\9):hover > .awsui_title_1xupv_1df87_209 {
|
|
297
297
|
color: var(--color-background-control-checked-9admlu, #0972d3);
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
.
|
|
300
|
+
.awsui_navigation_1xupv_1df87_123:not(#\9):not(.awsui_refresh_1xupv_1df87_107) {
|
|
301
301
|
color: var(--color-text-disabled-a2nkh4, #9ba7b6);
|
|
302
302
|
display: inline-block;
|
|
303
303
|
margin-right: calc(2 * var(--space-xxxl-bo9z7f, 40px));
|
|
@@ -305,89 +305,89 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
305
305
|
padding-top: var(--space-xxs-ynfts5, 4px);
|
|
306
306
|
width: 200px;
|
|
307
307
|
}
|
|
308
|
-
.
|
|
308
|
+
.awsui_navigation_1xupv_1df87_123:not(#\9):not(.awsui_refresh_1xupv_1df87_107) > ul {
|
|
309
309
|
list-style: none;
|
|
310
310
|
padding: 0;
|
|
311
311
|
margin: 0;
|
|
312
312
|
}
|
|
313
|
-
.
|
|
313
|
+
.awsui_navigation_1xupv_1df87_123:not(#\9):not(.awsui_refresh_1xupv_1df87_107) > ul > li {
|
|
314
314
|
padding-bottom: var(--space-scaled-m-pv0fmt, 16px);
|
|
315
315
|
padding-top: 0;
|
|
316
316
|
}
|
|
317
|
-
.
|
|
317
|
+
.awsui_navigation_1xupv_1df87_123:not(#\9):not(.awsui_refresh_1xupv_1df87_107) > ul > li:not(:first-child) {
|
|
318
318
|
margin-top: var(--space-scaled-m-pv0fmt, 16px);
|
|
319
319
|
}
|
|
320
|
-
.
|
|
320
|
+
.awsui_navigation_1xupv_1df87_123:not(#\9):not(.awsui_refresh_1xupv_1df87_107) > ul > li:not(:last-child) {
|
|
321
321
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-layout-wf5alz, #d1d5db);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
.
|
|
324
|
+
.awsui_form_1xupv_1df87_298:not(#\9):not(.awsui_refresh_1xupv_1df87_107) {
|
|
325
325
|
min-width: 0;
|
|
326
326
|
-ms-word-break: break-all;
|
|
327
327
|
word-break: break-word;
|
|
328
328
|
width: 100%;
|
|
329
329
|
}
|
|
330
|
-
.
|
|
330
|
+
.awsui_form_1xupv_1df87_298:not(#\9):not(.awsui_refresh_1xupv_1df87_107) > .awsui_form-header_1xupv_1df87_304 {
|
|
331
331
|
position: relative;
|
|
332
332
|
margin-bottom: var(--space-scaled-m-pv0fmt, 16px);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
.
|
|
335
|
+
.awsui_form_1xupv_1df87_298.awsui_refresh_1xupv_1df87_107:not(#\9) {
|
|
336
336
|
min-width: 0;
|
|
337
337
|
-ms-word-break: break-all;
|
|
338
338
|
word-break: break-word;
|
|
339
339
|
display: contents;
|
|
340
340
|
}
|
|
341
|
-
.
|
|
341
|
+
.awsui_form_1xupv_1df87_298.awsui_refresh_1xupv_1df87_107 > .awsui_background_1xupv_1df87_315:not(#\9) {
|
|
342
342
|
background-color: var(--color-background-layout-main-sfhm4y, #ffffff);
|
|
343
343
|
grid-column: 1/span 2;
|
|
344
344
|
grid-row: 1;
|
|
345
345
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
346
346
|
}
|
|
347
|
-
.
|
|
347
|
+
.awsui_form_1xupv_1df87_298.awsui_refresh_1xupv_1df87_107 > .awsui_form-header_1xupv_1df87_304:not(#\9) {
|
|
348
348
|
background-color: var(--color-background-layout-main-sfhm4y, #ffffff);
|
|
349
349
|
grid-column: 2;
|
|
350
350
|
grid-row: 1;
|
|
351
351
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
352
352
|
}
|
|
353
|
-
.
|
|
353
|
+
.awsui_form_1xupv_1df87_298.awsui_refresh_1xupv_1df87_107 > .awsui_form-header_1xupv_1df87_304 > .awsui_form-header-content_1xupv_1df87_327:not(#\9) {
|
|
354
354
|
padding-top: var(--space-scaled-xl-w2t504, 24px);
|
|
355
355
|
padding-bottom: var(--space-scaled-xl-w2t504, 24px);
|
|
356
356
|
}
|
|
357
|
-
.
|
|
357
|
+
.awsui_form_1xupv_1df87_298.awsui_refresh_1xupv_1df87_107 > .awsui_form-component_1xupv_1df87_331:not(#\9) {
|
|
358
358
|
grid-column: 2;
|
|
359
359
|
grid-row: 2;
|
|
360
360
|
}
|
|
361
|
-
.
|
|
361
|
+
.awsui_form_1xupv_1df87_298.awsui_refresh_1xupv_1df87_107.awsui_small-container_1xupv_1df87_114 > .awsui_form-header_1xupv_1df87_304:not(#\9) {
|
|
362
362
|
grid-column: 1/span 2;
|
|
363
363
|
}
|
|
364
|
-
.
|
|
364
|
+
.awsui_form_1xupv_1df87_298.awsui_refresh_1xupv_1df87_107.awsui_small-container_1xupv_1df87_114 > .awsui_form-header_1xupv_1df87_304 > .awsui_form-header-content_1xupv_1df87_327:not(#\9) {
|
|
365
365
|
padding-top: 0;
|
|
366
366
|
}
|
|
367
|
-
.
|
|
367
|
+
.awsui_form_1xupv_1df87_298.awsui_refresh_1xupv_1df87_107.awsui_small-container_1xupv_1df87_114 > .awsui_form-component_1xupv_1df87_331:not(#\9) {
|
|
368
368
|
grid-column: 1/span 2;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
.
|
|
371
|
+
.awsui_navigation_1xupv_1df87_123.awsui_hidden_1xupv_1df87_345:not(#\9) {
|
|
372
372
|
display: none;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
.awsui_collapsed-
|
|
375
|
+
.awsui_collapsed-steps_1xupv_1df87_349:not(#\9) {
|
|
376
376
|
color: var(--color-text-heading-secondary-corkaj, #414d5c);
|
|
377
377
|
font-weight: 700;
|
|
378
378
|
padding-top: var(--space-scaled-xxs-95dhkm, 4px);
|
|
379
379
|
}
|
|
380
|
-
.awsui_collapsed-steps-extra-
|
|
380
|
+
.awsui_collapsed-steps-extra-padding_1xupv_1df87_354:not(#\9) {
|
|
381
381
|
padding-top: var(--space-scaled-l-t03y3z, 20px);
|
|
382
382
|
}
|
|
383
|
-
.awsui_collapsed-steps-
|
|
383
|
+
.awsui_collapsed-steps-hidden_1xupv_1df87_357:not(#\9) {
|
|
384
384
|
display: none;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
.awsui_form-header-component-
|
|
387
|
+
.awsui_form-header-component-wrapper_1xupv_1df87_361:not(#\9) {
|
|
388
388
|
outline: none;
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
body[data-awsui-focus-visible=true] .awsui_form-header-component-wrapper_1xupv_1df87_361:not(#\9):focus {
|
|
391
391
|
outline: thin dotted;
|
|
392
392
|
outline: var(--border-link-focus-ring-outline-k2wccv, 0);
|
|
393
393
|
outline-offset: 2px;
|
|
@@ -396,30 +396,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
396
396
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-nv4ahb, 2px) var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
.awsui_form-header-
|
|
400
|
-
.awsui_navigation-
|
|
401
|
-
.awsui_navigation-link-
|
|
402
|
-
.awsui_navigation-link-
|
|
399
|
+
.awsui_form-header-component_1xupv_1df87_361:not(#\9),
|
|
400
|
+
.awsui_navigation-link_1xupv_1df87_374:not(#\9),
|
|
401
|
+
.awsui_navigation-link-item_1xupv_1df87_375:not(#\9),
|
|
402
|
+
.awsui_navigation-link-label_1xupv_1df87_376:not(#\9) {
|
|
403
403
|
/* used in test-utils */
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
.awsui_navigation-link-
|
|
406
|
+
.awsui_navigation-link-active_1xupv_1df87_380:not(#\9) {
|
|
407
407
|
font-weight: 700;
|
|
408
408
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
.awsui_navigation-link-
|
|
411
|
+
.awsui_navigation-link-disabled_1xupv_1df87_385:not(#\9) {
|
|
412
412
|
color: var(--color-text-status-inactive-5ei55p, #5f6b7a);
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
.awsui_cancel-
|
|
416
|
-
.awsui_previous-
|
|
417
|
-
.awsui_primary-
|
|
418
|
-
.awsui_skip-to-
|
|
415
|
+
.awsui_cancel-button_1xupv_1df87_389:not(#\9),
|
|
416
|
+
.awsui_previous-button_1xupv_1df87_390:not(#\9),
|
|
417
|
+
.awsui_primary-button_1xupv_1df87_391:not(#\9),
|
|
418
|
+
.awsui_skip-to-button_1xupv_1df87_392:not(#\9) {
|
|
419
419
|
/* used in test-utils */
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
.awsui_action-
|
|
422
|
+
.awsui_action-buttons_1xupv_1df87_396:not(#\9) {
|
|
423
423
|
display: flex;
|
|
424
424
|
justify-content: flex-end;
|
|
425
425
|
}
|
|
@@ -2,37 +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-wrapper": "awsui_form-header-component-
|
|
26
|
-
"form-header-component": "awsui_form-header-
|
|
27
|
-
"navigation-link": "awsui_navigation-
|
|
28
|
-
"navigation-link-item": "awsui_navigation-link-
|
|
29
|
-
"navigation-link-label": "awsui_navigation-link-
|
|
30
|
-
"navigation-link-active": "awsui_navigation-link-
|
|
31
|
-
"navigation-link-disabled": "awsui_navigation-link-
|
|
32
|
-
"cancel-button": "awsui_cancel-
|
|
33
|
-
"previous-button": "awsui_previous-
|
|
34
|
-
"primary-button": "awsui_primary-
|
|
35
|
-
"skip-to-button": "awsui_skip-to-
|
|
36
|
-
"action-buttons": "awsui_action-
|
|
5
|
+
"root": "awsui_root_1xupv_1df87_94",
|
|
6
|
+
"wizard": "awsui_wizard_1xupv_1df87_107",
|
|
7
|
+
"refresh": "awsui_refresh_1xupv_1df87_107",
|
|
8
|
+
"small-container": "awsui_small-container_1xupv_1df87_114",
|
|
9
|
+
"navigation": "awsui_navigation_1xupv_1df87_123",
|
|
10
|
+
"number": "awsui_number_1xupv_1df87_185",
|
|
11
|
+
"circle": "awsui_circle_1xupv_1df87_201",
|
|
12
|
+
"title": "awsui_title_1xupv_1df87_209",
|
|
13
|
+
"active": "awsui_active_1xupv_1df87_238",
|
|
14
|
+
"disabled": "awsui_disabled_1xupv_1df87_249",
|
|
15
|
+
"enabled": "awsui_enabled_1xupv_1df87_259",
|
|
16
|
+
"form": "awsui_form_1xupv_1df87_298",
|
|
17
|
+
"form-header": "awsui_form-header_1xupv_1df87_304",
|
|
18
|
+
"background": "awsui_background_1xupv_1df87_315",
|
|
19
|
+
"form-header-content": "awsui_form-header-content_1xupv_1df87_327",
|
|
20
|
+
"form-component": "awsui_form-component_1xupv_1df87_331",
|
|
21
|
+
"hidden": "awsui_hidden_1xupv_1df87_345",
|
|
22
|
+
"collapsed-steps": "awsui_collapsed-steps_1xupv_1df87_349",
|
|
23
|
+
"collapsed-steps-extra-padding": "awsui_collapsed-steps-extra-padding_1xupv_1df87_354",
|
|
24
|
+
"collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_1df87_357",
|
|
25
|
+
"form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_1df87_361",
|
|
26
|
+
"form-header-component": "awsui_form-header-component_1xupv_1df87_361",
|
|
27
|
+
"navigation-link": "awsui_navigation-link_1xupv_1df87_374",
|
|
28
|
+
"navigation-link-item": "awsui_navigation-link-item_1xupv_1df87_375",
|
|
29
|
+
"navigation-link-label": "awsui_navigation-link-label_1xupv_1df87_376",
|
|
30
|
+
"navigation-link-active": "awsui_navigation-link-active_1xupv_1df87_380",
|
|
31
|
+
"navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_1df87_385",
|
|
32
|
+
"cancel-button": "awsui_cancel-button_1xupv_1df87_389",
|
|
33
|
+
"previous-button": "awsui_previous-button_1xupv_1df87_390",
|
|
34
|
+
"primary-button": "awsui_primary-button_1xupv_1df87_391",
|
|
35
|
+
"skip-to-button": "awsui_skip-to-button_1xupv_1df87_392",
|
|
36
|
+
"action-buttons": "awsui_action-buttons_1xupv_1df87_396"
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard-form.d.ts","sourceRoot":"lib/default/","sources":["wizard/wizard-form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAMtC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"wizard-form.d.ts","sourceRoot":"lib/default/","sources":["wizard/wizard-form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAMtC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,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,eA+DjB"}
|
package/wizard/wizard-form.js
CHANGED
|
@@ -8,7 +8,6 @@ import { useMobile } from '../internal/hooks/use-mobile';
|
|
|
8
8
|
import WizardActions from './wizard-actions';
|
|
9
9
|
import WizardFormHeader from './wizard-form-header';
|
|
10
10
|
import styles from './styles.css.js';
|
|
11
|
-
import useFocusVisible from '../internal/hooks/focus-visible';
|
|
12
11
|
import { useEffectOnUpdate } from '../internal/hooks/use-effect-on-update';
|
|
13
12
|
export default function WizardForm({ steps, activeStepIndex, isVisualRefresh, showCollapsedSteps, i18nStrings, isPrimaryLoading, allowSkipTo, secondaryActions, onCancelClick, onPreviousClick, onPrimaryClick, onSkipToClick, }) {
|
|
14
13
|
var _a;
|
|
@@ -23,7 +22,6 @@ export default function WizardForm({ steps, activeStepIndex, isVisualRefresh, sh
|
|
|
23
22
|
(_a = stepHeaderRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
24
23
|
}
|
|
25
24
|
}, [activeStepIndex]);
|
|
26
|
-
const focusVisible = useFocusVisible();
|
|
27
25
|
const showSkipTo = allowSkipTo && skipToTargetIndex !== -1;
|
|
28
26
|
const skipToButtonText = skipToTargetIndex !== -1 && i18nStrings.skipToButtonLabel
|
|
29
27
|
? i18nStrings.skipToButtonLabel(steps[skipToTargetIndex], skipToTargetIndex + 1)
|
|
@@ -32,7 +30,7 @@ export default function WizardForm({ steps, activeStepIndex, isVisualRefresh, sh
|
|
|
32
30
|
React.createElement(WizardFormHeader, { isMobile: isMobile || showCollapsedSteps, isVisualRefresh: isVisualRefresh },
|
|
33
31
|
React.createElement("div", { className: clsx(styles['collapsed-steps'], !showCollapsedSteps && styles['collapsed-steps-hidden'], isVisualRefresh && isMobile && styles['collapsed-steps-extra-padding']) }, (_a = i18nStrings.collapsedStepsLabel) === null || _a === void 0 ? void 0 : _a.call(i18nStrings, activeStepIndex + 1, steps.length)),
|
|
34
32
|
React.createElement(InternalHeader, { className: styles['form-header-component'], variant: "h1", description: description, info: info },
|
|
35
|
-
React.createElement("span",
|
|
33
|
+
React.createElement("span", { className: styles['form-header-component-wrapper'], tabIndex: -1, ref: stepHeaderRef },
|
|
36
34
|
title,
|
|
37
35
|
isOptional && React.createElement("i", null, ` - ${i18nStrings.optional}`)))),
|
|
38
36
|
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: () => onSkipToClick(skipToTargetIndex), showPrevious: activeStepIndex !== 0, isPrimaryLoading: isPrimaryLoading, showSkipTo: showSkipTo, skipToButtonText: skipToButtonText }), secondaryActions: secondaryActions, errorText: errorText, errorIconAriaLabel: i18nStrings.errorIconAriaLabel }, content)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard-form.js","sourceRoot":"lib/default/","sources":["wizard/wizard-form.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,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"wizard-form.js","sourceRoot":"lib/default/","sources":["wizard/wizard-form.tsx"],"names":[],"mappings":"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","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 { 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 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}>\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"]}
|