@carbon/elements 10.30.0 → 10.32.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.
@@ -82,6 +82,80 @@ $white: utilities.merge(
82
82
  button-separator: #e0e0e0,
83
83
  skeleton-01: #e5e5e5,
84
84
  skeleton-02: #c6c6c6,
85
+ background: #ffffff,
86
+ layer: #f4f4f4,
87
+ layer-accent: #e0e0e0,
88
+ field: #f4f4f4,
89
+ background-inverse: #393939,
90
+ background-brand: #0f62fe,
91
+ interactive: #0f62fe,
92
+ border-subtle: #e0e0e0,
93
+ border-strong: #8d8d8d,
94
+ border-inverse: #161616,
95
+ border-interactive: #0f62fe,
96
+ text-primary: #161616,
97
+ text-secondary: #525252,
98
+ text-placeholder: #a8a8a8,
99
+ text-helper: #6f6f6f,
100
+ text-on-color: #ffffff,
101
+ text-inverse: #ffffff,
102
+ link-primary: #0f62fe,
103
+ link-secondary: #0043ce,
104
+ link-visited: #8a3ffc,
105
+ link-inverse: #78a9ff,
106
+ icon-primary: #161616,
107
+ icon-secondary: #525252,
108
+ icon-on-color: #ffffff,
109
+ icon-inverse: #ffffff,
110
+ support-error: #da1e28,
111
+ support-success: #24a148,
112
+ support-warning: #f1c21b,
113
+ support-info: #0043ce,
114
+ support-error-inverse: #fa4d56,
115
+ support-success-inverse: #42be65,
116
+ support-warning-inverse: #f1c21b,
117
+ support-info-inverse: #4589ff,
118
+ overlay: rgba(22, 22, 22, 0.5),
119
+ toggle-off: #8d8d8d,
120
+ button-primary: #0f62fe,
121
+ button-secondary: #393939,
122
+ button-tertiary: #0f62fe,
123
+ button-danger-primary: #da1e28,
124
+ button-danger-secondary: #da1e28,
125
+ background-active: #c6c6c6,
126
+ layer-active: #c6c6c6,
127
+ button-danger-active: #750e13,
128
+ button-primary-active: #002d9c,
129
+ button-secondary-active: #6f6f6f,
130
+ button-tertiary-active: #002d9c,
131
+ focus-inset: #ffffff,
132
+ focus-inverse: #ffffff,
133
+ background-hover: #e5e5e5,
134
+ layer-hover: #e5e5e5,
135
+ field-hover: #e5e5e5,
136
+ background-inverse-hover: #4c4c4c,
137
+ link-primary-hover: #0043ce,
138
+ button-danger-hover: #b81921,
139
+ button-primary-hover: #0353e9,
140
+ button-secondary-hover: #4c4c4c,
141
+ button-tertiary-hover: #0353e9,
142
+ background-selected: #e0e0e0,
143
+ background-selected-hover: #cacaca,
144
+ layer-selected: #e0e0e0,
145
+ layer-selected-hover: #cacaca,
146
+ layer-selected-inverse: #161616,
147
+ border-subtle-selected: #c6c6c6,
148
+ layer-disabled: #f4f4f4,
149
+ field-disabled: #f4f4f4,
150
+ border-disabled: #f4f4f4,
151
+ text-disabled: #c6c6c6,
152
+ button-disabled: #c6c6c6,
153
+ icon-disabled: #c6c6c6,
154
+ text-on-color-disabled: #8d8d8d,
155
+ icon-on-color-disabled: #8d8d8d,
156
+ layer-selected-disabled: #8d8d8d,
157
+ skeleton-background: #e5e5e5,
158
+ skeleton-element: #c6c6c6,
85
159
  brand-01: #0f62fe,
86
160
  brand-02: #393939,
87
161
  brand-03: #0f62fe,
@@ -104,7 +178,12 @@ $g10: map.merge(
104
178
  field-01: #ffffff,
105
179
  field-02: #f4f4f4,
106
180
  disabled-01: #ffffff,
107
- highlight: #edf5ff,
181
+ background: #f4f4f4,
182
+ layer: #ffffff,
183
+ field: #ffffff,
184
+ layer-disabled: #ffffff,
185
+ field-disabled: #ffffff,
186
+ border-disabled: #ffffff,
108
187
  )
109
188
  ) !default;
