@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.
- package/css/index-full-carbon.css +113 -497
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +64 -492
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +93 -492
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +93 -510
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ActionBar/ActionBar.d.ts +3 -3
- package/es/components/ActionBar/ActionBar.js +47 -150
- package/es/components/ActionBar/ActionBarOverflowItems.js +1 -1
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Coachmark/Coachmark.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +4 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +7 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +7 -2
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/util.d.ts +1 -0
- package/es/components/ConditionBuilder/utils/util.js +7 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useInfiniteScroll.js +2 -5
- package/es/components/Datagrid/useRowIsMouseOver.d.ts +1 -1
- package/es/components/Datagrid/useRowIsMouseOver.js +2 -1
- package/es/components/Datagrid/useStickyColumn.d.ts +1 -1
- package/es/components/Datagrid/useStickyColumn.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +1 -1
- package/es/components/Nav/NavItem.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +5 -0
- package/es/components/NotificationsPanel/NotificationsPanel.js +11 -17
- package/es/components/OptionsTile/OptionsTile.d.ts +2 -3
- package/es/components/OptionsTile/OptionsTile.js +49 -97
- package/es/components/PageHeader/PageHeader.js +16 -14
- package/es/components/PageHeader/PageHeaderTitle.js +2 -2
- package/es/components/ScrollGradient/ScrollGradient.js +74 -25
- package/es/components/ScrollGradient/constants.d.ts +0 -5
- package/es/components/ScrollGradient/constants.js +2 -47
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/TagOverflow/TagOverflow.d.ts +5 -1
- package/es/components/Tearsheet/Tearsheet.d.ts +5 -1
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +5 -1
- package/es/components/WebTerminal/WebTerminal.js +0 -13
- package/es/global/js/hooks/useControllableState.d.ts +12 -24
- package/es/global/js/hooks/useControllableState.js +18 -60
- package/es/global/js/hooks/useOverflowItems.d.ts +7 -2
- package/es/global/js/hooks/useOverflowItems.js +50 -17
- package/es/global/js/hooks/useOverflowString.d.ts +9 -0
- package/es/global/js/hooks/useOverflowString.js +52 -0
- package/es/global/js/hooks/usePresence.d.ts +1 -1
- package/es/global/js/hooks/usePresence.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -11
- package/es/global/js/utils/clamp.d.ts +7 -0
- package/es/global/js/utils/clamp.js +25 -0
- package/es/global/js/utils/debounce.d.ts +7 -0
- package/es/global/js/utils/debounce.js +30 -0
- package/es/global/js/utils/deepCompareObject.d.ts +7 -0
- package/es/global/js/utils/deepCompareObject.js +47 -0
- package/es/global/js/utils/throttle.d.ts +7 -0
- package/es/global/js/utils/throttle.js +19 -0
- package/es/global/js/utils/uuidv4.d.ts +2 -2
- package/es/global/js/utils/uuidv4.js +3 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +2787 -0
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1013 -943
- package/lib/components/ActionBar/ActionBar.d.ts +3 -3
- package/lib/components/ActionBar/ActionBar.js +45 -148
- package/lib/components/ActionBar/ActionBarOverflowItems.js +1 -1
- package/lib/components/Checklist/ChecklistChart.js +2 -2
- package/lib/components/Coachmark/Coachmark.js +2 -2
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +4 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +3 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/util.d.ts +1 -0
- package/lib/components/ConditionBuilder/utils/util.js +7 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useInfiniteScroll.js +2 -5
- package/lib/components/Datagrid/useRowIsMouseOver.d.ts +1 -1
- package/lib/components/Datagrid/useRowIsMouseOver.js +3 -2
- package/lib/components/Datagrid/useStickyColumn.d.ts +1 -1
- package/lib/components/Datagrid/useStickyColumn.js +2 -2
- package/lib/components/FilterSummary/FilterSummary.js +2 -2
- package/lib/components/InterstitialScreen/InterstitialScreen.js +3 -3
- package/lib/components/Nav/NavItem.js +2 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +5 -0
- package/lib/components/NotificationsPanel/NotificationsPanel.js +11 -17
- package/lib/components/OptionsTile/OptionsTile.d.ts +2 -3
- package/lib/components/OptionsTile/OptionsTile.js +49 -97
- package/lib/components/PageHeader/PageHeader.js +16 -14
- package/lib/components/PageHeader/PageHeaderTitle.js +2 -2
- package/lib/components/ScrollGradient/ScrollGradient.js +72 -23
- package/lib/components/ScrollGradient/constants.d.ts +0 -5
- package/lib/components/ScrollGradient/constants.js +1 -48
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +2 -2
- package/lib/components/TagOverflow/TagOverflow.d.ts +5 -1
- package/lib/components/Tearsheet/Tearsheet.d.ts +5 -1
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +5 -1
- package/lib/components/WebTerminal/WebTerminal.js +0 -13
- package/lib/global/js/hooks/useControllableState.d.ts +12 -24
- package/lib/global/js/hooks/useControllableState.js +17 -59
- package/lib/global/js/hooks/useOverflowItems.d.ts +7 -2
- package/lib/global/js/hooks/useOverflowItems.js +49 -16
- package/lib/global/js/hooks/useOverflowString.d.ts +9 -0
- package/lib/global/js/hooks/useOverflowString.js +55 -0
- package/lib/global/js/hooks/usePresence.d.ts +1 -1
- package/lib/global/js/hooks/usePresence.js +2 -2
- package/lib/global/js/utils/checkForOverflow.js +0 -11
- package/lib/global/js/utils/clamp.d.ts +7 -0
- package/lib/global/js/utils/clamp.js +27 -0
- package/lib/global/js/utils/debounce.d.ts +7 -0
- package/lib/global/js/utils/debounce.js +32 -0
- package/lib/global/js/utils/deepCompareObject.d.ts +7 -0
- package/lib/global/js/utils/deepCompareObject.js +49 -0
- package/lib/global/js/utils/throttle.d.ts +7 -0
- package/lib/global/js/utils/throttle.js +21 -0
- package/lib/global/js/utils/uuidv4.d.ts +2 -2
- package/lib/global/js/utils/uuidv4.js +3 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +2913 -0
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1018 -948
- package/package.json +6 -7
- package/scss/components/NotificationsPanel/_notifications-panel.scss +33 -20
- package/scss/components/ScrollGradient/_scroll-gradient.scss +30 -0
- package/scss/components/UserAvatar/_user-avatar.scss +2 -6
- package/scss/components/WebTerminal/_web-terminal.scss +13 -1
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +0 -2959
- 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.
|
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.
|
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.
|
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.
|
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.
|
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": "
|
121
|
+
"gitHead": "42105e25737b74016cd80bcf1f76aeee6ee96cdf"
|
123
122
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
// Copyright IBM Corp. 2020,
|
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(-
|
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(-
|
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}
|
50
|
-
|
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: $
|
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:
|
74
|
+
max-block-size: $block-size;
|
60
75
|
max-inline-size: 22.75rem;
|
61
|
-
min-block-size:
|
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: $
|
70
|
-
border-block-end: 1px solid $
|
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: $
|
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-
|
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-
|
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: $
|
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: $
|
287
|
+
background-color: $layer-01;
|
273
288
|
block-size: 2.5rem;
|
274
|
-
border-block-start: 1px solid $
|
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 $
|
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
|
-
|
70
|
+
|
71
|
+
@media (prefers-reduced-motion) {
|
72
|
+
animation: none;
|
73
|
+
}
|
62
74
|
}
|
63
75
|
|
64
76
|
.#{$block-class}__bar {
|