@carbon/ibm-products 2.60.0-rc.0 → 2.61.0-rc.0

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 (143) hide show
  1. package/css/index-full-carbon.css +113 -497
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +64 -492
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +93 -492
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +93 -510
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/ActionBar/ActionBar.d.ts +3 -3
  18. package/es/components/ActionBar/ActionBar.js +47 -150
  19. package/es/components/ActionBar/ActionBarOverflowItems.js +1 -1
  20. package/es/components/Checklist/ChecklistChart.js +1 -1
  21. package/es/components/Coachmark/Coachmark.js +1 -1
  22. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
  23. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +3 -3
  24. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +4 -1
  25. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +7 -2
  26. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +7 -2
  27. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
  28. package/es/components/ConditionBuilder/utils/util.d.ts +1 -0
  29. package/es/components/ConditionBuilder/utils/util.js +7 -1
  30. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -3
  31. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -2
  32. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  33. package/es/components/Datagrid/useDatagrid.js +2 -2
  34. package/es/components/Datagrid/useInfiniteScroll.js +2 -5
  35. package/es/components/Datagrid/useRowIsMouseOver.d.ts +1 -1
  36. package/es/components/Datagrid/useRowIsMouseOver.js +2 -1
  37. package/es/components/Datagrid/useStickyColumn.d.ts +1 -1
  38. package/es/components/Datagrid/useStickyColumn.js +1 -1
  39. package/es/components/FilterSummary/FilterSummary.js +1 -1
  40. package/es/components/InterstitialScreen/InterstitialScreen.js +1 -1
  41. package/es/components/Nav/NavItem.js +1 -1
  42. package/es/components/NotificationsPanel/NotificationsPanel.d.ts +5 -0
  43. package/es/components/NotificationsPanel/NotificationsPanel.js +11 -17
  44. package/es/components/OptionsTile/OptionsTile.d.ts +2 -3
  45. package/es/components/OptionsTile/OptionsTile.js +49 -97
  46. package/es/components/PageHeader/PageHeader.js +16 -14
  47. package/es/components/PageHeader/PageHeaderTitle.js +2 -2
  48. package/es/components/ScrollGradient/ScrollGradient.js +74 -25
  49. package/es/components/ScrollGradient/constants.d.ts +0 -5
  50. package/es/components/ScrollGradient/constants.js +2 -47
  51. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  52. package/es/components/TagOverflow/TagOverflow.d.ts +5 -1
  53. package/es/components/Tearsheet/Tearsheet.d.ts +5 -1
  54. package/es/components/Tearsheet/TearsheetNarrow.d.ts +5 -1
  55. package/es/components/WebTerminal/WebTerminal.js +0 -13
  56. package/es/global/js/hooks/useControllableState.d.ts +12 -24
  57. package/es/global/js/hooks/useControllableState.js +18 -60
  58. package/es/global/js/hooks/useOverflowItems.d.ts +7 -2
  59. package/es/global/js/hooks/useOverflowItems.js +50 -17
  60. package/es/global/js/hooks/useOverflowString.d.ts +9 -0
  61. package/es/global/js/hooks/useOverflowString.js +52 -0
  62. package/es/global/js/hooks/usePresence.d.ts +1 -1
  63. package/es/global/js/hooks/usePresence.js +2 -2
  64. package/es/global/js/utils/checkForOverflow.js +1 -11
  65. package/es/global/js/utils/clamp.d.ts +7 -0
  66. package/es/global/js/utils/clamp.js +25 -0
  67. package/es/global/js/utils/debounce.d.ts +7 -0
  68. package/es/global/js/utils/debounce.js +30 -0
  69. package/es/global/js/utils/deepCompareObject.d.ts +7 -0
  70. package/es/global/js/utils/deepCompareObject.js +47 -0
  71. package/es/global/js/utils/throttle.d.ts +7 -0
  72. package/es/global/js/utils/throttle.js +19 -0
  73. package/es/global/js/utils/uuidv4.d.ts +2 -2
  74. package/es/global/js/utils/uuidv4.js +3 -2
  75. package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +2787 -0
  76. package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1013 -943
  77. package/lib/components/ActionBar/ActionBar.d.ts +3 -3
  78. package/lib/components/ActionBar/ActionBar.js +45 -148
  79. package/lib/components/ActionBar/ActionBarOverflowItems.js +1 -1
  80. package/lib/components/Checklist/ChecklistChart.js +2 -2
  81. package/lib/components/Coachmark/Coachmark.js +2 -2
  82. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +4 -4
  83. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +2 -2
  84. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +3 -0
  85. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -1
  86. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
  87. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
  88. package/lib/components/ConditionBuilder/utils/util.d.ts +1 -0
  89. package/lib/components/ConditionBuilder/utils/util.js +7 -0
  90. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -3
  91. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -2
  92. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  93. package/lib/components/Datagrid/useDatagrid.js +2 -2
  94. package/lib/components/Datagrid/useInfiniteScroll.js +2 -5
  95. package/lib/components/Datagrid/useRowIsMouseOver.d.ts +1 -1
  96. package/lib/components/Datagrid/useRowIsMouseOver.js +3 -2
  97. package/lib/components/Datagrid/useStickyColumn.d.ts +1 -1
  98. package/lib/components/Datagrid/useStickyColumn.js +2 -2
  99. package/lib/components/FilterSummary/FilterSummary.js +2 -2
  100. package/lib/components/InterstitialScreen/InterstitialScreen.js +3 -3
  101. package/lib/components/Nav/NavItem.js +2 -2
  102. package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +5 -0
  103. package/lib/components/NotificationsPanel/NotificationsPanel.js +11 -17
  104. package/lib/components/OptionsTile/OptionsTile.d.ts +2 -3
  105. package/lib/components/OptionsTile/OptionsTile.js +49 -97
  106. package/lib/components/PageHeader/PageHeader.js +16 -14
  107. package/lib/components/PageHeader/PageHeaderTitle.js +2 -2
  108. package/lib/components/ScrollGradient/ScrollGradient.js +72 -23
  109. package/lib/components/ScrollGradient/constants.d.ts +0 -5
  110. package/lib/components/ScrollGradient/constants.js +1 -48
  111. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +2 -2
  112. package/lib/components/TagOverflow/TagOverflow.d.ts +5 -1
  113. package/lib/components/Tearsheet/Tearsheet.d.ts +5 -1
  114. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +5 -1
  115. package/lib/components/WebTerminal/WebTerminal.js +0 -13
  116. package/lib/global/js/hooks/useControllableState.d.ts +12 -24
  117. package/lib/global/js/hooks/useControllableState.js +17 -59
  118. package/lib/global/js/hooks/useOverflowItems.d.ts +7 -2
  119. package/lib/global/js/hooks/useOverflowItems.js +49 -16
  120. package/lib/global/js/hooks/useOverflowString.d.ts +9 -0
  121. package/lib/global/js/hooks/useOverflowString.js +55 -0
  122. package/lib/global/js/hooks/usePresence.d.ts +1 -1
  123. package/lib/global/js/hooks/usePresence.js +2 -2
  124. package/lib/global/js/utils/checkForOverflow.js +0 -11
  125. package/lib/global/js/utils/clamp.d.ts +7 -0
  126. package/lib/global/js/utils/clamp.js +27 -0
  127. package/lib/global/js/utils/debounce.d.ts +7 -0
  128. package/lib/global/js/utils/debounce.js +32 -0
  129. package/lib/global/js/utils/deepCompareObject.d.ts +7 -0
  130. package/lib/global/js/utils/deepCompareObject.js +49 -0
  131. package/lib/global/js/utils/throttle.d.ts +7 -0
  132. package/lib/global/js/utils/throttle.js +21 -0
  133. package/lib/global/js/utils/uuidv4.d.ts +2 -2
  134. package/lib/global/js/utils/uuidv4.js +3 -2
  135. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +2913 -0
  136. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1018 -948
  137. package/package.json +6 -7
  138. package/scss/components/NotificationsPanel/_notifications-panel.scss +33 -20
  139. package/scss/components/ScrollGradient/_scroll-gradient.scss +30 -0
  140. package/scss/components/UserAvatar/_user-avatar.scss +2 -6
  141. package/scss/components/WebTerminal/_web-terminal.scss +13 -1
  142. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +0 -2959
  143. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +0 -3085
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.60.0-rc.0",
4
+ "version": "2.61.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -72,7 +72,7 @@
72
72
  "@rollup/plugin-typescript": "^12.1.2",
