@cloudscape-design/components-themeable 3.0.1344 → 3.0.1345

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 (69) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/constants.scss +0 -3
  3. package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +2 -0
  4. package/lib/internal/scss/app-layout/visual-refresh-toolbar/navigation/styles.scss +1 -1
  5. package/lib/internal/scss/app-layout/visual-refresh-toolbar/skeleton/styles.scss +1 -1
  6. package/lib/internal/scss/expandable-section/styles.scss +102 -14
  7. package/lib/internal/scss/flashbar/collapsible.scss +1 -1
  8. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  9. package/lib/internal/scss/internal/styles/motion/mixins.scss +9 -0
  10. package/lib/internal/scss/side-navigation/styles.scss +420 -40
  11. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  12. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +90 -87
  13. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  14. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
  15. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +11 -11
  16. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
  17. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
  18. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +60 -60
  19. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
  20. package/lib/internal/template/app-layout-toolbar/index.d.ts.map +1 -1
  21. package/lib/internal/template/app-layout-toolbar/index.js +1 -0
  22. package/lib/internal/template/app-layout-toolbar/index.js.map +1 -1
  23. package/lib/internal/template/expandable-section/expandable-section-container.d.ts +1 -2
  24. package/lib/internal/template/expandable-section/expandable-section-container.d.ts.map +1 -1
  25. package/lib/internal/template/expandable-section/expandable-section-container.js +2 -2
  26. package/lib/internal/template/expandable-section/expandable-section-container.js.map +1 -1
  27. package/lib/internal/template/expandable-section/expandable-section-header.d.ts +2 -1
  28. package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
  29. package/lib/internal/template/expandable-section/expandable-section-header.js +4 -4
  30. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  31. package/lib/internal/template/expandable-section/internal.d.ts +8 -3
  32. package/lib/internal/template/expandable-section/internal.d.ts.map +1 -1
  33. package/lib/internal/template/expandable-section/internal.js +24 -10
  34. package/lib/internal/template/expandable-section/internal.js.map +1 -1
  35. package/lib/internal/template/expandable-section/styles.css.js +43 -42
  36. package/lib/internal/template/expandable-section/styles.scoped.css +198 -143
  37. package/lib/internal/template/expandable-section/styles.selectors.js +43 -42
  38. package/lib/internal/template/flashbar/styles.css.js +50 -50
  39. package/lib/internal/template/flashbar/styles.scoped.css +153 -153
  40. package/lib/internal/template/flashbar/styles.selectors.js +50 -50
  41. package/lib/internal/template/internal/base-component/styles.scoped.css +19 -9
  42. package/lib/internal/template/internal/components/transition/index.d.ts +6 -6
  43. package/lib/internal/template/internal/components/transition/index.d.ts.map +1 -1
  44. package/lib/internal/template/internal/components/transition/index.js +4 -4
  45. package/lib/internal/template/internal/components/transition/index.js.map +1 -1
  46. package/lib/internal/template/internal/environment.js +2 -2
  47. package/lib/internal/template/internal/environment.json +2 -2
  48. package/lib/internal/template/internal/generated/styles/tokens.d.ts +9 -0
  49. package/lib/internal/template/internal/generated/styles/tokens.js +10 -1
  50. package/lib/internal/template/internal/generated/theming/index.cjs +106 -15
  51. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +18 -0
  52. package/lib/internal/template/internal/generated/theming/index.d.ts +18 -0
  53. package/lib/internal/template/internal/generated/theming/index.js +106 -15
  54. package/lib/internal/template/side-navigation/implementation.d.ts.map +1 -1
  55. package/lib/internal/template/side-navigation/implementation.js +6 -3
  56. package/lib/internal/template/side-navigation/implementation.js.map +1 -1
  57. package/lib/internal/template/side-navigation/parts.d.ts +2 -1
  58. package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
  59. package/lib/internal/template/side-navigation/parts.js +86 -76
  60. package/lib/internal/template/side-navigation/parts.js.map +1 -1
  61. package/lib/internal/template/side-navigation/styles.css.js +64 -50
  62. package/lib/internal/template/side-navigation/styles.scoped.css +550 -106
  63. package/lib/internal/template/side-navigation/styles.selectors.js +64 -50
  64. package/lib/internal/template/side-navigation/util.d.ts +10 -0
  65. package/lib/internal/template/side-navigation/util.d.ts.map +1 -1
  66. package/lib/internal/template/side-navigation/util.js +48 -0
  67. package/lib/internal/template/side-navigation/util.js.map +1 -1
  68. package/package.json +1 -1
  69. package/lib/internal/scss/expandable-section/motion.scss +0 -30
