@carbon/styles 1.67.0 → 1.68.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 (61) hide show
  1. package/README.md +3 -3
  2. package/css/styles.css +172 -86
  3. package/css/styles.min.css +1 -1
  4. package/package.json +10 -10
  5. package/scss/__tests__/zone-test.js +1 -1
  6. package/scss/_reset.scss +0 -2
  7. package/scss/_zone.scss +1 -1
  8. package/scss/components/accordion/_accordion.scss +26 -20
  9. package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
  10. package/scss/components/button/_button.scss +4 -3
  11. package/scss/components/button/_mixins.scss +7 -4
  12. package/scss/components/code-snippet/_code-snippet.scss +1 -2
  13. package/scss/components/contained-list/_contained-list.scss +2 -2
  14. package/scss/components/content-switcher/_content-switcher.scss +4 -2
  15. package/scss/components/data-table/_data-table.scss +15 -5
  16. package/scss/components/data-table/action/_data-table-action.scss +10 -6
  17. package/scss/components/data-table/expandable/_data-table-expandable.scss +20 -9
  18. package/scss/components/data-table/sort/_data-table-sort.scss +3 -2
  19. package/scss/components/date-picker/_date-picker.scss +1 -1
  20. package/scss/components/date-picker/_flatpickr.scss +8 -4
  21. package/scss/components/dialog/_dialog.scss +10 -7
  22. package/scss/components/dropdown/_dropdown.scss +3 -2
  23. package/scss/components/file-uploader/_file-uploader.scss +4 -5
  24. package/scss/components/fluid-date-picker/_fluid-date-picker.scss +2 -1
  25. package/scss/components/fluid-list-box/_fluid-list-box.scss +2 -1
  26. package/scss/components/fluid-number-input/_fluid-number-input.scss +3 -1
  27. package/scss/components/fluid-select/_fluid-select.scss +2 -1
  28. package/scss/components/fluid-text-input/_fluid-text-input.scss +2 -1
  29. package/scss/components/list-box/_list-box.scss +3 -2
  30. package/scss/components/loading/_animation.scss +2 -1
  31. package/scss/components/modal/_modal.scss +9 -6
  32. package/scss/components/notification/_actionable-notification.scss +5 -4
  33. package/scss/components/notification/_inline-notification.scss +3 -3
  34. package/scss/components/notification/_toast-notification.scss +4 -3
  35. package/scss/components/number-input/_number-input.scss +3 -3
  36. package/scss/components/overflow-menu/_overflow-menu.scss +4 -2
  37. package/scss/components/pagination/_pagination.scss +3 -2
  38. package/scss/components/pagination/_unstable_pagination.scss +2 -1
  39. package/scss/components/pagination-nav/_pagination-nav.scss +3 -2
  40. package/scss/components/popover/_popover.scss +8 -10
  41. package/scss/components/progress-indicator/_progress-indicator.scss +2 -1
  42. package/scss/components/search/_search.scss +6 -3
  43. package/scss/components/select/_select.scss +2 -2
  44. package/scss/components/slider/_slider.scss +29 -8
  45. package/scss/components/slug/_slug.scss +12 -5
  46. package/scss/components/tabs/_tabs.scss +33 -6
  47. package/scss/components/tag/_tag.scss +7 -3
  48. package/scss/components/text-area/_text-area.scss +2 -1
  49. package/scss/components/text-input/_text-input.scss +4 -2
  50. package/scss/components/tile/_tile.scss +10 -5
  51. package/scss/components/time-picker/_time-picker.scss +2 -1
  52. package/scss/components/toggle/_toggle.scss +3 -2
  53. package/scss/components/treeview/_treeview.scss +4 -0
  54. package/scss/components/ui-shell/header/_header.scss +10 -5
  55. package/scss/components/ui-shell/side-nav/_side-nav.scss +15 -8
  56. package/scss/utilities/_ai-gradient.scss +6 -3
  57. package/scss/utilities/_convert.scss +6 -6
  58. package/scss/utilities/_skeleton.scss +1 -0
  59. package/scss/utilities/_tooltip.scss +2 -5
  60. package/scss/utilities/_z-index.scss +3 -3
  61. package/telemetry.yml +1 -1
@@ -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 {
@@ -186,7 +188,6 @@
186
188
  @include high-contrast-mode('outline');
187
189
  }
188
190
 
189
- // stylelint-disable-next-line no-duplicate-selectors
190
191
  .#{$prefix}--toggle__button:focus
191
192
  + .#{$prefix}--toggle__label
192
193
  .#{$prefix}--toggle__switch,
@@ -40,6 +40,10 @@
40
40
  }
41
41
  }
42
42
 