73
73
  "@types/react-table": "^7.7.20",
74
74
  "babel-plugin-dev-expression": "^0.2.3",
75
- "babel-preset-ibm-cloud-cognitive": "^0.18.0-rc.0",
75
+ "babel-preset-ibm-cloud-cognitive": "^0.19.0-rc.0",
76
76
  "chalk": "^4.1.2",
77
77
  "change-case": "5.4.4",
78
78
  "classnames": "^2.5.1",
@@ -81,7 +81,7 @@
81
81
  "fs-extra": "^11.2.0",
82
82
  "glob": "^11.0.1",
83
83
  "jest": "^29.7.0",
84
- "jest-config-ibm-cloud-cognitive": "^1.19.0-rc.0",
84
+ "jest-config-ibm-cloud-cognitive": "^1.20.0-rc.0",
85
85
  "jest-environment-jsdom": "^29.7.0",
86
86
  "namor": "^1.1.2",
87
87
  "npm-check-updates": "^17.1.13",
@@ -96,7 +96,7 @@
96
96
  "dependencies": {
97
97
  "@babel/runtime": "^7.26.0",
98
98
  "@carbon/feature-flags": "^0.24.0",
99
- "@carbon/ibm-products-styles": "^2.56.0-rc.0",
99
+ "@carbon/ibm-products-styles": "^2.57.0-rc.0",
100
100
  "@carbon/telemetry": "^0.1.0",
101
101
  "@dnd-kit/core": "^6.3.1",
102
102
  "@dnd-kit/modifiers": "^9.0.0",
@@ -104,7 +104,6 @@
104
104
  "@dnd-kit/utilities": "^3.2.2",
105
105
  "@ibm/telemetry-js": "^1.8.0",
106
106
  "framer-motion": "^6.5.1 < 7",
107
- "lodash": "^4.17.21",
108
107
  "lottie-web": "^5.12.2",
109
108
  "react-table": "^7.8.0",
110
109
  "react-window": "^1.8.11"
@@ -113,11 +112,11 @@
113
112
  "@carbon/grid": "^11.31.0",
114
113
  "@carbon/layout": "^11.29.0",
115
114
  "@carbon/motion": "^11.24.0",
116
- "@carbon/react": "^1.75.0",
115
+ "@carbon/react": "^1.76.0",
117
116
  "@carbon/themes": "^11.46.0",
118
117
  "@carbon/type": "^11.35.0",
119
118
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
120
119
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
121
120
  },
