@cloudscape-design/components 3.0.1299 → 3.0.1301

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 (36) hide show
  1. package/autosuggest/interfaces.d.ts +0 -2
  2. package/autosuggest/interfaces.d.ts.map +1 -1
  3. package/autosuggest/interfaces.js.map +1 -1
  4. package/copy-to-clipboard/styles.css.js +5 -5
  5. package/copy-to-clipboard/styles.scoped.css +7 -7
  6. package/copy-to-clipboard/styles.selectors.js +5 -5
  7. package/internal/base-component/styles.scoped.css +39 -26
  8. package/internal/environment.js +2 -2
  9. package/internal/environment.json +2 -2
  10. package/internal/generated/styles/tokens.d.ts +34 -26
  11. package/internal/generated/styles/tokens.js +34 -26
  12. package/internal/generated/theming/index.cjs +321 -113
  13. package/internal/generated/theming/index.cjs.d.ts +225 -153
  14. package/internal/generated/theming/index.d.ts +225 -153
  15. package/internal/generated/theming/index.js +321 -113
  16. package/internal/manifest.json +1 -1
  17. package/key-value-pairs/styles.css.js +8 -8
  18. package/key-value-pairs/styles.scoped.css +10 -9
  19. package/key-value-pairs/styles.selectors.js +8 -8
  20. package/manifest.json +5 -0
  21. package/multiselect/interfaces.d.ts +0 -2
  22. package/multiselect/interfaces.d.ts.map +1 -1
  23. package/multiselect/interfaces.js.map +1 -1
  24. package/package.json +1 -1
  25. package/prompt-input/interfaces.d.ts +0 -2
  26. package/prompt-input/interfaces.d.ts.map +1 -1
  27. package/prompt-input/interfaces.js.map +1 -1
  28. package/select/interfaces.d.ts +0 -2
  29. package/select/interfaces.d.ts.map +1 -1
  30. package/select/interfaces.js.map +1 -1
  31. package/status-indicator/styles.css.js +24 -24
  32. package/status-indicator/styles.scoped.css +64 -30
  33. package/status-indicator/styles.selectors.js +24 -24
  34. package/wizard/interfaces.d.ts +0 -2
  35. package/wizard/interfaces.d.ts.map +1 -1
  36. package/wizard/interfaces.js.map +1 -1
@@ -150,11 +150,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
150
150
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
151
151
  SPDX-License-Identifier: Apache-2.0
152
152
  */