@@ -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_rzp5a_157",
6
- "enter": "awsui_enter_1q84n_rzp5a_157",
7
- "flash-body": "awsui_flash-body_1q84n_rzp5a_171",
8
- "flash-message": "awsui_flash-message_1q84n_rzp5a_171",
9
- "flash-header": "awsui_flash-header_1q84n_rzp5a_171",
10
- "flash-content": "awsui_flash-content_1q84n_rzp5a_172",
11
- "action-button-wrapper": "awsui_action-button-wrapper_1q84n_rzp5a_173",
12
- "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_rzp5a_174",
13
- "flash-icon": "awsui_flash-icon_1q84n_rzp5a_197",
14
- "entering": "awsui_entering_1q84n_rzp5a_210",
15
- "entered": "awsui_entered_1q84n_rzp5a_231",
16
- "exiting": "awsui_exiting_1q84n_rzp5a_336",
17
- "stack": "awsui_stack_1q84n_rzp5a_370",
18
- "animation-running": "awsui_animation-running_1q84n_rzp5a_370",
19
- "item": "awsui_item_1q84n_rzp5a_370",
20
- "flash-list-item": "awsui_flash-list-item_1q84n_rzp5a_371",
21
- "notification-bar": "awsui_notification-bar_1q84n_rzp5a_372",
22
- "collapsed": "awsui_collapsed_1q84n_rzp5a_392",
23
- "animation-ready": "awsui_animation-ready_1q84n_rzp5a_392",
24
- "expanded-only": "awsui_expanded-only_1q84n_rzp5a_392",
25
- "expanded": "awsui_expanded_1q84n_rzp5a_392",
26
- "flash": "awsui_flash_1q84n_rzp5a_157",
27
- "collapsible": "awsui_collapsible_1q84n_rzp5a_448",
28
- "short-list": "awsui_short-list_1q84n_rzp5a_454",
29
- "visual-refresh": "awsui_visual-refresh_1q84n_rzp5a_454",
30
- "status": "awsui_status_1q84n_rzp5a_601",
31
- "header": "awsui_header_1q84n_rzp5a_601",
32
- "item-count": "awsui_item-count_1q84n_rzp5a_602",
33
- "button": "awsui_button_1q84n_rzp5a_603",
34
- "type-count": "awsui_type-count_1q84n_rzp5a_636",
35
- "count-number": "awsui_count-number_1q84n_rzp5a_636",
36
- "icon": "awsui_icon_1q84n_rzp5a_674",
37
- "floating": "awsui_floating_1q84n_rzp5a_715",
38
- "flashbar": "awsui_flashbar_1q84n_rzp5a_719",
39
- "initial-hidden": "awsui_initial-hidden_1q84n_rzp5a_779",
40
- "flash-list": "awsui_flash-list_1q84n_rzp5a_371",
41
- "flash-focus-container": "awsui_flash-focus-container_1q84n_rzp5a_803",
42
- "flash-text": "awsui_flash-text_1q84n_rzp5a_833",
43
- "hidden": "awsui_hidden_1q84n_rzp5a_852",
44
- "header-replacement": "awsui_header-replacement_1q84n_rzp5a_857",
45
- "content-replacement": "awsui_content-replacement_1q84n_rzp5a_862",
46
- "dismiss-button": "awsui_dismiss-button_1q84n_rzp5a_174",
47
- "action-wrapped": "awsui_action-wrapped_1q84n_rzp5a_880",
48
- "action-button": "awsui_action-button_1q84n_rzp5a_173",
49
- "action-slot": "awsui_action-slot_1q84n_rzp5a_887",
50
- "flash-type-success": "awsui_flash-type-success_1q84n_rzp5a_891",
51
- "flash-type-error": "awsui_flash-type-error_1q84n_rzp5a_899",
52
- "flash-type-info": "awsui_flash-type-info_1q84n_rzp5a_907",
53
- "flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_rzp5a_908",
54
- "flash-type-warning": "awsui_flash-type-warning_1q84n_rzp5a_917"
5
+ "flash-with-motion": "awsui_flash-with-motion_1q84n_1pcl1_157",
6
+ "enter": "awsui_enter_1q84n_1pcl1_157",
7
+ "flash-body": "awsui_flash-body_1q84n_1pcl1_171",
8
+ "flash-message": "awsui_flash-message_1q84n_1pcl1_171",
9
+ "flash-header": "awsui_flash-header_1q84n_1pcl1_171",
10
+ "flash-content": "awsui_flash-content_1q84n_1pcl1_172",
11
+ "action-button-wrapper": "awsui_action-button-wrapper_1q84n_1pcl1_173",
12
+ "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1pcl1_174",
13
+ "flash-icon": "awsui_flash-icon_1q84n_1pcl1_197",
14
+ "entering": "awsui_entering_1q84n_1pcl1_210",
15
+ "entered": "awsui_entered_1q84n_1pcl1_231",
16
+ "exiting": "awsui_exiting_1q84n_1pcl1_336",
17
+ "stack": "awsui_stack_1q84n_1pcl1_370",
18
+ "animation-running": "awsui_animation-running_1q84n_1pcl1_370",
19
+ "item": "awsui_item_1q84n_1pcl1_370",
20
+ "flash-list-item": "awsui_flash-list-item_1q84n_1pcl1_371",
21
+ "notification-bar": "awsui_notification-bar_1q84n_1pcl1_372",
22
+ "collapsed": "awsui_collapsed_1q84n_1pcl1_392",
23
+ "animation-ready": "awsui_animation-ready_1q84n_1pcl1_392",
24
+ "expanded-only": "awsui_expanded-only_1q84n_1pcl1_392",
25
+ "expanded": "awsui_expanded_1q84n_1pcl1_392",
26
+ "flash": "awsui_flash_1q84n_1pcl1_157",
27
+ "collapsible": "awsui_collapsible_1q84n_1pcl1_448",
28
+ "short-list": "awsui_short-list_1q84n_1pcl1_454",
29
+ "visual-refresh": "awsui_visual-refresh_1q84n_1pcl1_454",
30
+ "status": "awsui_status_1q84n_1pcl1_601",
31
+ "header": "awsui_header_1q84n_1pcl1_601",
32
+ "item-count": "awsui_item-count_1q84n_1pcl1_602",
33
+ "button": "awsui_button_1q84n_1pcl1_603",
34
+ "type-count": "awsui_type-count_1q84n_1pcl1_636",
35
+ "count-number": "awsui_count-number_1q84n_1pcl1_636",
36
+ "icon": "awsui_icon_1q84n_1pcl1_674",
37
+ "floating": "awsui_floating_1q84n_1pcl1_715",
38
+ "flashbar": "awsui_flashbar_1q84n_1pcl1_719",
39
+ "initial-hidden": "awsui_initial-hidden_1q84n_1pcl1_779",
40
+ "flash-list": "awsui_flash-list_1q84n_1pcl1_371",
41
+ "flash-focus-container": "awsui_flash-focus-container_1q84n_1pcl1_803",
42
+ "flash-text": "awsui_flash-text_1q84n_1pcl1_833",
43
+ "hidden": "awsui_hidden_1q84n_1pcl1_852",
44
+ "header-replacement": "awsui_header-replacement_1q84n_1pcl1_857",
45
+ "content-replacement": "awsui_content-replacement_1q84n_1pcl1_862",
46
+ "dismiss-button": "awsui_dismiss-button_1q84n_1pcl1_174",
47
+ "action-wrapped": "awsui_action-wrapped_1q84n_1pcl1_880",
48
+ "action-button": "awsui_action-button_1q84n_1pcl1_173",
49
+ "action-slot": "awsui_action-slot_1q84n_1pcl1_887",
50
+ "flash-type-success": "awsui_flash-type-success_1q84n_1pcl1_891",
51
+ "flash-type-error": "awsui_flash-type-error_1q84n_1pcl1_899",
52
+ "flash-type-info": "awsui_flash-type-info_1q84n_1pcl1_907",
53
+ "flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1pcl1_908",
54
+ "flash-type-warning": "awsui_flash-type-warning_1q84n_1pcl1_917"
55
55
  };
