@carbon/elements 10.55.0-rc.0 → 11.0.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 +1 -1
- package/lib/index.js +0 -4
- package/package.json +12 -13
- package/src/__tests__/__snapshots__/PublicAPI-test.js.snap +44 -131
- package/src/index.js +0 -1
- package/umd/index.js +0 -4
- package/scss/colors/colors.scss +0 -12
- package/scss/colors/index.scss +0 -12
- package/scss/colors/mixins.scss +0 -1456
- package/scss/elements.scss +0 -17
- package/scss/grid/12.scss +0 -41
- package/scss/grid/_inlined/12.scss +0 -41
- package/scss/grid/_inlined/_mixins.import.scss +0 -431
- package/scss/grid/_inlined/_mixins.scss +0 -415
- package/scss/grid/_inlined/_prefix.scss +0 -12
- package/scss/grid/_mixins.import.scss +0 -431
- package/scss/grid/_mixins.scss +0 -415
- package/scss/grid/_prefix.scss +0 -12
- package/scss/grid/grid.scss +0 -10
- package/scss/grid/index.scss +0 -10
- package/scss/grid/modules/_breakpoint.scss +0 -198
- package/scss/grid/modules/_config.scss +0 -94
- package/scss/grid/modules/_css-grid.scss +0 -470
- package/scss/grid/modules/_flex-grid.scss +0 -363
- package/scss/grid/modules/_mixins.scss +0 -336
- package/scss/grid/vendor/@carbon/import-once/import-once.scss +0 -27
- package/scss/grid/vendor/@carbon/import-once/index.scss +0 -8
- package/scss/grid/vendor/@carbon/layout/_breakpoint.scss +0 -246
- package/scss/grid/vendor/@carbon/layout/_convert.import.scss +0 -65
- package/scss/grid/vendor/@carbon/layout/_convert.scss +0 -54
- package/scss/grid/vendor/@carbon/layout/_key-height.import.scss +0 -117
- package/scss/grid/vendor/@carbon/layout/_key-height.scss +0 -111
- package/scss/grid/vendor/@carbon/layout/_mini-unit.scss +0 -23
- package/scss/grid/vendor/@carbon/layout/_spacing.scss +0 -12
- package/scss/grid/vendor/@carbon/layout/_utilities.scss +0 -41
- package/scss/grid/vendor/@carbon/layout/generated/_container.scss +0 -73
- package/scss/grid/vendor/@carbon/layout/generated/_fluid-spacing.scss +0 -61
- package/scss/grid/vendor/@carbon/layout/generated/_icon-size.scss +0 -34
- package/scss/grid/vendor/@carbon/layout/generated/_layout.scss +0 -97
- package/scss/grid/vendor/@carbon/layout/generated/_size.scss +0 -17
- package/scss/grid/vendor/@carbon/layout/generated/_spacing.scss +0 -169
- package/scss/grid/vendor/@carbon/layout/index.scss +0 -8
- package/scss/grid/vendor/@carbon/layout/layout.scss +0 -12
- package/scss/grid/vendor/@carbon/layout/modules/_convert.scss +0 -51
- package/scss/grid/vendor/@carbon/layout/modules/_spacing.scss +0 -9
- package/scss/grid/vendor/@carbon/layout/modules/_utilities.scss +0 -41
- package/scss/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +0 -37
- package/scss/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +0 -91
- package/scss/icons/icons.scss +0 -10
- package/scss/icons/index.scss +0 -8
- package/scss/icons/mixins.scss +0 -18
- package/scss/import-once/import-once.scss +0 -27
- package/scss/import-once/index.scss +0 -8
- package/scss/index.scss +0 -15
- package/scss/layout/_breakpoint.scss +0 -246
- package/scss/layout/_convert.import.scss +0 -65
- package/scss/layout/_convert.scss +0 -54
- package/scss/layout/_key-height.import.scss +0 -117
- package/scss/layout/_key-height.scss +0 -111
- package/scss/layout/_mini-unit.scss +0 -23
- package/scss/layout/_spacing.scss +0 -12
- package/scss/layout/_utilities.scss +0 -41
- package/scss/layout/generated/_container.scss +0 -73
- package/scss/layout/generated/_fluid-spacing.scss +0 -61
- package/scss/layout/generated/_icon-size.scss +0 -34
- package/scss/layout/generated/_layout.scss +0 -97
- package/scss/layout/generated/_size.scss +0 -17
- package/scss/layout/generated/_spacing.scss +0 -169
- package/scss/layout/index.scss +0 -8
- package/scss/layout/layout.scss +0 -12
- package/scss/layout/modules/_convert.scss +0 -51
- package/scss/layout/modules/_spacing.scss +0 -9
- package/scss/layout/modules/_utilities.scss +0 -41
- package/scss/layout/modules/generated/_fluid-spacing.scss +0 -37
- package/scss/layout/modules/generated/_spacing.scss +0 -91
- package/scss/motion/index.scss +0 -8
- package/scss/motion/motion.scss +0 -78
- package/scss/themes/_mixins.scss +0 -39
- package/scss/themes/_theme-maps.scss +0 -9
- package/scss/themes/_tokens.scss +0 -8
- package/scss/themes/compat/_themes.scss +0 -8
- package/scss/themes/compat/_tokens.scss +0 -8
- package/scss/themes/compat/generated/_themes.scss +0 -271
- package/scss/themes/compat/generated/_tokens.scss +0 -206
- package/scss/themes/generated/_mixins.scss +0 -3622
- package/scss/themes/generated/_themes.scss +0 -2955
- package/scss/themes/generated/_tokens.scss +0 -3179
- package/scss/themes/index.scss +0 -8
- package/scss/themes/modules/_config.scss +0 -11
- package/scss/themes/modules/_theme.scss +0 -120
- package/scss/themes/modules/_themes.scss +0 -8
- package/scss/themes/modules/_tokens.scss +0 -8
- package/scss/themes/modules/_utilities.scss +0 -18
- package/scss/themes/modules/generated/_themes.scss +0 -432
- package/scss/themes/modules/generated/_tokens.scss +0 -308
- package/scss/themes/themes.scss +0 -10
- package/scss/type/_classes.scss +0 -41
- package/scss/type/_font-family.scss +0 -70
- package/scss/type/_inlined/_classes.scss +0 -41
- package/scss/type/_inlined/_font-family.scss +0 -70
- package/scss/type/_inlined/_prefix.scss +0 -11
- package/scss/type/_inlined/_reset.scss +0 -90
- package/scss/type/_inlined/_scale.scss +0 -59
- package/scss/type/_inlined/_styles.import.scss +0 -766
- package/scss/type/_inlined/_styles.scss +0 -924
- package/scss/type/_inlined/font-face/_mono.scss +0 -1166
- package/scss/type/_inlined/font-face/_sans-condensed.scss +0 -1009
- package/scss/type/_inlined/font-face/_sans.scss +0 -1326
- package/scss/type/_inlined/font-face/_serif.scss +0 -1166
- package/scss/type/_inlined/font-face/_settings.scss +0 -12
- package/scss/type/_prefix.scss +0 -11
- package/scss/type/_reset.scss +0 -90
- package/scss/type/_scale.scss +0 -59
- package/scss/type/_styles.import.scss +0 -766
- package/scss/type/_styles.scss +0 -924
- package/scss/type/font-face/_mono.scss +0 -1166
- package/scss/type/font-face/_sans-condensed.scss +0 -1009
- package/scss/type/font-face/_sans.scss +0 -1326
- package/scss/type/font-face/_serif.scss +0 -1166
- package/scss/type/font-face/_settings.scss +0 -12
- package/scss/type/index.scss +0 -8
- package/scss/type/modules/_classes.scss +0 -42
- package/scss/type/modules/_default-type.scss +0 -55
- package/scss/type/modules/_font-family.scss +0 -104
- package/scss/type/modules/_prefix.scss +0 -11
- package/scss/type/modules/_reset.scss +0 -44
- package/scss/type/modules/_scale.scss +0 -57
- package/scss/type/modules/_styles.scss +0 -876
- package/scss/type/type.scss +0 -8
- package/scss/type/vendor/@carbon/grid/12.scss +0 -41
- package/scss/type/vendor/@carbon/grid/_inlined/12.scss +0 -41
- package/scss/type/vendor/@carbon/grid/_inlined/_mixins.import.scss +0 -431
- package/scss/type/vendor/@carbon/grid/_inlined/_mixins.scss +0 -415
- package/scss/type/vendor/@carbon/grid/_inlined/_prefix.scss +0 -12
- package/scss/type/vendor/@carbon/grid/_mixins.import.scss +0 -431
- package/scss/type/vendor/@carbon/grid/_mixins.scss +0 -415
- package/scss/type/vendor/@carbon/grid/_prefix.scss +0 -12
- package/scss/type/vendor/@carbon/grid/grid.scss +0 -10
- package/scss/type/vendor/@carbon/grid/index.scss +0 -10
- package/scss/type/vendor/@carbon/grid/modules/_breakpoint.scss +0 -198
- package/scss/type/vendor/@carbon/grid/modules/_config.scss +0 -94
- package/scss/type/vendor/@carbon/grid/modules/_css-grid.scss +0 -470
- package/scss/type/vendor/@carbon/grid/modules/_flex-grid.scss +0 -363
- package/scss/type/vendor/@carbon/grid/modules/_mixins.scss +0 -336
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/import-once/import-once.scss +0 -27
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/import-once/index.scss +0 -8
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_breakpoint.scss +0 -246
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_convert.import.scss +0 -65
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_convert.scss +0 -54
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_key-height.import.scss +0 -117
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_key-height.scss +0 -111
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_mini-unit.scss +0 -23
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_spacing.scss +0 -12
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_utilities.scss +0 -41
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_container.scss +0 -73
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_fluid-spacing.scss +0 -61
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_icon-size.scss +0 -34
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_layout.scss +0 -97
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_size.scss +0 -17
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_spacing.scss +0 -169
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/index.scss +0 -8
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/layout.scss +0 -12
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_convert.scss +0 -51
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_spacing.scss +0 -9
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_utilities.scss +0 -41
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +0 -37
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +0 -91
- package/scss/type/vendor/@carbon/import-once/import-once.scss +0 -27
- package/scss/type/vendor/@carbon/import-once/index.scss +0 -8
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright IBM Corp. 2018, 2018
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
/// Map deep get
|
|
9
|
-
/// @author Hugo Giraudel
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @param {Map} $map - Map
|
|
12
|
-
/// @param {Arglist} $keys - Key chain
|
|
13
|
-
/// @return {*} Desired value
|
|
14
|
-
/// @group @carbon/layout
|
|
15
|
-
@function map-deep-get($map, $keys...) {
|
|
16
|
-
@each $key in $keys {
|
|
17
|
-
$map: map-get($map, $key);
|
|
18
|
-
}
|
|
19
|
-
@return $map;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/// Provide a map and index, and get back the relevant key value
|
|
23
|
-
/// @access public
|
|
24
|
-
/// @param {Map} $map - Map
|
|
25
|
-
/// @param {Integer} $index - Key chain
|
|
26
|
-
/// @return {String} Desired value
|
|
27
|
-
/// @group @carbon/layout
|
|
28
|
-
@function carbon--key-by-index($map, $index) {
|
|
29
|
-
$keys: map-keys($map);
|
|
30
|
-
@return nth($keys, $index);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/// Pass in a map, and get the last one in the list back
|
|
34
|
-
/// @access public
|
|
35
|
-
/// @param {Map} $map - Map
|
|
36
|
-
/// @return {*} Desired value
|
|
37
|
-
/// @group @carbon/layout
|
|
38
|
-
@function last-map-item($map) {
|
|
39
|
-
$total-length: length($map);
|
|
40
|
-
@return map-get($map, carbon--key-by-index($map, $total-length));
|
|
41
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
-
//
|
|
3
|
-
// Copyright IBM Corp. 2018, 2019
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
-
// LICENSE file in the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/// @type Number
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @group @carbon/layout
|
|
12
|
-
$carbon--container-01: 1.5rem !default;
|
|
13
|
-
|
|
14
|
-
/// @type Number
|
|
15
|
-
/// @access public
|
|
16
|
-
/// @group @carbon/layout
|
|
17
|
-
$carbon--container-02: 2rem !default;
|
|
18
|
-
|
|
19
|
-
/// @type Number
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
$carbon--container-03: 2.5rem !default;
|
|
23
|
-
|
|
24
|
-
/// @type Number
|
|
25
|
-
/// @access public
|
|
26
|
-
/// @group @carbon/layout
|
|
27
|
-
$carbon--container-04: 3rem !default;
|
|
28
|
-
|
|
29
|
-
/// @type Number
|
|
30
|
-
/// @access public
|
|
31
|
-
/// @group @carbon/layout
|
|
32
|
-
$carbon--container-05: 4rem !default;
|
|
33
|
-
|
|
34
|
-
/// @type List
|
|
35
|
-
/// @access public
|
|
36
|
-
/// @group @carbon/layout
|
|
37
|
-
$carbon--container: (
|
|
38
|
-
$carbon--container-01,
|
|
39
|
-
$carbon--container-02,
|
|
40
|
-
$carbon--container-03,
|
|
41
|
-
$carbon--container-04,
|
|
42
|
-
$carbon--container-05
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
/// @type Number
|
|
46
|
-
/// @access public
|
|
47
|
-
/// @group @carbon/layout
|
|
48
|
-
/// @alias carbon--container-01
|
|
49
|
-
$container-01: $carbon--container-01 !default;
|
|
50
|
-
|
|
51
|
-
/// @type Number
|
|
52
|
-
/// @access public
|
|
53
|
-
/// @group @carbon/layout
|
|
54
|
-
/// @alias carbon--container-02
|
|
55
|
-
$container-02: $carbon--container-02 !default;
|
|
56
|
-
|
|
57
|
-
/// @type Number
|
|
58
|
-
/// @access public
|
|
59
|
-
/// @group @carbon/layout
|
|
60
|
-
/// @alias carbon--container-03
|
|
61
|
-
$container-03: $carbon--container-03 !default;
|
|
62
|
-
|
|
63
|
-
/// @type Number
|
|
64
|
-
/// @access public
|
|
65
|
-
/// @group @carbon/layout
|
|
66
|
-
/// @alias carbon--container-04
|
|
67
|
-
$container-04: $carbon--container-04 !default;
|
|
68
|
-
|
|
69
|
-
/// @type Number
|
|
70
|
-
/// @access public
|
|
71
|
-
/// @group @carbon/layout
|
|
72
|
-
/// @alias carbon--container-05
|
|
73
|
-
$container-05: $carbon--container-05 !default;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
-
//
|
|
3
|
-
// Copyright IBM Corp. 2018, 2019
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
-
// LICENSE file in the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/// @type Number
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @group @carbon/layout
|
|
12
|
-
$carbon--fluid-spacing-01: 0 !default;
|
|
13
|
-
|
|
14
|
-
/// @type Number
|
|
15
|
-
/// @access public
|
|
16
|
-
/// @group @carbon/layout
|
|
17
|
-
$carbon--fluid-spacing-02: 2vw !default;
|
|
18
|
-
|
|
19
|
-
/// @type Number
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
$carbon--fluid-spacing-03: 5vw !default;
|
|
23
|
-
|
|
24
|
-
/// @type Number
|
|
25
|
-
/// @access public
|
|
26
|
-
/// @group @carbon/layout
|
|
27
|
-
$carbon--fluid-spacing-04: 10vw !default;
|
|
28
|
-
|
|
29
|
-
/// @type List
|
|
30
|
-
/// @access public
|
|
31
|
-
/// @group @carbon/layout
|
|
32
|
-
$carbon--fluid-spacing: (
|
|
33
|
-
$carbon--fluid-spacing-01,
|
|
34
|
-
$carbon--fluid-spacing-02,
|
|
35
|
-
$carbon--fluid-spacing-03,
|
|
36
|
-
$carbon--fluid-spacing-04
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
/// @type Number
|
|
40
|
-
/// @access public
|
|
41
|
-
/// @group @carbon/layout
|
|
42
|
-
/// @alias carbon--fluid-spacing-01
|
|
43
|
-
$fluid-spacing-01: $carbon--fluid-spacing-01 !default;
|
|
44
|
-
|
|
45
|
-
/// @type Number
|
|
46
|
-
/// @access public
|
|
47
|
-
/// @group @carbon/layout
|
|
48
|
-
/// @alias carbon--fluid-spacing-02
|
|
49
|
-
$fluid-spacing-02: $carbon--fluid-spacing-02 !default;
|
|
50
|
-
|
|
51
|
-
/// @type Number
|
|
52
|
-
/// @access public
|
|
53
|
-
/// @group @carbon/layout
|
|
54
|
-
/// @alias carbon--fluid-spacing-03
|
|
55
|
-
$fluid-spacing-03: $carbon--fluid-spacing-03 !default;
|
|
56
|
-
|
|
57
|
-
/// @type Number
|
|
58
|
-
/// @access public
|
|
59
|
-
/// @group @carbon/layout
|
|
60
|
-
/// @alias carbon--fluid-spacing-04
|
|
61
|
-
$fluid-spacing-04: $carbon--fluid-spacing-04 !default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
-
//
|
|
3
|
-
// Copyright IBM Corp. 2018, 2019
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
-
// LICENSE file in the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/// @type Number
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @group @carbon/layout
|
|
12
|
-
$carbon--icon-size-01: 1rem !default;
|
|
13
|
-
|
|
14
|
-
/// @type Number
|
|
15
|
-
/// @access public
|
|
16
|
-
/// @group @carbon/layout
|
|
17
|
-
$carbon--icon-size-02: 1.25rem !default;
|
|
18
|
-
|
|
19
|
-
/// @type List
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
$carbon--icon-size: ($carbon--icon-size-01, $carbon--icon-size-02);
|
|
23
|
-
|
|
24
|
-
/// @type Number
|
|
25
|
-
/// @access public
|
|
26
|
-
/// @group @carbon/layout
|
|
27
|
-
/// @alias carbon--icon-size-01
|
|
28
|
-
$icon-size-01: $carbon--icon-size-01 !default;
|
|
29
|
-
|
|
30
|
-
/// @type Number
|
|
31
|
-
/// @access public
|
|
32
|
-
/// @group @carbon/layout
|
|
33
|
-
/// @alias carbon--icon-size-02
|
|
34
|
-
$icon-size-02: $carbon--icon-size-02 !default;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
-
//
|
|
3
|
-
// Copyright IBM Corp. 2018, 2019
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
-
// LICENSE file in the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/// @type Number
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @group @carbon/layout
|
|
12
|
-
$carbon--layout-01: 1rem !default;
|
|
13
|
-
|
|
14
|
-
/// @type Number
|
|
15
|
-
/// @access public
|
|
16
|
-
/// @group @carbon/layout
|
|
17
|
-
$carbon--layout-02: 1.5rem !default;
|
|
18
|
-
|
|
19
|
-
/// @type Number
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
$carbon--layout-03: 2rem !default;
|
|
23
|
-
|
|
24
|
-
/// @type Number
|
|
25
|
-
/// @access public
|
|
26
|
-
/// @group @carbon/layout
|
|
27
|
-
$carbon--layout-04: 3rem !default;
|
|
28
|
-
|
|
29
|
-
/// @type Number
|
|
30
|
-
/// @access public
|
|
31
|
-
/// @group @carbon/layout
|
|
32
|
-
$carbon--layout-05: 4rem !default;
|
|
33
|
-
|
|
34
|
-
/// @type Number
|
|
35
|
-
/// @access public
|
|
36
|
-
/// @group @carbon/layout
|
|
37
|
-
$carbon--layout-06: 6rem !default;
|
|
38
|
-
|
|
39
|
-
/// @type Number
|
|
40
|
-
/// @access public
|
|
41
|
-
/// @group @carbon/layout
|
|
42
|
-
$carbon--layout-07: 10rem !default;
|
|
43
|
-
|
|
44
|
-
/// @type List
|
|
45
|
-
/// @access public
|
|
46
|
-
/// @group @carbon/layout
|
|
47
|
-
$carbon--layout: (
|
|
48
|
-
$carbon--layout-01,
|
|
49
|
-
$carbon--layout-02,
|
|
50
|
-
$carbon--layout-03,
|
|
51
|
-
$carbon--layout-04,
|
|
52
|
-
$carbon--layout-05,
|
|
53
|
-
$carbon--layout-06,
|
|
54
|
-
$carbon--layout-07
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
/// @type Number
|
|
58
|
-
/// @access public
|
|
59
|
-
/// @group @carbon/layout
|
|
60
|
-
/// @alias carbon--layout-01
|
|
61
|
-
$layout-01: $carbon--layout-01 !default;
|
|
62
|
-
|
|
63
|
-
/// @type Number
|
|
64
|
-
/// @access public
|
|
65
|
-
/// @group @carbon/layout
|
|
66
|
-
/// @alias carbon--layout-02
|
|
67
|
-
$layout-02: $carbon--layout-02 !default;
|
|
68
|
-
|
|
69
|
-
/// @type Number
|
|
70
|
-
/// @access public
|
|
71
|
-
/// @group @carbon/layout
|
|
72
|
-
/// @alias carbon--layout-03
|
|
73
|
-
$layout-03: $carbon--layout-03 !default;
|
|
74
|
-
|
|
75
|
-
/// @type Number
|
|
76
|
-
/// @access public
|
|
77
|
-
/// @group @carbon/layout
|
|
78
|
-
/// @alias carbon--layout-04
|
|
79
|
-
$layout-04: $carbon--layout-04 !default;
|
|
80
|
-
|
|
81
|
-
/// @type Number
|
|
82
|
-
/// @access public
|
|
83
|
-
/// @group @carbon/layout
|
|
84
|
-
/// @alias carbon--layout-05
|
|
85
|
-
$layout-05: $carbon--layout-05 !default;
|
|
86
|
-
|
|
87
|
-
/// @type Number
|
|
88
|
-
/// @access public
|
|
89
|
-
/// @group @carbon/layout
|
|
90
|
-
/// @alias carbon--layout-06
|
|
91
|
-
$layout-06: $carbon--layout-06 !default;
|
|
92
|
-
|
|
93
|
-
/// @type Number
|
|
94
|
-
/// @access public
|
|
95
|
-
/// @group @carbon/layout
|
|
96
|
-
/// @alias carbon--layout-07
|
|
97
|
-
$layout-07: $carbon--layout-07 !default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
-
//
|
|
3
|
-
// Copyright IBM Corp. 2018, 2019
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
-
// LICENSE file in the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/// @type Number
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @group @carbon/layout
|
|
12
|
-
$size-xs: 1.5rem;
|
|
13
|
-
$size-sm: 2rem;
|
|
14
|
-
$size-md: 2.5rem;
|
|
15
|
-
$size-lg: 3rem;
|
|
16
|
-
$size-xl: 4rem;
|
|
17
|
-
$size-2xl: 5rem;
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
-
//
|
|
3
|
-
// Copyright IBM Corp. 2018, 2019
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
-
// LICENSE file in the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/// @type Number
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @group @carbon/layout
|
|
12
|
-
$carbon--spacing-01: 0.125rem !default;
|
|
13
|
-
|
|
14
|
-
/// @type Number
|
|
15
|
-
/// @access public
|
|
16
|
-
/// @group @carbon/layout
|
|
17
|
-
$carbon--spacing-02: 0.25rem !default;
|
|
18
|
-
|
|
19
|
-
/// @type Number
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
$carbon--spacing-03: 0.5rem !default;
|
|
23
|
-
|
|
24
|
-
/// @type Number
|
|
25
|
-
/// @access public
|
|
26
|
-
/// @group @carbon/layout
|
|
27
|
-
$carbon--spacing-04: 0.75rem !default;
|
|
28
|
-
|
|
29
|
-
/// @type Number
|
|
30
|
-
/// @access public
|
|
31
|
-
/// @group @carbon/layout
|
|
32
|
-
$carbon--spacing-05: 1rem !default;
|
|
33
|
-
|
|
34
|
-
/// @type Number
|
|
35
|
-
/// @access public
|
|
36
|
-
/// @group @carbon/layout
|
|
37
|
-
$carbon--spacing-06: 1.5rem !default;
|
|
38
|
-
|
|
39
|
-
/// @type Number
|
|
40
|
-
/// @access public
|
|
41
|
-
/// @group @carbon/layout
|
|
42
|
-
$carbon--spacing-07: 2rem !default;
|
|
43
|
-
|
|
44
|
-
/// @type Number
|
|
45
|
-
/// @access public
|
|
46
|
-
/// @group @carbon/layout
|
|
47
|
-
$carbon--spacing-08: 2.5rem !default;
|
|
48
|
-
|
|
49
|
-
/// @type Number
|
|
50
|
-
/// @access public
|
|
51
|
-
/// @group @carbon/layout
|
|
52
|
-
$carbon--spacing-09: 3rem !default;
|
|
53
|
-
|
|
54
|
-
/// @type Number
|
|
55
|
-
/// @access public
|
|
56
|
-
/// @group @carbon/layout
|
|
57
|
-
$carbon--spacing-10: 4rem !default;
|
|
58
|
-
|
|
59
|
-
/// @type Number
|
|
60
|
-
/// @access public
|
|
61
|
-
/// @group @carbon/layout
|
|
62
|
-
$carbon--spacing-11: 5rem !default;
|
|
63
|
-
|
|
64
|
-
/// @type Number
|
|
65
|
-
/// @access public
|
|
66
|
-
/// @group @carbon/layout
|
|
67
|
-
$carbon--spacing-12: 6rem !default;
|
|
68
|
-
|
|
69
|
-
/// @type Number
|
|
70
|
-
/// @access public
|
|
71
|
-
/// @group @carbon/layout
|
|
72
|
-
$carbon--spacing-13: 10rem !default;
|
|
73
|
-
|
|
74
|
-
/// @type List
|
|
75
|
-
/// @access public
|
|
76
|
-
/// @group @carbon/layout
|
|
77
|
-
$carbon--spacing: (
|
|
78
|
-
$carbon--spacing-01,
|
|
79
|
-
$carbon--spacing-02,
|
|
80
|
-
$carbon--spacing-03,
|
|
81
|
-
$carbon--spacing-04,
|
|
82
|
-
$carbon--spacing-05,
|
|
83
|
-
$carbon--spacing-06,
|
|
84
|
-
$carbon--spacing-07,
|
|
85
|
-
$carbon--spacing-08,
|
|
86
|
-
$carbon--spacing-09,
|
|
87
|
-
$carbon--spacing-10,
|
|
88
|
-
$carbon--spacing-11,
|
|
89
|
-
$carbon--spacing-12,
|
|
90
|
-
$carbon--spacing-13
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
/// @type Number
|
|
94
|
-
/// @access public
|
|
95
|
-
/// @group @carbon/layout
|
|
96
|
-
/// @alias carbon--spacing-01
|
|
97
|
-
$spacing-01: $carbon--spacing-01 !default;
|
|
98
|
-
|
|
99
|
-
/// @type Number
|
|
100
|
-
/// @access public
|
|
101
|
-
/// @group @carbon/layout
|
|
102
|
-
/// @alias carbon--spacing-02
|
|
103
|
-
$spacing-02: $carbon--spacing-02 !default;
|
|
104
|
-
|
|
105
|
-
/// @type Number
|
|
106
|
-
/// @access public
|
|
107
|
-
/// @group @carbon/layout
|
|
108
|
-
/// @alias carbon--spacing-03
|
|
109
|
-
$spacing-03: $carbon--spacing-03 !default;
|
|
110
|
-
|
|
111
|
-
/// @type Number
|
|
112
|
-
/// @access public
|
|
113
|
-
/// @group @carbon/layout
|
|
114
|
-
/// @alias carbon--spacing-04
|
|
115
|
-
$spacing-04: $carbon--spacing-04 !default;
|
|
116
|
-
|
|
117
|
-
/// @type Number
|
|
118
|
-
/// @access public
|
|
119
|
-
/// @group @carbon/layout
|
|
120
|
-
/// @alias carbon--spacing-05
|
|
121
|
-
$spacing-05: $carbon--spacing-05 !default;
|
|
122
|
-
|
|
123
|
-
/// @type Number
|
|
124
|
-
/// @access public
|
|
125
|
-
/// @group @carbon/layout
|
|
126
|
-
/// @alias carbon--spacing-06
|
|
127
|
-
$spacing-06: $carbon--spacing-06 !default;
|
|
128
|
-
|
|
129
|
-
/// @type Number
|
|
130
|
-
/// @access public
|
|
131
|
-
/// @group @carbon/layout
|
|
132
|
-
/// @alias carbon--spacing-07
|
|
133
|
-
$spacing-07: $carbon--spacing-07 !default;
|
|
134
|
-
|
|
135
|
-
/// @type Number
|
|
136
|
-
/// @access public
|
|
137
|
-
/// @group @carbon/layout
|
|
138
|
-
/// @alias carbon--spacing-08
|
|
139
|
-
$spacing-08: $carbon--spacing-08 !default;
|
|
140
|
-
|
|
141
|
-
/// @type Number
|
|
142
|
-
/// @access public
|
|
143
|
-
/// @group @carbon/layout
|
|
144
|
-
/// @alias carbon--spacing-09
|
|
145
|
-
$spacing-09: $carbon--spacing-09 !default;
|
|
146
|
-
|
|
147
|
-
/// @type Number
|
|
148
|
-
/// @access public
|
|
149
|
-
/// @group @carbon/layout
|
|
150
|
-
/// @alias carbon--spacing-10
|
|
151
|
-
$spacing-10: $carbon--spacing-10 !default;
|
|
152
|
-
|
|
153
|
-
/// @type Number
|
|
154
|
-
/// @access public
|
|
155
|
-
/// @group @carbon/layout
|
|
156
|
-
/// @alias carbon--spacing-11
|
|
157
|
-
$spacing-11: $carbon--spacing-11 !default;
|
|
158
|
-
|
|
159
|
-
/// @type Number
|
|
160
|
-
/// @access public
|
|
161
|
-
/// @group @carbon/layout
|
|
162
|
-
/// @alias carbon--spacing-12
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright IBM Corp. 2018, 2018
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
@import 'convert';
|
|
9
|
-
@import 'breakpoint';
|
|
10
|
-
@import 'mini-unit';
|
|
11
|
-
@import 'spacing';
|
|
12
|
-
@import 'key-height';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright IBM Corp. 2018, 2018
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
@use 'sass:meta';
|
|
9
|
-
@use 'sass:math';
|
|
10
|
-
|
|
11
|
-
/// Default font size
|
|
12
|
-
/// @type Number
|
|
13
|
-
/// @access public
|
|
14
|
-
/// @group @carbon/layout
|
|
15
|
-
$base-font-size: 16px !default;
|
|
16
|
-
|
|
17
|
-
/// Convert a given px unit to a rem unit
|
|
18
|
-
/// @param {Number} $px - Number with px unit
|
|
19
|
-
/// @return {Number} Number with rem unit
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
@function rem($px) {
|
|
23
|
-
@if unit($px) != 'px' {
|
|
24
|
-
// TODO: update to @error in v11
|
|
25
|
-
@warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@if meta.function-exists('div', 'math') {
|
|
29
|
-
@return math.div($px, $base-font-size) * 1rem;
|
|
30
|
-
} @else {
|
|
31
|
-
@return ($px / $base-font-size) * 1rem;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/// Convert a given px unit to a em unit
|
|
36
|
-
/// @param {Number} $px - Number with px unit
|
|
37
|
-
/// @return {Number} Number with em unit
|
|
38
|
-
/// @access public
|
|
39
|
-
/// @group @carbon/layout
|
|
40
|
-
@function em($px) {
|
|
41
|
-
@if unit($px) != 'px' {
|
|
42
|
-
// TODO: update to @error in v11
|
|
43
|
-
@warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@if meta.function-exists('div', 'math') {
|
|
47
|
-
@return math.div($px, $base-font-size) * 1em;
|
|
48
|
-
} @else {
|
|
49
|
-
@return ($px / $base-font-size) * 1em;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright IBM Corp. 2018, 2018
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
/// Map deep get
|
|
9
|
-
/// @author Hugo Giraudel
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @param {Map} $map - Map
|
|
12
|
-
/// @param {Arglist} $keys - Key chain
|
|
13
|
-
/// @return {*} Desired value
|
|
14
|
-
/// @group @carbon/layout
|
|
15
|
-
@function map-deep-get($map, $keys...) {
|
|
16
|
-
@each $key in $keys {
|
|
17
|
-
$map: map.get($map, $key);
|
|
18
|
-
}
|
|
19
|
-
@return $map;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/// Provide a map and index, and get back the relevant key value
|
|
23
|
-
/// @access public
|
|
24
|
-
/// @param {Map} $map - Map
|
|
25
|
-
/// @param {Integer} $index - Key chain
|
|
26
|
-
/// @return {String} Desired value
|
|
27
|
-
/// @group @carbon/layout
|
|
28
|
-
@function key-by-index($map, $index) {
|
|
29
|
-
$keys: map.keys($map);
|
|
30
|
-
@return nth($keys, $index);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/// Pass in a map, and get the last one in the list back
|
|
34
|
-
/// @access public
|
|
35
|
-
/// @param {Map} $map - Map
|
|
36
|
-
/// @return {*} Desired value
|
|
37
|
-
/// @group @carbon/layout
|
|
38
|
-
@function last-map-item($map) {
|
|
39
|
-
$total-length: list.length($map);
|
|
40
|
-
@return map-get($map, carbon--key-by-index($map, $total-length));
|
|
41
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
-
//
|
|
3
|
-
// Copyright IBM Corp. 2018, 2019
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
-
// LICENSE file in the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/// @type Number
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @group @carbon/layout
|
|
12
|
-
$fluid-spacing-01: 0 !default;
|
|
13
|
-
|
|
14
|
-
/// @type Number
|
|
15
|
-
/// @access public
|
|
16
|
-
/// @group @carbon/layout
|
|
17
|
-
$fluid-spacing-02: 2vw !default;
|
|
18
|
-
|
|
19
|
-
/// @type Number
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
$fluid-spacing-03: 5vw !default;
|
|
23
|
-
|
|
24
|
-
/// @type Number
|
|
25
|
-
/// @access public
|
|
26
|
-
/// @group @carbon/layout
|
|
27
|
-
$fluid-spacing-04: 10vw !default;
|
|
28
|
-
|
|
29
|
-
/// @type Map
|
|
30
|
-
/// @access public
|
|
31
|
-
/// @group @carbon/layout
|
|
32
|
-
$fluid-spacing: (
|
|
33
|
-
fluid-spacing-01: $fluid-spacing-01,
|
|
34
|
-
fluid-spacing-02: $fluid-spacing-02,
|
|
35
|
-
fluid-spacing-03: $fluid-spacing-03,
|
|
36
|
-
fluid-spacing-04: $fluid-spacing-04,
|
|
37
|
-
);
|