153
- .awsui_icon-shake_1cbgc_zkafv_153:not(#\9) {
153
+ .awsui_icon-shake_1cbgc_15y7y_153:not(#\9) {
154
154
  display: inline-block;
155
- animation: awsui_awsui-motion-shake-horizontally_1cbgc_zkafv_1 var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
155
+ animation: awsui_awsui-motion-shake-horizontally_1cbgc_15y7y_1 var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
156
156
  }
157
- @keyframes awsui_awsui-motion-shake-horizontally_1cbgc_zkafv_1 {
157
+ @keyframes awsui_awsui-motion-shake-horizontally_1cbgc_15y7y_1 {
158
158
  0% {
159
159
  transform: translateX(-5px);
160
160
  animation-timing-function: linear;
@@ -168,20 +168,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
168
168
  }
169
169
  }
170
170
  @media (prefers-reduced-motion: reduce) {
171
- .awsui_icon-shake_1cbgc_zkafv_153:not(#\9) {
171
+ .awsui_icon-shake_1cbgc_15y7y_153:not(#\9) {
172
172
  animation: none;
173
173
  transition: none;
174
174
  }
175
175
  }
176
- .awsui-motion-disabled .awsui_icon-shake_1cbgc_zkafv_153:not(#\9), .awsui-mode-entering .awsui_icon-shake_1cbgc_zkafv_153:not(#\9) {
176
+ .awsui-motion-disabled .awsui_icon-shake_1cbgc_15y7y_153:not(#\9), .awsui-mode-entering .awsui_icon-shake_1cbgc_15y7y_153:not(#\9) {
177
177
  animation: none;
178
178
  transition: none;
179
179
  }
180
180
 
181
- .awsui_container-fade-in_1cbgc_zkafv_181:not(#\9) {
182
- animation: awsui_awsui-motion-fade-in-0_1cbgc_zkafv_1 var(--motion-duration-refresh-only-medium-5rbn3k, 165ms) var(--motion-easing-refresh-only-a-ccyqaz, cubic-bezier(0, 0, 0, 1));
181
+ .awsui_container-fade-in_1cbgc_15y7y_181:not(#\9) {
182
+ animation: awsui_awsui-motion-fade-in-0_1cbgc_15y7y_1 var(--motion-duration-refresh-only-medium-5rbn3k, 165ms) var(--motion-easing-refresh-only-a-ccyqaz, cubic-bezier(0, 0, 0, 1));
183
183
  }
184
- @keyframes awsui_awsui-motion-fade-in-0_1cbgc_zkafv_1 {
184
+ @keyframes awsui_awsui-motion-fade-in-0_1cbgc_15y7y_1 {
185
185
  from {
186
186
  opacity: 0;
187
187
  }
@@ -190,17 +190,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
190
190
  }
191
191
  }
192
192
  @media (prefers-reduced-motion: reduce) {
193
- .awsui_container-fade-in_1cbgc_zkafv_181:not(#\9) {
193
+ .awsui_container-fade-in_1cbgc_15y7y_181:not(#\9) {
194
194
  animation: none;
195
195
  transition: none;
196
196
  }
197
197
  }
198
- .awsui-motion-disabled .awsui_container-fade-in_1cbgc_zkafv_181:not(#\9), .awsui-mode-entering .awsui_container-fade-in_1cbgc_zkafv_181:not(#\9) {
198
+ .awsui-motion-disabled .awsui_container-fade-in_1cbgc_15y7y_181:not(#\9), .awsui-mode-entering .awsui_container-fade-in_1cbgc_15y7y_181:not(#\9) {
199
199
  animation: none;
200
200
  transition: none;
201
201
  }
202
202
 
203
- .awsui_root_1cbgc_zkafv_203:not(#\9) {
203
+ .awsui_root_1cbgc_15y7y_203:not(#\9) {
204
204
  font-size: var(--font-size-body-m-a7nh2n, 14px);
205
205
  line-height: var(--line-height-body-m-2mh3ke, 20px);
206
206
  color: var(--color-text-body-default-vvtq8u, #0f141a);
@@ -209,67 +209,101 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
209
209
  -webkit-font-smoothing: auto;
210
210
  -moz-osx-font-smoothing: auto;
211
211
  }
212
- .awsui_root_1cbgc_zkafv_203.awsui_status-error_1cbgc_zkafv_212:not(#\9) {
212
+ .awsui_root_1cbgc_15y7y_203.awsui_status-error_1cbgc_15y7y_212:not(#\9) {
213
213
  color: var(--color-text-status-error-ksqavh, #db0000);
214
214
  }
215
- .awsui_root_1cbgc_zkafv_203.awsui_status-warning_1cbgc_zkafv_215:not(#\9) {
215
+ .awsui_root_1cbgc_15y7y_203.awsui_status-warning_1cbgc_15y7y_215:not(#\9) {
216
216
  color: var(--color-text-status-warning-6meo06, #855900);
217
217
  }
218
- .awsui_root_1cbgc_zkafv_203.awsui_status-success_1cbgc_zkafv_218:not(#\9) {
218
+ .awsui_root_1cbgc_15y7y_203.awsui_status-success_1cbgc_15y7y_218:not(#\9) {
219
219
  color: var(--color-text-status-success-ybmii8, #00802f);
220
220
  }
221
- .awsui_root_1cbgc_zkafv_203.awsui_status-info_1cbgc_zkafv_221:not(#\9) {
221
+ .awsui_root_1cbgc_15y7y_203.awsui_status-info_1cbgc_15y7y_221:not(#\9) {
222
222
  color: var(--color-text-status-info-ue8bd2, #006ce0);
223
223
  }
224
- .awsui_root_1cbgc_zkafv_203.awsui_status-stopped_1cbgc_zkafv_224:not(#\9) {
224
+ .awsui_root_1cbgc_15y7y_203.awsui_status-stopped_1cbgc_15y7y_224:not(#\9) {
225
225
  color: var(--color-text-status-inactive-gy7337, #656871);
226
226
  }
227
- .awsui_root_1cbgc_zkafv_203.awsui_status-pending_1cbgc_zkafv_227:not(#\9) {
227
+ .awsui_root_1cbgc_15y7y_203.awsui_status-pending_1cbgc_15y7y_227:not(#\9) {
228
228
  color: var(--color-text-status-inactive-gy7337, #656871);
229
229
  }
230
- .awsui_root_1cbgc_zkafv_203.awsui_status-in-progress_1cbgc_zkafv_230:not(#\9) {
230
+ .awsui_root_1cbgc_15y7y_203.awsui_status-in-progress_1cbgc_15y7y_230:not(#\9) {
231
231
  color: var(--color-text-status-inactive-gy7337, #656871);
232
232
  }
233
- .awsui_root_1cbgc_zkafv_203.awsui_status-loading_1cbgc_zkafv_233:not(#\9) {
233
+ .awsui_root_1cbgc_15y7y_203.awsui_status-loading_1cbgc_15y7y_233:not(#\9) {
234
234
  color: var(--color-text-status-inactive-gy7337, #656871);
235
235
  }
236
- .awsui_root_1cbgc_zkafv_203.awsui_status-not-started_1cbgc_zkafv_236:not(#\9) {
236
+ .awsui_root_1cbgc_15y7y_203.awsui_status-not-started_1cbgc_15y7y_236:not(#\9) {
237
237
  color: var(--color-text-status-inactive-gy7337, #656871);
238
238
  }
239
- .awsui_root_1cbgc_zkafv_203.awsui_color-override-red_1cbgc_zkafv_239:not(#\9) {
239
+ .awsui_root_1cbgc_15y7y_203.awsui_color-override-red_1cbgc_15y7y_239:not(#\9) {
240
240
  color: var(--color-text-status-error-ksqavh, #db0000);
241
241
  }
242
- .awsui_root_1cbgc_zkafv_203.awsui_color-override-grey_1cbgc_zkafv_242:not(#\9) {
242
+ .awsui_root_1cbgc_15y7y_203.awsui_color-override-grey_1cbgc_15y7y_242:not(#\9) {
243
243
  color: var(--color-text-status-inactive-gy7337, #656871);
244
244
  }
245
- .awsui_root_1cbgc_zkafv_203.awsui_color-override-blue_1cbgc_zkafv_245:not(#\9) {
245
+ .awsui_root_1cbgc_15y7y_203.awsui_color-override-blue_1cbgc_15y7y_245:not(#\9) {
246
246
  color: var(--color-text-status-info-ue8bd2, #006ce0);
247
247
  }
248
- .awsui_root_1cbgc_zkafv_203.awsui_color-override-green_1cbgc_zkafv_248:not(#\9) {
248
+ .awsui_root_1cbgc_15y7y_203.awsui_color-override-green_1cbgc_15y7y_248:not(#\9) {
249
249
  color: var(--color-text-status-success-ybmii8, #00802f);
250
250
  }
251
- .awsui_root_1cbgc_zkafv_203.awsui_color-override-yellow_1cbgc_zkafv_251:not(#\9) {
251
+ .awsui_root_1cbgc_15y7y_203.awsui_color-override-yellow_1cbgc_15y7y_251:not(#\9) {
252
252
  color: var(--color-text-status-warning-6meo06, #855900);
253
253
  }
254
+ .awsui_root_1cbgc_15y7y_203.awsui_status-error_1cbgc_15y7y_212 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
255
+ background: var(--color-background-status-indicator-error-txnmnb, transparent);
256
+ }
257
+ .awsui_root_1cbgc_15y7y_203.awsui_status-warning_1cbgc_15y7y_215 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
258
+ background: var(--color-background-status-indicator-warning-xf3dw4, transparent);
259
+ }
260
+ .awsui_root_1cbgc_15y7y_203.awsui_status-success_1cbgc_15y7y_218 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
261
+ background: var(--color-background-status-indicator-success-o8ig5c, transparent);
262
+ }
263
+ .awsui_root_1cbgc_15y7y_203.awsui_status-info_1cbgc_15y7y_221 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
264
+ background: var(--color-background-status-indicator-info-nqw7od, transparent);
265
+ }
266
+ .awsui_root_1cbgc_15y7y_203.awsui_status-stopped_1cbgc_15y7y_224 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
267
+ background: var(--color-background-status-indicator-neutral-psqqh7, transparent);
268
+ }
269
+ .awsui_root_1cbgc_15y7y_203.awsui_status-pending_1cbgc_15y7y_227 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
270
+ background: var(--color-background-status-indicator-neutral-psqqh7, transparent);
271
+ }
272
+ .awsui_root_1cbgc_15y7y_203.awsui_status-in-progress_1cbgc_15y7y_230 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
273
+ background: var(--color-background-status-indicator-neutral-psqqh7, transparent);
274
+ }
275
+ .awsui_root_1cbgc_15y7y_203.awsui_status-loading_1cbgc_15y7y_233 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
276
+ background: var(--color-background-status-indicator-neutral-psqqh7, transparent);
277
+ }
278
+ .awsui_root_1cbgc_15y7y_203.awsui_status-not-started_1cbgc_15y7y_236 > .awsui_container_1cbgc_15y7y_181:not(#\9) {
279
+ background: var(--color-background-status-indicator-neutral-psqqh7, transparent);
280
+ }
254
281
 
255
- .awsui_container_1cbgc_zkafv_181.awsui_display-inline_1cbgc_zkafv_255:not(#\9) {
282
+ .awsui_container_1cbgc_15y7y_181:not(#\9) {
283
+ padding-inline: var(--space-status-indicator-padding-horizontal-xv70fu, 0px);
284
+ border-start-start-radius: var(--border-radius-status-indicator-fkcvdq, 4px);
285
+ border-start-end-radius: var(--border-radius-status-indicator-fkcvdq, 4px);
286
+ border-end-start-radius: var(--border-radius-status-indicator-fkcvdq, 4px);
287
+ border-end-end-radius: var(--border-radius-status-indicator-fkcvdq, 4px);
288
+ }
289
+ .awsui_container_1cbgc_15y7y_181.awsui_display-inline_1cbgc_15y7y_289:not(#\9) {
256
290
  min-inline-size: 0;
257
291
  word-break: break-word;
258
292
  display: inline;
259
293
  }
260
- .awsui_container_1cbgc_zkafv_181.awsui_display-inline_1cbgc_zkafv_255 > .awsui_icon_1cbgc_zkafv_153:not(#\9) {
294
+ .awsui_container_1cbgc_15y7y_181.awsui_display-inline_1cbgc_15y7y_289 > .awsui_icon_1cbgc_15y7y_153:not(#\9) {
261
295
  white-space: nowrap;
262
296
  }
263
- .awsui_container_1cbgc_zkafv_181.awsui_display-inline-block_1cbgc_zkafv_263:not(#\9) {
297
+ .awsui_container_1cbgc_15y7y_181.awsui_display-inline-block_1cbgc_15y7y_297:not(#\9) {
264
298
  display: inline-block;
265
299
  word-wrap: break-word;
266
300
  word-break: break-all;
267
301
  }
268
- .awsui_container_1cbgc_zkafv_181.awsui_display-inline-block_1cbgc_zkafv_263 > .awsui_icon_1cbgc_zkafv_153:not(#\9) {
302
+ .awsui_container_1cbgc_15y7y_181.awsui_display-inline-block_1cbgc_15y7y_297 > .awsui_icon_1cbgc_15y7y_153:not(#\9) {
269
303
  padding-inline-end: var(--space-xxs-hwfkai, 4px);
270
304
  }
271
305
 
272
- .awsui_overflow-ellipsis_1cbgc_zkafv_272:not(#\9) {
306
+ .awsui_overflow-ellipsis_1cbgc_15y7y_306:not(#\9) {
273
307
  max-inline-size: 100%;
274
308
  overflow: hidden;
275
309
  text-overflow: ellipsis;
@@ -2,29 +2,29 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "icon-shake": "awsui_icon-shake_1cbgc_zkafv_153",
6
- "awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_zkafv_1",
7
- "container-fade-in": "awsui_container-fade-in_1cbgc_zkafv_181",
8
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_zkafv_1",
9
- "root": "awsui_root_1cbgc_zkafv_203",
10
- "status-error": "awsui_status-error_1cbgc_zkafv_212",
11
- "status-warning": "awsui_status-warning_1cbgc_zkafv_215",
12
- "status-success": "awsui_status-success_1cbgc_zkafv_218",
13
- "status-info": "awsui_status-info_1cbgc_zkafv_221",
14
- "status-stopped": "awsui_status-stopped_1cbgc_zkafv_224",
15
- "status-pending": "awsui_status-pending_1cbgc_zkafv_227",
16
- "status-in-progress": "awsui_status-in-progress_1cbgc_zkafv_230",
17
- "status-loading": "awsui_status-loading_1cbgc_zkafv_233",
18
- "status-not-started": "awsui_status-not-started_1cbgc_zkafv_236",
19
- "color-override-red": "awsui_color-override-red_1cbgc_zkafv_239",
20
- "color-override-grey": "awsui_color-override-grey_1cbgc_zkafv_242",
21
- "color-override-blue": "awsui_color-override-blue_1cbgc_zkafv_245",
22
- "color-override-green": "awsui_color-override-green_1cbgc_zkafv_248",
23
- "color-override-yellow": "awsui_color-override-yellow_1cbgc_zkafv_251",
24
- "container": "awsui_container_1cbgc_zkafv_181",
25
- "display-inline": "awsui_display-inline_1cbgc_zkafv_255",
26
- "icon": "awsui_icon_1cbgc_zkafv_153",
27
- "display-inline-block": "awsui_display-inline-block_1cbgc_zkafv_263",
28
- "overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_zkafv_272"
5
+ "icon-shake": "awsui_icon-shake_1cbgc_15y7y_153",
6
+ "awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_15y7y_1",
7
+ "container-fade-in": "awsui_container-fade-in_1cbgc_15y7y_181",
8
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_15y7y_1",
9
+ "root": "awsui_root_1cbgc_15y7y_203",
10
+ "status-error": "awsui_status-error_1cbgc_15y7y_212",
11
+ "status-warning": "awsui_status-warning_1cbgc_15y7y_215",
12
+ "status-success": "awsui_status-success_1cbgc_15y7y_218",
13
+ "status-info": "awsui_status-info_1cbgc_15y7y_221",
14
+ "status-stopped": "awsui_status-stopped_1cbgc_15y7y_224",
15
+ "status-pending": "awsui_status-pending_1cbgc_15y7y_227",
16
+ "status-in-progress": "awsui_status-in-progress_1cbgc_15y7y_230",
17
+ "status-loading": "awsui_status-loading_1cbgc_15y7y_233",
18
+ "status-not-started": "awsui_status-not-started_1cbgc_15y7y_236",
19
+ "color-override-red": "awsui_color-override-red_1cbgc_15y7y_239",
20
+ "color-override-grey": "awsui_color-override-grey_1cbgc_15y7y_242",
21
+ "color-override-blue": "awsui_color-override-blue_1cbgc_15y7y_245",
22
+ "color-override-green": "awsui_color-override-green_1cbgc_15y7y_248",
23
+ "color-override-yellow": "awsui_color-override-yellow_1cbgc_15y7y_251",
24
+ "container": "awsui_container_1cbgc_15y7y_181",
25
+ "display-inline": "awsui_display-inline_1cbgc_15y7y_289",
26
+ "icon": "awsui_icon_1cbgc_15y7y_153",
27
+ "display-inline-block": "awsui_display-inline-block_1cbgc_15y7y_297",
28
+ "overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_15y7y_306"
29
29
  };
30
30
 
@@ -93,8 +93,6 @@ export interface WizardProps extends BaseComponentProps {
93
93
  allowSkipTo?: boolean;
94
94
  /**
95
95
  * Specifies right-aligned custom primary actions for the wizard. Overwrites existing buttons (e.g. Cancel, Next, Finish).
96
- *
97
- * @awsuiSystem core
98
96
  */
99
97
  customPrimaryActions?: React.ReactNode;
100
98
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/wizard/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO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B,EAAE,MAAM,CAAC;QAC3B,MAAM,EAAE,WAAW,CAAC,gBAAgB,CAAC;KACtC;IAED,KAAY,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;CACtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/wizard/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { ErrorContext, FlowType } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport namespace WizardProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n resourceType?: string;\n errorContext?: ErrorContext;\n }\n}\n\nexport interface WizardProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `flowType` - Identifies the type of flow represented by the component.\n * * `resourceType` - Identifies the type of resource represented by the flow. **Note:** This API is currently experimental.\n * @analytics\n */\n analyticsMetadata?: WizardProps.AnalyticsMetadata;\n\n /**\n * Array of step objects. Each object represents a step in the wizard with the following properties:\n *\n * - `title` (string) - Text that's displayed as the title in the navigation pane and form header.\n * - `info` (ReactNode) - (Optional) Area for a page level info link that's displayed in the form header.\n * The page level info link should trigger the default help panel content for the step. Use the [link component](/components/link/) to display the link.\n * - `description` (ReactNode) - (Optional) Area below the form header for a page level description text to further explain the purpose, goal, or main actions of the step.\n * - `content` (ReactNode) - Main content area to display form sections, form fields, and controls.\n * - `errorText` (ReactNode) - (Optional) Error text that's displayed in a page level error alert.\n * Use this for rendering actionable server-side validation failure messages.\n * - `isOptional` (boolean) - Specifies whether the step is optional or required. If set to `true`, the text from `i18nStrings.optional`\n * is rendered next to the `title` in the navigation step label and the form header title.\n * - `analyticsMetadata` (WizardProps.StepAnalyticsMetadata) - (Optional) Specifies additional analytics-related metadata.\n * @analytics\n */\n steps: ReadonlyArray<WizardProps.Step>;\n\n /**\n * Index of the step that's currently displayed. The first step has an index of zero (0).\n *\n * If you don't set this property, the component starts on the first step and switches step automatically\n * when a user navigates using the buttons or an enabled step link in the navigation pane (that is, uncontrolled behavior).\n *\n * If you provide a value for this property, you must also set an `onNavigate` listener to update the property when\n * a user navigates (that is, controlled behavior).\n *\n * If you set it to a value that exceeds the maximum value (that is, the number of steps minus 1), its value is ignored and the component uses the maximum value.\n */\n activeStepIndex?: number;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n *\n * - `stepNumberLabel` ((stepNumber: number) => string) - A function that accepts a number (1-based indexing),\n * and returns a human-readable, localized string displaying the step number in the navigation pane. For example, \"Step 1\" or \"Step 2\".\n * - `collapsedStepsLabel` ((stepNumber: number, stepsCount: number) => string) - A function that accepts two number parameters (1-based indexing),\n * and returns a string responsible for the navigation summary on smaller screens. For example, \"Step 1 of 3\". The parameters are as follows:\n * - `stepNumber` (number) - The step number that the user is currently on.\n * - `stepsCount` (number) - The total number of steps in the wizard.\n * - `skipToButtonLabel`: ((targetStep: WizardProps.Step, targetStepNumber: number) => string) - An optional function that accepts the target step object\n * and the target step number (1-based indexing), and returns a string to be used as the *skip-to* button label. For example, \"Skip to Step 2\" or \"Skip to end\".\n * - `navigationAriaLabel` (string) - The aria label for the navigation pane.\n * - `cancelButton` (string) - The text of the button that enables the user to exit the flow.\n * - `previousButton` (string) - The text of the button that enables the user to return to the previous step.\n * - `nextButton` (string) - The text of the button that enables the user to move to the next step.\n * - `submitButton` (string) - The text of the button that enables the user to submit the form. **Deprecated**, replaced by the `submitButtonText` component property. `submitButton` is not supported by the I18nProvider.\n * - `optional` (string) - The text displayed next to the step title and form header title when a step is declared optional.\n * - `nextButtonLoadingAnnouncement` (string) - The text that a screen reader announces when the *next* button is in a loading state.\n * - `submitButtonLoadingAnnouncement` (string) - The text that a screen reader announces when the *submit* button is in a loading state.\n * @i18n\n */\n i18nStrings?: WizardProps.I18nStrings;\n\n /**\n * The text of the button that enables the user to submit the form.\n */\n submitButtonText?: string;\n\n /**\n * Renders the *next* or *submit* button in a loading state.\n *\n * Use this if you need to wait for a response from the server before the user can proceed to the next step, such as during server-side validation or retrieving the next step's information.\n */\n isLoadingNextStep?: boolean;\n\n /**\n * When set to `false`, the *skip-to* button is never shown.\n * When set to `true`, the *skip-to* button may appear to offer faster navigation for the user.\n *\n * The *skip-to* button only allows to skip optional steps. It is shown when there is one or more optional\n * steps ahead having no required steps in-between.\n *\n * Note: the *skip-to* button requires the function i18nStrings.skipToButtonLabel to be defined.\n *\n * Defaults to `false`.\n */\n allowSkipTo?: boolean;\n\n /**\n * Specifies right-aligned custom primary actions for the wizard. Overwrites existing buttons (e.g. Cancel, Next, Finish).\n *\n * @awsuiSystem core\n */\n customPrimaryActions?: React.ReactNode;\n\n /**\n * Specifies left-aligned secondary actions for the wizard. Use a button dropdown if multiple actions are required.\n */\n secondaryActions?: React.ReactNode;\n\n /**\n * Called when a user clicks the *cancel* button.\n * If a user has entered data in the form, you should prompt the user with a modal before exiting the wizard flow.\n */\n onCancel?: NonCancelableEventHandler;\n\n /**\n * Called when a user clicks the *submit* button.\n */\n onSubmit?: NonCancelableEventHandler;\n\n /**\n * Called when a user clicks the *next* button, the *previous* button, or an enabled step link in the navigation pane.\n *\n * The event `detail` includes the following:\n * - `requestedStepIndex` - The index of the requested step.\n * - `reason` - The user action that triggered the navigation event. It can be `next` (when the user clicks the *next* button),\n * `previous` (when the user clicks the *previous* button), `step` (an enabled step link in the navigation pane),\n * or `skip` (when navigated using navigation pane or the *skip-to* button to the previously unvisited step).\n */\n onNavigate?: NonCancelableEventHandler<WizardProps.NavigateDetail>;\n}\n\nexport namespace WizardProps {\n export interface StepAnalyticsMetadata {\n instanceIdentifier?: string;\n errorContext?: ErrorContext;\n }\n export interface Step {\n title: string;\n info?: React.ReactNode;\n description?: React.ReactNode;\n content: React.ReactNode;\n errorText?: React.ReactNode;\n isOptional?: boolean;\n analyticsMetadata?: StepAnalyticsMetadata;\n }\n\n export interface I18nStrings {\n /**\n * @deprecated Use `submitButtonText` on the component instead.\n */\n submitButton?: string;\n\n stepNumberLabel?(stepNumber: number): string;\n collapsedStepsLabel?(stepNumber: number, stepsCount: number): string;\n skipToButtonLabel?(targetStep: WizardProps.Step, targetStepNumber: number): string;\n navigationAriaLabel?: string;\n errorIconAriaLabel?: string;\n cancelButton?: string;\n previousButton?: string;\n nextButton?: string;\n optional?: string;\n nextButtonLoadingAnnouncement?: string;\n submitButtonLoadingAnnouncement?: string;\n }\n\n export interface NavigateDetail {\n requestedStepIndex: number;\n reason: WizardProps.NavigationReason;\n }\n\n export type NavigationReason = 'next' | 'previous' | 'step' | 'skip';\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/wizard/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { ErrorContext, FlowType } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport namespace WizardProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n resourceType?: string;\n errorContext?: ErrorContext;\n }\n}\n\nexport interface WizardProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `flowType` - Identifies the type of flow represented by the component.\n * * `resourceType` - Identifies the type of resource represented by the flow. **Note:** This API is currently experimental.\n * @analytics\n */\n analyticsMetadata?: WizardProps.AnalyticsMetadata;\n\n /**\n * Array of step objects. Each object represents a step in the wizard with the following properties:\n *\n * - `title` (string) - Text that's displayed as the title in the navigation pane and form header.\n * - `info` (ReactNode) - (Optional) Area for a page level info link that's displayed in the form header.\n * The page level info link should trigger the default help panel content for the step. Use the [link component](/components/link/) to display the link.\n * - `description` (ReactNode) - (Optional) Area below the form header for a page level description text to further explain the purpose, goal, or main actions of the step.\n * - `content` (ReactNode) - Main content area to display form sections, form fields, and controls.\n * - `errorText` (ReactNode) - (Optional) Error text that's displayed in a page level error alert.\n * Use this for rendering actionable server-side validation failure messages.\n * - `isOptional` (boolean) - Specifies whether the step is optional or required. If set to `true`, the text from `i18nStrings.optional`\n * is rendered next to the `title` in the navigation step label and the form header title.\n * - `analyticsMetadata` (WizardProps.StepAnalyticsMetadata) - (Optional) Specifies additional analytics-related metadata.\n * @analytics\n */\n steps: ReadonlyArray<WizardProps.Step>;\n\n /**\n * Index of the step that's currently displayed. The first step has an index of zero (0).\n *\n * If you don't set this property, the component starts on the first step and switches step automatically\n * when a user navigates using the buttons or an enabled step link in the navigation pane (that is, uncontrolled behavior).\n *\n * If you provide a value for this property, you must also set an `onNavigate` listener to update the property when\n * a user navigates (that is, controlled behavior).\n *\n * If you set it to a value that exceeds the maximum value (that is, the number of steps minus 1), its value is ignored and the component uses the maximum value.\n */\n activeStepIndex?: number;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n *\n * - `stepNumberLabel` ((stepNumber: number) => string) - A function that accepts a number (1-based indexing),\n * and returns a human-readable, localized string displaying the step number in the navigation pane. For example, \"Step 1\" or \"Step 2\".\n * - `collapsedStepsLabel` ((stepNumber: number, stepsCount: number) => string) - A function that accepts two number parameters (1-based indexing),\n * and returns a string responsible for the navigation summary on smaller screens. For example, \"Step 1 of 3\". The parameters are as follows:\n * - `stepNumber` (number) - The step number that the user is currently on.\n * - `stepsCount` (number) - The total number of steps in the wizard.\n * - `skipToButtonLabel`: ((targetStep: WizardProps.Step, targetStepNumber: number) => string) - An optional function that accepts the target step object\n * and the target step number (1-based indexing), and returns a string to be used as the *skip-to* button label. For example, \"Skip to Step 2\" or \"Skip to end\".\n * - `navigationAriaLabel` (string) - The aria label for the navigation pane.\n * - `cancelButton` (string) - The text of the button that enables the user to exit the flow.\n * - `previousButton` (string) - The text of the button that enables the user to return to the previous step.\n * - `nextButton` (string) - The text of the button that enables the user to move to the next step.\n * - `submitButton` (string) - The text of the button that enables the user to submit the form. **Deprecated**, replaced by the `submitButtonText` component property. `submitButton` is not supported by the I18nProvider.\n * - `optional` (string) - The text displayed next to the step title and form header title when a step is declared optional.\n * - `nextButtonLoadingAnnouncement` (string) - The text that a screen reader announces when the *next* button is in a loading state.\n * - `submitButtonLoadingAnnouncement` (string) - The text that a screen reader announces when the *submit* button is in a loading state.\n * @i18n\n */\n i18nStrings?: WizardProps.I18nStrings;\n\n /**\n * The text of the button that enables the user to submit the form.\n */\n submitButtonText?: string;\n\n /**\n * Renders the *next* or *submit* button in a loading state.\n *\n * Use this if you need to wait for a response from the server before the user can proceed to the next step, such as during server-side validation or retrieving the next step's information.\n */\n isLoadingNextStep?: boolean;\n\n /**\n * When set to `false`, the *skip-to* button is never shown.\n * When set to `true`, the *skip-to* button may appear to offer faster navigation for the user.\n *\n * The *skip-to* button only allows to skip optional steps. It is shown when there is one or more optional\n * steps ahead having no required steps in-between.\n *\n * Note: the *skip-to* button requires the function i18nStrings.skipToButtonLabel to be defined.\n *\n * Defaults to `false`.\n */\n allowSkipTo?: boolean;\n\n /**\n * Specifies right-aligned custom primary actions for the wizard. Overwrites existing buttons (e.g. Cancel, Next, Finish).\n */\n customPrimaryActions?: React.ReactNode;\n\n /**\n * Specifies left-aligned secondary actions for the wizard. Use a button dropdown if multiple actions are required.\n */\n secondaryActions?: React.ReactNode;\n\n /**\n * Called when a user clicks the *cancel* button.\n * If a user has entered data in the form, you should prompt the user with a modal before exiting the wizard flow.\n */\n onCancel?: NonCancelableEventHandler;\n\n /**\n * Called when a user clicks the *submit* button.\n */\n onSubmit?: NonCancelableEventHandler;\n\n /**\n * Called when a user clicks the *next* button, the *previous* button, or an enabled step link in the navigation pane.\n *\n * The event `detail` includes the following:\n * - `requestedStepIndex` - The index of the requested step.\n * - `reason` - The user action that triggered the navigation event. It can be `next` (when the user clicks the *next* button),\n * `previous` (when the user clicks the *previous* button), `step` (an enabled step link in the navigation pane),\n * or `skip` (when navigated using navigation pane or the *skip-to* button to the previously unvisited step).\n */\n onNavigate?: NonCancelableEventHandler<WizardProps.NavigateDetail>;\n}\n\nexport namespace WizardProps {\n export interface StepAnalyticsMetadata {\n instanceIdentifier?: string;\n errorContext?: ErrorContext;\n }\n export interface Step {\n title: string;\n info?: React.ReactNode;\n description?: React.ReactNode;\n content: React.ReactNode;\n errorText?: React.ReactNode;\n isOptional?: boolean;\n analyticsMetadata?: StepAnalyticsMetadata;\n }\n\n export interface I18nStrings {\n /**\n * @deprecated Use `submitButtonText` on the component instead.\n */\n submitButton?: string;\n\n stepNumberLabel?(stepNumber: number): string;\n collapsedStepsLabel?(stepNumber: number, stepsCount: number): string;\n skipToButtonLabel?(targetStep: WizardProps.Step, targetStepNumber: number): string;\n navigationAriaLabel?: string;\n errorIconAriaLabel?: string;\n cancelButton?: string;\n previousButton?: string;\n nextButton?: string;\n optional?: string;\n nextButtonLoadingAnnouncement?: string;\n submitButtonLoadingAnnouncement?: string;\n }\n\n export interface NavigateDetail {\n requestedStepIndex: number;\n reason: WizardProps.NavigationReason;\n }\n\n export type NavigationReason = 'next' | 'previous' | 'step' | 'skip';\n}\n"]}