@carbon/grid 11.28.1 → 11.29.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/README.md
CHANGED
|
@@ -98,9 +98,9 @@ Licensed under the [Apache 2.0 License](/LICENSE).
|
|
|
98
98
|
|
|
99
99
|
## <picture><source height="20" width="20" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-dark.svg"><source height="20" width="20" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"><img height="20" width="20" alt="IBM Telemetry" src="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"></picture> IBM Telemetry
|
|
100
100
|
|
|
101
|
-
This package uses IBM Telemetry to collect
|
|
102
|
-
package as a dependency you are agreeing to telemetry
|
|
103
|
-
see
|
|
101
|
+
This package uses IBM Telemetry to collect de-identified and anonymized metrics
|
|
102
|
+
data. By installing this package as a dependency you are agreeing to telemetry
|
|
103
|
+
collection. To opt out, see
|
|
104
104
|
[Opting out of IBM Telemetry data collection](https://github.com/ibm-telemetry/telemetry-js/tree/main#opting-out-of-ibm-telemetry-data-collection).
|
|
105
105
|
For more information on the data being collected, please see the
|
|
106
106
|
[IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
|
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.29.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.28.0",
|
|
39
39
|
"@ibm/telemetry-js": "^1.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@carbon/cli": "^11.
|
|
42
|
+
"@carbon/cli": "^11.23.0",
|
|
43
43
|
"rimraf": "^6.0.0"
|
|
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": "3141442e5ef367667c8f1d379a1b4a23f67992ad"
|
|
52
52
|
}
|
package/scss/_css-grid.scss
CHANGED
|
@@ -144,8 +144,24 @@
|
|
|
144
144
|
// Condensed
|
|
145
145
|
.#{$prefix}--css-grid--condensed {
|
|
146
146
|
--cds-grid-gutter: #{$grid-gutter-condensed};
|
|
147
|
-
--cds-grid-column-hang: #{math.div($grid-gutter, 2) -
|
|
148
|
-
|
|
147
|
+
--cds-grid-column-hang: #{math.div($grid-gutter, 2) - math.div(
|
|
148
|
+
$grid-gutter-condensed,
|
|
149
|
+
2
|
|
150
|
+
)};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// -----------------------------------------------------------------------------
|
|
154
|
+
// Alignment
|
|
155
|
+
// -----------------------------------------------------------------------------
|
|
156
|
+
|
|
157
|
+
// Start
|
|
158
|
+
.#{$prefix}--css-grid--start {
|
|
159
|
+
margin-inline-start: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// End
|
|
163
|
+
.#{$prefix}--css-grid--end {
|
|
164
|
+
margin-inline-end: 0;
|
|
149
165
|
}
|
|
150
166
|
|
|
151
167
|
// -----------------------------------------------------------------------------
|
|
@@ -179,8 +195,10 @@
|
|
|
179
195
|
.#{$prefix}--subgrid--condensed {
|
|
180
196
|
--cds-grid-gutter-start: #{math.div($grid-gutter-condensed, 2)};
|
|
181
197
|
--cds-grid-gutter-end: #{math.div($grid-gutter-condensed, 2)};
|
|
182
|
-
--cds-grid-column-hang: #{math.div($grid-gutter, 2) -
|
|
183
|
-
|
|
198
|
+
--cds-grid-column-hang: #{math.div($grid-gutter, 2) - math.div(
|
|
199
|
+
$grid-gutter-condensed,
|
|
200
|
+
2
|
|
201
|
+
)};
|
|
184
202
|
}
|
|
185
203
|
|
|
186
204
|
// -----------------------------------------------------------------------------
|
|
@@ -144,8 +144,24 @@
|
|
|
144
144
|
// Condensed
|
|
145
145
|
.#{$prefix}--css-grid--condensed {
|
|
146
146
|
--cds-grid-gutter: #{$grid-gutter-condensed};
|
|
147
|
-
--cds-grid-column-hang: #{math.div($grid-gutter, 2) -
|
|
148
|
-
|
|
147
|
+
--cds-grid-column-hang: #{math.div($grid-gutter, 2) - math.div(
|
|
148
|
+
$grid-gutter-condensed,
|
|
149
|
+
2
|
|
150
|
+
)};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// -----------------------------------------------------------------------------
|
|
154
|
+
// Alignment
|
|
155
|
+
// -----------------------------------------------------------------------------
|
|
156
|
+
|
|
157
|
+
// Start
|
|
158
|
+
.#{$prefix}--css-grid--start {
|
|
159
|
+
margin-inline-start: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// End
|
|
163
|
+
.#{$prefix}--css-grid--end {
|
|
164
|
+
margin-inline-end: 0;
|
|
149
165
|
}
|
|
150
166
|
|
|
151
167
|
// -----------------------------------------------------------------------------
|
|
@@ -179,8 +195,10 @@
|
|
|
179
195
|
.#{$prefix}--subgrid--condensed {
|
|
180
196
|
--cds-grid-gutter-start: #{math.div($grid-gutter-condensed, 2)};
|
|
181
197
|
--cds-grid-gutter-end: #{math.div($grid-gutter-condensed, 2)};
|
|
182
|
-
--cds-grid-column-hang: #{math.div($grid-gutter, 2) -
|
|
183
|
-
|
|
198
|
+
--cds-grid-column-hang: #{math.div($grid-gutter, 2) - math.div(
|
|
199
|
+
$grid-gutter-condensed,
|
|
200
|
+
2
|
|
201
|
+
)};
|
|
184
202
|
}
|
|
185
203
|
|
|
186
204
|
// -----------------------------------------------------------------------------
|
|
@@ -20,8 +20,8 @@ $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' {
|
|
24
|
-
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
23
|
+
@if math.unit($px) != 'px' {
|
|
24
|
+
@error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@return math.div($px, $base-font-size) * 1rem;
|
|
@@ -35,8 +35,8 @@ $base-font-size: 16px !default;
|
|
|
35
35
|
/// @deprecated
|
|
36
36
|
/// @group @carbon/layout
|
|
37
37
|
@function rem($px) {
|
|
38
|
-
@if unit($px) != 'px' {
|
|
39
|
-
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
38
|
+
@if math.unit($px) != 'px' {
|
|
39
|
+
@error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@return math.div($px, $base-font-size) * 1rem;
|
|
@@ -48,8 +48,8 @@ $base-font-size: 16px !default;
|
|
|
48
48
|
/// @access public
|
|
49
49
|
/// @group @carbon/layout
|
|
50
50
|
@function em($px) {
|
|
51
|
-
@if unit($px) != 'px' {
|
|
52
|
-
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
51
|
+
@if math.unit($px) != 'px' {
|
|
52
|
+
@error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
@return math.div($px, $base-font-size) * 1em;
|
package/telemetry.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json
|
|
2
2
|
version: 1
|
|
3
3
|
projectId: b5e1ce58-4ab2-4643-9282-fd1d6a0cecfe
|
|
4
|
-
endpoint: https://
|
|
4
|
+
endpoint: https://www-api.ibm.com/ibm-telemetry/v1/metrics
|
|
5
5
|
collect:
|
|
6
6
|
npm:
|
|
7
7
|
dependencies: null
|