@cloudscape-design/components-themeable 3.0.1129 → 3.0.1130

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 (121) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +1 -1
  3. package/lib/internal/scss/input/styles.scss +9 -62
  4. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +87 -99
  5. package/lib/internal/scss/internal/styles/forms/mixins.scss +19 -42
  6. package/lib/internal/scss/steps/styles.scss +63 -0
  7. package/lib/internal/template/alert/styles.css.js +27 -27
  8. package/lib/internal/template/alert/styles.scoped.css +50 -50
  9. package/lib/internal/template/alert/styles.selectors.js +27 -27
  10. package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
  11. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +32 -32
  12. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
  13. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  14. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  15. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  16. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
  17. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
  18. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
  19. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +27 -27
  20. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +84 -84
  21. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +27 -27
  22. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  23. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
  24. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  25. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
  26. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
  27. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
  28. package/lib/internal/template/attribute-editor/styles.css.js +15 -15
  29. package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
  30. package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
  31. package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
  32. package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
  33. package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
  34. package/lib/internal/template/button/styles.css.js +22 -22
  35. package/lib/internal/template/button/styles.scoped.css +256 -256
  36. package/lib/internal/template/button/styles.selectors.js +22 -22
  37. package/lib/internal/template/button-dropdown/item-element/styles.css.js +16 -16
  38. package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +27 -27
  39. package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +16 -16
  40. package/lib/internal/template/checkbox/styles.css.js +3 -3
  41. package/lib/internal/template/checkbox/styles.scoped.css +11 -11
  42. package/lib/internal/template/checkbox/styles.selectors.js +3 -3
  43. package/lib/internal/template/content-layout/styles.css.js +14 -14
  44. package/lib/internal/template/content-layout/styles.scoped.css +27 -27
  45. package/lib/internal/template/content-layout/styles.selectors.js +14 -14
  46. package/lib/internal/template/flashbar/styles.css.js +50 -50
  47. package/lib/internal/template/flashbar/styles.scoped.css +187 -187
  48. package/lib/internal/template/flashbar/styles.selectors.js +50 -50
  49. package/lib/internal/template/help-panel/styles.css.js +6 -6
  50. package/lib/internal/template/help-panel/styles.scoped.css +73 -73
  51. package/lib/internal/template/help-panel/styles.selectors.js +6 -6
  52. package/lib/internal/template/input/index.d.ts.map +1 -1
  53. package/lib/internal/template/input/index.js +2 -3
  54. package/lib/internal/template/input/index.js.map +1 -1
  55. package/lib/internal/template/input/interfaces.d.ts +0 -48
  56. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  57. package/lib/internal/template/input/interfaces.js.map +1 -1
  58. package/lib/internal/template/input/internal.d.ts.map +1 -1
  59. package/lib/internal/template/input/internal.js +2 -3
  60. package/lib/internal/template/input/internal.js.map +1 -1
  61. package/lib/internal/template/input/styles.css.js +13 -13
  62. package/lib/internal/template/input/styles.scoped.css +49 -66
  63. package/lib/internal/template/input/styles.selectors.js +13 -13
  64. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  65. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +20 -20
  66. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +48 -48
  67. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +20 -20
  68. package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
  69. package/lib/internal/template/internal/components/dropdown/styles.scoped.css +38 -38
  70. package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
  71. package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
  72. package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
  73. package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
  74. package/lib/internal/template/internal/environment.js +2 -2
  75. package/lib/internal/template/internal/environment.json +2 -2
  76. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +0 -12
  77. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  78. package/lib/internal/template/internal/generated/custom-css-properties/index.js +86 -98
  79. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  80. package/lib/internal/template/link/styles.css.js +20 -20
  81. package/lib/internal/template/link/styles.scoped.css +103 -103
  82. package/lib/internal/template/link/styles.selectors.js +20 -20
  83. package/lib/internal/template/radio-group/styles.css.js +10 -10
  84. package/lib/internal/template/radio-group/styles.scoped.css +22 -22
  85. package/lib/internal/template/radio-group/styles.selectors.js +10 -10
  86. package/lib/internal/template/select/parts/filter.d.ts +1 -1
  87. package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
  88. package/lib/internal/template/slider/styles.css.js +26 -26
  89. package/lib/internal/template/slider/styles.scoped.css +86 -86
  90. package/lib/internal/template/slider/styles.selectors.js +26 -26
  91. package/lib/internal/template/spinner/styles.css.js +13 -13
  92. package/lib/internal/template/spinner/styles.scoped.css +39 -39
  93. package/lib/internal/template/spinner/styles.selectors.js +13 -13
  94. package/lib/internal/template/status-indicator/internal.d.ts +7 -0
  95. package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
  96. package/lib/internal/template/status-indicator/internal.js +6 -3
  97. package/lib/internal/template/status-indicator/internal.js.map +1 -1
  98. package/lib/internal/template/steps/interfaces.d.ts +22 -0
  99. package/lib/internal/template/steps/interfaces.d.ts.map +1 -1
  100. package/lib/internal/template/steps/interfaces.js.map +1 -1
  101. package/lib/internal/template/steps/internal.d.ts +1 -1
  102. package/lib/internal/template/steps/internal.d.ts.map +1 -1
  103. package/lib/internal/template/steps/internal.js +31 -7
  104. package/lib/internal/template/steps/internal.js.map +1 -1
  105. package/lib/internal/template/steps/styles.css.js +9 -6
  106. package/lib/internal/template/steps/styles.scoped.css +58 -7
  107. package/lib/internal/template/steps/styles.selectors.js +9 -6
  108. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  109. package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
  110. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  111. package/lib/internal/template/text-content/styles.css.js +1 -1
  112. package/lib/internal/template/text-content/styles.scoped.css +66 -66
  113. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  114. package/lib/internal/template/toggle/styles.css.js +10 -10
  115. package/lib/internal/template/toggle/styles.scoped.css +23 -23
  116. package/lib/internal/template/toggle/styles.selectors.js +10 -10
  117. package/package.json +1 -1
  118. package/lib/internal/template/input/styles.d.ts +0 -3
  119. package/lib/internal/template/input/styles.d.ts.map +0 -1
  120. package/lib/internal/template/input/styles.js +0 -42
  121. package/lib/internal/template/input/styles.js.map +0 -1
