@carbon/layout 11.30.0 → 11.30.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/layout",
3
3
  "description": "Layout helpers for digital and software products using the Carbon Design System",
4
- "version": "11.30.0",
4
+ "version": "11.30.2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -40,5 +40,5 @@
40
40
  "dependencies": {
41
41
  "@ibm/telemetry-js": "^1.5.0"
42
42
  },
43
- "gitHead": "2a32901cb1c74c149164122f0742305440716d35"
43
+ "gitHead": "5c8f7e2a47c2bfb2865f1f2f4efe55b26f45ad5c"
44
44
  }
@@ -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
  }