@carbon/styles 1.48.0 → 1.48.1

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.48.0",
4
+ "version": "1.48.1",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -43,7 +43,7 @@
43
43
  "@carbon/grid": "^11.21.0",
44
44
  "@carbon/layout": "^11.20.0",
45
45
  "@carbon/motion": "^11.16.0",
46
- "@carbon/themes": "^11.29.0",
46
+ "@carbon/themes": "^11.29.1",
47
47
  "@carbon/type": "^11.25.0",
48
48
  "@ibm/plex": "6.0.0-next.6"
49
49
  },
@@ -65,5 +65,5 @@
65
65
  "scss/**/*.css",
66
66
  "css/**/*.css"
67
67
  ],
68
- "gitHead": "6d133d4f920b7c01f6ea2221938a339c14a85b42"
68
+ "gitHead": "68c58d98fe0c287eb4456c8b5153f6cb7b58c5bf"
69
69
  }
@@ -149,11 +149,15 @@ describe('@carbon/styles/scss/theme', () => {
149
149
  "ai-gradient-start-01",
150
150
  "ai-gradient-start-02",
151
151
  "ai-gradient-end",
152
- "slug-callout-shadow-inner",
153
152
  "slug-callout-shadow-outer-01",
154
153
  "slug-callout-shadow-outer-02",
155
- "slug-callout-border-01",
156
- "slug-callout-border-02",
154
+ "ai-inner-shadow",
155
+ "ai-aura-start",
156
+ "ai-aura-end",
157
+ "ai-border-strong",
158
+ "ai-border-start",
159
+ "ai-border-end",
160
+ "ai-drop-shadow",
157
161
  "slug-callout-caret-center",
158
162
  "slug-callout-caret-bottom",
159
163
  "slug-callout-caret-bottom-background",
@@ -198,7 +198,7 @@
198
198
  }
199
199
 
200
200
  .#{$prefix}--date-picker-input__wrapper--slug
201
- .#{$prefix}--date-picker__input {
201
+ .#{$prefix}--date-picker__input:not(:has(~ .#{$prefix}--slug--revert)) {
202
202
  @include ai-gradient;
203
203
 
204
204
  padding-inline-end: $spacing-10;
@@ -407,10 +407,18 @@
407
407
  }
408
408
 
409
409
  .#{$prefix}--date-picker--fluid
410
- .#{$prefix}--date-picker-input__wrapper--slug {
410
+ .#{$prefix}--date-picker-input__wrapper--slug:not(
411
+ :has(~ .#{$prefix}--slug--revert)
412
+ ) {
411
413
  @include ai-gradient;
412
414
  }
413
415
 
416
+ .#{$prefix}--date-picker--fluid
417
+ .#{$prefix}--date-picker-input__wrapper--slug
418
+ .#{$prefix}--date-picker__input:not(.cds--date-picker__input--invalid) {
419
+ border-block-end-color: $ai-border-strong;
420
+ }
421
+
414
422
  .#{$prefix}--date-picker--fluid
415
423
  .#{$prefix}--date-picker-input__wrapper--slug
416
424
  .#{$prefix}--date-picker__input,
@@ -303,7 +303,10 @@
303
303
  padding-inline-end: convert.to-rem(120px);
304
304
  }
305
305
 
306
- .#{$prefix}--number-input--fluid .#{$prefix}--number__input-wrapper--slug {
306
+ .#{$prefix}--number-input--fluid
307
+ .#{$prefix}--number__input-wrapper--slug:not(
308
+ :has(~ .#{$prefix}--slug--revert)
309
+ ) {
307
310
  @include ai-gradient;
308
311
  }
309
312
  }
@@ -219,7 +219,10 @@
219
219
  }
220
220
 
221
221
  // Slug styles
222
- .#{$prefix}--text-area--fluid .#{$prefix}--text-area__wrapper--slug {
222
+ .#{$prefix}--text-area--fluid
223
+ .#{$prefix}--text-area__wrapper--slug:not(
224
+ :has(~ .#{$prefix}--slug--revert)
225
+ ) {
223
226
  @include ai-gradient;
224
227
  }
225
228
 
@@ -897,10 +897,17 @@ $list-box-menu-width: convert.to-rem(300px);
897
897
  transform: translateY(-50%);
898
898
  }
899
899
 
900
- .#{$prefix}--list-box__wrapper--slug .#{$prefix}--list-box {
900
+ .#{$prefix}--list-box__wrapper--slug
901
+ .#{$prefix}--list-box:not(:has(.#{$prefix}--slug--revert)) {
901
902
  @include ai-gradient;
902
903
  }
903
904
 
905
+ .#{$prefix}--list-box__wrapper--slug
906
+ .#{$prefix}--list-box
907
+ input[role='combobox'] {
908
+ border-block-end-color: transparent;
909
+ }
910
+
904
911
  .#{$prefix}--list-box__wrapper--slug .#{$prefix}--list-box__field,
905
912
  .#{$prefix}--list-box__wrapper--slug .#{$prefix}--text-input--empty {
906
913
  padding-inline-end: $spacing-10;
@@ -445,13 +445,18 @@
445
445
  padding-inline-end: convert.to-rem(144px);
446
446
  }
447
447
 
448
- .#{$prefix}--number__input-wrapper--slug input[type='number'],
448
+ .#{$prefix}--number__input-wrapper--slug
449
+ input[type='number']:not(:has(~ .#{$prefix}--slug--revert)),
449
450
  .#{$prefix}--number__input-wrapper--slug input[type='number']:disabled {
450
451
  @include ai-gradient;
451
452
 
452
453
  padding-inline-end: convert.to-rem(112px);
453
454
  }
454
455
 
456
+ .#{$prefix}--number__input-wrapper--slug .#{$prefix}--number__control-btn {
457
+ border-block-end-color: $ai-border-strong;
458
+ }
459
+
455
460
  // Skeleton State
