@carbon/elements 10.40.0 → 10.42.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/README.md +1 -1
- package/package.json +10 -10
- package/scss/grid/_inlined/_mixins.import.scss +416 -0
- package/scss/grid/_inlined/_mixins.scss +14 -0
- package/scss/grid/_mixins.import.scss +416 -0
- package/scss/grid/_mixins.scss +14 -0
- package/scss/grid/modules/_breakpoint.scss +4 -4
- package/scss/grid/modules/_css-grid.scss +2 -2
- package/scss/grid/vendor/@carbon/layout/_breakpoint.scss +4 -4
- package/scss/grid/vendor/@carbon/layout/_convert.import.scss +56 -0
- package/scss/grid/vendor/@carbon/layout/_convert.scss +14 -0
- package/scss/grid/vendor/@carbon/layout/_key-height.import.scss +112 -0
- package/scss/grid/vendor/@carbon/layout/_key-height.scss +14 -0
- package/scss/grid/vendor/@carbon/layout/modules/_breakpoint.scss +4 -4
- package/scss/grid/vendor/@carbon/layout/modules/_convert.scss +4 -2
- package/scss/layout/_breakpoint.scss +4 -4
- package/scss/layout/_convert.import.scss +56 -0
- package/scss/layout/_convert.scss +14 -0
- package/scss/layout/_key-height.import.scss +112 -0
- package/scss/layout/_key-height.scss +14 -0
- package/scss/layout/modules/_breakpoint.scss +4 -4
- package/scss/layout/modules/_convert.scss +4 -2
- package/scss/themes/generated/_mixins.scss +287 -0
- package/scss/themes/generated/_themes.scss +506 -20
- package/scss/themes/generated/_tokens.scss +578 -20
- package/scss/themes/modules/_theme.scss +60 -0
- package/scss/type/_inlined/_scale.scss +1 -1
- package/scss/type/_inlined/_styles.import.scss +761 -0
- package/scss/type/_inlined/_styles.scss +214 -36
- package/scss/type/_scale.scss +1 -1
- package/scss/type/_styles.import.scss +761 -0
- package/scss/type/_styles.scss +214 -36
- package/scss/type/modules/_scale.scss +1 -1
- package/scss/type/modules/_styles.scss +187 -26
- package/scss/type/vendor/@carbon/layout/_breakpoint.scss +4 -4
- package/scss/type/vendor/@carbon/layout/_convert.import.scss +56 -0
- package/scss/type/vendor/@carbon/layout/_convert.scss +14 -0
- package/scss/type/vendor/@carbon/layout/_key-height.import.scss +112 -0
- package/scss/type/vendor/@carbon/layout/_key-height.scss +14 -0
- package/scss/type/vendor/@carbon/layout/modules/_breakpoint.scss +4 -4
- package/scss/type/vendor/@carbon/layout/modules/_convert.scss +4 -2
- package/src/__tests__/__snapshots__/PublicAPI-test.js.snap +24 -0
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
6
6
|
//
|
|
7
|
+
//-------------------------------------------
|
|
8
|
+
// Compatibility notes
|
|
9
|
+
// ------------------------------------------
|
|
10
|
+
//
|
|
11
|
+
// This file is intended to be consumed and processed with node-sass/libsass.
|
|
12
|
+
// Sass language features only available in dart-sass, such as `math.div`,
|
|
13
|
+
// should not be used.
|
|
14
|
+
//
|
|
15
|
+
// The `.import` suffixed version of this file eg. `_filename.import.scss`
|
|
16
|
+
// is intended to be compatible with dart-sass.
|
|
17
|
+
//
|
|
18
|
+
// Styles authored within this file must be duplicated to the corresponding
|
|
19
|
+
// compatibility file to ensure we continue to support node-sass and dart-sass
|
|
20
|
+
// in v10.
|
|
7
21
|
|
|
8
22
|
@import 'breakpoint';
|
|
9
23
|
@import 'utilities';
|
|
@@ -57,7 +57,7 @@ $grid-breakpoints: (
|
|
|
57
57
|
) !default;
|
|
58
58
|
|
|
59
59
|
/// Get the value of the next breakpoint, or null for the last breakpoint
|
|
60
|
-
/// @param {String} $name - The name of the
|
|
60
|
+
/// @param {String} $name - The name of the breakpoint
|
|
61
61
|
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
62
62
|
/// @param {List} $breakpoint-names [map-keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
63
63
|
/// @return {String}
|
|
@@ -76,7 +76,7 @@ $grid-breakpoints: (
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/// Get the value of the previous breakpoint, or null for the first breakpoint
|
|
79
|
-
/// @param {String} $name - The name of the
|
|
79
|
+
/// @param {String} $name - The name of the breakpoint
|
|
80
80
|
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
81
81
|
/// @param {List} $breakpoint-names [map-keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
82
82
|
/// @return {String}
|
|
@@ -95,7 +95,7 @@ $grid-breakpoints: (
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/// Check to see if the given breakpoint name
|
|
98
|
-
/// @param {String} $name - The name of the
|
|
98
|
+
/// @param {String} $name - The name of the breakpoint
|
|
99
99
|
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
100
100
|
/// @return {Bool}
|
|
101
101
|
/// @access public
|
|
@@ -114,7 +114,7 @@ $grid-breakpoints: (
|
|
|
114
114
|
@return key-by-index($breakpoints, $total-breakpoints);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
/// Get the infix for a given breakpoint in a list of breakpoints.
|
|
117
|
+
/// Get the infix for a given breakpoint in a list of breakpoints. Useful for generating the size part in a selector, for example: `.prefix--col-sm-2`.
|
|
118
118
|
/// @param {String} $name - The name of the breakpoint
|
|
119
119
|
/// @return {String}
|
|
120
120
|
/// @access public
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
+
@use 'sass:math';
|
|
9
|
+
|
|
8
10
|
/// Default font size
|
|
9
11
|
/// @type Number
|
|
10
12
|
/// @access public
|
|
@@ -22,7 +24,7 @@ $base-font-size: 16px !default;
|
|
|
22
24
|
@warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
@return ($px
|
|
27
|
+
@return math.div($px, $base-font-size) * 1rem;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
/// Convert a given px unit to a em unit
|
|
@@ -36,5 +38,5 @@ $base-font-size: 16px !default;
|
|
|
36
38
|
@warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
@return ($px
|
|
41
|
+
@return math.div($px, $base-font-size) * 1em;
|
|
40
42
|
}
|
|
@@ -31,6 +31,10 @@ Array [
|
|
|
31
31
|
"blue70",
|
|
32
32
|
"blue80",
|
|
33
33
|
"blue90",
|
|
34
|
+
"body01",
|
|
35
|
+
"body02",
|
|
36
|
+
"bodyCompact01",
|
|
37
|
+
"bodyCompact02",
|
|
34
38
|
"bodyLong01",
|
|
35
39
|
"bodyLong02",
|
|
36
40
|
"bodyShort01",
|
|
@@ -124,6 +128,17 @@ Array [
|
|
|
124
128
|
"fieldDisabled",
|
|
125
129
|
"fieldHover",
|
|
126
130
|
"fluid",
|
|
131
|
+
"fluidDisplay01",
|
|
132
|
+
"fluidDisplay02",
|
|
133
|
+
"fluidDisplay03",
|
|
134
|
+
"fluidDisplay04",
|
|
135
|
+
"fluidHeading03",
|
|
136
|
+
"fluidHeading04",
|
|
137
|
+
"fluidHeading05",
|
|
138
|
+
"fluidHeading06",
|
|
139
|
+
"fluidParagraph01",
|
|
140
|
+
"fluidQuotation01",
|
|
141
|
+
"fluidQuotation02",
|
|
127
142
|
"fluidSpacing",
|
|
128
143
|
"fluidSpacing01",
|
|
129
144
|
"fluidSpacing02",
|
|
@@ -166,6 +181,13 @@ Array [
|
|
|
166
181
|
"green90",
|
|
167
182
|
"heading01",
|
|
168
183
|
"heading02",
|
|
184
|
+
"heading03",
|
|
185
|
+
"heading04",
|
|
186
|
+
"heading05",
|
|
187
|
+
"heading06",
|
|
188
|
+
"heading07",
|
|
189
|
+
"headingCompact01",
|
|
190
|
+
"headingCompact02",
|
|
169
191
|
"helperText01",
|
|
170
192
|
"helperText02",
|
|
171
193
|
"highlight",
|
|
@@ -226,6 +248,8 @@ Array [
|
|
|
226
248
|
"layout05",
|
|
227
249
|
"layout06",
|
|
228
250
|
"layout07",
|
|
251
|
+
"legal01",
|
|
252
|
+
"legal02",
|
|
229
253
|
"link01",
|
|
230
254
|
"link02",
|
|
231
255
|
"linkInverse",
|