@carbon/styles 1.68.0-rc.0 → 1.69.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 (45) hide show
  1. package/css/styles.css +93 -14
  2. package/css/styles.min.css +1 -1
  3. package/package.json +10 -10
  4. package/scss/components/accordion/_accordion.scss +6 -3
  5. package/scss/components/button/_button.scss +3 -2
  6. package/scss/components/button/_mixins.scss +7 -4
  7. package/scss/components/content-switcher/_content-switcher.scss +3 -1
  8. package/scss/components/data-table/_data-table.scss +11 -1
  9. package/scss/components/data-table/action/_data-table-action.scss +8 -8
  10. package/scss/components/data-table/expandable/_data-table-expandable.scss +19 -7
  11. package/scss/components/data-table/sort/_data-table-sort.scss +2 -1
  12. package/scss/components/date-picker/_flatpickr.scss +8 -4
  13. package/scss/components/dialog/_dialog.scss +8 -5
  14. package/scss/components/dropdown/_dropdown.scss +3 -2
  15. package/scss/components/fluid-date-picker/_fluid-date-picker.scss +2 -1
  16. package/scss/components/fluid-list-box/_fluid-list-box.scss +6 -11
  17. package/scss/components/fluid-number-input/_fluid-number-input.scss +3 -1
  18. package/scss/components/fluid-select/_fluid-select.scss +2 -1
  19. package/scss/components/fluid-text-input/_fluid-text-input.scss +2 -1
  20. package/scss/components/list-box/_list-box.scss +2 -1
  21. package/scss/components/loading/_animation.scss +2 -1
  22. package/scss/components/modal/_modal.scss +8 -4
  23. package/scss/components/notification/_actionable-notification.scss +4 -2
  24. package/scss/components/notification/_inline-notification.scss +2 -1
  25. package/scss/components/notification/_toast-notification.scss +3 -1
  26. package/scss/components/number-input/_number-input.scss +27 -2
  27. package/scss/components/overflow-menu/_overflow-menu.scss +4 -2
  28. package/scss/components/pagination/_pagination.scss +2 -1
  29. package/scss/components/pagination/_unstable_pagination.scss +2 -1
  30. package/scss/components/pagination-nav/_pagination-nav.scss +2 -1
  31. package/scss/components/popover/_popover.scss +4 -5
  32. package/scss/components/progress-indicator/_progress-indicator.scss +2 -1
  33. package/scss/components/search/_search.scss +6 -3
  34. package/scss/components/slider/_slider.scss +8 -3
  35. package/scss/components/slug/_slug.scss +12 -5
  36. package/scss/components/tabs/_tabs.scss +4 -2
  37. package/scss/components/tag/_tag.scss +2 -1
  38. package/scss/components/text-area/_text-area.scss +2 -1
  39. package/scss/components/text-input/_text-input.scss +4 -2
  40. package/scss/components/tile/_tile.scss +10 -5
  41. package/scss/components/time-picker/_time-picker.scss +2 -1
  42. package/scss/components/toggle/_toggle.scss +3 -1
  43. package/scss/components/ui-shell/header/_header.scss +9 -4
  44. package/scss/components/ui-shell/side-nav/_side-nav.scss +12 -5
  45. package/scss/utilities/_ai-gradient.scss +6 -3
@@ -40,7 +40,8 @@
40
40
  cursor: pointer;
41
41
  inline-size: convert.to-rem(40px);
42
42
  min-block-size: convert.to-rem(40px);
43
- transition: outline $duration-fast-02 motion(entrance, productive),
43
+ transition:
44
+ outline $duration-fast-02 motion(entrance, productive),
44
45
  background-color $duration-fast-02 motion(entrance, productive);
45
46
 
46
47
  &:focus {
@@ -272,7 +273,8 @@
272
273
  inline-size: 100%;
273
274
  max-inline-size: 11.25rem;
274
275
  text-align: start;
275
- transition: outline $duration-fast-02 motion(entrance, productive),
276
+ transition:
277
+ outline $duration-fast-02 motion(entrance, productive),
276
278
  background-color $duration-fast-02 motion(entrance, productive),
277
279
  color $duration-fast-02 motion(entrance, productive);
278
280
 
@@ -220,7 +220,8 @@
220
220
  fill: $icon-primary;
221
221
  inline-size: convert.to-rem(40px);
222
222
  min-block-size: convert.to-rem(32px);
223
- transition: outline $duration-fast-02 motion(standard, productive),
223
+ transition:
224
+ outline $duration-fast-02 motion(standard, productive),
224
225
  background-color $duration-fast-02 motion(standard, productive);
225
226
  }