56
56
 
@@ -321,7 +321,7 @@
321
321
  --color-background-item-selected-wgqdgm:var(--color-primary-50-k00bx1);
322
322
  --color-background-side-navigation-item-active-jencj9:transparent;
323
323
  --color-background-side-navigation-item-active-collapsed-ggffiq:var(--color-background-control-checked-8lskez);
324
- --color-background-side-navigation-item-icon-hover-r7but1:var(--color-primary-50-k00bx1);
324
+ --color-background-side-navigation-item-icon-hover-efska0:var(--color-background-item-selected-wgqdgm);
325
325
  --color-background-layout-main-2vy1pe:var(--color-neutral-200-z3mmn9);
326
326
  --color-background-layout-ai-drawer-91zkk9:var(--color-neutral-850-m3u7h5);
327
327
  --color-background-drawer-9wg4qg:var(--color-background-layout-panel-content-2jvi28);
@@ -460,6 +460,7 @@
460
460
  --color-border-layout-gb61sp:var(--color-neutral-300-y8n3aq);
461
461
  --color-border-layout-side-navigation-2sf7fy:var(--color-border-layout-gb61sp);
462
462
  --color-border-notification-stack-bar-jvl0qf:var(--color-neutral-750-gjawa6);
463
+ --color-border-notification-stack-bar-focused-b7p5cb:var(--color-neutral-100-wbgy1o);
463
464
  --color-border-panel-header-foa5nl:var(--color-border-divider-default-hfk422);
