@carbon/layout 10.37.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 +3 -15
- package/index.scss +5 -2
- package/lib/index.js +2 -22
- package/package.json +5 -12
- package/scss/_convert.import.scss +2 -4
- package/scss/_convert.scss +18 -23
- package/scss/_spacing.scss +2 -5
- package/scss/_utilities.scss +4 -4
- package/scss/generated/_container.scss +13 -43
- package/scss/generated/_fluid-spacing.scss +11 -35
- package/scss/generated/_icon-size.scss +8 -17
- package/scss/generated/_size.scss +1 -1
- package/scss/generated/_spacing.scss +29 -107
- package/scss/modules/_convert.scss +2 -4
- package/src/index.js +0 -19
- package/src/tokens.js +0 -10
- package/umd/index.js +2 -22
- package/scss/_breakpoint.scss +0 -246
- package/scss/_key-height.import.scss +0 -117
- package/scss/_key-height.scss +0 -111
- package/scss/_mini-unit.scss +0 -23
- package/scss/generated/_layout.scss +0 -97
- package/scss/index.scss +0 -8
- package/scss/layout.scss +0 -12
- package/scss/modules/_spacing.scss +0 -9
- package/scss/modules/_utilities.scss +0 -41
- package/scss/modules/generated/_fluid-spacing.scss +0 -37
- package/scss/modules/generated/_spacing.scss +0 -91
|
@@ -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;
|
package/scss/index.scss
DELETED
package/scss/layout.scss
DELETED
|
@@ -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,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
|
-
);
|
|
@@ -1,91 +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
|
-
$spacing-01: 0.125rem !default;
|
|
13
|
-
|
|
14
|
-
/// @type Number
|
|
15
|
-
/// @access public
|
|
16
|
-
/// @group @carbon/layout
|
|
17
|
-
$spacing-02: 0.25rem !default;
|
|
18
|
-
|
|
19
|
-
/// @type Number
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
$spacing-03: 0.5rem !default;
|
|
23
|
-
|
|
24
|
-
/// @type Number
|
|
25
|
-
/// @access public
|
|
26
|
-
/// @group @carbon/layout
|
|
27
|
-
$spacing-04: 0.75rem !default;
|
|
28
|
-
|
|
29
|
-
/// @type Number
|
|
30
|
-
/// @access public
|
|
31
|
-
/// @group @carbon/layout
|
|
32
|
-
$spacing-05: 1rem !default;
|
|
33
|
-
|
|
34
|
-
/// @type Number
|
|
35
|
-
/// @access public
|
|
36
|
-
/// @group @carbon/layout
|
|
37
|
-
$spacing-06: 1.5rem !default;
|
|
38
|
-
|
|
39
|
-
/// @type Number
|
|
40
|
-
/// @access public
|
|
41
|
-
/// @group @carbon/layout
|
|
42
|
-
$spacing-07: 2rem !default;
|
|
43
|
-
|
|
44
|
-
/// @type Number
|
|
45
|
-
/// @access public
|
|
46
|
-
/// @group @carbon/layout
|
|
47
|
-
$spacing-08: 2.5rem !default;
|
|
48
|
-
|
|
49
|
-
/// @type Number
|
|
50
|
-
/// @access public
|
|
51
|
-
/// @group @carbon/layout
|
|
52
|
-
$spacing-09: 3rem !default;
|
|
53
|
-
|
|
54
|
-
/// @type Number
|
|
55
|
-
/// @access public
|
|
56
|
-
/// @group @carbon/layout
|
|
57
|
-
$spacing-10: 4rem !default;
|
|
58
|
-
|
|
59
|
-
/// @type Number
|
|
60
|
-
/// @access public
|
|
61
|
-
/// @group @carbon/layout
|
|
62
|
-
$spacing-11: 5rem !default;
|
|
63
|
-
|
|
64
|
-
/// @type Number
|
|
65
|
-
/// @access public
|
|
66
|
-
/// @group @carbon/layout
|
|
67
|
-
$spacing-12: 6rem !default;
|
|
68
|
-
|
|
69
|
-
/// @type Number
|
|
70
|
-
/// @access public
|
|
71
|
-
/// @group @carbon/layout
|
|
72
|
-
$spacing-13: 10rem !default;
|
|
73
|
-
|
|
74
|
-
/// @type Map
|
|
75
|
-
/// @access public
|
|
76
|
-
/// @group @carbon/layout
|
|
77
|
-
$spacing: (
|
|
78
|
-
spacing-01: $spacing-01,
|
|
79
|
-
spacing-02: $spacing-02,
|
|
80
|
-
spacing-03: $spacing-03,
|
|
81
|
-
spacing-04: $spacing-04,
|
|
82
|
-
spacing-05: $spacing-05,
|
|
83
|
-
spacing-06: $spacing-06,
|
|
84
|
-
spacing-07: $spacing-07,
|
|
85
|
-
spacing-08: $spacing-08,
|
|
86
|
-
spacing-09: $spacing-09,
|
|
87
|
-
spacing-10: $spacing-10,
|
|
88
|
-
spacing-11: $spacing-11,
|
|
89
|
-
spacing-12: $spacing-12,
|
|
90
|
-
spacing-13: $spacing-13,
|
|
91
|
-
);
|