@cloudscape-design/components-themeable 3.0.950 → 3.0.952
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/alert/styles.scss +1 -2
- package/lib/internal/scss/flashbar/styles.scss +1 -2
- package/lib/internal/scss/popover/styles.scss +1 -0
- package/lib/internal/template/alert/styles.css.js +27 -27
- package/lib/internal/template/alert/styles.scoped.css +40 -41
- package/lib/internal/template/alert/styles.selectors.js +27 -27
- package/lib/internal/template/app-layout/drawer/overflow-menu.d.ts.map +1 -1
- package/lib/internal/template/app-layout/drawer/overflow-menu.js +5 -4
- package/lib/internal/template/app-layout/drawer/overflow-menu.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +147 -148
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/internal/base-component/styles.scoped.css +28 -0
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +5 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +5 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +82 -1
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +40 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +40 -0
- package/lib/internal/template/internal/generated/theming/index.js +82 -1
- package/lib/internal/template/popover/styles.css.js +54 -54
- package/lib/internal/template/popover/styles.scoped.css +84 -77
- package/lib/internal/template/popover/styles.selectors.js +54 -54
- package/lib/internal/template/prompt-input/interfaces.d.ts +1 -0
- package/lib/internal/template/prompt-input/interfaces.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/interfaces.js.map +1 -1
- package/lib/internal/template/prompt-input/internal.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/internal.js +11 -3
- package/lib/internal/template/prompt-input/internal.js.map +1 -1
- package/package.json +1 -1
|
@@ -69,8 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
.alert-focus-wrapper {
|
|
71
71
|
flex: 1;
|
|
72
|
-
min-inline-size: 70%;
|
|
73
|
-
min-inline-size: calc-size(max-content, min(size, 70%));
|
|
72
|
+
min-inline-size: 70%;
|
|
74
73
|
display: grid;
|
|
75
74
|
grid-template-columns: min-content auto;
|
|
76
75
|
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"alert": "
|
|
5
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
6
|
-
"root": "
|
|
7
|
-
"hidden": "
|
|
8
|
-
"alert-wrapper": "awsui_alert-
|
|
9
|
-
"initial-hidden": "awsui_initial-
|
|
10
|
-
"header": "
|
|
11
|
-
"header-replacement": "awsui_header-
|
|
12
|
-
"action": "
|
|
13
|
-
"action-slot": "awsui_action-
|
|
14
|
-
"action-button": "awsui_action-
|
|
15
|
-
"alert-focus-wrapper": "awsui_alert-focus-
|
|
16
|
-
"text": "
|
|
17
|
-
"icon": "
|
|
18
|
-
"message": "
|
|
19
|
-
"action-wrapped": "awsui_action-
|
|
20
|
-
"icon-size-medium": "awsui_icon-size-
|
|
21
|
-
"icon-size-big": "awsui_icon-size-
|
|
22
|
-
"icon-size-normal": "awsui_icon-size-
|
|
23
|
-
"content": "
|
|
24
|
-
"content-replacement": "awsui_content-
|
|
25
|
-
"dismiss": "
|
|
26
|
-
"dismiss-button": "awsui_dismiss-
|
|
27
|
-
"type-error": "awsui_type-
|
|
28
|
-
"type-warning": "awsui_type-
|
|
29
|
-
"type-success": "awsui_type-
|
|
30
|
-
"type-info": "awsui_type-
|
|
4
|
+
"alert": "awsui_alert_mx3cw_i9lhn_193",
|
|
5
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_i9lhn_1",
|
|
6
|
+
"root": "awsui_root_mx3cw_i9lhn_215",
|
|
7
|
+
"hidden": "awsui_hidden_mx3cw_i9lhn_250",
|
|
8
|
+
"alert-wrapper": "awsui_alert-wrapper_mx3cw_i9lhn_298",
|
|
9
|
+
"initial-hidden": "awsui_initial-hidden_mx3cw_i9lhn_310",
|
|
10
|
+
"header": "awsui_header_mx3cw_i9lhn_315",
|
|
11
|
+
"header-replacement": "awsui_header-replacement_mx3cw_i9lhn_316",
|
|
12
|
+
"action": "awsui_action_mx3cw_i9lhn_320",
|
|
13
|
+
"action-slot": "awsui_action-slot_mx3cw_i9lhn_324",
|
|
14
|
+
"action-button": "awsui_action-button_mx3cw_i9lhn_325",
|
|
15
|
+
"alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_i9lhn_329",
|
|
16
|
+
"text": "awsui_text_mx3cw_i9lhn_360",
|
|
17
|
+
"icon": "awsui_icon_mx3cw_i9lhn_367",
|
|
18
|
+
"message": "awsui_message_mx3cw_i9lhn_370",
|
|
19
|
+
"action-wrapped": "awsui_action-wrapped_mx3cw_i9lhn_374",
|
|
20
|
+
"icon-size-medium": "awsui_icon-size-medium_mx3cw_i9lhn_378",
|
|
21
|
+
"icon-size-big": "awsui_icon-size-big_mx3cw_i9lhn_382",
|
|
22
|
+
"icon-size-normal": "awsui_icon-size-normal_mx3cw_i9lhn_386",
|
|
23
|
+
"content": "awsui_content_mx3cw_i9lhn_390",
|
|
24
|
+
"content-replacement": "awsui_content-replacement_mx3cw_i9lhn_391",
|
|
25
|
+
"dismiss": "awsui_dismiss_mx3cw_i9lhn_395",
|
|
26
|
+
"dismiss-button": "awsui_dismiss-button_mx3cw_i9lhn_400",
|
|
27
|
+
"type-error": "awsui_type-error_mx3cw_i9lhn_404",
|
|
28
|
+
"type-warning": "awsui_type-warning_mx3cw_i9lhn_412",
|
|
29
|
+
"type-success": "awsui_type-success_mx3cw_i9lhn_420",
|
|
30
|
+
"type-info": "awsui_type-info_mx3cw_i9lhn_428"
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -190,10 +190,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
191
191
|
SPDX-License-Identifier: Apache-2.0
|
|
192
192
|
*/
|
|
193
|
-
.
|
|
194
|
-
animation: awsui_awsui-motion-fade-
|
|
193
|
+
.awsui_alert_mx3cw_i9lhn_193:not(#\9) {
|
|
194
|
+
animation: awsui_awsui-motion-fade-in_mx3cw_i9lhn_1 var(--motion-duration-show-paced-kxd6k3, 180ms) var(--motion-easing-show-paced-2zwyek, ease-out);
|
|
195
195
|
}
|
|
196
|
-
@keyframes awsui_awsui-motion-fade-
|
|
196
|
+
@keyframes awsui_awsui-motion-fade-in_mx3cw_i9lhn_1 {
|
|
197
197
|
from {
|
|
198
198
|
opacity: 0.2;
|
|
199
199
|
}
|
|
@@ -202,17 +202,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
@media (prefers-reduced-motion: reduce) {
|
|
205
|
-
.
|
|
205
|
+
.awsui_alert_mx3cw_i9lhn_193:not(#\9) {
|
|
206
206
|
animation: none;
|
|
207
207
|
transition: none;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
.awsui-motion-disabled .
|
|
210
|
+
.awsui-motion-disabled .awsui_alert_mx3cw_i9lhn_193:not(#\9), .awsui-mode-entering .awsui_alert_mx3cw_i9lhn_193:not(#\9) {
|
|
211
211
|
animation: none;
|
|
212
212
|
transition: none;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
.
|
|
215
|
+
.awsui_root_mx3cw_i9lhn_215:not(#\9) {
|
|
216
216
|
border-collapse: separate;
|
|
217
217
|
border-spacing: 0;
|
|
218
218
|
box-sizing: border-box;
|
|
@@ -248,11 +248,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
248
248
|
overflow: hidden;
|
|
249
249
|
display: block;
|
|
250
250
|
}
|
|
251
|
-
.
|
|
251
|
+
.awsui_root_mx3cw_i9lhn_215.awsui_hidden_mx3cw_i9lhn_250:not(#\9) {
|
|
252
252
|
display: none;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
.
|
|
255
|
+
.awsui_alert_mx3cw_i9lhn_193:not(#\9) {
|
|
256
256
|
border-collapse: separate;
|
|
257
257
|
border-spacing: 0;
|
|
258
258
|
box-sizing: border-box;
|
|
@@ -297,7 +297,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
297
297
|
background-color: var(--color-background-container-content-myy7cn, #ffffff);
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
.awsui_alert-
|
|
300
|
+
.awsui_alert-wrapper_mx3cw_i9lhn_298:not(#\9) {
|
|
301
301
|
flex: 1;
|
|
302
302
|
display: flex;
|
|
303
303
|
flex-direction: row;
|
|
@@ -305,47 +305,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
305
305
|
column-gap: var(--space-alert-action-left-soet49, 20px);
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
.
|
|
308
|
+
.awsui_hidden_mx3cw_i9lhn_250:not(#\9) {
|
|
309
309
|
display: none;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
.awsui_initial-
|
|
312
|
+
.awsui_initial-hidden_mx3cw_i9lhn_310:not(#\9) {
|
|
313
313
|
overflow: hidden;
|
|
314
314
|
block-size: 0;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
.
|
|
318
|
-
.awsui_header-
|
|
317
|
+
.awsui_header_mx3cw_i9lhn_315:not(#\9),
|
|
318
|
+
.awsui_header-replacement_mx3cw_i9lhn_316:not(#\9) {
|
|
319
319
|
font-weight: 700;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
.
|
|
322
|
+
.awsui_action_mx3cw_i9lhn_320:not(#\9) {
|
|
323
323
|
white-space: nowrap;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
.awsui_action-
|
|
327
|
-
.awsui_action-
|
|
326
|
+
.awsui_action-slot_mx3cw_i9lhn_324:not(#\9),
|
|
327
|
+
.awsui_action-button_mx3cw_i9lhn_325:not(#\9) {
|
|
328
328
|
/* used in test-utils */
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
.awsui_alert-focus-
|
|
331
|
+
.awsui_alert-focus-wrapper_mx3cw_i9lhn_329:not(#\9) {
|
|
332
332
|
flex: 1;
|
|
333
333
|
min-inline-size: 70%;
|
|
334
|
-
min-inline-size: calc-size(max-content, min(size, 70%));
|
|
335
334
|
display: grid;
|
|
336
335
|
grid-template-columns: min-content auto;
|
|
337
336
|
}
|
|
338
|
-
.awsui_alert-focus-
|
|
337
|
+
.awsui_alert-focus-wrapper_mx3cw_i9lhn_329:not(#\9):focus {
|
|
339
338
|
outline: none;
|
|
340
339
|
}
|
|
341
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
340
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_i9lhn_329:not(#\9):focus {
|
|
342
341
|
position: relative;
|
|
343
342
|
}
|
|
344
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
343
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_i9lhn_329:not(#\9):focus {
|
|
345
344
|
outline: 2px dotted transparent;
|
|
346
345
|
outline-offset: calc(var(--space-button-focus-outline-gutter-90p0io, 3px) - 1px);
|
|
347
346
|
}
|
|
348
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
347
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_i9lhn_329:not(#\9):focus::before {
|
|
349
348
|
content: " ";
|
|
350
349
|
display: block;
|
|
351
350
|
position: absolute;
|
|
@@ -360,78 +359,78 @@ body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_o71dh_329:n
|
|
|
360
359
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-q68bgg, #0073bb);
|
|
361
360
|
}
|
|
362
361
|
|
|
363
|
-
.
|
|
362
|
+
.awsui_text_mx3cw_i9lhn_360:not(#\9) {
|
|
364
363
|
min-inline-size: 0;
|
|
365
364
|
padding-block: var(--border-width-alert-i75nxu, 1px);
|
|
366
365
|
padding-inline: 0;
|
|
367
366
|
margin-block: var(--space-scaled-xxs-krq5fq, 4px);
|
|
368
367
|
margin-inline: var(--space-xxs-y2432o, 4px);
|
|
369
368
|
}
|
|
370
|
-
.
|
|
369
|
+
.awsui_text_mx3cw_i9lhn_360.awsui_icon_mx3cw_i9lhn_367:not(#\9) {
|
|
371
370
|
margin-inline-start: 0;
|
|
372
371
|
}
|
|
373
|
-
.
|
|
372
|
+
.awsui_text_mx3cw_i9lhn_360.awsui_message_mx3cw_i9lhn_370:not(#\9) {
|
|
374
373
|
margin-inline-end: var(--space-alert-message-right-6y4tnf, 0px);
|
|
375
374
|
}
|
|
376
375
|
|
|
377
|
-
.awsui_action-
|
|
376
|
+
.awsui_action-wrapped_mx3cw_i9lhn_374:not(#\9) {
|
|
378
377
|
margin-block-end: var(--space-xxs-y2432o, 4px);
|
|
379
378
|
}
|
|
380
379
|
|
|
381
|
-
.awsui_icon-size-
|
|
380
|
+
.awsui_icon-size-medium_mx3cw_i9lhn_378 > .awsui_alert-wrapper_mx3cw_i9lhn_298 > .awsui_action-wrapped_mx3cw_i9lhn_374:not(#\9) {
|
|
382
381
|
margin-inline-start: calc(var(--size-icon-medium-r52788, 16px) + var(--space-xs-6dgkww, 8px));
|
|
383
382
|
}
|
|
384
383
|
|
|
385
|
-
.awsui_icon-size-
|
|
384
|
+
.awsui_icon-size-big_mx3cw_i9lhn_382 > .awsui_alert-wrapper_mx3cw_i9lhn_298 > .awsui_action-wrapped_mx3cw_i9lhn_374:not(#\9) {
|
|
386
385
|
margin-inline-start: calc(var(--size-icon-big-fdyugp, 32px) + var(--space-xs-6dgkww, 8px));
|
|
387
386
|
}
|
|
388
387
|
|
|
389
|
-
.awsui_icon-size-
|
|
388
|
+
.awsui_icon-size-normal_mx3cw_i9lhn_386 > .awsui_alert-wrapper_mx3cw_i9lhn_298 > .awsui_action-wrapped_mx3cw_i9lhn_374:not(#\9) {
|
|
390
389
|
margin-inline-start: calc(var(--size-icon-normal-19036g, 16px) + var(--space-xs-6dgkww, 8px));
|
|
391
390
|
}
|
|
392
391
|
|
|
393
|
-
.
|
|
394
|
-
.awsui_content-
|
|
392
|
+
.awsui_content_mx3cw_i9lhn_390:not(#\9),
|
|
393
|
+
.awsui_content-replacement_mx3cw_i9lhn_391:not(#\9) {
|
|
395
394
|
/* used in test-utils */
|
|
396
395
|
}
|
|
397
396
|
|
|
398
|
-
.
|
|
397
|
+
.awsui_dismiss_mx3cw_i9lhn_395:not(#\9) {
|
|
399
398
|
margin-inline-end: calc(-1 * var(--space-xxs-y2432o, 4px));
|
|
400
399
|
margin-inline-start: var(--space-s-vmutj3, 12px);
|
|
401
400
|
}
|
|
402
401
|
|
|
403
|
-
.awsui_dismiss-
|
|
402
|
+
.awsui_dismiss-button_mx3cw_i9lhn_400:not(#\9) {
|
|
404
403
|
/* used in test-utils */
|
|
405
404
|
}
|
|
406
405
|
|
|
407
|
-
.awsui_type-
|
|
406
|
+
.awsui_type-error_mx3cw_i9lhn_404:not(#\9) {
|
|
408
407
|
border-color: var(--color-border-status-error-5n723o, #d13212);
|
|
409
408
|
background-color: var(--color-background-status-error-ljmwh5, #fdf3f1);
|
|
410
409
|
}
|
|
411
|
-
.awsui_type-
|
|
410
|
+
.awsui_type-error_mx3cw_i9lhn_404 > .awsui_alert-wrapper_mx3cw_i9lhn_298 > .awsui_alert-focus-wrapper_mx3cw_i9lhn_329 > .awsui_icon_mx3cw_i9lhn_367:not(#\9) {
|
|
412
411
|
color: var(--color-text-status-error-p5bdwa, #d13212);
|
|
413
412
|
}
|
|
414
413
|
|
|
415
|
-
.awsui_type-
|
|
414
|
+
.awsui_type-warning_mx3cw_i9lhn_412:not(#\9) {
|
|
416
415
|
border-color: var(--color-border-status-warning-wkps52, #906806);
|
|
417
416
|
background-color: var(--color-background-status-warning-bqz9of, #fffef0);
|
|
418
417
|
}
|
|
419
|
-
.awsui_type-
|
|
418
|
+
.awsui_type-warning_mx3cw_i9lhn_412 > .awsui_alert-wrapper_mx3cw_i9lhn_298 > .awsui_alert-focus-wrapper_mx3cw_i9lhn_329 > .awsui_icon_mx3cw_i9lhn_367:not(#\9) {
|
|
420
419
|
color: var(--color-text-status-warning-3hbtsc, #906806);
|
|
421
420
|
}
|
|
422
421
|
|
|
423
|
-
.awsui_type-
|
|
422
|
+
.awsui_type-success_mx3cw_i9lhn_420:not(#\9) {
|
|
424
423
|
border-color: var(--color-border-status-success-acmcj0, #1d8102);
|
|
425
424
|
background-color: var(--color-background-status-success-igaq7v, #f2f8f0);
|
|
426
425
|
}
|
|
427
|
-
.awsui_type-
|
|
426
|
+
.awsui_type-success_mx3cw_i9lhn_420 > .awsui_alert-wrapper_mx3cw_i9lhn_298 > .awsui_alert-focus-wrapper_mx3cw_i9lhn_329 > .awsui_icon_mx3cw_i9lhn_367:not(#\9) {
|
|
428
427
|
color: var(--color-text-status-success-sh9pg0, #1d8102);
|
|
429
428
|
}
|
|
430
429
|
|
|
431
|
-
.awsui_type-
|
|
430
|
+
.awsui_type-info_mx3cw_i9lhn_428:not(#\9) {
|
|
432
431
|
border-color: var(--color-border-status-info-7kw04i, #0073bb);
|
|
433
432
|
background-color: var(--color-background-status-info-zgt1yi, #f1faff);
|
|
434
433
|
}
|
|
435
|
-
.awsui_type-
|
|
434
|
+
.awsui_type-info_mx3cw_i9lhn_428 > .awsui_alert-wrapper_mx3cw_i9lhn_298 > .awsui_alert-focus-wrapper_mx3cw_i9lhn_329 > .awsui_icon_mx3cw_i9lhn_367:not(#\9) {
|
|
436
435
|
color: var(--color-text-status-info-1ypqr6, #0073bb);
|
|
437
436
|
}
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"alert": "
|
|
6
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
7
|
-
"root": "
|
|
8
|
-
"hidden": "
|
|
9
|
-
"alert-wrapper": "awsui_alert-
|
|
10
|
-
"initial-hidden": "awsui_initial-
|
|
11
|
-
"header": "
|
|
12
|
-
"header-replacement": "awsui_header-
|
|
13
|
-
"action": "
|
|
14
|
-
"action-slot": "awsui_action-
|
|
15
|
-
"action-button": "awsui_action-
|
|
16
|
-
"alert-focus-wrapper": "awsui_alert-focus-
|
|
17
|
-
"text": "
|
|
18
|
-
"icon": "
|
|
19
|
-
"message": "
|
|
20
|
-
"action-wrapped": "awsui_action-
|
|
21
|
-
"icon-size-medium": "awsui_icon-size-
|
|
22
|
-
"icon-size-big": "awsui_icon-size-
|
|
23
|
-
"icon-size-normal": "awsui_icon-size-
|
|
24
|
-
"content": "
|
|
25
|
-
"content-replacement": "awsui_content-
|
|
26
|
-
"dismiss": "
|
|
27
|
-
"dismiss-button": "awsui_dismiss-
|
|
28
|
-
"type-error": "awsui_type-
|
|
29
|
-
"type-warning": "awsui_type-
|
|
30
|
-
"type-success": "awsui_type-
|
|
31
|
-
"type-info": "awsui_type-
|
|
5
|
+
"alert": "awsui_alert_mx3cw_i9lhn_193",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_i9lhn_1",
|
|
7
|
+
"root": "awsui_root_mx3cw_i9lhn_215",
|
|
8
|
+
"hidden": "awsui_hidden_mx3cw_i9lhn_250",
|
|
9
|
+
"alert-wrapper": "awsui_alert-wrapper_mx3cw_i9lhn_298",
|
|
10
|
+
"initial-hidden": "awsui_initial-hidden_mx3cw_i9lhn_310",
|
|
11
|
+
"header": "awsui_header_mx3cw_i9lhn_315",
|
|
12
|
+
"header-replacement": "awsui_header-replacement_mx3cw_i9lhn_316",
|
|
13
|
+
"action": "awsui_action_mx3cw_i9lhn_320",
|
|
14
|
+
"action-slot": "awsui_action-slot_mx3cw_i9lhn_324",
|
|
15
|
+
"action-button": "awsui_action-button_mx3cw_i9lhn_325",
|
|
16
|
+
"alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_i9lhn_329",
|
|
17
|
+
"text": "awsui_text_mx3cw_i9lhn_360",
|
|
18
|
+
"icon": "awsui_icon_mx3cw_i9lhn_367",
|
|
19
|
+
"message": "awsui_message_mx3cw_i9lhn_370",
|
|
20
|
+
"action-wrapped": "awsui_action-wrapped_mx3cw_i9lhn_374",
|
|
21
|
+
"icon-size-medium": "awsui_icon-size-medium_mx3cw_i9lhn_378",
|
|
22
|
+
"icon-size-big": "awsui_icon-size-big_mx3cw_i9lhn_382",
|
|
23
|
+
"icon-size-normal": "awsui_icon-size-normal_mx3cw_i9lhn_386",
|
|
24
|
+
"content": "awsui_content_mx3cw_i9lhn_390",
|
|
25
|
+
"content-replacement": "awsui_content-replacement_mx3cw_i9lhn_391",
|
|
26
|
+
"dismiss": "awsui_dismiss_mx3cw_i9lhn_395",
|
|
27
|
+
"dismiss-button": "awsui_dismiss-button_mx3cw_i9lhn_400",
|
|
28
|
+
"type-error": "awsui_type-error_mx3cw_i9lhn_404",
|
|
29
|
+
"type-warning": "awsui_type-warning_mx3cw_i9lhn_412",
|
|
30
|
+
"type-success": "awsui_type-success_mx3cw_i9lhn_420",
|
|
31
|
+
"type-info": "awsui_type-info_mx3cw_i9lhn_428"
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overflow-menu.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/drawer/overflow-menu.tsx"],"names":[],"mappings":";AAIA,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAE5B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,sB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AM,CAAC;CAClC;AAYD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,KAAK,EAAE,OAAO,EACd,WAAW,EACX,oBAAoB,EACpB,SAAS,EACT,uBAAuB,GACxB,EAAE,iBAAiB,eA0BnB"}
|
|
@@ -3,19 +3,20 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import InternalButtonDropdown from '../../button-dropdown/internal';
|
|
5
5
|
import testutilStyles from '../test-classes/styles.css.js';
|
|
6
|
-
const mapDrawerToItem = (drawer) => ({
|
|
6
|
+
const mapDrawerToItem = (drawer, isTypeCheckbox) => ({
|
|
7
7
|
id: drawer.id,
|
|
8
8
|
text: drawer.ariaLabels.drawerName,
|
|
9
9
|
iconName: drawer.trigger.iconName,
|
|
10
10
|
iconSvg: drawer.trigger.iconSvg,
|
|
11
11
|
badge: drawer.badge,
|
|
12
|
-
itemType: 'checkbox',
|
|
12
|
+
itemType: isTypeCheckbox ? 'checkbox' : undefined,
|
|
13
13
|
checked: drawer.active,
|
|
14
14
|
});
|
|
15
15
|
export default function OverflowMenu({ items: drawers, onItemClick, customTriggerBuilder, ariaLabel, globalDrawersStartIndex, }) {
|
|
16
|
-
const
|
|
16
|
+
const hasGlobalDrawers = globalDrawersStartIndex !== undefined;
|
|
17
|
+
const itemsFlatList = drawers.map((item, index) => mapDrawerToItem(item, hasGlobalDrawers && index >= globalDrawersStartIndex));
|
|
17
18
|
let items;
|
|
18
|
-
if (
|
|
19
|
+
if (hasGlobalDrawers) {
|
|
19
20
|
items = [
|
|
20
21
|
{ items: itemsFlatList.slice(0, globalDrawersStartIndex) },
|
|
21
22
|
{ items: itemsFlatList.slice(globalDrawersStartIndex) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overflow-menu.js","sourceRoot":"","sources":["../../../../src/app-layout/drawer/overflow-menu.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B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K,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,uBAAuB,CAAC,EAAE;YAC1D,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE;SACxD,CAAC;KACH;SAAM;QACL,KAAK,GAAG,aAAa,CAAC;KACvB;IAED,OAAO,CACL,oBAAC,sBAAsB,IACrB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,cAAc,CAAC,eAAe,CAAC,EAC1C,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAC,MAAM,EACd,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,IAAI,GACtB,CACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n ButtonDropdownProps,\n InternalButtonDropdownProps,\n InternalItemOrGroup,\n} from '../../button-dropdown/interfaces';\nimport InternalButtonDropdown from '../../button-dropdown/internal';\nimport { CancelableEventHandler } from '../../internal/events';\nimport { AppLayoutProps } from '../interfaces';\n\nimport testutilStyles from '../test-classes/styles.css.js';\n\ntype Drawer = AppLayoutProps.Drawer & { active?: boolean };\n\ninterface OverflowMenuProps {\n items: Array<Drawer>;\n onItemClick: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n customTriggerBuilder?: InternalButtonDropdownProps['customTriggerBuilder'];\n ariaLabel?: string;\n globalDrawersStartIndex?: number;\n}\n\nconst mapDrawerToItem = (drawer: Drawer, isTypeCheckbox: boolean) => ({\n id: drawer.id,\n text: drawer.ariaLabels.drawerName,\n iconName: drawer.trigger!.iconName,\n iconSvg: drawer.trigger!.iconSvg,\n badge: drawer.badge,\n itemType: isTypeCheckbox ? ('checkbox' as ButtonDropdownProps.ItemType) : undefined,\n checked: drawer.active,\n});\n\nexport default function OverflowMenu({\n items: drawers,\n onItemClick,\n customTriggerBuilder,\n ariaLabel,\n globalDrawersStartIndex,\n}: OverflowMenuProps) {\n const hasGlobalDrawers = globalDrawersStartIndex !== undefined;\n const itemsFlatList = drawers.map((item, index) =>\n mapDrawerToItem(item, hasGlobalDrawers && index >= globalDrawersStartIndex)\n );\n let items: ReadonlyArray<InternalItemOrGroup>;\n if (hasGlobalDrawers) {\n items = [\n { items: itemsFlatList.slice(0, globalDrawersStartIndex) },\n { items: itemsFlatList.slice(globalDrawersStartIndex) },\n ];\n } else {\n items = itemsFlatList;\n }\n\n return (\n <InternalButtonDropdown\n items={items}\n className={testutilStyles['overflow-menu']}\n onItemClick={onItemClick}\n ariaLabel={ariaLabel}\n variant=\"icon\"\n customTriggerBuilder={customTriggerBuilder}\n expandToViewport={true}\n />\n );\n}\n"]}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"flash-with-motion": "awsui_flash-with-
|
|
5
|
-
"enter": "
|
|
6
|
-
"flash-body": "awsui_flash-
|
|
7
|
-
"flash-message": "awsui_flash-
|
|
8
|
-
"flash-header": "awsui_flash-
|
|
9
|
-
"flash-content": "awsui_flash-
|
|
10
|
-
"action-button-wrapper": "awsui_action-button-
|
|
11
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
12
|
-
"flash-icon": "awsui_flash-
|
|
13
|
-
"entering": "
|
|
14
|
-
"entered": "
|
|
15
|
-
"exiting": "
|
|
16
|
-
"stack": "
|
|
17
|
-
"animation-running": "awsui_animation-
|
|
18
|
-
"item": "
|
|
19
|
-
"flash-list-item": "awsui_flash-list-
|
|
20
|
-
"notification-bar": "awsui_notification-
|
|
21
|
-
"collapsed": "
|
|
22
|
-
"animation-ready": "awsui_animation-
|
|
23
|
-
"expanded-only": "awsui_expanded-
|
|
24
|
-
"expanded": "
|
|
25
|
-
"flash": "
|
|
26
|
-
"collapsible": "
|
|
27
|
-
"short-list": "awsui_short-
|
|
28
|
-
"visual-refresh": "awsui_visual-
|
|
29
|
-
"status": "
|
|
30
|
-
"header": "
|
|
31
|
-
"item-count": "awsui_item-
|
|
32
|
-
"button": "
|
|
33
|
-
"type-count": "awsui_type-
|
|
34
|
-
"count-number": "awsui_count-
|
|
35
|
-
"icon": "
|
|
36
|
-
"floating": "
|
|
37
|
-
"flashbar": "
|
|
38
|
-
"initial-hidden": "awsui_initial-
|
|
39
|
-
"flash-list": "awsui_flash-
|
|
40
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
41
|
-
"flash-text": "awsui_flash-
|
|
42
|
-
"hidden": "
|
|
43
|
-
"header-replacement": "awsui_header-
|
|
44
|
-
"content-replacement": "awsui_content-
|
|
45
|
-
"dismiss-button": "awsui_dismiss-
|
|
46
|
-
"action-wrapped": "awsui_action-
|
|
47
|
-
"action-button": "awsui_action-
|
|
48
|
-
"action-slot": "awsui_action-
|
|
49
|
-
"flash-type-success": "awsui_flash-type-
|
|
50
|
-
"flash-type-error": "awsui_flash-type-
|
|
51
|
-
"flash-type-info": "awsui_flash-type-
|
|
52
|
-
"flash-type-in-progress": "awsui_flash-type-in-
|
|
53
|
-
"flash-type-warning": "awsui_flash-type-
|
|
4
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_1e5qc_157",
|
|
5
|
+
"enter": "awsui_enter_1q84n_1e5qc_157",
|
|
6
|
+
"flash-body": "awsui_flash-body_1q84n_1e5qc_171",
|
|
7
|
+
"flash-message": "awsui_flash-message_1q84n_1e5qc_171",
|
|
8
|
+
"flash-header": "awsui_flash-header_1q84n_1e5qc_171",
|
|
9
|
+
"flash-content": "awsui_flash-content_1q84n_1e5qc_172",
|
|
10
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_1e5qc_173",
|
|
11
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1e5qc_174",
|
|
12
|
+
"flash-icon": "awsui_flash-icon_1q84n_1e5qc_197",
|
|
13
|
+
"entering": "awsui_entering_1q84n_1e5qc_210",
|
|
14
|
+
"entered": "awsui_entered_1q84n_1e5qc_231",
|
|
15
|
+
"exiting": "awsui_exiting_1q84n_1e5qc_336",
|
|
16
|
+
"stack": "awsui_stack_1q84n_1e5qc_370",
|
|
17
|
+
"animation-running": "awsui_animation-running_1q84n_1e5qc_370",
|
|
18
|
+
"item": "awsui_item_1q84n_1e5qc_370",
|
|
19
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_1e5qc_371",
|
|
20
|
+
"notification-bar": "awsui_notification-bar_1q84n_1e5qc_372",
|
|
21
|
+
"collapsed": "awsui_collapsed_1q84n_1e5qc_392",
|
|
22
|
+
"animation-ready": "awsui_animation-ready_1q84n_1e5qc_392",
|
|
23
|
+
"expanded-only": "awsui_expanded-only_1q84n_1e5qc_392",
|
|
24
|
+
"expanded": "awsui_expanded_1q84n_1e5qc_392",
|
|
25
|
+
"flash": "awsui_flash_1q84n_1e5qc_157",
|
|
26
|
+
"collapsible": "awsui_collapsible_1q84n_1e5qc_448",
|
|
27
|
+
"short-list": "awsui_short-list_1q84n_1e5qc_454",
|
|
28
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_1e5qc_454",
|
|
29
|
+
"status": "awsui_status_1q84n_1e5qc_601",
|
|
30
|
+
"header": "awsui_header_1q84n_1e5qc_601",
|
|
31
|
+
"item-count": "awsui_item-count_1q84n_1e5qc_602",
|
|
32
|
+
"button": "awsui_button_1q84n_1e5qc_603",
|
|
33
|
+
"type-count": "awsui_type-count_1q84n_1e5qc_636",
|
|
34
|
+
"count-number": "awsui_count-number_1q84n_1e5qc_636",
|
|
35
|
+
"icon": "awsui_icon_1q84n_1e5qc_670",
|
|
36
|
+
"floating": "awsui_floating_1q84n_1e5qc_711",
|
|
37
|
+
"flashbar": "awsui_flashbar_1q84n_1e5qc_715",
|
|
38
|
+
"initial-hidden": "awsui_initial-hidden_1q84n_1e5qc_773",
|
|
39
|
+
"flash-list": "awsui_flash-list_1q84n_1e5qc_371",
|
|
40
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_1e5qc_797",
|
|
41
|
+
"flash-text": "awsui_flash-text_1q84n_1e5qc_827",
|
|
42
|
+
"hidden": "awsui_hidden_1q84n_1e5qc_846",
|
|
43
|
+
"header-replacement": "awsui_header-replacement_1q84n_1e5qc_851",
|
|
44
|
+
"content-replacement": "awsui_content-replacement_1q84n_1e5qc_856",
|
|
45
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_1e5qc_174",
|
|
46
|
+
"action-wrapped": "awsui_action-wrapped_1q84n_1e5qc_874",
|
|
47
|
+
"action-button": "awsui_action-button_1q84n_1e5qc_173",
|
|
48
|
+
"action-slot": "awsui_action-slot_1q84n_1e5qc_881",
|
|
49
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_1e5qc_885",
|
|
50
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_1e5qc_889",
|
|
51
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_1e5qc_893",
|
|
52
|
+
"flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1e5qc_894",
|
|
53
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_1e5qc_898"
|
|
54
54
|
};
|
|
55
55
|
|