464
465
  --color-border-popover-ketulz:var(--color-neutral-300-y8n3aq);
465
466
  --color-border-segment-active-lq5o9c:var(--color-border-segment-hover-y1gvtl);
@@ -857,6 +858,12 @@
857
858
  --motion-duration-complex-hv88cf:var(--motion-duration-extra-slow-j8l6m4);
858
859
  --motion-duration-tooltip-enter-nk9iah:var(--motion-duration-refresh-only-fast-v9rk6z);
859
860
  --motion-easing-tooltip-enter-6l34dh:var(--motion-easing-refresh-only-a-8gio5w);
861
+ --motion-duration-expandable-content-enter-3jnwoa:var(--motion-duration-show-paced-agho9h);
862
+ --motion-easing-expandable-content-enter-piv7vv:var(--motion-easing-show-paced-vcekro);
863
+ --motion-duration-side-navigation-content-enter-fade-h7ult1:0ms;
864
+ --motion-duration-side-navigation-content-exit-kriedk:0ms;
865
+ --motion-duration-side-navigation-content-exit-fade-nz2nnd:0ms;
866
+ --motion-easing-side-navigation-content-exit-buhjdz:var(--motion-easing-show-quick-xucy9w);
860
867
  --motion-keyframes-fade-in-o4r43z:awsui-fade-in-35003c;
861
868
  --motion-keyframes-fade-out-xbl069:awsui-fade-out-35003c;
862
869
  --motion-keyframes-status-icon-error-dg0iw6:awsui-none-35003c;
@@ -871,6 +878,8 @@
871
878
  --size-vertical-input-8gzd1t:32px;
872
879
  --size-vertical-panel-icon-offset-1tiizm:15px;
873
880
  --size-side-navigation-item-height-nnzau5:28px;
881
+ --size-side-navigation-item-collapsed-scuvli:30px;
882
+ --size-side-navigation-collapsed-width-byyptb:52px;
874
883
  --space-alert-action-left-ii45xs:var(--space-l-3cws6j);
875
884
  --space-alert-horizontal-vvafy5:var(--space-l-3cws6j);
876
885
  --space-alert-message-right-ipx6aa:0px;
@@ -1150,7 +1159,6 @@
1150
1159
  --color-background-input-default-83w0sy:var(--color-neutral-850-m3u7h5);
1151
1160
  --color-background-input-disabled-27sca7:var(--color-neutral-700-heh17v);
1152
1161
  --color-background-item-selected-wgqdgm:var(--color-primary-1000-gaqvjz);
1153
- --color-background-side-navigation-item-icon-hover-r7but1:var(--color-neutral-700-heh17v);
1154
1162
  --color-background-layout-main-2vy1pe:var(--color-neutral-950-qehfms);
