@carbon/styles 0.13.0 → 0.15.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 (62) hide show
  1. package/package.json +8 -8
  2. package/scss/_config.scss +6 -0
  3. package/scss/_grid.scss +3 -1
  4. package/scss/_motion.scss +7 -36
  5. package/scss/_reset.scss +1 -1
  6. package/scss/components/_index.scss +1 -0
  7. package/scss/components/accordion/_accordion.scss +4 -2
  8. package/scss/components/aspect-ratio/_aspect-ratio.scss +73 -0
  9. package/scss/components/aspect-ratio/_index.scss +11 -0
  10. package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
  11. package/scss/components/button/_button.scss +4 -3
  12. package/scss/components/button/_mixins.scss +2 -1
  13. package/scss/components/button/_tokens.scss +2 -2
  14. package/scss/components/checkbox/_checkbox.scss +8 -1
  15. package/scss/components/code-snippet/_code-snippet.scss +3 -3
  16. package/scss/components/content-switcher/_content-switcher.scss +33 -2
  17. package/scss/components/copy-button/_copy-button.scss +1 -1
  18. package/scss/components/data-table/_data-table.scss +4 -4
  19. package/scss/components/data-table/action/_data-table-action.scss +99 -29
  20. package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
  21. package/scss/components/date-picker/_flatpickr.scss +27 -20
  22. package/scss/components/dropdown/_dropdown.scss +3 -19
  23. package/scss/components/file-uploader/_file-uploader.scss +4 -4
  24. package/scss/components/form/_form.scss +2 -2
  25. package/scss/components/link/_link.scss +3 -3
  26. package/scss/components/list/_list.scss +2 -2
  27. package/scss/components/list-box/_list-box.scss +13 -29
  28. package/scss/components/loading/_loading.scss +3 -0
  29. package/scss/components/menu/_menu.scss +1 -1
  30. package/scss/components/modal/_modal.scss +90 -98
  31. package/scss/components/notification/_actionable-notification.scss +2 -2
  32. package/scss/components/notification/_inline-notification.scss +3 -3
  33. package/scss/components/notification/_toast-notification.scss +5 -5
  34. package/scss/components/number-input/_number-input.scss +29 -18
  35. package/scss/components/overflow-menu/_overflow-menu.scss +4 -1
  36. package/scss/components/pagination/_index.scss +3 -0
  37. package/scss/components/pagination/_pagination.scss +13 -6
  38. package/scss/components/pagination/_unstable_pagination.scss +173 -0
  39. package/scss/components/pagination-nav/_pagination-nav.scss +2 -2
  40. package/scss/components/popover/_popover.scss +27 -12
  41. package/scss/components/progress-bar/_progress-bar.scss +9 -1
  42. package/scss/components/progress-indicator/_progress-indicator.scss +12 -14
  43. package/scss/components/radio-button/_radio-button.scss +3 -2
  44. package/scss/components/search/_search.scss +14 -17
  45. package/scss/components/select/_select.scss +8 -2
  46. package/scss/components/slider/_slider.scss +6 -4
  47. package/scss/components/structured-list/_structured-list.scss +2 -3
  48. package/scss/components/tabs/_tabs.scss +3 -3
  49. package/scss/components/tag/_tag.scss +1 -0
  50. package/scss/components/text-area/_text-area.scss +8 -2
  51. package/scss/components/text-input/_text-input.scss +1 -1
  52. package/scss/components/tile/_tile.scss +2 -2
  53. package/scss/components/toggle/_toggle.scss +3 -3
  54. package/scss/components/toggletip/_toggletip.scss +1 -1
  55. package/scss/components/tooltip/_tooltip.scss +3 -3
  56. package/scss/components/treeview/_treeview.scss +1 -1
  57. package/scss/components/ui-shell/header/_header.scss +3 -3
  58. package/scss/components/ui-shell/side-nav/_side-nav.scss +7 -6
  59. package/scss/components/ui-shell/switcher/_switcher.scss +1 -1
  60. package/scss/fonts/_src.scss +1 -1
  61. package/scss/utilities/_keyframes.scss +10 -0
  62. package/scss/utilities/_tooltip.scss +3 -1
@@ -85,7 +85,7 @@
85
85
  }
86
86
 
