@carbon/themes 10.49.0 → 10.50.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 +4 -28
- package/lib/index.js +3 -29
- package/package.json +2 -2
- package/scss/generated/_mixins.scss +0 -38
- package/scss/generated/_themes.scss +0 -24
- package/scss/generated/_tokens.scss +0 -20
- package/scss/modules/generated/_themes.scss +10 -18
- package/scss/modules/generated/_tokens.scss +0 -6
- package/src/g10.js +0 -2
- package/src/g100.js +0 -2
- package/src/g80.js +1 -3
- package/src/g90.js +0 -2
- package/src/next/g10.js +10 -13
- package/src/next/g100.js +15 -16
- package/src/next/g90.js +14 -15
- package/src/next/tokens/v11TokenGroup.js +0 -8
- package/src/next/white.js +15 -17
- package/src/tokens.js +0 -4
- package/src/v9.js +0 -2
- package/src/white.js +0 -2
- package/umd/index.js +3 -29
package/src/g10.js
CHANGED
|
@@ -219,8 +219,6 @@ export const layerSelectedHover = hoverSelectedUI;
|
|
|
219
219
|
export const layerSelectedInverse = ui05;
|
|
220
220
|
export const borderSubtleSelected = activeUI;
|
|
221
221
|
|
|
222
|
-
export const layerDisabled = disabled01;
|
|
223
|
-
export const fieldDisabled = disabled01;
|
|
224
222
|
export const borderDisabled = disabled01;
|
|
225
223
|
|
|
226
224
|
export const textDisabled = disabled02;
|
package/src/g100.js
CHANGED
|
@@ -218,8 +218,6 @@ export const layerSelectedHover = hoverSelectedUI;
|
|
|
218
218
|
export const layerSelectedInverse = ui05;
|
|
219
219
|
export const borderSubtleSelected = activeUI;
|
|
220
220
|
|
|
221
|
-
export const layerDisabled = disabled01;
|
|
222
|
-
export const fieldDisabled = disabled01;
|
|
223
221
|
export const borderDisabled = disabled01;
|
|
224
222
|
|
|
225
223
|
export const textDisabled = disabled02;
|
package/src/g80.js
CHANGED
|
@@ -130,8 +130,6 @@ export const layerSelectedHover = adjustLightness(layerSelected, -6);
|
|
|
130
130
|
export const layerSelectedInverse = gray10;
|
|
131
131
|
export const borderSubtleSelected = gray50;
|
|
132
132
|
|
|
133
|
-
export const layerDisabled = gray70;
|
|
134
|
-
export const fieldDisabled = gray70;
|
|
135
133
|
export const borderDisabled = gray70;
|
|
136
134
|
|
|
137
135
|
export const textDisabled = gray50;
|
|
@@ -228,7 +226,7 @@ export const hoverRow = layerHover;
|
|
|
228
226
|
|
|
229
227
|
export const visitedLink = linkVisited;
|
|
230
228
|
|
|
231
|
-
export const disabled01 =
|
|
229
|
+
export const disabled01 = gray70;
|
|
232
230
|
export const disabled02 = textDisabled;
|
|
233
231
|
export const disabled03 = textOnColorDisabled;
|
|
234
232
|
|
package/src/g90.js
CHANGED
|
@@ -220,8 +220,6 @@ export const layerSelectedHover = hoverSelectedUI;
|
|
|
220
220
|
export const layerSelectedInverse = ui05;
|
|
221
221
|
export const borderSubtleSelected = activeUI;
|
|
222
222
|
|
|
223
|
-
export const layerDisabled = disabled01;
|
|
224
|
-
export const fieldDisabled = disabled01;
|
|
225
223
|
export const borderDisabled = disabled01;
|
|
226
224
|
|
|
227
225
|
export const textDisabled = disabled02;
|
package/src/next/g10.js
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
gray60,
|
|
24
24
|
gray70,
|
|
25
25
|
gray80,
|
|
26
|
+
gray80Hover,
|
|
26
27
|
gray100,
|
|
27
28
|
|
|
28
29
|
// Support
|
|
@@ -39,17 +40,17 @@ import {
|
|
|
39
40
|
white,
|
|
40
41
|
whiteHover,
|
|
41
42
|
} from '@carbon/colors';
|
|
42
|
-
import {
|
|
43
|
+
import { adjustAlpha } from '../tools';
|
|
43
44
|
|
|
44
45
|
// Background
|
|
45
46
|
export const background = gray10;
|
|
46
47
|
export const backgroundInverse = gray80;
|
|
47
48
|
export const backgroundBrand = blue60;
|
|
48
49
|
export const backgroundActive = gray30;
|
|
49
|
-
export const backgroundHover =
|
|
50
|
-
export const backgroundInverseHover =
|
|
50
|
+
export const backgroundHover = gray10Hover;
|
|
51
|
+
export const backgroundInverseHover = gray80Hover;
|
|
51
52
|
export const backgroundSelected = gray20;
|
|
52
|
-
export const backgroundSelectedHover =
|
|
53
|
+
export const backgroundSelectedHover = gray20Hover;
|
|
53
54
|
|
|
54
55
|
// Layer
|
|
55
56
|
// layer-01
|
|
@@ -74,24 +75,23 @@ export const layerSelected03 = gray20;
|
|
|
74
75
|
export const layerSelectedHover03 = gray20Hover;
|
|
75
76
|
|
|
76
77
|
// layer
|
|
77
|
-
export const layerDisabled = white;
|
|
78
78
|
export const layerSelectedInverse = gray100;
|
|
79
79
|
export const layerSelectedDisabled = gray50;
|
|
80
80
|
|
|
81
81
|
// layer-accent-01
|
|
82
82
|
export const layerAccent01 = gray20;
|
|
83
83
|
export const layerAccentActive01 = gray40;
|
|
84
|
-
export const layerAccentHover01 =
|
|
84
|
+
export const layerAccentHover01 = gray20Hover;
|
|
85
85
|
|
|
86
86
|
// layer-accent-02
|
|
87
87
|
export const layerAccent02 = gray20;
|
|
88
88
|
export const layerAccentActive02 = gray40;
|
|
89
|
-
export const layerAccentHover02 =
|
|
89
|
+
export const layerAccentHover02 = gray20Hover;
|
|
90
90
|
|
|
91
91
|
// layer-accent-03
|
|
92
92
|
export const layerAccent03 = gray20;
|
|
93
93
|
export const layerAccentActive03 = gray40;
|
|
94
|
-
export const layerAccentHover03 =
|
|
94
|
+
export const layerAccentHover03 = gray20Hover;
|
|
95
95
|
|
|
96
96
|
// Field
|
|
97
97
|
// field-01
|
|
@@ -106,9 +106,6 @@ export const fieldHover02 = gray10Hover;
|
|
|
106
106
|
export const field03 = white;
|
|
107
107
|
export const fieldHover03 = whiteHover;
|
|
108
108
|
|
|
109
|
-
// field
|
|
110
|
-
export const fieldDisabled = white;
|
|
111
|
-
|
|
112
109
|
// Border
|
|
113
110
|
// border-subtle-00
|
|
114
111
|
export const borderSubtle00 = gray20;
|
|
@@ -163,7 +160,7 @@ export const iconSecondary = gray70;
|
|
|
163
160
|
export const iconInverse = white;
|
|
164
161
|
export const iconOnColor = white;
|
|
165
162
|
export const iconOnColorDisabled = gray50;
|
|
166
|
-
export const iconDisabled =
|
|
163
|
+
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
|
|
167
164
|
|
|
168
165
|
// Support
|
|
169
166
|
export const supportError = red60;
|
|
@@ -184,7 +181,7 @@ export const focusInset = white;
|
|
|
184
181
|
export const focusInverse = white;
|
|
185
182
|
|
|
186
183
|
// Skeleton
|
|
187
|
-
export const skeletonBackground =
|
|
184
|
+
export const skeletonBackground = gray10Hover;
|
|
188
185
|
export const skeletonElement = gray30;
|
|
189
186
|
|
|
190
187
|
// Misc
|
package/src/next/g100.js
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
// Blue
|
|
10
|
-
blue20,
|
|
11
10
|
blue40,
|
|
12
11
|
blue60,
|
|
12
|
+
blue70,
|
|
13
|
+
blue80,
|
|
13
14
|
|
|
14
15
|
// Gray
|
|
15
16
|
gray10,
|
|
@@ -33,7 +34,7 @@ import {
|
|
|
33
34
|
green50,
|
|
34
35
|
yellow30,
|
|
35
36
|
orange40,
|
|
36
|
-
|
|
37
|
+
red40,
|
|
37
38
|
red50,
|
|
38
39
|
red60,
|
|
39
40
|
purple40,
|
|
@@ -45,6 +46,8 @@ import {
|
|
|
45
46
|
|
|
46
47
|
// Tools
|
|
47
48
|
rgba,
|
|
49
|
+
gray100Hover,
|
|
50
|
+
gray10Hover,
|
|
48
51
|
} from '@carbon/colors';
|
|
49
52
|
import { adjustLightness, adjustAlpha } from '../tools';
|
|
50
53
|
|
|
@@ -53,16 +56,16 @@ export const background = gray100;
|
|
|
53
56
|
export const backgroundInverse = gray10;
|
|
54
57
|
export const backgroundBrand = blue60;
|
|
55
58
|
export const backgroundActive = gray80;
|
|
56
|
-
export const backgroundHover =
|
|
57
|
-
export const backgroundInverseHover =
|
|
59
|
+
export const backgroundHover = gray100Hover;
|
|
60
|
+
export const backgroundInverseHover = gray10Hover;
|
|
58
61
|
export const backgroundSelected = gray90;
|
|
59
|
-
export const backgroundSelectedHover =
|
|
62
|
+
export const backgroundSelectedHover = gray90Hover;
|
|
60
63
|
|
|
61
64
|
// Layer
|
|
62
65
|
// layer-01
|
|
63
66
|
export const layer01 = gray90;
|
|
64
67
|
export const layerActive01 = gray70;
|
|
65
|
-
export const layerHover01 =
|
|
68
|
+
export const layerHover01 = gray90Hover;
|
|
66
69
|
export const layerSelected01 = gray80;
|
|
67
70
|
export const layerSelectedHover01 = gray80Hover;
|
|
68
71
|
|
|
@@ -81,14 +84,13 @@ export const layerSelected03 = gray60;
|
|
|
81
84
|
export const layerSelectedHover03 = gray60Hover;
|
|
82
85
|
|
|
83
86
|
// layer
|
|
84
|
-
export const layerDisabled = gray90;
|
|
85
87
|
export const layerSelectedInverse = gray10;
|
|
86
88
|
export const layerSelectedDisabled = gray40;
|
|
87
89
|
|
|
88
90
|
// layer-accent-01
|
|
89
91
|
export const layerAccent01 = gray80;
|
|
90
92
|
export const layerAccentActive01 = gray60;
|
|
91
|
-
export const layerAccentHover01 =
|
|
93
|
+
export const layerAccentHover01 = gray80Hover;
|
|
92
94
|
|
|
93
95
|
// layer-accent-02
|
|
94
96
|
export const layerAccent02 = gray70;
|
|
@@ -113,9 +115,6 @@ export const fieldHover02 = gray80Hover;
|
|
|
113
115
|
export const field03 = gray70;
|
|
114
116
|
export const fieldHover03 = gray70Hover;
|
|
115
117
|
|
|
116
|
-
// field
|
|
117
|
-
export const fieldDisabled = gray80;
|
|
118
|
-
|
|
119
118
|
// Border
|
|
120
119
|
// border-subtle-00
|
|
121
120
|
export const borderSubtle00 = gray80;
|
|
@@ -151,7 +150,7 @@ export const textPrimary = gray10;
|
|
|
151
150
|
export const textSecondary = gray30;
|
|
152
151
|
export const textPlaceholder = adjustAlpha(textPrimary, 0.4);
|
|
153
152
|
export const textHelper = gray40;
|
|
154
|
-
export const textError =
|
|
153
|
+
export const textError = red40;
|
|
155
154
|
export const textInverse = gray100;
|
|
156
155
|
export const textOnColor = white;
|
|
157
156
|
export const textOnColorDisabled = adjustAlpha(textOnColor, 0.25);
|
|
@@ -170,7 +169,7 @@ export const iconSecondary = gray30;
|
|
|
170
169
|
export const iconInverse = gray100;
|
|
171
170
|
export const iconOnColor = white;
|
|
172
171
|
export const iconOnColorDisabled = adjustAlpha(iconOnColor, 0.25);
|
|
173
|
-
export const iconDisabled =
|
|
172
|
+
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
|
|
174
173
|
|
|
175
174
|
// Support
|
|
176
175
|
export const supportError = red50;
|
|
@@ -180,7 +179,7 @@ export const supportInfo = blue50;
|
|
|
180
179
|
export const supportErrorInverse = red60;
|
|
181
180
|
export const supportSuccessInverse = green50;
|
|
182
181
|
export const supportWarningInverse = yellow30;
|
|
183
|
-
export const supportInfoInverse =
|
|
182
|
+
export const supportInfoInverse = blue70;
|
|
184
183
|
export const supportCautionMinor = yellow30;
|
|
185
184
|
export const supportCautionMajor = orange40;
|
|
186
185
|
export const supportCautionUndefined = purple50;
|
|
@@ -196,9 +195,9 @@ export const skeletonElement = gray80;
|
|
|
196
195
|
|
|
197
196
|
// Misc
|
|
198
197
|
export const interactive = blue50;
|
|
199
|
-
export const highlight =
|
|
198
|
+
export const highlight = blue80;
|
|
200
199
|
export const overlay = rgba(black, 0.65);
|
|
201
|
-
export const toggleOff =
|
|
200
|
+
export const toggleOff = gray60;
|
|
202
201
|
export const shadow = rgba(black, 0.8);
|
|
203
202
|
|
|
204
203
|
export {
|
package/src/next/g90.js
CHANGED
|
@@ -44,24 +44,27 @@ import {
|
|
|
44
44
|
|
|
45
45
|
// Tools
|
|
46
46
|
rgba,
|
|
47
|
+
gray90Hover,
|
|
48
|
+
gray10Hover,
|
|
49
|
+
gray80Hover,
|
|
47
50
|
} from '@carbon/colors';
|
|
48
|
-
import {
|
|
51
|
+
import { adjustAlpha } from '../tools';
|
|
49
52
|
|
|
50
53
|
// Background
|
|
51
54
|
export const background = gray90;
|
|
52
55
|
export const backgroundInverse = gray10;
|
|
53
56
|
export const backgroundBrand = blue60;
|
|
54
57
|
export const backgroundActive = gray80;
|
|
55
|
-
export const backgroundHover =
|
|
56
|
-
export const backgroundInverseHover =
|
|
58
|
+
export const backgroundHover = gray90Hover;
|
|
59
|
+
export const backgroundInverseHover = gray10Hover;
|
|
57
60
|
export const backgroundSelected = gray80;
|
|
58
|
-
export const backgroundSelectedHover =
|
|
61
|
+
export const backgroundSelectedHover = gray80Hover;
|
|
59
62
|
|
|
60
63
|
// Layer
|
|
61
64
|
// layer-01
|
|
62
65
|
export const layer01 = gray80;
|
|
63
66
|
export const layerActive01 = gray60;
|
|
64
|
-
export const layerHover01 =
|
|
67
|
+
export const layerHover01 = gray80Hover;
|
|
65
68
|
export const layerSelected01 = gray70;
|
|
66
69
|
export const layerSelectedHover01 = gray70Hover;
|
|
67
70
|
|
|
@@ -80,19 +83,18 @@ export const layerSelected03 = gray50;
|
|
|
80
83
|
export const layerSelectedHover03 = gray50Hover;
|
|
81
84
|
|
|
82
85
|
// layer
|
|
83
|
-
export const layerDisabled = gray80;
|
|
84
86
|
export const layerSelectedInverse = gray10;
|
|
85
87
|
export const layerSelectedDisabled = gray40;
|
|
86
88
|
|
|
87
89
|
// layer-accent-01
|
|
88
90
|
export const layerAccent01 = gray70;
|
|
89
91
|
export const layerAccentActive01 = gray50;
|
|
90
|
-
export const layerAccentHover01 =
|
|
92
|
+
export const layerAccentHover01 = gray70Hover;
|
|
91
93
|
|
|
92
94
|
// layer-accent-02
|
|
93
95
|
export const layerAccent02 = gray60;
|
|
94
96
|
export const layerAccentActive02 = gray80;
|
|
95
|
-
export const layerAccentHover02 =
|
|
97
|
+
export const layerAccentHover02 = gray60Hover;
|
|
96
98
|
|
|
97
99
|
// layer-accent-03
|
|
98
100
|
export const layerAccent03 = gray50;
|
|
@@ -102,7 +104,7 @@ export const layerAccentHover03 = gray50Hover;
|
|
|
102
104
|
// Field
|
|
103
105
|
// field-01
|
|
104
106
|
export const field01 = gray80;
|
|
105
|
-
export const fieldHover01 =
|
|
107
|
+
export const fieldHover01 = gray80Hover;
|
|
106
108
|
|
|
107
109
|
// field-02
|
|
108
110
|
export const field02 = gray70;
|
|
@@ -112,9 +114,6 @@ export const fieldHover02 = gray70Hover;
|
|
|
112
114
|
export const field03 = gray60;
|
|
113
115
|
export const fieldHover03 = gray60Hover;
|
|
114
116
|
|
|
115
|
-
// field
|
|
116
|
-
export const fieldDisabled = gray80;
|
|
117
|
-
|
|
118
117
|
// Border
|
|
119
118
|
// border-subtle-00
|
|
120
119
|
export const borderSubtle00 = gray70;
|
|
@@ -169,7 +168,7 @@ export const iconSecondary = gray30;
|
|
|
169
168
|
export const iconInverse = gray100;
|
|
170
169
|
export const iconOnColor = white;
|
|
171
170
|
export const iconOnColorDisabled = adjustAlpha(iconOnColor, 0.25);
|
|
172
|
-
export const iconDisabled =
|
|
171
|
+
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
|
|
173
172
|
|
|
174
173
|
// Support
|
|
175
174
|
export const supportError = red40;
|
|
@@ -179,7 +178,7 @@ export const supportInfo = blue50;
|
|
|
179
178
|
export const supportErrorInverse = red60;
|
|
180
179
|
export const supportSuccessInverse = green50;
|
|
181
180
|
export const supportWarningInverse = yellow30;
|
|
182
|
-
export const supportInfoInverse =
|
|
181
|
+
export const supportInfoInverse = blue70;
|
|
183
182
|
export const supportCautionMinor = yellow30;
|
|
184
183
|
export const supportCautionMajor = orange40;
|
|
185
184
|
export const supportCautionUndefined = purple50;
|
|
@@ -190,7 +189,7 @@ export const focusInset = gray100;
|
|
|
190
189
|
export const focusInverse = blue60;
|
|
191
190
|
|
|
192
191
|
// Skeleton
|
|
193
|
-
export const skeletonBackground =
|
|
192
|
+
export const skeletonBackground = gray90Hover;
|
|
194
193
|
export const skeletonElement = gray70;
|
|
195
194
|
|
|
196
195
|
// Misc
|
|
@@ -98,10 +98,6 @@ export const layer = TokenGroup.create({
|
|
|
98
98
|
state: 'hover',
|
|
99
99
|
name: 'layer-selected-hover-03',
|
|
100
100
|
},
|
|
101
|
-
{
|
|
102
|
-
state: 'disabled',
|
|
103
|
-
name: 'layer-disabled',
|
|
104
|
-
},
|
|
105
101
|
{
|
|
106
102
|
name: 'layer-selected-inverse',
|
|
107
103
|
},
|
|
@@ -170,10 +166,6 @@ export const field = TokenGroup.create({
|
|
|
170
166
|
state: 'hover',
|
|
171
167
|
name: 'field-hover-03',
|
|
172
168
|
},
|
|
173
|
-
{
|
|
174
|
-
state: 'disabled',
|
|
175
|
-
name: 'field-disabled',
|
|
176
|
-
},
|
|
177
169
|
],
|
|
178
170
|
});
|
|
179
171
|
|
package/src/next/white.js
CHANGED
|
@@ -37,8 +37,10 @@ import {
|
|
|
37
37
|
// Constants
|
|
38
38
|
white,
|
|
39
39
|
whiteHover,
|
|
40
|
+
gray80Hover,
|
|
41
|
+
gray10Hover,
|
|
40
42
|
} from '@carbon/colors';
|
|
41
|
-
import {
|
|
43
|
+
import { adjustAlpha } from '../tools';
|
|
42
44
|
|
|
43
45
|
// Background
|
|
44
46
|
export const background = white;
|
|
@@ -46,67 +48,63 @@ export const backgroundInverse = gray80;
|
|
|
46
48
|
export const backgroundBrand = blue60;
|
|
47
49
|
export const backgroundActive = gray30;
|
|
48
50
|
export const backgroundHover = whiteHover;
|
|
49
|
-
export const backgroundInverseHover =
|
|
51
|
+
export const backgroundInverseHover = gray80Hover;
|
|
50
52
|
export const backgroundSelected = gray20;
|
|
51
|
-
export const backgroundSelectedHover =
|
|
53
|
+
export const backgroundSelectedHover = gray20Hover;
|
|
52
54
|
|
|
53
55
|
// Layer
|
|
54
56
|
// layer-01
|
|
55
57
|
export const layer01 = gray10;
|
|
56
58
|
export const layerActive01 = gray30;
|
|
57
|
-
export const layerHover01 =
|
|
59
|
+
export const layerHover01 = gray10Hover;
|
|
58
60
|
export const layerSelected01 = gray20;
|
|
59
61
|
export const layerSelectedHover01 = gray20Hover;
|
|
60
62
|
|
|
61
63
|
// layer-02
|
|
62
64
|
export const layer02 = white;
|
|
63
65
|
export const layerActive02 = gray30;
|
|
64
|
-
export const layerHover02 =
|
|
66
|
+
export const layerHover02 = whiteHover;
|
|
65
67
|
export const layerSelected02 = gray20;
|
|
66
68
|
export const layerSelectedHover02 = gray20Hover;
|
|
67
69
|
|
|
68
70
|
// layer-03
|
|
69
71
|
export const layer03 = gray10;
|
|
70
72
|
export const layerActive03 = gray30;
|
|
71
|
-
export const layerHover03 =
|
|
73
|
+
export const layerHover03 = gray10Hover;
|
|
72
74
|
export const layerSelected03 = gray20;
|
|
73
75
|
export const layerSelectedHover03 = gray20Hover;
|
|
74
76
|
|
|
75
77
|
// layer
|
|
76
|
-
export const layerDisabled = gray10;
|
|
77
78
|
export const layerSelectedInverse = gray100;
|
|
78
79
|
export const layerSelectedDisabled = gray50;
|
|
79
80
|
|
|
80
81
|
// layer-accent-01
|
|
81
82
|
export const layerAccent01 = gray20;
|
|
82
83
|
export const layerAccentActive01 = gray40;
|
|
83
|
-
export const layerAccentHover01 =
|
|
84
|
+
export const layerAccentHover01 = gray20Hover;
|
|
84
85
|
|
|
85
86
|
// layer-accent-02
|
|
86
87
|
export const layerAccent02 = gray20;
|
|
87
88
|
export const layerAccentActive02 = gray40;
|
|
88
|
-
export const layerAccentHover02 =
|
|
89
|
+
export const layerAccentHover02 = gray20Hover;
|
|
89
90
|
|
|
90
91
|
// layer-accent-03
|
|
91
92
|
export const layerAccent03 = gray20;
|
|
92
93
|
export const layerAccentActive03 = gray40;
|
|
93
|
-
export const layerAccentHover03 =
|
|
94
|
+
export const layerAccentHover03 = gray20Hover;
|
|
94
95
|
|
|
95
96
|
// Field
|
|
96
97
|
// field-01
|
|
97
98
|
export const field01 = gray10;
|
|
98
|
-
export const fieldHover01 =
|
|
99
|
+
export const fieldHover01 = gray10Hover;
|
|
99
100
|
|
|
100
101
|
// field-02
|
|
101
102
|
export const field02 = white;
|
|
102
|
-
export const fieldHover02 =
|
|
103
|
+
export const fieldHover02 = whiteHover;
|
|
103
104
|
|
|
104
105
|
// field-03
|
|
105
106
|
export const field03 = gray10;
|
|
106
|
-
export const fieldHover03 =
|
|
107
|
-
|
|
108
|
-
// field
|
|
109
|
-
export const fieldDisabled = gray10;
|
|
107
|
+
export const fieldHover03 = gray10Hover;
|
|
110
108
|
|
|
111
109
|
// Border
|
|
112
110
|
// border-subtle-00
|
|
@@ -162,7 +160,7 @@ export const iconSecondary = gray70;
|
|
|
162
160
|
export const iconInverse = white;
|
|
163
161
|
export const iconOnColor = white;
|
|
164
162
|
export const iconOnColorDisabled = gray50;
|
|
165
|
-
export const iconDisabled =
|
|
163
|
+
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
|
|
166
164
|
|
|
167
165
|
// Support
|
|
168
166
|
export const supportError = red60;
|
package/src/tokens.js
CHANGED
|
@@ -186,8 +186,6 @@ const colors = [
|
|
|
186
186
|
'layerSelectedInverse',
|
|
187
187
|
'borderSubtleSelected',
|
|
188
188
|
|
|
189
|
-
'layerDisabled',
|
|
190
|
-
'fieldDisabled',
|
|
191
189
|
'borderDisabled',
|
|
192
190
|
|
|
193
191
|
'textDisabled',
|
|
@@ -420,8 +418,6 @@ export const unstable__meta = {
|
|
|
420
418
|
'layerSelectedInverse',
|
|
421
419
|
'borderSubtleSelected',
|
|
422
420
|
|
|
423
|
-
'layerDisabled',
|
|
424
|
-
'fieldDisabled',
|
|
425
421
|
'borderDisabled',
|
|
426
422
|
|
|
427
423
|
'textDisabled',
|
package/src/v9.js
CHANGED
|
@@ -183,8 +183,6 @@ export const layerSelectedHover = hoverSelectedUI;
|
|
|
183
183
|
export const layerSelectedInverse = ui05;
|
|
184
184
|
export const borderSubtleSelected = activeUI;
|
|
185
185
|
|
|
186
|
-
export const layerDisabled = disabled01;
|
|
187
|
-
export const fieldDisabled = disabled01;
|
|
188
186
|
export const borderDisabled = disabled01;
|
|
189
187
|
|
|
190
188
|
export const textDisabled = disabled02;
|
package/src/white.js
CHANGED
|
@@ -219,8 +219,6 @@ export const layerSelectedHover = hoverSelectedUI;
|
|
|
219
219
|
export const layerSelectedInverse = ui05;
|
|
220
220
|
export const borderSubtleSelected = activeUI;
|
|
221
221
|
|
|
222
|
-
export const layerDisabled = disabled01;
|
|
223
|
-
export const fieldDisabled = disabled01;
|
|
224
222
|
export const borderDisabled = disabled01;
|
|
225
223
|
|
|
226
224
|
export const textDisabled = disabled02;
|
package/umd/index.js
CHANGED
|
@@ -207,8 +207,6 @@
|
|
|
207
207
|
var layerSelectedHover$5 = hoverSelectedUI$5;
|
|
208
208
|
var layerSelectedInverse$5 = ui05$5;
|
|
209
209
|
var borderSubtleSelected$5 = activeUI$5;
|
|
210
|
-
var layerDisabled$5 = disabled01$5;
|
|
211
|
-
var fieldDisabled$5 = disabled01$5;
|
|
212
210
|
var borderDisabled$5 = disabled01$5;
|
|
213
211
|
var textDisabled$5 = disabled02$5;
|
|
214
212
|
var buttonDisabled$5 = disabled02$5;
|
|
@@ -360,8 +358,6 @@
|
|
|
360
358
|
layerSelectedHover: layerSelectedHover$5,
|
|
361
359
|
layerSelectedInverse: layerSelectedInverse$5,
|
|
362
360
|
borderSubtleSelected: borderSubtleSelected$5,
|
|
363
|
-
layerDisabled: layerDisabled$5,
|
|
364
|
-
fieldDisabled: fieldDisabled$5,
|
|
365
361
|
borderDisabled: borderDisabled$5,
|
|
366
362
|
textDisabled: textDisabled$5,
|
|
367
363
|
buttonDisabled: buttonDisabled$5,
|
|
@@ -615,8 +611,6 @@
|
|
|
615
611
|
var layerSelectedHover$4 = hoverSelectedUI$4;
|
|
616
612
|
var layerSelectedInverse$4 = ui05$4;
|
|
617
613
|
var borderSubtleSelected$4 = activeUI$4;
|
|
618
|
-
var layerDisabled$4 = disabled01$4;
|
|
619
|
-
var fieldDisabled$4 = disabled01$4;
|
|
620
614
|
var borderDisabled$4 = disabled01$4;
|
|
621
615
|
var textDisabled$4 = disabled02$4;
|
|
622
616
|
var buttonDisabled$4 = disabled02$4;
|
|
@@ -768,8 +762,6 @@
|
|
|
768
762
|
layerSelectedHover: layerSelectedHover$4,
|
|
769
763
|
layerSelectedInverse: layerSelectedInverse$4,
|
|
770
764
|
borderSubtleSelected: borderSubtleSelected$4,
|
|
771
|
-
layerDisabled: layerDisabled$4,
|
|
772
|
-
fieldDisabled: fieldDisabled$4,
|
|
773
765
|
borderDisabled: borderDisabled$4,
|
|
774
766
|
textDisabled: textDisabled$4,
|
|
775
767
|
buttonDisabled: buttonDisabled$4,
|
|
@@ -1023,8 +1015,6 @@
|
|
|
1023
1015
|
var layerSelectedHover$3 = hoverSelectedUI$3;
|
|
1024
1016
|
var layerSelectedInverse$3 = ui05$3;
|
|
1025
1017
|
var borderSubtleSelected$3 = activeUI$3;
|
|
1026
|
-
var layerDisabled$3 = disabled01$3;
|
|
1027
|
-
var fieldDisabled$3 = disabled01$3;
|
|
1028
1018
|
var borderDisabled$3 = disabled01$3;
|
|
1029
1019
|
var textDisabled$3 = disabled02$3;
|
|
1030
1020
|
var buttonDisabled$3 = disabled02$3;
|
|
@@ -1176,8 +1166,6 @@
|
|
|
1176
1166
|
layerSelectedHover: layerSelectedHover$3,
|
|
1177
1167
|
layerSelectedInverse: layerSelectedInverse$3,
|
|
1178
1168
|
borderSubtleSelected: borderSubtleSelected$3,
|
|
1179
|
-
layerDisabled: layerDisabled$3,
|
|
1180
|
-
fieldDisabled: fieldDisabled$3,
|
|
1181
1169
|
borderDisabled: borderDisabled$3,
|
|
1182
1170
|
textDisabled: textDisabled$3,
|
|
1183
1171
|
buttonDisabled: buttonDisabled$3,
|
|
@@ -1368,8 +1356,6 @@
|
|
|
1368
1356
|
var layerSelectedHover$2 = adjustLightness(layerSelected$2, -6);
|
|
1369
1357
|
var layerSelectedInverse$2 = colors$1.gray10;
|
|
1370
1358
|
var borderSubtleSelected$2 = colors$1.gray50;
|
|
1371
|
-
var layerDisabled$2 = colors$1.gray70;
|
|
1372
|
-
var fieldDisabled$2 = colors$1.gray70;
|
|
1373
1359
|
var borderDisabled$2 = colors$1.gray70;
|
|
1374
1360
|
var textDisabled$2 = colors$1.gray50;
|
|
1375
1361
|
var buttonDisabled$2 = colors$1.gray50;
|
|
@@ -1439,7 +1425,7 @@
|
|
|
1439
1425
|
var activeDanger$2 = buttonDangerActive$2;
|
|
1440
1426
|
var hoverRow$2 = layerHover$2;
|
|
1441
1427
|
var visitedLink$2 = linkVisited$2;
|
|
1442
|
-
var disabled01$2 =
|
|
1428
|
+
var disabled01$2 = colors$1.gray70;
|
|
1443
1429
|
var disabled02$2 = textDisabled$2;
|
|
1444
1430
|
var disabled03$2 = textOnColorDisabled$2;
|
|
1445
1431
|
var decorative01$2 = colors$1.gray60;
|
|
@@ -1525,8 +1511,6 @@
|
|
|
1525
1511
|
layerSelectedHover: layerSelectedHover$2,
|
|
1526
1512
|
layerSelectedInverse: layerSelectedInverse$2,
|
|
1527
1513
|
borderSubtleSelected: borderSubtleSelected$2,
|
|
1528
|
-
layerDisabled: layerDisabled$2,
|
|
1529
|
-
fieldDisabled: fieldDisabled$2,
|
|
1530
1514
|
borderDisabled: borderDisabled$2,
|
|
1531
1515
|
textDisabled: textDisabled$2,
|
|
1532
1516
|
buttonDisabled: buttonDisabled$2,
|
|
@@ -1842,8 +1826,6 @@
|
|
|
1842
1826
|
var layerSelectedHover$1 = hoverSelectedUI$1;
|
|
1843
1827
|
var layerSelectedInverse$1 = ui05$1;
|
|
1844
1828
|
var borderSubtleSelected$1 = activeUI$1;
|
|
1845
|
-
var layerDisabled$1 = disabled01$1;
|
|
1846
|
-
var fieldDisabled$1 = disabled01$1;
|
|
1847
1829
|
var borderDisabled$1 = disabled01$1;
|
|
1848
1830
|
var textDisabled$1 = disabled02$1;
|
|
1849
1831
|
var buttonDisabled$1 = disabled02$1;
|
|
@@ -1995,8 +1977,6 @@
|
|
|
1995
1977
|
layerSelectedHover: layerSelectedHover$1,
|
|
1996
1978
|
layerSelectedInverse: layerSelectedInverse$1,
|
|
1997
1979
|
borderSubtleSelected: borderSubtleSelected$1,
|
|
1998
|
-
layerDisabled: layerDisabled$1,
|
|
1999
|
-
fieldDisabled: fieldDisabled$1,
|
|
2000
1980
|
borderDisabled: borderDisabled$1,
|
|
2001
1981
|
textDisabled: textDisabled$1,
|
|
2002
1982
|
buttonDisabled: buttonDisabled$1,
|
|
@@ -2250,8 +2230,6 @@
|
|
|
2250
2230
|
var layerSelectedHover = hoverSelectedUI;
|
|
2251
2231
|
var layerSelectedInverse = ui05;
|
|
2252
2232
|
var borderSubtleSelected = activeUI;
|
|
2253
|
-
var layerDisabled = disabled01;
|
|
2254
|
-
var fieldDisabled = disabled01;
|
|
2255
2233
|
var borderDisabled = disabled01;
|
|
2256
2234
|
var textDisabled = disabled02;
|
|
2257
2235
|
var buttonDisabled = disabled02;
|
|
@@ -2403,8 +2381,6 @@
|
|
|
2403
2381
|
layerSelectedHover: layerSelectedHover,
|
|
2404
2382
|
layerSelectedInverse: layerSelectedInverse,
|
|
2405
2383
|
borderSubtleSelected: borderSubtleSelected,
|
|
2406
|
-
layerDisabled: layerDisabled,
|
|
2407
|
-
fieldDisabled: fieldDisabled,
|
|
2408
2384
|
borderDisabled: borderDisabled,
|
|
2409
2385
|
textDisabled: textDisabled,
|
|
2410
2386
|
buttonDisabled: buttonDisabled,
|
|
@@ -2529,7 +2505,7 @@
|
|
|
2529
2505
|
'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
|
|
2530
2506
|
'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
|
|
2531
2507
|
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2532
|
-
'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', 'shadow', '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', '
|
|
2508
|
+
'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', 'shadow', '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', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2533
2509
|
'brand01', 'brand02', 'brand03', 'active01', 'hoverField', 'danger'];
|
|
2534
2510
|
var numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
2535
2511
|
/**
|
|
@@ -2583,7 +2559,7 @@
|
|
|
2583
2559
|
}, {
|
|
2584
2560
|
type: 'interactive',
|
|
2585
2561
|
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
|
|
2586
|
-
'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', '
|
|
2562
|
+
'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement']
|
|
2587
2563
|
}],
|
|
2588
2564
|
deprecated: ['brand01', 'brand02', 'brand03', 'active01', 'danger']
|
|
2589
2565
|
};
|
|
@@ -3032,7 +3008,6 @@
|
|
|
3032
3008
|
exports.field = field$5;
|
|
3033
3009
|
exports.field01 = field01$5;
|
|
3034
3010
|
exports.field02 = field02$5;
|
|
3035
|
-
exports.fieldDisabled = fieldDisabled$5;
|
|
3036
3011
|
exports.fieldHover = fieldHover$5;
|
|
3037
3012
|
exports.focus = focus$5;
|
|
3038
3013
|
exports.focusInset = focusInset$5;
|
|
@@ -3081,7 +3056,6 @@
|
|
|
3081
3056
|
exports.layerAccentActive = layerAccentActive$5;
|
|
3082
3057
|
exports.layerAccentHover = layerAccentHover$5;
|
|
3083
3058
|
exports.layerActive = layerActive$5;
|
|
3084
|
-
exports.layerDisabled = layerDisabled$5;
|
|
3085
3059
|
exports.layerHover = layerHover$5;
|
|
3086
3060
|
exports.layerSelected = layerSelected$5;
|
|
3087
3061
|
exports.layerSelectedDisabled = layerSelectedDisabled$5;
|