@carbon/themes 10.33.0 → 10.35.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/es/index.js +110 -28
- package/index.scss +1 -0
- package/lib/index.js +160 -22
- package/package.json +7 -7
- package/scss/generated/_mixins.scss +157 -0
- package/scss/generated/_themes.scss +100 -2
- package/scss/generated/_tokens.scss +126 -2
- package/scss/modules/_tokens.scss +8 -0
- package/scss/modules/generated/_themes.scss +10 -2
- package/scss/modules/generated/_tokens.scss +227 -0
- package/src/g10.js +13 -2
- package/src/g100.js +11 -0
- package/src/g80.js +11 -0
- package/src/g90.js +11 -0
- package/src/tokens.js +4 -0
- package/src/v9.js +13 -1
- package/src/white.js +13 -2
- package/umd/index.js +160 -22
package/lib/index.js
CHANGED
|
@@ -11,29 +11,18 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
|
|
12
12
|
var Color__default = /*#__PURE__*/_interopDefaultLegacy(Color);
|
|
13
13
|
|
|
14
|
-
function _defineProperty(obj, key, value) {
|
|
15
|
-
if (key in obj) {
|
|
16
|
-
Object.defineProperty(obj, key, {
|
|
17
|
-
value: value,
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true
|
|
21
|
-
});
|
|
22
|
-
} else {
|
|
23
|
-
obj[key] = value;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
14
|
function ownKeys(object, enumerableOnly) {
|
|
30
15
|
var keys = Object.keys(object);
|
|
31
16
|
|
|
32
17
|
if (Object.getOwnPropertySymbols) {
|
|
33
18
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
|
|
20
|
+
if (enumerableOnly) {
|
|
21
|
+
symbols = symbols.filter(function (sym) {
|
|
22
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
37
26
|
keys.push.apply(keys, symbols);
|
|
38
27
|
}
|
|
39
28
|
|
|
@@ -60,6 +49,21 @@ function _objectSpread2(target) {
|
|
|
60
49
|
return target;
|
|
61
50
|
}
|
|
62
51
|
|
|
52
|
+
function _defineProperty(obj, key, value) {
|
|
53
|
+
if (key in obj) {
|
|
54
|
+
Object.defineProperty(obj, key, {
|
|
55
|
+
value: value,
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true
|
|
59
|
+
});
|
|
60
|
+
} else {
|
|
61
|
+
obj[key] = value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return obj;
|
|
65
|
+
}
|
|
66
|
+
|
|
63
67
|
/**
|
|
64
68
|
* Adjust a given token's lightness by a specified percentage
|
|
65
69
|
* Example: token = hsl(10, 10, 10);
|
|
@@ -110,7 +114,7 @@ var field02$5 = colors$1.white;
|
|
|
110
114
|
var inverse01$5 = colors$1.white;
|
|
111
115
|
var inverse02$5 = colors$1.gray80;
|
|
112
116
|
var support01$5 = colors$1.red60;
|
|
113
|
-
var support02$5 = colors$1.
|
|
117
|
+
var support02$5 = colors$1.green60;
|
|
114
118
|
var support03$5 = colors$1.yellow;
|
|
115
119
|
var support04$5 = colors$1.blue70;
|
|
116
120
|
var inverseSupport01$5 = colors$1.red50;
|
|
@@ -155,6 +159,8 @@ var skeleton02$5 = colors$1.gray30; // New color tokens
|
|
|
155
159
|
var background$5 = uiBackground$5;
|
|
156
160
|
var layer$5 = ui01$5;
|
|
157
161
|
var layerAccent$5 = ui03$5;
|
|
162
|
+
var layerAccentActive$5 = colors$1.gray40;
|
|
163
|
+
var layerAccentHover$5 = adjustLightness(layerAccent$5, -6);
|
|
158
164
|
var field$5 = field01$5;
|
|
159
165
|
var backgroundInverse$5 = inverse02$5;
|
|
160
166
|
var backgroundBrand$5 = interactive01$5;
|
|
@@ -305,6 +311,8 @@ var white = /*#__PURE__*/Object.freeze({
|
|
|
305
311
|
background: background$5,
|
|
306
312
|
layer: layer$5,
|
|
307
313
|
layerAccent: layerAccent$5,
|
|
314
|
+
layerAccentActive: layerAccentActive$5,
|
|
315
|
+
layerAccentHover: layerAccentHover$5,
|
|
308
316
|
field: field$5,
|
|
309
317
|
backgroundInverse: backgroundInverse$5,
|
|
310
318
|
backgroundBrand: backgroundBrand$5,
|
|
@@ -383,8 +391,11 @@ var white = /*#__PURE__*/Object.freeze({
|
|
|
383
391
|
hoverField: hoverField$5,
|
|
384
392
|
danger: danger$5,
|
|
385
393
|
caption01: type.caption01,
|
|
394
|
+
caption02: type.caption02,
|
|
386
395
|
label01: type.label01,
|
|
396
|
+
label02: type.label02,
|
|
387
397
|
helperText01: type.helperText01,
|
|
398
|
+
helperText02: type.helperText02,
|
|
388
399
|
bodyShort01: type.bodyShort01,
|
|
389
400
|
bodyLong01: type.bodyLong01,
|
|
390
401
|
bodyShort02: type.bodyShort02,
|
|
@@ -442,6 +453,12 @@ var white = /*#__PURE__*/Object.freeze({
|
|
|
442
453
|
container03: layout.container03,
|
|
443
454
|
container04: layout.container04,
|
|
444
455
|
container05: layout.container05,
|
|
456
|
+
sizeXSmall: layout.sizeXSmall,
|
|
457
|
+
sizeSmall: layout.sizeSmall,
|
|
458
|
+
sizeMedium: layout.sizeMedium,
|
|
459
|
+
sizeLarge: layout.sizeLarge,
|
|
460
|
+
sizeXLarge: layout.sizeXLarge,
|
|
461
|
+
size2XLarge: layout.size2XLarge,
|
|
445
462
|
iconSize01: layout.iconSize01,
|
|
446
463
|
iconSize02: layout.iconSize02
|
|
447
464
|
});
|
|
@@ -479,7 +496,7 @@ var field02$4 = colors$1.gray10;
|
|
|
479
496
|
var inverse01$4 = colors$1.white;
|
|
480
497
|
var inverse02$4 = colors$1.gray80;
|
|
481
498
|
var support01$4 = colors$1.red60;
|
|
482
|
-
var support02$4 = colors$1.
|
|
499
|
+
var support02$4 = colors$1.green60;
|
|
483
500
|
var support03$4 = colors$1.yellow;
|
|
484
501
|
var support04$4 = colors$1.blue70;
|
|
485
502
|
var inverseSupport01$4 = colors$1.red50;
|
|
@@ -524,6 +541,8 @@ var skeleton02$4 = colors$1.gray30; // New color tokens
|
|
|
524
541
|
var background$4 = uiBackground$4;
|
|
525
542
|
var layer$4 = ui01$4;
|
|
526
543
|
var layerAccent$4 = ui03$4;
|
|
544
|
+
var layerAccentActive$4 = colors$1.gray40;
|
|
545
|
+
var layerAccentHover$4 = adjustLightness(layerAccent$4, -6);
|
|
527
546
|
var field$4 = field01$4;
|
|
528
547
|
var backgroundInverse$4 = inverse02$4;
|
|
529
548
|
var backgroundBrand$4 = interactive01$4;
|
|
@@ -674,6 +693,8 @@ var g10 = /*#__PURE__*/Object.freeze({
|
|
|
674
693
|
background: background$4,
|
|
675
694
|
layer: layer$4,
|
|
676
695
|
layerAccent: layerAccent$4,
|
|
696
|
+
layerAccentActive: layerAccentActive$4,
|
|
697
|
+
layerAccentHover: layerAccentHover$4,
|
|
677
698
|
field: field$4,
|
|
678
699
|
backgroundInverse: backgroundInverse$4,
|
|
679
700
|
backgroundBrand: backgroundBrand$4,
|
|
@@ -752,8 +773,11 @@ var g10 = /*#__PURE__*/Object.freeze({
|
|
|
752
773
|
hoverField: hoverField$4,
|
|
753
774
|
danger: danger$4,
|
|
754
775
|
caption01: type.caption01,
|
|
776
|
+
caption02: type.caption02,
|
|
755
777
|
label01: type.label01,
|
|
778
|
+
label02: type.label02,
|
|
756
779
|
helperText01: type.helperText01,
|
|
780
|
+
helperText02: type.helperText02,
|
|
757
781
|
bodyShort01: type.bodyShort01,
|
|
758
782
|
bodyLong01: type.bodyLong01,
|
|
759
783
|
bodyShort02: type.bodyShort02,
|
|
@@ -811,6 +835,12 @@ var g10 = /*#__PURE__*/Object.freeze({
|
|
|
811
835
|
container03: layout.container03,
|
|
812
836
|
container04: layout.container04,
|
|
813
837
|
container05: layout.container05,
|
|
838
|
+
sizeXSmall: layout.sizeXSmall,
|
|
839
|
+
sizeSmall: layout.sizeSmall,
|
|
840
|
+
sizeMedium: layout.sizeMedium,
|
|
841
|
+
sizeLarge: layout.sizeLarge,
|
|
842
|
+
sizeXLarge: layout.sizeXLarge,
|
|
843
|
+
size2XLarge: layout.size2XLarge,
|
|
814
844
|
iconSize01: layout.iconSize01,
|
|
815
845
|
iconSize02: layout.iconSize02
|
|
816
846
|
});
|
|
@@ -893,6 +923,8 @@ var skeleton02$3 = colors$1.gray70; // New color tokens
|
|
|
893
923
|
var background$3 = uiBackground$3;
|
|
894
924
|
var layer$3 = ui01$3;
|
|
895
925
|
var layerAccent$3 = ui03$3;
|
|
926
|
+
var layerAccentActive$3 = colors$1.gray60;
|
|
927
|
+
var layerAccentHover$3 = adjustLightness(layerAccent$3, +6);
|
|
896
928
|
var field$3 = field01$3;
|
|
897
929
|
var backgroundInverse$3 = inverse02$3;
|
|
898
930
|
var backgroundBrand$3 = interactive01$3;
|
|
@@ -1043,6 +1075,8 @@ var g100 = /*#__PURE__*/Object.freeze({
|
|
|
1043
1075
|
background: background$3,
|
|
1044
1076
|
layer: layer$3,
|
|
1045
1077
|
layerAccent: layerAccent$3,
|
|
1078
|
+
layerAccentActive: layerAccentActive$3,
|
|
1079
|
+
layerAccentHover: layerAccentHover$3,
|
|
1046
1080
|
field: field$3,
|
|
1047
1081
|
backgroundInverse: backgroundInverse$3,
|
|
1048
1082
|
backgroundBrand: backgroundBrand$3,
|
|
@@ -1121,8 +1155,11 @@ var g100 = /*#__PURE__*/Object.freeze({
|
|
|
1121
1155
|
hoverField: hoverField$3,
|
|
1122
1156
|
danger: danger$3,
|
|
1123
1157
|
caption01: type.caption01,
|
|
1158
|
+
caption02: type.caption02,
|
|
1124
1159
|
label01: type.label01,
|
|
1160
|
+
label02: type.label02,
|
|
1125
1161
|
helperText01: type.helperText01,
|
|
1162
|
+
helperText02: type.helperText02,
|
|
1126
1163
|
bodyShort01: type.bodyShort01,
|
|
1127
1164
|
bodyLong01: type.bodyLong01,
|
|
1128
1165
|
bodyShort02: type.bodyShort02,
|
|
@@ -1180,6 +1217,12 @@ var g100 = /*#__PURE__*/Object.freeze({
|
|
|
1180
1217
|
container03: layout.container03,
|
|
1181
1218
|
container04: layout.container04,
|
|
1182
1219
|
container05: layout.container05,
|
|
1220
|
+
sizeXSmall: layout.sizeXSmall,
|
|
1221
|
+
sizeSmall: layout.sizeSmall,
|
|
1222
|
+
sizeMedium: layout.sizeMedium,
|
|
1223
|
+
sizeLarge: layout.sizeLarge,
|
|
1224
|
+
sizeXLarge: layout.sizeXLarge,
|
|
1225
|
+
size2XLarge: layout.size2XLarge,
|
|
1183
1226
|
iconSize01: layout.iconSize01,
|
|
1184
1227
|
iconSize02: layout.iconSize02
|
|
1185
1228
|
});
|
|
@@ -1195,6 +1238,8 @@ var g100 = /*#__PURE__*/Object.freeze({
|
|
|
1195
1238
|
var background$2 = colors$1.gray80;
|
|
1196
1239
|
var layer$2 = colors$1.gray70;
|
|
1197
1240
|
var layerAccent$2 = colors$1.gray60;
|
|
1241
|
+
var layerAccentActive$2 = colors$1.gray70;
|
|
1242
|
+
var layerAccentHover$2 = adjustLightness(layerAccent$2, -7);
|
|
1198
1243
|
var field$2 = colors$1.gray70;
|
|
1199
1244
|
var backgroundInverse$2 = colors$1.gray10;
|
|
1200
1245
|
var backgroundBrand$2 = colors$1.blue60;
|
|
@@ -1349,6 +1394,8 @@ var g80 = /*#__PURE__*/Object.freeze({
|
|
|
1349
1394
|
background: background$2,
|
|
1350
1395
|
layer: layer$2,
|
|
1351
1396
|
layerAccent: layerAccent$2,
|
|
1397
|
+
layerAccentActive: layerAccentActive$2,
|
|
1398
|
+
layerAccentHover: layerAccentHover$2,
|
|
1352
1399
|
field: field$2,
|
|
1353
1400
|
backgroundInverse: backgroundInverse$2,
|
|
1354
1401
|
backgroundBrand: backgroundBrand$2,
|
|
@@ -1493,8 +1540,11 @@ var g80 = /*#__PURE__*/Object.freeze({
|
|
|
1493
1540
|
hoverField: hoverField$2,
|
|
1494
1541
|
danger: danger$2,
|
|
1495
1542
|
caption01: type.caption01,
|
|
1543
|
+
caption02: type.caption02,
|
|
1496
1544
|
label01: type.label01,
|
|
1545
|
+
label02: type.label02,
|
|
1497
1546
|
helperText01: type.helperText01,
|
|
1547
|
+
helperText02: type.helperText02,
|
|
1498
1548
|
bodyShort01: type.bodyShort01,
|
|
1499
1549
|
bodyLong01: type.bodyLong01,
|
|
1500
1550
|
bodyShort02: type.bodyShort02,
|
|
@@ -1552,6 +1602,12 @@ var g80 = /*#__PURE__*/Object.freeze({
|
|
|
1552
1602
|
container03: layout.container03,
|
|
1553
1603
|
container04: layout.container04,
|
|
1554
1604
|
container05: layout.container05,
|
|
1605
|
+
sizeXSmall: layout.sizeXSmall,
|
|
1606
|
+
sizeSmall: layout.sizeSmall,
|
|
1607
|
+
sizeMedium: layout.sizeMedium,
|
|
1608
|
+
sizeLarge: layout.sizeLarge,
|
|
1609
|
+
sizeXLarge: layout.sizeXLarge,
|
|
1610
|
+
size2XLarge: layout.size2XLarge,
|
|
1555
1611
|
iconSize01: layout.iconSize01,
|
|
1556
1612
|
iconSize02: layout.iconSize02
|
|
1557
1613
|
});
|
|
@@ -1634,6 +1690,8 @@ var skeleton02$1 = colors$1.gray70; // New color tokens
|
|
|
1634
1690
|
var background$1 = uiBackground$1;
|
|
1635
1691
|
var layer$1 = ui01$1;
|
|
1636
1692
|
var layerAccent$1 = ui03$1;
|
|
1693
|
+
var layerAccentActive$1 = colors$1.gray50;
|
|
1694
|
+
var layerAccentHover$1 = adjustLightness(layerAccent$1, +7);
|
|
1637
1695
|
var field$1 = field01$1;
|
|
1638
1696
|
var backgroundInverse$1 = inverse02$1;
|
|
1639
1697
|
var backgroundBrand$1 = interactive01$1;
|
|
@@ -1784,6 +1842,8 @@ var g90 = /*#__PURE__*/Object.freeze({
|
|
|
1784
1842
|
background: background$1,
|
|
1785
1843
|
layer: layer$1,
|
|
1786
1844
|
layerAccent: layerAccent$1,
|
|
1845
|
+
layerAccentActive: layerAccentActive$1,
|
|
1846
|
+
layerAccentHover: layerAccentHover$1,
|
|
1787
1847
|
field: field$1,
|
|
1788
1848
|
backgroundInverse: backgroundInverse$1,
|
|
1789
1849
|
backgroundBrand: backgroundBrand$1,
|
|
@@ -1862,8 +1922,11 @@ var g90 = /*#__PURE__*/Object.freeze({
|
|
|
1862
1922
|
hoverField: hoverField$1,
|
|
1863
1923
|
danger: danger$1,
|
|
1864
1924
|
caption01: type.caption01,
|
|
1925
|
+
caption02: type.caption02,
|
|
1865
1926
|
label01: type.label01,
|
|
1927
|
+
label02: type.label02,
|
|
1866
1928
|
helperText01: type.helperText01,
|
|
1929
|
+
helperText02: type.helperText02,
|
|
1867
1930
|
bodyShort01: type.bodyShort01,
|
|
1868
1931
|
bodyLong01: type.bodyLong01,
|
|
1869
1932
|
bodyShort02: type.bodyShort02,
|
|
@@ -1921,6 +1984,12 @@ var g90 = /*#__PURE__*/Object.freeze({
|
|
|
1921
1984
|
container03: layout.container03,
|
|
1922
1985
|
container04: layout.container04,
|
|
1923
1986
|
container05: layout.container05,
|
|
1987
|
+
sizeXSmall: layout.sizeXSmall,
|
|
1988
|
+
sizeSmall: layout.sizeSmall,
|
|
1989
|
+
sizeMedium: layout.sizeMedium,
|
|
1990
|
+
sizeLarge: layout.sizeLarge,
|
|
1991
|
+
sizeXLarge: layout.sizeXLarge,
|
|
1992
|
+
size2XLarge: layout.size2XLarge,
|
|
1924
1993
|
iconSize01: layout.iconSize01,
|
|
1925
1994
|
iconSize02: layout.iconSize02
|
|
1926
1995
|
});
|
|
@@ -2003,6 +2072,8 @@ var skeleton02 = 'rgba(61, 112, 178, .1)'; // New color tokens
|
|
|
2003
2072
|
var background = uiBackground;
|
|
2004
2073
|
var layer = ui01;
|
|
2005
2074
|
var layerAccent = ui03;
|
|
2075
|
+
var layerAccentActive = colors$1.gray40;
|
|
2076
|
+
var layerAccentHover = adjustLightness(layerAccent, -6);
|
|
2006
2077
|
var field = field01;
|
|
2007
2078
|
var backgroundInverse = inverse02;
|
|
2008
2079
|
var backgroundBrand = interactive01;
|
|
@@ -2153,6 +2224,8 @@ var v9 = /*#__PURE__*/Object.freeze({
|
|
|
2153
2224
|
background: background,
|
|
2154
2225
|
layer: layer,
|
|
2155
2226
|
layerAccent: layerAccent,
|
|
2227
|
+
layerAccentActive: layerAccentActive,
|
|
2228
|
+
layerAccentHover: layerAccentHover,
|
|
2156
2229
|
field: field,
|
|
2157
2230
|
backgroundInverse: backgroundInverse,
|
|
2158
2231
|
backgroundBrand: backgroundBrand,
|
|
@@ -2231,8 +2304,11 @@ var v9 = /*#__PURE__*/Object.freeze({
|
|
|
2231
2304
|
hoverField: hoverField,
|
|
2232
2305
|
danger: danger,
|
|
2233
2306
|
caption01: type.caption01,
|
|
2307
|
+
caption02: type.caption02,
|
|
2234
2308
|
label01: type.label01,
|
|
2309
|
+
label02: type.label02,
|
|
2235
2310
|
helperText01: type.helperText01,
|
|
2311
|
+
helperText02: type.helperText02,
|
|
2236
2312
|
bodyShort01: type.bodyShort01,
|
|
2237
2313
|
bodyLong01: type.bodyLong01,
|
|
2238
2314
|
bodyShort02: type.bodyShort02,
|
|
@@ -2290,6 +2366,12 @@ var v9 = /*#__PURE__*/Object.freeze({
|
|
|
2290
2366
|
container03: layout.container03,
|
|
2291
2367
|
container04: layout.container04,
|
|
2292
2368
|
container05: layout.container05,
|
|
2369
|
+
sizeXSmall: layout.sizeXSmall,
|
|
2370
|
+
sizeSmall: layout.sizeSmall,
|
|
2371
|
+
sizeMedium: layout.sizeMedium,
|
|
2372
|
+
sizeLarge: layout.sizeLarge,
|
|
2373
|
+
sizeXLarge: layout.sizeXLarge,
|
|
2374
|
+
size2XLarge: layout.size2XLarge,
|
|
2293
2375
|
iconSize01: layout.iconSize01,
|
|
2294
2376
|
iconSize02: layout.iconSize02
|
|
2295
2377
|
});
|
|
@@ -2306,7 +2388,7 @@ var colors = [// Core
|
|
|
2306
2388
|
'interactive01', 'interactive02', 'interactive03', 'interactive04', 'uiBackground', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'icon01', 'icon02', 'icon03', 'link01', 'link02', 'inverseLink', 'field01', 'field02', 'inverse01', 'inverse02', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', 'danger01', 'danger02', // Interactive states
|
|
2307
2389
|
'focus', 'inverseFocusUi', 'hoverPrimary', 'activePrimary', 'hoverPrimaryText', 'hoverSecondary', 'activeSecondary', 'hoverTertiary', 'activeTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'activeUI', 'activeLightUI', 'selectedUI', 'selectedLightUI', 'inverseHoverUI', 'hoverDanger', 'activeDanger', 'hoverRow', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'highlight', 'decorative01', 'buttonSeparator', 'skeleton01', 'skeleton02', // New color tokens
|
|
2308
2390
|
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2309
|
-
'background', 'layer', 'layerAccent', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'layerDisabled', 'fieldDisabled', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2391
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'layerDisabled', 'fieldDisabled', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2310
2392
|
'brand01', 'brand02', 'brand03', 'active01', 'hoverField', 'danger'];
|
|
2311
2393
|
var numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
2312
2394
|
/**
|
|
@@ -2356,7 +2438,7 @@ var unstable__meta = {
|
|
|
2356
2438
|
colors: [{
|
|
2357
2439
|
type: 'core',
|
|
2358
2440
|
tokens: ['uiBackground', 'interactive01', 'interactive02', 'interactive03', 'interactive04', 'brand01', 'brand02', 'brand03', 'danger', 'danger01', 'danger02', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'link01', 'link02', 'icon01', 'icon02', 'icon03', 'field01', 'field02', 'inverse01', 'inverse02', 'inverseLink', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', //new tokens
|
|
2359
|
-
'background', 'layer', 'layerAccent', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary']
|
|
2441
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary']
|
|
2360
2442
|
}, {
|
|
2361
2443
|
type: 'interactive',
|
|
2362
2444
|
tokens: ['focus', 'inverseFocusUi', 'hoverPrimary', 'hoverPrimaryText', 'hoverSecondary', 'hoverTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'hoverDanger', 'hoverRow', 'activePrimary', 'activeSecondary', 'activeTertiary', 'activeUI', 'activeLightUI', 'activeDanger', 'selectedUI', 'selectedLightUI', 'highlight', 'skeleton01', 'skeleton02', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'inverseHoverUI', 'active01', 'hoverField', 'decorative01', 'buttonSeparator', // new tokens
|
|
@@ -2410,6 +2492,12 @@ Object.defineProperty(exports, 'caption01', {
|
|
|
2410
2492
|
return type.caption01;
|
|
2411
2493
|
}
|
|
2412
2494
|
});
|
|
2495
|
+
Object.defineProperty(exports, 'caption02', {
|
|
2496
|
+
enumerable: true,
|
|
2497
|
+
get: function () {
|
|
2498
|
+
return type.caption02;
|
|
2499
|
+
}
|
|
2500
|
+
});
|
|
2413
2501
|
Object.defineProperty(exports, 'code01', {
|
|
2414
2502
|
enumerable: true,
|
|
2415
2503
|
get: function () {
|
|
@@ -2506,12 +2594,24 @@ Object.defineProperty(exports, 'helperText01', {
|
|
|
2506
2594
|
return type.helperText01;
|
|
2507
2595
|
}
|
|
2508
2596
|
});
|
|
2597
|
+
Object.defineProperty(exports, 'helperText02', {
|
|
2598
|
+
enumerable: true,
|
|
2599
|
+
get: function () {
|
|
2600
|
+
return type.helperText02;
|
|
2601
|
+
}
|
|
2602
|
+
});
|
|
2509
2603
|
Object.defineProperty(exports, 'label01', {
|
|
2510
2604
|
enumerable: true,
|
|
2511
2605
|
get: function () {
|
|
2512
2606
|
return type.label01;
|
|
2513
2607
|
}
|
|
2514
2608
|
});
|
|
2609
|
+
Object.defineProperty(exports, 'label02', {
|
|
2610
|
+
enumerable: true,
|
|
2611
|
+
get: function () {
|
|
2612
|
+
return type.label02;
|
|
2613
|
+
}
|
|
2614
|
+
});
|
|
2515
2615
|
Object.defineProperty(exports, 'productiveHeading01', {
|
|
2516
2616
|
enumerable: true,
|
|
2517
2617
|
get: function () {
|
|
@@ -2674,6 +2774,42 @@ Object.defineProperty(exports, 'layout07', {
|
|
|
2674
2774
|
return layout.layout07;
|
|
2675
2775
|
}
|
|
2676
2776
|
});
|
|
2777
|
+
Object.defineProperty(exports, 'size2XLarge', {
|
|
2778
|
+
enumerable: true,
|
|
2779
|
+
get: function () {
|
|
2780
|
+
return layout.size2XLarge;
|
|
2781
|
+
}
|
|
2782
|
+
});
|
|
2783
|
+
Object.defineProperty(exports, 'sizeLarge', {
|
|
2784
|
+
enumerable: true,
|
|
2785
|
+
get: function () {
|
|
2786
|
+
return layout.sizeLarge;
|
|
2787
|
+
}
|
|
2788
|
+
});
|
|
2789
|
+
Object.defineProperty(exports, 'sizeMedium', {
|
|
2790
|
+
enumerable: true,
|
|
2791
|
+
get: function () {
|
|
2792
|
+
return layout.sizeMedium;
|
|
2793
|
+
}
|
|
2794
|
+
});
|
|
2795
|
+
Object.defineProperty(exports, 'sizeSmall', {
|
|
2796
|
+
enumerable: true,
|
|
2797
|
+
get: function () {
|
|
2798
|
+
return layout.sizeSmall;
|
|
2799
|
+
}
|
|
2800
|
+
});
|
|
2801
|
+
Object.defineProperty(exports, 'sizeXLarge', {
|
|
2802
|
+
enumerable: true,
|
|
2803
|
+
get: function () {
|
|
2804
|
+
return layout.sizeXLarge;
|
|
2805
|
+
}
|
|
2806
|
+
});
|
|
2807
|
+
Object.defineProperty(exports, 'sizeXSmall', {
|
|
2808
|
+
enumerable: true,
|
|
2809
|
+
get: function () {
|
|
2810
|
+
return layout.sizeXSmall;
|
|
2811
|
+
}
|
|
2812
|
+
});
|
|
2677
2813
|
Object.defineProperty(exports, 'spacing01', {
|
|
2678
2814
|
enumerable: true,
|
|
2679
2815
|
get: function () {
|
|
@@ -2847,6 +2983,8 @@ exports.inverseSupport03 = inverseSupport03$5;
|
|
|
2847
2983
|
exports.inverseSupport04 = inverseSupport04$5;
|
|
2848
2984
|
exports.layer = layer$5;
|
|
2849
2985
|
exports.layerAccent = layerAccent$5;
|
|
2986
|
+
exports.layerAccentActive = layerAccentActive$5;
|
|
2987
|
+
exports.layerAccentHover = layerAccentHover$5;
|
|
2850
2988
|
exports.layerActive = layerActive$5;
|
|
2851
2989
|
exports.layerDisabled = layerDisabled$5;
|
|
2852
2990
|
exports.layerHover = layerHover$5;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/themes",
|
|
3
3
|
"description": "Themes for applying color in the Carbon Design System",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.35.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"build": "yarn clean && carbon-cli bundle src/index.js --name CarbonThemes && node tasks/build.js && carbon-cli check \"scss/*.scss\""
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@carbon/colors": "^10.
|
|
33
|
-
"@carbon/layout": "^10.
|
|
34
|
-
"@carbon/type": "^10.
|
|
32
|
+
"@carbon/colors": "^10.26.0",
|
|
33
|
+
"@carbon/layout": "^10.25.0",
|
|
34
|
+
"@carbon/type": "^10.29.0",
|
|
35
35
|
"color": "^3.1.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@carbon/cli": "^10.
|
|
38
|
+
"@carbon/cli": "^10.24.0",
|
|
39
39
|
"@carbon/cli-reporter": "^10.4.0",
|
|
40
40
|
"@carbon/scss-generator": "^10.13.0",
|
|
41
|
-
"@carbon/test-utils": "^10.
|
|
41
|
+
"@carbon/test-utils": "^10.16.0",
|
|
42
42
|
"change-case": "^4.1.1",
|
|
43
43
|
"core-js": "^3.6.5",
|
|
44
44
|
"fs-extra": "^8.1.0",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"node-sass": "^4.13.1",
|
|
47
47
|
"rimraf": "^3.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d02eacdefc2c94da1b7619a20df441e264bf884c"
|
|
50
50
|
}
|