110
189
 
@@ -170,6 +249,67 @@ $g90: map.merge(
170
249
  button-separator: #161616,
171
250
  skeleton-01: #353535,
172
251
  skeleton-02: #525252,
252
+ background: #262626,
253
+ layer: #393939,
254
+ layer-accent: #525252,
255
+ field: #393939,
256
+ background-inverse: #f4f4f4,
257
+ interactive: #4589ff,
258
+ border-subtle: #525252,
259
+ border-inverse: #f4f4f4,
260
+ border-interactive: #4589ff,
261
+ text-primary: #f4f4f4,
262
+ text-secondary: #c6c6c6,
263
+ text-placeholder: #6f6f6f,
264
+ text-helper: #8d8d8d,
265
+ text-inverse: #161616,
266
+ link-primary: #78a9ff,
267
+ link-secondary: #a6c8ff,
268
+ link-visited: #be95ff,
269
+ link-inverse: #0f62fe,
270
+ icon-primary: #f4f4f4,
271
+ icon-secondary: #c6c6c6,
272
+ icon-inverse: #161616,
273
+ support-error: #ff8389,
274
+ support-success: #42be65,
275
+ support-info: #4589ff,
276
+ support-error-inverse: #da1e28,
277
+ support-success-inverse: #24a148,
278
+ support-info-inverse: #0f62fe,
279
+ overlay: rgba(22, 22, 22, 0.7),
280
+ button-secondary: #6f6f6f,
281
+ button-tertiary: #ffffff,
282
+ button-danger-secondary: #ff8389,
283
+ background-active: #6f6f6f,
284
+ layer-active: #6f6f6f,
285
+ button-secondary-active: #393939,
286
+ button-tertiary-active: #c6c6c6,
287
+ focus-inset: #161616,
288
+ focus-inverse: #0f62fe,
289
+ background-hover: #4c4c4c,
290
+ layer-hover: #4c4c4c,
291
+ field-hover: #4c4c4c,
292
+ background-inverse-hover: #e5e5e5,
293
+ link-primary-hover: #a6c8ff,
294
+ button-secondary-hover: #606060,
295
+ button-tertiary-hover: #f4f4f4,
296
+ background-selected: #525252,
297
+ background-selected-hover: #656565,
298
+ layer-selected: #525252,
299
+ layer-selected-hover: #656565,
300
+ layer-selected-inverse: #f4f4f4,
301
+ border-subtle-selected: #6f6f6f,
302
+ layer-disabled: #393939,
303
+ field-disabled: #393939,
304
+ border-disabled: #393939,
305
+ text-disabled: #6f6f6f,
306
+ button-disabled: #6f6f6f,
307
+ icon-disabled: #6f6f6f,
308
+ text-on-color-disabled: #a8a8a8,
309
+ icon-on-color-disabled: #a8a8a8,
310
+ layer-selected-disabled: #a8a8a8,
311
+ skeleton-background: #353535,
312
+ skeleton-element: #525252,
173
313
  brand-02: #6f6f6f,
174
314
  brand-03: #ffffff,
175
315
  active-01: #6f6f6f,
@@ -239,6 +379,66 @@ $g100: map.merge(
239
379
  button-separator: #161616,
240
380
  skeleton-01: #353535,
241
381
  skeleton-02: #525252,
382
+ background: #161616,
383
+ layer: #262626,
384
+ layer-accent: #393939,
385
+ field: #262626,
386
+ background-inverse: #f4f4f4,
387
+ interactive: #4589ff,
388
+ border-subtle: #393939,
389
+ border-strong: #6f6f6f,
390
+ border-inverse: #f4f4f4,
391
+ border-interactive: #4589ff,
392
+ text-primary: #f4f4f4,
393
+ text-secondary: #c6c6c6,
394
+ text-placeholder: #6f6f6f,
395
+ text-helper: #8d8d8d,
396
+ text-inverse: #161616,
397
+ link-primary: #78a9ff,
398
+ link-secondary: #a6c8ff,
399
+ link-visited: #be95ff,
400
+ link-inverse: #0f62fe,
401
+ icon-primary: #f4f4f4,
402
+ icon-secondary: #c6c6c6,
403
+ icon-inverse: #161616,
404
+ support-error: #fa4d56,
405
+ support-success: #42be65,
406
+ support-info: #4589ff,
407
+ support-error-inverse: #da1e28,
408
+ support-success-inverse: #24a148,
409
+ support-info-inverse: #0f62fe,
410
+ overlay: rgba(22, 22, 22, 0.7),
411
+ toggle-off: #6f6f6f,
412
+ button-secondary: #6f6f6f,
413
+ button-tertiary: #ffffff,
414
+ button-danger-secondary: #fa4d56,
415
+ background-active: #525252,
416
+ layer-active: #525252,
417
+ button-secondary-active: #393939,
418
+ button-tertiary-active: #c6c6c6,
419
+ focus-inset: #161616,
420
+ focus-inverse: #0f62fe,
421
+ background-hover: #353535,
422
+ layer-hover: #353535,
423
+ field-hover: #353535,
424
+ background-inverse-hover: #e5e5e5,
425
+ link-primary-hover: #a6c8ff,
426
+ button-secondary-hover: #606060,
427
+ button-tertiary-hover: #f4f4f4,
428
+ background-selected: #393939,
429
+ background-selected-hover: #4c4c4c,
430
+ layer-selected: #393939,
431
+ layer-selected-hover: #4c4c4c,
432
+ layer-selected-inverse: #f4f4f4,
433
+ border-subtle-selected: #525252,
434
+ layer-disabled: #262626,
435
+ field-disabled: #262626,
436
+ border-disabled: #262626,
437
+ text-disabled: #525252,
438
+ button-disabled: #525252,
439
+ icon-disabled: #525252,
440
+ skeleton-background: #353535,
441
+ skeleton-element: #525252,
242
442
  brand-02: #6f6f6f,
243
443
  brand-03: #ffffff,
244
444
  active-01: #525252,
@@ -196,8 +196,16 @@ $carbon--grid-breakpoints: (
196
196
  $max: if($is-number-upper, $upper, map-get($breakpoints, $upper));
197
197
 
198
198
  @if $min and $max {
199
- $min-width: if(not $is-number-lower and $min, map-get($min, width), $min);
200
- $max-width: if(not $is-number-upper and $max, map-get($max, width), $max);
199
+ $min-width: if(
200
+ not $is-number-lower and $min,
201
+ map-get($min, width + 0.02),
202
+ $min
203
+ );
204
+ $max-width: if(
205
+ not $is-number-upper and $max,
206
+ map-get($max, width - 0.02),
207
+ $max
208
+ );
201
209
  @media (min-width: $min-width) and (max-width: $max-width) {
202
210
  @content;
203
211
  }
@@ -66,6 +66,11 @@ $carbon--spacing-11: 5rem !default;
66
66
  /// @group @carbon/layout
67
67
  $carbon--spacing-12: 6rem !default;
68
68
 
69
+ /// @type Number
70
+ /// @access public
71
+ /// @group @carbon/layout
72
+ $carbon--spacing-13: 10rem !default;
73
+
69
74
  /// @type List
70
75
  /// @access public
71
76
  /// @group @carbon/layout
@@ -81,7 +86,8 @@ $carbon--spacing: (
81
86
  $carbon--spacing-09,
82
87
  $carbon--spacing-10,
83
88
  $carbon--spacing-11,
84
- $carbon--spacing-12
89
+ $carbon--spacing-12,
90
+ $carbon--spacing-13
85
91
  );
86
92
 
87
93
  /// @type Number
@@ -155,3 +161,9 @@ $spacing-11: $carbon--spacing-11 !default;
155
161
  /// @group @carbon/layout
156
162
  /// @alias carbon--spacing-12
157
163
  $spacing-12: $carbon--spacing-12 !default;
164
+
165
+ /// @type Number
166
+ /// @access public
167
+ /// @group @carbon/layout
168
+ /// @alias carbon--spacing-13
169
+ $spacing-13: $carbon--spacing-13 !default;
@@ -66,6 +66,11 @@ $spacing-11: 5rem !default;
66
66
  /// @group @carbon/layout
67
67
  $spacing-12: 6rem !default;
68
68
 
69
+ /// @type Number
70
+ /// @access public
71
+ /// @group @carbon/layout
72
+ $spacing-13: 10rem !default;
73
+
69
74
  /// @type Map
70
75
  /// @access public
71
76
  /// @group @carbon/layout
@@ -82,4 +87,5 @@ $spacing: (
82
87
  spacing-10: $spacing-10,
83
88
  spacing-11: $spacing-11,
84
89
  spacing-12: $spacing-12,
90
+ spacing-13: $spacing-13,
85
91
  );
@@ -9,6 +9,14 @@ Array [
9
9
  "activeSecondary",
10
10
  "activeTertiary",
11
11
  "activeUI",
12
+ "background",
13
+ "backgroundActive",
14
+ "backgroundBrand",
15
+ "backgroundHover",
16
+ "backgroundInverse",
17
+ "backgroundInverseHover",
18
+ "backgroundSelected",
19
+ "backgroundSelectedHover",
12
20
  "baseFontSize",
13
21
  "black",
14
22
  "black100",
@@ -27,6 +35,12 @@ Array [
27
35
  "bodyLong02",
28
36
  "bodyShort01",
29
37
  "bodyShort02",
38
+ "borderDisabled",
39
+ "borderInteractive",
40
+ "borderInverse",
41
+ "borderStrong",
42
+ "borderSubtle",
43
+ "borderSubtleSelected",
30
44
  "brand01",
31
45
  "brand02",
32
46
  "brand03",
@@ -34,7 +48,21 @@ Array [
34
48
  "breakpointDown",
35
49
  "breakpointUp",
36
50
  "breakpoints",
51
+ "buttonDangerActive",
52
+ "buttonDangerHover",
53
+ "buttonDangerPrimary",
54
+ "buttonDangerSecondary",
55
+ "buttonDisabled",
56
+ "buttonPrimary",
57
+ "buttonPrimaryActive",
58
+ "buttonPrimaryHover",
59
+ "buttonSecondary",
60
+ "buttonSecondaryActive",
61
+ "buttonSecondaryHover",
37
62
  "buttonSeparator",
63
+ "buttonTertiary",
64
+ "buttonTertiaryActive",
65
+ "buttonTertiaryHover",
38
66
  "caption01",
39
67
  "code01",
40
68
  "code02",
@@ -89,8 +117,11 @@ Array [
89
117
  "expressiveParagraph01",
90
118
  "fast01",
91
119
  "fast02",
120
+ "field",
92
121
  "field01",
93
122
  "field02",
123
+ "fieldDisabled",
124
+ "fieldHover",
94
125
  "fluid",
95
126
  "fluidSpacing",
96
127
  "fluidSpacing01",
@@ -98,6 +129,8 @@ Array [
98
129
  "fluidSpacing03",
99
130
  "fluidSpacing04",
100
131
  "focus",
132
+ "focusInset",
133
+ "focusInverse",
101
134
  "fontFamilies",
102
135
  "fontFamily",
103
136
  "fontWeight",
@@ -146,9 +179,16 @@ Array [
146
179
  "icon01",
147
180
  "icon02",
148
181
  "icon03",
182
+ "iconDisabled",
183
+ "iconInverse",
184
+ "iconOnColor",
185
+ "iconOnColorDisabled",
186
+ "iconPrimary",
187
+ "iconSecondary",
149
188
  "iconSize",
150
189
  "iconSize01",
151
190
  "iconSize02",
191
+ "interactive",
152
192
  "interactive01",
153
193
  "interactive02",
154
194
  "interactive03",
@@ -163,6 +203,15 @@ Array [
163
203
  "inverseSupport03",
164
204
  "inverseSupport04",
165
205
  "label01",
206
+ "layer",
207
+ "layerAccent",
208
+ "layerActive",
209
+ "layerDisabled",
210
+ "layerHover",
211
+ "layerSelected",
212
+ "layerSelectedDisabled",
213
+ "layerSelectedHover",
214
+ "layerSelectedInverse",
166
215
  "layout",
167
216
  "layout01",
168
217
  "layout02",
@@ -173,6 +222,11 @@ Array [
173
222
  "layout07",
174
223
  "link01",
175
224
  "link02",
225
+ "linkInverse",
226
+ "linkPrimary",
227
+ "linkPrimaryHover",
228
+ "linkSecondary",
229
+ "linkVisited",
176
230
  "magenta",
177
231
  "magenta10",
178
232
  "magenta100",
@@ -193,6 +247,7 @@ Array [
193
247
  "orange40",
194
248
  "orange60",
195
249
  "orange70",
250
+ "overlay",
196
251
  "overlay01",
197
252
  "print",
198
253
  "productiveHeading01",
@@ -235,6 +290,8 @@ Array [
235
290
  "selectedUI",
236
291
  "skeleton01",
237
292
  "skeleton02",
293
+ "skeletonBackground",
294
+ "skeletonElement",
238
295
  "slow01",
239
296
  "slow02",
240
297
  "spacing",
@@ -250,11 +307,20 @@ Array [
250
307
  "spacing10",
251
308
  "spacing11",
252
309
  "spacing12",
310
+ "spacing13",
253
311
  "styles",
254
312
  "support01",
255
313
  "support02",
256
314
  "support03",
257
315
  "support04",
316
+ "supportError",
317
+ "supportErrorInverse",
318
+ "supportInfo",
319
+ "supportInfoInverse",
320
+ "supportSuccess",
321
+ "supportSuccessInverse",
322
+ "supportWarning",
323
+ "supportWarningInverse",
258
324
  "teal",
259
325
  "teal10",
260
326
  "teal100",
@@ -271,8 +337,17 @@ Array [
271
337
  "text03",
272
338
  "text04",
273
339
  "text05",
340
+ "textDisabled",
274
341
  "textError",
342
+ "textHelper",
343
+ "textInverse",
344
+ "textOnColor",
345
+ "textOnColorDisabled",
346
+ "textPlaceholder",
347
+ "textPrimary",
348
+ "textSecondary",
275
349
  "themes",
350
+ "toggleOff",
276
351
  "tokens",
277
352
  "ui01",
278
353
  "ui02",
package/umd/index.js CHANGED
@@ -4,14 +4,6 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonElements = {}, global.CarbonColors, global.CarbonType, global.CarbonLayout, global.CarbonThemes, global.CarbonMotion));
5
5
  }(this, (function (exports, colors, type, layout, themes, motion) { 'use strict';
6
6
 
7
- Object.keys(themes).forEach(function (k) {
8
- if (k !== 'default') Object.defineProperty(exports, k, {
9
- enumerable: true,
10
- get: function () {
11
- return themes[k];
12
- }
13
- });
14
- });
15
7
  Object.defineProperty(exports, 'black', {
16
8
  enumerable: true,
17
9
  get: function () {
@@ -960,6 +952,14 @@
960
952
  return motion.slow02;
961
953
  }
962
954
  });
955
+ Object.keys(themes).forEach(function (k) {
956
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
957
+ enumerable: true,
958
+ get: function () {
959
+ return themes[k];
960
+ }
961
+ });
962
+ });
963
963
 
964
964
  Object.defineProperty(exports, '__esModule', { value: true });
965
965