@carbon/styles 1.97.0 → 1.98.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.97.0",
4
+ "version": "1.98.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -40,13 +40,13 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@carbon/colors": "^11.44.0",
43
+ "@carbon/colors": "^11.45.0",
44
44
  "@carbon/feature-flags": ">=0.32.0",
45
- "@carbon/grid": "^11.47.0",
46
- "@carbon/layout": "^11.45.0",
45
+ "@carbon/grid": "^11.48.0",
46
+ "@carbon/layout": "^11.46.0",
47
47
  "@carbon/motion": "^11.39.0",
48
- "@carbon/themes": "^11.65.0",
49
- "@carbon/type": "^11.51.0",
48
+ "@carbon/themes": "^11.66.0",
49
+ "@carbon/type": "^11.52.0",
50
50
  "@ibm/plex": "6.0.0-next.6",
51
51
  "@ibm/plex-mono": "1.1.0",
52
52
  "@ibm/plex-sans": "1.1.0",
@@ -59,7 +59,7 @@
59
59
  "@ibm/telemetry-js": "^1.5.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@carbon/test-utils": "^10.38.0",
62
+ "@carbon/test-utils": "^10.39.0",
63
63
  "autoprefixer": "^10.4.7",
64
64
  "browserslist-config-carbon": "^11.2.0",
65
65
  "css": "^3.0.0",
@@ -75,5 +75,5 @@
75
75
  "scss/**/*.css",
76
76
  "css/**/*.css"
77
77
  ],
78
- "gitHead": "57fdbc7bfad9349b5c4359c7d621e709cd4daa25"
78
+ "gitHead": "ce7846aab8a3a1afe9b03d2d07d267af6cdb6ac2"
79
79
  }
@@ -172,6 +172,51 @@ describe('@carbon/styles/scss/theme', () => {
172
172
  "syntax-escape",
173
173
  "syntax-url",
174
174
  "syntax-color",
175
+ "syntax-operator",
176
+ "syntax-deref-operator",
177
+ "syntax-arithmetic-operator",
178
+ "syntax-logic-operator",
179
+ "syntax-bitwise-operator",
180
+ "syntax-compare-operator",
181
+ "syntax-update-operator",
182
+ "syntax-definition-operator",
183
+ "syntax-type-operator",
184
+ "syntax-control-operator",
185
+ "syntax-modifier",
186
+ "syntax-punctuation",
187
+ "syntax-separator",
188
+ "syntax-bracket",
189
+ "syntax-angle-bracket",
190
+ "syntax-square-bracket",
191
+ "syntax-paren",
192
+ "syntax-brace",
193
+ "syntax-content",
194
+ "syntax-heading",
195
+ "syntax-heading-1",
196
+ "syntax-heading-2",
197
+ "syntax-heading-3",
198
+ "syntax-heading-4",
199
+ "syntax-heading-5",
200
+ "syntax-heading-6",
201
+ "syntax-content-separator",
202
+ "syntax-list",
203
+ "syntax-quote",
204
+ "syntax-emphasis",
205
+ "syntax-strong",
206
+ "syntax-monospace",
207
+ "syntax-link",
208
+ "syntax-strikethrough",
209
+ "syntax-invalid",
210
+ "syntax-meta",
211
+ "syntax-document-meta",
212
+ "syntax-annotation",
213
+ "syntax-processing-instruction",
214
+ "syntax-definition",
215
+ "syntax-constant",
216
+ "syntax-function",
217
+ "syntax-standard",
218
+ "syntax-local",
219
+ "syntax-special",
175
220
  "ai-popover-background",
176
221
  "ai-popover-shadow-outer-01",
177
222
  "ai-popover-shadow-outer-02",
@@ -186,6 +186,14 @@
186
186
  border-block-end: 1px solid $border-strong;
187
187
  }
188
188
 
189
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
190
+ .#{$prefix}--form-requirement:empty,
191
+ .#{$prefix}--list-box__wrapper--fluid
192
+ .#{$prefix}--list-box--warning
193
+ ~ .#{$prefix}--form-requirement:empty {
194
+ block-size: convert.to-rem(32px);
195
+ }
196
+
189
197
  .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
