material-inspired-component-library 8.0.1 → 8.1.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 +4 -0
- package/components/alert/index.scss +2 -2
- package/components/appbar/index.scss +2 -2
- package/components/bottomsheet/index.scss +3 -3
- package/components/button/index.scss +88 -97
- package/components/card/index.scss +10 -3
- package/components/checkbox/index.scss +2 -2
- package/components/datepicker/index.scss +3 -3
- package/components/dialog/index.scss +3 -3
- package/components/iconbutton/index.scss +6 -6
- package/components/list/index.scss +13 -11
- package/components/menu/index.scss +3 -3
- package/components/navigationrail/index.scss +2 -2
- package/components/radio/index.scss +2 -2
- package/components/select/index.scss +4 -2
- package/components/shapes/README.md +94 -0
- package/components/{shape → shapes}/_paths.generated.scss +0 -6
- package/components/{shape → shapes}/index.scss +10 -10
- package/components/{shape → shapes}/master.scss +3 -3
- package/components/sidesheet/index.scss +3 -3
- package/components/slider/index.scss +5 -5
- package/components/snackbar/index.scss +2 -2
- package/components/switch/index.scss +2 -2
- package/components/textfield/index.scss +2 -2
- package/components/timepicker/index.scss +3 -3
- package/dist/button.css +1 -1
- package/dist/card.css +1 -1
- package/dist/list.css +1 -1
- package/dist/micl.css +1 -1
- package/dist/select.css +1 -1
- package/dist/shapes.css +1 -0
- package/docs/index.html +105 -90
- package/docs/menu.html +1 -1
- package/docs/micl.css +1 -1
- package/docs/shapes.css +1 -0
- package/docs/shapes.html +49 -40
- package/foundations/layout/index.scss +2 -2
- package/package.json +2 -1
- package/styles/elevation.scss +10 -7
- package/styles/motion.scss +12 -19
- package/styles/{shapes.scss → shape.scss} +6 -4
- package/styles/statelayer.scss +32 -45
- package/styles/typography.scss +4 -5
- package/styles.scss +1 -4
- package/tools/shapes/check.mjs +1 -1
- package/tools/shapes/generate.mjs +2 -8
- package/webpack.config.js +2 -2
- package/components/shape/README.md +0 -103
- package/dist/shape.css +0 -1
- package/docs/shape.css +0 -1
- /package/dist/{shape.js → shapes.js} +0 -0
- /package/docs/{shape.js → shapes.js} +0 -0
package/README.md
CHANGED
|
@@ -114,6 +114,7 @@ The library currently consists of the following components:
|
|
|
114
114
|
- [x] [Navigation rail](components/navigationrail/README.md)
|
|
115
115
|
- [x] [Radio button](components/radio/README.md)
|
|
116
116
|
- [x] [Select](components/select/README.md)
|
|
117
|
+
- [x] [Shapes](components/shapes/README.md)
|
|
117
118
|
- [x] [Side sheet](components/sidesheet/README.md)
|
|
118
119
|
- [x] [Slider](components/slider/README.md)
|
|
119
120
|
- [x] [Snackbar](components/snackbar/README.md)
|
|
@@ -124,6 +125,9 @@ The library currently consists of the following components:
|
|
|
124
125
|
|
|
125
126
|
## Change Log ↪️
|
|
126
127
|
|
|
128
|
+
### 8.1.0 (24.06.2026)
|
|
129
|
+
- **Shapes**: The Material shape library supported as the 'Shapes' component.
|
|
130
|
+
|
|
127
131
|
### 8.0.0 (05.05.2026)
|
|
128
132
|
- **BREAKING**: Renamed many CSS custom properties from --md-sys- to --md-comp-.
|
|
129
133
|
- **List, Menu, Accordion, Select**: Aligned with latest MD3 spec.
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
|
|
22
22
|
@use '../../foundations';
|
|
23
|
-
@use '../../styles/
|
|
23
|
+
@use '../../styles/shape';
|
|
24
24
|
@use '../../styles/typography';
|
|
25
25
|
|
|
26
|
-
@include
|
|
26
|
+
@include shape.corner('small');
|
|
27
27
|
|
|
28
28
|
@include typography.scale('title-medium');
|
|
29
29
|
@include typography.scale('body-medium');
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../foundations/layout';
|
|
24
24
|
@use '../../styles/elevation';
|
|
25
|
-
@use '../../styles/
|
|
25
|
+
@use '../../styles/shape';
|
|
26
26
|
@use '../../styles/statelayer';
|
|
27
27
|
@use '../../styles/typography';
|
|
28
28
|
|
|
29
29
|
@include elevation.level(0);
|
|
30
30
|
@include elevation.level(2);
|
|
31
31
|
|
|
32
|
-
@include
|
|
32
|
+
@include shape.corner('none');
|
|
33
33
|
|
|
34
34
|
@include typography.scale('display-small');
|
|
35
35
|
@include typography.scale('headline-medium');
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/elevation';
|
|
24
24
|
@use '../../styles/motion';
|
|
25
|
-
@use '../../styles/
|
|
25
|
+
@use '../../styles/shape';
|
|
26
26
|
@use '../../styles/statelayer';
|
|
27
27
|
|
|
28
28
|
@include elevation.level(1);
|
|
29
29
|
|
|
30
|
-
@include
|
|
31
|
-
@include
|
|
30
|
+
@include shape.corner('extra-large');
|
|
31
|
+
@include shape.corner('small');
|
|
32
32
|
|
|
33
33
|
@include statelayer.token('focus-indicator-thickness');
|
|
34
34
|
@include statelayer.token('focus-indicator-outer-offset');
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/elevation';
|
|
24
24
|
@use '../../styles/motion';
|
|
25
|
-
@use '../../styles/
|
|
25
|
+
@use '../../styles/shape';
|
|
26
26
|
@use '../../styles/statelayer';
|
|
27
27
|
@use '../../styles/typography';
|
|
28
28
|
|
|
29
29
|
@include elevation.level(0);
|
|
30
30
|
@include elevation.level(1);
|
|
31
31
|
|
|
32
|
-
@include
|
|
33
|
-
@include
|
|
34
|
-
@include
|
|
35
|
-
@include
|
|
32
|
+
@include shape.corner('small');
|
|
33
|
+
@include shape.corner('medium');
|
|
34
|
+
@include shape.corner('large');
|
|
35
|
+
@include shape.corner('extra-large');
|
|
36
36
|
|
|
37
37
|
@include statelayer.token('hover-state-layer-opacity');
|
|
38
38
|
@include statelayer.token('focus-state-layer-opacity');
|
|
@@ -49,35 +49,32 @@
|
|
|
49
49
|
@include typography.scale('title-medium');
|
|
50
50
|
@include typography.scale('label-large');
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
button.micl-button-outlined-m,
|
|
79
|
-
button.micl-button-outlined-l,
|
|
80
|
-
button.micl-button-outlined-xl {
|
|
52
|
+
.micl-button-text-xs,
|
|
53
|
+
.micl-button-text-s,
|
|
54
|
+
.micl-button-text-m,
|
|
55
|
+
.micl-button-text-l,
|
|
56
|
+
.micl-button-text-l,
|
|
57
|
+
.micl-button-text-xl,
|
|
58
|
+
.micl-button-elevated-xs,
|
|
59
|
+
.micl-button-elevated-s,
|
|
60
|
+
.micl-button-elevated-m,
|
|
61
|
+
.micl-button-elevated-l,
|
|
62
|
+
.micl-button-elevated-xl,
|
|
63
|
+
.micl-button-filled-xs,
|
|
64
|
+
.micl-button-filled-s,
|
|
65
|
+
.micl-button-filled-m,
|
|
66
|
+
.micl-button-filled-l,
|
|
67
|
+
.micl-button-filled-xl,
|
|
68
|
+
.micl-button-tonal-xs,
|
|
69
|
+
.micl-button-tonal-s,
|
|
70
|
+
.micl-button-tonal-m,
|
|
71
|
+
.micl-button-tonal-l,
|
|
72
|
+
.micl-button-tonal-xl,
|
|
73
|
+
.micl-button-outlined-xs,
|
|
74
|
+
.micl-button-outlined-s,
|
|
75
|
+
.micl-button-outlined-m,
|
|
76
|
+
.micl-button-outlined-l,
|
|
77
|
+
.micl-button-outlined-xl {
|
|
81
78
|
--md-sys-button-motion-effects: #{motion.$md-sys-motion-expressive-fast-spatial};
|
|
82
79
|
--md-sys-button-motion-duration: #{motion.$md-sys-motion-expressive-fast-spatial-duration};
|
|
83
80
|
--md-sys-button-motion-duration-reverse: #{motion.$md-sys-motion-expressive-fast-spatial-duration};
|
|
@@ -135,12 +132,11 @@ button.micl-button-outlined-xl {
|
|
|
135
132
|
}
|
|
136
133
|
}
|
|
137
134
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
button.micl-button-outlined-xs {
|
|
135
|
+
.micl-button-text-xs,
|
|
136
|
+
.micl-button-elevated-xs,
|
|
137
|
+
.micl-button-filled-xs,
|
|
138
|
+
.micl-button-tonal-xs,
|
|
139
|
+
.micl-button-outlined-xs {
|
|
144
140
|
@include typography.label-large;
|
|
145
141
|
|
|
146
142
|
--micl-width: 32px;
|
|
@@ -183,12 +179,11 @@ button.micl-button-outlined-xs {
|
|
|
183
179
|
}
|
|
184
180
|
}
|
|
185
181
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
button.micl-button-outlined-s {
|
|
182
|
+
.micl-button-text-s,
|
|
183
|
+
.micl-button-elevated-s,
|
|
184
|
+
.micl-button-filled-s,
|
|
185
|
+
.micl-button-tonal-s,
|
|
186
|
+
.micl-button-outlined-s {
|
|
192
187
|
@include typography.label-large;
|
|
193
188
|
|
|
194
189
|
--micl-width: 40px;
|
|
@@ -230,12 +225,11 @@ button.micl-button-outlined-s {
|
|
|
230
225
|
}
|
|
231
226
|
}
|
|
232
227
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
button.micl-button-outlined-m {
|
|
228
|
+
.micl-button-text-m,
|
|
229
|
+
.micl-button-elevated-m,
|
|
230
|
+
.micl-button-filled-m,
|
|
231
|
+
.micl-button-tonal-m,
|
|
232
|
+
.micl-button-outlined-m {
|
|
239
233
|
@include typography.title-medium;
|
|
240
234
|
|
|
241
235
|
--micl-width: 56px;
|
|
@@ -268,11 +262,11 @@ button.micl-button-outlined-m {
|
|
|
268
262
|
}
|
|
269
263
|
}
|
|
270
264
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
265
|
+
.micl-button-text-l,
|
|
266
|
+
.micl-button-elevated-l,
|
|
267
|
+
.micl-button-filled-l,
|
|
268
|
+
.micl-button-tonal-l,
|
|
269
|
+
.micl-button-outlined-l {
|
|
276
270
|
@include typography.headline-small;
|
|
277
271
|
|
|
278
272
|
--micl-width: 96px;
|
|
@@ -305,11 +299,11 @@ button.micl-button-outlined-l {
|
|
|
305
299
|
}
|
|
306
300
|
}
|
|
307
301
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
302
|
+
.micl-button-text-xl,
|
|
303
|
+
.micl-button-elevated-xl,
|
|
304
|
+
.micl-button-filled-xl,
|
|
305
|
+
.micl-button-tonal-xl,
|
|
306
|
+
.micl-button-outlined-xl {
|
|
313
307
|
@include typography.headline-large;
|
|
314
308
|
|
|
315
309
|
--micl-width: 136px;
|
|
@@ -342,14 +336,11 @@ button.micl-button-outlined-xl {
|
|
|
342
336
|
}
|
|
343
337
|
}
|
|
344
338
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
a.micl-button-text-m,
|
|
351
|
-
button.micl-button-text-l,
|
|
352
|
-
button.micl-button-text-xl {
|
|
339
|
+
.micl-button-text-xs,
|
|
340
|
+
.micl-button-text-s,
|
|
341
|
+
.micl-button-text-m,
|
|
342
|
+
.micl-button-text-l,
|
|
343
|
+
.micl-button-text-xl {
|
|
353
344
|
--statelayer-color: var(--md-sys-color-primary);
|
|
354
345
|
|
|
355
346
|
background-color: transparent;
|
|
@@ -373,11 +364,11 @@ button.micl-button-text-xl {
|
|
|
373
364
|
}
|
|
374
365
|
}
|
|
375
366
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
367
|
+
.micl-button-elevated-xs,
|
|
368
|
+
.micl-button-elevated-s,
|
|
369
|
+
.micl-button-elevated-m,
|
|
370
|
+
.micl-button-elevated-l,
|
|
371
|
+
.micl-button-elevated-xl {
|
|
381
372
|
--statelayer-color: var(--md-sys-color-primary);
|
|
382
373
|
|
|
383
374
|
background-color: var(--md-sys-color-surface-container-low);
|
|
@@ -410,20 +401,20 @@ button.micl-button-elevated-xl {
|
|
|
410
401
|
}
|
|
411
402
|
}
|
|
412
403
|
}
|
|
413
|
-
|
|
404
|
+
.micl-button-elevated-xs {
|
|
414
405
|
block-size: 32px;
|
|
415
406
|
border: none;
|
|
416
407
|
}
|
|
417
|
-
|
|
408
|
+
.micl-button-elevated-s {
|
|
418
409
|
block-size: 40px;
|
|
419
410
|
border: none;
|
|
420
411
|
}
|
|
421
412
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
413
|
+
.micl-button-filled-xs,
|
|
414
|
+
.micl-button-filled-s,
|
|
415
|
+
.micl-button-filled-m,
|
|
416
|
+
.micl-button-filled-l,
|
|
417
|
+
.micl-button-filled-xl {
|
|
427
418
|
--statelayer-color: var(--md-sys-color-on-primary);
|
|
428
419
|
|
|
429
420
|
background-color: var(--md-sys-color-primary);
|
|
@@ -457,11 +448,11 @@ button.micl-button-filled-xl {
|
|
|
457
448
|
}
|
|
458
449
|
}
|
|
459
450
|
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
451
|
+
.micl-button-tonal-xs,
|
|
452
|
+
.micl-button-tonal-s,
|
|
453
|
+
.micl-button-tonal-m,
|
|
454
|
+
.micl-button-tonal-l,
|
|
455
|
+
.micl-button-tonal-xl {
|
|
465
456
|
--statelayer-color: var(--md-sys-color-on-secondary-container);
|
|
466
457
|
|
|
467
458
|
background-color: var(--md-sys-color-secondary-container);
|
|
@@ -494,11 +485,11 @@ button.micl-button-tonal-xl {
|
|
|
494
485
|
}
|
|
495
486
|
}
|
|
496
487
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
488
|
+
.micl-button-outlined-xs,
|
|
489
|
+
.micl-button-outlined-s,
|
|
490
|
+
.micl-button-outlined-m,
|
|
491
|
+
.micl-button-outlined-l,
|
|
492
|
+
.micl-button-outlined-xl {
|
|
502
493
|
--statelayer-color: var(--md-sys-color-on-surface-variant);
|
|
503
494
|
|
|
504
495
|
background-color: transparent;
|
|
@@ -530,14 +521,14 @@ button.micl-button-outlined-xl {
|
|
|
530
521
|
}
|
|
531
522
|
}
|
|
532
523
|
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
524
|
+
.micl-button-outlined-xs,
|
|
525
|
+
.micl-button-outlined-s,
|
|
526
|
+
.micl-button-outlined-m {
|
|
536
527
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
537
528
|
}
|
|
538
|
-
|
|
529
|
+
.micl-button-outlined-l {
|
|
539
530
|
border: 2px solid var(--md-sys-color-outline-variant);
|
|
540
531
|
}
|
|
541
|
-
|
|
532
|
+
.micl-button-outlined-xl {
|
|
542
533
|
border: 3px solid var(--md-sys-color-outline-variant);
|
|
543
534
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
@use '../../foundations';
|
|
24
24
|
@use '../../styles/elevation';
|
|
25
25
|
@use '../../styles/motion';
|
|
26
|
-
@use '../../styles/
|
|
26
|
+
@use '../../styles/shape';
|
|
27
27
|
@use '../../styles/statelayer';
|
|
28
28
|
@use '../../styles/typography';
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@include elevation.level(3);
|
|
34
34
|
@include elevation.level(4);
|
|
35
35
|
|
|
36
|
-
@include
|
|
36
|
+
@include shape.corner('medium');
|
|
37
37
|
|
|
38
38
|
@include statelayer.token('hover-state-layer-opacity');
|
|
39
39
|
@include statelayer.token('focus-state-layer-opacity');
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
|
|
237
237
|
.micl-card__image {
|
|
238
238
|
grid-column: 1;
|
|
239
|
-
grid-row: 1 /
|
|
239
|
+
grid-row: 1 / span 4;
|
|
240
240
|
block-size: 100%;
|
|
241
241
|
background-size: cover;
|
|
242
242
|
}
|
|
@@ -408,4 +408,11 @@
|
|
|
408
408
|
gap: 8px;
|
|
409
409
|
padding-block: 0 var(--md-comp-card-content-padding-block, 16px);
|
|
410
410
|
padding-inline: var(--md-comp-card-padding-inline, 16px);
|
|
411
|
+
|
|
412
|
+
&.micl-card__actions--outset-start {
|
|
413
|
+
padding-inline-start: calc(var(--md-comp-card-padding-inline, 16px) - 16px);
|
|
414
|
+
}
|
|
415
|
+
&.micl-card__actions--outset-end {
|
|
416
|
+
padding-inline-end: calc(var(--md-comp-card-padding-inline, 16px) - 16px);
|
|
417
|
+
}
|
|
411
418
|
}
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/motion';
|
|
24
|
-
@use '../../styles/
|
|
24
|
+
@use '../../styles/shape';
|
|
25
25
|
@use '../../styles/statelayer';
|
|
26
26
|
@use '../../styles/typography';
|
|
27
27
|
|
|
28
|
-
@include
|
|
28
|
+
@include shape.corner('full');
|
|
29
29
|
|
|
30
30
|
@include statelayer.token('layer-size');
|
|
31
31
|
@include statelayer.token('hover-state-layer-opacity');
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/motion';
|
|
24
|
-
@use '../../styles/
|
|
24
|
+
@use '../../styles/shape';
|
|
25
25
|
@use '../../styles/statelayer';
|
|
26
26
|
@use '../../styles/typography';
|
|
27
27
|
|
|
28
|
-
@include
|
|
29
|
-
@include
|
|
28
|
+
@include shape.corner('large');
|
|
29
|
+
@include shape.corner('full');
|
|
30
30
|
|
|
31
31
|
@include statelayer.token('hover-state-layer-opacity');
|
|
32
32
|
@include statelayer.token('focus-state-layer-opacity');
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/elevation';
|
|
24
24
|
@use '../../styles/motion';
|
|
25
|
-
@use '../../styles/
|
|
25
|
+
@use '../../styles/shape';
|
|
26
26
|
@use '../../styles/statelayer';
|
|
27
27
|
@use '../../styles/typography';
|
|
28
28
|
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
@include elevation.level(2);
|
|
31
31
|
@include elevation.level(3);
|
|
32
32
|
|
|
33
|
-
@include
|
|
34
|
-
@include
|
|
33
|
+
@include shape.corner('none');
|
|
34
|
+
@include shape.corner('extra-large');
|
|
35
35
|
|
|
36
36
|
@include statelayer.token('hover-state-layer-opacity');
|
|
37
37
|
@include statelayer.token('backdrop-opacity');
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/elevation';
|
|
24
24
|
@use '../../styles/motion';
|
|
25
|
-
@use '../../styles/
|
|
25
|
+
@use '../../styles/shape';
|
|
26
26
|
@use '../../styles/statelayer';
|
|
27
27
|
|
|
28
28
|
@include elevation.level(0);
|
|
29
29
|
|
|
30
|
-
@include
|
|
31
|
-
@include
|
|
32
|
-
@include
|
|
33
|
-
@include
|
|
34
|
-
@include
|
|
30
|
+
@include shape.corner('small');
|
|
31
|
+
@include shape.corner('medium');
|
|
32
|
+
@include shape.corner('large');
|
|
33
|
+
@include shape.corner('extra-large');
|
|
34
|
+
@include shape.corner('full');
|
|
35
35
|
|
|
36
36
|
@include statelayer.token('hover-state-layer-opacity');
|
|
37
37
|
@include statelayer.token('focus-state-layer-opacity');
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/elevation';
|
|
24
24
|
@use '../../styles/motion';
|
|
25
|
-
@use '../../styles/
|
|
25
|
+
@use '../../styles/shape';
|
|
26
26
|
@use '../../styles/statelayer';
|
|
27
27
|
@use '../../styles/typography';
|
|
28
28
|
|
|
29
29
|
@include elevation.level(4);
|
|
30
30
|
|
|
31
|
-
@include
|
|
32
|
-
@include
|
|
33
|
-
@include
|
|
34
|
-
@include
|
|
35
|
-
@include
|
|
31
|
+
@include shape.corner('extra-small');
|
|
32
|
+
@include shape.corner('small');
|
|
33
|
+
@include shape.corner('medium');
|
|
34
|
+
@include shape.corner('large');
|
|
35
|
+
@include shape.corner('full');
|
|
36
36
|
|
|
37
37
|
@include statelayer.token('hover-state-layer-opacity');
|
|
38
38
|
@include statelayer.token('focus-state-layer-opacity');
|
|
@@ -58,10 +58,12 @@
|
|
|
58
58
|
$item-padding-block: var(--md-comp-list-item-top-space, 10px) var(--md-comp-list-item-bottom-space, 10px);
|
|
59
59
|
$item-padding-inline: var(--md-comp-list-item-leading-space, 16px) var(--md-comp-list-item-trailing-space, 16px);
|
|
60
60
|
|
|
61
|
+
$open-accordion: ':where(details[open] > *)';
|
|
62
|
+
|
|
61
63
|
%shared-interactive-states {
|
|
62
64
|
cursor: pointer;
|
|
63
65
|
|
|
64
|
-
&:not(:has(input[type=checkbox]:checked)) {
|
|
66
|
+
&:not(:has(input[type=checkbox]:checked)):not(#{$open-accordion}) {
|
|
65
67
|
&:hover {
|
|
66
68
|
--_list-item-shape: var(--md-comp-list-item-container-hovered-expressive-shape, var(--md-sys-shape-corner-medium, 12px));
|
|
67
69
|
--_headline-color: var(--md-comp-list-item-hover-label-text-color, var(--md-sys-color-on-surface));
|
|
@@ -109,7 +111,7 @@ $item-padding-inline: var(--md-comp-list-item-leading-space, 16px) var(--md-comp
|
|
|
109
111
|
cursor: grabbing;
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
|
-
&:has(input[type=checkbox]:checked) {
|
|
114
|
+
&:is(:has(input[type=checkbox]:checked), #{$open-accordion}) {
|
|
113
115
|
&:hover {
|
|
114
116
|
--_list-item-shape: var(--md-comp-list-item-container-selected-hovered-expressive-shape, var(--md-sys-shape-corner-large, 16px));
|
|
115
117
|
--_headline-color: var(--md-comp-list-item-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container));
|
|
@@ -327,7 +329,7 @@ $item-padding-inline: var(--md-comp-list-item-leading-space, 16px) var(--md-comp
|
|
|
327
329
|
opacity: var(--md-sys-state-disabled-state-layer-opacity, 38%);
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
&:checked, &:has(input[type=checkbox]:checked) {
|
|
332
|
+
&:checked, &:has(input[type=checkbox]:checked), &#{$open-accordion} {
|
|
331
333
|
--_list-item-background-color: var(--md-comp-list-item-selected-disabled-container-color, var(--md-sys-color-on-surface));
|
|
332
334
|
--_list-item-background-opacity: var(--md-comp-list-item-selected-disabled-container-opacity, var(--md-sys-state-disabled-state-layer-opacity, 38%));
|
|
333
335
|
--_list-item-shape: var(--md-comp-list-item-container-selected-disabled-expressive-shape, var(--md-sys-shape-corner-large, 16px));
|
|
@@ -341,7 +343,7 @@ $item-padding-inline: var(--md-comp-list-item-leading-space, 16px) var(--md-comp
|
|
|
341
343
|
--statelayer-opacity: var(--md-comp-list-item-selected-disabled-state-layer-opacity, 0%);
|
|
342
344
|
}
|
|
343
345
|
}
|
|
344
|
-
&:checked, &:has(input[type=checkbox]:checked) {
|
|
346
|
+
&:checked, &:has(input[type=checkbox]:checked), &#{$open-accordion} {
|
|
345
347
|
--_list-item-background-color: var(--md-comp-list-item-selected-container-color, var(--md-sys-color-secondary-container));
|
|
346
348
|
--_list-item-background-opacity: 100%;
|
|
347
349
|
--_overline-color: var(--md-comp-list-item-selected-overline-color, var(--md-sys-color-on-secondary-container));
|
|
@@ -352,7 +354,7 @@ $item-padding-inline: var(--md-comp-list-item-leading-space, 16px) var(--md-comp
|
|
|
352
354
|
--_trailing-icon-color: var(--md-comp-list-item-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container));
|
|
353
355
|
}
|
|
354
356
|
&:not(:disabled):not(.micl-list-item--disabled) {
|
|
355
|
-
&:checked, &:has(input[type=checkbox]:checked) {
|
|
357
|
+
&:checked, &:has(input[type=checkbox]:checked), &#{$open-accordion} {
|
|
356
358
|
--_list-item-shape: var(--md-comp-list-item-container-selected-expressive-shape, var(--md-sys-shape-corner-large, 16px));
|
|
357
359
|
}
|
|
358
360
|
input[type=checkbox]:not(:disabled):hover,
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/elevation';
|
|
24
24
|
@use '../../styles/motion';
|
|
25
|
-
@use '../../styles/
|
|
25
|
+
@use '../../styles/shape';
|
|
26
26
|
@use '../../styles/statelayer';
|
|
27
27
|
@use '../../styles/typography';
|
|
28
28
|
|
|
29
29
|
@include elevation.level(2);
|
|
30
30
|
|
|
31
|
-
@include
|
|
32
|
-
@include
|
|
31
|
+
@include shape.corner('small');
|
|
32
|
+
@include shape.corner('large');
|
|
33
33
|
|
|
34
34
|
@include statelayer.token('hover-state-layer-opacity');
|
|
35
35
|
@include statelayer.token('focus-state-layer-opacity');
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
@use '../../foundations/layout';
|
|
24
24
|
@use '../../styles/elevation';
|
|
25
25
|
@use '../../styles/motion';
|
|
26
|
-
@use '../../styles/
|
|
26
|
+
@use '../../styles/shape';
|
|
27
27
|
@use '../../styles/statelayer';
|
|
28
28
|
@use '../../styles/typography';
|
|
29
29
|
|
|
30
30
|
@include elevation.level(0);
|
|
31
31
|
@include elevation.level(2);
|
|
32
32
|
|
|
33
|
-
@include
|
|
33
|
+
@include shape.corner('large');
|
|
34
34
|
|
|
35
35
|
@include statelayer.token('hover-state-layer-opacity');
|
|
36
36
|
@include statelayer.token('focus-state-layer-opacity');
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/motion';
|
|
24
|
-
@use '../../styles/
|
|
24
|
+
@use '../../styles/shape';
|
|
25
25
|
@use '../../styles/statelayer';
|
|
26
26
|
|
|
27
|
-
@include
|
|
27
|
+
@include shape.corner('full');
|
|
28
28
|
|
|
29
29
|
@include statelayer.token('layer-size');
|
|
30
30
|
@include statelayer.token('hover-state-layer-opacity');
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
@use '../../foundations';
|
|
23
23
|
@use '../../styles/elevation';
|
|
24
24
|
@use '../../styles/motion';
|
|
25
|
-
@use '../../styles/
|
|
25
|
+
@use '../../styles/shape';
|
|
26
26
|
@use '../../styles/statelayer';
|
|
27
27
|
@use '../../styles/typography';
|
|
28
28
|
|
|
29
29
|
@include elevation.level(2);
|
|
30
30
|
|
|
31
|
-
@include
|
|
31
|
+
@include shape.corner('large');
|
|
32
32
|
|
|
33
33
|
@include statelayer.token('disabled-state-layer-opacity');
|
|
34
34
|
|
|
@@ -113,6 +113,8 @@
|
|
|
113
113
|
|
|
114
114
|
.micl-list-item__text::after {
|
|
115
115
|
content: attr(aria-description);
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
text-overflow: ellipsis;
|
|
116
118
|
}
|
|
117
119
|
&::checkmark {
|
|
118
120
|
color: var(--md-sys-color-on-surface-variant);
|