226
227
 
@@ -85,7 +85,8 @@
85
85
  fill: $icon-primary;
86
86
  inline-size: convert.to-rem(40px);
87
87
  min-block-size: convert.to-rem(32px);
88
- transition: outline $duration-fast-02 motion(standard, productive),
88
+ transition:
89
+ outline $duration-fast-02 motion(standard, productive),
89
90
  background-color $duration-fast-02 motion(standard, productive);
90
91
  }
91
92
 
@@ -88,7 +88,8 @@
88
88
  outline: 0;
89
89
  text-align: center;
90
90
  text-decoration: none;
91
- transition: background-color $duration-fast-02 motion(standard, productive),
91
+ transition:
92
+ background-color $duration-fast-02 motion(standard, productive),
92
93
  color $duration-fast-02 motion(standard, productive);
93
94
  user-select: none;
94
95
 
@@ -104,11 +104,10 @@ $popover-caret-height: custom-property.get-var(
104
104
  }
105
105
 
106
106
  // Drop shadow modifier
107
- .#{$prefix}--popover--drop-shadow .#{$prefix}--popover {
108
- @include custom-property.declaration(
109
- 'popover-drop-shadow',
110
- drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2))
111
- );
107
+ .#{$prefix}--popover--drop-shadow
108
+ .#{$prefix}--popover
109
+ > .#{$prefix}--popover-content {
110
+ filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
112
111
  }
113
112
 
114
113
  // Caret tip modifier
@@ -91,7 +91,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;
91
91
  line-height: 1.45;
92
92
  max-inline-size: convert.to-rem(88px);
93
93
  text-overflow: ellipsis;
94
- transition: box-shadow $duration-fast-02 motion(standard, productive),
94
+ transition:
95
+ box-shadow $duration-fast-02 motion(standard, productive),
95
96
  color $duration-fast-02 motion(standard, productive);
96
97
  white-space: nowrap;
97
98
 
@@ -54,7 +54,8 @@
54
54
 
55
55
  inline-size: 100%;
56
56
  text-overflow: ellipsis;
57
- transition: background-color $duration-fast-02 motion(standard, productive),
57
+ transition:
58
+ background-color $duration-fast-02 motion(standard, productive),
58
59
  outline $duration-fast-02 motion(standard, productive);
59
60
 
