@carbon/grid 11.32.0 → 11.32.1

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.0",
4
+ "version": "11.32.1",
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.0",
38
+ "@carbon/layout": "^11.30.1",
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": "2a32901cb1c74c149164122f0742305440716d35"
51
+ "gitHead": "538413f7766dea6ef4bc4eb5e752b0119779f10a"
52
52
  }
@@ -19,7 +19,7 @@
19
19
  /// @group @carbon/layout
20
20
  @function -key-by-index($map, $index) {
21
21
  $keys: map.keys($map);
22
- @return nth($keys, $index);
22
+ @return list.nth($keys, $index);
23
23
  }
24
24
 
25
25
  /// Get the value of the next breakpoint, or null for the last breakpoint
@@ -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-get($map, -key-by-index($map, $total-length));
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
@@ -19,7 +19,7 @@
19
19
  /// @group @carbon/layout
20
20
  @function -key-by-index($map, $index) {
21
21
  $keys: map.keys($map);
22
- @return nth($keys, $index);
22
+ @return list.nth($keys, $index);
23
23
  }
24
24
 
25
25
  /// Get the value of the next breakpoint, or null for the last breakpoint
@@ -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-get($map, -key-by-index($map, $total-length));
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-get($map, carbon--key-by-index($map, $total-length));
41
+ @return map.get($map, carbon--key-by-index($map, $total-length));
41
42
  }