@carbon/styles 1.40.0 → 1.41.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/css/styles.css +122 -13
- package/css/styles.min.css +1 -1
- package/package.json +8 -8
- package/scss/_zone.scss +2 -2
- package/scss/components/date-picker/_date-picker.scss +4 -1
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +6 -0
- package/scss/components/slider/_slider.scss +124 -13
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.41.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@carbon/colors": "^11.
|
|
41
|
+
"@carbon/colors": "^11.20.0-rc.0",
|
|
42
42
|
"@carbon/feature-flags": "^0.16.0",
|
|
43
|
-
"@carbon/grid": "^11.
|
|
44
|
-
"@carbon/layout": "^11.
|
|
45
|
-
"@carbon/motion": "^11.
|
|
46
|
-
"@carbon/themes": "^11.
|
|
47
|
-
"@carbon/type": "^11.
|
|
43
|
+
"@carbon/grid": "^11.21.0-rc.0",
|
|
44
|
+
"@carbon/layout": "^11.20.0-rc.0",
|
|
45
|
+
"@carbon/motion": "^11.16.0-rc.0",
|
|
46
|
+
"@carbon/themes": "^11.26.0-rc.0",
|
|
47
|
+
"@carbon/type": "^11.25.0-rc.0",
|
|
48
48
|
"@ibm/plex": "6.0.0-next.6"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"scss/**/*.css",
|
|
66
66
|
"css/**/*.css"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "da28d28a2d3a34503099e25255076efd3da4db9f"
|
|
69
69
|
}
|
package/scss/_zone.scss
CHANGED
|
@@ -36,8 +36,8 @@ $-components: (
|
|
|
36
36
|
|
|
37
37
|
@each $name, $theme in $zones {
|
|
38
38
|
.#{config.$prefix}--#{'' + $name} {
|
|
39
|
-
background: var(
|
|
40
|
-
color: var(
|
|
39
|
+
background-color: custom-property.get-var('background');
|
|
40
|
+
color: custom-property.get-var('text-primary');
|
|
41
41
|
|
|
42
42
|
@each $key, $value in $theme {
|
|
43
43
|
@if type-of($value) == color {
|
|
@@ -51,11 +51,14 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.#{$prefix}--date-picker-input__wrapper {
|
|
54
|
-
position: relative;
|
|
55
54
|
display: flex;
|
|
56
55
|
align-items: center;
|
|
57
56
|
}
|
|
58
57
|
|
|
58
|
+
.#{$prefix}--date-picker-input__wrapper span {
|
|
59
|
+
position: relative;
|
|
60
|
+
}
|
|
61
|
+
|
|
59
62
|
.#{$prefix}--date-picker.#{$prefix}--date-picker--simple
|
|
60
63
|
.#{$prefix}--date-picker__input,
|
|
61
64
|
.#{$prefix}--date-picker.#{$prefix}--date-picker--simple .#{$prefix}--label {
|
|
@@ -60,6 +60,12 @@
|
|
|
60
60
|
white-space: nowrap;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
.#{$prefix}--date-picker--fluid
|
|
64
|
+
.#{$prefix}--date-picker-input__wrapper
|
|
65
|
+
> span {
|
|
66
|
+
inline-size: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
63
69
|
.#{$prefix}--date-picker--fluid
|
|
64
70
|
.#{$prefix}--date-picker-input__wrapper
|
|
65
71
|
.#{$prefix}--date-picker__input {
|
|
@@ -30,17 +30,21 @@
|
|
|
30
30
|
position: relative;
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
|
+
gap: 1rem;
|
|
33
34
|
user-select: none;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
.#{$prefix}--slider {
|
|
37
38
|
position: relative;
|
|
38
39
|
padding: $spacing-05 0;
|
|
39
|
-
margin: 0 $spacing-05;
|
|
40
40
|
cursor: pointer;
|
|
41
41
|
inline-size: 100%;
|
|
42
42
|
max-inline-size: convert.to-rem(640px);
|
|
43
43
|
min-inline-size: convert.to-rem(200px);
|
|
44
|
+
|
|
45
|
+
.#{$prefix}--slider-container--two-handles & {
|
|
46
|
+
margin-inline: rem(4px);
|
|
47
|
+
}
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
.#{$prefix}--slider__range-label {
|
|
@@ -48,10 +52,6 @@
|
|
|
48
52
|
|
|
49
53
|
color: $text-primary;
|
|
50
54
|
white-space: nowrap;
|
|
51
|
-
|
|
52
|
-
&:last-of-type {
|
|
53
|
-
margin-inline-end: $spacing-05;
|
|
54
|
-
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.#{$prefix}--slider__track {
|
|
@@ -117,10 +117,102 @@
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
.#{$prefix}--slider__thumb-icon {
|
|
121
|
+
fill: $layer-selected-inverse;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.#{$prefix}--slider__thumb-icon--focus {
|
|
125
|
+
display: none;
|
|
126
|
+
fill: $interactive;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.#{$prefix}--slider__thumb--lower,
|
|
130
|
+
.#{$prefix}--slider__thumb--upper {
|
|
131
|
+
display: block;
|
|
132
|
+
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
133
|
+
border-radius: unset;
|
|
134
|
+
background-color: transparent;
|
|
135
|
+
block-size: 24px;
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
inline-size: 16px;
|
|
138
|
+
transform: translate(-100%, -50%);
|
|
139
|
+
transition: none;
|
|
140
|
+
|
|
141
|
+
&::before {
|
|
142
|
+
position: absolute;
|
|
143
|
+
z-index: -1;
|
|
144
|
+
display: block;
|
|
145
|
+
background: $background;
|
|
146
|
+
block-size: convert.to-rem(2px);
|
|
147
|
+
content: '';
|
|
148
|
+
inline-size: convert.to-rem(6px);
|
|
149
|
+
inset-block-start: calc(50% - #{convert.to-rem(2px) / 2});
|
|
150
|
+
inset-inline-end: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&:hover {
|
|
154
|
+
transform: translate(-100%, -50%);
|
|
155
|
+
|
|
156
|
+
.#{$prefix}--slider__thumb-icon {
|
|
157
|
+
fill: $text-secondary;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:active {
|
|
162
|
+
box-shadow: none;
|
|
163
|
+
transform: translate(-100%, -50%);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:focus {
|
|
167
|
+
background-color: transparent;
|
|
168
|
+
box-shadow: none;
|
|
169
|
+
transform: translate(-100%, -50%);
|
|
170
|
+
|
|
171
|
+
.#{$prefix}--slider__thumb-icon {
|
|
172
|
+
display: none;
|
|
173
|
+
fill: $interactive;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.#{$prefix}--slider__thumb-icon--focus {
|
|
177
|
+
display: block;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.#{$prefix}--slider__thumb--lower:focus::before,
|
|
183
|
+
.#{$prefix}--slider__thumb--upper:focus::before {
|
|
184
|
+
inline-size: 100%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.#{$prefix}--slider__thumb--upper {
|
|
188
|
+
transform: translate(0, -50%);
|
|
189
|
+
|
|
190
|
+
&::before {
|
|
191
|
+
inset-inline-end: auto;
|
|
192
|
+
inset-inline-start: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:hover {
|
|
196
|
+
transform: translate(0, -50%);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&:active {
|
|
200
|
+
transform: translate(0, -50%);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&:focus {
|
|
204
|
+
transform: translate(0, -50%);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
120
208
|
.#{$prefix}--slider__input {
|
|
121
209
|
display: none;
|
|
122
210
|
}
|
|
123
211
|
|
|
212
|
+
.#{$prefix}--slider-text-input-wrapper {
|
|
213
|
+
position: relative;
|
|
214
|
+
}
|
|
215
|
+
|
|
124
216
|
.#{$prefix}--slider-text-input,
|
|
125
217
|
.#{$prefix}-slider-text-input {
|
|
126
218
|
-moz-appearance: textfield;
|
|
@@ -139,7 +231,7 @@
|
|
|
139
231
|
}
|
|
140
232
|
|
|
141
233
|
.#{$prefix}--slider__thumb:focus ~ .#{$prefix}--slider__filled-track {
|
|
142
|
-
background-color: $interactive;
|
|
234
|
+
background-color: $border-interactive;
|
|
143
235
|
}
|
|
144
236
|
|
|
145
237
|
// Invalid & warn state
|
|
@@ -161,7 +253,6 @@
|
|
|
161
253
|
.#{$prefix}--slider__validation-msg.#{$prefix}--form-requirement {
|
|
162
254
|
display: block;
|
|
163
255
|
overflow: visible;
|
|
164
|
-
margin-block-start: 0;
|
|
165
256
|
max-block-size: 100%;
|
|
166
257
|
}
|
|
167
258
|
|
|
@@ -241,15 +332,26 @@
|
|
|
241
332
|
cursor: default;
|
|
242
333
|
}
|
|
243
334
|
|
|
244
|
-
.#{$prefix}--slider--readonly .#{$prefix}--slider__thumb {
|
|
335
|
+
.#{$prefix}--slider-container--readonly .#{$prefix}--slider__thumb {
|
|
245
336
|
block-size: 0;
|
|
246
337
|
inline-size: 0;
|
|
338
|
+
|
|
339
|
+
&::before,
|
|
340
|
+
&::after {
|
|
341
|
+
display: none;
|
|
342
|
+
}
|
|
247
343
|
}
|
|
248
344
|
|
|
249
|
-
.#{$prefix}--slider--readonly
|
|
345
|
+
.#{$prefix}--slider-container--readonly .#{$prefix}--slider-text-input {
|
|
250
346
|
background-color: transparent;
|
|
251
347
|
}
|
|
252
348
|
|
|
349
|
+
.#{$prefix}--slider__status-msg.#{$prefix}--form-requirement {
|
|
350
|
+
display: block;
|
|
351
|
+
overflow: visible;
|
|
352
|
+
max-block-size: 100%;
|
|
353
|
+
}
|
|
354
|
+
|
|
253
355
|
// Skeleton state
|
|
254
356
|
.#{$prefix}--slider-container.#{$prefix}--skeleton
|
|
255
357
|
.#{$prefix}--slider__range-label {
|
|
@@ -265,11 +367,20 @@
|
|
|
265
367
|
pointer-events: none;
|
|
266
368
|
}
|
|
267
369
|
|
|
268
|
-
.#{$prefix}--slider-container.#{$prefix}--skeleton
|
|
370
|
+
.#{$prefix}--slider-container.#{$prefix}--skeleton {
|
|
269
371
|
.#{$prefix}--slider__thumb {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
372
|
+
cursor: default;
|
|
373
|
+
inset-inline-start: 50%;
|
|
374
|
+
pointer-events: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.#{$prefix}--slider__thumb--lower {
|
|
378
|
+
inset-inline-start: 0;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.#{$prefix}--slider__thumb--upper {
|
|
382
|
+
inset-inline-start: 100%;
|
|
383
|
+
}
|
|
273
384
|
}
|
|
274
385
|
|
|
275
386
|
// Windows HCM fix
|