122
- "gitHead": "c6483ba5c87a8c7b18a79188205dd425f9a406cb"
121
+ "gitHead": "42105e25737b74016cd80bcf1f76aeee6ee96cdf"
123
122
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2020, 2021
2
+ // Copyright IBM Corp. 2020, 2025
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -7,7 +7,6 @@
7
7
 
8
8
  // Standard imports.
9
9
  @use '@carbon/styles/scss/theme' as *;
10
- @use '@carbon/styles/scss/themes' as *;
11
10
  @use '@carbon/styles/scss/spacing' as *;
12
11
  @use '@carbon/styles/scss/motion' as *;
13
12
  @use '@carbon/styles/scss/type';
@@ -20,11 +19,13 @@
20
19
  @use '../EmptyStates/empty-state';
21
20
 
22
21
  $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
22
+ $block-size: 38.5rem;
23
+
23
24
  @keyframes fade-in {
24
25
  0% {
25
26
  opacity: 0;
26
27
  // stylelint-disable-next-line carbon/layout-use
27
- transform: translateY(-38.5rem); // the height of the notification panel
28
+ transform: translateY(-$block-size); // the height of the notification panel
28
29
  }
29
30
 
30
31
  100% {
@@ -42,23 +43,37 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
42
43
  100% {
43
44
  opacity: 0;
44
45
  // stylelint-disable-next-line carbon/layout-use
45
- transform: translateY(-38.5rem); // the height of the notification panel
46
+ transform: translateY(-$block-size); // the height of the notification panel
46
47
  }
47
48
  }
49
+ .#{$block-class}__entrance {
50
+ animation: fade-in $duration-moderate-02 motion(standard);
51
+ }
48
52
 
49
- .#{$block-class}__container {
50
- @include theme($g100);
53
+ .#{$block-class}__exit {
54
+ animation: fade-out forwards $duration-moderate-02 motion(standard);
55
+ }
51
56
 
