@carbon/ibm-products 2.85.0 → 2.86.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/carbon.css +55 -2
- package/css/carbon.css.map +1 -1
- package/css/index-full-carbon.css +615 -410
- 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 +3225 -3081
- 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 +2958 -2806
- 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 +2202 -2011
- 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/ActionSet/ActionSet.d.ts +6 -0
- package/es/components/ActionSet/ActionSet.js +20 -10
- package/es/components/Coachmark/next/Coachmark/ContentBody.js +1 -1
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +2 -2
- package/es/components/EditInPlace/EditInPlace.d.ts +2 -3
- package/es/components/OptionsTile/OptionsTile.js +35 -12
- package/es/components/PageHeader/next/context.js +1 -1
- package/es/components/PageHeader/next/index.js +3 -3
- package/es/components/StringFormatter/StringFormatter.js +1 -1
- package/es/components/TagSet/TagSet.js +1 -1
- package/es/components/Tearsheet/next/StackContext.d.ts +1 -1
- package/es/components/Tearsheet/next/Tearsheet.d.ts +19 -5
- package/es/components/Tearsheet/next/Tearsheet.js +90 -31
- package/es/components/Tearsheet/next/TearsheetBody.js +2 -2
- package/es/components/Tearsheet/next/TearsheetFooter.d.ts +31 -0
- package/es/components/Tearsheet/next/TearsheetFooter.js +39 -0
- package/es/components/Tearsheet/next/TearsheetHeader.d.ts +1 -1
- package/es/components/Tearsheet/next/index.d.ts +2 -1
- package/es/components/index.d.ts +1 -1
- package/es/global/js/hooks/index.d.ts +1 -0
- package/es/global/js/utils/devtools.js +1 -1
- package/es/index.js +8 -8
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +1184 -1110
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1337 -1334
- package/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +2 -2
- package/lib/components/ActionSet/ActionSet.d.ts +6 -0
- package/lib/components/ActionSet/ActionSet.js +20 -10
- package/lib/components/Coachmark/next/Coachmark/ContentBody.js +0 -3
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.d.ts +2 -3
- package/lib/components/OptionsTile/OptionsTile.js +35 -12
- package/lib/components/PageHeader/next/index.js +6 -6
- package/lib/components/TagSet/TagSet.js +0 -3
- package/lib/components/Tearsheet/next/StackContext.d.ts +1 -1
- package/lib/components/Tearsheet/next/Tearsheet.d.ts +19 -5
- package/lib/components/Tearsheet/next/Tearsheet.js +90 -31
- package/lib/components/Tearsheet/next/TearsheetBody.js +2 -2
- package/lib/components/Tearsheet/next/TearsheetFooter.d.ts +31 -0
- package/lib/components/Tearsheet/next/TearsheetFooter.js +43 -0
- package/lib/components/Tearsheet/next/TearsheetHeader.d.ts +1 -1
- package/lib/components/Tearsheet/next/index.d.ts +2 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/global/js/hooks/index.d.ts +1 -0
- package/lib/index.js +50 -50
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +1204 -1130
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1351 -1348
- package/package.json +14 -18
- package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -0
- package/scss/components/OptionsTile/_options-tile.scss +28 -7
- package/scss/components/PageHeader/_page-header.scss +14 -4
- package/scss/components/SidePanel/_side-panel.scss +0 -2
- package/scss/components/Tearsheet/_index-with-carbon.scss +2 -1
- package/scss/components/Tearsheet/_index.scss +1 -0
- package/scss/components/Tearsheet/_tearsheet.scss +0 -2
- package/scss/components/Tearsheet/_tearsheet_next.scss +351 -229
- package/telemetry.yml +4 -1
|
@@ -16,9 +16,88 @@
|
|
|
16
16
|
|
|
17
17
|
$block-class__next: #{$pkg-prefix}--tearsheet__next;
|
|
18
18
|
$motion-duration: $duration-moderate-02;
|
|
19
|
+
// viewport, capped at 500px to set an upper limit on the movement speed
|
|
20
|
+
$transform-start: translate3d(0, calc(min(95vh, 500px)), 0);
|
|
19
21
|
|
|
20
22
|
/// Experimental tearsheet styles
|
|
21
|
-
|
|
23
|
+
.#{$block-class__next} {
|
|
24
|
+
// ──────────────────────────────────────────────────────────────
|
|
25
|
+
// Presence animations (enter/exit) - default behavior
|
|
26
|
+
// ──────────────────────────────────────────────────────────────
|
|
27
|
+
&.#{$block-class__next}:not(.#{$block-class__next}--keep-mounted) {
|
|
28
|
+
animation: #{$block-class__next}--presence-tearsheet__enter $motion-duration
|
|
29
|
+
motion(entrance, expressive);
|
|
30
|
+
opacity: 1;
|
|
31
|
+
|
|
32
|
+
// extra specificity to ensure this transition overrides the carbon default
|
|
33
|
+
&.#{$block-class__next}.#{$block-class__next}
|
|
34
|
+
.#{$block-class__next}__container {
|
|
35
|
+
animation: #{$block-class__next}--presence-tearsheet--container__enter
|
|
36
|
+
$motion-duration motion(entrance, expressive);
|
|
37
|
+
transform: translate3d(0, 0, 0);
|
|
38
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
39
|
+
animation: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.#{$block-class__next}--stacked.is-visible
|
|
44
|
+
.#{$block-class__next}__container {
|
|
45
|
+
transform: scaleX(var(--scale-factor));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-tearsheet-exiting] {
|
|
49
|
+
animation: #{$block-class__next}--presence-tearsheet__exit
|
|
50
|
+
$motion-duration motion(exit, expressive) forwards;
|
|
51
|
+
|
|
52
|
+
&.#{$block-class__next}.#{$block-class__next}
|
|
53
|
+
.#{$block-class__next}__container {
|
|
54
|
+
animation: #{$block-class__next}--presence-tearsheet--container__exit
|
|
55
|
+
$motion-duration motion(entrance, expressive) forwards;
|
|
56
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
57
|
+
animation: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// ──────────────────────────────────────────────────────────────
|
|
64
|
+
// Traditional visibility toggle when keepMounted is true
|
|
65
|
+
// ──────────────────────────────────────────────────────────────
|
|
66
|
+
&.#{$block-class__next}--keep-mounted {
|
|
67
|
+
&:not(.is-visible) {
|
|
68
|
+
&.#{$block-class__next}.#{$block-class__next}
|
|
69
|
+
.#{$block-class__next}__container {
|
|
70
|
+
transform: $transform-start;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes #{$block-class__next}--presence-tearsheet__enter {
|
|
76
|
+
from {
|
|
77
|
+
opacity: 0;
|
|
78
|
+
transition: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes #{$block-class__next}--presence-tearsheet__exit {
|
|
83
|
+
to {
|
|
84
|
+
opacity: 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes #{$block-class__next}--presence-tearsheet--container__enter {
|
|
89
|
+
from {
|
|
90
|
+
transform: $transform-start;
|
|
91
|
+
transition: none;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes #{$block-class__next}--presence-tearsheet--container__exit {
|
|
96
|
+
to {
|
|
97
|
+
transform: $transform-start;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
22
101
|
// ──────────────────────────────────────────────────────────────
|
|
23
102
|
// Container
|
|
24
103
|
// ──────────────────────────────────────────────────────────────
|
|
@@ -28,6 +107,7 @@ $motion-duration: $duration-moderate-02;
|
|
|
28
107
|
block-size: 100%;
|
|
29
108
|
inset-block-start: auto;
|
|
30
109
|
max-block-size: calc(100% - var(--tearsheet-vertical-gap, #{$spacing-09}));
|
|
110
|
+
max-inline-size: var(--tearsheet-max-inline-size, 1312px);
|
|
31
111
|
}
|
|
32
112
|
&:not(.#{$block-class__next}--stack-activated.is-visible) {
|
|
33
113
|
.#{$block-class__next}__container {
|
|
@@ -43,6 +123,7 @@ $motion-duration: $duration-moderate-02;
|
|
|
43
123
|
transform: translate3d(0, calc(min(95vh, 500px)), 0);
|
|
44
124
|
}
|
|
45
125
|
}
|
|
126
|
+
|
|
46
127
|
&.#{$block-class__next}.#{$block-class__next}--has-ai-label {
|
|
47
128
|
.#{$block-class__next}__container {
|
|
48
129
|
border: 1px solid transparent;
|
|
@@ -69,17 +150,15 @@ $motion-duration: $duration-moderate-02;
|
|
|
69
150
|
}
|
|
70
151
|
|
|
71
152
|
// Extra specificity to override Carbon default transition
|
|
153
|
+
// Keep transitions for stacking animations only
|
|
72
154
|
&.#{$block-class__next}.#{$block-class__next}
|
|
73
155
|
.#{$block-class__next}__container {
|
|
74
156
|
transition:
|
|
75
157
|
transform $motion-duration motion(entrance, expressive),
|
|
76
158
|
max-block-size $motion-duration motion(entrance, expressive);
|
|
77
|
-
}
|
|
78
159
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
&.#{$block-class__next}--wide .#{$block-class__next}__container {
|
|
82
|
-
inline-size: calc(100% - (2 * #{$spacing-10}));
|
|
160
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
161
|
+
transition: none;
|
|
83
162
|
}
|
|
84
163
|
}
|
|
85
164
|
|
|
@@ -137,149 +216,6 @@ $motion-duration: $duration-moderate-02;
|
|
|
137
216
|
}
|
|
138
217
|
}
|
|
139
218
|
|
|
140
|
-
// Header content and actions
|
|
141
|
-
.#{$block-class__next}__header-content,
|
|
142
|
-
.#{$block-class__next}__header-actions {
|
|
143
|
-
margin-block-end: $spacing-06;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Label, title, description styles
|
|
147
|
-
.#{$block-class__next}__header-label {
|
|
148
|
-
@include type.type-style('label-01');
|
|
149
|
-
|
|
150
|
-
color: $text-secondary;
|
|
151
|
-
margin-block-end: $spacing-02;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.#{$block-class__next}__header-title {
|
|
155
|
-
@include type.type-style('heading-04');
|
|
156
|
-
|
|
157
|
-
@include breakpoint-down(md) {
|
|
158
|
-
@include type.type-style('heading-03');
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
display: flex;
|
|
162
|
-
align-items: flex-start;
|
|
163
|
-
margin-block-end: $spacing-03;
|
|
164
|
-
|
|
165
|
-
svg {
|
|
166
|
-
flex-shrink: 0;
|
|
167
|
-
}
|
|
168
|
-
.#{$block-class__next}__title-start {
|
|
169
|
-
margin-inline-end: $spacing-05;
|
|
170
|
-
}
|
|
171
|
-
.#{$block-class__next}__title-end {
|
|
172
|
-
margin-inline-start: $spacing-05;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.#{$block-class__next}__header-description {
|
|
177
|
-
@include type.type-style('body-compact-01');
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.#{$block-class__next}__header--no-close-icon {
|
|
181
|
-
display: none;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// ──────────────────────────────────────────────────────────────
|
|
185
|
-
// Navigation bar inside header
|
|
186
|
-
// ──────────────────────────────────────────────────────────────
|
|
187
|
-
.#{$block-class__next}__navigation-bar {
|
|
188
|
-
position: relative;
|
|
189
|
-
// margin: $spacing-04 0 0;
|
|
190
|
-
display: flex;
|
|
191
|
-
align-items: center;
|
|
192
|
-
justify-content: space-between;
|
|
193
|
-
gap: $spacing-10;
|
|
194
|
-
max-inline-size: 100%;
|
|
195
|
-
min-block-size: $spacing-08;
|
|
196
|
-
|
|
197
|
-
.#{$block-class__next}__scroller-container {
|
|
198
|
-
position: absolute;
|
|
199
|
-
inset-block-end: $spacing-01;
|
|
200
|
-
inset-inline-end: calc(-#{$spacing-07} + #{$spacing-01});
|
|
201
|
-
@include breakpoint-down(md) {
|
|
202
|
-
inset-inline-end: -$spacing-05;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.#{$block-class__next}__scroller-button-icon-collapsed {
|
|
206
|
-
transform: rotate(-180deg);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.#{$carbon-prefix}--tabs {
|
|
211
|
-
margin-inline-start: -$spacing-05;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// ──────────────────────────────────────────────────────────────
|
|
216
|
-
// Header actions
|
|
217
|
-
// ──────────────────────────────────────────────────────────────
|
|
218
|
-
.#{$block-class__next}__header-actions {
|
|
219
|
-
display: flex;
|
|
220
|
-
justify-content: flex-end;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.#{$block-class__next}__content__header-actions {
|
|
224
|
-
display: flex;
|
|
225
|
-
overflow: hidden;
|
|
226
|
-
flex: 0 0 auto;
|
|
227
|
-
align-items: center;
|
|
228
|
-
justify-content: flex-end;
|
|
229
|
-
block-size: $spacing-07;
|
|
230
|
-
inline-size: 100%;
|
|
231
|
-
margin-block-start: -14px;
|
|
232
|
-
|
|
233
|
-
> *.#{$block-class__next}__header-action-item:not([data-hidden='true']) {
|
|
234
|
-
margin-inline-end: $spacing-03; /* space between visible items */
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/* Remove margin on the last visible item */
|
|
238
|
-
> *.#{$block-class__next}__header-action-item:not(
|
|
239
|
-
[data-hidden='true']
|
|
240
|
-
):nth-last-child(2) {
|
|
241
|
-
margin-inline-end: 0;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
> * {
|
|
245
|
-
flex-shrink: 0;
|
|
246
|
-
}
|
|
247
|
-
@include breakpoint-down(md) {
|
|
248
|
-
justify-content: flex-start;
|
|
249
|
-
margin-inline-end: 0;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
&.#{$block-class__next}--narrow {
|
|
253
|
-
.#{$block-class__next}__header {
|
|
254
|
-
padding-inline: $spacing-05;
|
|
255
|
-
}
|
|
256
|
-
.#{$block-class__next}__header.#{$block-class__next}__header-collapsed {
|
|
257
|
-
.#{$block-class__next}__header-actions {
|
|
258
|
-
display: none;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
.#{$block-class__next}__header-content-wrapper {
|
|
262
|
-
display: flex;
|
|
263
|
-
flex-direction: column;
|
|
264
|
-
}
|
|
265
|
-
.#{$block-class__next}__header-title {
|
|
266
|
-
@include type.type-style('heading-03');
|
|
267
|
-
}
|
|
268
|
-
.#{$block-class__next}__content__header-actions {
|
|
269
|
-
justify-content: flex-start;
|
|
270
|
-
margin-inline-end: 0;
|
|
271
|
-
}
|
|
272
|
-
.#{$block-class__next}__body {
|
|
273
|
-
grid-template-columns: 1fr 0;
|
|
274
|
-
}
|
|
275
|
-
.#{$block-class__next}__influencer,
|
|
276
|
-
.#{$block-class__next}__main-content,
|
|
277
|
-
.#{$block-class__next}__summary-content {
|
|
278
|
-
&:not(.#{$block-class__next}__flush) {
|
|
279
|
-
padding-inline: $spacing-05;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
219
|
// ──────────────────────────────────────────────────────────────
|
|
284
220
|
// Header (default vs collapsed)
|
|
285
221
|
// ──────────────────────────────────────────────────────────────
|
|
@@ -364,6 +300,12 @@ $motion-duration: $duration-moderate-02;
|
|
|
364
300
|
align-items: center;
|
|
365
301
|
block-size: $spacing-06;
|
|
366
302
|
}
|
|
303
|
+
.#{$block-class__next}__title-start,
|
|
304
|
+
.#{$block-class__next}__title-end {
|
|
305
|
+
svg {
|
|
306
|
+
inline-size: $spacing-05;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
367
309
|
}
|
|
368
310
|
|
|
369
311
|
.#{$block-class__next}__header-content {
|
|
@@ -412,86 +354,6 @@ $motion-duration: $duration-moderate-02;
|
|
|
412
354
|
}
|
|
413
355
|
}
|
|
414
356
|
|
|
415
|
-
// ──────────────────────────────────────────────────────────────
|
|
416
|
-
// Body layout grid
|
|
417
|
-
// ──────────────────────────────────────────────────────────────
|
|
418
|
-
.#{$block-class__next}__body-layout {
|
|
419
|
-
display: grid;
|
|
420
|
-
grid-template-areas:
|
|
421
|
-
'influencer body'
|
|
422
|
-
'influencer footer';
|
|
423
|
-
grid-template-columns:
|
|
424
|
-
var(--tearsheet-influencer-width, calc($spacing-10 * 4))
|
|
425
|
-
1fr;
|
|
426
|
-
grid-template-rows: 1fr auto;
|
|
427
|
-
padding-block: 0;
|
|
428
|
-
padding-inline-end: 0;
|
|
429
|
-
|
|
430
|
-
/* Redefine grid when influencer is absent */
|
|
431
|
-
&:not(:has(> .#{$block-class__next}__influencer)) {
|
|
432
|
-
grid-template-areas:
|
|
433
|
-
'body'
|
|
434
|
-
'footer';
|
|
435
|
-
grid-template-columns: 1fr;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
/* Assign components to their named grid areas */
|
|
440
|
-
.#{$block-class__next}__influencer {
|
|
441
|
-
border-inline-end: 1px solid $border-subtle-01;
|
|
442
|
-
grid-area: influencer;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.#{$block-class__next}__body {
|
|
446
|
-
position: relative;
|
|
447
|
-
display: grid;
|
|
448
|
-
overflow: hidden;
|
|
449
|
-
grid-area: body;
|
|
450
|
-
grid-template-columns: 1fr var(
|
|
451
|
-
--tearsheet-summary-content-width,
|
|
452
|
-
calc($spacing-10 * 4)
|
|
453
|
-
);
|
|
454
|
-
@include breakpoint-down(md) {
|
|
455
|
-
grid-template-columns: 1fr 0;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
> *:only-child {
|
|
459
|
-
grid-column: 1 / -1;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.#{$block-class__next}__footer {
|
|
464
|
-
border-block-start: 1px solid $border-subtle-01;
|
|
465
|
-
grid-area: footer;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
.#{$block-class__next}__influencer,
|
|
469
|
-
.#{$block-class__next}__main-content,
|
|
470
|
-
.#{$block-class__next}__summary-content {
|
|
471
|
-
overflow: auto;
|
|
472
|
-
&:not(.#{$block-class__next}__flush) {
|
|
473
|
-
padding-inline: $spacing-07;
|
|
474
|
-
@include breakpoint-down(md) {
|
|
475
|
-
padding-inline: $spacing-05;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.#{$block-class__next}__main-content {
|
|
481
|
-
position: relative;
|
|
482
|
-
}
|
|
483
|
-
.#{$pkg-prefix}--side-panel {
|
|
484
|
-
position: absolute;
|
|
485
|
-
z-index: 9999;
|
|
486
|
-
block-size: 100%;
|
|
487
|
-
inline-size: 100%;
|
|
488
|
-
inset-block-start: 0;
|
|
489
|
-
max-inline-size: none;
|
|
490
|
-
.#{$pkg-prefix}--side-panel__header {
|
|
491
|
-
min-block-size: 0;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
|
|
495
357
|
&.#{$block-class__next}--stack-activated.is-visible {
|
|
496
358
|
--overlay-color: #{$overlay};
|
|
497
359
|
--overlay-alpha: 0.5;
|
|
@@ -528,3 +390,263 @@ $motion-duration: $duration-moderate-02;
|
|
|
528
390
|
}
|
|
529
391
|
}
|
|
530
392
|
}
|
|
393
|
+
|
|
394
|
+
// Label, title, description styles
|
|
395
|
+
.#{$block-class__next}__header-label {
|
|
396
|
+
@include type.type-style('label-01');
|
|
397
|
+
|
|
398
|
+
color: $text-secondary;
|
|
399
|
+
margin-block-end: $spacing-02;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.#{$block-class__next}__header-title {
|
|
403
|
+
@include type.type-style('heading-04');
|
|
404
|
+
|
|
405
|
+
@include breakpoint-down(md) {
|
|
406
|
+
@include type.type-style('heading-03');
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
display: flex;
|
|
410
|
+
align-items: flex-start;
|
|
411
|
+
gap: $spacing-05;
|
|
412
|
+
margin-block-end: $spacing-03;
|
|
413
|
+
|
|
414
|
+
svg {
|
|
415
|
+
flex-shrink: 0;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.#{$block-class__next}__title-end {
|
|
419
|
+
margin-inline-start: $spacing-05;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.#{$block-class__next}__header-description {
|
|
424
|
+
@include type.type-style('body-compact-01');
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.#{$block-class__next}__header--no-close-icon {
|
|
428
|
+
display: none;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// ──────────────────────────────────────────────────────────────
|
|
432
|
+
// Navigation bar inside header
|
|
433
|
+
// ──────────────────────────────────────────────────────────────
|
|
434
|
+
.#{$block-class__next}__navigation-bar {
|
|
435
|
+
// margin: $spacing-04 0 0;
|
|
436
|
+
position: relative;
|
|
437
|
+
display: flex;
|
|
438
|
+
align-items: center;
|
|
439
|
+
justify-content: space-between;
|
|
440
|
+
gap: $spacing-01;
|
|
441
|
+
max-inline-size: calc(100% - $spacing-04);
|
|
442
|
+
min-block-size: $spacing-08;
|
|
443
|
+
|
|
444
|
+
.#{$carbon-prefix}--tabs {
|
|
445
|
+
margin-inline-start: -$spacing-05;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
.#{$block-class__next}__scroller-container {
|
|
449
|
+
position: absolute;
|
|
450
|
+
inset-block-end: $spacing-01;
|
|
451
|
+
inset-inline-end: -$spacing-08; // padding inline end of header + adjusted -ve margin for tabs
|
|
452
|
+
@include breakpoint-down(md) {
|
|
453
|
+
inset-inline-end: -$spacing-06;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.#{$block-class__next}__scroller-button-icon-collapsed {
|
|
457
|
+
transform: rotate(-180deg);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
// ──────────────────────────────────────────────────────────────
|
|
462
|
+
// Header actions
|
|
463
|
+
// ──────────────────────────────────────────────────────────────
|
|
464
|
+
.#{$block-class__next}__header-actions {
|
|
465
|
+
display: flex;
|
|
466
|
+
justify-content: flex-end;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.#{$block-class__next}__content__header-actions {
|
|
470
|
+
display: flex;
|
|
471
|
+
overflow: hidden;
|
|
472
|
+
flex: 0 0 auto;
|
|
473
|
+
align-items: center;
|
|
474
|
+
justify-content: flex-end;
|
|
475
|
+
block-size: $spacing-07;
|
|
476
|
+
inline-size: 100%;
|
|
477
|
+
margin-block-start: -14px;
|
|
478
|
+
|
|
479
|
+
> *.#{$block-class__next}__header-action-item:not([data-hidden='true']) {
|
|
480
|
+
margin-inline-end: $spacing-03; /* space between visible items */
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* Remove margin on the last visible item */
|
|
484
|
+
> *.#{$block-class__next}__header-action-item:not(
|
|
485
|
+
[data-hidden='true']
|
|
486
|
+
):nth-last-child(2) {
|
|
487
|
+
margin-inline-end: 0;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
> * {
|
|
491
|
+
flex-shrink: 0;
|
|
492
|
+
}
|
|
493
|
+
@include breakpoint-down(md) {
|
|
494
|
+
justify-content: flex-start;
|
|
495
|
+
margin-inline-end: 0;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
// Header content and actions
|
|
499
|
+
.#{$block-class__next}__header-content,
|
|
500
|
+
.#{$block-class__next}__header-actions {
|
|
501
|
+
margin-block-end: $spacing-06;
|
|
502
|
+
}
|
|
503
|
+
// Wide variant at medium breakpoint
|
|
504
|
+
@include breakpoint(md) {
|
|
505
|
+
.#{$block-class__next}--wide .#{$block-class__next}__container {
|
|
506
|
+
inline-size: calc(100% - (2 * #{$spacing-10}));
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
// ──────────────────────────────────────────────────────────────
|
|
510
|
+
// Body layout grid
|
|
511
|
+
// ──────────────────────────────────────────────────────────────
|
|
512
|
+
.#{$block-class__next}__body-layout {
|
|
513
|
+
display: grid;
|
|
514
|
+
grid-template-areas:
|
|
515
|
+
'influencer body'
|
|
516
|
+
'influencer footer';
|
|
517
|
+
grid-template-columns:
|
|
518
|
+
var(--tearsheet-influencer-width, calc($spacing-10 * 4))
|
|
519
|
+
1fr;
|
|
520
|
+
grid-template-rows: 1fr auto;
|
|
521
|
+
padding-block: 0;
|
|
522
|
+
padding-inline-end: 0;
|
|
523
|
+
|
|
524
|
+
/* Redefine grid when influencer is absent */
|
|
525
|
+
&:not(.#{$block-class__next}__body-layout--has-influencer) {
|
|
526
|
+
grid-template-areas:
|
|
527
|
+
'body'
|
|
528
|
+
'footer';
|
|
529
|
+
grid-template-columns: 1fr;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/* Assign components to their named grid areas */
|
|
534
|
+
.#{$block-class__next}__influencer {
|
|
535
|
+
border-inline-end: 1px solid $border-subtle-01;
|
|
536
|
+
grid-area: influencer;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.#{$block-class__next}__body {
|
|
540
|
+
position: relative;
|
|
541
|
+
display: grid;
|
|
542
|
+
overflow: hidden;
|
|
543
|
+
grid-area: body;
|
|
544
|
+
grid-template-columns: 1fr var(
|
|
545
|
+
--tearsheet-summary-content-width,
|
|
546
|
+
calc($spacing-10 * 4)
|
|
547
|
+
);
|
|
548
|
+
@include breakpoint-down(md) {
|
|
549
|
+
grid-template-columns: 1fr 0;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
> *:only-child {
|
|
553
|
+
grid-column: 1 / -1;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.#{$block-class__next}__footer {
|
|
558
|
+
overflow: hidden;
|
|
559
|
+
block-size: $spacing-11;
|
|
560
|
+
border-block-start: 1px solid $border-subtle-01;
|
|
561
|
+
grid-area: footer;
|
|
562
|
+
|
|
563
|
+
@include breakpoint-down(md) {
|
|
564
|
+
block-size: $spacing-10;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
// Footer overflow handling for many actions (> 3 buttons)
|
|
568
|
+
&.#{$block-class__next}__footer--three-actions {
|
|
569
|
+
@include breakpoint-down(sm) {
|
|
570
|
+
overflow-x: auto;
|
|
571
|
+
overflow-y: hidden;
|
|
572
|
+
.#{$pkg-prefix}--action-set {
|
|
573
|
+
display: inline-flex;
|
|
574
|
+
flex-shrink: 0;
|
|
575
|
+
min-inline-size: max-content;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
&.#{$block-class__next}__footer--many-actions {
|
|
580
|
+
@include breakpoint-down(md) {
|
|
581
|
+
overflow-x: auto;
|
|
582
|
+
overflow-y: hidden;
|
|
583
|
+
.#{$pkg-prefix}--action-set {
|
|
584
|
+
display: inline-flex;
|
|
585
|
+
flex-shrink: 0;
|
|
586
|
+
min-inline-size: max-content;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.#{$block-class__next}__influencer,
|
|
593
|
+
.#{$block-class__next}__main-content,
|
|
594
|
+
.#{$block-class__next}__summary-content {
|
|
595
|
+
overflow: auto;
|
|
596
|
+
&:not(.#{$block-class__next}__flush) {
|
|
597
|
+
padding-inline: $spacing-07;
|
|
598
|
+
@include breakpoint-down(md) {
|
|
599
|
+
padding-inline: $spacing-05;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.#{$block-class__next}__main-content {
|
|
605
|
+
position: relative;
|
|
606
|
+
}
|
|
607
|
+
.#{$block-class__next}__side-panel {
|
|
608
|
+
position: absolute;
|
|
609
|
+
z-index: 9999;
|
|
610
|
+
block-size: 100%;
|
|
611
|
+
inline-size: 100% !important; /* stylelint-disable-line declaration-no-important */
|
|
612
|
+
inset-block-start: 0;
|
|
613
|
+
max-inline-size: none;
|
|
614
|
+
.#{$pkg-prefix}--side-panel__header {
|
|
615
|
+
min-block-size: 0;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.#{$block-class__next}--narrow {
|
|
620
|
+
.#{$block-class__next}__header {
|
|
621
|
+
padding-inline: $spacing-05;
|
|
622
|
+
}
|
|
623
|
+
.#{$block-class__next}__header.#{$block-class__next}__header-collapsed {
|
|
624
|
+
.#{$block-class__next}__header-actions {
|
|
625
|
+
display: none;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
.#{$block-class__next}__header-content-wrapper {
|
|
629
|
+
display: flex;
|
|
630
|
+
flex-direction: column;
|
|
631
|
+
}
|
|
632
|
+
.#{$block-class__next}__header-title {
|
|
633
|
+
@include type.type-style('heading-03');
|
|
634
|
+
}
|
|
635
|
+
.#{$block-class__next}__content__header-actions {
|
|
636
|
+
justify-content: flex-start;
|
|
637
|
+
margin-inline-end: 0;
|
|
638
|
+
}
|
|
639
|
+
.#{$block-class__next}__body {
|
|
640
|
+
grid-template-columns: 1fr 0;
|
|
641
|
+
}
|
|
642
|
+
.#{$block-class__next}__influencer,
|
|
643
|
+
.#{$block-class__next}__main-content,
|
|
644
|
+
.#{$block-class__next}__summary-content {
|
|
645
|
+
&:not(.#{$block-class__next}__flush) {
|
|
646
|
+
padding-inline: $spacing-05;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
.#{$block-class__next}__footer {
|
|
650
|
+
block-size: $spacing-10;
|
|
651
|
+
}
|
|
652
|
+
}
|
package/telemetry.yml
CHANGED
|
@@ -45,6 +45,7 @@ collect:
|
|
|
45
45
|
- breadcrumbs
|
|
46
46
|
- button
|
|
47
47
|
- buttonProps
|
|
48
|
+
- buttonSize
|
|
48
49
|
- cancelButtonText
|
|
49
50
|
- caret
|
|
50
51
|
- cellSize
|
|
@@ -427,7 +428,7 @@ collect:
|
|
|
427
428
|
- searchText
|
|
428
429
|
- setSearchText
|
|
429
430
|
# ActionSet
|
|
430
|
-
-
|
|
431
|
+
- disableStacking
|
|
431
432
|
# AddSelectBody
|
|
432
433
|
- defaultModifiers
|
|
433
434
|
- globalFilterOpts
|
|
@@ -958,6 +959,8 @@ collect:
|
|
|
958
959
|
- tagComponent
|
|
959
960
|
# Tearsheet
|
|
960
961
|
- containerClassName
|
|
962
|
+
- disablePortal
|
|
963
|
+
- keepMounted
|
|
961
964
|
- summaryContentWidth
|
|
962
965
|
- verticalGap
|
|
963
966
|
# TearsheetHeader
|