@carbon/grid 11.47.0 → 11.48.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/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.47.0",
4
+ "version": "11.48.0",
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.45.0",
38
+ "@carbon/layout": "^11.46.0",
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": "57fdbc7bfad9349b5c4359c7d621e709cd4daa25"
51
+ "gitHead": "ce7846aab8a3a1afe9b03d2d07d267af6cdb6ac2"
52
52
  }
@@ -152,12 +152,33 @@
152
152
  @mixin breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
153
153
  $is-number-lower: meta.type-of($lower) == 'number';
154
154
  $is-number-upper: meta.type-of($upper) == 'number';
155
- $min: if($is-number-lower, $lower, map.get($breakpoints, $lower));
156
- $max: if($is-number-upper, $upper, map.get($breakpoints, $upper));
155
+ $min: null;
156
+ $max: null;
157
+
158
+ @if $is-number-lower {
159
+ $min: $lower;
160
+ } @else {
161
+ $min: map.get($breakpoints, $lower);
162
+ }
163
+
164
+ @if $is-number-upper {
165
+ $max: $upper;
166
+ } @else {
167
+ $max: map.get($breakpoints, $upper);
168
+ }
157
169
 
158
170
  @if $min and $max {
159
- $min-width: if(not $is-number-lower and $min, map.get($min, width), $min);
160
- $max-width: if(not $is-number-upper and $max, map.get($max, width), $max);
171
+ $min-width: $min;
172
+ $max-width: $max;
173
+
174
+ @if not $is-number-lower and meta.type-of($min) == 'map' {
175
+ $min-width: map.get($min, width);
176
+ }
177
+
178
+ @if not $is-number-upper and meta.type-of($max) == 'map' {
179
+ $max-width: map.get($max, width);
180
+ }
181
+
161
182
  @media (min-width: $min-width) and (max-width: $max-width) {
162
183
  @content;
163
184
  }
@@ -152,12 +152,33 @@
152
152
  @mixin breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
153
153
  $is-number-lower: meta.type-of($lower) == 'number';
154
154
  $is-number-upper: meta.type-of($upper) == 'number';
155
- $min: if($is-number-lower, $lower, map.get($breakpoints, $lower));
156
- $max: if($is-number-upper, $upper, map.get($breakpoints, $upper));
155
+ $min: null;
156
+ $max: null;
157
+
158
+ @if $is-number-lower {
159
+ $min: $lower;
160
+ } @else {
161
+ $min: map.get($breakpoints, $lower);
162
+ }
163
+
164
+ @if $is-number-upper {
165
+ $max: $upper;
166
+ } @else {
167
+ $max: map.get($breakpoints, $upper);
168
+ }
157
169
 
158
170
  @if $min and $max {
159
- $min-width: if(not $is-number-lower and $min, map.get($min, width), $min);
160
- $max-width: if(not $is-number-upper and $max, map.get($max, width), $max);
171
+ $min-width: $min;
172
+ $max-width: $max;
173
+
174
+ @if not $is-number-lower and meta.type-of($min) == 'map' {
175
+ $min-width: map.get($min, width);
176
+ }
177
+
178
+ @if not $is-number-upper and meta.type-of($max) == 'map' {
179
+ $max-width: map.get($max, width);
180
+ }
181
+
161
182
  @media (min-width: $min-width) and (max-width: $max-width) {
162
183
  @content;
163
184
  }