@carbon/grid 11.46.0 → 11.48.0-rc.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.
|
|
4
|
+
"version": "11.48.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@carbon/layout": "^11.
|
|
38
|
+
"@carbon/layout": "^11.46.0-rc.0",
|
|
39
39
|
"@ibm/telemetry-js": "^1.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@carbon/cli": "^11.
|
|
42
|
+
"@carbon/cli": "^11.38.0",
|
|
43
43
|
"rimraf": "^6.0.1"
|
|
44
44
|
},
|
|
45
45
|
"eyeglass": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sassDir": "scss",
|
|
49
49
|
"needs": "^1.3.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "8263c72357fc43c00e66c9030698f759ef7977ce"
|
|
52
52
|
}
|
package/scss/_breakpoint.scss
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
/// Get the value of the next breakpoint, or null for the last breakpoint
|
|
26
26
|
/// @param {String} $name - The name of the breakpoint
|
|
27
27
|
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
28
|
-
/// @param {List} $breakpoint-names [map
|
|
28
|
+
/// @param {List} $breakpoint-names [map.keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
29
29
|
/// @return {String}
|
|
30
30
|
/// @access public
|
|
31
31
|
/// @group @carbon/layout
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
/// Get the value of the previous breakpoint, or null for the first breakpoint
|
|
45
45
|
/// @param {String} $name - The name of the breakpoint
|
|
46
46
|
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
47
|
-
/// @param {List} $breakpoint-names [map
|
|
47
|
+
/// @param {List} $breakpoint-names [map.keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
48
48
|
/// @return {String}
|
|
49
49
|
/// @access public
|
|
50
50
|
/// @group @carbon/layout
|
|
@@ -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:
|
|
156
|
-
$max:
|
|
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:
|
|
160
|
-
$max-width:
|
|
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
|
}
|
package/scss/_flex-grid.scss
CHANGED
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
@include -make-col-ready($gutter);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
@each $breakpoint in map
|
|
103
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
104
104
|
$infix: breakpoint-infix($breakpoint);
|
|
105
105
|
$columns: map.get(map.get($breakpoints, $breakpoint), columns);
|
|
106
106
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
/// Get the value of the next breakpoint, or null for the last breakpoint
|
|
26
26
|
/// @param {String} $name - The name of the breakpoint
|
|
27
27
|
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
28
|
-
/// @param {List} $breakpoint-names [map
|
|
28
|
+
/// @param {List} $breakpoint-names [map.keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
29
29
|
/// @return {String}
|
|
30
30
|
/// @access public
|
|
31
31
|
/// @group @carbon/layout
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
/// Get the value of the previous breakpoint, or null for the first breakpoint
|
|
45
45
|
/// @param {String} $name - The name of the breakpoint
|
|
46
46
|
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
47
|
-
/// @param {List} $breakpoint-names [map
|
|
47
|
+
/// @param {List} $breakpoint-names [map.keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
48
48
|
/// @return {String}
|
|
49
49
|
/// @access public
|
|
50
50
|
/// @group @carbon/layout
|
|
@@ -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:
|
|
156
|
-
$max:
|
|
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:
|
|
160
|
-
$max-width:
|
|
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
|
}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
@include -make-col-ready($gutter);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
@each $breakpoint in map
|
|
103
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
104
104
|
$infix: breakpoint-infix($breakpoint);
|
|
105
105
|
$columns: map.get(map.get($breakpoints, $breakpoint), columns);
|
|
106
106
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@use 'sass:meta';
|
|
9
9
|
@use 'sass:math';
|
|
10
|
+
@use 'sass:map';
|
|
10
11
|
|
|
11
12
|
@use 'config' as *;
|
|
12
13
|
@use 'breakpoint' as *;
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
@include -make-col-ready($gutter);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
@each $breakpoint in map
|
|
98
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
98
99
|
$infix: breakpoint-infix($breakpoint);
|
|
99
100
|
$columns: map.get(map.get($breakpoints, $breakpoint), columns);
|
|
100
101
|
|
package/scss/_mixins.scss
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@use 'sass:meta';
|
|
9
9
|
@use 'sass:math';
|
|
10
|
+
@use 'sass:map';
|
|
10
11
|
|
|
11
12
|
@use 'config' as *;
|
|
12
13
|
@use 'breakpoint' as *;
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
@include -make-col-ready($gutter);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
@each $breakpoint in map
|
|
98
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
98
99
|
$infix: breakpoint-infix($breakpoint);
|
|
99
100
|
$columns: map.get(map.get($breakpoints, $breakpoint), columns);
|
|
100
101
|
|