@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.
- package/lib/index.js +8 -8
- package/package.json +10 -10
- package/scss/grid/_inlined/_mixins.scss +2 -0
- package/scss/grid/_mixins.scss +2 -0
- package/scss/grid/modules/_css-grid.scss +1 -1
- package/scss/grid/vendor/@carbon/layout/_breakpoint.scss +10 -2
- package/scss/grid/vendor/@carbon/layout/generated/_spacing.scss +13 -1
- package/scss/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +6 -0
- package/scss/layout/_breakpoint.scss +10 -2
- package/scss/layout/generated/_spacing.scss +13 -1
- package/scss/layout/modules/generated/_spacing.scss +6 -0
- package/scss/themes/generated/_mixins.scss +1421 -146
- package/scss/themes/generated/_themes.scss +718 -1
- package/scss/themes/generated/_tokens.scss +750 -0
- package/scss/themes/modules/generated/_themes.scss +201 -1
- package/scss/type/vendor/@carbon/layout/_breakpoint.scss +10 -2
- package/scss/type/vendor/@carbon/layout/generated/_spacing.scss +13 -1
- package/scss/type/vendor/@carbon/layout/modules/generated/_spacing.scss +6 -0
- package/src/__tests__/__snapshots__/PublicAPI-test.js.snap +75 -0
- package/umd/index.js +8 -8
package/lib/index.js
CHANGED
|
@@ -10,14 +10,6 @@ var motion = require('@carbon/motion');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
Object.keys(themes).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return themes[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
13
|
Object.defineProperty(exports, 'black', {
|
|
22
14
|
enumerable: true,
|
|
23
15
|
get: function () {
|
|
@@ -966,3 +958,11 @@ Object.defineProperty(exports, 'slow02', {
|
|
|
966
958
|
return motion.slow02;
|
|
967
959
|
}
|
|
968
960
|
});
|
|
961
|
+
Object.keys(themes).forEach(function (k) {
|
|
962
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
963
|
+
enumerable: true,
|
|
964
|
+
get: function () {
|
|
965
|
+
return themes[k];
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
});
|
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.32.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.23.0",
|
|
39
|
+
"@carbon/grid": "^10.25.0",
|
|
40
|
+
"@carbon/icons": "^10.30.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.23.0",
|
|
43
|
+
"@carbon/motion": "^10.16.0",
|
|
44
|
+
"@carbon/themes": "^10.32.0",
|
|
45
|
+
"@carbon/type": "^10.26.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@carbon/cli": "^10.
|
|
48
|
+
"@carbon/cli": "^10.22.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": "05909da32a2ee6aa2fb1965eb57871ea77c81c0e"
|
|
55
55
|
}
|
package/scss/grid/_mixins.scss
CHANGED
|
@@ -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(
|
|
200
|
-
|
|
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
|
);
|
|
@@ -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(
|
|
200
|
-
|
|
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
|
);
|