43
+ .#{$prefix}--tree-node--hidden {
44
+ display: none;
45
+ }
46
+
43
47
  .#{$prefix}--tree-node__children {
44
48
  @include component-reset.reset;
45
49
 
@@ -35,7 +35,7 @@
35
35
  block-size: mini-units(6);
36
36
  border-block-end: 1px solid $border-subtle;
37
37
  inset-block-start: 0;
38
- inset-inline: 0 0;
38
+ inset-inline: 0;
39
39
  }
40
40
 
41
41
  .#{$prefix}--header__action {
@@ -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
  //--------------------------------------------------------------------------
@@ -36,11 +36,12 @@
36
36
  background-color: $background;
37
37
  color: $text-secondary;
38
38
  inline-size: mini-units(6);
39
- inset-block: 0 0;
39
+ inset-block: 0;
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
  }
@@ -270,7 +275,7 @@
270
275
  background-color: $border-interactive;
271
276
  content: '';
272
277
  inline-size: 3px;
273
- inset-block: 0 0;
278
+ inset-block: 0;
274
279
  inset-inline-start: 0;
275
280
  }
276
281
  }
@@ -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
 
@@ -381,7 +388,7 @@
381
388
  background-color: $border-interactive;
382
389
  content: '';
383
390
  inline-size: 3px;
384
- inset-block: 0 0;
391
+ inset-block: 0;
385
392
  inset-inline-start: 0;
386
393
  }
387
394
 
@@ -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,
@@ -19,8 +19,8 @@ $base-font-size: 16px !default;
19
19
  /// @access public
20
20
  /// @group utilities
21
21
  @function to-rem($px) {
22
- @if unit($px) != 'px' {
23
- @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
22
+ @if math.unit($px) != 'px' {
23
+ @error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
24
24
  }
25
25
 
26
26
  @return math.div($px, $base-font-size) * 1rem;
@@ -34,8 +34,8 @@ $base-font-size: 16px !default;
34
34
  /// @deprecated
35
35
  /// @group @carbon/layout
36
36
  @function rem($px) {
37
- @if unit($px) != 'px' {
38
- @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
37
+ @if math.unit($px) != 'px' {
38
+ @error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
39
39
  }
40
40
 
41
41
  @return math.div($px, $base-font-size) * 1rem;
@@ -47,8 +47,8 @@ $base-font-size: 16px !default;
47
47
  /// @access public
48
48
  /// @group utilities
49
49
  @function em($px) {
50
- @if unit($px) != 'px' {
51
- @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
50
+ @if math.unit($px) != 'px' {
51
+ @error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
52
52
  }
53
53
 
54
54
  @return math.div($px, $base-font-size) * 1em;
@@ -36,6 +36,7 @@
36
36
  block-size: 100%;
37
37
  content: '';
38
38
  inline-size: 100%;
39
+ inset-inline-start: 0;
39
40
  will-change: transform-origin, transform, opacity;
40
41
 
41
42
  @media (prefers-reduced-motion: reduce) {
@@ -320,11 +320,8 @@
320
320
  transform: translate(100%, -50%);
321
321
  }
322
322
  @if ($position == 'bottom') {
323
- border-width: 0
324
- convert.to-rem(4px)
325
- convert.to-rem(5px)
326
- convert.to-rem(4px);
327
- border-color: transparent transparent $background-inverse transparent;
323
+ border-width: 0 convert.to-rem(4px) convert.to-rem(5px);
324
+ border-color: transparent transparent $background-inverse;
328
325
  inset-block-end: -$caret-spacing;
329
326
  transform: translate(-50%, 100%);
330
327
  }
@@ -4,7 +4,7 @@
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.
6
6
  //
7
-
7
+ @use 'sass:map';
8
8
  /// @access public
9
9
  /// @type Map
10
10
  /// @group utilities
@@ -30,9 +30,9 @@ $z-indexes: (
30
30
  /// z-index: z('modal');
31
31
  /// }
32
32
  @function z($layer) {
33
- @if not map-has-key($z-indexes, $layer) {
33
+ @if not map.has-key($z-indexes, $layer) {
34
34
  @warn 'No layer found for `#{$layer}` in $z-indexes map. Property omitted.';
35
35
  }
36
36
 
37
- @return map-get($z-indexes, $layer);
37
+ @return map.get($z-indexes, $layer);
38
38
  }
package/telemetry.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  # yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json
2
2
  version: 1
3
3
  projectId: d2574dfc-6ec7-4d1a-9c7a-b22cc16dc747
4
- endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics
4
+ endpoint: https://www-api.ibm.com/ibm-telemetry/v1/metrics
5
5
  collect:
6
6
  npm:
7
7
  dependencies: null