87
87
  .#{$prefix}--toggle__text {
88
- @include type-style('body-long-01');
88
+ @include type-style('body-01');
89
89
 
90
90
  color: $text-primary;
91
91
  }
@@ -232,7 +232,7 @@
232
232
 
233
233
  .#{$prefix}--toggle__text--left,
234
234
  .#{$prefix}--toggle__text--right {
235
- @include type-style('body-short-01');
235
+ @include type-style('body-compact-01');
236
236
 
237
237
  position: relative;
238
238
  margin-left: $spacing-03;
@@ -456,7 +456,7 @@
456
456
 
457
457
  .#{$prefix}--toggle__text--off,
458
458
  .#{$prefix}--toggle__text--on {
459
- @include type-style('body-short-01');
459
+ @include type-style('body-compact-01');
460
460
 
461
461
  position: absolute;
462
462
  // top offset needed to vertically center absolutely positioned flex child in IE11
@@ -64,7 +64,7 @@
64
64
  'link-focus-text-color',
65
65
  theme.$focus-inverse
66
66
  );
67
- @include type.type-style('body-short-01');
67
+ @include type.type-style('body-compact-01');
68
68
 
69
69
  display: grid;
70
70
  max-width: 18rem;
@@ -30,7 +30,7 @@ $tooltip-padding-inline: custom-property.get-var(
30
30
  }
31
31
 
32
32
  .#{$prefix}--tooltip-content {
33
- @include type.type-style('body-long-01');
33
+ @include type.type-style('body-01');
34
34
 
35
35
  max-width: convert.rem(288px);
36
36
  padding: $tooltip-padding-block $tooltip-padding-inline;
@@ -60,7 +60,7 @@ $tooltip-padding-inline: custom-property.get-var(
60
60
  }
61
61
 
62
62
  .#{$prefix}--definition-tooltip {
63
- @include type.type-style('body-long-01');
63
+ @include type.type-style('body-01');
64
64
 
65
65
  max-width: convert.rem(176px);
66
66
  padding: convert.rem(8px) convert.rem(16px);
@@ -85,6 +85,6 @@ $tooltip-padding-inline: custom-property.get-var(
85
85
  }
86
86
 
87
87
  .#{$prefix}--icon-tooltip .#{$prefix}--tooltip-content {
88
- @include type.type-style('body-short-01');
88
+ @include type.type-style('body-compact-01');
89
89
  }
90
90
  }
@@ -66,7 +66,7 @@
66
66
  }
67
67
 
68
68
  .#{$prefix}--tree-node__label {
69
- @include type-style('body-short-01');
69
+ @include type-style('body-compact-01');
70
70
 
71
71
  display: flex;
72
72
  min-height: rem(32px);
@@ -39,7 +39,7 @@
39
39
  display: inline-flex;
40
40
  width: mini-units(6);
41
41
  height: mini-units(6);
42
- border: rem(2px) solid transparent;
42
+ border: rem(1px) solid transparent;
43
43
  transition: background-color $duration-fast-02,
44
44
  border-color $duration-fast-02;
45
45
  }
@@ -124,7 +124,7 @@
124
124
  // Header - Name
125
125
  //--------------------------------------------------------------------------
126
126
  a.#{$prefix}--header__name {
127
- @include type-style('body-short-01');
127
+ @include type-style('body-compact-01');
128
128
 
129
129
  display: flex;
130
130
  height: 100%;
@@ -324,7 +324,7 @@
324
324
  width: mini-units(25);
325
325
  flex-direction: column;
326
326
  background-color: $layer;
327
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
327
+ box-shadow: 0 4px 8px 0 rgb(0 0 0 / 50%);
328
328
  transform: translateY(100%);
329
329
  }
330
330
 
@@ -81,8 +81,8 @@
81
81
  height: 0;
82
82
  background-color: transparent;
83
83
  opacity: 0;
84
- transition: opacity $transition--expansion $standard-easing,
85
- background-color $transition--expansion $standard-easing;
84
+ transition: opacity $transition-expansion $standard-easing,
85
+ background-color $transition-expansion $standard-easing;
86
86
  }
87
87
 
88
88
  .#{$prefix}--side-nav__overlay-active {
@@ -91,8 +91,8 @@
91
91
  height: 100vh;
