@carbon/styles 1.84.0-rc.0 → 1.85.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.
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.84.0-rc.0",
4
+ "version": "1.85.0-rc.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.35.0-rc.0",
43
+ "@carbon/colors": "^11.35.0",
44
44
  "@carbon/feature-flags": "^0.27.0",
45
- "@carbon/grid": "^11.38.0-rc.0",
46
- "@carbon/layout": "^11.36.0-rc.0",
47
- "@carbon/motion": "^11.30.0-rc.0",
48
- "@carbon/themes": "^11.55.0-rc.0",
49
- "@carbon/type": "^11.42.0-rc.0",
45
+ "@carbon/grid": "^11.38.0",
46
+ "@carbon/layout": "^11.36.0",
47
+ "@carbon/motion": "^11.30.0",
48
+ "@carbon/themes": "^11.55.0",
49
+ "@carbon/type": "^11.42.0",
50
50
  "@ibm/plex": "6.0.0-next.6",
51
51
  "@ibm/plex-mono": "0.0.3-alpha.0",
52
52
  "@ibm/plex-sans": "0.0.3-alpha.0",
@@ -75,5 +75,5 @@
75
75
  "scss/**/*.css",
76
76
  "css/**/*.css"
77
77
  ],
78
- "gitHead": "80ee492dc5079b90b8bca04f49497a90b60a366e"
78
+ "gitHead": "8d60133ddf9a05676c96a5763aedfe7280bb37a6"
79
79
  }
@@ -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.
@@ -44,6 +44,44 @@
44
44
  @include focus-outline('outline');
45
45
  }
46
46
 
47
+ //----------------------------------------------------------------------------
48
+ // Container, full table ai
49
+ //----------------------------------------------------------------------------
50
+ .#{$prefix}--data-table-container--ai-enabled {
51
+ position: relative;
52
+ // Allow for pseudo element to show for gradient border effect
53
+ padding: 1px;
54
+ border: none;
55
+ }
56
+
57
+ .#{$prefix}--data-table-container--ai-enabled::after {
58
+ position: absolute;
59
+ z-index: -1;
60
+ // Used for gradient border effect
61
+ background-image: linear-gradient(to top, $ai-border-end, $ai-border-start);
62
+ block-size: 100%;
63
+ content: '';
64
+ inline-size: 100%;
65
+ inset: 0;
66
+ pointer-events: none;
67
+ }
68
+
69
+ .#{$prefix}--data-table-container--ai-enabled tbody {
70
+ position: relative;
71
+ }
72
+
73
+ .#{$prefix}--data-table-container--ai-enabled tbody::before {
74
+ position: absolute;
75
+ block-size: 100%;
76
+ content: '';
77
+ inline-size: 100%;
78
+ inset: 0;
79
+ // Prevents the pseudo element overlay from obstructing click on elements below the overlay
80
+ pointer-events: none;
81
+
82
+ @include ai-table-gradient('full-table');
83
+ }
84
+
47
85
  //----------------------------------------------------------------------------
48
86
  // Table title text
49
87
  //----------------------------------------------------------------------------
@@ -14,6 +14,7 @@
14
14
  @use '../../utilities/convert';
15
15
  @use '../../utilities/visually-hidden' as *;
16
16
  @use '../../utilities/layout';
17
+ @use '../../utilities/high-contrast-mode' as *;
17
18
 
18
19
  /// Progress Bar styles
19
20
  /// @access public
@@ -185,4 +186,21 @@
185
186
  .#{$prefix}--progress-bar--indented .#{$prefix}--progress-bar__helper-text {
186
187
  padding-inline: layout.density('padding-inline');
187
188
  }
189
+
190
+ //High Contrast Mode
191
+ //Ensure ProgressBar is visible and animated in Windows HCM
192
+ @include high-contrast-mode {
193
+ .#{$prefix}--progress-bar__track {
194
+ //According to https://developer.mozilla.org/en-US/docs/Web/CSS/system-color, in HCM, the
195
+ //checkbox should be displayed using Canvas and CanvasText.
196
+ background-color: Canvas;
197
+ forced-color-adjust: none;
198
+ outline: 2px solid rgba(0, 0, 0, 0);
199
+ outline-offset: -2px;
200
+ }
201
+
202
+ .#{$prefix}--progress-bar__bar {
203
+ background-color: CanvasText;
204
+ }
205
+ }
188
206
  }
@@ -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.
@@ -106,6 +106,7 @@
106
106
  }