57
+ .#{$block-class} {
58
+ @media (prefers-reduced-motion) {
59
+ animation: none;
60
+ }
61
+ }
62
+
63
+ .#{$block-class}__container {
52
64
  position: fixed;
53
65
  z-index: 2;
54
66
  overflow: auto;
55
- background-color: $background;
67
+ background-color: $layer-01;
68
+ border-block-end: 1px solid $border-subtle-02;
69
+ border-inline-start: 1px solid $border-subtle-02;
70
+ box-shadow: 0 $spacing-01 $spacing-02 $overlay;
56
71
  color: $text-primary;
57
72
  inset-block-start: $spacing-09;
58
73
  inset-inline-end: 0;
59
- max-block-size: 38.5rem;
74
+ max-block-size: $block-size;
60
75
  max-inline-size: 22.75rem;
61
- min-block-size: 38.5rem;
76
+ min-block-size: $block-size;
62
77
  min-inline-size: 20rem;
63
78
  transition: transform $duration-fast-02 motion(standard);
64
79
 
@@ -66,8 +81,8 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
66
81
  position: sticky;
67
82
  z-index: 2;
68
83
  padding: $spacing-03 $spacing-05 $spacing-05;
69
- background-color: $background;
70
- border-block-end: 1px solid $layer-02;
84
+ background-color: $layer-01;
85
+ border-block-end: 1px solid $border-subtle-01;
71
86
  inset-block-start: 0;
72
87
  .#{$block-class}__header-flex {
73
88
  display: flex;
@@ -119,19 +134,19 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
119
134
  align-items: flex-start;
120
135
  padding: $spacing-05;
121
136
  border: 0;
122
- background-color: $background;
137
+ background-color: $layer-01;
123
138
  cursor: pointer;
124
139
  inline-size: 100%;
125
140
  min-block-size: 6.25rem;
126
141
  text-align: start;
127
142
  transition: background-color $duration-moderate-02 motion(standard);
128
143
  .#{$block-class}__notification-title {
129
- color: $text-on-color;
144
+ color: $text-secondary;
130
145
  margin-block-end: $spacing-02;
131
146
  @include font-weight('regular');
132
147
  }
133
148
  .#{$block-class}__notification-title.#{$block-class}__notification-title-unread {
134
- color: $text-on-color;
149
+ color: $text-secondary;
135
150
  margin-block-end: $spacing-02;
136
151
  @include font-weight('semibold');
137
152
  }
@@ -235,7 +250,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
235
250
  .#{$block-class}__notification-previous:not(:first-of-type):before {
236
251
  position: absolute;
237
252
  margin: 0 auto;
238
- background-color: $layer-02;
253
+ background-color: $border-subtle-01;
239
254
  block-size: 1px;
240
255
  content: '';
241
256
  inline-size: calc(100% - (2 * #{$spacing-05}));
@@ -269,18 +284,16 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
269
284
  z-index: 2;
270
285
  display: flex;
271
286
  align-items: center;
272
- background-color: $background;
287
+ background-color: $layer-01;
273
288
  block-size: 2.5rem;
274
- border-block-start: 1px solid $layer-02;
289
+ border-block-start: 1px solid $border-subtle-01;
275
290
  inset-block-end: 0;
276
291
  min-block-size: 2.5rem;
277
292
  .#{$block-class}__view-all-button {
278
293
  display: flex;
279
- width: 100%;
280
- max-width: calc(100% - 2.5rem);
281
294
  align-items: center;
282
295
  block-size: 2.5rem;
283
- border-inline-end: 1px solid $layer-02;
296
+ border-inline-end: 1px solid $border-subtle-01;
284
297
  color: $text-primary;
285
298
  inline-size: 100%;
286
299
  max-inline-size: calc(100% - 2.5rem);
@@ -12,6 +12,7 @@
12
12
  @use '@carbon/styles/scss/spacing' as *;
13
13
 
14
14
  $block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
15
+ $intersection-value: 3rem;
15
16
 
16
17
  .#{$block-class} {
17
18
  position: relative;
@@ -22,15 +23,23 @@ $block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
22
23
  inline-size: inherit;
23
24
  }
24
25
  .#{$block-class}__content {
26
+ display: grid;
25
27
  overflow: auto;
26
28
  block-size: inherit;
29
+ grid-template-columns: 1fr;
27
30
  inline-size: 100%;
28
31
  }
