@carbon/elements 10.43.0 → 10.45.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 +10 -10
- package/scss/grid/modules/_css-grid.scss +2 -10
- package/scss/themes/compat/generated/_themes.scss +2 -2
- package/scss/themes/generated/_mixins.scss +9 -0
- package/scss/themes/generated/_themes.scss +16 -6
- package/scss/themes/generated/_tokens.scss +10 -0
- package/scss/themes/modules/generated/_themes.scss +6 -2
- package/scss/themes/modules/generated/_tokens.scss +3 -0
- package/scss/type/_inlined/_styles.scss +1 -1
- package/scss/type/_styles.scss +1 -1
- package/scss/type/modules/_styles.scss +1 -1
- package/src/__tests__/__snapshots__/PublicAPI-test.js.snap +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/elements",
|
|
3
3
|
"description": "A collection of design elements in code for the IBM Design Language",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.45.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"clean": "rimraf es lib umd && node tasks/clean.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@carbon/colors": "^10.
|
|
39
|
-
"@carbon/grid": "^10.
|
|
40
|
-
"@carbon/icons": "^10.
|
|
38
|
+
"@carbon/colors": "^10.33.0",
|
|
39
|
+
"@carbon/grid": "^10.38.0",
|
|
40
|
+
"@carbon/icons": "^10.41.0",
|
|
41
41
|
"@carbon/import-once": "^10.6.0",
|
|
42
|
-
"@carbon/layout": "^10.
|
|
43
|
-
"@carbon/motion": "^10.
|
|
44
|
-
"@carbon/themes": "^10.
|
|
45
|
-
"@carbon/type": "^10.
|
|
42
|
+
"@carbon/layout": "^10.33.0",
|
|
43
|
+
"@carbon/motion": "^10.25.0",
|
|
44
|
+
"@carbon/themes": "^10.45.0",
|
|
45
|
+
"@carbon/type": "^10.37.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@carbon/cli": "^10.
|
|
48
|
+
"@carbon/cli": "^10.30.0",
|
|
49
49
|
"fs-extra": "^8.1.0",
|
|
50
50
|
"klaw-sync": "^6.0.0",
|
|
51
51
|
"replace-in-file": "^3.4.2",
|
|
52
52
|
"rimraf": "^3.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "3c9fdbcc12116759c47605ad562aa4d3be78b9d5"
|
|
55
55
|
}
|
|
@@ -254,10 +254,6 @@
|
|
|
254
254
|
.#{$prefix}--col-start-#{$i} {
|
|
255
255
|
grid-column-start: $i;
|
|
256
256
|
}
|
|
257
|
-
|
|
258
|
-
.#{$prefix}--col-end-#{$i} {
|
|
259
|
-
grid-column-end: $i;
|
|
260
|
-
}
|
|
261
257
|
}
|
|
262
258
|
|
|
263
259
|
.#{$prefix}--col-start-auto {
|
|
@@ -272,17 +268,13 @@
|
|
|
272
268
|
$columns: map.get($value, columns);
|
|
273
269
|
|
|
274
270
|
@include breakpoint($name) {
|
|
275
|
-
// The `grid-column-
|
|
276
|
-
// It starts
|
|
271
|
+
// The `grid-column-start` property is *not* inclusive.
|
|
272
|
+
// It starts the column *at* the column, not *on* the column. We must
|
|
277
273
|
// ensure that there is one additional class available for each breakpoint.
|
|
278
274
|
@for $i from 1 through $columns + 1 {
|
|
279
275
|
.#{$prefix}--#{$name}\:col-start-#{$i} {
|
|
280
276
|
grid-column-start: $i;
|
|
281
277
|
}
|
|
282
|
-
|
|
283
|
-
.#{$prefix}--#{$name}\:col-end-#{$i} {
|
|
284
|
-
grid-column-end: $i;
|
|
285
|
-
}
|
|
286
278
|
}
|
|
287
279
|
|
|
288
280
|
.#{$prefix}--#{$name}\:col-start-auto {
|
|
@@ -171,7 +171,7 @@ $g90: (
|
|
|
171
171
|
inverse-support-02: #24a148,
|
|
172
172
|
inverse-support-03: #f1c21b,
|
|
173
173
|
inverse-support-04: #0f62fe,
|
|
174
|
-
overlay-01: rgba(
|
|
174
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
175
175
|
danger-01: #da1e28,
|
|
176
176
|
danger-02: #ff8389,
|
|
177
177
|
inverse-focus-ui: #0f62fe,
|
|
@@ -237,7 +237,7 @@ $g100: (
|
|
|
237
237
|
inverse-support-02: #24a148,
|
|
238
238
|
inverse-support-03: #f1c21b,
|
|
239
239
|
inverse-support-04: #0f62fe,
|
|
240
|
-
overlay-01: rgba(
|
|
240
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
241
241
|
danger-01: #da1e28,
|
|
242
242
|
danger-02: #fa4d56,
|
|
243
243
|
inverse-focus-ui: #0f62fe,
|
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
$support-info-inverse: map-get($theme, 'support-info-inverse') !global;
|
|
142
142
|
$overlay: map-get($theme, 'overlay') !global;
|
|
143
143
|
$toggle-off: map-get($theme, 'toggle-off') !global;
|
|
144
|
+
$shadow: map-get($theme, 'shadow') !global;
|
|
144
145
|
$button-primary: map-get($theme, 'button-primary') !global;
|
|
145
146
|
$button-secondary: map-get($theme, 'button-secondary') !global;
|
|
146
147
|
$button-tertiary: map-get($theme, 'button-tertiary') !global;
|
|
@@ -784,6 +785,10 @@
|
|
|
784
785
|
--#{$custom-property-prefix}-toggle-off,
|
|
785
786
|
map-get($theme, 'toggle-off')
|
|
786
787
|
) !global;
|
|
788
|
+
$shadow: var(
|
|
789
|
+
--#{$custom-property-prefix}-shadow,
|
|
790
|
+
map-get($theme, 'shadow')
|
|
791
|
+
) !global;
|
|
787
792
|
$button-primary: var(
|
|
788
793
|
--#{$custom-property-prefix}-button-primary,
|
|
789
794
|
map-get($theme, 'button-primary')
|
|
@@ -2128,6 +2133,10 @@
|
|
|
2128
2133
|
@include custom-property('toggle-off', map-get($theme, 'toggle-off'));
|
|
2129
2134
|
}
|
|
2130
2135
|
|
|
2136
|
+
@if should-emit($theme, $parent-carbon-theme, 'shadow', $emit-difference) {
|
|
2137
|
+
@include custom-property('shadow', map-get($theme, 'shadow'));
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2131
2140
|
@if should-emit(
|
|
2132
2141
|
$theme,
|
|
2133
2142
|
$parent-carbon-theme,
|
|
@@ -110,6 +110,7 @@ $carbon--theme--white: (
|
|
|
110
110
|
support-info-inverse: #4589ff,
|
|
111
111
|
overlay: rgba(22, 22, 22, 0.5),
|
|
112
112
|
toggle-off: #8d8d8d,
|
|
113
|
+
shadow: rgba(0, 0, 0, 0.3),
|
|
113
114
|
button-primary: #0f62fe,
|
|
114
115
|
button-secondary: #393939,
|
|
115
116
|
button-tertiary: #0f62fe,
|
|
@@ -1000,7 +1001,8 @@ $carbon--theme--g80: map-merge(
|
|
|
1000
1001
|
support-error-inverse: #da1e28,
|
|
1001
1002
|
support-success-inverse: #24a148,
|
|
1002
1003
|
support-info-inverse: #0f62fe,
|
|
1003
|
-
overlay: rgba(
|
|
1004
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
1005
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
1004
1006
|
button-secondary: #6f6f6f,
|
|
1005
1007
|
button-tertiary: #ffffff,
|
|
1006
1008
|
button-danger-secondary: #ff8389,
|
|
@@ -1066,7 +1068,7 @@ $carbon--theme--g80: map-merge(
|
|
|
1066
1068
|
inverse-support-01: #da1e28,
|
|
1067
1069
|
inverse-support-02: #24a148,
|
|
1068
1070
|
inverse-support-04: #0f62fe,
|
|
1069
|
-
overlay-01: rgba(
|
|
1071
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
1070
1072
|
danger-02: #ff8389,
|
|
1071
1073
|
inverse-focus-ui: #0f62fe,
|
|
1072
1074
|
hover-primary: #0151e4,
|
|
@@ -1133,7 +1135,7 @@ $carbon--theme--g90: map-merge(
|
|
|
1133
1135
|
inverse-support-01: #da1e28,
|
|
1134
1136
|
inverse-support-02: #24a148,
|
|
1135
1137
|
inverse-support-04: #0f62fe,
|
|
1136
|
-
overlay-01: rgba(
|
|
1138
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
1137
1139
|
danger-02: #ff8389,
|
|
1138
1140
|
focus: #ffffff,
|
|
1139
1141
|
inverse-focus-ui: #0f62fe,
|
|
@@ -1189,7 +1191,8 @@ $carbon--theme--g90: map-merge(
|
|
|
1189
1191
|
support-error-inverse: #da1e28,
|
|
1190
1192
|
support-success-inverse: #24a148,
|
|
1191
1193
|
support-info-inverse: #0f62fe,
|
|
1192
|
-
overlay: rgba(
|
|
1194
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
1195
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
1193
1196
|
button-secondary: #6f6f6f,
|
|
1194
1197
|
button-tertiary: #ffffff,
|
|
1195
1198
|
button-danger-secondary: #ff8389,
|
|
@@ -1266,7 +1269,7 @@ $carbon--theme--g100: map-merge(
|
|
|
1266
1269
|
inverse-support-01: #da1e28,
|
|
1267
1270
|
inverse-support-02: #24a148,
|
|
1268
1271
|
inverse-support-04: #0f62fe,
|
|
1269
|
-
overlay-01: rgba(
|
|
1272
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
1270
1273
|
danger-02: #fa4d56,
|
|
1271
1274
|
focus: #ffffff,
|
|
1272
1275
|
inverse-focus-ui: #0f62fe,
|
|
@@ -1322,8 +1325,9 @@ $carbon--theme--g100: map-merge(
|
|
|
1322
1325
|
support-error-inverse: #da1e28,
|
|
1323
1326
|
support-success-inverse: #24a148,
|
|
1324
1327
|
support-info-inverse: #0f62fe,
|
|
1325
|
-
overlay: rgba(
|
|
1328
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
1326
1329
|
toggle-off: #6f6f6f,
|
|
1330
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
1327
1331
|
button-secondary: #6f6f6f,
|
|
1328
1332
|
button-tertiary: #ffffff,
|
|
1329
1333
|
button-danger-secondary: #fa4d56,
|
|
@@ -2126,6 +2130,12 @@ $carbon--theme: (
|
|
|
2126
2130
|
$toggle-off,
|
|
2127
2131
|
map-get($carbon--theme--white, 'toggle-off')
|
|
2128
2132
|
),
|
|
2133
|
+
shadow:
|
|
2134
|
+
if(
|
|
2135
|
+
global-variable-exists('shadow'),
|
|
2136
|
+
$shadow,
|
|
2137
|
+
map-get($carbon--theme--white, 'shadow')
|
|
2138
|
+
),
|
|
2129
2139
|
button-primary:
|
|
2130
2140
|
if(
|
|
2131
2141
|
global-variable-exists('button-primary'),
|
|
@@ -1090,6 +1090,16 @@ $toggle-off: if(
|
|
|
1090
1090
|
#8d8d8d
|
|
1091
1091
|
) !default;
|
|
1092
1092
|
|
|
1093
|
+
/// @type {undefined}
|
|
1094
|
+
/// @access public
|
|
1095
|
+
/// @group @carbon/themes
|
|
1096
|
+
$shadow: if(
|
|
1097
|
+
global-variable-exists('carbon--theme') and
|
|
1098
|
+
map-has-key($carbon--theme, 'shadow'),
|
|
1099
|
+
map-get($carbon--theme, 'shadow'),
|
|
1100
|
+
rgba(0, 0, 0, 0.3)
|
|
1101
|
+
) !default;
|
|
1102
|
+
|
|
1093
1103
|
/// @type {undefined}
|
|
1094
1104
|
/// @access public
|
|
1095
1105
|
/// @group @carbon/themes
|
|
@@ -107,6 +107,7 @@ $white: (
|
|
|
107
107
|
highlight: #d0e2ff,
|
|
108
108
|
overlay: rgba(22, 22, 22, 0.5),
|
|
109
109
|
toggle-off: #8d8d8d,
|
|
110
|
+
shadow: rgba(0, 0, 0, 0.3),
|
|
110
111
|
) !default;
|
|
111
112
|
$white: utilities.merge(
|
|
112
113
|
$white,
|
|
@@ -211,6 +212,7 @@ $g10: (
|
|
|
211
212
|
highlight: #d0e2ff,
|
|
212
213
|
overlay: rgba(22, 22, 22, 0.5),
|
|
213
214
|
toggle-off: #8d8d8d,
|
|
215
|
+
shadow: rgba(0, 0, 0, 0.3),
|
|
214
216
|
) !default;
|
|
215
217
|
$g10: utilities.merge(
|
|
216
218
|
$g10,
|
|
@@ -313,8 +315,9 @@ $g90: (
|
|
|
313
315
|
skeleton-element: #525252,
|
|
314
316
|
interactive: #4589ff,
|
|
315
317
|
highlight: #0043ce,
|
|
316
|
-
overlay: rgba(
|
|
318
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
317
319
|
toggle-off: #8d8d8d,
|
|
320
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
318
321
|
) !default;
|
|
319
322
|
$g90: utilities.merge(
|
|
320
323
|
$g90,
|
|
@@ -417,8 +420,9 @@ $g100: (
|
|
|
417
420
|
skeleton-element: #393939,
|
|
418
421
|
interactive: #4589ff,
|
|
419
422
|
highlight: #d0e2ff,
|
|
420
|
-
overlay: rgba(
|
|
423
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
421
424
|
toggle-off: #8d8d8d,
|
|
425
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
422
426
|
) !default;
|
|
423
427
|
$g100: utilities.merge(
|
|
424
428
|
$g100,
|
|
@@ -289,6 +289,9 @@ $overlay: _get('overlay') !default;
|
|
|
289
289
|
/// The CSS Custom Property for the `toggle-off` token
|
|
290
290
|
$toggle-off: _get('toggle-off') !default;
|
|
291
291
|
|
|
292
|
+
/// The CSS Custom Property for the `shadow` token
|
|
293
|
+
$shadow: _get('shadow') !default;
|
|
294
|
+
|
|
292
295
|
/// The CSS Custom Property for the `focus` token
|
|
293
296
|
$focus: _get('focus') !default;
|
|
294
297
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// compatibility file to ensure we continue to support node-sass and dart-sass
|
|
20
20
|
// in v10.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
// stylelint-disable number-max-precision
|
|
23
23
|
|
|
24
24
|
@import '../vendor/@carbon/layout/breakpoint';
|
|
25
25
|
@import 'font-family';
|
package/scss/type/_styles.scss
CHANGED