@carbon/styles 1.63.1 → 1.64.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/styles",
3
3
  "description": "Styles for the Carbon Design System",
4
- "version": "1.63.1",
4
+ "version": "1.64.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -40,25 +40,25 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@carbon/colors": "^11.24.0",
44
- "@carbon/feature-flags": "^0.21.0",
45
- "@carbon/grid": "^11.25.0",
46
- "@carbon/layout": "^11.24.0",
47
- "@carbon/motion": "^11.20.0",
48
- "@carbon/themes": "^11.38.0",
49
- "@carbon/type": "^11.29.0",
43
+ "@carbon/colors": "^11.25.0",
44
+ "@carbon/feature-flags": "^0.22.0",
45
+ "@carbon/grid": "^11.26.0",
46
+ "@carbon/layout": "^11.25.0",
47
+ "@carbon/motion": "^11.21.0",
48
+ "@carbon/themes": "^11.39.0",
49
+ "@carbon/type": "^11.30.0",
50
50
  "@ibm/plex": "6.0.0-next.6",
51
51
  "@ibm/telemetry-js": "^1.5.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@carbon/test-utils": "^10.30.0",
54
+ "@carbon/test-utils": "^10.31.0",
55
55
  "autoprefixer": "^10.4.7",
56
56
  "browserslist-config-carbon": "^11.2.0",
57
57
  "css": "^3.0.0",
58
58
  "cssnano": "^7.0.0",
59
59
  "postcss": "^8.4.14",
60
60
  "postcss-flexbugs-fixes": "^5.0.2",
61
- "rimraf": "^5.0.0",
61
+ "rimraf": "^6.0.0",
62
62
  "sass": "^1.51.0"
63
63
  },
64
64
  "sideEffects": [
@@ -67,5 +67,5 @@
67
67
  "scss/**/*.css",
68
68
  "css/**/*.css"
69
69
  ],
70
- "gitHead": "512479162a69c214a95c02f9c7c8073195df5a58"
70
+ "gitHead": "2e82ab9625d65b607a7510b70d2cb4bacf209378"
71
71
  }
@@ -121,16 +121,16 @@
121
121
  }
122
122
 
123
123
  .#{$prefix}--data-table
124
- tr
125
- + :not(.#{$prefix}--popover-container):hover
126
- .#{$prefix}--link {
124
+ tr:hover
125
+ .#{$prefix}--link:not(.#{$prefix}--popover-container .#{$prefix}--link) {
127
126
  color: $link-secondary;
128
127
  }
129
128
 
130
129
  .#{$prefix}--data-table
131
- tr
132
- + :not(.#{$prefix}--popover-container):hover
133
- .#{$prefix}--link--disabled {
130
+ tr:hover
131
+ .#{$prefix}--link--disabled:not(
132
+ .#{$prefix}--popover-container .#{$prefix}--link
133
+ ) {
134
134
  color: $text-disabled;
135
135
  }
136
136
 
@@ -145,9 +145,9 @@
145
145
  }
146
146
 
147
147
  .flatpickr-calendar.inline {
148
- position: relative;
148
+ position: absolute;
149
149
  display: block;
150
- inset-block-start: convert.to-rem(2px);
150
+ inset-block-start: auto;
151
151
  }
152
152
 
