@cloudscape-design/components 3.0.1345 → 3.0.1346

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 (60) hide show
  1. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  2. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +90 -87
  3. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  4. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
  5. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +11 -11
  6. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
  7. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
  8. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +60 -60
  9. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
  10. package/app-layout-toolbar/index.d.ts.map +1 -1
  11. package/app-layout-toolbar/index.js +1 -0
  12. package/app-layout-toolbar/index.js.map +1 -1
  13. package/expandable-section/expandable-section-container.d.ts +0 -2
  14. package/expandable-section/expandable-section-container.d.ts.map +1 -1
  15. package/expandable-section/expandable-section-container.js +2 -2
  16. package/expandable-section/expandable-section-container.js.map +1 -1
  17. package/expandable-section/expandable-section-header.d.ts +3 -1
  18. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  19. package/expandable-section/expandable-section-header.js +4 -4
  20. package/expandable-section/expandable-section-header.js.map +1 -1
  21. package/expandable-section/internal.d.ts +8 -2
  22. package/expandable-section/internal.d.ts.map +1 -1
  23. package/expandable-section/internal.js +24 -10
  24. package/expandable-section/internal.js.map +1 -1
  25. package/expandable-section/styles.css.js +43 -42
  26. package/expandable-section/styles.scoped.css +198 -143
  27. package/expandable-section/styles.selectors.js +43 -42
  28. package/flashbar/styles.css.js +50 -50
  29. package/flashbar/styles.scoped.css +153 -153
  30. package/flashbar/styles.selectors.js +50 -50
  31. package/internal/base-component/styles.scoped.css +16 -6
  32. package/internal/components/transition/index.d.ts +7 -7
  33. package/internal/components/transition/index.d.ts.map +1 -1
  34. package/internal/components/transition/index.js +4 -4
  35. package/internal/components/transition/index.js.map +1 -1
  36. package/internal/environment.js +2 -2
  37. package/internal/environment.json +2 -2
  38. package/internal/generated/styles/tokens.d.ts +9 -0
  39. package/internal/generated/styles/tokens.js +10 -1
  40. package/internal/generated/theming/index.cjs +106 -15
  41. package/internal/generated/theming/index.cjs.d.ts +18 -0
  42. package/internal/generated/theming/index.d.ts +18 -0
  43. package/internal/generated/theming/index.js +106 -15
  44. package/internal/manifest.json +1 -1
  45. package/manifest.json +2 -2
  46. package/package.json +1 -1
  47. package/side-navigation/implementation.d.ts.map +1 -1
  48. package/side-navigation/implementation.js +6 -3
  49. package/side-navigation/implementation.js.map +1 -1
  50. package/side-navigation/parts.d.ts +2 -0
  51. package/side-navigation/parts.d.ts.map +1 -1
  52. package/side-navigation/parts.js +86 -76
  53. package/side-navigation/parts.js.map +1 -1
  54. package/side-navigation/styles.css.js +64 -50
  55. package/side-navigation/styles.scoped.css +552 -106
  56. package/side-navigation/styles.selectors.js +64 -50
  57. package/side-navigation/util.d.ts +10 -0
  58. package/side-navigation/util.d.ts.map +1 -1
  59. package/side-navigation/util.js +48 -0
  60. package/side-navigation/util.js.map +1 -1
