@cloudscape-design/components 3.0.323 → 3.0.325

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 (238) hide show
  1. package/alert/styles.css.js +19 -19
  2. package/alert/styles.scoped.css +33 -33
  3. package/alert/styles.selectors.js +19 -19
  4. package/annotation-context/annotation/styles.css.js +24 -24
  5. package/annotation-context/annotation/styles.scoped.css +30 -30
  6. package/annotation-context/annotation/styles.selectors.js +24 -24
  7. package/app-layout/styles.css.js +17 -17
  8. package/app-layout/styles.scoped.css +21 -21
  9. package/app-layout/styles.selectors.js +17 -17
  10. package/app-layout/visual-refresh/styles.css.js +69 -69
  11. package/app-layout/visual-refresh/styles.scoped.css +171 -171
  12. package/app-layout/visual-refresh/styles.selectors.js +69 -69
  13. package/area-chart/styles.css.js +13 -13
  14. package/area-chart/styles.scoped.css +17 -17
  15. package/area-chart/styles.selectors.js +13 -13
  16. package/attribute-editor/styles.css.js +14 -14
  17. package/attribute-editor/styles.scoped.css +25 -25
  18. package/attribute-editor/styles.selectors.js +14 -14
  19. package/badge/styles.css.js +5 -5
  20. package/badge/styles.scoped.css +6 -6
  21. package/badge/styles.selectors.js +5 -5
  22. package/box/styles.css.js +189 -189
  23. package/box/styles.scoped.css +236 -236
  24. package/box/styles.selectors.js +189 -189
  25. package/breadcrumb-group/styles.css.js +7 -7
  26. package/breadcrumb-group/styles.scoped.css +14 -14
  27. package/breadcrumb-group/styles.selectors.js +7 -7
  28. package/button/styles.css.js +19 -19
  29. package/button/styles.scoped.css +138 -138
  30. package/button/styles.selectors.js +19 -19
  31. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  32. package/button-dropdown/mobile-expandable-group/styles.scoped.css +6 -6
  33. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  34. package/calendar/styles.css.js +18 -18
  35. package/calendar/styles.scoped.css +39 -39
  36. package/calendar/styles.selectors.js +18 -18
  37. package/cards/styles.css.js +38 -38
  38. package/cards/styles.scoped.css +55 -55
  39. package/cards/styles.selectors.js +38 -38
  40. package/checkbox/styles.css.js +3 -3
  41. package/checkbox/styles.scoped.css +6 -6
  42. package/checkbox/styles.selectors.js +3 -3
  43. package/code-editor/styles.css.js +32 -32
  44. package/code-editor/styles.scoped.css +112 -112
  45. package/code-editor/styles.selectors.js +32 -32
  46. package/collection-preferences/content-display/styles.css.js +11 -11
  47. package/collection-preferences/content-display/styles.scoped.css +18 -18
  48. package/collection-preferences/content-display/styles.selectors.js +11 -11
  49. package/collection-preferences/styles.css.js +37 -37
  50. package/collection-preferences/styles.scoped.css +45 -45
  51. package/collection-preferences/styles.selectors.js +37 -37
  52. package/column-layout/styles.css.js +13 -13
  53. package/column-layout/styles.scoped.css +44 -44
  54. package/column-layout/styles.selectors.js +13 -13
  55. package/container/styles.css.js +28 -28
  56. package/container/styles.scoped.css +53 -53
  57. package/container/styles.selectors.js +28 -28
  58. package/content-layout/styles.css.js +7 -7
  59. package/content-layout/styles.scoped.css +12 -12
  60. package/content-layout/styles.selectors.js +7 -7
  61. package/date-picker/styles.css.js +7 -7
  62. package/date-picker/styles.scoped.css +10 -10
  63. package/date-picker/styles.selectors.js +7 -7
  64. package/date-range-picker/styles.css.js +38 -38
  65. package/date-range-picker/styles.scoped.css +48 -48
  66. package/date-range-picker/styles.selectors.js +38 -38
  67. package/expandable-section/styles.css.js +31 -31
  68. package/expandable-section/styles.scoped.css +56 -56
  69. package/expandable-section/styles.selectors.js +31 -31
  70. package/flashbar/styles.css.js +46 -46
  71. package/flashbar/styles.scoped.css +147 -147
  72. package/flashbar/styles.selectors.js +46 -46
  73. package/form/styles.css.js +9 -9
  74. package/form/styles.scoped.css +9 -9
  75. package/form/styles.selectors.js +9 -9
  76. package/form-field/styles.css.js +19 -19
  77. package/form-field/styles.scoped.css +30 -30
  78. package/form-field/styles.selectors.js +19 -19
  79. package/grid/styles.css.js +53 -53
  80. package/grid/styles.scoped.css +55 -55
  81. package/grid/styles.selectors.js +53 -53
  82. package/header/styles.css.js +44 -44
  83. package/header/styles.scoped.css +48 -48
  84. package/header/styles.selectors.js +44 -44
  85. package/help-panel/styles.css.js +4 -4
  86. package/help-panel/styles.scoped.css +67 -67
  87. package/help-panel/styles.selectors.js +4 -4
  88. package/input/styles.css.js +12 -12
  89. package/input/styles.scoped.css +32 -32
  90. package/input/styles.selectors.js +12 -12
  91. package/internal/base-component/styles.scoped.css +18 -15
  92. package/internal/components/button-trigger/styles.css.js +9 -9
  93. package/internal/components/button-trigger/styles.scoped.css +24 -24
  94. package/internal/components/button-trigger/styles.selectors.js +9 -9
  95. package/internal/components/cartesian-chart/styles.css.js +21 -21
  96. package/internal/components/cartesian-chart/styles.scoped.css +25 -25
  97. package/internal/components/cartesian-chart/styles.selectors.js +21 -21
  98. package/internal/components/chart-filter/styles.css.js +3 -3
  99. package/internal/components/chart-filter/styles.scoped.css +4 -4
  100. package/internal/components/chart-filter/styles.selectors.js +3 -3
  101. package/internal/components/chart-legend/styles.css.js +6 -6
  102. package/internal/components/chart-legend/styles.scoped.css +16 -16
  103. package/internal/components/chart-legend/styles.selectors.js +6 -6
  104. package/internal/components/chart-popover/styles.css.js +3 -3
  105. package/internal/components/chart-popover/styles.scoped.css +4 -4
  106. package/internal/components/chart-popover/styles.selectors.js +3 -3
  107. package/internal/components/chart-series-details/styles.css.js +5 -5
  108. package/internal/components/chart-series-details/styles.scoped.css +10 -10
  109. package/internal/components/chart-series-details/styles.selectors.js +5 -5
  110. package/internal/components/chart-series-marker/styles.css.js +5 -5
  111. package/internal/components/chart-series-marker/styles.scoped.css +8 -8
  112. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  113. package/internal/components/dark-ribbon/styles.css.js +2 -2
  114. package/internal/components/dark-ribbon/styles.scoped.css +3 -3
  115. package/internal/components/dark-ribbon/styles.selectors.js +2 -2
  116. package/internal/components/dropdown/styles.css.js +20 -20
  117. package/internal/components/dropdown/styles.scoped.css +36 -36
  118. package/internal/components/dropdown/styles.selectors.js +20 -20
  119. package/internal/components/dropdown-footer/styles.css.js +3 -3
  120. package/internal/components/dropdown-footer/styles.scoped.css +4 -4
  121. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  122. package/internal/components/dropdown-status/styles.css.js +2 -2
  123. package/internal/components/dropdown-status/styles.scoped.css +3 -3
  124. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  125. package/internal/components/filtering-token/styles.css.js +7 -7
  126. package/internal/components/filtering-token/styles.scoped.css +14 -14
  127. package/internal/components/filtering-token/styles.selectors.js +7 -7
  128. package/internal/components/menu-dropdown/styles.css.js +7 -7
  129. package/internal/components/menu-dropdown/styles.scoped.css +14 -14
  130. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  131. package/internal/components/option/styles.css.js +17 -17
  132. package/internal/components/option/styles.scoped.css +30 -30
  133. package/internal/components/option/styles.selectors.js +17 -17
  134. package/internal/components/options-list/styles.css.js +2 -2
  135. package/internal/components/options-list/styles.scoped.css +3 -3
  136. package/internal/components/options-list/styles.selectors.js +2 -2
  137. package/internal/components/selectable-item/styles.css.js +16 -16
  138. package/internal/components/selectable-item/styles.scoped.css +29 -29
  139. package/internal/components/selectable-item/styles.selectors.js +16 -16
  140. package/internal/components/token-list/styles.css.js +9 -9
  141. package/internal/components/token-list/styles.scoped.css +21 -21
  142. package/internal/components/token-list/styles.selectors.js +9 -9
  143. package/internal/environment.js +1 -1
  144. package/internal/generated/styles/tokens.js +1 -1
  145. package/internal/generated/theming/index.cjs +9 -9
  146. package/internal/generated/theming/index.js +9 -9
  147. package/internal/manifest.json +1 -1
  148. package/link/styles.css.js +20 -20
  149. package/link/styles.scoped.css +72 -72
  150. package/link/styles.selectors.js +20 -20
  151. package/mixed-line-bar-chart/styles.css.js +19 -19
  152. package/mixed-line-bar-chart/styles.scoped.css +27 -27
  153. package/mixed-line-bar-chart/styles.selectors.js +19 -19
  154. package/modal/styles.css.js +23 -23
  155. package/modal/styles.scoped.css +40 -40
  156. package/modal/styles.selectors.js +23 -23
  157. package/multiselect/styles.css.js +1 -1
  158. package/multiselect/styles.scoped.css +2 -2
  159. package/multiselect/styles.selectors.js +1 -1
  160. package/package.json +1 -1
  161. package/pagination/styles.css.js +9 -9
  162. package/pagination/styles.scoped.css +24 -24
  163. package/pagination/styles.selectors.js +9 -9
  164. package/pie-chart/styles.css.js +27 -27
  165. package/pie-chart/styles.scoped.css +44 -44
  166. package/pie-chart/styles.selectors.js +27 -27
  167. package/popover/styles.css.js +50 -50
  168. package/popover/styles.scoped.css +66 -66
  169. package/popover/styles.selectors.js +50 -50
  170. package/progress-bar/styles.css.js +18 -18
  171. package/progress-bar/styles.scoped.css +33 -33
  172. package/progress-bar/styles.selectors.js +18 -18
  173. package/property-filter/styles.css.js +29 -29
  174. package/property-filter/styles.scoped.css +32 -32
  175. package/property-filter/styles.selectors.js +29 -29
  176. package/radio-group/styles.css.js +9 -9
  177. package/radio-group/styles.scoped.css +16 -16
  178. package/radio-group/styles.selectors.js +9 -9
  179. package/segmented-control/styles.css.js +14 -14
  180. package/segmented-control/styles.scoped.css +34 -34
  181. package/segmented-control/styles.selectors.js +14 -14
  182. package/select/styles.css.js +1 -1
  183. package/select/styles.scoped.css +2 -2
  184. package/select/styles.selectors.js +1 -1
  185. package/side-navigation/styles.css.js +27 -27
  186. package/side-navigation/styles.scoped.css +38 -38
  187. package/side-navigation/styles.selectors.js +27 -27
  188. package/split-panel/styles.css.js +56 -56
  189. package/split-panel/styles.scoped.css +79 -79
  190. package/split-panel/styles.selectors.js +56 -56
  191. package/status-indicator/styles.css.js +20 -20
  192. package/status-indicator/styles.scoped.css +27 -27
  193. package/status-indicator/styles.selectors.js +20 -20
  194. package/table/styles.css.js +34 -34
  195. package/table/styles.scoped.css +44 -44
  196. package/table/styles.selectors.js +34 -34
  197. package/tabs/styles.css.js +21 -21
  198. package/tabs/styles.scoped.css +39 -39
  199. package/tabs/styles.selectors.js +21 -21
  200. package/text-content/styles.css.js +1 -1
  201. package/text-content/styles.scoped.css +61 -61
  202. package/text-content/styles.selectors.js +1 -1
  203. package/text-filter/styles.css.js +3 -3
  204. package/text-filter/styles.scoped.css +4 -4
  205. package/text-filter/styles.selectors.js +3 -3
  206. package/textarea/styles.css.js +4 -4
  207. package/textarea/styles.scoped.css +14 -14
  208. package/textarea/styles.selectors.js +4 -4
  209. package/tiles/styles.css.js +28 -28
  210. package/tiles/styles.scoped.css +70 -70
  211. package/tiles/styles.selectors.js +28 -28
  212. package/toggle/styles.css.js +8 -8
  213. package/toggle/styles.scoped.css +14 -14
  214. package/toggle/styles.selectors.js +8 -8
  215. package/token-group/styles.css.js +7 -7
  216. package/token-group/styles.scoped.css +18 -18
  217. package/token-group/styles.selectors.js +7 -7
  218. package/top-navigation/1.0-beta/styles.css.js +25 -25
  219. package/top-navigation/1.0-beta/styles.scoped.css +43 -43
  220. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  221. package/top-navigation/styles.css.js +47 -47
  222. package/top-navigation/styles.scoped.css +69 -69
  223. package/top-navigation/styles.selectors.js +47 -47
  224. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  225. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +22 -22
  226. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  227. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  228. package/tutorial-panel/components/tutorial-list/styles.scoped.css +30 -30
  229. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  230. package/tutorial-panel/styles.css.js +1 -1
  231. package/tutorial-panel/styles.scoped.css +2 -2
  232. package/tutorial-panel/styles.selectors.js +1 -1
  233. package/wizard/internal.d.ts.map +1 -1
  234. package/wizard/internal.js +1 -1
  235. package/wizard/internal.js.map +1 -1
  236. package/wizard/styles.css.js +31 -31
  237. package/wizard/styles.scoped.css +66 -66
  238. package/wizard/styles.selectors.js +31 -31
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_tutorial-list_1u70p_1s8ac_93:not(#\9) {
93
+ .awsui_tutorial-list_1u70p_1v9rp_93:not(#\9) {
94
94
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
95
95
  border-collapse: separate;
96
96
  border-spacing: 0;
@@ -122,7 +122,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
122
122
  box-sizing: border-box;
123
123
  font-size: var(--font-body-m-size-7dign1, 14px);
124
124
  line-height: var(--font-body-m-line-height-rfgrp9, 22px);
125
- color: var(--color-text-body-default-mmvcvg, #000716);
125
+ color: var(--color-text-body-default-su7kuo, #000716);
126
126
  font-weight: 400;
127
127
  font-family: var(--font-family-base-wn913o, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
128
128
  -webkit-font-smoothing: auto;
@@ -131,22 +131,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
131
131
  margin: 0;
132
132
  }
133
133
 
134
- .awsui_tutorial-title_1u70p_1s8ac_108:not(#\9) {
134
+ .awsui_tutorial-title_1u70p_1v9rp_108:not(#\9) {
135
135
  display: flex;
136
136
  align-items: flex-start;
137
137
  margin-left: calc(-1 * var(--space-xxs-ja5cp8, 4px));
138
138
  padding-bottom: var(--space-xxxs-j6dpcy, 2px);
139
139
  }
140
140
 
141
- .awsui_task_1u70p_1s8ac_115:not(#\9) {
141
+ .awsui_task_1u70p_1v9rp_115:not(#\9) {
142
142
  list-style: none;
143
143
  padding-top: 0;
144
144
  }
145
- .awsui_task_1u70p_1s8ac_115:not(#\9):not(:first-child) {
145
+ .awsui_task_1u70p_1v9rp_115:not(#\9):not(:first-child) {
146
146
  margin-top: var(--space-xl-gsucfg, 24px);
147
147
  }
148
148
 
149
- .awsui_task-title_1u70p_1s8ac_123:not(#\9) {
149
+ .awsui_task-title_1u70p_1v9rp_123:not(#\9) {
150
150
  display: flex;
151
151
  align-items: flex-start;
152
152
  padding-left: var(--border-divider-section-width-orq175, 2px);
@@ -154,19 +154,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
154
154
  line-height: var(--font-heading-s-line-height-uruujc, 20px);
155
155
  letter-spacing: var(--font-heading-s-letter-spacing-j4vcrt, -0.005em);
156
156
  }
157
- .awsui_task-title--status_1u70p_1s8ac_131:not(#\9) {
157
+ .awsui_task-title--status_1u70p_1v9rp_131:not(#\9) {
158
158
  line-height: inherit;
159
159
  }
160
160
 
161
- .awsui_current-task_1u70p_1s8ac_135:not(#\9) {
161
+ .awsui_current-task_1u70p_1v9rp_135:not(#\9) {
162
162
  font-weight: 700;
163
163
  }
164
164
 
165
- .awsui_successful-task_1u70p_1s8ac_139:not(#\9) {
165
+ .awsui_successful-task_1u70p_1v9rp_139:not(#\9) {
166
166
  color: var(--color-text-status-success-6id1zv, #037f0c);
167
167
  }
168
168
 
169
- .awsui_congratulation-message_1u70p_1s8ac_143:not(#\9) {
169
+ .awsui_congratulation-message_1u70p_1v9rp_143:not(#\9) {
170
170
  display: flex;
171
171
  font-size: var(--font-heading-s-size-ep2ts9, 16px);
172
172
  line-height: var(--font-heading-s-line-height-uruujc, 20px);
@@ -174,40 +174,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
174
174
  font-weight: var(--font-heading-xs-weight-dxq16u, 800);
175
175
  color: var(--color-text-status-success-6id1zv, #037f0c);
176
176
  }
177
- .awsui_congratulation-message--status_1u70p_1s8ac_151:not(#\9) {
177
+ .awsui_congratulation-message--status_1u70p_1v9rp_151:not(#\9) {
178
178
  line-height: inherit;
179
179
  }
180
180
 
181
- .awsui_plaintext-congratulation-description_1u70p_1s8ac_155:not(#\9) {
181
+ .awsui_plaintext-congratulation-description_1u70p_1v9rp_155:not(#\9) {
182
182
  white-space: pre-line;
183
183
  }
184
184
 
185
- .awsui_divider_1u70p_1s8ac_159:not(#\9) {
185
+ .awsui_divider_1u70p_1v9rp_159:not(#\9) {
186
186
  border-bottom: var(--border-divider-section-width-orq175, 2px) solid var(--color-border-divider-default-9o8zql, #e9ebed);
187
187
  }
188
188
 
189
- .awsui_step-list_1u70p_1s8ac_163:not(#\9) {
189
+ .awsui_step-list_1u70p_1v9rp_163:not(#\9) {
190
190
  list-style: none;
191
191
  padding: 0 0 0 var(--space-xxxs-j6dpcy, 2px);
192
192
  }
193
193
 
194
- .awsui_step_1u70p_1s8ac_163:not(#\9):not(:first-child) {
194
+ .awsui_step_1u70p_1v9rp_163:not(#\9):not(:first-child) {
195
195
  padding-top: var(--space-xxs-ja5cp8, 4px);
196
196
  }
197
197
 
198
- .awsui_expandable-section-wrapper_1u70p_1s8ac_172:not(#\9) {
198
+ .awsui_expandable-section-wrapper_1u70p_1v9rp_172:not(#\9) {
199
199
  width: 100%;
200
200
  }
201
201
 
202
- .awsui_expandable-section-header_1u70p_1s8ac_176:not(#\9) {
202
+ .awsui_expandable-section-header_1u70p_1v9rp_176:not(#\9) {
203
203
  font-size: var(--font-body-m-size-7dign1, 14px);
204
204
  line-height: var(--font-body-m-line-height-rfgrp9, 22px);
205
205
  }
206
206
 
207
- .awsui_step-title_1u70p_1s8ac_181:not(#\9),
208
- .awsui_feedback-link_1u70p_1s8ac_182:not(#\9),
209
- .awsui_dismiss-button_1u70p_1s8ac_183:not(#\9),
210
- .awsui_completion-screen-title_1u70p_1s8ac_184:not(#\9),
211
- .awsui_completion-screen-description_1u70p_1s8ac_185:not(#\9) {
207
+ .awsui_step-title_1u70p_1v9rp_181:not(#\9),
208
+ .awsui_feedback-link_1u70p_1v9rp_182:not(#\9),
209
+ .awsui_dismiss-button_1u70p_1v9rp_183:not(#\9),
210
+ .awsui_completion-screen-title_1u70p_1v9rp_184:not(#\9),
211
+ .awsui_completion-screen-description_1u70p_1v9rp_185:not(#\9) {
212
212
  /* used in test-utils */
213
213
  }
@@ -2,25 +2,25 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "tutorial-list": "awsui_tutorial-list_1u70p_1s8ac_93",
6
- "tutorial-title": "awsui_tutorial-title_1u70p_1s8ac_108",
7
- "task": "awsui_task_1u70p_1s8ac_115",
8
- "task-title": "awsui_task-title_1u70p_1s8ac_123",
9
- "task-title--status": "awsui_task-title--status_1u70p_1s8ac_131",
10
- "current-task": "awsui_current-task_1u70p_1s8ac_135",
11
- "successful-task": "awsui_successful-task_1u70p_1s8ac_139",
12
- "congratulation-message": "awsui_congratulation-message_1u70p_1s8ac_143",
13
- "congratulation-message--status": "awsui_congratulation-message--status_1u70p_1s8ac_151",
14
- "plaintext-congratulation-description": "awsui_plaintext-congratulation-description_1u70p_1s8ac_155",
15
- "divider": "awsui_divider_1u70p_1s8ac_159",
16
- "step-list": "awsui_step-list_1u70p_1s8ac_163",
17
- "step": "awsui_step_1u70p_1s8ac_163",
18
- "expandable-section-wrapper": "awsui_expandable-section-wrapper_1u70p_1s8ac_172",
19
- "expandable-section-header": "awsui_expandable-section-header_1u70p_1s8ac_176",
20
- "step-title": "awsui_step-title_1u70p_1s8ac_181",
21
- "feedback-link": "awsui_feedback-link_1u70p_1s8ac_182",
22
- "dismiss-button": "awsui_dismiss-button_1u70p_1s8ac_183",
23
- "completion-screen-title": "awsui_completion-screen-title_1u70p_1s8ac_184",
24
- "completion-screen-description": "awsui_completion-screen-description_1u70p_1s8ac_185"
5
+ "tutorial-list": "awsui_tutorial-list_1u70p_1v9rp_93",
6
+ "tutorial-title": "awsui_tutorial-title_1u70p_1v9rp_108",
7
+ "task": "awsui_task_1u70p_1v9rp_115",
8
+ "task-title": "awsui_task-title_1u70p_1v9rp_123",
9
+ "task-title--status": "awsui_task-title--status_1u70p_1v9rp_131",
10
+ "current-task": "awsui_current-task_1u70p_1v9rp_135",
11
+ "successful-task": "awsui_successful-task_1u70p_1v9rp_139",
12
+ "congratulation-message": "awsui_congratulation-message_1u70p_1v9rp_143",
13
+ "congratulation-message--status": "awsui_congratulation-message--status_1u70p_1v9rp_151",
14
+ "plaintext-congratulation-description": "awsui_plaintext-congratulation-description_1u70p_1v9rp_155",
15
+ "divider": "awsui_divider_1u70p_1v9rp_159",
16
+ "step-list": "awsui_step-list_1u70p_1v9rp_163",
17
+ "step": "awsui_step_1u70p_1v9rp_163",
18
+ "expandable-section-wrapper": "awsui_expandable-section-wrapper_1u70p_1v9rp_172",
19
+ "expandable-section-header": "awsui_expandable-section-header_1u70p_1v9rp_176",
20
+ "step-title": "awsui_step-title_1u70p_1v9rp_181",
21
+ "feedback-link": "awsui_feedback-link_1u70p_1v9rp_182",
22
+ "dismiss-button": "awsui_dismiss-button_1u70p_1v9rp_183",
23
+ "completion-screen-title": "awsui_completion-screen-title_1u70p_1v9rp_184",
24
+ "completion-screen-description": "awsui_completion-screen-description_1u70p_1v9rp_185"
25
25
  };
26
26
 
@@ -1,23 +1,23 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "content-enter": "awsui_content-enter_ig8mp_1enun_93",
5
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_ig8mp_1enun_1",
6
- "tutorial-list": "awsui_tutorial-list_ig8mp_1enun_119",
7
- "tutorial-box": "awsui_tutorial-box_ig8mp_1enun_134",
8
- "tutorial-box-title": "awsui_tutorial-box-title_ig8mp_1enun_154",
9
- "tutorial-description-plaintext": "awsui_tutorial-description-plaintext_ig8mp_1enun_160",
10
- "tutorial-description": "awsui_tutorial-description_ig8mp_1enun_160",
11
- "expandable-section": "awsui_expandable-section_ig8mp_1enun_172",
12
- "expanded": "awsui_expanded_ig8mp_1enun_176",
13
- "button-wrapper": "awsui_button-wrapper_ig8mp_1enun_180",
14
- "start": "awsui_start_ig8mp_1enun_184",
15
- "expand-button": "awsui_expand-button_ig8mp_1enun_188",
16
- "collapse-button": "awsui_collapse-button_ig8mp_1enun_192",
17
- "learn-more-link": "awsui_learn-more-link_ig8mp_1enun_196",
18
- "title": "awsui_title_ig8mp_1enun_200",
19
- "prerequisites-alert": "awsui_prerequisites-alert_ig8mp_1enun_204",
20
- "completed": "awsui_completed_ig8mp_1enun_208",
21
- "download-link": "awsui_download-link_ig8mp_1enun_212"
4
+ "content-enter": "awsui_content-enter_ig8mp_1hce7_93",
5
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_ig8mp_1hce7_1",
6
+ "tutorial-list": "awsui_tutorial-list_ig8mp_1hce7_119",
7
+ "tutorial-box": "awsui_tutorial-box_ig8mp_1hce7_134",
8
+ "tutorial-box-title": "awsui_tutorial-box-title_ig8mp_1hce7_154",
9
+ "tutorial-description-plaintext": "awsui_tutorial-description-plaintext_ig8mp_1hce7_160",
10
+ "tutorial-description": "awsui_tutorial-description_ig8mp_1hce7_160",
11
+ "expandable-section": "awsui_expandable-section_ig8mp_1hce7_172",
12
+ "expanded": "awsui_expanded_ig8mp_1hce7_176",
13
+ "button-wrapper": "awsui_button-wrapper_ig8mp_1hce7_180",
14
+ "start": "awsui_start_ig8mp_1hce7_184",
15
+ "expand-button": "awsui_expand-button_ig8mp_1hce7_188",
16
+ "collapse-button": "awsui_collapse-button_ig8mp_1hce7_192",
17
+ "learn-more-link": "awsui_learn-more-link_ig8mp_1hce7_196",
18
+ "title": "awsui_title_ig8mp_1hce7_200",
19
+ "prerequisites-alert": "awsui_prerequisites-alert_ig8mp_1hce7_204",
20
+ "completed": "awsui_completed_ig8mp_1hce7_208",
21
+ "download-link": "awsui_download-link_ig8mp_1hce7_212"
22
22
  };
23
23
 
@@ -90,10 +90,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_content-enter_ig8mp_1enun_93:not(#\9) {
94
- animation: awsui_awsui-motion-fade-in_ig8mp_1enun_1 var(--motion-duration-show-paced-uryptc, 180ms) var(--motion-easing-show-paced-tbgeqx, ease-out);
93
+ .awsui_content-enter_ig8mp_1hce7_93:not(#\9) {
94
+ animation: awsui_awsui-motion-fade-in_ig8mp_1hce7_1 var(--motion-duration-show-paced-uryptc, 180ms) var(--motion-easing-show-paced-tbgeqx, ease-out);
95
95
  }
96
- @keyframes awsui_awsui-motion-fade-in_ig8mp_1enun_1 {
96
+ @keyframes awsui_awsui-motion-fade-in_ig8mp_1hce7_1 {
97
97
  from {
98
98
  opacity: 0.2;
99
99
  }
@@ -102,12 +102,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
102
102
  }
103
103
  }
104
104
  @media (prefers-reduced-motion: reduce) {
105
- .awsui_content-enter_ig8mp_1enun_93:not(#\9) {
105
+ .awsui_content-enter_ig8mp_1hce7_93:not(#\9) {
106
106
  animation: none;
107
107
  transition: none;
108
108
  }
109
109
  }
110
- .awsui-motion-disabled .awsui_content-enter_ig8mp_1enun_93:not(#\9), .awsui-mode-entering .awsui_content-enter_ig8mp_1enun_93:not(#\9) {
110
+ .awsui-motion-disabled .awsui_content-enter_ig8mp_1hce7_93:not(#\9), .awsui-mode-entering .awsui_content-enter_ig8mp_1hce7_93:not(#\9) {
111
111
  animation: none;
112
112
  transition: none;
113
113
  }
@@ -116,7 +116,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
116
116
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
117
117
  SPDX-License-Identifier: Apache-2.0
118
118
  */
119
- .awsui_tutorial-list_ig8mp_1enun_119:not(#\9) {
119
+ .awsui_tutorial-list_ig8mp_1hce7_119:not(#\9) {
120
120
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
121
121
  border-collapse: separate;
122
122
  border-spacing: 0;
@@ -148,7 +148,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
148
148
  box-sizing: border-box;
149
149
  font-size: var(--font-body-m-size-7dign1, 14px);
150
150
  line-height: var(--font-body-m-line-height-rfgrp9, 22px);
151
- color: var(--color-text-body-default-mmvcvg, #000716);
151
+ color: var(--color-text-body-default-su7kuo, #000716);
152
152
  font-weight: 400;
153
153
  font-family: var(--font-family-base-wn913o, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
154
154
  -webkit-font-smoothing: auto;
@@ -157,7 +157,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
157
157
  margin: 0;
158
158
  }
159
159
 
160
- .awsui_tutorial-box_ig8mp_1enun_134:not(#\9) {
160
+ .awsui_tutorial-box_ig8mp_1hce7_134:not(#\9) {
161
161
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
162
162
  border-collapse: separate;
163
163
  border-spacing: 0;
@@ -189,7 +189,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
189
189
  box-sizing: border-box;
190
190
  font-size: var(--font-body-m-size-7dign1, 14px);
191
191
  line-height: var(--font-body-m-line-height-rfgrp9, 22px);
192
- color: var(--color-text-body-default-mmvcvg, #000716);
192
+ color: var(--color-text-body-default-su7kuo, #000716);
193
193
  font-weight: 400;
194
194
  font-family: var(--font-family-base-wn913o, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
195
195
  -webkit-font-smoothing: auto;
@@ -199,69 +199,69 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
199
199
  border-radius: var(--border-radius-tutorial-panel-item-frshlz, 8px);
200
200
  padding: var(--space-m-h2th94, 16px);
201
201
  }
202
- .awsui_tutorial-box_ig8mp_1enun_134:not(#\9):not(:first-child) {
202
+ .awsui_tutorial-box_ig8mp_1hce7_134:not(#\9):not(:first-child) {
203
203
  margin-top: var(--space-l-f4l5gr, 20px);
204
204
  }
205
205
 
206
- .awsui_tutorial-box-title_ig8mp_1enun_154:not(#\9) {
206
+ .awsui_tutorial-box-title_ig8mp_1hce7_154:not(#\9) {
207
207
  display: flex;
208
208
  align-items: flex-start;
209
209
  justify-content: space-between;
210
210
  }
211
211
 
212
- .awsui_tutorial-description-plaintext_ig8mp_1enun_160:not(#\9) {
212
+ .awsui_tutorial-description-plaintext_ig8mp_1hce7_160:not(#\9) {
213
213
  white-space: pre-line;
214
214
  }
215
215
 
216
- .awsui_tutorial-description_ig8mp_1enun_160:not(#\9) {
216
+ .awsui_tutorial-description_ig8mp_1hce7_160:not(#\9) {
217
217
  /* stylelint-disable-next-line @cloudscape-design/no-implicit-descendant, selector-max-type -- Customers can nest their list items inside Box components. */
218
218
  }
219
- .awsui_tutorial-description_ig8mp_1enun_160 ul:not(#\9) {
219
+ .awsui_tutorial-description_ig8mp_1hce7_160 ul:not(#\9) {
220
220
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
221
221
  list-style-type: disc;
222
222
  }
223
223
 
224
- .awsui_expandable-section_ig8mp_1enun_172:not(#\9) {
224
+ .awsui_expandable-section_ig8mp_1hce7_172:not(#\9) {
225
225
  display: none;
226
226
  margin-top: var(--space-m-h2th94, 16px);
227
227
  }
228
- .awsui_expandable-section_ig8mp_1enun_172.awsui_expanded_ig8mp_1enun_176:not(#\9) {
228
+ .awsui_expandable-section_ig8mp_1hce7_172.awsui_expanded_ig8mp_1hce7_176:not(#\9) {
229
229
  display: block;
230
230
  }
231
231
 
232
- .awsui_button-wrapper_ig8mp_1enun_180:not(#\9) {
232
+ .awsui_button-wrapper_ig8mp_1hce7_180:not(#\9) {
233
233
  margin: calc(-1 * var(--space-xxs-ja5cp8, 4px) - var(--border-field-width-riro62, 2px));
234
234
  }
235
235
 
236
- .awsui_start_ig8mp_1enun_184:not(#\9) {
236
+ .awsui_start_ig8mp_1hce7_184:not(#\9) {
237
237
  /* used in test-utils */
238
238
  }
239
239
 
240
- .awsui_expand-button_ig8mp_1enun_188:not(#\9) {
240
+ .awsui_expand-button_ig8mp_1hce7_188:not(#\9) {
241
241
  /* used in test-utils */
242
242
  }
243
243
 
244
- .awsui_collapse-button_ig8mp_1enun_192:not(#\9) {
244
+ .awsui_collapse-button_ig8mp_1hce7_192:not(#\9) {
245
245
  /* used in test-utils */
246
246
  }
247
247
 
248
- .awsui_learn-more-link_ig8mp_1enun_196:not(#\9) {
248
+ .awsui_learn-more-link_ig8mp_1hce7_196:not(#\9) {
249
249
  /* used in test-utils */
250
250
  }
251
251
 
252
- .awsui_title_ig8mp_1enun_200:not(#\9) {
252
+ .awsui_title_ig8mp_1hce7_200:not(#\9) {
253
253
  /* used in test-utils */
254
254
  }
255
255
 
256
- .awsui_prerequisites-alert_ig8mp_1enun_204:not(#\9) {
256
+ .awsui_prerequisites-alert_ig8mp_1hce7_204:not(#\9) {
257
257
  /* used in test-utils */
258
258
  }
259
259
 
260
- .awsui_completed_ig8mp_1enun_208:not(#\9) {
260
+ .awsui_completed_ig8mp_1hce7_208:not(#\9) {
261
261
  /* used in test-utils */
262
262
  }
263
263
 
264
- .awsui_download-link_ig8mp_1enun_212:not(#\9) {
264
+ .awsui_download-link_ig8mp_1hce7_212:not(#\9) {
265
265
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
266
266
  border-collapse: separate;
267
267
  border-spacing: 0;
@@ -293,7 +293,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
293
293
  box-sizing: border-box;
294
294
  font-size: var(--font-body-m-size-7dign1, 14px);
295
295
  line-height: var(--font-body-m-line-height-rfgrp9, 22px);
296
- color: var(--color-text-body-default-mmvcvg, #000716);
296
+ color: var(--color-text-body-default-su7kuo, #000716);
297
297
  font-weight: 400;
298
298
  font-family: var(--font-family-base-wn913o, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
299
299
  -webkit-font-smoothing: auto;
@@ -304,18 +304,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
304
304
  letter-spacing: 0.005em;
305
305
  color: var(--color-text-body-secondary-he5d85, #414d5c);
306
306
  }
307
- .awsui_download-link_ig8mp_1enun_212:not(#\9):hover {
307
+ .awsui_download-link_ig8mp_1hce7_212:not(#\9):hover {
308
308
  cursor: pointer;
309
309
  }
310
- .awsui_download-link_ig8mp_1enun_212:not(#\9):focus {
310
+ .awsui_download-link_ig8mp_1hce7_212:not(#\9):focus {
311
311
  outline: none;
312
312
  }
313
- .awsui_download-link_ig8mp_1enun_212:not(#\9):active, .awsui_download-link_ig8mp_1enun_212:not(#\9):focus, .awsui_download-link_ig8mp_1enun_212:not(#\9):hover {
313
+ .awsui_download-link_ig8mp_1hce7_212:not(#\9):active, .awsui_download-link_ig8mp_1hce7_212:not(#\9):focus, .awsui_download-link_ig8mp_1hce7_212:not(#\9):hover {
314
314
  text-decoration: underline;
315
315
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
316
316
  text-decoration-color: currentColor;
317
317
  }
318
- body[data-awsui-focus-visible=true] .awsui_download-link_ig8mp_1enun_212:not(#\9):focus {
318
+ body[data-awsui-focus-visible=true] .awsui_download-link_ig8mp_1hce7_212:not(#\9):focus {
319
319
  outline: thin dotted;
320
320
  outline: var(--border-link-focus-ring-outline-pwlekd, 0);
321
321
  outline-offset: 2px;
@@ -2,23 +2,23 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "content-enter": "awsui_content-enter_ig8mp_1enun_93",
6
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_ig8mp_1enun_1",
7
- "tutorial-list": "awsui_tutorial-list_ig8mp_1enun_119",
8
- "tutorial-box": "awsui_tutorial-box_ig8mp_1enun_134",
9
- "tutorial-box-title": "awsui_tutorial-box-title_ig8mp_1enun_154",
10
- "tutorial-description-plaintext": "awsui_tutorial-description-plaintext_ig8mp_1enun_160",
11
- "tutorial-description": "awsui_tutorial-description_ig8mp_1enun_160",
12
- "expandable-section": "awsui_expandable-section_ig8mp_1enun_172",
13
- "expanded": "awsui_expanded_ig8mp_1enun_176",
14
- "button-wrapper": "awsui_button-wrapper_ig8mp_1enun_180",
15
- "start": "awsui_start_ig8mp_1enun_184",
16
- "expand-button": "awsui_expand-button_ig8mp_1enun_188",
17
- "collapse-button": "awsui_collapse-button_ig8mp_1enun_192",
18
- "learn-more-link": "awsui_learn-more-link_ig8mp_1enun_196",
19
- "title": "awsui_title_ig8mp_1enun_200",
20
- "prerequisites-alert": "awsui_prerequisites-alert_ig8mp_1enun_204",
21
- "completed": "awsui_completed_ig8mp_1enun_208",
22
- "download-link": "awsui_download-link_ig8mp_1enun_212"
5
+ "content-enter": "awsui_content-enter_ig8mp_1hce7_93",
6
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_ig8mp_1hce7_1",
7
+ "tutorial-list": "awsui_tutorial-list_ig8mp_1hce7_119",
8
+ "tutorial-box": "awsui_tutorial-box_ig8mp_1hce7_134",
9
+ "tutorial-box-title": "awsui_tutorial-box-title_ig8mp_1hce7_154",
10
+ "tutorial-description-plaintext": "awsui_tutorial-description-plaintext_ig8mp_1hce7_160",
11
+ "tutorial-description": "awsui_tutorial-description_ig8mp_1hce7_160",
12
+ "expandable-section": "awsui_expandable-section_ig8mp_1hce7_172",
13
+ "expanded": "awsui_expanded_ig8mp_1hce7_176",
14
+ "button-wrapper": "awsui_button-wrapper_ig8mp_1hce7_180",
15
+ "start": "awsui_start_ig8mp_1hce7_184",
16
+ "expand-button": "awsui_expand-button_ig8mp_1hce7_188",
17
+ "collapse-button": "awsui_collapse-button_ig8mp_1hce7_192",
18
+ "learn-more-link": "awsui_learn-more-link_ig8mp_1hce7_196",
19
+ "title": "awsui_title_ig8mp_1hce7_200",
20
+ "prerequisites-alert": "awsui_prerequisites-alert_ig8mp_1hce7_204",
21
+ "completed": "awsui_completed_ig8mp_1hce7_208",
22
+ "download-link": "awsui_download-link_ig8mp_1hce7_212"
23
23
  };
24
24
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "tutorial-panel": "awsui_tutorial-panel_1oin5_k18t8_93"
4
+ "tutorial-panel": "awsui_tutorial-panel_1oin5_2qg7z_93"
5
5
  };
6
6
 
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_tutorial-panel_1oin5_k18t8_93:not(#\9) {
93
+ .awsui_tutorial-panel_1oin5_2qg7z_93:not(#\9) {
94
94
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
95
95
  border-collapse: separate;
96
96
  border-spacing: 0;
@@ -122,7 +122,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
122
122
  box-sizing: border-box;
123
123
  font-size: var(--font-body-m-size-7dign1, 14px);
124
124
  line-height: var(--font-body-m-line-height-rfgrp9, 22px);
125
- color: var(--color-text-body-default-mmvcvg, #000716);
125
+ color: var(--color-text-body-default-su7kuo, #000716);
126
126
  font-weight: 400;
127
127
  font-family: var(--font-family-base-wn913o, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
128
128
  -webkit-font-smoothing: auto;
@@ -2,6 +2,6 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "tutorial-panel": "awsui_tutorial-panel_1oin5_k18t8_93"
5
+ "tutorial-panel": "awsui_tutorial-panel_1oin5_2qg7z_93"
6
6
  };
7
7
 
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["wizard/internal.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAWlF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,KAAK,mBAAmB,GAAG,WAAW,GAAG,0BAA0B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,KAAK,EACL,eAAe,EAAE,yBAAyB,EAC1C,iBAAyB,EACzB,WAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,mBAAmB,eAsIrB"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["wizard/internal.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAWlF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,KAAK,mBAAmB,GAAG,WAAW,GAAG,0BAA0B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,KAAK,EACL,eAAe,EAAE,yBAAyB,EAC1C,iBAAyB,EACzB,WAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,mBAAmB,eAuIrB"}
@@ -67,7 +67,7 @@ export default function InternalWizard(_a) {
67
67
  };
68
68
  const i18n = useInternalI18n('wizard');
69
69
  const skipToButtonLabel = i18n('i18nStrings.skipToButtonLabel', rest.i18nStrings.skipToButtonLabel, format => task => format({ task__title: task.title }));
70
- const i18nStrings = Object.assign(Object.assign({}, rest.i18nStrings), { skipToButtonLabel, stepNumberLabel: i18n('i18nStrings.stepNumberLabel', (_b = rest.i18nStrings) === null || _b === void 0 ? void 0 : _b.stepNumberLabel, format => stepNumber => format({ stepNumber })), collapsedStepsLabel: i18n('i18nStrings.collapsedStepsLabel', (_c = rest.i18nStrings) === null || _c === void 0 ? void 0 : _c.collapsedStepsLabel, format => (stepNumber, stepsCount) => format({ stepNumber, stepsCount })), cancelButton: i18n('i18nStrings.cancelButton', rest.i18nStrings.cancelButton), previousButton: i18n('i18nStrings.previousButton', rest.i18nStrings.previousButton), nextButton: i18n('i18nStrings.nextButton', rest.i18nStrings.nextButton), optional: i18n('i18nStrings.optional', rest.i18nStrings.optional) });
70
+ const i18nStrings = Object.assign(Object.assign({}, rest.i18nStrings), { skipToButtonLabel, stepNumberLabel: i18n('i18nStrings.stepNumberLabel', (_b = rest.i18nStrings) === null || _b === void 0 ? void 0 : _b.stepNumberLabel, format => stepNumber => format({ stepNumber })), collapsedStepsLabel: i18n('i18nStrings.collapsedStepsLabel', (_c = rest.i18nStrings) === null || _c === void 0 ? void 0 : _c.collapsedStepsLabel, format => (stepNumber, stepsCount) => format({ stepNumber, stepsCount })), navigationAriaLabel: i18n('i18nStrings.navigationAriaLabel', rest.i18nStrings.navigationAriaLabel), cancelButton: i18n('i18nStrings.cancelButton', rest.i18nStrings.cancelButton), previousButton: i18n('i18nStrings.previousButton', rest.i18nStrings.previousButton), nextButton: i18n('i18nStrings.nextButton', rest.i18nStrings.nextButton), optional: i18n('i18nStrings.optional', rest.i18nStrings.optional) });
71
71
  if (activeStepIndex && activeStepIndex >= steps.length) {
72
72
  warnOnce('Wizard', `You have set \`activeStepIndex\` to ${activeStepIndex} but you have provided only ${steps.length} steps. Its value is ignored and the component uses ${steps.length - 1} instead.`);
73
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["wizard/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,Y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A8B,CAAC,GAAI;gBAC/F,oBAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,cAAc,EAClC,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,qBAAqB,EACtC,gBAAgB,EAAE,iBAAiB,EACnC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B,CACE,CACF,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nimport { useInternalI18n } from '../internal/i18n/context';\n\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel } from '../internal/analytics/hooks/use-funnel';\nimport { getSubStepAllSelector } from '../internal/analytics/selectors';\n\nimport WizardForm from './wizard-form';\nimport WizardNavigation from './wizard-navigation';\n\nimport { WizardProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalWizardProps = WizardProps & InternalBaseComponentProps;\n\nexport default function InternalWizard({\n steps,\n activeStepIndex: controlledActiveStepIndex,\n isLoadingNextStep = false,\n allowSkipTo = false,\n secondaryActions,\n onCancel,\n onSubmit,\n onNavigate,\n __internalRootRef,\n ...rest\n}: InternalWizardProps) {\n const baseProps = getBaseProps(rest);\n\n const [breakpoint, breakpointsRef] = useContainerBreakpoints(['xs']);\n const ref = useMergeRefs(breakpointsRef, __internalRootRef);\n\n const smallContainer = breakpoint === 'default';\n\n const [activeStepIndex, setActiveStepIndex] = useControllable(controlledActiveStepIndex, onNavigate, 0, {\n componentName: 'Wizard',\n controlledProp: 'activeStepIndex',\n changeHandler: 'onNavigate',\n });\n const { funnelInteractionId, funnelSubmit, funnelCancel, funnelProps } = useFunnel();\n const actualActiveStepIndex = activeStepIndex ? Math.min(activeStepIndex, steps.length - 1) : 0;\n\n const farthestStepIndex = useRef<number>(actualActiveStepIndex);\n farthestStepIndex.current = Math.max(farthestStepIndex.current, actualActiveStepIndex);\n\n const isVisualRefresh = useVisualRefresh();\n const isLastStep = actualActiveStepIndex >= steps.length - 1;\n\n const navigationEvent = (requestedStepIndex: number, reason: WizardProps.NavigationReason) => {\n if (funnelInteractionId) {\n FunnelMetrics.funnelStepNavigation({\n navigationType: reason,\n funnelInteractionId,\n stepNumber: actualActiveStepIndex + 1,\n stepNameSelector: `.${styles['form-header-component-wrapper']}`,\n destinationStepNumber: requestedStepIndex + 1,\n subStepAllSelector: getSubStepAllSelector(),\n });\n }\n\n setActiveStepIndex(requestedStepIndex);\n fireNonCancelableEvent(onNavigate, { requestedStepIndex, reason });\n };\n const onStepClick = (stepIndex: number) => navigationEvent(stepIndex, 'step');\n const onSkipToClick = (stepIndex: number) => navigationEvent(stepIndex, 'skip');\n const onCancelClick = () => {\n funnelCancel();\n fireNonCancelableEvent(onCancel);\n };\n const onPreviousClick = () => navigationEvent(actualActiveStepIndex - 1, 'previous');\n const onPrimaryClick = () => {\n if (isLastStep) {\n funnelSubmit();\n fireNonCancelableEvent(onSubmit);\n } else {\n navigationEvent(actualActiveStepIndex + 1, 'next');\n }\n };\n\n const i18n = useInternalI18n('wizard');\n const skipToButtonLabel = i18n(\n 'i18nStrings.skipToButtonLabel',\n rest.i18nStrings.skipToButtonLabel,\n format => task => format({ task__title: task.title })\n );\n\n const i18nStrings: WizardProps.I18nStrings = {\n ...rest.i18nStrings,\n skipToButtonLabel,\n stepNumberLabel: i18n(\n 'i18nStrings.stepNumberLabel',\n rest.i18nStrings?.stepNumberLabel,\n format => stepNumber => format({ stepNumber })\n ),\n collapsedStepsLabel: i18n(\n 'i18nStrings.collapsedStepsLabel',\n rest.i18nStrings?.collapsedStepsLabel,\n format => (stepNumber, stepsCount) => format({ stepNumber, stepsCount })\n ),\n cancelButton: i18n('i18nStrings.cancelButton', rest.i18nStrings.cancelButton),\n previousButton: i18n('i18nStrings.previousButton', rest.i18nStrings.previousButton),\n nextButton: i18n('i18nStrings.nextButton', rest.i18nStrings.nextButton),\n optional: i18n('i18nStrings.optional', rest.i18nStrings.optional),\n };\n\n if (activeStepIndex && activeStepIndex >= steps.length) {\n warnOnce(\n 'Wizard',\n `You have set \\`activeStepIndex\\` to ${activeStepIndex} but you have provided only ${\n steps.length\n } steps. Its value is ignored and the component uses ${steps.length - 1} instead.`\n );\n }\n\n if (allowSkipTo && !skipToButtonLabel) {\n warnOnce(\n 'Wizard',\n `You have set \\`allowSkipTo\\` but you have not provided \\`i18nStrings.skipToButtonLabel\\`. The skip-to button will not be rendered.`\n );\n }\n\n return (\n <div {...baseProps} {...funnelProps} ref={ref} className={clsx(styles.root, baseProps.className)}>\n <div\n className={clsx(styles.wizard, isVisualRefresh && styles.refresh, smallContainer && styles['small-container'])}\n >\n <WizardNavigation\n activeStepIndex={actualActiveStepIndex}\n farthestStepIndex={farthestStepIndex.current}\n allowSkipTo={allowSkipTo}\n hidden={smallContainer}\n i18nStrings={i18nStrings}\n isVisualRefresh={isVisualRefresh}\n isLoadingNextStep={isLoadingNextStep}\n onStepClick={onStepClick}\n onSkipToClick={onSkipToClick}\n steps={steps}\n />\n <div\n className={clsx(styles.form, isVisualRefresh && styles.refresh, smallContainer && styles['small-container'])}\n >\n {isVisualRefresh && <div className={clsx(styles.background, 'awsui-context-content-header')} />}\n <WizardForm\n steps={steps}\n isVisualRefresh={isVisualRefresh}\n showCollapsedSteps={smallContainer}\n i18nStrings={i18nStrings}\n activeStepIndex={actualActiveStepIndex}\n isPrimaryLoading={isLoadingNextStep}\n allowSkipTo={allowSkipTo}\n secondaryActions={secondaryActions}\n onCancelClick={onCancelClick}\n onPreviousClick={onPreviousClick}\n onSkipToClick={onSkipToClick}\n onPrimaryClick={onPrimaryClick}\n />\n </div>\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["wizard/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAInD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAWjB;;QAXiB,EACrC,KAAK,EACL,eAAe,E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amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nimport { useInternalI18n } from '../internal/i18n/context';\n\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel } from '../internal/analytics/hooks/use-funnel';\nimport { getSubStepAllSelector } from '../internal/analytics/selectors';\n\nimport WizardForm from './wizard-form';\nimport WizardNavigation from './wizard-navigation';\n\nimport { WizardProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalWizardProps = WizardProps & InternalBaseComponentProps;\n\nexport default function InternalWizard({\n steps,\n activeStepIndex: controlledActiveStepIndex,\n isLoadingNextStep = false,\n allowSkipTo = false,\n secondaryActions,\n onCancel,\n onSubmit,\n onNavigate,\n __internalRootRef,\n ...rest\n}: InternalWizardProps) {\n const baseProps = getBaseProps(rest);\n\n const [breakpoint, breakpointsRef] = useContainerBreakpoints(['xs']);\n const ref = useMergeRefs(breakpointsRef, __internalRootRef);\n\n const smallContainer = breakpoint === 'default';\n\n const [activeStepIndex, setActiveStepIndex] = useControllable(controlledActiveStepIndex, onNavigate, 0, {\n componentName: 'Wizard',\n controlledProp: 'activeStepIndex',\n changeHandler: 'onNavigate',\n });\n const { funnelInteractionId, funnelSubmit, funnelCancel, funnelProps } = useFunnel();\n const actualActiveStepIndex = activeStepIndex ? Math.min(activeStepIndex, steps.length - 1) : 0;\n\n const farthestStepIndex = useRef<number>(actualActiveStepIndex);\n farthestStepIndex.current = Math.max(farthestStepIndex.current, actualActiveStepIndex);\n\n const isVisualRefresh = useVisualRefresh();\n const isLastStep = actualActiveStepIndex >= steps.length - 1;\n\n const navigationEvent = (requestedStepIndex: number, reason: WizardProps.NavigationReason) => {\n if (funnelInteractionId) {\n FunnelMetrics.funnelStepNavigation({\n navigationType: reason,\n funnelInteractionId,\n stepNumber: actualActiveStepIndex + 1,\n stepNameSelector: `.${styles['form-header-component-wrapper']}`,\n destinationStepNumber: requestedStepIndex + 1,\n subStepAllSelector: getSubStepAllSelector(),\n });\n }\n\n setActiveStepIndex(requestedStepIndex);\n fireNonCancelableEvent(onNavigate, { requestedStepIndex, reason });\n };\n const onStepClick = (stepIndex: number) => navigationEvent(stepIndex, 'step');\n const onSkipToClick = (stepIndex: number) => navigationEvent(stepIndex, 'skip');\n const onCancelClick = () => {\n funnelCancel();\n fireNonCancelableEvent(onCancel);\n };\n const onPreviousClick = () => navigationEvent(actualActiveStepIndex - 1, 'previous');\n const onPrimaryClick = () => {\n if (isLastStep) {\n funnelSubmit();\n fireNonCancelableEvent(onSubmit);\n } else {\n navigationEvent(actualActiveStepIndex + 1, 'next');\n }\n };\n\n const i18n = useInternalI18n('wizard');\n const skipToButtonLabel = i18n(\n 'i18nStrings.skipToButtonLabel',\n rest.i18nStrings.skipToButtonLabel,\n format => task => format({ task__title: task.title })\n );\n\n const i18nStrings: WizardProps.I18nStrings = {\n ...rest.i18nStrings,\n skipToButtonLabel,\n stepNumberLabel: i18n(\n 'i18nStrings.stepNumberLabel',\n rest.i18nStrings?.stepNumberLabel,\n format => stepNumber => format({ stepNumber })\n ),\n collapsedStepsLabel: i18n(\n 'i18nStrings.collapsedStepsLabel',\n rest.i18nStrings?.collapsedStepsLabel,\n format => (stepNumber, stepsCount) => format({ stepNumber, stepsCount })\n ),\n navigationAriaLabel: i18n('i18nStrings.navigationAriaLabel', rest.i18nStrings.navigationAriaLabel),\n cancelButton: i18n('i18nStrings.cancelButton', rest.i18nStrings.cancelButton),\n previousButton: i18n('i18nStrings.previousButton', rest.i18nStrings.previousButton),\n nextButton: i18n('i18nStrings.nextButton', rest.i18nStrings.nextButton),\n optional: i18n('i18nStrings.optional', rest.i18nStrings.optional),\n };\n\n if (activeStepIndex && activeStepIndex >= steps.length) {\n warnOnce(\n 'Wizard',\n `You have set \\`activeStepIndex\\` to ${activeStepIndex} but you have provided only ${\n steps.length\n } steps. Its value is ignored and the component uses ${steps.length - 1} instead.`\n );\n }\n\n if (allowSkipTo && !skipToButtonLabel) {\n warnOnce(\n 'Wizard',\n `You have set \\`allowSkipTo\\` but you have not provided \\`i18nStrings.skipToButtonLabel\\`. The skip-to button will not be rendered.`\n );\n }\n\n return (\n <div {...baseProps} {...funnelProps} ref={ref} className={clsx(styles.root, baseProps.className)}>\n <div\n className={clsx(styles.wizard, isVisualRefresh && styles.refresh, smallContainer && styles['small-container'])}\n >\n <WizardNavigation\n activeStepIndex={actualActiveStepIndex}\n farthestStepIndex={farthestStepIndex.current}\n allowSkipTo={allowSkipTo}\n hidden={smallContainer}\n i18nStrings={i18nStrings}\n isVisualRefresh={isVisualRefresh}\n isLoadingNextStep={isLoadingNextStep}\n onStepClick={onStepClick}\n onSkipToClick={onSkipToClick}\n steps={steps}\n />\n <div\n className={clsx(styles.form, isVisualRefresh && styles.refresh, smallContainer && styles['small-container'])}\n >\n {isVisualRefresh && <div className={clsx(styles.background, 'awsui-context-content-header')} />}\n <WizardForm\n steps={steps}\n isVisualRefresh={isVisualRefresh}\n showCollapsedSteps={smallContainer}\n i18nStrings={i18nStrings}\n activeStepIndex={actualActiveStepIndex}\n isPrimaryLoading={isLoadingNextStep}\n allowSkipTo={allowSkipTo}\n secondaryActions={secondaryActions}\n onCancelClick={onCancelClick}\n onPreviousClick={onPreviousClick}\n onSkipToClick={onSkipToClick}\n onPrimaryClick={onPrimaryClick}\n />\n </div>\n </div>\n </div>\n );\n}\n"]}
@@ -1,36 +1,36 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_1xupv_1dj8u_94",
5
- "wizard": "awsui_wizard_1xupv_1dj8u_107",
6
- "refresh": "awsui_refresh_1xupv_1dj8u_107",
7
- "small-container": "awsui_small-container_1xupv_1dj8u_114",
8
- "navigation": "awsui_navigation_1xupv_1dj8u_123",
9
- "number": "awsui_number_1xupv_1dj8u_185",
10
- "circle": "awsui_circle_1xupv_1dj8u_201",
11
- "title": "awsui_title_1xupv_1dj8u_209",
12
- "active": "awsui_active_1xupv_1dj8u_238",
13
- "disabled": "awsui_disabled_1xupv_1dj8u_249",
14
- "enabled": "awsui_enabled_1xupv_1dj8u_259",
15
- "form": "awsui_form_1xupv_1dj8u_301",
16
- "form-header": "awsui_form-header_1xupv_1dj8u_307",
17
- "background": "awsui_background_1xupv_1dj8u_318",
18
- "form-header-content": "awsui_form-header-content_1xupv_1dj8u_330",
19
- "form-component": "awsui_form-component_1xupv_1dj8u_334",
20
- "hidden": "awsui_hidden_1xupv_1dj8u_348",
21
- "collapsed-steps": "awsui_collapsed-steps_1xupv_1dj8u_352",
22
- "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_1dj8u_357",
23
- "form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_1dj8u_361",
24
- "form-header-component": "awsui_form-header-component_1xupv_1dj8u_361",
25
- "navigation-link": "awsui_navigation-link_1xupv_1dj8u_374",
26
- "navigation-link-item": "awsui_navigation-link-item_1xupv_1dj8u_375",
27
- "navigation-link-label": "awsui_navigation-link-label_1xupv_1dj8u_376",
28
- "navigation-link-active": "awsui_navigation-link-active_1xupv_1dj8u_380",
29
- "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_1dj8u_385",
30
- "cancel-button": "awsui_cancel-button_1xupv_1dj8u_389",
31
- "previous-button": "awsui_previous-button_1xupv_1dj8u_390",
32
- "primary-button": "awsui_primary-button_1xupv_1dj8u_391",
33
- "skip-to-button": "awsui_skip-to-button_1xupv_1dj8u_392",
34
- "action-buttons": "awsui_action-buttons_1xupv_1dj8u_396"
4
+ "root": "awsui_root_1xupv_1233m_94",
5
+ "wizard": "awsui_wizard_1xupv_1233m_107",
6
+ "refresh": "awsui_refresh_1xupv_1233m_107",
7
+ "small-container": "awsui_small-container_1xupv_1233m_114",
8
+ "navigation": "awsui_navigation_1xupv_1233m_123",
9
+ "number": "awsui_number_1xupv_1233m_185",
10
+ "circle": "awsui_circle_1xupv_1233m_201",
11
+ "title": "awsui_title_1xupv_1233m_209",
12
+ "active": "awsui_active_1xupv_1233m_238",
13
+ "disabled": "awsui_disabled_1xupv_1233m_249",
14
+ "enabled": "awsui_enabled_1xupv_1233m_259",
15
+ "form": "awsui_form_1xupv_1233m_301",
16
+ "form-header": "awsui_form-header_1xupv_1233m_307",
17
+ "background": "awsui_background_1xupv_1233m_318",
18
+ "form-header-content": "awsui_form-header-content_1xupv_1233m_330",
19
+ "form-component": "awsui_form-component_1xupv_1233m_334",
20
+ "hidden": "awsui_hidden_1xupv_1233m_348",
21
+ "collapsed-steps": "awsui_collapsed-steps_1xupv_1233m_352",
22
+ "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_1233m_357",
23
+ "form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_1233m_361",
24
+ "form-header-component": "awsui_form-header-component_1xupv_1233m_361",
25
+ "navigation-link": "awsui_navigation-link_1xupv_1233m_374",
26
+ "navigation-link-item": "awsui_navigation-link-item_1xupv_1233m_375",
27
+ "navigation-link-label": "awsui_navigation-link-label_1xupv_1233m_376",
28
+ "navigation-link-active": "awsui_navigation-link-active_1xupv_1233m_380",
29
+ "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_1233m_385",
30
+ "cancel-button": "awsui_cancel-button_1xupv_1233m_389",
31
+ "previous-button": "awsui_previous-button_1xupv_1233m_390",
32
+ "primary-button": "awsui_primary-button_1xupv_1233m_391",
33
+ "skip-to-button": "awsui_skip-to-button_1xupv_1233m_392",
34
+ "action-buttons": "awsui_action-buttons_1xupv_1233m_396"
35
35
  };
36
36