92
92
  background-color: $overlay;
93
93
  opacity: 1;
94
- transition: opacity $transition--expansion $standard-easing,
95
- background-color $transition--expansion $standard-easing;
94
+ transition: opacity $transition-expansion $standard-easing,
95
+ background-color $transition-expansion $standard-easing;
96
96
  }
97
97
  }
98
98
 
@@ -192,7 +192,7 @@
192
192
  //----------------------------------------------------------------------------
193
193
  .#{$prefix}--side-nav__submenu {
194
194
  @include button-reset.reset($width: true);
195
- @include type-style('productive-heading-01');
195
+ @include type-style('heading-compact-01');
196
196
  @include focus-outline('reset');
197
197
 
198
198
  display: flex;
@@ -254,6 +254,7 @@
254
254
  position: relative;
255
255
  background-color: $background-selected;
256
256
  color: $text-primary;
257
+
257
258
  &::before {
258
259
  position: absolute;
259
260
  top: 0;
@@ -317,7 +318,7 @@
317
318
  .#{$prefix}--header__menu-title[aria-expanded='true']
318
319
  + .#{$prefix}--header__menu {
319
320
  @include focus-outline('reset');
320
- @include type-style('productive-heading-01');
321
+ @include type-style('heading-compact-01');
321
322
 
322
323
  position: relative;
323
324
  display: flex;
@@ -45,7 +45,7 @@
45
45
  }
46
46
 
47
47
  .#{$prefix}--switcher__item-link {
48
- @include type-style('productive-heading-01');
48
+ @include type-style('heading-compact-01');
49
49
 
50
50
  display: block;
51
51
  height: $spacing-07;
@@ -66,7 +66,7 @@ $-google-filenames: (
66
66
 
67
67
  @function -get-google-filename($map, $keys...) {
68
68
  @each $key in $keys {
69
- $map: map-get($map, $key);
69
+ $map: map.get($map, $key);
70
70
  }
71
71
 
72
72
  @return $map;
@@ -19,6 +19,7 @@
19
19
  0% {
20
20
  @include content-visible;
21
21
  }
22
+
22
23
  100% {
23
24
  @include content-hidden;
24
25
  }
@@ -28,6 +29,7 @@
28
29
  0% {
29
30
  @include content-hidden;
30
31
  }
32
+
31
33
  100% {
32
34
  @include content-visible;
33
35
  }
@@ -39,35 +41,43 @@
39
41
  transform: scaleX(0);
40
42
  transform-origin: left;
41
43
  }
44
+
42
45
  20% {
43
46
  opacity: 1;
44
47
  transform: scaleX(1);
45
48
  transform-origin: left;
46
49
  }
50
+
47
51
  28% {
48
52
  transform: scaleX(1);
49
53
  transform-origin: right;
50
54
  }
55
+
51
56
  51% {
52
57
  transform: scaleX(0);
53
58
  transform-origin: right;
54
59
  }
60
+
55
61
  58% {
56
62
  transform: scaleX(0);
57
63
  transform-origin: right;
58
64
  }
65
+
59
66
  82% {
60
67
  transform: scaleX(1);
61
68
  transform-origin: right;
62
69
  }
70
+
63
71
  83% {
64
72
  transform: scaleX(1);
65
73
  transform-origin: left;
66
74
  }
75
+
67
76
  96% {
68
77
  transform: scaleX(0);
69
78
  transform-origin: left;
70
79
  }
80
+
71
81
  100% {
72
82
  opacity: 0.3;
73
83
  transform: scaleX(0);
@@ -51,7 +51,7 @@
51
51
  font-weight: 400;
52
52
  text-align: left;
53
53
  transform: translateX(-50%);
54
- @include type.type-style('body-short-01');
54
+ @include type.type-style('body-compact-01');
55
55
 
56
56
  // IE media query
57
57
  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
@@ -93,6 +93,7 @@
93
93
 
94
94
  @if $tooltip-type == 'icon' {
95
95
  cursor: pointer;
96
+
96
97
  &:focus {
97
98
  outline: 1px solid transparent;
98
99
 
@@ -181,6 +182,7 @@
181
182
  from {
182
183
  opacity: 0;
183
184
  }
185
+
184
186
  to {
185
187
  opacity: 1;
186
188
  }