29
32
 
30
33
  .#{$block-class}__content-children {
31
34
  block-size: 100%;
35
+ grid-column-start: 1;
36
+ grid-row-start: 1;
32
37
  inline-size: 100%;
33
38
  }
39
+
40
+ .#{$block-class}__content-children > * {
41
+ grid-area: 1 / 1;
42
+ }
34
43
  // All gradients
35
44
  .#{$block-class}__start-vertical,
36
45
  .#{$block-class}__start-horizontal,
@@ -100,3 +109,24 @@ $block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
100
109
  .#{$block-class}__end-horizontal {
101
110
  display: block;
102
111
  }
112
+
113
+ .#{$block-class} [data-start-vertical],
114
+ .#{$block-class} [data-end-vertical] {
115
+ block-size: $intersection-value;
116
+ grid-column-start: 1;
117
+ grid-row-start: 1;
118
+ inline-size: 100%;
119
+ }
120
+
121
+ .#{$block-class} [data-end-vertical],
122
+ .#{$block-class} [data-end-horizontal] {
123
+ place-self: flex-end;
124
+ }
125
+
126
+ .#{$block-class} [data-start-horizontal],
127
+ .#{$block-class} [data-end-horizontal] {
128
+ block-size: 100%;
129
+ grid-column-start: 1;
130
+ grid-row-start: 1;
131
+ inline-size: $intersection-value;
132
+ }
@@ -72,9 +72,7 @@ $sizes: (
72
72
  @mixin setLightBg($order, $color) {
73
73
  :root .#{$block-class}--#{$order},
74
74
  .#{$carbon-prefix}--g10 .#{$block-class}--#{$order},
75
- .#{$carbon-prefix}--white .#{$block-class}--#{$order},
76
- [storybook-carbon-theme='g10'] .#{$block-class}--#{$order},
77
- [storybook-carbon-theme='white'] .#{$block-class}--#{$order} {
75
+ .#{$carbon-prefix}--white .#{$block-class}--#{$order} {
78
76
  @include setBgColor($color);
79
77
  }
80
78
  }
@@ -82,9 +80,7 @@ $sizes: (
82
80
  //this mixin allows you to set background color based on the darker themes such as g90 and g100
83
81
  @mixin setDarkBg($order, $color) {
84
82
  .#{$carbon-prefix}--g90 .#{$block-class}--#{$order},
85
- .#{$carbon-prefix}--g100 .#{$block-class}--#{$order},
86
- [storybook-carbon-theme='g90'] .#{$block-class}--#{$order},
87
- [storybook-carbon-theme='g100'] .#{$block-class}--#{$order} {
83
+ .#{$carbon-prefix}--g100 .#{$block-class}--#{$order} {
88
84
  @include setBgColor($color);
89
85
  }
90
86
  }
@@ -8,6 +8,7 @@
8
8
  // Standard imports.
9
9
  @use '@carbon/styles/scss/colors' as *;
10
10
  @use '@carbon/styles/scss/spacing' as *;
11
+ @use '@carbon/styles/scss/motion' as *;
11
12
  @use '@carbon/styles/scss/themes' as *;
12
13
  @use '@carbon/styles/scss/theme' as *;
13
14
  @use '../../global/styles/project-settings' as *;
@@ -47,6 +48,14 @@ $block-class: #{$pkg-prefix}--web-terminal;
47
48
  despite of which carbon theme the user has.
48
49
  */
49
50
 
51
+ .#{$block-class}--open {
52
+ animation: web-terminal-entrance $duration-moderate-02 motion(standard);
53
+ }
54
+
55
+ .#{$block-class}--closed {
56
+ animation: web-terminal-exit forwards $duration-moderate-02 motion(standard);
57
+ }
58
+
50
59
  .#{$block-class} {
51
60
  @include theme($g90);
52
61
 
@@ -58,7 +67,10 @@ $block-class: #{$pkg-prefix}--web-terminal;
58
67
  inset-block-start: $spacing-09;
59
68
  inset-inline-end: 0;
60
69
  max-inline-size: $web-terminal-width;
61
- /* stylelint-disable-next-line */
70
+
71
+ @media (prefers-reduced-motion) {
72
+ animation: none;
73
+ }
62
74
  }
63
75
 
64
76
  .#{$block-class}__bar {