1155
1163
  --color-background-backdrop-l9srsy:var(--color-grey-opaque-80-1l8ptn);
1156
1164
  --color-background-layout-panel-hover-14iny7:var(--color-neutral-700-heh17v);
@@ -1329,6 +1337,7 @@
1329
1337
  --size-vertical-input-8gzd1t:28px;
1330
1338
  --size-vertical-panel-icon-offset-1tiizm:13px;
1331
1339
  --size-side-navigation-item-height-nnzau5:24px;
1340
+ --size-side-navigation-item-collapsed-scuvli:28px;
1332
1341
  --space-field-vertical-dgs6s0:2px;
1333
1342
  --space-card-horizontal-embedded-z4gdo8:10px;
1334
1343
  --space-card-vertical-embedded-u2cdf0:var(--space-xs-kw7k3v);
@@ -1398,6 +1407,7 @@
1398
1407
  --motion-duration-responsive-a42db8:var(--motion-duration-moderate-24bai8);
1399
1408
  --motion-duration-expressive-7myv8y:var(--motion-duration-slow-cxexcj);
1400
1409
  --motion-duration-complex-hv88cf:var(--motion-duration-extra-slow-j8l6m4);
1410
+ --motion-duration-expandable-content-enter-3jnwoa:var(--motion-duration-show-paced-agho9h);
1401
1411
  }