456
461
  .#{$prefix}--number.#{$prefix}--skeleton {
457
462
  @include skeleton;
@@ -288,7 +288,8 @@
288
288
  transform: translateY(-50%);
289
289
  }
290
290
 
291
- .#{$prefix}--select--slug .#{$prefix}--select-input {
291
+ .#{$prefix}--select--slug
292
+ .#{$prefix}--select-input:not(:has(~ .#{$prefix}--slug--revert)) {
292
293
  @include ai-gradient;
293
294
 
294
295
  padding-inline-end: $spacing-10;
@@ -332,7 +332,7 @@ $sizes: (
332
332
  border: 1px solid transparent;
333
333
  border-radius: convert.to-rem(8px);
334
334
  // Need to make tokens
335
- box-shadow: inset 0 -80px 70px -65px $slug-callout-shadow-inner,
335
+ box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
336
336
  -40px 30px 100px -25px $slug-callout-shadow-outer-01,
337
337
  -60px 80px 60px -45px $slug-callout-shadow-outer-02;
338
338
  color: $text-primary;
@@ -368,7 +368,7 @@ $sizes: (
368
368
  > .#{$prefix}--popover-caret::before {
369
369
  position: absolute;
370
370
  display: block;
371
- border: 1px solid $slug-callout-border-01;
371
+ border: 1px solid $ai-border-start;
372
372
  background: $background;
373
373
  block-size: convert.to-rem(12px);
374
374
  clip-path: polygon(98% 0, 0 0, -52% 150%) border-box;
@@ -136,7 +136,8 @@
136
136
  transform: translate(0);
137
137
  }
138
138
 
139
- .#{$prefix}--text-area__wrapper--slug .#{$prefix}--text-area {
139
+ .#{$prefix}--text-area__wrapper--slug
140
+ .#{$prefix}--text-area:not(:has(~ .#{$prefix}--slug--revert)) {
140
141
  @include ai-gradient;
141
142
 
142
143
  padding-inline-end: $spacing-08;
@@ -423,7 +423,8 @@
423
423
  transform: translateY(-50%);
424
424
  }
425
425
 
426
- .#{$prefix}--text-input__field-wrapper--slug .#{$prefix}--text-input {
426
+ .#{$prefix}--text-input__field-wrapper--slug
427
+ .#{$prefix}--text-input:not(:has(~ .#{$prefix}--slug--revert)) {
427
428
  @include ai-gradient;
428
429
 
429
430
  padding-inline-end: $spacing-08;
@@ -11,10 +11,10 @@
11
11
  /// Adds AI gradient styles to a component
12
12
  /// @access private
13
13
  /// @param {String} $direction - Direction of gradient from: `left`, `right`, `top`, and `bottom`
14
- /// @param {Number} $width - Percentage width of gradient with regards to parent component
14
+ /// @param {Number} $span - Percentage span of gradient with regards to parent component
15
15
  /// @example @include ai-gradient('right', '33%');
16
16
  /// @group utilities
17
- @mixin ai-gradient($direction: 'right', $width: 33%) {
17
+ @mixin ai-gradient($direction: 'bottom', $span: 50%) {
18
18
  $deg: 0;
19
19
  @if $direction == 'bottom' {
20
20
  $deg: 0deg;
@@ -27,17 +27,14 @@
27
27
  }
28
28
 
29
29
  background-image: linear-gradient(
30
- $deg,
31
- theme.$ai-gradient-start-01 0%,
32
- theme.$ai-gradient-end $width,
33
- transparent 100%
34
- ),
35
- linear-gradient(
36
- $deg,
37
- theme.$ai-gradient-start-02 0%,
38
- theme.$ai-gradient-end $width,
39
- transparent 100%
40
- );
30
+ $deg,
31
+ theme.$ai-inner-shadow 0%,
32
+ 15%,
33
+ theme.$ai-aura-end $span,
34
+ transparent 100%
35
+ );
36
+
37
+ border-block-end-color: theme.$ai-border-strong;
41
38
  }
42
39
 
43
40
  /// Experimental - name and structure subject to change. Use at your own risk!
@@ -45,7 +42,7 @@
45
42
  /// @access private
46
43
  /// @example @include callout-gradient();
47
44
  /// @param {String} $type - Type of gradient, either 'default', 'selected' or 'hover'
48
- /// @param {Number} $type - specify a pixel offset the callout should start from the bottom
45
+ /// @param {Number} $offset - specify a pixel offset the callout should start from the bottom
49
46
  /// @group utilities
50
47
  @mixin callout-gradient($type: 'default', $offset: 0) {
51
48
  $start: 0%;
@@ -88,16 +85,12 @@
88
85
  } @else {
89
86
  background: linear-gradient(
90
87
  to top,
91
- theme.$slug-callout-aura-start $start,
92
- theme.$slug-callout-aura-end 50%
88
+ theme.$ai-aura-start $start,
89
+ theme.$ai-aura-end 50%
93
90
  )
94
91
  padding-box,
95
92
  linear-gradient(to top, theme.$background, theme.$background) padding-box,
96
- linear-gradient(
97
- to bottom,
98
- theme.$slug-callout-border-01,
99
- theme.$slug-callout-border-02
100
- )
93
+ linear-gradient(to bottom, theme.$ai-border-start, theme.$ai-border-end)
101
94
  border-box,
102
95
  // Needed to underlay the transparent border
103
96
  linear-gradient(to top, theme.$background, theme.$background)