@@ -2,55 +2,55 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "flash-with-motion": "awsui_flash-with-motion_1q84n_1oohl_157",
6
- "enter": "awsui_enter_1q84n_1oohl_157",
7
- "flash-body": "awsui_flash-body_1q84n_1oohl_171",
8
- "flash-message": "awsui_flash-message_1q84n_1oohl_171",
9
- "flash-header": "awsui_flash-header_1q84n_1oohl_171",
10
- "flash-content": "awsui_flash-content_1q84n_1oohl_172",
11
- "action-button-wrapper": "awsui_action-button-wrapper_1q84n_1oohl_173",
12
- "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1oohl_174",
13
- "flash-icon": "awsui_flash-icon_1q84n_1oohl_197",
14
- "entering": "awsui_entering_1q84n_1oohl_210",
15
- "entered": "awsui_entered_1q84n_1oohl_231",
16
- "exiting": "awsui_exiting_1q84n_1oohl_336",
17
- "stack": "awsui_stack_1q84n_1oohl_370",
18
- "animation-running": "awsui_animation-running_1q84n_1oohl_370",
19
- "item": "awsui_item_1q84n_1oohl_370",
20
- "flash-list-item": "awsui_flash-list-item_1q84n_1oohl_371",
21
- "notification-bar": "awsui_notification-bar_1q84n_1oohl_372",
22
- "collapsed": "awsui_collapsed_1q84n_1oohl_392",
23
- "animation-ready": "awsui_animation-ready_1q84n_1oohl_392",
24
- "expanded-only": "awsui_expanded-only_1q84n_1oohl_392",
25
- "expanded": "awsui_expanded_1q84n_1oohl_392",
26
- "flash": "awsui_flash_1q84n_1oohl_157",
27
- "collapsible": "awsui_collapsible_1q84n_1oohl_448",
28
- "short-list": "awsui_short-list_1q84n_1oohl_454",
29
- "visual-refresh": "awsui_visual-refresh_1q84n_1oohl_454",
30
- "status": "awsui_status_1q84n_1oohl_601",
31
- "header": "awsui_header_1q84n_1oohl_601",
32
- "item-count": "awsui_item-count_1q84n_1oohl_602",
33
- "button": "awsui_button_1q84n_1oohl_603",
34
- "type-count": "awsui_type-count_1q84n_1oohl_636",
35
- "count-number": "awsui_count-number_1q84n_1oohl_636",
36
- "icon": "awsui_icon_1q84n_1oohl_674",
37
- "floating": "awsui_floating_1q84n_1oohl_715",
38
- "flashbar": "awsui_flashbar_1q84n_1oohl_719",
39
- "initial-hidden": "awsui_initial-hidden_1q84n_1oohl_779",
40
- "flash-list": "awsui_flash-list_1q84n_1oohl_371",
41
- "flash-focus-container": "awsui_flash-focus-container_1q84n_1oohl_803",
42
- "flash-text": "awsui_flash-text_1q84n_1oohl_833",
43
- "hidden": "awsui_hidden_1q84n_1oohl_852",
44
- "header-replacement": "awsui_header-replacement_1q84n_1oohl_857",
45
- "content-replacement": "awsui_content-replacement_1q84n_1oohl_862",
46
- "dismiss-button": "awsui_dismiss-button_1q84n_1oohl_174",
47
- "action-wrapped": "awsui_action-wrapped_1q84n_1oohl_880",
48
- "action-button": "awsui_action-button_1q84n_1oohl_173",
49
- "action-slot": "awsui_action-slot_1q84n_1oohl_887",
50
- "flash-type-success": "awsui_flash-type-success_1q84n_1oohl_891",
51
- "flash-type-error": "awsui_flash-type-error_1q84n_1oohl_899",
52
- "flash-type-info": "awsui_flash-type-info_1q84n_1oohl_907",
53
- "flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1oohl_908",
54
- "flash-type-warning": "awsui_flash-type-warning_1q84n_1oohl_917"
5
+ "flash-with-motion": "awsui_flash-with-motion_1q84n_1ow9o_157",
6
+ "enter": "awsui_enter_1q84n_1ow9o_157",
7
+ "flash-body": "awsui_flash-body_1q84n_1ow9o_171",
8
+ "flash-message": "awsui_flash-message_1q84n_1ow9o_171",
9
+ "flash-header": "awsui_flash-header_1q84n_1ow9o_171",
10
+ "flash-content": "awsui_flash-content_1q84n_1ow9o_172",
11
+ "action-button-wrapper": "awsui_action-button-wrapper_1q84n_1ow9o_173",
12
+ "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1ow9o_174",
13
+ "flash-icon": "awsui_flash-icon_1q84n_1ow9o_197",
14
+ "entering": "awsui_entering_1q84n_1ow9o_210",
15
+ "entered": "awsui_entered_1q84n_1ow9o_231",
16
+ "exiting": "awsui_exiting_1q84n_1ow9o_336",
17
+ "stack": "awsui_stack_1q84n_1ow9o_370",
18
+ "animation-running": "awsui_animation-running_1q84n_1ow9o_370",
19
+ "item": "awsui_item_1q84n_1ow9o_370",
20
+ "flash-list-item": "awsui_flash-list-item_1q84n_1ow9o_371",
21
+ "notification-bar": "awsui_notification-bar_1q84n_1ow9o_372",
22
+ "collapsed": "awsui_collapsed_1q84n_1ow9o_392",
23
+ "animation-ready": "awsui_animation-ready_1q84n_1ow9o_392",
24
+ "expanded-only": "awsui_expanded-only_1q84n_1ow9o_392",
25
+ "expanded": "awsui_expanded_1q84n_1ow9o_392",
26
+ "flash": "awsui_flash_1q84n_1ow9o_157",
27
+ "collapsible": "awsui_collapsible_1q84n_1ow9o_448",
28
+ "short-list": "awsui_short-list_1q84n_1ow9o_454",
29
+ "visual-refresh": "awsui_visual-refresh_1q84n_1ow9o_454",
30
+ "status": "awsui_status_1q84n_1ow9o_601",
31
+ "header": "awsui_header_1q84n_1ow9o_601",
32
+ "item-count": "awsui_item-count_1q84n_1ow9o_602",
33
+ "button": "awsui_button_1q84n_1ow9o_603",
34
+ "type-count": "awsui_type-count_1q84n_1ow9o_636",
35
+ "count-number": "awsui_count-number_1q84n_1ow9o_636",
36
+ "icon": "awsui_icon_1q84n_1ow9o_674",
37
+ "floating": "awsui_floating_1q84n_1ow9o_715",
38
+ "flashbar": "awsui_flashbar_1q84n_1ow9o_719",
39
+ "initial-hidden": "awsui_initial-hidden_1q84n_1ow9o_779",
40
+ "flash-list": "awsui_flash-list_1q84n_1ow9o_371",
41
+ "flash-focus-container": "awsui_flash-focus-container_1q84n_1ow9o_803",
42
+ "flash-text": "awsui_flash-text_1q84n_1ow9o_833",
43
+ "hidden": "awsui_hidden_1q84n_1ow9o_852",
44
+ "header-replacement": "awsui_header-replacement_1q84n_1ow9o_857",
45
+ "content-replacement": "awsui_content-replacement_1q84n_1ow9o_862",
46
+ "dismiss-button": "awsui_dismiss-button_1q84n_1ow9o_174",
47
+ "action-wrapped": "awsui_action-wrapped_1q84n_1ow9o_880",
48
+ "action-button": "awsui_action-button_1q84n_1ow9o_173",
49
+ "action-slot": "awsui_action-slot_1q84n_1ow9o_887",
50
+ "flash-type-success": "awsui_flash-type-success_1q84n_1ow9o_891",
51
+ "flash-type-error": "awsui_flash-type-error_1q84n_1ow9o_899",
52
+ "flash-type-info": "awsui_flash-type-info_1q84n_1ow9o_907",
53
+ "flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1ow9o_908",
54
+ "flash-type-warning": "awsui_flash-type-warning_1q84n_1ow9o_917"
55
55
  };
