@carbon/grid 11.32.0 → 11.32.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/grid",
|
|
3
3
|
"description": "Grid for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "11.32.
|
|
4
|
+
"version": "11.32.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@carbon/layout": "^11.30.
|
|
38
|
+
"@carbon/layout": "^11.30.2",
|
|
39
39
|
"@ibm/telemetry-js": "^1.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sassDir": "scss",
|
|
49
49
|
"needs": "^1.3.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "5c8f7e2a47c2bfb2865f1f2f4efe55b26f45ad5c"
|
|
52
52
|
}
|
package/scss/_breakpoint.scss
CHANGED
package/scss/_flex-grid.scss
CHANGED
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
/// @group @carbon/layout
|
|
271
271
|
@function -last-map-item($map) {
|
|
272
272
|
$total-length: list.length($map);
|
|
273
|
-
@return map
|
|
273
|
+
@return map.get($map, -key-by-index($map, $total-length));
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
/// Provide a map and index, and get back the relevant key value
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
/// @group @carbon/layout
|
|
282
282
|
@function -key-by-index($map, $index) {
|
|
283
283
|
$keys: map.keys($map);
|
|
284
|
-
@return nth($keys, $index);
|
|
284
|
+
@return list.nth($keys, $index);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
/// Generate the CSS for a grid for the given breakpoints and gutters
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
/// @group @carbon/layout
|
|
271
271
|
@function -last-map-item($map) {
|
|
272
272
|
$total-length: list.length($map);
|
|
273
|
-
@return map
|
|
273
|
+
@return map.get($map, -key-by-index($map, $total-length));
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
/// Provide a map and index, and get back the relevant key value
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
/// @group @carbon/layout
|
|
282
282
|
@function -key-by-index($map, $index) {
|
|
283
283
|
$keys: map.keys($map);
|
|
284
|
-
@return nth($keys, $index);
|
|
284
|
+
@return list.nth($keys, $index);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
/// Generate the CSS for a grid for the given breakpoints and gutters
|
|
@@ -20,7 +20,7 @@ $base-font-size: 16px !default;
|
|
|
20
20
|
/// @access public
|
|
21
21
|
/// @group @carbon/layout
|
|
22
22
|
@function to-rem($px) {
|
|
23
|
-
@if unit($px) != 'px' {
|
|
23
|
+
@if math.unit($px) != 'px' {
|
|
24
24
|
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -35,7 +35,7 @@ $base-font-size: 16px !default;
|
|
|
35
35
|
/// @deprecated
|
|
36
36
|
/// @group @carbon/layout
|
|
37
37
|
@function rem($px) {
|
|
38
|
-
@if unit($px) != 'px' {
|
|
38
|
+
@if math.unit($px) != 'px' {
|
|
39
39
|
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -48,7 +48,7 @@ $base-font-size: 16px !default;
|
|
|
48
48
|
/// @access public
|
|
49
49
|
/// @group @carbon/layout
|
|
50
50
|
@function em($px) {
|
|
51
|
-
@if unit($px) != 'px' {
|
|
51
|
+
@if math.unit($px) != 'px' {
|
|
52
52
|
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -4,6 +4,7 @@
|
|
|
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
|
+
@use 'sass:map';
|
|
7
8
|
|
|
8
9
|
/// Map deep get
|
|
9
10
|
/// @author Hugo Giraudel
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
/// @group @carbon/layout
|
|
28
29
|
@function key-by-index($map, $index) {
|
|
29
30
|
$keys: map.keys($map);
|
|
30
|
-
@return nth($keys, $index);
|
|
31
|
+
@return list.nth($keys, $index);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
/// Pass in a map, and get the last one in the list back
|
|
@@ -37,5 +38,5 @@
|
|
|
37
38
|
/// @group @carbon/layout
|
|
38
39
|
@function last-map-item($map) {
|
|
39
40
|
$total-length: list.length($map);
|
|
40
|
-
@return map
|
|
41
|
+
@return map.get($map, carbon--key-by-index($map, $total-length));
|
|
41
42
|
}
|