@@ -150,52 +150,52 @@ 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
- @keyframes awsui_spinner-rotator_1612d_sv6go_1 {
153
+ @keyframes awsui_spinner-rotator_1612d_sq8vz_1 {
154
154
  0% {
155
- transform: rotate(var(--awsui-spinner-rotator-from-b75yp7));
155
+ transform: rotate(var(--awsui-spinner-rotator-from-lqnbqg));
156
156
  }
157
157
  100% {
158
- transform: rotate(var(--awsui-spinner-rotator-to-b75yp7));
158
+ transform: rotate(var(--awsui-spinner-rotator-to-lqnbqg));
159
159
  }
160
160
  }
161
- @keyframes awsui_spinner-line-left_1612d_sv6go_1 {
161
+ @keyframes awsui_spinner-line-left_1612d_sq8vz_1 {
162
162
  0% {
163
- transform: rotate(var(--awsui-spinner-line-left-from-b75yp7));
163
+ transform: rotate(var(--awsui-spinner-line-left-from-lqnbqg));
164
164
  }
165
165
  50% {
166
- transform: rotate(var(--awsui-spinner-line-left-to-b75yp7));
166
+ transform: rotate(var(--awsui-spinner-line-left-to-lqnbqg));
167
167
  }
168
168
  100% {
169
- transform: rotate(var(--awsui-spinner-line-left-from-b75yp7));
169
+ transform: rotate(var(--awsui-spinner-line-left-from-lqnbqg));
170
170
  }
171
171
  }
172
- @keyframes awsui_spinner-line-right_1612d_sv6go_1 {
172
+ @keyframes awsui_spinner-line-right_1612d_sq8vz_1 {
173
173
  0% {
174
- transform: rotate(var(--awsui-spinner-line-right-from-b75yp7));
174
+ transform: rotate(var(--awsui-spinner-line-right-from-lqnbqg));
175
175
  }
176
176
  50% {
177
- transform: rotate(var(--awsui-spinner-line-right-to-b75yp7));
177
+ transform: rotate(var(--awsui-spinner-line-right-to-lqnbqg));
178
178
  }
179
179
  100% {
180
- transform: rotate(var(--awsui-spinner-line-right-from-b75yp7));
180
+ transform: rotate(var(--awsui-spinner-line-right-from-lqnbqg));
181
181
  }
182
182
  }
183
- .awsui_root_1612d_sv6go_183:not(#\9) {
184
- --awsui-spinner-rotator-from-b75yp7: 0deg;
185
- --awsui-spinner-rotator-to-b75yp7: 360deg;
186
- --awsui-spinner-line-left-from-b75yp7: 0deg;
187
- --awsui-spinner-line-left-to-b75yp7: 120deg;
188
- --awsui-spinner-line-right-from-b75yp7: 90deg;
189
- --awsui-spinner-line-right-to-b75yp7: -30deg;
183
+ .awsui_root_1612d_sq8vz_183:not(#\9) {
184
+ --awsui-spinner-rotator-from-lqnbqg: 0deg;
185
+ --awsui-spinner-rotator-to-lqnbqg: 360deg;
186
+ --awsui-spinner-line-left-from-lqnbqg: 0deg;
187
+ --awsui-spinner-line-left-to-lqnbqg: 120deg;
188
+ --awsui-spinner-line-right-from-lqnbqg: 90deg;
189
+ --awsui-spinner-line-right-to-lqnbqg: -30deg;
190
190
  display: inline-block;
191
191
  vertical-align: top;
192
192
  /*stylelint-disable-next-line @cloudscape-design/no-motion-outside-of-mixin */
193
- animation: awsui_spinner-rotator_1612d_sv6go_1 0.7s linear infinite;
193
+ animation: awsui_spinner-rotator_1612d_sq8vz_1 0.7s linear infinite;
194
194
  box-sizing: border-box;
195
195
  line-height: 0;
196
196
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
197
197
  }
198
- .awsui_root_1612d_sv6go_183.awsui_size-normal_1612d_sv6go_198:not(#\9) {
198
+ .awsui_root_1612d_sq8vz_183.awsui_size-normal_1612d_sq8vz_198:not(#\9) {
199
199
  inline-size: var(--size-icon-normal-2f5zkr, 16px);
200
200
  block-size: var(--size-icon-normal-2f5zkr, 16px);
201
201
  padding-block: calc((var(--size-icon-normal-2f5zkr, 16px) - 12px) / 2);
@@ -203,7 +203,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
203
203
  margin-block: calc((var(--line-height-body-m-bedeoh, 22px) - var(--size-icon-normal-2f5zkr, 16px)) / 2);
204
204
  box-sizing: border-box;
205
205
  }
206
- .awsui_root_1612d_sv6go_183.awsui_size-big_1612d_sv6go_206:not(#\9) {
206
+ .awsui_root_1612d_sq8vz_183.awsui_size-big_1612d_sq8vz_206:not(#\9) {
207
207
  inline-size: var(--size-icon-big-hnqj8f, 32px);
208
208
  block-size: var(--size-icon-big-hnqj8f, 32px);
209
209
  padding-block: calc((var(--size-icon-big-hnqj8f, 32px) - 24px) / 2);
@@ -211,7 +211,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
211
211
  margin-block: calc((var(--line-height-heading-xl-vs1f23, 36px) - var(--size-icon-big-hnqj8f, 32px)) / 2);
212
212
  box-sizing: border-box;
213
213
  }
214
- .awsui_root_1612d_sv6go_183.awsui_size-large_1612d_sv6go_214:not(#\9) {
214
+ .awsui_root_1612d_sq8vz_183.awsui_size-large_1612d_sq8vz_214:not(#\9) {
215
215
  inline-size: var(--size-icon-large-gj7xfw, 48px);
216
216
  block-size: var(--size-icon-large-gj7xfw, 48px);
217
217
  padding-block: calc((var(--size-icon-large-gj7xfw, 48px) - 36px) / 2);
@@ -219,32 +219,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
219
219
  margin-block: calc((var(--line-height-display-l-3zghmm, 56px) - var(--size-icon-large-gj7xfw, 48px)) / 2);
220
220
  box-sizing: border-box;
221
221
  }
222
- .awsui_root_1612d_sv6go_183.awsui_variant-normal_1612d_sv6go_222:not(#\9) {
222
+ .awsui_root_1612d_sq8vz_183.awsui_variant-normal_1612d_sq8vz_222:not(#\9) {
223
223
  color: currentColor;
224
224
  }
225
- .awsui_root_1612d_sv6go_183.awsui_variant-disabled_1612d_sv6go_225:not(#\9) {
225
+ .awsui_root_1612d_sq8vz_183.awsui_variant-disabled_1612d_sq8vz_225:not(#\9) {
226
226
  color: var(--color-text-interactive-disabled-xwt2jl, #aab7b8);
227
227
  }
228
- .awsui_root_1612d_sv6go_183.awsui_variant-inverted_1612d_sv6go_228:not(#\9) {
228
+ .awsui_root_1612d_sq8vz_183.awsui_variant-inverted_1612d_sq8vz_228:not(#\9) {
229
229
  color: var(--color-text-inverted-2l365o, #ffffff);
230
230
  }
231
- .awsui_root_1612d_sv6go_183:not(#\9):dir(rtl) {
232
- --awsui-spinner-rotator-from-b75yp7: 360deg;
233
- --awsui-spinner-rotator-to-b75yp7: 0deg;
234
- --awsui-spinner-line-left-from-b75yp7: 0deg;
235
- --awsui-spinner-line-left-to-b75yp7: -120deg;
236
- --awsui-spinner-line-right-from-b75yp7: -90deg;
237
- --awsui-spinner-line-right-to-b75yp7: 30deg;
231
+ .awsui_root_1612d_sq8vz_183:not(#\9):dir(rtl) {
232
+ --awsui-spinner-rotator-from-lqnbqg: 360deg;
233
+ --awsui-spinner-rotator-to-lqnbqg: 0deg;
234
+ --awsui-spinner-line-left-from-lqnbqg: 0deg;
235
+ --awsui-spinner-line-left-to-lqnbqg: -120deg;
236
+ --awsui-spinner-line-right-from-lqnbqg: -90deg;
237
+ --awsui-spinner-line-right-to-lqnbqg: 30deg;
238
238
  }
239
239
 
240
- .awsui_circle_1612d_sv6go_240:not(#\9) {
240
+ .awsui_circle_1612d_sq8vz_240:not(#\9) {
241
241
  display: inline-block;
242
242
  inline-size: 50%;
243
243
  block-size: 100%;
244
244
  overflow: hidden;
245
245
  position: relative;
246
246
  }
247
- .awsui_circle_1612d_sv6go_240:not(#\9):after {
247
+ .awsui_circle_1612d_sq8vz_240:not(#\9):after {
248
248
  position: absolute;
249
249
  box-sizing: border-box;
250
250
  content: "";
@@ -257,7 +257,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
257
257
  border-inline-end-color: transparent;
258
258
  border-block-end-color: transparent;
259
259
  }
260
- .awsui_circle_1612d_sv6go_240:not(#\9):after {
260
+ .awsui_circle_1612d_sq8vz_240:not(#\9):after {
261
261
  /*stylelint-disable-next-line @cloudscape-design/no-motion-outside-of-mixin */
262
262
  animation: 1.5s ease-in-out infinite;
263
263
  inset-block-start: 0;
@@ -265,13 +265,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
265
265
  block-size: 100%;
266
266
  inline-size: 200%;
267
267
  }
268
- .awsui_circle_1612d_sv6go_240.awsui_circle-left_1612d_sv6go_268:not(#\9):after {
268
+ .awsui_circle_1612d_sq8vz_240.awsui_circle-left_1612d_sq8vz_268:not(#\9):after {
269
269
  inset-inline-start: 0;
270
270
  /*stylelint-disable-next-line @cloudscape-design/no-motion-outside-of-mixin */
271
- animation-name: awsui_spinner-line-left_1612d_sv6go_1;
271
+ animation-name: awsui_spinner-line-left_1612d_sq8vz_1;
272
272
  }
273
- .awsui_circle_1612d_sv6go_240.awsui_circle-right_1612d_sv6go_273:not(#\9):after {
273
+ .awsui_circle_1612d_sq8vz_240.awsui_circle-right_1612d_sq8vz_273:not(#\9):after {
274
274
  inset-inline-start: -100%;
275
275
  /*stylelint-disable-next-line @cloudscape-design/no-motion-outside-of-mixin */
276
- animation-name: awsui_spinner-line-right_1612d_sv6go_1;
276
+ animation-name: awsui_spinner-line-right_1612d_sq8vz_1;
277
277
  }
@@ -2,18 +2,18 @@
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_1612d_sv6go_183",
6
- "spinner-rotator": "awsui_spinner-rotator_1612d_sv6go_1",
7
- "size-normal": "awsui_size-normal_1612d_sv6go_198",
8
- "size-big": "awsui_size-big_1612d_sv6go_206",
9
- "size-large": "awsui_size-large_1612d_sv6go_214",
10
- "variant-normal": "awsui_variant-normal_1612d_sv6go_222",
11
- "variant-disabled": "awsui_variant-disabled_1612d_sv6go_225",
12
- "variant-inverted": "awsui_variant-inverted_1612d_sv6go_228",
13
- "circle": "awsui_circle_1612d_sv6go_240",
14
- "circle-left": "awsui_circle-left_1612d_sv6go_268",
15
- "spinner-line-left": "awsui_spinner-line-left_1612d_sv6go_1",
16
- "circle-right": "awsui_circle-right_1612d_sv6go_273",
17
- "spinner-line-right": "awsui_spinner-line-right_1612d_sv6go_1"
5
+ "root": "awsui_root_1612d_sq8vz_183",
6
+ "spinner-rotator": "awsui_spinner-rotator_1612d_sq8vz_1",
7
+ "size-normal": "awsui_size-normal_1612d_sq8vz_198",
8
+ "size-big": "awsui_size-big_1612d_sq8vz_206",
9
+ "size-large": "awsui_size-large_1612d_sq8vz_214",
10
+ "variant-normal": "awsui_variant-normal_1612d_sq8vz_222",
11
+ "variant-disabled": "awsui_variant-disabled_1612d_sq8vz_225",
12
+ "variant-inverted": "awsui_variant-inverted_1612d_sq8vz_228",
13
+ "circle": "awsui_circle_1612d_sq8vz_240",
14
+ "circle-left": "awsui_circle-left_1612d_sq8vz_268",
15
+ "spinner-line-left": "awsui_spinner-line-left_1612d_sq8vz_1",
16
+ "circle-right": "awsui_circle-right_1612d_sq8vz_273",
17
+ "spinner-line-right": "awsui_spinner-line-right_1612d_sq8vz_1"
18
18
  };
19
19
 
@@ -17,5 +17,12 @@ export interface InternalStatusIndicatorProps extends SomeRequired<StatusIndicat
17
17
  */
18
18
  __display?: 'inline' | 'inline-block';
19
19
  }
20
+ interface InternalStatusIconProps extends Pick<InternalStatusIndicatorProps, 'type' | 'iconAriaLabel'> {
21
+ animate?: InternalStatusIndicatorProps['__animate'];
22
+ size?: InternalStatusIndicatorProps['__size'];
23
+ display?: InternalStatusIndicatorProps['__display'];
24
+ }
25
+ export declare function InternalStatusIcon({ type, iconAriaLabel, animate, display, size, }: InternalStatusIconProps): JSX.Element;
20
26
  export default function StatusIndicator({ type, children, iconAriaLabel, colorOverride, wrapText, nativeAttributes, __animate, __internalRootRef, __size, __display, ...rest }: InternalStatusIndicatorProps): JSX.Element;
27
+ export {};
21
28
  //# sourceMappingURL=internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":";AAKA,OAAO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AAU,uBAAwB,SAAQ,IAAI,CAAC,4BAA4B,EAAE,MAAM,GAAG,eAAe,CAAC;IACpG,OAAO,CAAC,EAAE,4BAA4B,CAAC,WAAW,CAAC,CAAC;IACpD,IAAI,CAAC,EAAE,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,4BAA4B,CAAC,WAAW,CAAC,CAAC;CACrD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,aAAa,EACb,OAAO,EACP,OAAO,EACP,IAAe,GAChB,EAAE,uBAAuB,eAWzB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,QAAe,EACf,gBAAgB,EAChB,SAAiB,EACjB,iBAAiB,EACjB,MAAiB,EACjB,SAA0B,EAC1B,GAAG,IAAI,EACR,EAAE,4BAA4B,eAqC9B"}
@@ -21,6 +21,11 @@ const typeToIcon = size => ({
21
21
  'in-progress': React.createElement(InternalIcon, { name: "status-in-progress", size: size }),
22
22
  loading: React.createElement(InternalSpinner, null),
23
23
  });
24
+ export function InternalStatusIcon({ type, iconAriaLabel, animate, display, size = 'normal', }) {
25
+ return (React.createElement("span", { className: clsx(styles.icon, animate && styles['icon-shake']), "aria-label": iconAriaLabel, role: iconAriaLabel ? 'img' : undefined },
26
+ typeToIcon(size)[type],
27
+ display === 'inline' && React.createElement(React.Fragment, null, "\u00A0")));
28
+ }
24
29
  export default function StatusIndicator(_a) {
25
30
  var { type, children, iconAriaLabel, colorOverride, wrapText = true, nativeAttributes, __animate = false, __internalRootRef, __size = 'normal', __display = 'inline-block' } = _a, rest = __rest(_a, ["type", "children", "iconAriaLabel", "colorOverride", "wrapText", "nativeAttributes", "__animate", "__internalRootRef", "__size", "__display"]);
26
31
  const baseProps = getBaseProps(rest);
@@ -28,9 +33,7 @@ export default function StatusIndicator(_a) {
28
33
  [styles[`color-override-${colorOverride}`]]: colorOverride,
29
34
  }, baseProps.className), ref: __internalRootRef }),
30
35
  React.createElement("span", { className: clsx(styles.container, styles[`display-${__display}`], wrapText === false && styles['overflow-ellipsis'], __animate && styles['container-fade-in']) },
31
- React.createElement("span", { className: clsx(styles.icon, __animate && styles['icon-shake']), "aria-label": iconAriaLabel, role: iconAriaLabel ? 'img' : undefined },
32
- typeToIcon(__size)[type],
33
- __display === 'inline' && React.createElement(React.Fragment, null, "\u00A0")),
36
+ React.createElement(InternalStatusIcon, { type: type, iconAriaLabel: iconAriaLabel, animate: __animate, display: __display, size: __size }),
34
37
  children)));
35
38
  }
36
39
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D;;GAEG;AACH,OAAO,oBAAoB,MAAM,0CAA0C,CAAC;AAC5E,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAGlD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAqBrC,MAAM,UAAU,GAA6E,IAAI,CAAC,EAAE,CAAC,CAAC;IACpG,KAAK,EAAE,oBAAC,YAAY,IAAC,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAE,IAAI,GAAI;IAC1D,OAAO,EAAE,oBAAC,YAAY,IAAC,IAAI,EAAC,gBAAgB,EAAC,IAAI,EAAE,IAAI,GAAI;IAC3D,OAAO,EAAE,oBAAC,YAAY,IAAC,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAE,IAAI,GAAI;IAC5D,IAAI,EAAE,oBAAC,YAAY,IAAC,IAAI,EAAC,aAAa,EAAC,IAAI,EAAE,IAAI,GAAI;IACrD,OAAO,E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I,EAAE,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,gBACnD,aAAa,EACzB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;gBAEtC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;gBACxB,SAAS,KAAK,QAAQ,IAAI,mDAAW,CACjC;YACN,QAAQ,CACJ,CACc,CACxB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\n/**\n * @awsuiSystem core\n */\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport InternalSpinner from '../spinner/internal';\nimport { StatusIndicatorProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport interface InternalStatusIndicatorProps\n extends SomeRequired<StatusIndicatorProps, 'type'>,\n InternalBaseComponentProps {\n /**\n * Play an animation on the error icon when first rendered\n */\n __animate?: boolean;\n\n /**\n * Size of icon.\n */\n __size?: IconProps.Size;\n\n /**\n * The CSS behavior of the status indicator container element.\n */\n __display?: 'inline' | 'inline-block';\n}\n\nconst typeToIcon: (size: IconProps.Size) => Record<StatusIndicatorProps.Type, JSX.Element> = size => ({\n error: <InternalIcon name=\"status-negative\" size={size} />,\n warning: <InternalIcon name=\"status-warning\" size={size} />,\n success: <InternalIcon name=\"status-positive\" size={size} />,\n info: <InternalIcon name=\"status-info\" size={size} />,\n stopped: <InternalIcon name=\"status-stopped\" size={size} />,\n pending: <InternalIcon name=\"status-pending\" size={size} />,\n 'in-progress': <InternalIcon name=\"status-in-progress\" size={size} />,\n loading: <InternalSpinner />,\n});\n\nexport default function StatusIndicator({\n type,\n children,\n iconAriaLabel,\n colorOverride,\n wrapText = true,\n nativeAttributes,\n __animate = false,\n __internalRootRef,\n __size = 'normal',\n __display = 'inline-block',\n ...rest\n}: InternalStatusIndicatorProps) {\n const baseProps = getBaseProps(rest);\n return (\n <WithNativeAttributes\n {...baseProps}\n tag=\"span\"\n componentName=\"StatusIndicator\"\n nativeAttributes={nativeAttributes}\n className={clsx(\n styles.root,\n styles[`status-${type}`],\n {\n [styles[`color-override-${colorOverride}`]]: colorOverride,\n },\n baseProps.className\n )}\n ref={__internalRootRef}\n >\n <span\n className={clsx(\n styles.container,\n styles[`display-${__display}`],\n wrapText === false && styles['overflow-ellipsis'],\n __animate && styles['container-fade-in']\n )}\n >\n <span\n className={clsx(styles.icon, __animate && styles['icon-shake'])}\n aria-label={iconAriaLabel}\n role={iconAriaLabel ? 'img' : undefined}\n >\n {typeToIcon(__size)[type]}\n {__display === 'inline' && <>&nbsp;</>}\n </span>\n {children}\n </span>\n </WithNativeAttributes>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D;;GAEG;AACH,OAAO,oBAAoB,MAAM,0CAA0C,CAAC;AAC5E,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAGlD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAqBrC,MAAM,UAAU,GAA6E,IAAI,CAAC,EAAE,CAAC,CAAC;IACpG,KAAK,EAAE,oBAAC,YAAY,IAAC,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAE,IAAI,GAAI;IAC1D,OAAO,EAAE,oBAAC,YAAY,IAAC,IAAI,EAAC,gBAAgB,EAAC,IA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,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,CACL,oBAAC,oBAAoB,oBACf,SAAS,IACb,GAAG,EAAC,MAAM,EACV,aAAa,EAAC,iBAAiB,EAC/B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,EACxB;YACE,CAAC,MAAM,CAAC,kBAAkB,aAAa,EAAE,CAAC,CAAC,EAAE,aAAa;SAC3D,EACD,SAAS,CAAC,SAAS,CACpB,EACD,GAAG,EAAE,iBAAiB;QAEtB,8BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,WAAW,SAAS,EAAE,CAAC,EAC9B,QAAQ,KAAK,KAAK,IAAI,MAAM,CAAC,mBAAmB,CAAC,EACjD,SAAS,IAAI,MAAM,CAAC,mBAAmB,CAAC,CACzC;YAED,oBAAC,kBAAkB,IACjB,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,MAAM,GACZ;YACD,QAAQ,CACJ,CACc,CACxB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\n/**\n * @awsuiSystem core\n */\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport InternalSpinner from '../spinner/internal';\nimport { StatusIndicatorProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport interface InternalStatusIndicatorProps\n extends SomeRequired<StatusIndicatorProps, 'type'>,\n InternalBaseComponentProps {\n /**\n * Play an animation on the error icon when first rendered\n */\n __animate?: boolean;\n\n /**\n * Size of icon.\n */\n __size?: IconProps.Size;\n\n /**\n * The CSS behavior of the status indicator container element.\n */\n __display?: 'inline' | 'inline-block';\n}\n\nconst typeToIcon: (size: IconProps.Size) => Record<StatusIndicatorProps.Type, JSX.Element> = size => ({\n error: <InternalIcon name=\"status-negative\" size={size} />,\n warning: <InternalIcon name=\"status-warning\" size={size} />,\n success: <InternalIcon name=\"status-positive\" size={size} />,\n info: <InternalIcon name=\"status-info\" size={size} />,\n stopped: <InternalIcon name=\"status-stopped\" size={size} />,\n pending: <InternalIcon name=\"status-pending\" size={size} />,\n 'in-progress': <InternalIcon name=\"status-in-progress\" size={size} />,\n loading: <InternalSpinner />,\n});\n\ninterface InternalStatusIconProps extends Pick<InternalStatusIndicatorProps, 'type' | 'iconAriaLabel'> {\n animate?: InternalStatusIndicatorProps['__animate'];\n size?: InternalStatusIndicatorProps['__size'];\n display?: InternalStatusIndicatorProps['__display'];\n}\n\nexport function InternalStatusIcon({\n type,\n iconAriaLabel,\n animate,\n display,\n size = 'normal',\n}: InternalStatusIconProps) {\n return (\n <span\n className={clsx(styles.icon, animate && styles['icon-shake'])}\n aria-label={iconAriaLabel}\n role={iconAriaLabel ? 'img' : undefined}\n >\n {typeToIcon(size)[type]}\n {display === 'inline' && <>&nbsp;</>}\n </span>\n );\n}\n\nexport default function StatusIndicator({\n type,\n children,\n iconAriaLabel,\n colorOverride,\n wrapText = true,\n nativeAttributes,\n __animate = false,\n __internalRootRef,\n __size = 'normal',\n __display = 'inline-block',\n ...rest\n}: InternalStatusIndicatorProps) {\n const baseProps = getBaseProps(rest);\n return (\n <WithNativeAttributes\n {...baseProps}\n tag=\"span\"\n componentName=\"StatusIndicator\"\n nativeAttributes={nativeAttributes}\n className={clsx(\n styles.root,\n styles[`status-${type}`],\n {\n [styles[`color-override-${colorOverride}`]]: colorOverride,\n },\n baseProps.className\n )}\n ref={__internalRootRef}\n >\n <span\n className={clsx(\n styles.container,\n styles[`display-${__display}`],\n wrapText === false && styles['overflow-ellipsis'],\n __animate && styles['container-fade-in']\n )}\n >\n <InternalStatusIcon\n type={type}\n iconAriaLabel={iconAriaLabel}\n animate={__animate}\n display={__display}\n size={__size}\n />\n {children}\n </span>\n </WithNativeAttributes>\n );\n}\n"]}
@@ -12,6 +12,27 @@ export interface StepsProps extends BaseComponentProps {
12
12
  * * `details` (ReactNode) - (Optional) Additional information corresponding to the step.
13
13
  */
14
14
  steps: ReadonlyArray<StepsProps.Step>;
15
+ /**
16
+ * The visual orientation of the steps (vertical or horizontal).
17
+ * By default the orientation is vertical.
18
+ *
19
+ * @awsuiSystem core
20
+ */
21
+ orientation?: StepsProps.Orientation;
22
+ /**
23
+ * Render a step. This overrides the default icon, header, and details provided by the component.
24
+ * The function is called for each step and should return an object with the following keys:
25
+ * * `header` (React.ReactNode) - Summary corresponding to the step.
26
+ * * `details` (React.ReactNode) - (Optional) Additional information corresponding to the step.
27
+ * * `icon` (React.ReactNode) - (Optional) Replaces the standard step icon from the status indicator.
28
+ *
29
+ * @awsuiSystem core
30
+ */
31
+ renderStep?: (step: StepsProps.Step) => {
32
+ header: React.ReactNode;
33
+ details?: React.ReactNode;
34
+ icon?: React.ReactNode;
35
+ };
15
36
  /**
16
37
  * Provides an `aria-label` to the progress steps container.
17
38
  * Don't use `ariaLabel` and `ariaLabelledby` at the same time.
@@ -36,5 +57,6 @@ export declare namespace StepsProps {
36
57
  header: React.ReactNode;
37
58
  details?: React.ReactNode;
38
59
  }
60
+ type Orientation = 'vertical' | 'horizontal';
39
61
  }
40
62
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/steps/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,MAAM,W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AC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,yBAAiB,UAAU,CAAC;IAC1B,KAAY,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC;IAE/C,UAAiB,IAAI;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC3B;IAED,KAAY,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;CACrD"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/steps/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { StatusIndicatorProps } from '../status-indicator/interfaces';\n\nexport interface StepsProps extends BaseComponentProps {\n /**\n * An array of individual steps\n *\n * Each step definition has the following properties:\n * * `status` (string) - Status of the step corresponding to a status indicator.\n * * `statusIconAriaLabel` - (string) - (Optional) Alternative text for the status icon.\n * * `header` (ReactNode) - Summary corresponding to the step.\n * * `details` (ReactNode) - (Optional) Additional information corresponding to the step.\n */\n steps: ReadonlyArray<StepsProps.Step>;\n /**\n * Provides an `aria-label` to the progress steps container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n /**\n * Sets the `aria-labelledby` property on the progress steps container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n /**\n * Sets the `aria-describedby` property on the progress steps container.\n */\n ariaDescribedby?: string;\n}\n\nexport namespace StepsProps {\n export type Status = StatusIndicatorProps.Type;\n\n export interface Step {\n status: Status;\n statusIconAriaLabel?: string;\n header: React.ReactNode;\n details?: React.ReactNode;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/steps/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { StatusIndicatorProps } from '../status-indicator/interfaces';\n\nexport interface StepsProps extends BaseComponentProps {\n /**\n * An array of individual steps\n *\n * Each step definition has the following properties:\n * * `status` (string) - Status of the step corresponding to a status indicator.\n * * `statusIconAriaLabel` - (string) - (Optional) Alternative text for the status icon.\n * * `header` (ReactNode) - Summary corresponding to the step.\n * * `details` (ReactNode) - (Optional) Additional information corresponding to the step.\n */\n steps: ReadonlyArray<StepsProps.Step>;\n /**\n * The visual orientation of the steps (vertical or horizontal).\n * By default the orientation is vertical.\n *\n * @awsuiSystem core\n */\n orientation?: StepsProps.Orientation;\n /**\n * Render a step. This overrides the default icon, header, and details provided by the component.\n * The function is called for each step and should return an object with the following keys:\n * * `header` (React.ReactNode) - Summary corresponding to the step.\n * * `details` (React.ReactNode) - (Optional) Additional information corresponding to the step.\n * * `icon` (React.ReactNode) - (Optional) Replaces the standard step icon from the status indicator.\n *\n * @awsuiSystem core\n */\n renderStep?: (step: StepsProps.Step) => {\n header: React.ReactNode;\n details?: React.ReactNode;\n icon?: React.ReactNode;\n };\n /**\n * Provides an `aria-label` to the progress steps container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n /**\n * Sets the `aria-labelledby` property on the progress steps container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n /**\n * Sets the `aria-describedby` property on the progress steps container.\n */\n ariaDescribedby?: string;\n}\n\nexport namespace StepsProps {\n export type Status = StatusIndicatorProps.Type;\n\n export interface Step {\n status: Status;\n statusIconAriaLabel?: string;\n header: React.ReactNode;\n details?: React.ReactNode;\n }\n\n export type Orientation = 'vertical' | 'horizontal';\n}\n"]}
@@ -3,6 +3,6 @@ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component
3
3
  import { SomeRequired } from '../internal/types';
4
4
  import { StepsProps } from './interfaces';
5
5
  type InternalStepsProps = SomeRequired<StepsProps, 'steps'> & InternalBaseComponentProps;
6
- declare const InternalSteps: ({ steps, ariaLabel, ariaLabelledby, ariaDescribedby, __internalRootRef, ...props }: InternalStepsProps) => JSX.Element;
6
+ declare const InternalSteps: ({ steps, orientation, renderStep, ariaLabel, ariaLabelledby, ariaDescribedby, __internalRootRef, ...props }: InternalStepsProps) => JSX.Element;
7
7
  export default InternalSteps;
8
8
  //# sourceMappingURL=internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,0BAA0B,CAAC;AAgBzF,QAAA,MAAM,aAAa,uFAOhB,kBAAkB,gBAqBpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,0BAA0B,CAAC;AA2EzF,QAAA,MAAM,aAAa,gHAShB,kBAAkB,gBA8BpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -3,19 +3,43 @@ import { __rest } from "tslib";
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
- import StatusIndicator from '../status-indicator/internal';
6
+ import InternalBox from '../box/internal';
7
+ import InternalStatusIndicator, { InternalStatusIcon } from '../status-indicator/internal';
7
8
  import styles from './styles.css.js';
8
- const InternalStep = ({ status, statusIconAriaLabel, header, details }) => {
9
+ const statusToColor = {
10
+ error: 'text-status-error',
11
+ warning: 'text-status-warning',
12
+ success: 'text-status-success',
13
+ info: 'text-status-info',
14
+ stopped: 'text-status-inactive',
15
+ pending: 'text-status-inactive',
16
+ 'in-progress': 'text-status-inactive',
17
+ loading: 'text-status-inactive',
18
+ };
19
+ const CustomStep = ({ step, orientation, renderStep, }) => {
20
+ const { status, statusIconAriaLabel } = step;
21
+ const { header, details, icon } = renderStep(step);
9
22
  return (React.createElement("li", { className: styles.container },
10
23
  React.createElement("div", { className: styles.header },
11
- React.createElement(StatusIndicator, { type: status, iconAriaLabel: statusIconAriaLabel }, header)),
12
- React.createElement("hr", { className: styles.connector, role: "none" }),
24
+ icon ? icon : React.createElement(InternalStatusIcon, { type: status, iconAriaLabel: statusIconAriaLabel }),
25
+ orientation === 'vertical' ? header : React.createElement("hr", { className: styles.connector, role: "none" })),
26
+ orientation === 'vertical' ? (React.createElement("hr", { className: styles.connector, role: "none" })) : (React.createElement("div", { className: styles['horizontal-header'] }, header)),
27
+ details && React.createElement("div", { className: styles.details }, details)));
28
+ };
29
+ const InternalStep = ({ status, statusIconAriaLabel, header, details, orientation, }) => {
30
+ return (React.createElement("li", { className: styles.container },
31
+ React.createElement("div", { className: styles.header }, orientation === 'vertical' ? (React.createElement(InternalStatusIndicator, { type: status, iconAriaLabel: statusIconAriaLabel }, header)) : (React.createElement(React.Fragment, null,
32
+ React.createElement(InternalBox, { color: statusToColor[status] },
33
+ React.createElement(InternalStatusIcon, { type: status, iconAriaLabel: statusIconAriaLabel })),
34
+ React.createElement("hr", { className: styles.connector, role: "none" })))),
35
+ orientation === 'vertical' ? (React.createElement("hr", { className: styles.connector, role: "none" })) : (React.createElement("div", { className: styles['horizontal-header'] },
36
+ React.createElement(InternalBox, { color: statusToColor[status] }, header))),
13
37
  details && React.createElement("div", { className: styles.details }, details)));
14
38
  };
15
39
  const InternalSteps = (_a) => {
16
- var { steps, ariaLabel, ariaLabelledby, ariaDescribedby, __internalRootRef } = _a, props = __rest(_a, ["steps", "ariaLabel", "ariaLabelledby", "ariaDescribedby", "__internalRootRef"]);
17
- return (React.createElement("div", Object.assign({}, props, { className: clsx(styles.root, props.className), ref: __internalRootRef }),
18
- React.createElement("ol", { className: styles.list, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby }, steps.map((step, index) => (React.createElement(InternalStep, { key: index, status: step.status, statusIconAriaLabel: step.statusIconAriaLabel, header: step.header, details: step.details }))))));
40
+ var { steps, orientation = 'vertical', renderStep, ariaLabel, ariaLabelledby, ariaDescribedby, __internalRootRef } = _a, props = __rest(_a, ["steps", "orientation", "renderStep", "ariaLabel", "ariaLabelledby", "ariaDescribedby", "__internalRootRef"]);
41
+ return (React.createElement("div", Object.assign({}, props, { className: clsx(styles.root, props.className, orientation === 'horizontal' ? styles.horizontal : styles.vertical), ref: __internalRootRef }),
42
+ React.createElement("ol", { className: styles.list, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby }, steps.map((step, index) => renderStep ? (React.createElement(CustomStep, { key: index, orientation: orientation, step: step, renderStep: renderStep })) : (React.createElement(InternalStep, { key: index, status: step.status, statusIconAriaLabel: step.statusIconAriaLabel, header: step.header, details: step.details, orientation: orientation }))))));
19
43
  };
20
44
  export default InternalSteps;
21
45
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings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IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,GACrB,CACH,CAAC,CACC,CACD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport StatusIndicator from '../status-indicator/internal';\nimport { StepsProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalStepsProps = SomeRequired<StepsProps, 'steps'> & InternalBaseComponentProps;\n\nconst InternalStep = ({ status, statusIconAriaLabel, header, details }: StepsProps.Step) => {\n return (\n <li className={styles.container}>\n <div className={styles.header}>\n <StatusIndicator type={status} iconAriaLabel={statusIconAriaLabel}>\n {header}\n </StatusIndicator>\n </div>\n <hr className={styles.connector} role=\"none\" />\n {details && <div className={styles.details}>{details}</div>}\n </li>\n );\n};\n\nconst InternalSteps = ({\n steps,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n __internalRootRef,\n ...props\n}: InternalStepsProps) => {\n return (\n <div {...props} className={clsx(styles.root, props.className)} ref={__internalRootRef}>\n <ol\n className={styles.list}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n >\n {steps.map((step, index) => (\n <InternalStep\n key={index}\n status={step.status}\n statusIconAriaLabel={step.statusIconAriaLabel}\n header={step.header}\n details={step.details}\n />\n ))}\n </ol>\n </div>\n );\n};\n\nexport default InternalSteps;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,WAAW,MAAM,iBAAiB,C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StB,CADS;IAER,OAAO,CACL,6CACM,KAAK,IACT,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EACjH,GAAG,EAAE,iBAAiB;QAEtB,4BACE,SAAS,EAAE,MAAM,CAAC,IAAI,gBACV,SAAS,qBACJ,cAAc,sBACb,eAAe,IAEhC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACzB,UAAU,CAAC,CAAC,CAAC,CACX,oBAAC,UAAU,IAAC,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,GAAI,CACzF,CAAC,CAAC,CAAC,CACF,oBAAC,YAAY,IACX,GAAG,EAAE,KAAK,EACV,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAC7C,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,WAAW,EAAE,WAAW,GACxB,CACH,CACF,CACE,CACD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { BoxProps } from '../box/interfaces';\nimport InternalBox from '../box/internal';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport InternalStatusIndicator, { InternalStatusIcon } from '../status-indicator/internal';\nimport { StepsProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalStepsProps = SomeRequired<StepsProps, 'steps'> & InternalBaseComponentProps;\n\nconst statusToColor: Record<StepsProps.Status, BoxProps.Color> = {\n error: 'text-status-error',\n warning: 'text-status-warning',\n success: 'text-status-success',\n info: 'text-status-info',\n stopped: 'text-status-inactive',\n pending: 'text-status-inactive',\n 'in-progress': 'text-status-inactive',\n loading: 'text-status-inactive',\n};\n\nconst CustomStep = ({\n step,\n orientation,\n renderStep,\n}: {\n step: StepsProps.Step;\n orientation: StepsProps.Orientation;\n renderStep: Required<StepsProps>['renderStep'];\n}) => {\n const { status, statusIconAriaLabel } = step;\n const { header, details, icon } = renderStep(step);\n return (\n <li className={styles.container}>\n <div className={styles.header}>\n {icon ? icon : <InternalStatusIcon type={status} iconAriaLabel={statusIconAriaLabel} />}\n {orientation === 'vertical' ? header : <hr className={styles.connector} role=\"none\" />}\n </div>\n {orientation === 'vertical' ? (\n <hr className={styles.connector} role=\"none\" />\n ) : (\n <div className={styles['horizontal-header']}>{header}</div>\n )}\n {details && <div className={styles.details}>{details}</div>}\n </li>\n );\n};\n\nconst InternalStep = ({\n status,\n statusIconAriaLabel,\n header,\n details,\n orientation,\n}: StepsProps.Step & { orientation: StepsProps.Orientation }) => {\n return (\n <li className={styles.container}>\n <div className={styles.header}>\n {orientation === 'vertical' ? (\n <InternalStatusIndicator type={status} iconAriaLabel={statusIconAriaLabel}>\n {header}\n </InternalStatusIndicator>\n ) : (\n <>\n <InternalBox color={statusToColor[status]}>\n <InternalStatusIcon type={status} iconAriaLabel={statusIconAriaLabel} />\n </InternalBox>\n <hr className={styles.connector} role=\"none\" />\n </>\n )}\n </div>\n {orientation === 'vertical' ? (\n <hr className={styles.connector} role=\"none\" />\n ) : (\n <div className={styles['horizontal-header']}>\n <InternalBox color={statusToColor[status]}>{header}</InternalBox>\n </div>\n )}\n {details && <div className={styles.details}>{details}</div>}\n </li>\n );\n};\n\nconst InternalSteps = ({\n steps,\n orientation = 'vertical',\n renderStep,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n __internalRootRef,\n ...props\n}: InternalStepsProps) => {\n return (\n <div\n {...props}\n className={clsx(styles.root, props.className, orientation === 'horizontal' ? styles.horizontal : styles.vertical)}\n ref={__internalRootRef}\n >\n <ol\n className={styles.list}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n >\n {steps.map((step, index) =>\n renderStep ? (\n <CustomStep key={index} orientation={orientation} step={step} renderStep={renderStep} />\n ) : (\n <InternalStep\n key={index}\n status={step.status}\n statusIconAriaLabel={step.statusIconAriaLabel}\n header={step.header}\n details={step.details}\n orientation={orientation}\n />\n )\n )}\n </ol>\n </div>\n );\n};\n\nexport default InternalSteps;\n"]}
@@ -1,11 +1,14 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_gxp9y_1ss9r_181",
5
- "list": "awsui_list_gxp9y_1ss9r_212",
6
- "container": "awsui_container_gxp9y_1ss9r_217",
7
- "header": "awsui_header_gxp9y_1ss9r_222",
8
- "details": "awsui_details_gxp9y_1ss9r_226",
9
- "connector": "awsui_connector_gxp9y_1ss9r_232"
4
+ "root": "awsui_root_gxp9y_1804k_181",
5
+ "list": "awsui_list_gxp9y_1804k_214",
6
+ "container": "awsui_container_gxp9y_1804k_219",
7
+ "header": "awsui_header_gxp9y_1804k_224",
8
+ "details": "awsui_details_gxp9y_1804k_230",
9
+ "connector": "awsui_connector_gxp9y_1804k_236",
10
+ "custom": "awsui_custom_gxp9y_1804k_252",
11
+ "horizontal": "awsui_horizontal_gxp9y_1804k_256",
12
+ "horizontal-header": "awsui_horizontal-header_gxp9y_1804k_288"
10
13
  };
11
14
 
@@ -178,7 +178,7 @@
178
178
  */
179
179
  /* Style used for links in slots/components that are text heavy, to help links stand out among
180
180
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
181
- .awsui_root_gxp9y_1ss9r_181:not(#\9) {
181
+ .awsui_root_gxp9y_1804k_181:not(#\9) {
182
182
  border-collapse: separate;
183
183
  border-spacing: 0;
184
184
  box-sizing: border-box;
@@ -208,28 +208,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
208
208
  font-family: var(--font-family-base-8x5ngf, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
209
209
  -webkit-font-smoothing: auto;
210
210
  -moz-osx-font-smoothing: auto;
211
+ min-inline-size: 0;
212
+ word-break: break-word;
211
213
  }
212
- .awsui_root_gxp9y_1ss9r_181 > .awsui_list_gxp9y_1ss9r_212:not(#\9) {
214
+ .awsui_root_gxp9y_1804k_181 > .awsui_list_gxp9y_1804k_214:not(#\9) {
213
215
  list-style: none;
214
216
  padding-inline-start: 0;
215
217
  margin-block: 0;
216
218
  }
217
- .awsui_root_gxp9y_1ss9r_181 > .awsui_list_gxp9y_1ss9r_212 > .awsui_container_gxp9y_1ss9r_217:not(#\9) {
219
+ .awsui_root_gxp9y_1804k_181 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219:not(#\9) {
218
220
  display: grid;
219
221
  grid-template-columns: var(--space-static-l-ig026c, 20px) 1fr;
220
222
  grid-template-rows: minmax(var(--space-static-l-ig026c, 20px), auto);
221
223
  }
222
- .awsui_root_gxp9y_1ss9r_181 > .awsui_list_gxp9y_1ss9r_212 > .awsui_container_gxp9y_1ss9r_217 > .awsui_header_gxp9y_1ss9r_222:not(#\9) {
224
+ .awsui_root_gxp9y_1804k_181 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219 > .awsui_header_gxp9y_1804k_224:not(#\9) {
225
+ display: flex;
226
+ gap: var(--space-xxs-jnczic, 4px);
223
227
  grid-row: 1;
224
228
  grid-column: 1/span 2;
225
229
  }
226
- .awsui_root_gxp9y_1ss9r_181 > .awsui_list_gxp9y_1ss9r_212 > .awsui_container_gxp9y_1ss9r_217 > .awsui_details_gxp9y_1ss9r_226:not(#\9) {
230
+ .awsui_root_gxp9y_1804k_181 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219 > .awsui_details_gxp9y_1804k_230:not(#\9) {
227
231
  align-items: center;
228
232
  grid-row: 2;
229
233
  grid-column: 2;
230
234
  margin-block-end: var(--space-static-xs-4gq40t, 8px);
231
235
  }
232
- .awsui_root_gxp9y_1ss9r_181 > .awsui_list_gxp9y_1ss9r_212 > .awsui_container_gxp9y_1ss9r_217 > .awsui_connector_gxp9y_1ss9r_232:not(#\9) {
236
+ .awsui_root_gxp9y_1804k_181 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219 > .awsui_connector_gxp9y_1804k_236:not(#\9) {
233
237
  grid-row: 2;
234
238
  grid-column: 1;
235
239
  background-color: var(--color-border-divider-default-ipvpev, #eaeded);
@@ -242,6 +246,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
242
246
  position: relative;
243
247
  inset-inline-end: var(--space-static-xxxs-zckw10, 2px);
244
248
  }
245
- .awsui_root_gxp9y_1ss9r_181 > .awsui_list_gxp9y_1ss9r_212 > :not(#\9):last-of-type > .awsui_connector_gxp9y_1ss9r_232 {
249
+ .awsui_root_gxp9y_1804k_181 > .awsui_list_gxp9y_1804k_214 > :not(#\9):last-of-type > .awsui_connector_gxp9y_1804k_236 {
250
+ display: none;
251
+ }
252
+ .awsui_root_gxp9y_1804k_181 > .awsui_list_gxp9y_1804k_214.awsui_custom_gxp9y_1804k_252 > .awsui_details_gxp9y_1804k_230:not(#\9) {
253
+ margin-block-end: 0;
254
+ }
255
+
256
+ .awsui_horizontal_gxp9y_1804k_256 > .awsui_list_gxp9y_1804k_214:not(#\9) {
257
+ display: grid;
258
+ align-items: flex-start;
259
+ grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
260
+ grid-auto-flow: column;
261
+ }
262
+ .awsui_horizontal_gxp9y_1804k_256 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219:not(#\9) {
263
+ display: grid;
264
+ grid-template-columns: var(--space-static-l-ig026c, 20px) 1fr;
265
+ grid-template-rows: minmax(var(--space-static-l-ig026c, 20px), auto);
266
+ align-items: center;
267
+ }
268
+ .awsui_horizontal_gxp9y_1804k_256 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219 > .awsui_header_gxp9y_1804k_224:not(#\9) {
269
+ display: flex;
270
+ grid-row: 1;
271
+ grid-column: 1/span 2;
272
+ align-items: center;
273
+ }
274
+ .awsui_horizontal_gxp9y_1804k_256 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219 > .awsui_header_gxp9y_1804k_224 > .awsui_connector_gxp9y_1804k_236:not(#\9) {
275
+ display: block;
276
+ flex: 1;
277
+ background-color: var(--color-border-divider-default-ipvpev, #eaeded);
278
+ margin-block: 0;
279
+ border-block: 0;
280
+ border-inline: 0;
281
+ min-block-size: 0;
282
+ inset-inline-end: 0;
283
+ block-size: var(--border-divider-list-width-8ggz94, 1px);
284
+ inline-size: auto;
285
+ min-inline-size: var(--space-static-xs-4gq40t, 8px);
286
+ margin-inline-end: var(--space-static-xxs-0cgyf1, 4px);
287
+ }
288
+ .awsui_horizontal_gxp9y_1804k_256 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219 > .awsui_horizontal-header_gxp9y_1804k_288:not(#\9) {
289
+ grid-row: 2;
290
+ grid-column: 1/span 3;
291
+ }
292
+ .awsui_horizontal_gxp9y_1804k_256 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219 > .awsui_details_gxp9y_1804k_230:not(#\9) {
293
+ grid-row: 3;
294
+ grid-column: 1/span 3;
295
+ }
296
+ .awsui_horizontal_gxp9y_1804k_256 > .awsui_list_gxp9y_1804k_214 > .awsui_container_gxp9y_1804k_219:not(#\9):last-child > .awsui_header_gxp9y_1804k_224 > .awsui_connector_gxp9y_1804k_236 {
246
297
  display: none;
247
298
  }
@@ -2,11 +2,14 @@
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_gxp9y_1ss9r_181",
6
- "list": "awsui_list_gxp9y_1ss9r_212",
7
- "container": "awsui_container_gxp9y_1ss9r_217",
8
- "header": "awsui_header_gxp9y_1ss9r_222",
9
- "details": "awsui_details_gxp9y_1ss9r_226",
10
- "connector": "awsui_connector_gxp9y_1ss9r_232"
5
+ "root": "awsui_root_gxp9y_1804k_181",
6
+ "list": "awsui_list_gxp9y_1804k_214",
7
+ "container": "awsui_container_gxp9y_1804k_219",
8
+ "header": "awsui_header_gxp9y_1804k_224",
9
+ "details": "awsui_details_gxp9y_1804k_230",
10
+ "connector": "awsui_connector_gxp9y_1804k_236",
11
+ "custom": "awsui_custom_gxp9y_1804k_252",
12
+ "horizontal": "awsui_horizontal_gxp9y_1804k_256",
13
+ "horizontal-header": "awsui_horizontal-header_gxp9y_1804k_288"
11
14
  };
12
15
 
@@ -1,8 +1,8 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_brdst_1danq_145",
5
- "loading": "awsui_loading_brdst_1danq_149",
6
- "undo-button": "awsui_undo-button_brdst_1danq_153"
4
+ "root": "awsui_root_brdst_1u55z_145",
5
+ "loading": "awsui_loading_brdst_1u55z_149",
6
+ "undo-button": "awsui_undo-button_brdst_1u55z_153"
7
7
  };
8
8