56
56
 
@@ -317,7 +317,7 @@
317
317
  --color-background-item-selected-pyr5cw:var(--color-primary-50-1y05xv);
318
318
  --color-background-side-navigation-item-active-adfprg:transparent;
319
319
  --color-background-side-navigation-item-active-collapsed-jczh49:var(--color-background-control-checked-jwoxtj);
320
- --color-background-side-navigation-item-icon-hover-c8r9nb:var(--color-primary-50-1y05xv);
320
+ --color-background-side-navigation-item-icon-hover-e5eh06:var(--color-background-item-selected-pyr5cw);
321
321
  --color-background-layout-main-7z8vaj:var(--color-white-p1zlvy);
322
322
  --color-background-layout-ai-drawer-b4mvv3:var(--color-neutral-850-3f0gro);
323
323
  --color-background-drawer-715dba:var(--color-background-layout-panel-content-89bszq);
@@ -456,6 +456,7 @@
456
456
  --color-border-layout-px1i24:var(--color-neutral-350-dq6kfr);
457
457
  --color-border-layout-side-navigation-mjh43q:var(--color-border-layout-px1i24);
458
458
  --color-border-notification-stack-bar-aszsse:var(--color-neutral-750-pi9qqd);
459
+ --color-border-notification-stack-bar-focused-mzvtw9:var(--color-neutral-100-gk3lvf);
459
460
  --color-border-panel-header-j4pvsn:var(--color-border-divider-default-0de9c8);
460
461
  --color-border-popover-5yl4uc:var(--color-border-dropdown-container-gb937i);
461
462
  --color-border-segment-active-trxbfe:var(--color-border-segment-default-8mo02x);
@@ -851,6 +852,12 @@
851
852
  --motion-duration-complex-tbdo30:var(--motion-duration-refresh-only-slow-ugjy90);
852
853
  --motion-duration-tooltip-enter-8e7aex:var(--motion-duration-refresh-only-fast-zfibh6);
853
854
  --motion-easing-tooltip-enter-i9exfu:var(--motion-easing-refresh-only-a-ccyqaz);
855
+ --motion-duration-expandable-content-enter-kqyuuj:var(--motion-duration-show-paced-otsjh8);
856
+ --motion-easing-expandable-content-enter-5fw5v8:var(--motion-easing-show-paced-ym6eyn);
857
+ --motion-duration-side-navigation-content-enter-fade-9is49e:0ms;
858
+ --motion-duration-side-navigation-content-exit-6sbfiy:0ms;
859
+ --motion-duration-side-navigation-content-exit-fade-ydl422:0ms;
860
+ --motion-easing-side-navigation-content-exit-v820ow:var(--motion-easing-show-quick-9hlj8q);
854
861
  --motion-keyframes-fade-in-0r842q:awsui-fade-in-35003c;
855
862
  --motion-keyframes-fade-out-g7fgdu:awsui-fade-out-35003c;
856
863
  --motion-keyframes-status-icon-error-wkou39:awsui-status-icon-error-35003c;
@@ -865,6 +872,8 @@
865
872
  --size-vertical-input-p1d7xx:32px;
866
873
  --size-vertical-panel-icon-offset-z959cw:15px;
867
874
  --size-side-navigation-item-height-lokap3:28px;
875
+ --size-side-navigation-item-collapsed-oesjea:30px;
876
+ --size-side-navigation-collapsed-width-3gq7nn:52px;
868
877
  --space-alert-action-left-4s8zo5:var(--space-s-tvghoh);
869
878
  --space-alert-horizontal-ul364s:var(--space-flashbar-horizontal-l63501);
870
879
  --space-alert-message-right-mrjbnn:var(--space-xxs-hwfkai);
@@ -1142,7 +1151,6 @@
1142
1151
  --color-background-input-default-bz9w07:var(--color-neutral-850-3f0gro);
1143
1152
  --color-background-input-disabled-cecgeg:var(--color-neutral-800-t7j5ap);
1144
1153
  --color-background-item-selected-pyr5cw:var(--color-primary-1000-7umopx);
1145
- --color-background-side-navigation-item-icon-hover-c8r9nb:var(--color-neutral-700-qw8ats);
1146
1154
  --color-background-layout-main-7z8vaj:var(--color-neutral-850-3f0gro);
1147
1155
  --color-background-layout-panel-hover-kg7nug:var(--color-neutral-700-qw8ats);
1148
1156
  --color-background-layout-toggle-selected-active-7ovd7l:var(--color-primary-400-n8h4bx);