190
198
  .#{$prefix}--list-box[data-invalid]
191
199
  .#{$prefix}--list-box__invalid-icon,
@@ -428,7 +436,7 @@
428
436
 
429
437
  .#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--dropdown)
430
438
  .#{$prefix}--list-box__menu-icon {
431
- inset-inline-end: $spacing-04;
439
+ inset-inline-end: $spacing-05;
432
440
  }
433
441
 
434
442
  // remove ai-label divider when element is invalid and fluid
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2018, 2023
2
+ // Copyright IBM Corp. 2018, 2025
3
3
  //
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.
@@ -49,6 +49,11 @@
49
49
  inset-inline-start: auto;
50
50
  }
51
51
  }
52
+ .#{$prefix}--text-input--fluid.#{$prefix}--text-input-wrapper--readonly
53
+ .#{$prefix}--text-input__field-wrapper
54
+ .#{$prefix}--text-input {
55
+ color: $text-secondary;
56
+ }
52
57
 
53
58
  .#{$prefix}--text-input--fluid .#{$prefix}--label::-webkit-scrollbar,
54
59
  .#{$prefix}--text-input--fluid
@@ -533,6 +533,11 @@ $list-box-menu-width: convert.to-rem(300px);
533
533
  }
534
534
  }
535
535
 
536
+ // Allow auto-alignment to control inline placement
537
+ .#{$prefix}--autoalign .#{$prefix}--list-box__menu {
538
+ inset-inline: auto;
539
+ }
540
+
536
541
  .#{$prefix}--list-box .#{$prefix}--list-box__field[aria-expanded='false'] {
537
542
  .#{$prefix}--list-box__menu {
538
543
  display: none;
@@ -885,7 +890,7 @@ $list-box-menu-width: convert.to-rem(300px);
885
890
  // When handling input, we need to target nodes that specifically opt-in to
886
891
  // the type text in order to make sure the text input is styled
887
892
  // correctly.
888
- .#{$prefix}--list-box input[type='text'] {
893
+ .#{$prefix}--list-box .#{$prefix}--text-input {
889
894
  background-color: inherit;
890
895
  min-inline-size: 0;
891
896
  text-overflow: ellipsis;
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2016, 2023
2
+ // Copyright IBM Corp. 2016, 2025
3
3
  //
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.
@@ -152,21 +152,13 @@
152
152
 
153
153
  .#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
154
154
  svg {
155
- fill: $icon-secondary;
156
- transition: fill $duration-fast-01 motion(standard, productive);
155
+ fill: $icon-primary;
157
156
  }
158
157
 
159
158
  .#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:focus {
160
159
  @include focus-outline('outline');
161
160
  }
162
161
 
163
- .#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:hover
164
- svg,
165
- .#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:focus
166
- svg {
167
- fill: $icon-primary;
168
- }
169
-
170
162
  .#{$prefix}--text-input--invalid,
171
163
  .#{$prefix}--text-input--warning {
172
164
  padding-inline-end: $spacing-08;
@@ -37,7 +37,7 @@
37
37
 
38
38
  z-index: z('floating');
39
39
  padding: if(
40
- $tooltip-type == 'definition',
40
+ sass($tooltip-type == 'definition'),
41
41
  convert.to-rem(8px) convert.to-rem(16px),
42
42
  convert.to-rem(3px) convert.to-rem(16px)
43
43
  );
@@ -234,7 +234,7 @@
234
234
  ) {
235
235
  // position and alignment
236
236
  $caret-spacing: if(
237
- $tooltip-type == 'definition',
237
+ sass($tooltip-type == 'definition'),
238
238
  convert.to-rem(4px),
239
239
  convert.to-rem(8px)
240
240
  );