@expressivecss/expressive 0.13.1 → 0.15.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/CHANGELOG.md +196 -1
- package/README.md +2 -1
- package/dist/css/expressive.css +432 -311
- package/dist/css/expressive.css.map +1 -1
- package/dist/css/expressive.min.css +1 -1
- package/dist/css/expressive.min.css.map +1 -1
- package/dist/js/chunks/{chunk-DTKR54I6.mjs → chunk-33QVDDGR.mjs} +3 -3
- package/dist/js/chunks/{chunk-SPETGK25.mjs → chunk-45FER6RI.mjs} +5 -5
- package/dist/js/chunks/chunk-45FER6RI.mjs.map +7 -0
- package/dist/js/chunks/{chunk-WJXDBPXQ.mjs → chunk-5CEAOLUA.mjs} +17 -20
- package/dist/js/chunks/chunk-5CEAOLUA.mjs.map +7 -0
- package/dist/js/chunks/{chunk-CKQP6P76.mjs → chunk-6VATUZC6.mjs} +12 -7
- package/dist/js/chunks/chunk-6VATUZC6.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QDAL4IYN.mjs → chunk-74MXKKLN.mjs} +2 -2
- package/dist/js/chunks/{chunk-QDAL4IYN.mjs.map → chunk-74MXKKLN.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-DLWYKFEI.mjs → chunk-AIURVCG6.mjs} +3 -3
- package/dist/js/chunks/{chunk-NNYP33NB.mjs → chunk-BGZLF6JZ.mjs} +19 -18
- package/dist/js/chunks/chunk-BGZLF6JZ.mjs.map +7 -0
- package/dist/js/chunks/chunk-C6CHEWYP.mjs +154 -0
- package/dist/js/chunks/chunk-C6CHEWYP.mjs.map +7 -0
- package/dist/js/chunks/{chunk-GVGT6MIU.mjs → chunk-CK2XCICY.mjs} +2 -2
- package/dist/js/chunks/{chunk-XGHORT7J.mjs → chunk-CXXM2L4F.mjs} +8 -9
- package/dist/js/chunks/chunk-CXXM2L4F.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QVVEWBOF.mjs → chunk-DXGRXYYL.mjs} +25 -37
- package/dist/js/chunks/chunk-DXGRXYYL.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QV2JAWIZ.mjs → chunk-FM5CZOUB.mjs} +5 -8
- package/dist/js/chunks/{chunk-QV2JAWIZ.mjs.map → chunk-FM5CZOUB.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-PLYXLSH3.mjs → chunk-GJL6GCIU.mjs} +46 -58
- package/dist/js/chunks/chunk-GJL6GCIU.mjs.map +7 -0
- package/dist/js/chunks/chunk-K3HZMFMD.mjs +135 -0
- package/dist/js/chunks/chunk-K3HZMFMD.mjs.map +7 -0
- package/dist/js/chunks/chunk-KHXZ2A4K.mjs +395 -0
- package/dist/js/chunks/chunk-KHXZ2A4K.mjs.map +7 -0
- package/dist/js/chunks/chunk-KQACNQ22.mjs +7 -0
- package/dist/js/chunks/{chunk-4PWAPV6F.mjs.map → chunk-KQACNQ22.mjs.map} +1 -1
- package/dist/js/chunks/chunk-KUFHW3DS.mjs +214 -0
- package/dist/js/chunks/chunk-KUFHW3DS.mjs.map +7 -0
- package/dist/js/chunks/{chunk-LWBQIX5J.mjs → chunk-KVJAVDBC.mjs} +46 -57
- package/dist/js/chunks/chunk-KVJAVDBC.mjs.map +7 -0
- package/dist/js/chunks/{chunk-YDCS5S3J.mjs → chunk-L27Q6ZMI.mjs} +2 -2
- package/dist/js/chunks/{chunk-CCWDV5CR.mjs → chunk-LQWUDNHZ.mjs} +3 -3
- package/dist/js/chunks/{chunk-6OMRGML6.mjs → chunk-M372EDXD.mjs} +7 -13
- package/dist/js/chunks/{chunk-6OMRGML6.mjs.map → chunk-M372EDXD.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-EC63CHXU.mjs → chunk-M3MURWMB.mjs} +20 -16
- package/dist/js/chunks/chunk-M3MURWMB.mjs.map +7 -0
- package/dist/js/chunks/{chunk-U2OTHOTI.mjs → chunk-NUHMOAOY.mjs} +19 -33
- package/dist/js/chunks/chunk-NUHMOAOY.mjs.map +7 -0
- package/dist/js/chunks/{chunk-P3G3QHII.mjs → chunk-OWG3LMUL.mjs} +17 -14
- package/dist/js/chunks/chunk-OWG3LMUL.mjs.map +7 -0
- package/dist/js/chunks/{chunk-LTWPGFBR.mjs → chunk-PD6HYHAE.mjs} +4 -15
- package/dist/js/chunks/chunk-PD6HYHAE.mjs.map +7 -0
- package/dist/js/chunks/{chunk-PIJ2TAR3.mjs → chunk-PDG64UHF.mjs} +3 -3
- package/dist/js/chunks/{chunk-IFXVDDDH.mjs → chunk-PO3AXVR3.mjs} +38 -64
- package/dist/js/chunks/chunk-PO3AXVR3.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QKWPQK5N.mjs → chunk-QYGK36OG.mjs} +16 -14
- package/dist/js/chunks/chunk-QYGK36OG.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UNEMYWEW.mjs → chunk-SFI2U4YW.mjs} +28 -44
- package/dist/js/chunks/chunk-SFI2U4YW.mjs.map +7 -0
- package/dist/js/chunks/{chunk-VTLBW7QS.mjs → chunk-SMY7GJSS.mjs} +3 -3
- package/dist/js/chunks/{chunk-O5XPWXIQ.mjs → chunk-TCCA2HDG.mjs} +39 -31
- package/dist/js/chunks/chunk-TCCA2HDG.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UBLRRJ7N.mjs → chunk-TSZYSW7F.mjs} +4 -4
- package/dist/js/chunks/{chunk-UBLRRJ7N.mjs.map → chunk-TSZYSW7F.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-UEZUJQ66.mjs → chunk-UAZSDUVP.mjs} +3 -4
- package/dist/js/chunks/{chunk-UEZUJQ66.mjs.map → chunk-UAZSDUVP.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-6N2XAEFK.mjs → chunk-UBRZZWRA.mjs} +10 -8
- package/dist/js/chunks/chunk-UBRZZWRA.mjs.map +7 -0
- package/dist/js/chunks/{chunk-3VOK6J7U.mjs → chunk-UCOE7ZDL.mjs} +47 -45
- package/dist/js/chunks/chunk-UCOE7ZDL.mjs.map +7 -0
- package/dist/js/chunks/{chunk-K4CJCRGE.mjs → chunk-UETTGDLI.mjs} +3 -3
- package/dist/js/chunks/{chunk-RHRQKTTX.mjs → chunk-UNCRDLP6.mjs} +6 -9
- package/dist/js/chunks/chunk-UNCRDLP6.mjs.map +7 -0
- package/dist/js/chunks/{chunk-LNCCYGPC.mjs → chunk-VGNYF6FB.mjs} +8 -10
- package/dist/js/chunks/chunk-VGNYF6FB.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UAEAQBRC.mjs → chunk-VGPGBNGL.mjs} +4 -12
- package/dist/js/chunks/chunk-VGPGBNGL.mjs.map +7 -0
- package/dist/js/chunks/chunk-VKAUVTQY.mjs +1 -0
- package/dist/js/chunks/{chunk-HKT2S7VM.mjs → chunk-VM4FTS7L.mjs} +3 -3
- package/dist/js/chunks/{chunk-55IA2XUC.mjs → chunk-WDK4T63U.mjs} +8 -11
- package/dist/js/chunks/chunk-WDK4T63U.mjs.map +7 -0
- package/dist/js/chunks/{chunk-XH6BEEMY.mjs → chunk-WOCCTVUF.mjs} +51 -39
- package/dist/js/chunks/chunk-WOCCTVUF.mjs.map +7 -0
- package/dist/js/chunks/{chunk-GZWPXXY6.mjs → chunk-WQYN5L4E.mjs} +14 -16
- package/dist/js/chunks/chunk-WQYN5L4E.mjs.map +7 -0
- package/dist/js/chunks/{chunk-6WLSDZ4O.mjs → chunk-X4ISMKE2.mjs} +2 -2
- package/dist/js/chunks/{chunk-3DHK5CZU.mjs → chunk-XAEAEHIX.mjs} +6 -8
- package/dist/js/chunks/chunk-XAEAEHIX.mjs.map +7 -0
- package/dist/js/chunks/{chunk-3CLXLPYS.mjs → chunk-ZX6M7SWO.mjs} +43 -29
- package/dist/js/chunks/chunk-ZX6M7SWO.mjs.map +7 -0
- package/dist/js/expressive.cjs +1337 -572
- package/dist/js/expressive.cjs.map +4 -4
- package/dist/js/expressive.js +1337 -572
- package/dist/js/expressive.js.map +4 -4
- package/dist/js/expressive.min.js +10 -13
- package/dist/js/expressive.min.js.map +4 -4
- package/dist/js/expressive.mjs +71 -55
- package/dist/js/expressive.mjs.map +1 -1
- package/dist/js/internal/behaviors/bottomSheets.mjs +3 -3
- package/dist/js/internal/behaviors/dialogs.mjs +2 -2
- package/dist/js/internal/behaviors/forms.mjs +2 -2
- package/dist/js/internal/behaviors/sheetDrag.mjs +2 -2
- package/dist/js/internal/behaviors/sideSheets.mjs +3 -3
- package/dist/js/internal/components/appBar.mjs +2 -2
- package/dist/js/internal/components/autocomplete.mjs +4 -4
- package/dist/js/internal/components/barChart.mjs +4 -4
- package/dist/js/internal/components/buttonGroup.mjs +2 -2
- package/dist/js/internal/components/buttons.mjs +3 -3
- package/dist/js/internal/components/cards.mjs +3 -3
- package/dist/js/internal/components/carousel.mjs +3 -3
- package/dist/js/internal/components/characterCounter.mjs +2 -2
- package/dist/js/internal/components/chips.mjs +5 -5
- package/dist/js/internal/components/columnChart.mjs +3 -3
- package/dist/js/internal/components/commandPalette.mjs +3 -3
- package/dist/js/internal/components/confetti.mjs +8 -0
- package/dist/js/internal/components/confetti.mjs.map +7 -0
- package/dist/js/internal/components/datepicker.mjs +6 -6
- package/dist/js/internal/components/expandingCard.mjs +3 -3
- package/dist/js/internal/components/heatmapChart.mjs +3 -3
- package/dist/js/internal/components/index.mjs +64 -48
- package/dist/js/internal/components/keypad.mjs +9 -0
- package/dist/js/internal/components/keypad.mjs.map +7 -0
- package/dist/js/internal/components/lightbox.mjs +3 -3
- package/dist/js/internal/components/lineChart.mjs +6 -2
- package/dist/js/internal/components/mapView.mjs +9 -0
- package/dist/js/internal/components/mapView.mjs.map +7 -0
- package/dist/js/internal/components/menu.mjs +3 -3
- package/dist/js/internal/components/messageScroller.mjs +3 -3
- package/dist/js/internal/components/mixedChart.mjs +4 -4
- package/dist/js/internal/components/navigationRail.mjs +2 -2
- package/dist/js/internal/components/particles.mjs +8 -0
- package/dist/js/internal/components/particles.mjs.map +7 -0
- package/dist/js/internal/components/pieChart.mjs +3 -3
- package/dist/js/internal/components/questionnaire.mjs +3 -3
- package/dist/js/internal/components/radarChart.mjs +3 -3
- package/dist/js/internal/components/radialChart.mjs +3 -3
- package/dist/js/internal/components/registry.mjs +41 -37
- package/dist/js/internal/components/richTextEditor.mjs +3 -3
- package/dist/js/internal/components/scrollspy.mjs +2 -2
- package/dist/js/internal/components/select.mjs +4 -4
- package/dist/js/internal/components/slider.mjs +3 -3
- package/dist/js/internal/components/snackbar.mjs +2 -2
- package/dist/js/internal/components/tabs.mjs +4 -4
- package/dist/js/internal/components/timepicker.mjs +4 -4
- package/dist/js/internal/components/tooltip.mjs +3 -3
- package/dist/js/internal/core/component.mjs +1 -1
- package/dist/js/internal/core/utils.mjs +1 -1
- package/dist/js/internal/plugins/dockedDisplayPlugin.mjs +2 -2
- package/dist/js/modular.mjs +71 -55
- package/dist/types/behaviors/forms.d.ts +5 -0
- package/dist/types/components/autocomplete.d.ts +1 -0
- package/dist/types/components/carousel.d.ts +2 -0
- package/dist/types/components/confetti.d.ts +103 -0
- package/dist/types/components/datepicker.d.ts +5 -4
- package/dist/types/components/expandingCard.d.ts +2 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/keypad.d.ts +34 -0
- package/dist/types/components/lightbox.d.ts +3 -5
- package/dist/types/components/lineChart.d.ts +4 -0
- package/dist/types/components/mapView.d.ts +151 -0
- package/dist/types/components/menu.d.ts +1 -0
- package/dist/types/components/particles.d.ts +72 -0
- package/dist/types/components/pieChart.d.ts +3 -0
- package/dist/types/components/radialChart.d.ts +0 -1
- package/dist/types/components/registry.d.ts +12 -0
- package/dist/types/components/slider.d.ts +3 -1
- package/dist/types/components/snackbar.d.ts +3 -0
- package/dist/types/components/tabs.d.ts +5 -1
- package/dist/types/components/timepicker.d.ts +2 -0
- package/dist/types/modular.d.ts +1 -1
- package/dist/types/plugins/dockedDisplayPlugin.d.ts +4 -3
- package/package.json +2 -1
- package/src/sass/abstracts/_breakpoints.scss +0 -1
- package/src/sass/abstracts/_elevation.scss +1 -1
- package/src/sass/abstracts/_mixins.scss +20 -60
- package/src/sass/abstracts/_variables.scss +10 -0
- package/src/sass/base/_global.scss +3 -12
- package/src/sass/base/_index.scss +1 -1
- package/src/sass/components/_badges.scss +1 -8
- package/src/sass/components/_bar-chart.scss +1 -1
- package/src/sass/components/_button-groups.scss +31 -66
- package/src/sass/components/_buttons.scss +1 -1
- package/src/sass/components/_cards.scss +6 -25
- package/src/sass/components/_carousel.scss +16 -55
- package/src/sass/components/_chips.scss +0 -6
- package/src/sass/components/_column-chart.scss +1 -1
- package/src/sass/components/_confetti.scss +14 -0
- package/src/sass/components/_data-table.scss +1 -3
- package/src/sass/components/_datepicker.scss +3 -22
- package/src/sass/components/_dialog.scss +1 -4
- package/src/sass/components/_heatmap-chart.scss +2 -2
- package/src/sass/components/_icon-buttons.scss +0 -1
- package/src/sass/components/_index.scss +4 -0
- package/src/sass/components/_keypad.scss +162 -0
- package/src/sass/components/_lightbox.scss +3 -8
- package/src/sass/components/_map.scss +188 -0
- package/src/sass/components/_menu.scss +31 -74
- package/src/sass/components/_mixed-chart.scss +1 -1
- package/src/sass/components/_navbar.scss +9 -45
- package/src/sass/components/_navigation-rail.scss +23 -32
- package/src/sass/components/_page-footer.scss +15 -12
- package/src/sass/components/_panes.scss +2 -6
- package/src/sass/components/_particles.scss +14 -0
- package/src/sass/components/_progress.scss +6 -4
- package/src/sass/components/_side-sheet.scss +1 -4
- package/src/sass/components/_stepper.scss +0 -4
- package/src/sass/components/_table_of_contents.scss +3 -1
- package/src/sass/components/_timepicker.scss +4 -36
- package/src/sass/components/_toolbar.scss +0 -4
- package/src/sass/components/forms/_checkboxes.scss +44 -67
- package/src/sass/components/forms/_fieldset.scss +3 -3
- package/src/sass/components/forms/_file-input.scss +0 -1
- package/src/sass/components/forms/_radio-buttons.scss +10 -36
- package/src/sass/components/forms/_select.scss +0 -3
- package/src/sass/components/forms/_slider.scss +72 -259
- package/src/sass/tokens/_state.scss +2 -2
- package/src/sass/tokens/_theme.scss +1 -1
- package/src/sass/utilities/_colors.scss +6 -1
- package/src/sass/utilities/_index.scss +1 -1
- package/dist/js/chunks/chunk-3CLXLPYS.mjs.map +0 -7
- package/dist/js/chunks/chunk-3DHK5CZU.mjs.map +0 -7
- package/dist/js/chunks/chunk-3VOK6J7U.mjs.map +0 -7
- package/dist/js/chunks/chunk-4PWAPV6F.mjs +0 -7
- package/dist/js/chunks/chunk-55IA2XUC.mjs.map +0 -7
- package/dist/js/chunks/chunk-6N2XAEFK.mjs.map +0 -7
- package/dist/js/chunks/chunk-CKQP6P76.mjs.map +0 -7
- package/dist/js/chunks/chunk-EC63CHXU.mjs.map +0 -7
- package/dist/js/chunks/chunk-GZWPXXY6.mjs.map +0 -7
- package/dist/js/chunks/chunk-IFXVDDDH.mjs.map +0 -7
- package/dist/js/chunks/chunk-LNCCYGPC.mjs.map +0 -7
- package/dist/js/chunks/chunk-LTWPGFBR.mjs.map +0 -7
- package/dist/js/chunks/chunk-LWBQIX5J.mjs.map +0 -7
- package/dist/js/chunks/chunk-NNYP33NB.mjs.map +0 -7
- package/dist/js/chunks/chunk-NQLC3YMW.mjs +0 -1
- package/dist/js/chunks/chunk-O5XPWXIQ.mjs.map +0 -7
- package/dist/js/chunks/chunk-P3G3QHII.mjs.map +0 -7
- package/dist/js/chunks/chunk-PLYXLSH3.mjs.map +0 -7
- package/dist/js/chunks/chunk-QKWPQK5N.mjs.map +0 -7
- package/dist/js/chunks/chunk-QVVEWBOF.mjs.map +0 -7
- package/dist/js/chunks/chunk-RHRQKTTX.mjs.map +0 -7
- package/dist/js/chunks/chunk-SPETGK25.mjs.map +0 -7
- package/dist/js/chunks/chunk-U2OTHOTI.mjs.map +0 -7
- package/dist/js/chunks/chunk-UAEAQBRC.mjs.map +0 -7
- package/dist/js/chunks/chunk-UNEMYWEW.mjs.map +0 -7
- package/dist/js/chunks/chunk-WJXDBPXQ.mjs.map +0 -7
- package/dist/js/chunks/chunk-XGHORT7J.mjs.map +0 -7
- package/dist/js/chunks/chunk-XH6BEEMY.mjs.map +0 -7
- /package/dist/js/chunks/{chunk-DTKR54I6.mjs.map → chunk-33QVDDGR.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-DLWYKFEI.mjs.map → chunk-AIURVCG6.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-GVGT6MIU.mjs.map → chunk-CK2XCICY.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-YDCS5S3J.mjs.map → chunk-L27Q6ZMI.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-CCWDV5CR.mjs.map → chunk-LQWUDNHZ.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-PIJ2TAR3.mjs.map → chunk-PDG64UHF.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-VTLBW7QS.mjs.map → chunk-SMY7GJSS.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-K4CJCRGE.mjs.map → chunk-UETTGDLI.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-NQLC3YMW.mjs.map → chunk-VKAUVTQY.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-HKT2S7VM.mjs.map → chunk-VM4FTS7L.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-6WLSDZ4O.mjs.map → chunk-X4ISMKE2.mjs.map} +0 -0
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
//
|
|
20
20
|
// .filled-in is a no-op: the selected state is always the filled box.
|
|
21
21
|
|
|
22
|
+
@mixin _ring($color, $state) {
|
|
23
|
+
@include state-layer-ring(var(--md-comp-checkbox-state-layer-size), var(--md-comp-checkbox-container-size), $color, $state);
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
$_cb-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 9.5 7.5 13 14 5.5'/%3E%3C/svg%3E");
|
|
23
27
|
$_cb-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M4.5 9h9'/%3E%3C/svg%3E");
|
|
24
28
|
|
|
@@ -82,32 +86,17 @@ label:has(> [type="checkbox"]):not(.switch) > [type="checkbox"],
|
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
&:hover {
|
|
85
|
-
@include
|
|
86
|
-
var(--md-comp-checkbox-state-layer-size),
|
|
87
|
-
var(--md-comp-checkbox-container-size),
|
|
88
|
-
var(--md-sys-color-on-surface),
|
|
89
|
-
"hover"
|
|
90
|
-
);
|
|
89
|
+
@include _ring(var(--md-sys-color-on-surface), "hover");
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
&:checked:hover,
|
|
94
93
|
&:indeterminate:hover {
|
|
95
|
-
@include
|
|
96
|
-
var(--md-comp-checkbox-state-layer-size),
|
|
97
|
-
var(--md-comp-checkbox-container-size),
|
|
98
|
-
var(--md-sys-color-primary),
|
|
99
|
-
"hover"
|
|
100
|
-
);
|
|
94
|
+
@include _ring(var(--md-sys-color-primary), "hover");
|
|
101
95
|
}
|
|
102
96
|
|
|
103
97
|
&:focus-visible,
|
|
104
98
|
&.tabbed:focus {
|
|
105
|
-
@include
|
|
106
|
-
var(--md-comp-checkbox-state-layer-size),
|
|
107
|
-
var(--md-comp-checkbox-container-size),
|
|
108
|
-
var(--md-sys-color-primary),
|
|
109
|
-
"focus"
|
|
110
|
-
);
|
|
99
|
+
@include _ring(var(--md-sys-color-primary), "focus");
|
|
111
100
|
outline: none;
|
|
112
101
|
}
|
|
113
102
|
|
|
@@ -126,12 +115,7 @@ label:has(> [type="checkbox"]):not(.switch) > [type="checkbox"],
|
|
|
126
115
|
|
|
127
116
|
&.invalid:hover,
|
|
128
117
|
&[aria-invalid="true"]:hover {
|
|
129
|
-
@include
|
|
130
|
-
var(--md-comp-checkbox-state-layer-size),
|
|
131
|
-
var(--md-comp-checkbox-container-size),
|
|
132
|
-
var(--md-sys-color-error),
|
|
133
|
-
"hover"
|
|
134
|
-
);
|
|
118
|
+
@include _ring(var(--md-sys-color-error), "hover");
|
|
135
119
|
}
|
|
136
120
|
|
|
137
121
|
&:disabled {
|
|
@@ -208,20 +192,28 @@ label:has(> [type="checkbox"]:disabled):not(.switch),
|
|
|
208
192
|
|
|
209
193
|
// Legacy / Select / Autocomplete: input + span draws the same
|
|
210
194
|
// 18dp anatomy. Exclude .switch — that file paints the track on a span.
|
|
211
|
-
$
|
|
195
|
+
// $state is appended to the checkbox, e.g. ":checked" or ".invalid".
|
|
196
|
+
@function _cb-span($state: "") {
|
|
197
|
+
@return "*:not(.switch) > [type='checkbox']#{$state} + span:not(.lever, .supporting-text, .character-counter, .file-path)";
|
|
198
|
+
}
|
|
212
199
|
|
|
213
|
-
|
|
200
|
+
// inline-block, not inline-flex: a flex span turns each text run and link
|
|
201
|
+
// inside it into its own item, which drops the spaces around a link and
|
|
202
|
+
// splits "I agree to the <a>Terms</a>" into columns. The block padding
|
|
203
|
+
// centers one line in the 48px target, as align-items did.
|
|
204
|
+
#{_cb-span()} {
|
|
214
205
|
position: relative;
|
|
215
|
-
display: inline-
|
|
216
|
-
|
|
206
|
+
display: inline-block;
|
|
207
|
+
box-sizing: border-box;
|
|
217
208
|
min-height: 48px;
|
|
209
|
+
padding-block: calc((48px - 1lh) / 2);
|
|
218
210
|
padding-left: 30px;
|
|
219
211
|
cursor: pointer;
|
|
220
212
|
user-select: none;
|
|
221
213
|
}
|
|
222
214
|
|
|
223
|
-
#{
|
|
224
|
-
#{
|
|
215
|
+
#{_cb-span()}::before,
|
|
216
|
+
#{_cb-span()}::after {
|
|
225
217
|
content: "";
|
|
226
218
|
position: absolute;
|
|
227
219
|
left: 0;
|
|
@@ -233,93 +225,78 @@ $_cb-span: "*:not(.switch) > [type='checkbox'] + span:not(.lever, .supporting-te
|
|
|
233
225
|
border-radius: 2px;
|
|
234
226
|
}
|
|
235
227
|
|
|
236
|
-
#{
|
|
228
|
+
#{_cb-span()}::before {
|
|
237
229
|
border: 2px solid var(--md-sys-color-on-surface-variant);
|
|
238
230
|
background-color: transparent;
|
|
239
231
|
transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
|
|
240
232
|
}
|
|
241
233
|
|
|
242
|
-
#{
|
|
234
|
+
#{_cb-span()}::after {
|
|
243
235
|
background-color: var(--md-sys-color-on-primary);
|
|
244
236
|
-webkit-mask: #{$_cb-check} center / contain no-repeat;
|
|
245
237
|
mask: #{$_cb-check} center / contain no-repeat;
|
|
246
238
|
opacity: 0;
|
|
247
239
|
}
|
|
248
240
|
|
|
249
|
-
|
|
241
|
+
#{_cb-span(":is(:checked, :indeterminate)")}::before {
|
|
250
242
|
border-color: var(--md-sys-color-primary);
|
|
251
243
|
background-color: var(--md-sys-color-primary);
|
|
252
244
|
}
|
|
253
245
|
|
|
254
|
-
|
|
246
|
+
#{_cb-span(":is(:checked, :indeterminate)")}::after {
|
|
255
247
|
opacity: 1;
|
|
256
248
|
}
|
|
257
249
|
|
|
258
|
-
|
|
250
|
+
#{_cb-span(":indeterminate")}::after {
|
|
259
251
|
-webkit-mask-image: #{$_cb-dash};
|
|
260
252
|
mask-image: #{$_cb-dash};
|
|
261
253
|
}
|
|
262
254
|
|
|
263
|
-
|
|
264
|
-
@include
|
|
265
|
-
var(--md-comp-checkbox-state-layer-size),
|
|
266
|
-
var(--md-comp-checkbox-container-size),
|
|
267
|
-
var(--md-sys-color-on-surface),
|
|
268
|
-
"hover"
|
|
269
|
-
);
|
|
255
|
+
#{_cb-span(":hover")}::before {
|
|
256
|
+
@include _ring(var(--md-sys-color-on-surface), "hover");
|
|
270
257
|
}
|
|
271
258
|
|
|
272
|
-
|
|
273
|
-
@include
|
|
274
|
-
var(--md-comp-checkbox-state-layer-size),
|
|
275
|
-
var(--md-comp-checkbox-container-size),
|
|
276
|
-
var(--md-sys-color-primary),
|
|
277
|
-
"hover"
|
|
278
|
-
);
|
|
259
|
+
#{_cb-span(":is(:checked, :indeterminate):hover")}::before {
|
|
260
|
+
@include _ring(var(--md-sys-color-primary), "hover");
|
|
279
261
|
}
|
|
280
262
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
@include
|
|
284
|
-
var(--md-comp-checkbox-state-layer-size),
|
|
285
|
-
var(--md-comp-checkbox-container-size),
|
|
286
|
-
var(--md-sys-color-primary),
|
|
287
|
-
"focus"
|
|
288
|
-
);
|
|
263
|
+
#{_cb-span(":focus-visible")}::before,
|
|
264
|
+
#{_cb-span(".tabbed:focus")}::before {
|
|
265
|
+
@include _ring(var(--md-sys-color-primary), "focus");
|
|
289
266
|
}
|
|
290
267
|
|
|
291
|
-
|
|
292
|
-
|
|
268
|
+
#{_cb-span(".invalid")}::before,
|
|
269
|
+
#{_cb-span("[aria-invalid='true']")}::before {
|
|
293
270
|
border-color: var(--md-sys-color-error);
|
|
294
271
|
}
|
|
295
272
|
|
|
296
|
-
|
|
297
|
-
|
|
273
|
+
#{_cb-span(".invalid:is(:checked, :indeterminate)")}::before,
|
|
274
|
+
#{_cb-span("[aria-invalid='true']:is(:checked, :indeterminate)")}::before {
|
|
298
275
|
border-color: var(--md-sys-color-error);
|
|
299
276
|
background-color: var(--md-sys-color-error);
|
|
300
277
|
}
|
|
301
278
|
|
|
302
|
-
|
|
303
|
-
|
|
279
|
+
#{_cb-span(".invalid:is(:checked, :indeterminate)")}::after,
|
|
280
|
+
#{_cb-span("[aria-invalid='true']:is(:checked, :indeterminate)")}::after {
|
|
304
281
|
background-color: var(--md-sys-color-on-error);
|
|
305
282
|
}
|
|
306
283
|
|
|
307
|
-
|
|
284
|
+
#{_cb-span(":disabled")} {
|
|
308
285
|
color: color-mix(in oklab, var(--md-sys-color-on-surface) 38%, transparent);
|
|
309
286
|
cursor: default;
|
|
310
287
|
}
|
|
311
288
|
|
|
312
|
-
|
|
289
|
+
#{_cb-span(":disabled")}::before {
|
|
313
290
|
border-color: color-mix(in oklab, var(--md-sys-color-on-surface) 38%, transparent);
|
|
314
291
|
background-color: transparent;
|
|
315
292
|
box-shadow: none;
|
|
316
293
|
}
|
|
317
294
|
|
|
318
|
-
|
|
295
|
+
#{_cb-span(":disabled:is(:checked, :indeterminate)")}::before {
|
|
319
296
|
border-color: transparent;
|
|
320
297
|
background-color: color-mix(in oklab, var(--md-sys-color-on-surface) 38%, transparent);
|
|
321
298
|
}
|
|
322
299
|
|
|
323
|
-
|
|
300
|
+
#{_cb-span(":disabled:is(:checked, :indeterminate)")}::after {
|
|
324
301
|
background-color: var(--md-sys-color-surface);
|
|
325
302
|
}
|
|
@@ -31,13 +31,13 @@ fieldset {
|
|
|
31
31
|
min-inline-size: 0;
|
|
32
32
|
margin: 0;
|
|
33
33
|
padding: 16px;
|
|
34
|
+
border: var(--md-comp-fieldset-outline-width) solid var(--md-comp-fieldset-outline-color);
|
|
35
|
+
border-radius: var(--md-comp-fieldset-container-shape);
|
|
36
|
+
background-color: var(--md-comp-fieldset-container-color);
|
|
34
37
|
|
|
35
38
|
& + & {
|
|
36
39
|
margin-block-start: 24px;
|
|
37
40
|
}
|
|
38
|
-
border: var(--md-comp-fieldset-outline-width) solid var(--md-comp-fieldset-outline-color);
|
|
39
|
-
border-radius: var(--md-comp-fieldset-container-shape);
|
|
40
|
-
background-color: var(--md-comp-fieldset-container-color);
|
|
41
41
|
|
|
42
42
|
> legend {
|
|
43
43
|
float: none;
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
//
|
|
17
17
|
// .with-gap is a no-op: the selected state is always the ring + inner.
|
|
18
18
|
|
|
19
|
+
@mixin _ring($color, $state) {
|
|
20
|
+
@include state-layer-ring(var(--md-comp-radio-button-state-layer-size), var(--md-comp-radio-button-icon-size), $color, $state);
|
|
21
|
+
}
|
|
22
|
+
|
|
19
23
|
label:has(> [type="radio"]),
|
|
20
24
|
.radio {
|
|
21
25
|
--md-comp-radio-button-icon-size: 20px;
|
|
@@ -75,31 +79,16 @@ label:has(> [type="radio"]) > [type="radio"],
|
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
&:hover {
|
|
78
|
-
@include
|
|
79
|
-
var(--md-comp-radio-button-state-layer-size),
|
|
80
|
-
var(--md-comp-radio-button-icon-size),
|
|
81
|
-
var(--md-sys-color-on-surface),
|
|
82
|
-
"hover"
|
|
83
|
-
);
|
|
82
|
+
@include _ring(var(--md-sys-color-on-surface), "hover");
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
&:checked:hover {
|
|
87
|
-
@include
|
|
88
|
-
var(--md-comp-radio-button-state-layer-size),
|
|
89
|
-
var(--md-comp-radio-button-icon-size),
|
|
90
|
-
var(--md-sys-color-primary),
|
|
91
|
-
"hover"
|
|
92
|
-
);
|
|
86
|
+
@include _ring(var(--md-sys-color-primary), "hover");
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
&:focus-visible,
|
|
96
90
|
&.tabbed:focus {
|
|
97
|
-
@include
|
|
98
|
-
var(--md-comp-radio-button-state-layer-size),
|
|
99
|
-
var(--md-comp-radio-button-icon-size),
|
|
100
|
-
var(--md-sys-color-primary),
|
|
101
|
-
"focus"
|
|
102
|
-
);
|
|
91
|
+
@include _ring(var(--md-sys-color-primary), "focus");
|
|
103
92
|
outline: none;
|
|
104
93
|
}
|
|
105
94
|
|
|
@@ -180,31 +169,16 @@ label:has(> [type="radio"]:disabled),
|
|
|
180
169
|
}
|
|
181
170
|
|
|
182
171
|
[type="radio"]:hover + span::before {
|
|
183
|
-
@include
|
|
184
|
-
var(--md-comp-radio-button-state-layer-size),
|
|
185
|
-
var(--md-comp-radio-button-icon-size),
|
|
186
|
-
var(--md-sys-color-on-surface),
|
|
187
|
-
"hover"
|
|
188
|
-
);
|
|
172
|
+
@include _ring(var(--md-sys-color-on-surface), "hover");
|
|
189
173
|
}
|
|
190
174
|
|
|
191
175
|
[type="radio"]:checked:hover + span::before {
|
|
192
|
-
@include
|
|
193
|
-
var(--md-comp-radio-button-state-layer-size),
|
|
194
|
-
var(--md-comp-radio-button-icon-size),
|
|
195
|
-
var(--md-sys-color-primary),
|
|
196
|
-
"hover"
|
|
197
|
-
);
|
|
176
|
+
@include _ring(var(--md-sys-color-primary), "hover");
|
|
198
177
|
}
|
|
199
178
|
|
|
200
179
|
[type="radio"]:focus-visible + span::before,
|
|
201
180
|
[type="radio"].tabbed:focus + span::before {
|
|
202
|
-
@include
|
|
203
|
-
var(--md-comp-radio-button-state-layer-size),
|
|
204
|
-
var(--md-comp-radio-button-icon-size),
|
|
205
|
-
var(--md-sys-color-primary),
|
|
206
|
-
"focus"
|
|
207
|
-
);
|
|
181
|
+
@include _ring(var(--md-sys-color-primary), "focus");
|
|
208
182
|
}
|
|
209
183
|
|
|
210
184
|
[type="radio"]:disabled + span {
|