@@ -1326,6 +1334,7 @@
1326
1334
  --size-vertical-input-p1d7xx:28px;
1327
1335
  --size-vertical-panel-icon-offset-z959cw:13px;
1328
1336
  --size-side-navigation-item-height-lokap3:24px;
1337
+ --size-side-navigation-item-collapsed-oesjea:28px;
1329
1338
  --space-field-vertical-vm99qz:3px;
1330
1339
  --space-button-icon-only-horizontal-i85hxi:var(--space-xxs-hwfkai);
1331
1340
  --space-card-horizontal-embedded-sasxhu:10px;
@@ -1398,6 +1407,7 @@
1398
1407
  --motion-duration-expressive-cbdcwy:var(--motion-duration-refresh-only-medium-5rbn3k);
1399
1408
  --motion-duration-complex-tbdo30:var(--motion-duration-refresh-only-slow-ugjy90);
1400
1409
  --motion-duration-tooltip-enter-8e7aex:var(--motion-duration-refresh-only-fast-zfibh6);
1410
+ --motion-duration-expandable-content-enter-kqyuuj:var(--motion-duration-show-paced-otsjh8);
1401
1411
  }
1402
1412
  .awsui-context-compact-table:not(#\9) {
1403
1413
  --size-vertical-input-p1d7xx:28px;
@@ -1465,7 +1475,6 @@
1465
1475
  --color-background-input-default-bz9w07:var(--color-neutral-850-3f0gro);
1466
1476
  --color-background-input-disabled-cecgeg:var(--color-neutral-800-t7j5ap);
1467
1477
  --color-background-item-selected-pyr5cw:var(--color-primary-1000-7umopx);
1468
- --color-background-side-navigation-item-icon-hover-c8r9nb:var(--color-neutral-700-qw8ats);
1469
1478
  --color-background-layout-main-7z8vaj:var(--color-neutral-850-3f0gro);
1470
1479
  --color-background-layout-panel-hover-kg7nug:var(--color-neutral-700-qw8ats);
1471
1480
  --color-background-layout-toggle-selected-active-7ovd7l:var(--color-primary-400-n8h4bx);
@@ -1641,6 +1650,7 @@
1641
1650
  --color-background-item-card-aw1yv6:var(--color-background-card-n4q1vl);
1642
1651
  --color-background-dropdown-item-selected-cnovvw:var(--color-background-item-selected-pyr5cw);
1643
1652
  --color-background-side-navigation-item-active-collapsed-jczh49:var(--color-background-control-checked-jwoxtj);
1653
+ --color-background-side-navigation-item-icon-hover-e5eh06:var(--color-background-item-selected-pyr5cw);
1644
1654
  --color-background-drawer-715dba:var(--color-background-layout-panel-content-89bszq);
1645
1655
  --color-background-backdrop-czudyv:var(--color-grey-opaque-70-1cfyp2);
1646
1656
  --color-background-drawer-backdrop-l5bgyg:var(--color-background-backdrop-czudyv);
@@ -1790,7 +1800,6 @@
1790
1800
  --color-background-input-default-bz9w07:var(--color-neutral-950-lxybh8);
1791
1801
  --color-background-input-disabled-cecgeg:var(--color-neutral-800-t7j5ap);
1792
1802
  --color-background-item-selected-pyr5cw:var(--color-primary-1000-7umopx);
1793
- --color-background-side-navigation-item-icon-hover-c8r9nb:var(--color-neutral-700-qw8ats);
1794
1803
  --color-background-layout-main-7z8vaj:var(--color-neutral-950-lxybh8);
1795
1804
  --color-background-layout-panel-hover-kg7nug:var(--color-neutral-700-qw8ats);
1796
1805
  --color-background-layout-toggle-selected-active-7ovd7l:var(--color-primary-400-n8h4bx);
@@ -1979,6 +1988,7 @@
1979
1988
  --color-background-item-card-aw1yv6:var(--color-background-card-n4q1vl);
1980
1989
  --color-background-dropdown-item-selected-cnovvw:var(--color-background-item-selected-pyr5cw);
1981
1990
  --color-background-side-navigation-item-active-collapsed-jczh49:var(--color-background-control-checked-jwoxtj);
1991
+ --color-background-side-navigation-item-icon-hover-e5eh06:var(--color-background-item-selected-pyr5cw);
1982
1992
  --color-background-drawer-715dba:var(--color-background-layout-panel-content-89bszq);
1983
1993
  --color-background-backdrop-czudyv:var(--color-grey-opaque-70-1cfyp2);
1984
1994
  --color-background-drawer-backdrop-l5bgyg:var(--color-background-backdrop-czudyv);
@@ -2330,7 +2340,6 @@
2330
2340
  --color-background-input-default-bz9w07:var(--color-neutral-850-3f0gro);
2331
2341
  --color-background-input-disabled-cecgeg:var(--color-neutral-800-t7j5ap);
2332
2342
  --color-background-item-selected-pyr5cw:var(--color-primary-1000-7umopx);
2333
- --color-background-side-navigation-item-icon-hover-c8r9nb:var(--color-neutral-700-qw8ats);
2334
2343
  --color-background-layout-main-7z8vaj:var(--color-neutral-850-3f0gro);
2335
2344
  --color-background-layout-panel-hover-kg7nug:var(--color-neutral-700-qw8ats);
2336
2345
  --color-background-layout-toggle-selected-active-7ovd7l:var(--color-primary-400-n8h4bx);
@@ -2509,6 +2518,7 @@
2509
2518
  --color-background-item-card-aw1yv6:var(--color-background-card-n4q1vl);
2510
2519
  --color-background-dropdown-item-selected-cnovvw:var(--color-background-item-selected-pyr5cw);
2511
2520
  --color-background-side-navigation-item-active-collapsed-jczh49:var(--color-background-control-checked-jwoxtj);
2521
+ --color-background-side-navigation-item-icon-hover-e5eh06:var(--color-background-item-selected-pyr5cw);
2512
2522
  --color-background-drawer-715dba:var(--color-background-layout-panel-content-89bszq);
2513
2523
  --color-background-backdrop-czudyv:var(--color-grey-opaque-70-1cfyp2);
2514
2524
  --color-background-drawer-backdrop-l5bgyg:var(--color-background-backdrop-czudyv);
@@ -2687,5 +2697,5 @@
2687
2697
  }