1402
1412
  .awsui-context-compact-table:not(#\9) {
1403
1413
  --size-vertical-input-8gzd1t:28px;
@@ -1473,7 +1483,6 @@
1473
1483
  --color-background-input-default-83w0sy:var(--color-neutral-850-m3u7h5);
1474
1484
  --color-background-input-disabled-27sca7:var(--color-neutral-700-heh17v);
1475
1485
  --color-background-item-selected-wgqdgm:var(--color-primary-1000-gaqvjz);
1476
- --color-background-side-navigation-item-icon-hover-r7but1:var(--color-neutral-700-heh17v);
1477
1486
  --color-background-layout-main-2vy1pe:var(--color-neutral-950-qehfms);
1478
1487
  --color-background-backdrop-l9srsy:var(--color-grey-opaque-80-1l8ptn);
1479
1488
  --color-background-layout-panel-hover-14iny7:var(--color-neutral-700-heh17v);
@@ -1649,6 +1658,7 @@
1649
1658
  --color-background-item-card-itpd5p:var(--color-background-card-hbzjvh);
1650
1659
  --color-background-dropdown-item-selected-rknjid:var(--color-background-item-selected-wgqdgm);
1651
1660
  --color-background-side-navigation-item-active-collapsed-ggffiq:var(--color-background-control-checked-8lskez);
1661
+ --color-background-side-navigation-item-icon-hover-efska0:var(--color-background-item-selected-wgqdgm);
1652
1662
  --color-background-drawer-9wg4qg:var(--color-background-layout-panel-content-2jvi28);
1653
1663
  --color-background-drawer-backdrop-yum1d8:var(--color-background-backdrop-l9srsy);
1654
1664
  --color-background-layout-mobile-panel-20j5lz:var(--color-background-layout-panel-content-2jvi28);
@@ -2290,7 +2300,7 @@
2290
2300
  --color-background-input-disabled-27sca7:var(--color-neutral-250-hdfqdx);
2291
2301
  --color-background-item-selected-wgqdgm:var(--color-primary-50-k00bx1);
2292
2302
  --color-background-side-navigation-item-active-collapsed-ggffiq:var(--color-background-control-checked-8lskez);
2293
- --color-background-side-navigation-item-icon-hover-r7but1:var(--color-primary-50-k00bx1);
2303
+ --color-background-side-navigation-item-icon-hover-efska0:var(--color-background-item-selected-wgqdgm);
2294
2304
  --color-background-layout-ai-drawer-91zkk9:var(--color-neutral-850-m3u7h5);
2295
2305
  --color-background-drawer-backdrop-yum1d8:var(--color-background-backdrop-l9srsy);
2296
2306
  --color-background-layout-panel-hover-14iny7:var(--color-neutral-250-hdfqdx);
@@ -2373,6 +2383,7 @@
2373
2383
  --color-border-item-selected-gjef9b:var(--color-item-selected-no87na);
2374
2384
  --color-border-layout-side-navigation-2sf7fy:var(--color-border-layout-gb61sp);
2375
2385
  --color-border-notification-stack-bar-jvl0qf:var(--color-neutral-750-gjawa6);
2386
+ --color-border-notification-stack-bar-focused-b7p5cb:var(--color-neutral-100-wbgy1o);
2376
2387
  --color-border-panel-header-foa5nl:var(--color-border-divider-default-hfk422);
2377
2388
  --color-border-segment-wrapper-s9miyu:var(--color-border-input-default-dwoouh);
2378
2389
  --color-border-status-error-37u80c:var(--color-error-600-l0qq56);
@@ -2559,7 +2570,6 @@
2559
2570
  --color-background-dropdown-item-hover-8liz26:var(--color-neutral-900-o3oyxe);
2560
2571
  --color-background-input-disabled-27sca7:var(--color-neutral-800-u27ub9);
2561
2572
  --color-background-item-selected-wgqdgm:var(--color-primary-1000-gaqvjz);
2562
- --color-background-side-navigation-item-icon-hover-r7but1:var(--color-neutral-700-heh17v);
2563
2573
  --color-background-layout-main-2vy1pe:var(--color-neutral-850-m3u7h5);
2564
2574
  --color-background-layout-panel-hover-14iny7:var(--color-neutral-700-heh17v);
2565
2575
  --color-background-layout-toggle-selected-active-6j7su9:var(--color-primary-400-i8y8uk);
@@ -2918,7 +2928,6 @@
2918
2928
  --color-background-dropdown-item-hover-8liz26:var(--color-neutral-900-o3oyxe);
2919
2929
  --color-background-input-disabled-27sca7:var(--color-neutral-800-u27ub9);
2920
2930
  --color-background-item-selected-wgqdgm:var(--color-primary-1000-gaqvjz);
2921
- --color-background-side-navigation-item-icon-hover-r7but1:var(--color-neutral-700-heh17v);
2922
2931
  --color-background-layout-main-2vy1pe:var(--color-neutral-850-m3u7h5);
2923
2932
  --color-background-layout-panel-hover-14iny7:var(--color-neutral-700-heh17v);
2924
2933
  --color-background-layout-toggle-selected-active-6j7su9:var(--color-primary-400-i8y8uk);
@@ -3049,6 +3058,7 @@
3049
3058
  --color-background-item-card-itpd5p:var(--color-background-card-hbzjvh);
3050
3059
  --color-background-dropdown-item-selected-rknjid:var(--color-background-item-selected-wgqdgm);
3051
3060
  --color-background-side-navigation-item-active-collapsed-ggffiq:var(--color-background-control-checked-8lskez);
3061
+ --color-background-side-navigation-item-icon-hover-efska0:var(--color-background-item-selected-wgqdgm);
3052
3062
  --color-background-drawer-9wg4qg:var(--color-background-layout-panel-content-2jvi28);
3053
3063
  --color-background-backdrop-l9srsy:var(--color-grey-opaque-70-0hfmhv);
3054
3064
  --color-background-drawer-backdrop-yum1d8:var(--color-background-backdrop-l9srsy);
@@ -3197,7 +3207,6 @@
3197
3207
  --color-background-input-default-83w0sy:var(--color-neutral-950-qehfms);
3198
3208
  --color-background-input-disabled-27sca7:var(--color-neutral-800-u27ub9);
3199
3209
  --color-background-item-selected-wgqdgm:var(--color-primary-1000-gaqvjz);
3200
- --color-background-side-navigation-item-icon-hover-r7but1:var(--color-neutral-700-heh17v);
3201
3210
  --color-background-layout-main-2vy1pe:var(--color-neutral-950-qehfms);
3202
3211
  --color-background-layout-panel-hover-14iny7:var(--color-neutral-700-heh17v);
3203
3212
  --color-background-layout-toggle-selected-active-6j7su9:var(--color-primary-400-i8y8uk);
@@ -3387,6 +3396,7 @@
3387
3396
  --color-background-item-card-itpd5p:var(--color-background-card-hbzjvh);
3388
3397
  --color-background-dropdown-item-selected-rknjid:var(--color-background-item-selected-wgqdgm);
3389
3398
  --color-background-side-navigation-item-active-collapsed-ggffiq:var(--color-background-control-checked-8lskez);
3399
+ --color-background-side-navigation-item-icon-hover-efska0:var(--color-background-item-selected-wgqdgm);
3390
3400
  --color-background-drawer-9wg4qg:var(--color-background-layout-panel-content-2jvi28);
3391
3401
  --color-background-backdrop-l9srsy:var(--color-grey-opaque-70-0hfmhv);
3392
3402
  --color-background-drawer-backdrop-yum1d8:var(--color-background-backdrop-l9srsy);
@@ -3824,7 +3834,6 @@
3824
3834
  --color-background-input-default-83w0sy:var(--color-neutral-850-m3u7h5);
3825
3835
  --color-background-input-disabled-27sca7:var(--color-neutral-800-u27ub9);
3826
3836
  --color-background-item-selected-wgqdgm:var(--color-primary-1000-gaqvjz);
3827
- --color-background-side-navigation-item-icon-hover-r7but1:var(--color-neutral-700-heh17v);
3828
3837
  --color-background-layout-main-2vy1pe:var(--color-neutral-850-m3u7h5);
3829
3838
  --color-background-layout-panel-hover-14iny7:var(--color-neutral-700-heh17v);
3830
3839
  --color-background-layout-toggle-selected-active-6j7su9:var(--color-primary-400-i8y8uk);
@@ -4004,6 +4013,7 @@
4004
4013
  --color-background-item-card-itpd5p:var(--color-background-card-hbzjvh);
4005
4014
  --color-background-dropdown-item-selected-rknjid:var(--color-background-item-selected-wgqdgm);
4006
4015
  --color-background-side-navigation-item-active-collapsed-ggffiq:var(--color-background-control-checked-8lskez);
4016
+ --color-background-side-navigation-item-icon-hover-efska0:var(--color-background-item-selected-wgqdgm);
4007
4017
  --color-background-drawer-9wg4qg:var(--color-background-layout-panel-content-2jvi28);
4008
4018
  --color-background-backdrop-l9srsy:var(--color-grey-opaque-70-0hfmhv);
4009
4019
  --color-background-drawer-backdrop-yum1d8:var(--color-background-backdrop-l9srsy);
@@ -4280,5 +4290,5 @@
4280
4290
  }