60
61
  &:focus {
@@ -199,7 +200,8 @@
199
200
  fill: $icon-primary;
200
201
  inline-size: convert.to-rem(40px);
201
202
  opacity: 1;
202
- transition: opacity $duration-fast-02 motion(standard, productive),
203
+ transition:
204
+ opacity $duration-fast-02 motion(standard, productive),
203
205
  background-color $duration-fast-02 motion(standard, productive),
204
206
  outline $duration-fast-02 motion(standard, productive),
205
207
  border $duration-fast-02 motion(standard, productive);
@@ -324,7 +326,8 @@
324
326
  .#{$prefix}--search--expandable .#{$prefix}--search-input {
325
327
  padding: 0;
326
328
  inline-size: 0;
327
- transition: padding $duration-fast-01 motion(standard, productive),
329
+ transition:
330
+ padding $duration-fast-01 motion(standard, productive),
328
331
  width 0s linear $duration-fast-01;
329
332
 
330
333
  &::placeholder {
@@ -187,10 +187,13 @@
187
187
  position: absolute;
188
188
  border-radius: 50%;
189
189
  background: $layer-selected-inverse;
190
- box-shadow: inset 0 0 0 1px transparent, inset 0 0 0 2px transparent;
190
+ box-shadow:
191
+ inset 0 0 0 1px transparent,
192
+ inset 0 0 0 2px transparent;
191
193
  inset: 0;
192
194
  outline: none;
193
- transition: transform $duration-fast-02 motion(standard, productive),
195
+ transition:
196
+ transform $duration-fast-02 motion(standard, productive),
194
197
  background $duration-fast-02 motion(standard, productive),
195
198
  box-shadow $duration-fast-02 motion(standard, productive);
196
199
 
@@ -201,7 +204,9 @@
201
204
 
202
205
  &:focus {
203
206
  background-color: $interactive;
204
- box-shadow: inset 0 0 0 2px $interactive, inset 0 0 0 3px $layer;
207
+ box-shadow:
208
+ inset 0 0 0 2px $interactive,
209
+ inset 0 0 0 3px $layer;
205
210
  // 20px / 14px = 1.4286
206
211
  transform: scale(1.4286);
207
212
  }
@@ -76,7 +76,8 @@ $sizes: (
76
76
  color: $text-primary;
77
77
  font-weight: 600;
78
78
  outline: none;
79
- transition: color $duration-fast-01 motion(entrance, productive),
79
+ transition:
80
+ color $duration-fast-01 motion(entrance, productive),
80
81
  border-color $duration-fast-01 motion(entrance, productive),
81
82
  box-shadow $duration-fast-01 motion(entrance, productive),
82
83
  background $duration-fast-01 motion(entrance, productive);
@@ -114,7 +115,9 @@ $sizes: (
114
115
 
115
116
  .#{$prefix}--slug .#{$prefix}--slug__button:hover:active {
116
117
  background: $border-inverse;
117
- box-shadow: inset 0 0 0 1px $focus, inset 0 0 0 2px $focus-inset;
118
+ box-shadow:
119
+ inset 0 0 0 1px $focus,
120
+ inset 0 0 0 2px $focus-inset;
118
121
  color: $text-inverse;
119
122
  }
120
123
 
@@ -192,7 +195,8 @@ $sizes: (
192
195
  inset-inline-start: 0;
193
196
  opacity: 1;
194
197
  transform: translateY(-50%);
195
- transition: background $duration-fast-01 motion(entrance, productive),
198
+ transition:
199
+ background $duration-fast-01 motion(entrance, productive),
196
200
  box-shadow $duration-fast-01 motion(entrance, productive);
197
201
  }
198
202
 
@@ -254,7 +258,8 @@ $sizes: (
254
258
  border: 1px solid transparent;
255
259
  border-radius: convert.to-rem(8px);
256
260
  // Need to make tokens
257
- box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
261
+ box-shadow:
262
+ inset 0 -80px 70px -65px $ai-inner-shadow,
258
263
  -40px 44px 60px -24px $ai-popover-shadow-outer-01,
259
264
  -56px 64px 64px -24px $ai-popover-shadow-outer-02;
260
265
  color: $text-primary;
@@ -707,7 +712,9 @@ $sizes: (
707
712
 
708
713
  .#{$prefix}--slug .#{$prefix}--slug-actions .#{$prefix}--btn:focus {
709
714
  border-color: $focus;
710
- box-shadow: inset 0 0 0 1px $focus, inset 0 0 0 2px $background;
715
+ box-shadow:
716
+ inset 0 0 0 1px $focus,
717
+ inset 0 0 0 2px $background;
711
718
  }
712
719
 
713
720
  .#{$prefix}--slug .#{$prefix}--slug-actions .#{$prefix}--btn--primary {
@@ -353,7 +353,8 @@
353
353
  }
354
354
 
355
355
  .#{$prefix}--tabs__nav-item .#{$prefix}--tabs__nav-link {
356
- transition: color $duration-fast-01 motion(standard, productive),
356
+ transition:
357
+ color $duration-fast-01 motion(standard, productive),
357
358
  border-bottom-color $duration-fast-01 motion(standard, productive),
358
359
  outline $duration-fast-01 motion(standard, productive);
359
360
  }
@@ -484,7 +485,8 @@
484
485
  text-align: start;
485
486
  text-decoration: none;
486
487
  text-overflow: ellipsis;
487
- transition: border $duration-fast-01 motion(standard, productive),
488
+ transition:
489
+ border $duration-fast-01 motion(standard, productive),
488
490
  outline $duration-fast-01 motion(standard, productive);
489
491
  white-space: nowrap;
490
492
 
@@ -303,7 +303,8 @@
303
303
  color: currentColor;
304
304
  cursor: pointer;
305
305
  inline-size: layout.size('height');
306
- transition: background-color $duration-fast-01 motion(standard, productive),
306
+ transition:
307
+ background-color $duration-fast-01 motion(standard, productive),
307
308
  box-shadow $duration-fast-01 motion(standard, productive);
308
309
 
309
310
  svg {
@@ -40,7 +40,8 @@
40
40
 
41
41
  min-inline-size: 10rem;
42
42
  resize: vertical;
43
- transition: background-color $duration-fast-01 motion(standard, productive),
43
+ transition:
44
+ background-color $duration-fast-01 motion(standard, productive),
44
45
  outline $duration-fast-01 motion(standard, productive);
45
46
  }
46
47
 
@@ -46,7 +46,8 @@
46
46
  font-family: inherit;
47
47
 
48
48
  inline-size: 100%;
49
- transition: background-color $duration-fast-01 motion(standard, productive),
49
+ transition:
50
+ background-color $duration-fast-01 motion(standard, productive),
50
51
  outline $duration-fast-01 motion(standard, productive);
51
52
 
52
53
  &:focus,
@@ -286,7 +287,8 @@
286
287
  .#{$prefix}--form--fluid .#{$prefix}--text-input-wrapper {
287
288
  position: relative;
288
289
  background: $field;
289
- transition: background-color $duration-fast-01 motion(standard, productive),
290
+ transition:
291
+ background-color $duration-fast-01 motion(standard, productive),
290
292
  outline $duration-fast-01 motion(standard, productive);
291
293
  }
292
294
 
@@ -297,7 +297,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
297
297
  .#{$prefix}--tile-content__below-the-fold {
298
298
  display: block;
299
299
  opacity: 0;
300
- transition: opacity $duration-fast-02 motion(standard, productive),
300
+ transition:
301
+ opacity $duration-fast-02 motion(standard, productive),
301
302
  visibility $duration-fast-02 motion(standard, productive);
302
303
  visibility: hidden;
303
304
  }