2688
2698
  }
2689
2699
  :root {
2690
- --awsui-version-info-abe35802: true;
2700
+ --awsui-version-info-7f29935f: true;
2691
2701
  }
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import { MutableRefObject } from 'react';
3
3
  import { TransitionStatus as ReactTransitionGroupTransitionStatus } from 'react-transition-group';
4
4
  export type TransitionStatus = ReactTransitionGroupTransitionStatus | 'enter' | 'exit';
5
- interface TransitionProps {
5
+ interface TransitionProps<T extends HTMLElement> {
6
6
  in: boolean;
7
7
  exit?: boolean;
8
8
  disabled?: boolean;
9
- children: (state: TransitionStatus, transitioningElementRef: MutableRefObject<any>) => React.ReactNode;
9
+ children: (state: TransitionStatus, transitioningElementRef: MutableRefObject<T | null>, motionDisabled: boolean) => React.ReactNode;
10
10
  onStatusChange?: (status: TransitionStatus) => void;
11
11
  transitionChangeDelay?: {
12
12
  entering?: number;
@@ -14,12 +14,12 @@ interface TransitionProps {
14
14
  exitTimeout?: number;
15
15
  }
16
16
  /**
17
- * This component is a wrapper around the CSSTransition component.
17
+ * This component wraps react-transition-group's Transition component.
18
18
  *
19
- * It provides a second parameter in its rendering function that must be
20
- * attached to the node that is transitioning.
19
+ * Its rendering function receives the transition state, a ref that must be attached to the transitioning node,
20
+ * and whether motion is disabled by either user preference or the disabled prop.
21
21
  */
22
- export declare function Transition({
22
+ export declare function Transition<T extends HTMLElement = any>({
23
23
  in: isIn,
24
24
  children,
25
25
  exit,
@@ -28,5 +28,5 @@ export declare function Transition({
28
28
  transitionChangeDelay,
29
29
  exitTimeout,
30
30
  ...rest
31
- }: TransitionProps): JSX.Element;
31
+ }: TransitionProps<T>): JSX.Element;
32
32
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/transition/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAuB,MAAM,OAAO,CAAC;AAC9D,OAAO,EAEL,gBAAgB,IAAI,oCAAoC,EACzD,MAAM,wBAAwB,CAAC;AAIhC,MAAM,MAAM,gBAAgB,GAAG,oCAAoC,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvF,UAAU,eAAe;IACvB,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,gBAAgB,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACvG,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACpD,qBAAqB,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,EAAE,EAAE,IAAI,EACR,QAAQ,EACR,IAAW,EACX,cAA6B,EAC7B,QAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,GAAG,IAAI,EACR,EAAE,eAAe,eA8EjB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/transition/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAuB,MAAM,OAAO,CAAC;AAC9D,OAAO,EAEL,gBAAgB,IAAI,oCAAoC,EACzD,MAAM,wBAAwB,CAAC;AAIhC,MAAM,MAAM,gBAAgB,GAAG,oCAAoC,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvF,UAAU,eAAe,CAAC,CAAC,SAAS,WAAW;IAC7C,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,CACR,KAAK,EAAE,gBAAgB,EACvB,uBAAuB,EAAE,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC,EACnD,cAAc,EAAE,OAAO,KACpB,KAAK,CAAC,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACpD,qBAAqB,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,EAAE,EACtD,EAAE,EAAE,IAAI,EACR,QAAQ,EACR,IAAW,EACX,cAA6B,EAC7B,QAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,GAAG,IAAI,EACR,EAAE,eAAe,CAAC,CAAC,CAAC,eA8EpB"}
@@ -5,10 +5,10 @@ import { useCallback, useRef } from 'react';
5
5
  import { Transition as ReactTransitionGroupTransition, } from 'react-transition-group';
6
6
  import { useReducedMotion } from '@cloudscape-design/component-toolkit/internal';
7
7
  /**
8
- * This component is a wrapper around the CSSTransition component.
8
+ * This component wraps react-transition-group's Transition component.
9
9
  *
10
- * It provides a second parameter in its rendering function that must be
11
- * attached to the node that is transitioning.
10
+ * Its rendering function receives the transition state, a ref that must be attached to the transitioning node,
11
+ * and whether motion is disabled by either user preference or the disabled prop.
12
12
  */
13
13
  export function Transition({ in: isIn, children, exit = true, onStatusChange = () => void 0, disabled = false, transitionChangeDelay, exitTimeout, ...rest }) {
14
14
  const transitionRootElement = useRef(null);
@@ -68,6 +68,6 @@ export function Transition({ in: isIn, children, exit = true, onStatusChange = (
68
68
  }, onExited: () => {
69
69
  setTransitionState('exited');
70
70
  onStatusChange('exited');
71
- }, ...rest }, () => children(transitionState, transitionRootElement)));
71
+ }, ...rest }, () => children(transitionState, transitionRootElement, motionDisabled)));
72
72
  }