4281
4291
  }
4282
4292
  :root {
4283
- --awsui-version-info-abe35802: true;
4293
+ --awsui-version-info-7f29935f: true;
4284
4294
  }
@@ -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,11 +14,11 @@ 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({ in: isIn, children, exit, onStatusChange, disabled, transitionChangeDelay, exitTimeout, ...rest }: TransitionProps): JSX.Element;
22
+ export declare function Transition<T extends HTMLElement = any>({ in: isIn, children, exit, onStatusChange, disabled, transitionChangeDelay, exitTimeout, ...rest }: TransitionProps<T>): JSX.Element;
23
23
  export {};
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -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,c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AG,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":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAoB,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EACL,UAAU,IAAI,8BAA8B,GAE7C,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAgBjF;;;;;GAKG;AACH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GAAG,EAAE;YACd,kBAAkB,CAAC,SAAS,CAAC,CAAC;YAC9B,cAAc,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE;YACb,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAC7B,cAAc,CAAC,QAAQ,CAAC,CAAC;QAC3B,CAAC,KACG,IAAI,IAEP,GAAG,EAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC,CACxB,CAClC,CAAC;AACJ,CAAC","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":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAoB,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EACL,UAAU,IAAI,8BAA8B,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AE;YACX,kBAAkB,CAAC,MAAM,CAAC,CAAC;YAC3B,cAAc,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC,EACD,SAAS,EAAE,GAAG,EAAE;YACd,kBAAkB,CAAC,SAAS,CAAC,CAAC;YAC9B,cAAc,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE;YACb,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAC7B,cAAc,CAAC,QAAQ,CAAC,CAAC;QAC3B,CAAC,KACG,IAAI,IAEP,GAAG,EAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,qBAAqB,EAAE,cAAc,CAAC,CACxC,CAClC,CAAC;AACJ,CAAC","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": "default",
6
6
  "SYSTEM": "core",
7
7
  "ALWAYS_VISUAL_REFRESH": false,
@@ -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)";