107
107
 
108
108
  .#{$prefix}--form-item {
109
+ position: relative;
109
110
  &:has(.#{$prefix}--text-area__wrapper--cols) {
110
111
  inline-size: fit-content;
111
112
  }
@@ -247,4 +248,8 @@
247
248
  justify-content: space-between;
248
249
  inline-size: 100%;
249
250
  }
251
+ .#{$prefix}--form-requirement {
252
+ position: absolute;
253
+ inset-block-start: 100%;
254
+ }
250
255
  }
@@ -57,7 +57,10 @@
57
57
  .#{$prefix}--tree-node:focus > .#{$prefix}--tree-node__label {
58
58
  @include focus-outline('outline');
59
59
  }
60
-
60
+ .#{$prefix}--tree-node.#{$prefix}--tree-parent-node
61
+ > .#{$prefix}--tree-node__label {
62
+ inline-size: auto;
63
+ }
61
64
  .#{$prefix}--tree-node--disabled:focus > .#{$prefix}--tree-node__label {
62
65
  outline: none;
63
66
  }
@@ -110,10 +113,14 @@
110
113
  .#{$prefix}--tree-node__label {
111
114
  @include type-style('body-compact-01');
112
115
 
116
+ position: relative;
113
117
  display: flex;
118
+ box-sizing: border-box;
114
119
  flex: 1;
115
120
  align-items: center;
121
+ inline-size: 100%;
116
122
  min-block-size: convert.to-rem(32px);
123
+ padding-inline-end: 1rem;
117
124
 
118
125
  &:hover {
119
126
  background-color: $layer-hover-01;
@@ -154,6 +161,7 @@
154
161
  .#{$prefix}--tree-node__label__details {
155
162
  display: flex;
156
163
  align-items: center;
164
+ min-inline-size: 0;
157
165
  }
158
166
 
159
167
  .#{$prefix}--tree-node--with-icon .#{$prefix}--tree-parent-node__toggle {
@@ -247,4 +255,51 @@
247
255
  .#{$prefix}--tree--xs .#{$prefix}--tree-parent-node__toggle {
248
256
  margin-block-start: 0;
249
257
  }
258
+ .#{$prefix}--tree-node__label__text {
259
+ @include type-style('body-compact-01');
260
+
261
+ display: block;
262
+ overflow: hidden;
263
+ line-height: 1.2;
264
+ padding-inline-start: convert.to-rem(4px);
265
+ text-overflow: ellipsis;
266
+ white-space: nowrap;
267
+ }
268
+
269
+ .#{$prefix}--tree-node__label .#{$prefix}--icon-tooltip {
270
+ inline-size: 100%;
271
+ }
272
+
273
+ .#{$prefix}--tree-node__label
274
+ .#{$prefix}--icon-tooltip
275
+ .#{$prefix}--btn--icon-only {
276
+ padding: 0;
277
+ border: none;
278
+ background: transparent;
279
+ block-size: auto;
280
+ color: inherit;
281
+ inline-size: 100%;
282
+ min-block-size: unset;
283
+ text-align: start;
284
+ }
285
+
286
+ .#{$prefix}--tree-node__label
287
+ .#{$prefix}--icon-tooltip
288
+ .#{$prefix}--btn--icon-only
289
+ .#{$prefix}--tree-node__label__text {
290
+ color: inherit;
291
+ inline-size: 100%;
292
+ }
293
+
294
+ .#{$prefix}--tree-node__label .#{$prefix}--tooltip-content {
295
+ padding: 1rem;
296
+ }
297
+
298
+ .#{$prefix}--tree-node__label .#{$prefix}--popover-container {
299
+ inline-size: 100%;
300
+ }
301
+ .#{$prefix}--tooltip-trigger__wrapper .#{$prefix}--btn--ghost:focus {
302
+ box-shadow: none;
303
+ outline: 2px solid $focus;
304
+ }
250
305
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2023
2
+ // Copyright IBM Corp. 2023, 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.
@@ -55,6 +55,13 @@
55
55
  transparent 50%
56
56
  ),
57
57
  theme.$layer-selected;
58
+ } @else if $type == 'full-table' {
59
+ background: linear-gradient(
60
+ to top,
61
+ theme.$ai-aura-start 0%,
62
+ theme.$ai-aura-end 50%,
63
+ transparent 50%
64
+ );
58
65
  } @else {
59
66
  background: linear-gradient(
60
67
  to right,