@cloudscape-design/components 3.0.354 → 3.0.356

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.
@@ -94,10 +94,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- .awsui_content-enter_gwq0h_18mml_97:not(#\9) {
98
- animation: awsui_awsui-motion-fade-in_gwq0h_18mml_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
97
+ .awsui_content-enter_gwq0h_xgtm9_97:not(#\9) {
98
+ animation: awsui_awsui-motion-fade-in_gwq0h_xgtm9_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
99
99
  }
100
- @keyframes awsui_awsui-motion-fade-in_gwq0h_18mml_1 {
100
+ @keyframes awsui_awsui-motion-fade-in_gwq0h_xgtm9_1 {
101
101
  from {
102
102
  opacity: 0.2;
103
103
  }
@@ -106,40 +106,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  }
107
107
  }
108
108
  @media (prefers-reduced-motion: reduce) {
109
- .awsui_content-enter_gwq0h_18mml_97:not(#\9) {
109
+ .awsui_content-enter_gwq0h_xgtm9_97:not(#\9) {
110
110
  animation: none;
111
111
  transition: none;
112
112
  }
113
113
  }
114
- .awsui-motion-disabled .awsui_content-enter_gwq0h_18mml_97:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_18mml_97:not(#\9) {
114
+ .awsui-motion-disabled .awsui_content-enter_gwq0h_xgtm9_97:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_xgtm9_97:not(#\9) {
115
115
  animation: none;
116
116
  transition: none;
117
117
  }
118
118
 
119
- .awsui_trigger-expanded_gwq0h_18mml_119:not(#\9) {
119
+ .awsui_trigger-expanded_gwq0h_xgtm9_119:not(#\9) {
120
120
  transition: border-bottom-color var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
121
121
  }
122
122
  @media (prefers-reduced-motion: reduce) {
123
- .awsui_trigger-expanded_gwq0h_18mml_119:not(#\9) {
123
+ .awsui_trigger-expanded_gwq0h_xgtm9_119:not(#\9) {
124
124
  animation: none;
125
125
  transition: none;
126
126
  }
127
127
  }
128
- .awsui-motion-disabled .awsui_trigger-expanded_gwq0h_18mml_119:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_18mml_119:not(#\9) {
128
+ .awsui-motion-disabled .awsui_trigger-expanded_gwq0h_xgtm9_119:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_xgtm9_119:not(#\9) {
129
129
  animation: none;
130
130
  transition: none;
131
131
  }
132
132
 
133
- .awsui_icon_gwq0h_18mml_133:not(#\9) {
133
+ .awsui_icon_gwq0h_xgtm9_133:not(#\9) {
134
134
  transition: transform var(--motion-duration-rotate-90-4ry26y, 135ms) var(--motion-easing-rotate-90-sb4dk7, cubic-bezier(0.165, 0.84, 0.44, 1));
135
135
  }
136
136
  @media (prefers-reduced-motion: reduce) {
137
- .awsui_icon_gwq0h_18mml_133:not(#\9) {
137
+ .awsui_icon_gwq0h_xgtm9_133:not(#\9) {
138
138
  animation: none;
139
139
  transition: none;
140
140
  }
141
141
  }
142
- .awsui-motion-disabled .awsui_icon_gwq0h_18mml_133:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_18mml_133:not(#\9) {
142
+ .awsui-motion-disabled .awsui_icon_gwq0h_xgtm9_133:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_xgtm9_133:not(#\9) {
143
143
  animation: none;
144
144
  transition: none;
145
145
  }
@@ -148,7 +148,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
148
148
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
149
149
  SPDX-License-Identifier: Apache-2.0
150
150
  */
151
- .awsui_root_gwq0h_18mml_151:not(#\9) {
151
+ .awsui_root_gwq0h_xgtm9_151:not(#\9) {
152
152
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
153
153
  border-collapse: separate;
154
154
  border-spacing: 0;
@@ -191,111 +191,114 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
191
191
  display: block;
192
192
  }
193
193
 
194
- .awsui_expand-button_gwq0h_18mml_168:not(#\9) {
194
+ .awsui_expand-button_gwq0h_xgtm9_168:not(#\9) {
195
195
  /* used in test-utils */
196
196
  }
197
197
 
198
- .awsui_icon_gwq0h_18mml_133:not(#\9) {
198
+ .awsui_icon_gwq0h_xgtm9_133:not(#\9) {
199
199
  transform: rotate(-90deg);
200
200
  }
201
- .awsui_icon_gwq0h_18mml_133.awsui_expanded_gwq0h_18mml_175:not(#\9) {
201
+ .awsui_icon_gwq0h_xgtm9_133.awsui_expanded_gwq0h_xgtm9_175:not(#\9) {
202
202
  transform: rotate(0deg);
203
203
  }
204
204
 
205
- .awsui_icon-container_gwq0h_18mml_179:not(#\9) {
205
+ .awsui_icon-container_gwq0h_xgtm9_179:not(#\9) {
206
206
  position: relative;
207
207
  margin-left: calc((var(--font-body-m-line-height-5wv9x1, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2);
208
208
  margin-right: calc(var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
209
209
  }
210
- .awsui_icon-container-container_gwq0h_18mml_184:not(#\9) {
210
+ .awsui_icon-container-container_gwq0h_xgtm9_184:not(#\9) {
211
211
  margin-right: var(--space-xs-zb16t3, 8px);
212
212
  }
213
213
 
214
- .awsui_wrapper_gwq0h_18mml_188:not(#\9) {
214
+ .awsui_wrapper_gwq0h_xgtm9_188:not(#\9) {
215
215
  box-sizing: border-box;
216
216
  border: none;
217
217
  width: 100%;
218
218
  line-height: var(--font-body-m-line-height-5wv9x1, 20px);
219
219
  text-align: left;
220
220
  }
221
- .awsui_wrapper-default_gwq0h_18mml_195:not(#\9), .awsui_wrapper-footer_gwq0h_18mml_195:not(#\9) {
221
+ .awsui_wrapper-default_gwq0h_xgtm9_195:not(#\9), .awsui_wrapper-footer_gwq0h_xgtm9_195:not(#\9) {
222
222
  border: var(--border-divider-section-width-4ax5o2, 2px) solid transparent;
223
223
  }
224
- .awsui_wrapper-navigation_gwq0h_18mml_198:not(#\9) {
224
+ .awsui_wrapper-navigation_gwq0h_xgtm9_198:not(#\9) {
225
225
  border-left: var(--border-divider-section-width-4ax5o2, 2px) solid transparent;
226
226
  }
227
- .awsui_wrapper-navigation_gwq0h_18mml_198:not(#\9), .awsui_wrapper-container_gwq0h_18mml_201:not(#\9) {
227
+ .awsui_wrapper-navigation_gwq0h_xgtm9_198:not(#\9), .awsui_wrapper-container_gwq0h_xgtm9_201:not(#\9) {
228
228
  display: flex;
229
229
  font-weight: var(--font-heading-s-weight-02hnau, 700);
230
230
  }
231
- .awsui_wrapper-default_gwq0h_18mml_195:not(#\9), .awsui_wrapper-navigation_gwq0h_18mml_198:not(#\9), .awsui_wrapper-footer_gwq0h_18mml_195:not(#\9) {
231
+ .awsui_wrapper-default_gwq0h_xgtm9_195:not(#\9), .awsui_wrapper-navigation_gwq0h_xgtm9_198:not(#\9), .awsui_wrapper-footer_gwq0h_xgtm9_195:not(#\9) {
232
232
  color: var(--color-text-expandable-section-default-jh4jdf, #000716);
233
233
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
234
234
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
235
235
  font-size: var(--font-expandable-heading-size-93i095, 16px);
236
236
  letter-spacing: var(--font-heading-s-letter-spacing-ebpsb6, -0.005em);
237
237
  }
238
- .awsui_wrapper-default_gwq0h_18mml_195:not(#\9) {
238
+ .awsui_wrapper-default_gwq0h_xgtm9_195:not(#\9) {
239
239
  padding-top: var(--space-scaled-xxs-7597g1, 4px);
240
240
  padding-bottom: var(--space-scaled-xxs-7597g1, 4px);
241
241
  padding-right: var(--space-xxs-p8yyaw, 4px);
242
242
  }
243
- .awsui_wrapper-default_gwq0h_18mml_195.awsui_header-deprecated_gwq0h_18mml_217:not(#\9) {
243
+ .awsui_wrapper-default_gwq0h_xgtm9_195.awsui_header-deprecated_gwq0h_xgtm9_217:not(#\9) {
244
244
  padding-left: var(--space-xxs-p8yyaw, 4px);
245
245
  }
246
- .awsui_wrapper-default_gwq0h_18mml_195:not(#\9):not(.awsui_header-deprecated_gwq0h_18mml_217) {
246
+ .awsui_wrapper-default_gwq0h_xgtm9_195:not(#\9):not(.awsui_header-deprecated_gwq0h_xgtm9_217) {
247
247
  padding-left: calc(var(--space-xxs-p8yyaw, 4px) + calc(var(--size-icon-normal-0m1722, 16px) + (var(--font-body-m-line-height-5wv9x1, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px)));
248
248
  }
249
- .awsui_wrapper-footer_gwq0h_18mml_195:not(#\9) {
249
+ .awsui_wrapper-footer_gwq0h_xgtm9_195:not(#\9) {
250
250
  padding-top: var(--space-scaled-xxs-7597g1, 4px);
251
251
  padding-bottom: var(--space-scaled-xxs-7597g1, 4px);
252
252
  padding-right: 0;
253
253
  }
254
- .awsui_wrapper-footer_gwq0h_18mml_195.awsui_header-deprecated_gwq0h_18mml_217:not(#\9) {
254
+ .awsui_wrapper-footer_gwq0h_xgtm9_195.awsui_header-deprecated_gwq0h_xgtm9_217:not(#\9) {
255
255
  padding-left: 0;
256
256
  }
257
- .awsui_wrapper-footer_gwq0h_18mml_195:not(#\9):not(.awsui_header-deprecated_gwq0h_18mml_217) {
257
+ .awsui_wrapper-footer_gwq0h_xgtm9_195:not(#\9):not(.awsui_header-deprecated_gwq0h_xgtm9_217) {
258
258
  padding-left: calc(var(--size-icon-normal-0m1722, 16px) + (var(--font-body-m-line-height-5wv9x1, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
259
259
  }
260
- .awsui_wrapper-container_gwq0h_18mml_201:not(#\9) {
260
+ .awsui_wrapper-container_gwq0h_xgtm9_201:not(#\9) {
261
261
  padding-top: var(--space-container-header-top-5qav00, 12px);
262
262
  padding-bottom: var(--space-container-header-bottom-vj01hn, 8px);
263
263
  padding-right: var(--space-container-horizontal-wfukh3, 20px);
264
264
  }
265
- .awsui_wrapper-container_gwq0h_18mml_201.awsui_header-deprecated_gwq0h_18mml_217:not(#\9) {
265
+ .awsui_wrapper-container_gwq0h_xgtm9_201:not(#\9):not(.awsui_wrapper-expanded_gwq0h_xgtm9_239) {
266
+ padding-bottom: var(--space-container-header-top-5qav00, 12px);
267
+ }
268
+ .awsui_wrapper-container_gwq0h_xgtm9_201.awsui_header-deprecated_gwq0h_xgtm9_217:not(#\9) {
266
269
  padding-left: var(--space-container-horizontal-wfukh3, 20px);
267
270
  }
268
- .awsui_wrapper-container_gwq0h_18mml_201:not(#\9):not(.awsui_header-deprecated_gwq0h_18mml_217) {
271
+ .awsui_wrapper-container_gwq0h_xgtm9_201:not(#\9):not(.awsui_header-deprecated_gwq0h_xgtm9_217) {
269
272
  padding-left: calc(var(--space-container-horizontal-wfukh3, 20px) + calc(var(--size-icon-medium-y9xuoq, 20px) + (var(--font-body-m-line-height-5wv9x1, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xs-zb16t3, 8px)));
270
273
  }
271
- body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_18mml_201:not(#\9):focus {
274
+ body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_xgtm9_201:not(#\9):focus {
272
275
  padding: calc(var(--space-scaled-s-aqzyko, 12px) - var(--border-divider-section-width-4ax5o2, 2px)) calc(var(--space-l-t419sm, 20px) - var(--border-divider-section-width-4ax5o2, 2px));
273
276
  }
274
- .awsui_wrapper-default_gwq0h_18mml_195.awsui_wrapper-expanded_gwq0h_18mml_248:not(#\9) {
277
+ .awsui_wrapper-default_gwq0h_xgtm9_195.awsui_wrapper-expanded_gwq0h_xgtm9_239:not(#\9) {
275
278
  border-bottom-color: var(--color-border-divider-default-d3adp9, #e9ebed);
276
279
  }
277
280
 
278
- .awsui_header_gwq0h_18mml_217:not(#\9) {
281
+ .awsui_header_gwq0h_xgtm9_217:not(#\9) {
279
282
  /* used in test-utils */
280
283
  }
281
- .awsui_header-wrapper_gwq0h_18mml_255:not(#\9), .awsui_header-deprecated_gwq0h_18mml_217:not(#\9) {
284
+ .awsui_header-wrapper_gwq0h_xgtm9_258:not(#\9), .awsui_header-deprecated_gwq0h_xgtm9_217:not(#\9) {
282
285
  display: flex;
283
286
  font-weight: var(--font-heading-s-weight-02hnau, 700);
284
287
  }
285
- .awsui_header-wrapper_gwq0h_18mml_255:not(#\9) {
288
+ .awsui_header-wrapper_gwq0h_xgtm9_258:not(#\9) {
286
289
  font-size: inherit;
287
290
  letter-spacing: inherit;
288
291
  margin: 0;
289
292
  padding: 0;
290
293
  }
291
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_18mml_265:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_18mml_265:not(#\9):focus {
294
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_xgtm9_268:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_xgtm9_268:not(#\9):focus {
292
295
  position: relative;
293
296
  }
294
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_18mml_265:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_18mml_265:not(#\9):focus {
297
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_xgtm9_268:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_xgtm9_268:not(#\9):focus {
295
298
  outline: 2px dotted transparent;
296
299
  outline-offset: calc(0px - 1px);
297
300
  }
298
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_18mml_265:not(#\9):focus::before, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_18mml_265:not(#\9):focus::before {
301
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_xgtm9_268:not(#\9):focus::before, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_xgtm9_268:not(#\9):focus::before {
299
302
  content: " ";
300
303
  display: block;
301
304
  position: absolute;
@@ -306,21 +309,21 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_18mml_265:not(#\9
306
309
  border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
307
310
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
308
311
  }
309
- .awsui_header-button_gwq0h_18mml_265:not(#\9) {
312
+ .awsui_header-button_gwq0h_xgtm9_268:not(#\9) {
310
313
  box-sizing: border-box;
311
314
  display: flex;
312
315
  margin-left: calc(-1 * calc(var(--size-icon-normal-0m1722, 16px) + (var(--font-body-m-line-height-5wv9x1, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px)));
313
316
  }
314
- .awsui_header-container-button_gwq0h_18mml_265:not(#\9) {
317
+ .awsui_header-container-button_gwq0h_xgtm9_268:not(#\9) {
315
318
  margin-left: calc(-1 * calc(var(--size-icon-medium-y9xuoq, 20px) + (var(--font-body-m-line-height-5wv9x1, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xs-zb16t3, 8px)));
316
319
  }
317
- .awsui_header-container_gwq0h_18mml_265:not(#\9) {
320
+ .awsui_header-container_gwq0h_xgtm9_268:not(#\9) {
318
321
  width: 100%;
319
322
  }
320
- .awsui_header-container_gwq0h_18mml_265 > .awsui_icon-container_gwq0h_18mml_179:not(#\9) {
323
+ .awsui_header-container_gwq0h_xgtm9_268 > .awsui_icon-container_gwq0h_xgtm9_179:not(#\9) {
321
324
  margin-top: var(--space-expandable-section-icon-offset-top-ekk5vc, 4px);
322
325
  }
323
- .awsui_header-navigation_gwq0h_18mml_297 > .awsui_icon-container_gwq0h_18mml_179:not(#\9) {
326
+ .awsui_header-navigation_gwq0h_xgtm9_300 > .awsui_icon-container_gwq0h_xgtm9_179:not(#\9) {
324
327
  display: inline-flex;
325
328
  cursor: pointer;
326
329
  color: var(--color-text-expandable-section-navigation-icon-default-htcovl, #414d5c);
@@ -331,17 +334,17 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_18mml_265:not(#\9
331
334
  text-decoration: none;
332
335
  flex-direction: column;
333
336
  }
334
- .awsui_header-navigation_gwq0h_18mml_297 > .awsui_icon-container_gwq0h_18mml_179:not(#\9):hover {
337
+ .awsui_header-navigation_gwq0h_xgtm9_300 > .awsui_icon-container_gwq0h_xgtm9_179:not(#\9):hover {
335
338
  color: var(--color-text-expandable-section-hover-pfe4fw, #0972d3);
336
339
  }
337
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_18mml_297 > .awsui_icon-container_gwq0h_18mml_179:not(#\9):focus {
340
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_xgtm9_300 > .awsui_icon-container_gwq0h_xgtm9_179:not(#\9):focus {
338
341
  position: relative;
339
342
  }
340
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_18mml_297 > .awsui_icon-container_gwq0h_18mml_179:not(#\9):focus {
343
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_xgtm9_300 > .awsui_icon-container_gwq0h_xgtm9_179:not(#\9):focus {
341
344
  outline: 2px dotted transparent;
342
345
  outline-offset: calc(2px - 1px);
343
346
  }
344
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_18mml_297 > .awsui_icon-container_gwq0h_18mml_179:not(#\9):focus::before {
347
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_xgtm9_300 > .awsui_icon-container_gwq0h_xgtm9_179:not(#\9):focus::before {
345
348
  content: " ";
346
349
  display: block;
347
350
  position: absolute;
@@ -352,37 +355,37 @@ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_18mml_297 > .
352
355
  border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
353
356
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
354
357
  }
355
- .awsui_header-text_gwq0h_18mml_329:not(#\9) {
358
+ .awsui_header-text_gwq0h_xgtm9_332:not(#\9) {
356
359
  /* used in test-utils */
357
360
  }
358
361
 
359
- .awsui_content_gwq0h_18mml_97:not(#\9) {
362
+ .awsui_content_gwq0h_xgtm9_97:not(#\9) {
360
363
  display: none;
361
364
  }
362
- .awsui_content-default_gwq0h_18mml_336:not(#\9) {
365
+ .awsui_content-default_gwq0h_xgtm9_339:not(#\9) {
363
366
  padding: var(--space-scaled-xs-26e2du, 8px) 0;
364
367
  }
365
- .awsui_content-footer_gwq0h_18mml_339:not(#\9) {
368
+ .awsui_content-footer_gwq0h_xgtm9_342:not(#\9) {
366
369
  padding: var(--space-xs-zb16t3, 8px) 0;
367
370
  }
368
- .awsui_content-expanded_gwq0h_18mml_342:not(#\9) {
371
+ .awsui_content-expanded_gwq0h_xgtm9_345:not(#\9) {
369
372
  display: block;
370
373
  }
371
374
 
372
- .awsui_focusable_gwq0h_18mml_346:not(#\9):focus {
375
+ .awsui_focusable_gwq0h_xgtm9_349:not(#\9):focus {
373
376
  outline: none;
374
377
  text-decoration: none;
375
378
  }
376
- body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_18mml_346:not(#\9):focus {
379
+ body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_xgtm9_349:not(#\9):focus {
377
380
  outline: 2px dotted transparent;
378
381
  border: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-focused-b2ntyl, #0972d3);
379
382
  border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
380
383
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
381
384
  }
382
385
 
383
- .awsui_click-target_gwq0h_18mml_357:not(#\9) {
386
+ .awsui_click-target_gwq0h_xgtm9_360:not(#\9) {
384
387
  cursor: pointer;
385
388
  }
386
- .awsui_click-target_gwq0h_18mml_357:not(#\9):not(.awsui_wrapper-container_gwq0h_18mml_201):not(.awsui_header-container-button_gwq0h_18mml_265):hover {
389
+ .awsui_click-target_gwq0h_xgtm9_360:not(#\9):not(.awsui_wrapper-container_gwq0h_xgtm9_201):not(.awsui_header-container-button_gwq0h_xgtm9_268):hover {
387
390
  color: var(--color-text-expandable-section-hover-pfe4fw, #0972d3);
388
391
  }
@@ -2,34 +2,34 @@
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_gwq0h_18mml_97",
6
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_18mml_1",
7
- "trigger-expanded": "awsui_trigger-expanded_gwq0h_18mml_119",
8
- "icon": "awsui_icon_gwq0h_18mml_133",
9
- "root": "awsui_root_gwq0h_18mml_151",
10
- "expand-button": "awsui_expand-button_gwq0h_18mml_168",
11
- "expanded": "awsui_expanded_gwq0h_18mml_175",
12
- "icon-container": "awsui_icon-container_gwq0h_18mml_179",
13
- "icon-container-container": "awsui_icon-container-container_gwq0h_18mml_184",
14
- "wrapper": "awsui_wrapper_gwq0h_18mml_188",
15
- "wrapper-default": "awsui_wrapper-default_gwq0h_18mml_195",
16
- "wrapper-footer": "awsui_wrapper-footer_gwq0h_18mml_195",
17
- "wrapper-navigation": "awsui_wrapper-navigation_gwq0h_18mml_198",
18
- "wrapper-container": "awsui_wrapper-container_gwq0h_18mml_201",
19
- "header-deprecated": "awsui_header-deprecated_gwq0h_18mml_217",
20
- "wrapper-expanded": "awsui_wrapper-expanded_gwq0h_18mml_248",
21
- "header": "awsui_header_gwq0h_18mml_217",
22
- "header-wrapper": "awsui_header-wrapper_gwq0h_18mml_255",
23
- "header-button": "awsui_header-button_gwq0h_18mml_265",
24
- "header-container-button": "awsui_header-container-button_gwq0h_18mml_265",
25
- "header-container": "awsui_header-container_gwq0h_18mml_265",
26
- "header-navigation": "awsui_header-navigation_gwq0h_18mml_297",
27
- "header-text": "awsui_header-text_gwq0h_18mml_329",
28
- "content": "awsui_content_gwq0h_18mml_97",
29
- "content-default": "awsui_content-default_gwq0h_18mml_336",
30
- "content-footer": "awsui_content-footer_gwq0h_18mml_339",
31
- "content-expanded": "awsui_content-expanded_gwq0h_18mml_342",
32
- "focusable": "awsui_focusable_gwq0h_18mml_346",
33
- "click-target": "awsui_click-target_gwq0h_18mml_357"
5
+ "content-enter": "awsui_content-enter_gwq0h_xgtm9_97",
6
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_xgtm9_1",
7
+ "trigger-expanded": "awsui_trigger-expanded_gwq0h_xgtm9_119",
8
+ "icon": "awsui_icon_gwq0h_xgtm9_133",
9
+ "root": "awsui_root_gwq0h_xgtm9_151",
10
+ "expand-button": "awsui_expand-button_gwq0h_xgtm9_168",
11
+ "expanded": "awsui_expanded_gwq0h_xgtm9_175",
12
+ "icon-container": "awsui_icon-container_gwq0h_xgtm9_179",
13
+ "icon-container-container": "awsui_icon-container-container_gwq0h_xgtm9_184",
14
+ "wrapper": "awsui_wrapper_gwq0h_xgtm9_188",
15
+ "wrapper-default": "awsui_wrapper-default_gwq0h_xgtm9_195",
16
+ "wrapper-footer": "awsui_wrapper-footer_gwq0h_xgtm9_195",
17
+ "wrapper-navigation": "awsui_wrapper-navigation_gwq0h_xgtm9_198",
18
+ "wrapper-container": "awsui_wrapper-container_gwq0h_xgtm9_201",
19
+ "header-deprecated": "awsui_header-deprecated_gwq0h_xgtm9_217",
20
+ "wrapper-expanded": "awsui_wrapper-expanded_gwq0h_xgtm9_239",
21
+ "header": "awsui_header_gwq0h_xgtm9_217",
22
+ "header-wrapper": "awsui_header-wrapper_gwq0h_xgtm9_258",
23
+ "header-button": "awsui_header-button_gwq0h_xgtm9_268",
24
+ "header-container-button": "awsui_header-container-button_gwq0h_xgtm9_268",
25
+ "header-container": "awsui_header-container_gwq0h_xgtm9_268",
26
+ "header-navigation": "awsui_header-navigation_gwq0h_xgtm9_300",
27
+ "header-text": "awsui_header-text_gwq0h_xgtm9_332",
28
+ "content": "awsui_content_gwq0h_xgtm9_97",
29
+ "content-default": "awsui_content-default_gwq0h_xgtm9_339",
30
+ "content-footer": "awsui_content-footer_gwq0h_xgtm9_342",
31
+ "content-expanded": "awsui_content-expanded_gwq0h_xgtm9_345",
32
+ "focusable": "awsui_focusable_gwq0h_xgtm9_349",
33
+ "click-target": "awsui_click-target_gwq0h_xgtm9_360"
34
34
  };
35
35
 
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible-flashbar.d.ts","sourceRoot":"lib/default/","sources":["flashbar/collapsible-flashbar.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAiB7C,OAAO,EAAE,aAAa,EAAE,CAAC;AAQzB,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,EAAE,aAAa,eA6TjF"}
1
+ {"version":3,"file":"collapsible-flashbar.d.ts","sourceRoot":"lib/default/","sources":["flashbar/collapsible-flashbar.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAiB7C,OAAO,EAAE,aAAa,EAAE,CAAC;AAQzB,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,EAAE,aAAa,eA8TjF"}
@@ -186,7 +186,7 @@ export default function CollapsibleFlashbar(_a) {
186
186
  // eslint-disable-next-line react/forbid-component-props
187
187
  , Object.assign({
188
188
  // eslint-disable-next-line react/forbid-component-props
189
- className: clsx(animateFlash && styles['flash-with-motion'], isVisualRefresh && styles['flash-refresh']), key: getItemId(item), ref: shouldUseStandardAnimation(item, index) ? transitionRootElement : undefined, transitionState: shouldUseStandardAnimation(item, index) ? state : undefined }, item)))));
189
+ className: clsx(animateFlash && styles['flash-with-motion'], isVisualRefresh && styles['flash-refresh']), key: getItemId(item), ref: shouldUseStandardAnimation(item, index) ? transitionRootElement : undefined, transitionState: shouldUseStandardAnimation(item, index) ? state : undefined, i18nStrings: iconAriaLabels }, item)))));
190
190
  }))))));
191
191
  return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.flashbar, styles[`breakpoint-${breakpoint}`], styles.stack, isCollapsible && styles.collapsible, items.length === 2 && styles['short-list'], isFlashbarStackExpanded && styles.expanded, isVisualRefresh && styles['visual-refresh']), ref: mergedRef }),
192
192
  React.createElement(React.Fragment, null,
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible-flashbar.js","sourceRoot":"lib/default/","sources":["flashbar/collapsible-flashbar.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvF,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,wBAAwB,EAAiB,MAAM,SAAS,CAAC;AACjH,OAAO,EAAE,OAAO,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ACP;YACA,CAAC,uBAAuB,IAAI,UAAU,EAAE,CACxC,CACC,CACP,CAAC;AACJ,CAAC;AAED,MAAM,qBAAqB,GAAG,CAAC,EAC7B,QAAQ,EACR,KAAK,EACL,KAAK,GAKN,EAAE,EAAE;IACH,OAAO,CACL,8BAAM,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC;QACnC,4CAAkB,KAAK,EAAE,IAAI,EAAC,KAAK;YACjC,8BAAM,KAAK,EAAE,KAAK,iBAAc,MAAM;gBACpC,oBAAC,YAAY,IAAC,IAAI,EAAE,QAAQ,GAAI,CAC3B,CACF;QACP,8BAAM,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,IAAG,KAAK,CAAQ,CAClD,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { Flash, focusFlashById } from './flash';\nimport { FlashbarProps } from './interfaces';\nimport InternalIcon from '../icon/internal';\nimport { TransitionGroup } from 'react-transition-group';\nimport { Transition } from '../internal/components/transition';\nimport styles from './styles.css.js';\nimport { counterTypes, getFlashTypeCount, getItemColor, getVisibleCollapsedItems, StackableItem } from './utils';\nimport { animate, getDOMRects } from '../internal/animate';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { IconProps } from '../icon/interfaces';\nimport { sendToggleMetric } from './internal/analytics';\nimport { useFlashbar } from './common';\nimport { throttle } from '../internal/utils/throttle';\nimport { scrollElementIntoView } from '../internal/utils/scrollable-containers';\nimport { findUpUntil } from '../internal/utils/dom';\nimport { useInternalI18n } from '../i18n/context';\nimport { getVisualContextClassname } from '../internal/components/visual-context';\n\nexport { FlashbarProps };\n\n// If the number of items is equal or less than this value,\n// the toggle element will not be displayed and the Flashbar will look like a regular single-item Flashbar.\nconst maxNonCollapsibleItems = 1;\n\nconst resizeListenerThrottleDelay = 100;\n\nexport default function CollapsibleFlashbar({ items, ...restProps }: FlashbarProps) {\n const [enteringItems, setEnteringItems] = useState<ReadonlyArray<FlashbarProps.MessageDefinition>>([]);\n const [exitingItems, setExitingItems] = useState<ReadonlyArray<FlashbarProps.MessageDefinition>>([]);\n const [isFlashbarStackExpanded, setIsFlashbarStackExpanded] = useState(false);\n\n const getElementsToAnimate = useCallback(() => {\n const flashElements = isFlashbarStackExpanded ? expandedItemRefs.current : collapsedItemRefs.current;\n return { ...flashElements, notificationBar: notificationBarRef.current };\n }, [isFlashbarStackExpanded]);\n\n const prepareAnimations = useCallback(() => {\n const rects = getDOMRects(getElementsToAnimate());\n setInitialAnimationState(rects);\n }, [getElementsToAnimate]);\n\n const { baseProps, breakpoint, isReducedMotion, isVisualRefresh, mergedRef, ref } = useFlashbar({\n items,\n ...restProps,\n onItemsAdded: newItems => {\n setEnteringItems([...enteringItems, ...newItems]);\n },\n onItemsChanged: options => {\n // If not all items have ID, we can still animate collapse/expand transitions\n // because we can rely on each item's index in the original array,\n // but we can't do that when elements are added or removed, since the index changes.\n if (options?.allItemsHaveId && !options?.isReducedMotion) {\n prepareAnimations();\n }\n },\n onItemsRemoved: removedItems => {\n setExitingItems([...exitingItems, ...removedItems]);\n },\n });\n\n const collapsedItemRefs = useRef<Record<string | number, HTMLElement | null>>({});\n const expandedItemRefs = useRef<Record<string | number, HTMLElement | null>>({});\n const [initialAnimationState, setInitialAnimationState] = useState<Record<string | number, DOMRect> | null>(null);\n const listElementRef = useRef<HTMLUListElement | null>(null);\n const notificationBarRef = useRef<HTMLDivElement | null>(null);\n const [transitioning, setTransitioning] = useState(false);\n const flashbarElementId = useUniqueId('flashbar');\n const itemCountElementId = useUniqueId('item-count');\n\n if (items.length <= maxNonCollapsibleItems && isFlashbarStackExpanded) {\n setIsFlashbarStackExpanded(false);\n }\n\n const animateFlash = !isReducedMotion;\n\n function toggleCollapseExpand() {\n sendToggleMetric(items.length, !isFlashbarStackExpanded);\n if (!isReducedMotion) {\n prepareAnimations();\n }\n setIsFlashbarStackExpanded(prev => !prev);\n }\n\n useLayoutEffect(() => {\n if (isFlashbarStackExpanded && items?.length) {\n const mostRecentItem = items[0];\n if (mostRecentItem.id !== undefined) {\n focusFlashById(ref.current, mostRecentItem.id);\n }\n }\n // Run this after expanding, but not every time the items change.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isFlashbarStackExpanded]);\n\n const updateBottomSpacing = useMemo(\n () =>\n throttle(() => {\n // Allow vertical space between Flashbar and page bottom only when the Flashbar is reaching the end of the page,\n // otherwise avoid spacing with eventual sticky elements below.\n const listElement = listElementRef?.current;\n const flashbar = listElement?.parentElement;\n if (listElement && flashbar) {\n // Make sure the bottom padding is present when we make the calculations,\n // then we might decide to remove it or not.\n flashbar.classList.remove(styles.floating);\n const windowHeight = window.innerHeight;\n // Take the parent region into account if using the App Layout, because it might have additional margins.\n // Otherwise we use the Flashbar component for this calculation.\n const outerElement = findUpUntil(flashbar, element => element.getAttribute('role') === 'region') || flashbar;\n const applySpacing =\n isFlashbarStackExpanded && Math.ceil(outerElement.getBoundingClientRect().bottom) >= windowHeight;\n if (!applySpacing) {\n flashbar.classList.add(styles.floating);\n }\n }\n }, resizeListenerThrottleDelay),\n [isFlashbarStackExpanded]\n );\n\n useLayoutEffect(() => {\n window.addEventListener('resize', updateBottomSpacing);\n return () => {\n window.removeEventListener('resize', updateBottomSpacing);\n updateBottomSpacing.cancel();\n };\n }, [updateBottomSpacing]);\n\n const { i18nStrings } = restProps;\n\n const i18n = useInternalI18n('flashbar');\n const ariaLabel = i18n('i18nStrings.ariaLabel', i18nStrings?.ariaLabel);\n const notificationBarText = i18n('i18nStrings.notificationBarText', i18nStrings?.notificationBarText);\n const notificationBarAriaLabel = i18n('i18nStrings.notificationBarAriaLabel', i18nStrings?.notificationBarAriaLabel);\n const iconAriaLabels = {\n errorIconAriaLabel: i18n('i18nStrings.errorIconAriaLabel', i18nStrings?.errorIconAriaLabel),\n inProgressIconAriaLabel: i18n('i18nStrings.inProgressIconAriaLabel', i18nStrings?.inProgressIconAriaLabel),\n infoIconAriaLabel: i18n('i18nStrings.infoIconAriaLabel', i18nStrings?.infoIconAriaLabel),\n successIconAriaLabel: i18n('i18nStrings.successIconAriaLabel', i18nStrings?.successIconAriaLabel),\n warningIconAriaLabel: i18n('i18nStrings.warningIconAriaLabel', i18nStrings?.warningIconAriaLabel),\n };\n\n useLayoutEffect(() => {\n // When `useLayoutEffect` is called, the DOM is updated but has not been painted yet,\n // so it's a good moment to trigger animations that will make calculations based on old and new DOM state.\n // The old state is kept in `initialAnimationState`\n // and the new state can be retrieved from the current DOM elements.\n\n if (initialAnimationState) {\n updateBottomSpacing();\n\n animate({\n elements: getElementsToAnimate(),\n oldState: initialAnimationState,\n newElementInitialState: ({ top }) => ({ scale: 0.9, y: -0.2 * top }),\n onTransitionsEnd: () => setTransitioning(false),\n });\n\n // When collapsing, scroll up if necessary to avoid losing track of the focused button\n if (!isFlashbarStackExpanded && notificationBarRef.current) {\n scrollElementIntoView(notificationBarRef.current);\n }\n\n setTransitioning(true);\n setInitialAnimationState(null);\n }\n }, [updateBottomSpacing, getElementsToAnimate, initialAnimationState, isFlashbarStackExpanded]);\n\n const isCollapsible = items.length > maxNonCollapsibleItems;\n\n const countByType = getFlashTypeCount(items);\n\n const numberOfColorsInStack = new Set(items.map(getItemColor)).size;\n const maxSlots = Math.max(numberOfColorsInStack, 3);\n const stackDepth = Math.min(maxSlots, items.length);\n\n const itemsToShow = isFlashbarStackExpanded\n ? items.map((item, index) => ({ ...item, expandedIndex: index }))\n : getVisibleCollapsedItems(items, stackDepth).map((item: StackableItem, index: number) => ({\n ...item,\n collapsedIndex: index,\n }));\n\n const getItemId = (item: StackableItem | FlashbarProps.MessageDefinition) =>\n item.id ?? (item as StackableItem).expandedIndex ?? 0;\n\n // This check allows us to use the standard \"enter\" Transition only when the notification was not existing before.\n // If instead it was moved to the top of the stack but was already present in the array\n // (e.g, after dismissing another notification),\n // we need to use different, more custom and more controlled animations.\n const hasEntered = (item: StackableItem | FlashbarProps.MessageDefinition) =>\n enteringItems.some(_item => _item.id && _item.id === item.id);\n const hasLeft = (item: StackableItem | FlashbarProps.MessageDefinition) => !('expandedIndex' in item);\n const hasEnteredOrLeft = (item: StackableItem | FlashbarProps.MessageDefinition) => hasEntered(item) || hasLeft(item);\n\n const showInnerContent = (item: StackableItem | FlashbarProps.MessageDefinition) =>\n isFlashbarStackExpanded || hasLeft(item) || ('expandedIndex' in item && item.expandedIndex === 0);\n\n const shouldUseStandardAnimation = (item: StackableItem, index: number) => index === 0 && hasEnteredOrLeft(item);\n\n const getAnimationElementId = (item: StackableItem) => `flash-${getItemId(item)}`;\n\n const renderList = () => (\n <ul\n ref={listElementRef}\n className={clsx(\n styles['flash-list'],\n isFlashbarStackExpanded ? styles.expanded : styles.collapsed,\n transitioning && styles['animation-running'],\n initialAnimationState && styles['animation-ready'],\n isVisualRefresh && styles['visual-refresh']\n )}\n id={flashbarElementId}\n aria-label={ariaLabel}\n aria-describedby={isCollapsible ? itemCountElementId : undefined}\n style={\n !isFlashbarStackExpanded || transitioning\n ? {\n [customCssProps.flashbarStackDepth]: stackDepth,\n }\n : undefined\n }\n >\n <TransitionGroup component={null}>\n {itemsToShow.map((item: StackableItem, index: number) => (\n <Transition\n key={getItemId(item)}\n in={!hasLeft(item)}\n onStatusChange={status => {\n if (status === 'entered') {\n setEnteringItems([]);\n } else if (status === 'exited') {\n setExitingItems([]);\n }\n }}\n >\n {(state: string, transitionRootElement: React.Ref<HTMLDivElement> | undefined) => (\n <li\n aria-hidden={!showInnerContent(item)}\n className={\n showInnerContent(item)\n ? clsx(\n styles['flash-list-item'],\n !isFlashbarStackExpanded && styles.item,\n !collapsedItemRefs.current[getAnimationElementId(item)] && styles['expanded-only']\n )\n : clsx(styles.flash, styles[`flash-type-${item.type ?? 'info'}`], styles.item)\n }\n ref={element => {\n if (isFlashbarStackExpanded) {\n expandedItemRefs.current[getAnimationElementId(item)] = element;\n } else {\n collapsedItemRefs.current[getAnimationElementId(item)] = element;\n }\n }}\n style={\n !isFlashbarStackExpanded || transitioning\n ? {\n [customCssProps.flashbarStackIndex]:\n (item as StackableItem).collapsedIndex ?? (item as StackableItem).expandedIndex ?? index,\n }\n : undefined\n }\n key={getItemId(item)}\n >\n {showInnerContent(item) && (\n <Flash\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(\n animateFlash && styles['flash-with-motion'],\n isVisualRefresh && styles['flash-refresh']\n )}\n key={getItemId(item)}\n ref={shouldUseStandardAnimation(item, index) ? transitionRootElement : undefined}\n transitionState={shouldUseStandardAnimation(item, index) ? state : undefined}\n {...item}\n />\n )}\n </li>\n )}\n </Transition>\n ))}\n </TransitionGroup>\n </ul>\n );\n\n return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.flashbar,\n styles[`breakpoint-${breakpoint}`],\n styles.stack,\n isCollapsible && styles.collapsible,\n items.length === 2 && styles['short-list'],\n isFlashbarStackExpanded && styles.expanded,\n isVisualRefresh && styles['visual-refresh']\n )}\n ref={mergedRef}\n >\n <>\n {isFlashbarStackExpanded && renderList()}\n {isCollapsible && (\n <div\n className={clsx(\n styles['notification-bar'],\n isVisualRefresh && styles['visual-refresh'],\n isFlashbarStackExpanded ? styles.expanded : styles.collapsed,\n transitioning && styles['animation-running'],\n items.length === 2 && styles['short-list'],\n getVisualContextClassname('flashbar') // Visual context is needed for focus ring to be white\n )}\n onClick={toggleCollapseExpand}\n ref={notificationBarRef}\n >\n <span aria-live=\"polite\" className={styles.status} role=\"status\" id={itemCountElementId}>\n {notificationBarText && <h2 className={styles.header}>{notificationBarText}</h2>}\n <span className={styles['item-count']}>\n {counterTypes.map(({ type, labelName, iconName }) => (\n <NotificationTypeCount\n key={type}\n iconName={iconName}\n label={iconAriaLabels[labelName]}\n count={countByType[type]}\n />\n ))}\n </span>\n </span>\n <button\n aria-controls={flashbarElementId}\n aria-describedby={itemCountElementId}\n aria-expanded={isFlashbarStackExpanded}\n aria-label={notificationBarAriaLabel}\n className={clsx(styles.button, isFlashbarStackExpanded && styles.expanded)}\n >\n <InternalIcon className={styles.icon} size=\"normal\" name=\"angle-down\" />\n </button>\n </div>\n )}\n {!isFlashbarStackExpanded && renderList()}\n </>\n </div>\n );\n}\n\nconst NotificationTypeCount = ({\n iconName,\n label,\n count,\n}: {\n iconName: IconProps.Name;\n label?: string;\n count: number;\n}) => {\n return (\n <span className={styles['type-count']}>\n <span aria-label={label} role=\"img\">\n <span title={label} aria-hidden=\"true\">\n <InternalIcon name={iconName} />\n </span>\n </span>\n <span className={styles['count-number']}>{count}</span>\n </span>\n );\n};\n"]}
1
+ {"version":3,"file":"collapsible-flashbar.js","sourceRoot":"lib/default/","sources":["flashbar/collapsible-flashbar.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvF,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,wBAAwB,EAAiB,MAAM,SAAS,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBA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C7B,QAAQ,EACR,KAAK,EACL,KAAK,GAKN,EAAE,EAAE;IACH,OAAO,CACL,8BAAM,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC;QACnC,4CAAkB,KAAK,EAAE,IAAI,EAAC,KAAK;YACjC,8BAAM,KAAK,EAAE,KAAK,iBAAc,MAAM;gBACpC,oBAAC,YAAY,IAAC,IAAI,EAAE,QAAQ,GAAI,CAC3B,CACF;QACP,8BAAM,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,IAAG,KAAK,CAAQ,CAClD,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { Flash, focusFlashById } from './flash';\nimport { FlashbarProps } from './interfaces';\nimport InternalIcon from '../icon/internal';\nimport { TransitionGroup } from 'react-transition-group';\nimport { Transition } from '../internal/components/transition';\nimport styles from './styles.css.js';\nimport { counterTypes, getFlashTypeCount, getItemColor, getVisibleCollapsedItems, StackableItem } from './utils';\nimport { animate, getDOMRects } from '../internal/animate';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { IconProps } from '../icon/interfaces';\nimport { sendToggleMetric } from './internal/analytics';\nimport { useFlashbar } from './common';\nimport { throttle } from '../internal/utils/throttle';\nimport { scrollElementIntoView } from '../internal/utils/scrollable-containers';\nimport { findUpUntil } from '../internal/utils/dom';\nimport { useInternalI18n } from '../i18n/context';\nimport { getVisualContextClassname } from '../internal/components/visual-context';\n\nexport { FlashbarProps };\n\n// If the number of items is equal or less than this value,\n// the toggle element will not be displayed and the Flashbar will look like a regular single-item Flashbar.\nconst maxNonCollapsibleItems = 1;\n\nconst resizeListenerThrottleDelay = 100;\n\nexport default function CollapsibleFlashbar({ items, ...restProps }: FlashbarProps) {\n const [enteringItems, setEnteringItems] = useState<ReadonlyArray<FlashbarProps.MessageDefinition>>([]);\n const [exitingItems, setExitingItems] = useState<ReadonlyArray<FlashbarProps.MessageDefinition>>([]);\n const [isFlashbarStackExpanded, setIsFlashbarStackExpanded] = useState(false);\n\n const getElementsToAnimate = useCallback(() => {\n const flashElements = isFlashbarStackExpanded ? expandedItemRefs.current : collapsedItemRefs.current;\n return { ...flashElements, notificationBar: notificationBarRef.current };\n }, [isFlashbarStackExpanded]);\n\n const prepareAnimations = useCallback(() => {\n const rects = getDOMRects(getElementsToAnimate());\n setInitialAnimationState(rects);\n }, [getElementsToAnimate]);\n\n const { baseProps, breakpoint, isReducedMotion, isVisualRefresh, mergedRef, ref } = useFlashbar({\n items,\n ...restProps,\n onItemsAdded: newItems => {\n setEnteringItems([...enteringItems, ...newItems]);\n },\n onItemsChanged: options => {\n // If not all items have ID, we can still animate collapse/expand transitions\n // because we can rely on each item's index in the original array,\n // but we can't do that when elements are added or removed, since the index changes.\n if (options?.allItemsHaveId && !options?.isReducedMotion) {\n prepareAnimations();\n }\n },\n onItemsRemoved: removedItems => {\n setExitingItems([...exitingItems, ...removedItems]);\n },\n });\n\n const collapsedItemRefs = useRef<Record<string | number, HTMLElement | null>>({});\n const expandedItemRefs = useRef<Record<string | number, HTMLElement | null>>({});\n const [initialAnimationState, setInitialAnimationState] = useState<Record<string | number, DOMRect> | null>(null);\n const listElementRef = useRef<HTMLUListElement | null>(null);\n const notificationBarRef = useRef<HTMLDivElement | null>(null);\n const [transitioning, setTransitioning] = useState(false);\n const flashbarElementId = useUniqueId('flashbar');\n const itemCountElementId = useUniqueId('item-count');\n\n if (items.length <= maxNonCollapsibleItems && isFlashbarStackExpanded) {\n setIsFlashbarStackExpanded(false);\n }\n\n const animateFlash = !isReducedMotion;\n\n function toggleCollapseExpand() {\n sendToggleMetric(items.length, !isFlashbarStackExpanded);\n if (!isReducedMotion) {\n prepareAnimations();\n }\n setIsFlashbarStackExpanded(prev => !prev);\n }\n\n useLayoutEffect(() => {\n if (isFlashbarStackExpanded && items?.length) {\n const mostRecentItem = items[0];\n if (mostRecentItem.id !== undefined) {\n focusFlashById(ref.current, mostRecentItem.id);\n }\n }\n // Run this after expanding, but not every time the items change.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isFlashbarStackExpanded]);\n\n const updateBottomSpacing = useMemo(\n () =>\n throttle(() => {\n // Allow vertical space between Flashbar and page bottom only when the Flashbar is reaching the end of the page,\n // otherwise avoid spacing with eventual sticky elements below.\n const listElement = listElementRef?.current;\n const flashbar = listElement?.parentElement;\n if (listElement && flashbar) {\n // Make sure the bottom padding is present when we make the calculations,\n // then we might decide to remove it or not.\n flashbar.classList.remove(styles.floating);\n const windowHeight = window.innerHeight;\n // Take the parent region into account if using the App Layout, because it might have additional margins.\n // Otherwise we use the Flashbar component for this calculation.\n const outerElement = findUpUntil(flashbar, element => element.getAttribute('role') === 'region') || flashbar;\n const applySpacing =\n isFlashbarStackExpanded && Math.ceil(outerElement.getBoundingClientRect().bottom) >= windowHeight;\n if (!applySpacing) {\n flashbar.classList.add(styles.floating);\n }\n }\n }, resizeListenerThrottleDelay),\n [isFlashbarStackExpanded]\n );\n\n useLayoutEffect(() => {\n window.addEventListener('resize', updateBottomSpacing);\n return () => {\n window.removeEventListener('resize', updateBottomSpacing);\n updateBottomSpacing.cancel();\n };\n }, [updateBottomSpacing]);\n\n const { i18nStrings } = restProps;\n\n const i18n = useInternalI18n('flashbar');\n const ariaLabel = i18n('i18nStrings.ariaLabel', i18nStrings?.ariaLabel);\n const notificationBarText = i18n('i18nStrings.notificationBarText', i18nStrings?.notificationBarText);\n const notificationBarAriaLabel = i18n('i18nStrings.notificationBarAriaLabel', i18nStrings?.notificationBarAriaLabel);\n const iconAriaLabels = {\n errorIconAriaLabel: i18n('i18nStrings.errorIconAriaLabel', i18nStrings?.errorIconAriaLabel),\n inProgressIconAriaLabel: i18n('i18nStrings.inProgressIconAriaLabel', i18nStrings?.inProgressIconAriaLabel),\n infoIconAriaLabel: i18n('i18nStrings.infoIconAriaLabel', i18nStrings?.infoIconAriaLabel),\n successIconAriaLabel: i18n('i18nStrings.successIconAriaLabel', i18nStrings?.successIconAriaLabel),\n warningIconAriaLabel: i18n('i18nStrings.warningIconAriaLabel', i18nStrings?.warningIconAriaLabel),\n };\n\n useLayoutEffect(() => {\n // When `useLayoutEffect` is called, the DOM is updated but has not been painted yet,\n // so it's a good moment to trigger animations that will make calculations based on old and new DOM state.\n // The old state is kept in `initialAnimationState`\n // and the new state can be retrieved from the current DOM elements.\n\n if (initialAnimationState) {\n updateBottomSpacing();\n\n animate({\n elements: getElementsToAnimate(),\n oldState: initialAnimationState,\n newElementInitialState: ({ top }) => ({ scale: 0.9, y: -0.2 * top }),\n onTransitionsEnd: () => setTransitioning(false),\n });\n\n // When collapsing, scroll up if necessary to avoid losing track of the focused button\n if (!isFlashbarStackExpanded && notificationBarRef.current) {\n scrollElementIntoView(notificationBarRef.current);\n }\n\n setTransitioning(true);\n setInitialAnimationState(null);\n }\n }, [updateBottomSpacing, getElementsToAnimate, initialAnimationState, isFlashbarStackExpanded]);\n\n const isCollapsible = items.length > maxNonCollapsibleItems;\n\n const countByType = getFlashTypeCount(items);\n\n const numberOfColorsInStack = new Set(items.map(getItemColor)).size;\n const maxSlots = Math.max(numberOfColorsInStack, 3);\n const stackDepth = Math.min(maxSlots, items.length);\n\n const itemsToShow = isFlashbarStackExpanded\n ? items.map((item, index) => ({ ...item, expandedIndex: index }))\n : getVisibleCollapsedItems(items, stackDepth).map((item: StackableItem, index: number) => ({\n ...item,\n collapsedIndex: index,\n }));\n\n const getItemId = (item: StackableItem | FlashbarProps.MessageDefinition) =>\n item.id ?? (item as StackableItem).expandedIndex ?? 0;\n\n // This check allows us to use the standard \"enter\" Transition only when the notification was not existing before.\n // If instead it was moved to the top of the stack but was already present in the array\n // (e.g, after dismissing another notification),\n // we need to use different, more custom and more controlled animations.\n const hasEntered = (item: StackableItem | FlashbarProps.MessageDefinition) =>\n enteringItems.some(_item => _item.id && _item.id === item.id);\n const hasLeft = (item: StackableItem | FlashbarProps.MessageDefinition) => !('expandedIndex' in item);\n const hasEnteredOrLeft = (item: StackableItem | FlashbarProps.MessageDefinition) => hasEntered(item) || hasLeft(item);\n\n const showInnerContent = (item: StackableItem | FlashbarProps.MessageDefinition) =>\n isFlashbarStackExpanded || hasLeft(item) || ('expandedIndex' in item && item.expandedIndex === 0);\n\n const shouldUseStandardAnimation = (item: StackableItem, index: number) => index === 0 && hasEnteredOrLeft(item);\n\n const getAnimationElementId = (item: StackableItem) => `flash-${getItemId(item)}`;\n\n const renderList = () => (\n <ul\n ref={listElementRef}\n className={clsx(\n styles['flash-list'],\n isFlashbarStackExpanded ? styles.expanded : styles.collapsed,\n transitioning && styles['animation-running'],\n initialAnimationState && styles['animation-ready'],\n isVisualRefresh && styles['visual-refresh']\n )}\n id={flashbarElementId}\n aria-label={ariaLabel}\n aria-describedby={isCollapsible ? itemCountElementId : undefined}\n style={\n !isFlashbarStackExpanded || transitioning\n ? {\n [customCssProps.flashbarStackDepth]: stackDepth,\n }\n : undefined\n }\n >\n <TransitionGroup component={null}>\n {itemsToShow.map((item: StackableItem, index: number) => (\n <Transition\n key={getItemId(item)}\n in={!hasLeft(item)}\n onStatusChange={status => {\n if (status === 'entered') {\n setEnteringItems([]);\n } else if (status === 'exited') {\n setExitingItems([]);\n }\n }}\n >\n {(state: string, transitionRootElement: React.Ref<HTMLDivElement> | undefined) => (\n <li\n aria-hidden={!showInnerContent(item)}\n className={\n showInnerContent(item)\n ? clsx(\n styles['flash-list-item'],\n !isFlashbarStackExpanded && styles.item,\n !collapsedItemRefs.current[getAnimationElementId(item)] && styles['expanded-only']\n )\n : clsx(styles.flash, styles[`flash-type-${item.type ?? 'info'}`], styles.item)\n }\n ref={element => {\n if (isFlashbarStackExpanded) {\n expandedItemRefs.current[getAnimationElementId(item)] = element;\n } else {\n collapsedItemRefs.current[getAnimationElementId(item)] = element;\n }\n }}\n style={\n !isFlashbarStackExpanded || transitioning\n ? {\n [customCssProps.flashbarStackIndex]:\n (item as StackableItem).collapsedIndex ?? (item as StackableItem).expandedIndex ?? index,\n }\n : undefined\n }\n key={getItemId(item)}\n >\n {showInnerContent(item) && (\n <Flash\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(\n animateFlash && styles['flash-with-motion'],\n isVisualRefresh && styles['flash-refresh']\n )}\n key={getItemId(item)}\n ref={shouldUseStandardAnimation(item, index) ? transitionRootElement : undefined}\n transitionState={shouldUseStandardAnimation(item, index) ? state : undefined}\n i18nStrings={iconAriaLabels}\n {...item}\n />\n )}\n </li>\n )}\n </Transition>\n ))}\n </TransitionGroup>\n </ul>\n );\n\n return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.flashbar,\n styles[`breakpoint-${breakpoint}`],\n styles.stack,\n isCollapsible && styles.collapsible,\n items.length === 2 && styles['short-list'],\n isFlashbarStackExpanded && styles.expanded,\n isVisualRefresh && styles['visual-refresh']\n )}\n ref={mergedRef}\n >\n <>\n {isFlashbarStackExpanded && renderList()}\n {isCollapsible && (\n <div\n className={clsx(\n styles['notification-bar'],\n isVisualRefresh && styles['visual-refresh'],\n isFlashbarStackExpanded ? styles.expanded : styles.collapsed,\n transitioning && styles['animation-running'],\n items.length === 2 && styles['short-list'],\n getVisualContextClassname('flashbar') // Visual context is needed for focus ring to be white\n )}\n onClick={toggleCollapseExpand}\n ref={notificationBarRef}\n >\n <span aria-live=\"polite\" className={styles.status} role=\"status\" id={itemCountElementId}>\n {notificationBarText && <h2 className={styles.header}>{notificationBarText}</h2>}\n <span className={styles['item-count']}>\n {counterTypes.map(({ type, labelName, iconName }) => (\n <NotificationTypeCount\n key={type}\n iconName={iconName}\n label={iconAriaLabels[labelName]}\n count={countByType[type]}\n />\n ))}\n </span>\n </span>\n <button\n aria-controls={flashbarElementId}\n aria-describedby={itemCountElementId}\n aria-expanded={isFlashbarStackExpanded}\n aria-label={notificationBarAriaLabel}\n className={clsx(styles.button, isFlashbarStackExpanded && styles.expanded)}\n >\n <InternalIcon className={styles.icon} size=\"normal\" name=\"angle-down\" />\n </button>\n </div>\n )}\n {!isFlashbarStackExpanded && renderList()}\n </>\n </div>\n );\n}\n\nconst NotificationTypeCount = ({\n iconName,\n label,\n count,\n}: {\n iconName: IconProps.Name;\n label?: string;\n count: number;\n}) => {\n return (\n <span className={styles['type-count']}>\n <span aria-label={label} role=\"img\">\n <span title={label} aria-hidden=\"true\">\n <InternalIcon name={iconName} />\n </span>\n </span>\n <span className={styles['count-number']}>{count}</span>\n </span>\n );\n};\n"]}
@@ -4,6 +4,7 @@ export declare const focusFlashById: import("../internal/utils/throttle").Thrott
4
4
  export interface FlashProps extends FlashbarProps.MessageDefinition {
5
5
  className: string;
6
6
  transitionState?: string;
7
+ i18nStrings?: FlashbarProps.I18nStrings;
7
8
  }
8
9
  export declare const Flash: React.ForwardRefExoticComponent<FlashProps & React.RefAttributes<HTMLDivElement>>;
9
10
  //# sourceMappingURL=flash.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flash.d.ts","sourceRoot":"lib/default/","sources":["flashbar/flash.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAuD1B,eAAO,MAAM,cAAc,mEACf,WAAW,GAAG,IAAI,UAAU,MAAM,UAM7C,CAAC;AAEF,MAAM,WAAW,UAAW,SAAQ,aAAa,CAAC,iBAAiB;IACjE,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,mFAuGjB,CAAC"}
1
+ {"version":3,"file":"flash.d.ts","sourceRoot":"lib/default/","sources":["flashbar/flash.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAuD1B,eAAO,MAAM,cAAc,mEACf,WAAW,GAAG,IAAI,UAAU,MAAM,UAM7C,CAAC;AAEF,MAAM,WAAW,UAAW,SAAQ,aAAa,CAAC,iBAAiB;IACjE,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC;CACzC;AAED,eAAO,MAAM,KAAK,mFA2GjB,CAAC"}
package/flashbar/flash.js CHANGED
@@ -31,7 +31,7 @@ export const focusFlashById = throttle((element, itemId) => {
31
31
  const selector = `[data-itemid="${CSS.escape(itemId)}"] .${styles['flash-focus-container']}`;
32
32
  (_a = element === null || element === void 0 ? void 0 : element.querySelector(selector)) === null || _a === void 0 ? void 0 : _a.focus();
33
33
  }, FOCUS_THROTTLE_DELAY, { trailing: false });
34
- export const Flash = React.forwardRef(({ id, header, content, dismissible, dismissLabel, statusIconAriaLabel, loading, action, buttonText, onButtonClick, onDismiss, className, transitionState, ariaRole, type = 'info', }, ref) => {
34
+ export const Flash = React.forwardRef(({ id, header, content, dismissible, dismissLabel, statusIconAriaLabel, loading, action, buttonText, onButtonClick, onDismiss, className, transitionState, ariaRole, i18nStrings, type = 'info', }, ref) => {
35
35
  if (isDevelopment) {
36
36
  if (buttonText && !onButtonClick) {
37
37
  warnOnce('Flashbar', `You provided a \`buttonText\` prop without an \`onButtonClick\` handler. This will render a non-interactive action button.`);
@@ -64,7 +64,8 @@ export const Flash = React.forwardRef(({ id, header, content, dismissible, dismi
64
64
  }, getVisualContextClassname(type === 'warning' && !loading ? 'flashbar-warning' : 'flashbar')) }, analyticsAttributes),
65
65
  React.createElement("div", { className: styles['flash-body'] },
66
66
  React.createElement("div", { className: styles['flash-focus-container'], tabIndex: -1 },
67
- React.createElement("div", { className: clsx(styles['flash-icon'], styles['flash-text']), role: "img", "aria-label": statusIconAriaLabel }, icon),
67
+ React.createElement("div", { className: clsx(styles['flash-icon'], styles['flash-text']), role: "img", "aria-label": statusIconAriaLabel ||
68
+ (i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings[`${loading || type === 'in-progress' ? 'inProgress' : type}IconAriaLabel`]) }, icon),
68
69
  React.createElement("div", { className: clsx(styles['flash-message'], styles['flash-text']) },
69
70
  React.createElement("div", { className: styles['flash-header'] }, header),
70
71
  React.createElement("div", { className: styles['flash-content'] }, content))),