153
153
  .flatpickr-calendar.static {
@@ -15,6 +15,7 @@
15
15
  @use '../../utilities/button-reset';
16
16
  @use '../../utilities/focus-outline' as *;
17
17
  @use '../../utilities/high-contrast-mode' as *;
18
+ @use '../../utilities/layout';
18
19
  @use '../../utilities/visually-hidden' as *;
19
20
 
20
21
  /// Pagination nav base styles
@@ -26,9 +27,9 @@
26
27
  /// @param {Color} $background-color-active [initial]
27
28
  /// @param {Number} $font-weight [400]
28
29
  /// @param {Number} $item-padding [0]
29
- /// @param {Number} $button-min-width [$spacing-09]
30
- /// @param {Value} $button-padding [1.0625rem $spacing-02]
31
- /// @param {Number} $button-direction-size [$spacing-09]
30
+ /// @param {Number} $button-min-width [$spacing-09] TODO: remove in v12
31
+ /// @param {Value} $button-padding [1.0625rem $spacing-02] TODO: remove in v12
32
+ /// @param {Number} $button-direction-size [$spacing-09] TODO: remove in v12
32
33
  /// @param {Number} $select-icon-top-position [$spacing-05]
33
34
  /// @param {Number} $select-icon-left-position [$spacing-05]
34
35
  @mixin pagination-nav(
@@ -47,6 +48,8 @@
47
48
  .#{$prefix}--pagination-nav {
48
49
  @include reset;
49
50
  @include type-style('body-compact-01');
51
+ @include layout.use('size', $default: 'lg', $min: 'sm', $max: 'lg');
52
+ @include layout.use('density', $default: 'normal');
50
53
 
51
54
  line-height: 0;
52
55
  }
@@ -75,12 +78,13 @@
75
78
 
76
79
  position: relative;
77
80
  display: block;
78
- padding: $button-padding;
81
+ // subtract 0.875rem to account for font-size 14px
82
+ padding: calc((layout.size('height') - 0.875rem) / 2) $spacing-02;
79
83
  border-radius: 0;
80
84
  color: $text-primary;
81
85
  font-weight: $font-weight;
82
86
  line-height: 1;
83
- min-inline-size: $button-min-width;
87
+ min-inline-size: layout.size('height');
84
88
  outline: 0;
85
89
  text-align: center;
86
90
  text-decoration: none;
@@ -119,6 +123,7 @@
119
123
  }
120
124
  }
121
125
 
126
+ // TODO: remove in v12
122
127
  .#{$prefix}--pagination-nav__page--direction {
123
128
  display: flex;
124
129
  align-items: center;
@@ -134,7 +139,7 @@
134
139
 
135
140
  .#{$prefix}--pagination-nav__page--select {
136
141
  appearance: none;
137
- max-block-size: $button-min-width;
142
+ max-block-size: layout.size('height');
138
143
  text-indent: calc(50% - 4.5px);
139
144
  // Override some Firefox user-agent styles
140
145
  @-moz-document url-prefix() {
@@ -160,7 +165,7 @@
160
165
 
161
166
  .#{$prefix}--pagination-nav__select-icon {
162
167
  position: absolute;
163
- inset-block-start: calc(50% - #{$select-icon-top-position * 0.5});
168
+ inset-block-start: calc(50% - #{$select-icon-top-position * 0.25});
164
169
  inset-inline-start: calc(50% - #{$select-icon-top-position * 0.5});
165
170
  pointer-events: none;
166
171
  }
@@ -700,10 +700,6 @@
700
700
 
701
701
  .#{$prefix}--tabs--contained ~ .#{$prefix}--tab-content {
702
702
  background: $layer;
703
-
704
- > * {
705
- @include layer-tokens.emit-layer-tokens(2);
706
- }
707
703
  }
708
704
 
709
705
  .#{$prefix}--tabs--vertical ~ .#{$prefix}--tab-content {
@@ -206,6 +206,22 @@
206
206
  }
207
207
  }
208
208
 
209
+ .#{$prefix}--text-input--password__visibility__toggle:disabled.#{$prefix}--tooltip__trigger {
210
+ svg {
211
+ fill: $icon-disabled;
212
+ }
213
+
214
+ cursor: default;
215
+ }
216
+
217
+ .#{$prefix}--text-input--password__visibility__toggle:disabled.#{$prefix}--tooltip__trigger:hover {
218
+ svg {
219
+ fill: $icon-disabled;
220
+ }
221
+
222
+ cursor: default;
223
+ }
224
+
209
225
  .#{$prefix}--text-input__counter-alert {
210
226
  position: absolute;
211
227
  overflow: hidden;
@@ -354,6 +370,7 @@
354
370
  > .#{$prefix}--text-input--warning:focus {
355
371
  outline: none;
356
372
  }
373
+
357
374
  //-----------------------------
358
375
  // Inline Text Input
359
376
  //-----------------------------
@@ -38,5 +38,6 @@
38
38
  border-inline-end: 1px solid $border-subtle;
39
39
  border-inline-start: 1px solid $border-subtle;
40
40
  inline-size: mini-units(32);
41
+ overflow-y: auto;
41
42
  }
42
43
  }