@@ -312,7 +313,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
312
313
 
313
314
  .#{$prefix}--tile-content__below-the-fold {
314
315
  opacity: 1;
315
- transition: opacity $duration-fast-02 motion(standard, productive),
316
+ transition:
317
+ opacity $duration-fast-02 motion(standard, productive),
316
318
  visibility $duration-fast-02 motion(standard, productive);
317
319
  visibility: inherit;
318
320
 
@@ -424,7 +426,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
424
426
  @include ai-popover-gradient('default', 0, 'layer');
425
427
 
426
428
  border: 1px solid transparent;
427
- box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
429
+ box-shadow:
430
+ inset 0 -80px 70px -65px $ai-inner-shadow,
428
431
  0 4px 8px 0 $ai-drop-shadow;
429
432
  }
430
433
 
@@ -450,7 +453,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
450
453
  .#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
451
454
  @include ai-popover-gradient('hover', 0, 'layer');
452
455
 
453
- box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
456
+ box-shadow:
457
+ inset 0 -80px 70px -65px $ai-inner-shadow,
454
458
  0 4px 10px 2px $ai-drop-shadow;
455
459
  }
456
460
 
@@ -468,7 +472,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
468
472
  .#{$prefix}--tile--slug.#{$prefix}--tile--selectable::after {
469
473
  @include ai-popover-gradient('selected', 0, 'layer');
470
474
 
471
- box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
475
+ box-shadow:
476
+ inset 0 -80px 70px -65px $ai-inner-shadow,
472
477
  0 4px 8px 0 $ai-drop-shadow;
473
478
  }
474
479
 
@@ -67,7 +67,8 @@
67
67
  align-items: center;
68
68
  block-size: convert.to-rem(40px);
69
69
  inline-size: 4.875rem;
70
- transition: outline $duration-fast-01 motion(standard, productive),
70
+ transition:
71
+ outline $duration-fast-01 motion(standard, productive),
71
72
  background-color $duration-fast-01 motion(standard, productive);
72
73
 
73
74
  &::placeholder {
@@ -79,7 +79,9 @@
79
79
  .#{$prefix}--toggle__switch,
80
80
  .#{$prefix}--toggle:not(.#{$prefix}--toggle--disabled):active
81
81
  .#{$prefix}--toggle__switch {
82
- box-shadow: 0 0 0 1px $focus-inset, 0 0 0 3px $focus;
82
+ box-shadow:
83
+ 0 0 0 1px $focus-inset,
84
+ 0 0 0 3px $focus;
83
85
  }
84
86
 
85
87
  .#{$prefix}--toggle__switch--checked {
@@ -45,7 +45,8 @@
45
45
  border: convert.to-rem(1px) solid transparent;
46
46
  block-size: mini-units(6);