73
73
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/transition/index.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport { MutableRefObject, useCallback, useRef } from 'react';\nimport {\n Transition as ReactTransitionGroupTransition,\n TransitionStatus as ReactTransitionGroupTransitionStatus,\n} from 'react-transition-group';\n\nimport { useReducedMotion } from '@cloudscape-design/component-toolkit/internal';\n\nexport type TransitionStatus = ReactTransitionGroupTransitionStatus | 'enter' | 'exit';\n\ninterface TransitionProps {\n in: boolean;\n exit?: boolean;\n\n disabled?: boolean;\n\n children: (state: TransitionStatus, transitioningElementRef: MutableRefObject<any>) => React.ReactNode;\n onStatusChange?: (status: TransitionStatus) => void;\n transitionChangeDelay?: { entering?: number };\n exitTimeout?: number;\n}\n\n/**\n * This component is a wrapper around the CSSTransition component.\n *\n * It provides a second parameter in its rendering function that must be\n * attached to the node that is transitioning.\n */\nexport function Transition({\n in: isIn,\n children,\n exit = true,\n onStatusChange = () => void 0,\n disabled = false,\n transitionChangeDelay,\n exitTimeout,\n ...rest\n}: TransitionProps) {\n const transitionRootElement = useRef<HTMLElement>(null);\n // the initial state of the transition should be either 'exited' or 'entered' depending\n // on the `in` property, this mimicks how internally the Transition component works here:\n // https://github.com/reactjs/react-transition-group/blob/6cbd6aaedaf8e9472007640b429ddb48c6c24158/src/Transition.js#L121\n const [transitionState, setTransitionState] = useState<TransitionStatus>(isIn ? 'entered' : 'exited');\n const motionDisabled = useReducedMotion(transitionRootElement) || disabled;\n\n const addTransitionEndListener = useCallback((done: () => void) => {\n const node = transitionRootElement.current;\n\n if (node === null) {\n return;\n }\n const controller = new AbortController();\n const listener = (e: TransitionEvent | AnimationEvent) => {\n if (e.target === node) {\n controller.abort();\n done();\n }\n };\n node.addEventListener('transitionend', listener, { signal: controller.signal });\n node.addEventListener('animationend', listener, { signal: controller.signal });\n }, []);\n\n return (\n <ReactTransitionGroupTransition\n addEndListener={addTransitionEndListener}\n timeout={motionDisabled ? 0 : exitTimeout}\n in={isIn}\n nodeRef={transitionRootElement}\n exit={exit}\n onEnter={isAppearing => {\n if (!isAppearing) {\n setTransitionState('enter');\n onStatusChange('enter');\n }\n }}\n onEntering={isAppearing => {\n if (!isAppearing) {\n // This line forces the browser to recalculate the layout because we want the starting state in the 'enter' style\n // to be applied before the animation starts.\n void transitionRootElement.current?.offsetHeight;\n\n if (transitionChangeDelay?.entering) {\n setTimeout(() => {\n setTransitionState('entering');\n onStatusChange('entering');\n }, transitionChangeDelay?.entering);\n } else {\n setTransitionState('entering');\n onStatusChange('entering');\n }\n }\n }}\n onEntered={isAppearing => {\n if (!isAppearing) {\n setTransitionState('entered');\n onStatusChange('entered');\n }\n }}\n onExit={() => {\n setTransitionState('exit');\n onStatusChange('exit');\n }}\n onExiting={() => {\n setTransitionState('exiting');\n onStatusChange('exiting');\n }}\n onExited={() => {\n setTransitionState('exited');\n onStatusChange('exited');\n }}\n {...rest}\n >\n {() => children(transitionState, transitionRootElement)}\n </ReactTransitionGroupTransition>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/transition/index.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport { MutableRefObject, useCallback, useRef } from 'react';\nimport {\n Transition as ReactTransitionGroupTransition,\n TransitionStatus as ReactTransitionGroupTransitionStatus,\n} from 'react-transition-group';\n\nimport { useReducedMotion } from '@cloudscape-design/component-toolkit/internal';\n\nexport type TransitionStatus = ReactTransitionGroupTransitionStatus | 'enter' | 'exit';\n\ninterface TransitionProps<T extends HTMLElement> {\n in: boolean;\n exit?: boolean;\n\n disabled?: boolean;\n\n children: (\n state: TransitionStatus,\n transitioningElementRef: MutableRefObject<T | null>,\n motionDisabled: boolean\n ) => React.ReactNode;\n onStatusChange?: (status: TransitionStatus) => void;\n transitionChangeDelay?: { entering?: number };\n exitTimeout?: number;\n}\n\n/**\n * This component wraps react-transition-group's Transition component.\n *\n * Its rendering function receives the transition state, a ref that must be attached to the transitioning node,\n * and whether motion is disabled by either user preference or the disabled prop.\n */\nexport function Transition<T extends HTMLElement = any>({\n in: isIn,\n children,\n exit = true,\n onStatusChange = () => void 0,\n disabled = false,\n transitionChangeDelay,\n exitTimeout,\n ...rest\n}: TransitionProps<T>) {\n const transitionRootElement = useRef<T>(null);\n // the initial state of the transition should be either 'exited' or 'entered' depending\n // on the `in` property, this mimicks how internally the Transition component works here:\n // https://github.com/reactjs/react-transition-group/blob/6cbd6aaedaf8e9472007640b429ddb48c6c24158/src/Transition.js#L121\n const [transitionState, setTransitionState] = useState<TransitionStatus>(isIn ? 'entered' : 'exited');\n const motionDisabled = useReducedMotion(transitionRootElement) || disabled;\n\n const addTransitionEndListener = useCallback((done: () => void) => {\n const node = transitionRootElement.current;\n\n if (node === null) {\n return;\n }\n const controller = new AbortController();\n const listener = (e: TransitionEvent | AnimationEvent) => {\n if (e.target === node) {\n controller.abort();\n done();\n }\n };\n node.addEventListener('transitionend', listener, { signal: controller.signal });\n node.addEventListener('animationend', listener, { signal: controller.signal });\n }, []);\n\n return (\n <ReactTransitionGroupTransition\n addEndListener={addTransitionEndListener}\n timeout={motionDisabled ? 0 : exitTimeout}\n in={isIn}\n nodeRef={transitionRootElement}\n exit={exit}\n onEnter={isAppearing => {\n if (!isAppearing) {\n setTransitionState('enter');\n onStatusChange('enter');\n }\n }}\n onEntering={isAppearing => {\n if (!isAppearing) {\n // This line forces the browser to recalculate the layout because we want the starting state in the 'enter' style\n // to be applied before the animation starts.\n void transitionRootElement.current?.offsetHeight;\n\n if (transitionChangeDelay?.entering) {\n setTimeout(() => {\n setTransitionState('entering');\n onStatusChange('entering');\n }, transitionChangeDelay?.entering);\n } else {\n setTransitionState('entering');\n onStatusChange('entering');\n }\n }\n }}\n onEntered={isAppearing => {\n if (!isAppearing) {\n setTransitionState('entered');\n onStatusChange('entered');\n }\n }}\n onExit={() => {\n setTransitionState('exit');\n onStatusChange('exit');\n }}\n onExiting={() => {\n setTransitionState('exiting');\n onStatusChange('exiting');\n }}\n onExited={() => {\n setTransitionState('exited');\n onStatusChange('exited');\n }}\n {...rest}\n >\n {() => children(transitionState, transitionRootElement, motionDisabled)}\n </ReactTransitionGroupTransition>\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (abe35802)";
3
- export var GIT_SHA = "abe35802";
2
+ export var PACKAGE_VERSION = "3.0.0 (7f29935f)";
3
+ export var GIT_SHA = "7f29935f";
4
4
  export var THEME = "open-source-visual-refresh";
5
5
  export var SYSTEM = "core";
6
6
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (abe35802)",
4
- "GIT_SHA": "abe35802",
3
+ "PACKAGE_VERSION": "3.0.0 (7f29935f)",
4
+ "GIT_SHA": "7f29935f",
5
5
  "THEME": "open-source-visual-refresh",
6
6
  "SYSTEM": "core",
7
7
  "ALWAYS_VISUAL_REFRESH": true,
@@ -577,6 +577,7 @@ export const colorBorderItemSelected: string;
577
577
  export const colorBorderLayout: string;
578
578
  export const colorBorderLayoutSideNavigation: string;
579
579
  export const colorBorderNotificationStackBar: string;
580
+ export const colorBorderNotificationStackBarFocused: string;
580
581
  export const colorBorderPanelHeader: string;
581
582
  export const colorBorderPopover: string;
582
583
  export const colorBorderSegmentActive: string;
@@ -985,6 +986,12 @@ export const motionDurationExpressive: string;
985
986
  export const motionDurationComplex: string;
986
987
  export const motionDurationTooltipEnter: string;
987
988
  export const motionEasingTooltipEnter: string;
989
+ export const motionDurationExpandableContentEnter: string;
990
+ export const motionEasingExpandableContentEnter: string;
991
+ export const motionDurationSideNavigationContentEnterFade: string;
992
+ export const motionDurationSideNavigationContentExit: string;
993
+ export const motionDurationSideNavigationContentExitFade: string;
994
+ export const motionEasingSideNavigationContentExit: string;
988
995
  export const motionKeyframesFadeIn: string;
989
996
  export const motionKeyframesFadeOut: string;
990
997
  export const motionKeyframesStatusIconError: string;
@@ -999,6 +1006,8 @@ export const sizeTableSelectionHorizontal: string;
999
1006
  export const sizeVerticalInput: string;
1000
1007
  export const sizeVerticalPanelIconOffset: string;
1001
1008
  export const sizeSideNavigationItemHeight: string;
1009
+ export const sizeSideNavigationItemCollapsed: string;
1010
+ export const sizeSideNavigationCollapsedWidth: string;
1002
1011
  export const spaceAlertActionLeft: string;
1003
1012
  export const spaceAlertHorizontal: string;
1004
1013
  export const spaceAlertMessageRight: string;
@@ -437,7 +437,7 @@ export var colorBackgroundInputDisabled = "var(--color-background-input-disabled
437
437
  export var colorBackgroundItemSelected = "var(--color-background-item-selected-pyr5cw, #f0fbff)";
438
438
  export var colorBackgroundSideNavigationItemActive = "var(--color-background-side-navigation-item-active-adfprg, transparent)";
439
439
  export var colorBackgroundSideNavigationItemActiveCollapsed = "var(--color-background-side-navigation-item-active-collapsed-jczh49, #006ce0)";
440
- export var colorBackgroundSideNavigationItemIconHover = "var(--color-background-side-navigation-item-icon-hover-c8r9nb, #f0fbff)";
440
+ export var colorBackgroundSideNavigationItemIconHover = "var(--color-background-side-navigation-item-icon-hover-e5eh06, #f0fbff)";
441
441
  export var colorBackgroundLayoutMain = "var(--color-background-layout-main-7z8vaj, #ffffff)";
442
442
  export var colorBackgroundLayoutAiDrawer = "var(--color-background-layout-ai-drawer-b4mvv3, #161d26)";
443
443
  export var colorBackgroundDrawer = "var(--color-background-drawer-715dba, #ffffff)";
@@ -577,6 +577,7 @@ export var colorBorderItemSelected = "var(--color-border-item-selected-63a3p8, #
577
577
  export var colorBorderLayout = "var(--color-border-layout-px1i24, #c6c6cd)";
578
578
  export var colorBorderLayoutSideNavigation = "var(--color-border-layout-side-navigation-mjh43q, #c6c6cd)";
579
579
  export var colorBorderNotificationStackBar = "var(--color-border-notification-stack-bar-aszsse, #232b37)";
580
+ export var colorBorderNotificationStackBarFocused = "var(--color-border-notification-stack-bar-focused-mzvtw9, #f9f9fa)";
580
581
  export var colorBorderPanelHeader = "var(--color-border-panel-header-j4pvsn, #c6c6cd)";
581
582
  export var colorBorderPopover = "var(--color-border-popover-5yl4uc, #b4b4bb)";
582
583
  export var colorBorderSegmentActive = "var(--color-border-segment-active-trxbfe, #424650)";
@@ -985,6 +986,12 @@ export var motionDurationExpressive = "var(--motion-duration-expressive-cbdcwy,
985
986
  export var motionDurationComplex = "var(--motion-duration-complex-tbdo30, 250ms)";
986
987
  export var motionDurationTooltipEnter = "var(--motion-duration-tooltip-enter-8e7aex, 115ms)";
987
988
  export var motionEasingTooltipEnter = "var(--motion-easing-tooltip-enter-i9exfu, cubic-bezier(0, 0, 0, 1))";
989
+ export var motionDurationExpandableContentEnter = "var(--motion-duration-expandable-content-enter-kqyuuj, 180ms)";
990
+ export var motionEasingExpandableContentEnter = "var(--motion-easing-expandable-content-enter-5fw5v8, ease-out)";
991
+ export var motionDurationSideNavigationContentEnterFade = "var(--motion-duration-side-navigation-content-enter-fade-9is49e, 0ms)";
992
+ export var motionDurationSideNavigationContentExit = "var(--motion-duration-side-navigation-content-exit-6sbfiy, 0ms)";
993
+ export var motionDurationSideNavigationContentExitFade = "var(--motion-duration-side-navigation-content-exit-fade-ydl422, 0ms)";
994
+ export var motionEasingSideNavigationContentExit = "var(--motion-easing-side-navigation-content-exit-v820ow, ease-out)";
988
995
  export var motionKeyframesFadeIn = "var(--motion-keyframes-fade-in-0r842q, awsui-fade-in-35003c)";
989
996
  export var motionKeyframesFadeOut = "var(--motion-keyframes-fade-out-g7fgdu, awsui-fade-out-35003c)";
990
997
  export var motionKeyframesStatusIconError = "var(--motion-keyframes-status-icon-error-wkou39, awsui-status-icon-error-35003c)";
@@ -999,6 +1006,8 @@ export var sizeTableSelectionHorizontal = "var(--size-table-selection-horizontal
999
1006
  export var sizeVerticalInput = "var(--size-vertical-input-p1d7xx, 32px)";
1000
1007
  export var sizeVerticalPanelIconOffset = "var(--size-vertical-panel-icon-offset-z959cw, 15px)";
1001
1008
  export var sizeSideNavigationItemHeight = "var(--size-side-navigation-item-height-lokap3, 28px)";
1009
+ export var sizeSideNavigationItemCollapsed = "var(--size-side-navigation-item-collapsed-oesjea, 30px)";
1010
+ export var sizeSideNavigationCollapsedWidth = "var(--size-side-navigation-collapsed-width-3gq7nn, 52px)";
1002
1011
  export var spaceAlertActionLeft = "var(--space-alert-action-left-4s8zo5, 12px)";
1003
1012
  export var spaceAlertHorizontal = "var(--space-alert-horizontal-ul364s, 16px)";
1004
1013
  export var spaceAlertMessageRight = "var(--space-alert-message-right-mrjbnn, 4px)";