47
47
  inline-size: mini-units(6);
48
- transition: background-color $duration-fast-02,
48
+ transition:
49
+ background-color $duration-fast-02,
49
50
  border-color $duration-fast-02;
50
51
  @include breakpoint-down('md') {
51
52
  min-inline-size: $spacing-09;
@@ -232,8 +233,10 @@
232
233
  line-height: 1.125rem;
233
234
  // Reset link styles and make sure the text isn't selectable
234
235
  text-decoration: none;
235
- transition: background-color $duration-fast-02,
236
- border-color $duration-fast-02, color $duration-fast-02;
236
+ transition:
237
+ background-color $duration-fast-02,
238
+ border-color $duration-fast-02,
239
+ color $duration-fast-02;
237
240
  user-select: none;
238
241
  }
239
242
 
@@ -387,7 +390,9 @@
387
390
  .#{$prefix}--header__menu-arrow {
388
391
  fill: $icon-secondary;
389
392
  margin-inline-start: mini-units(1);
390
- transition: transform $duration-fast-02, fill $duration-fast-02;
393
+ transition:
394
+ transform $duration-fast-02,
395
+ fill $duration-fast-02;
391
396
  }
392
397
 
393
398
  //--------------------------------------------------------------------------
@@ -40,7 +40,8 @@
40
40
  inset-inline-start: 0;
41
41
  max-inline-size: mini-units(32);
42
42
  // TODO: sync with motion work
43
- transition: inline-size 0.11s cubic-bezier(0.2, 0, 1, 0.9),
43
+ transition:
44
+ inline-size 0.11s cubic-bezier(0.2, 0, 1, 0.9),
44
45
  transform 0.11s cubic-bezier(0.2, 0, 1, 0.9);
45
46
  will-change: inline-size;
46
47
  }
@@ -82,7 +83,8 @@
82
83
  inset-block-start: convert.to-rem(48px);
83
84
  inset-inline-start: 0;
84
85
  opacity: 0;
85
- transition: opacity $transition-expansion $standard-easing,
86
+ transition:
87
+ opacity $transition-expansion $standard-easing,
86
88
  background-color $transition-expansion $standard-easing;
87
89
  }
88
90
 
@@ -93,7 +95,8 @@
93
95
  block-size: 100vh;
94
96
  inline-size: 100vw;
95
97
  opacity: 1;
96
- transition: opacity $transition-expansion $standard-easing,
98
+ transition:
99
+ opacity $transition-expansion $standard-easing,
97
100
  background-color $transition-expansion $standard-easing;
98
101
  }
99
102
  }
@@ -211,7 +214,9 @@
211
214
  padding: 0 mini-units(2);
212
215
  block-size: mini-units(4);
213
216
  color: $text-secondary;
214
- transition: color $duration-fast-02, background-color $duration-fast-02,
217
+ transition:
218
+ color $duration-fast-02,
219
+ background-color $duration-fast-02,
215
220
  outline $duration-fast-02;
216
221
  user-select: none;
217
222
  }
@@ -337,7 +342,9 @@
337
342
  padding: 0 mini-units(2);
338
343
  min-block-size: mini-units(4);
339
344
  text-decoration: none;
340
- transition: color $duration-fast-02, background-color $duration-fast-02,
345
+ transition:
346
+ color $duration-fast-02,
347
+ background-color $duration-fast-02,
341
348
  outline $duration-fast-02;
342
349
  }
343
350
 
@@ -89,7 +89,8 @@
89
89
  );
90
90
 
91
91
  @if $type == 'hover' {
92
- background: linear-gradient(
92
+ background:
93
+ linear-gradient(
93
94
  to top,
94
95
  theme.$ai-aura-hover-start $start,
95
96
  15%,
@@ -112,7 +113,8 @@
112
113
  )
113
114
  border-box;
114
115
  } @else if $type == 'selected' {
115
- background: linear-gradient(
116
+ background:
117
+ linear-gradient(
116
118
  to top,
117
119
  theme.$ai-aura-start $start,
118
120
  15%,
@@ -126,7 +128,8 @@
126
128
  linear-gradient(to top, theme.$layer, theme.$layer)
127
129
  border-box;
128
130
  } @else {
129
- background: linear-gradient(
131
+ background:
132
+ linear-gradient(
130
133
  to top,
131
134
  $background $start,
132
135
  theme.$ai-aura-start $start,