macbetter 0.0.0-stage → 0.1.0-beta.1
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/LICENSE +201 -0
- package/README.md +92 -2
- package/dist/components/accessory-tile.d.ts +50 -0
- package/dist/components/accessory-tile.js +46 -0
- package/dist/components/activity-indicator.d.ts +15 -0
- package/dist/components/activity-indicator.js +15 -0
- package/dist/components/alert.d.ts +29 -0
- package/dist/components/alert.js +30 -0
- package/dist/components/artwork.d.ts +44 -0
- package/dist/components/artwork.js +935 -0
- package/dist/components/automation-row.d.ts +24 -0
- package/dist/components/automation-row.js +12 -0
- package/dist/components/avatar.d.ts +33 -0
- package/dist/components/avatar.js +45 -0
- package/dist/components/badge.d.ts +24 -0
- package/dist/components/badge.js +19 -0
- package/dist/components/button.d.ts +20 -0
- package/dist/components/button.js +10 -0
- package/dist/components/calendar.d.ts +30 -0
- package/dist/components/calendar.js +47 -0
- package/dist/components/camera-view.d.ts +40 -0
- package/dist/components/camera-view.js +44 -0
- package/dist/components/card.d.ts +14 -0
- package/dist/components/card.js +21 -0
- package/dist/components/carousel.d.ts +18 -0
- package/dist/components/carousel.js +33 -0
- package/dist/components/checkbox.d.ts +13 -0
- package/dist/components/checkbox.js +16 -0
- package/dist/components/code-field.d.ts +16 -0
- package/dist/components/code-field.js +29 -0
- package/dist/components/color-well.d.ts +23 -0
- package/dist/components/color-well.js +27 -0
- package/dist/components/combo-box.d.ts +42 -0
- package/dist/components/combo-box.js +102 -0
- package/dist/components/command-palette.d.ts +33 -0
- package/dist/components/command-palette.js +55 -0
- package/dist/components/context-menu.d.ts +9 -0
- package/dist/components/context-menu.js +15 -0
- package/dist/components/date-picker.d.ts +53 -0
- package/dist/components/date-picker.js +86 -0
- package/dist/components/device-frame.d.ts +18 -0
- package/dist/components/device-frame.js +16 -0
- package/dist/components/dialog.d.ts +27 -0
- package/dist/components/dialog.js +35 -0
- package/dist/components/disclosure.d.ts +32 -0
- package/dist/components/disclosure.js +35 -0
- package/dist/components/dock.d.ts +28 -0
- package/dist/components/dock.js +80 -0
- package/dist/components/door-control.d.ts +20 -0
- package/dist/components/door-control.js +43 -0
- package/dist/components/energy-readout.d.ts +32 -0
- package/dist/components/energy-readout.js +27 -0
- package/dist/components/field.d.ts +28 -0
- package/dist/components/field.js +32 -0
- package/dist/components/gauge.d.ts +25 -0
- package/dist/components/gauge.js +42 -0
- package/dist/components/glass.d.ts +34 -0
- package/dist/components/glass.js +31 -0
- package/dist/components/home-backdrop.d.ts +23 -0
- package/dist/components/home-backdrop.js +12 -0
- package/dist/components/home-section.d.ts +19 -0
- package/dist/components/home-section.js +21 -0
- package/dist/components/home-status.d.ts +24 -0
- package/dist/components/home-status.js +14 -0
- package/dist/components/hover-card.d.ts +14 -0
- package/dist/components/hover-card.js +16 -0
- package/dist/components/level-control.d.ts +19 -0
- package/dist/components/level-control.js +13 -0
- package/dist/components/light-color-picker.d.ts +33 -0
- package/dist/components/light-color-picker.js +56 -0
- package/dist/components/list.d.ts +42 -0
- package/dist/components/list.js +42 -0
- package/dist/components/listbox.d.ts +16 -0
- package/dist/components/listbox.js +28 -0
- package/dist/components/lock-control.d.ts +20 -0
- package/dist/components/lock-control.js +35 -0
- package/dist/components/menu-bar.d.ts +14 -0
- package/dist/components/menu-bar.js +16 -0
- package/dist/components/menu.d.ts +40 -0
- package/dist/components/menu.js +54 -0
- package/dist/components/navigation-bar.d.ts +24 -0
- package/dist/components/navigation-bar.js +54 -0
- package/dist/components/outline.d.ts +21 -0
- package/dist/components/outline.js +40 -0
- package/dist/components/page-control.d.ts +10 -0
- package/dist/components/page-control.js +8 -0
- package/dist/components/popover.d.ts +16 -0
- package/dist/components/popover.js +24 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +27 -0
- package/dist/components/radio.d.ts +16 -0
- package/dist/components/radio.js +13 -0
- package/dist/components/rating.d.ts +10 -0
- package/dist/components/rating.js +12 -0
- package/dist/components/scene-tile.d.ts +22 -0
- package/dist/components/scene-tile.js +13 -0
- package/dist/components/scroll-view.d.ts +21 -0
- package/dist/components/scroll-view.js +13 -0
- package/dist/components/search-field.d.ts +16 -0
- package/dist/components/search-field.js +12 -0
- package/dist/components/secure-field.d.ts +23 -0
- package/dist/components/secure-field.js +21 -0
- package/dist/components/segmented-control.d.ts +12 -0
- package/dist/components/segmented-control.js +10 -0
- package/dist/components/select.d.ts +45 -0
- package/dist/components/select.js +79 -0
- package/dist/components/sensor-readout.d.ts +29 -0
- package/dist/components/sensor-readout.js +12 -0
- package/dist/components/separator.d.ts +14 -0
- package/dist/components/separator.js +11 -0
- package/dist/components/setup-code.d.ts +29 -0
- package/dist/components/setup-code.js +47 -0
- package/dist/components/sheet.d.ts +31 -0
- package/dist/components/sheet.js +51 -0
- package/dist/components/sidebar.d.ts +30 -0
- package/dist/components/sidebar.js +26 -0
- package/dist/components/slider.d.ts +27 -0
- package/dist/components/slider.js +43 -0
- package/dist/components/split-view.d.ts +11 -0
- package/dist/components/split-view.js +13 -0
- package/dist/components/squircle.d.ts +41 -0
- package/dist/components/squircle.js +63 -0
- package/dist/components/stepper.d.ts +30 -0
- package/dist/components/stepper.js +28 -0
- package/dist/components/switch.d.ts +10 -0
- package/dist/components/switch.js +10 -0
- package/dist/components/tab-bar.d.ts +20 -0
- package/dist/components/tab-bar.js +17 -0
- package/dist/components/table.d.ts +49 -0
- package/dist/components/table.js +179 -0
- package/dist/components/tabs.d.ts +16 -0
- package/dist/components/tabs.js +19 -0
- package/dist/components/text-area.d.ts +14 -0
- package/dist/components/text-area.js +9 -0
- package/dist/components/text-field.d.ts +26 -0
- package/dist/components/text-field.js +23 -0
- package/dist/components/thermostat-control.d.ts +30 -0
- package/dist/components/thermostat-control.js +139 -0
- package/dist/components/toast.d.ts +30 -0
- package/dist/components/toast.js +114 -0
- package/dist/components/toggle.d.ts +21 -0
- package/dist/components/toggle.js +19 -0
- package/dist/components/token-field.d.ts +31 -0
- package/dist/components/token-field.js +78 -0
- package/dist/components/toolbar.d.ts +27 -0
- package/dist/components/toolbar.js +39 -0
- package/dist/components/tooltip.d.ts +11 -0
- package/dist/components/tooltip.js +18 -0
- package/dist/components/window.d.ts +56 -0
- package/dist/components/window.js +61 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +79 -0
- package/dist/lib/cx.d.ts +9 -0
- package/dist/lib/cx.js +14 -0
- package/dist/lib/derive.d.ts +53 -0
- package/dist/lib/derive.js +255 -0
- package/dist/lib/field-glyphs.d.ts +13 -0
- package/dist/lib/field-glyphs.js +28 -0
- package/dist/lib/menu-glyphs.d.ts +6 -0
- package/dist/lib/menu-glyphs.js +15 -0
- package/dist/lib/platform.d.ts +18 -0
- package/dist/lib/platform.js +17 -0
- package/dist/lib/squircle.d.ts +23 -0
- package/dist/lib/squircle.js +69 -0
- package/dist/lib/theme.d.ts +42 -0
- package/dist/lib/theme.js +62 -0
- package/dist/styles/base.css +115 -0
- package/dist/styles/components/accessory-tile.css +461 -0
- package/dist/styles/components/activity-indicator.css +63 -0
- package/dist/styles/components/alert.css +433 -0
- package/dist/styles/components/artwork.css +380 -0
- package/dist/styles/components/automation-row.css +52 -0
- package/dist/styles/components/avatar.css +230 -0
- package/dist/styles/components/badge.css +204 -0
- package/dist/styles/components/button.css +298 -0
- package/dist/styles/components/calendar.css +287 -0
- package/dist/styles/components/camera-view.css +239 -0
- package/dist/styles/components/card.css +100 -0
- package/dist/styles/components/carousel.css +210 -0
- package/dist/styles/components/checkbox.css +212 -0
- package/dist/styles/components/code-field.css +163 -0
- package/dist/styles/components/color-well.css +452 -0
- package/dist/styles/components/combo-box.css +222 -0
- package/dist/styles/components/command-palette.css +379 -0
- package/dist/styles/components/context-menu.css +43 -0
- package/dist/styles/components/date-picker.css +356 -0
- package/dist/styles/components/device-frame.css +194 -0
- package/dist/styles/components/dialog.css +366 -0
- package/dist/styles/components/disclosure.css +197 -0
- package/dist/styles/components/dock.css +404 -0
- package/dist/styles/components/door-control.css +187 -0
- package/dist/styles/components/energy-readout.css +161 -0
- package/dist/styles/components/field.css +175 -0
- package/dist/styles/components/gauge.css +239 -0
- package/dist/styles/components/glass.css +113 -0
- package/dist/styles/components/home-backdrop.css +81 -0
- package/dist/styles/components/home-section.css +100 -0
- package/dist/styles/components/home-status.css +215 -0
- package/dist/styles/components/hover-card.css +145 -0
- package/dist/styles/components/index.css +75 -0
- package/dist/styles/components/level-control.css +247 -0
- package/dist/styles/components/light-color-picker.css +94 -0
- package/dist/styles/components/list.css +411 -0
- package/dist/styles/components/listbox.css +168 -0
- package/dist/styles/components/lock-control.css +164 -0
- package/dist/styles/components/menu-bar.css +94 -0
- package/dist/styles/components/menu.css +454 -0
- package/dist/styles/components/navigation-bar.css +248 -0
- package/dist/styles/components/outline.css +248 -0
- package/dist/styles/components/page-control.css +127 -0
- package/dist/styles/components/popover.css +186 -0
- package/dist/styles/components/progress.css +228 -0
- package/dist/styles/components/radio.css +281 -0
- package/dist/styles/components/rating.css +122 -0
- package/dist/styles/components/scene-tile.css +295 -0
- package/dist/styles/components/scroll-view.css +195 -0
- package/dist/styles/components/search-field.css +128 -0
- package/dist/styles/components/secure-field.css +189 -0
- package/dist/styles/components/segmented-control.css +183 -0
- package/dist/styles/components/select.css +290 -0
- package/dist/styles/components/sensor-readout.css +231 -0
- package/dist/styles/components/separator.css +62 -0
- package/dist/styles/components/setup-code.css +138 -0
- package/dist/styles/components/sheet.css +345 -0
- package/dist/styles/components/sidebar.css +261 -0
- package/dist/styles/components/slider.css +208 -0
- package/dist/styles/components/split-view.css +75 -0
- package/dist/styles/components/squircle.css +44 -0
- package/dist/styles/components/stepper.css +278 -0
- package/dist/styles/components/switch.css +115 -0
- package/dist/styles/components/tab-bar.css +223 -0
- package/dist/styles/components/table.css +313 -0
- package/dist/styles/components/tabs.css +262 -0
- package/dist/styles/components/text-area.css +94 -0
- package/dist/styles/components/text-field.css +294 -0
- package/dist/styles/components/thermostat-control.css +214 -0
- package/dist/styles/components/toast.css +418 -0
- package/dist/styles/components/toggle.css +312 -0
- package/dist/styles/components/token-field.css +193 -0
- package/dist/styles/components/toolbar.css +370 -0
- package/dist/styles/components/tooltip.css +69 -0
- package/dist/styles/components/window.css +428 -0
- package/dist/styles/index.css +17 -0
- package/dist/styles/materials.css +263 -0
- package/dist/styles/platforms.css +214 -0
- package/dist/styles/themes/ember.css +24 -0
- package/dist/styles/themes/graphite.css +16 -0
- package/dist/styles/themes/nebula.css +16 -0
- package/dist/styles/themes/system.css +28 -0
- package/dist/styles/tokens.css +299 -0
- package/package.json +82 -3
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Popover — a translucent panel with an arrow that points at its trigger and
|
|
3
|
+
* grows out of it. The material sits on a ::before layer so the arrow, outside
|
|
4
|
+
* the panel, can blur the page behind it too (backdrop-filter on the panel
|
|
5
|
+
* would make it the arrow's backdrop root).
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
:where(:root, [data-platform="macos"]) {
|
|
9
|
+
--mb-popover-radius: var(--mb-radius-lg);
|
|
10
|
+
--mb-popover-padding: 14px;
|
|
11
|
+
--mb-popover-max-width: 320px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
15
|
+
--mb-popover-radius: var(--mb-popup-radius);
|
|
16
|
+
--mb-popover-padding: 16px;
|
|
17
|
+
--mb-popover-max-width: 360px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mb-popover {
|
|
21
|
+
--mb-popover-material: var(--mb-material-thick);
|
|
22
|
+
|
|
23
|
+
isolation: isolate;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 4px;
|
|
27
|
+
min-width: 180px;
|
|
28
|
+
max-width: min(var(--mb-popover-max-width), var(--available-width, 100vw));
|
|
29
|
+
max-height: var(--available-height);
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: var(--mb-popover-padding);
|
|
32
|
+
overflow: visible;
|
|
33
|
+
border: 0;
|
|
34
|
+
border-radius: var(--mb-popover-radius);
|
|
35
|
+
background: transparent;
|
|
36
|
+
box-shadow: var(--mb-shadow-menu);
|
|
37
|
+
color: var(--mb-label);
|
|
38
|
+
font: var(--mb-text-body);
|
|
39
|
+
letter-spacing: var(--mb-tracking-body);
|
|
40
|
+
outline: none;
|
|
41
|
+
transform-origin: var(--transform-origin);
|
|
42
|
+
transition:
|
|
43
|
+
opacity var(--mb-duration-fast) var(--mb-ease-out),
|
|
44
|
+
scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.mb-popover::before {
|
|
48
|
+
content: "";
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset: 0;
|
|
51
|
+
z-index: -1;
|
|
52
|
+
border-radius: inherit;
|
|
53
|
+
background: var(--mb-popover-material);
|
|
54
|
+
-webkit-backdrop-filter: var(--mb-material-filter);
|
|
55
|
+
backdrop-filter: var(--mb-material-filter);
|
|
56
|
+
box-shadow: var(--mb-glass-rim);
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.mb-popover:is([data-starting-style], [data-ending-style]) {
|
|
61
|
+
opacity: 0;
|
|
62
|
+
scale: 0.9;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.mb-popover[data-ending-style] {
|
|
66
|
+
scale: 0.96;
|
|
67
|
+
transition-duration: var(--mb-duration-fast);
|
|
68
|
+
transition-timing-function: var(--mb-ease-out);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/*
|
|
72
|
+
* ui-sdk positions the arrow box with inline left/top, so it only needs
|
|
73
|
+
* placing against the panel's edge. It tucks 0.5px under the panel so the
|
|
74
|
+
* panel's hairline doesn't cut across its base, and a ::after hairline traces
|
|
75
|
+
* its curve to continue the panel's outline.
|
|
76
|
+
*/
|
|
77
|
+
.mb-popover-arrow {
|
|
78
|
+
position: absolute;
|
|
79
|
+
z-index: -1;
|
|
80
|
+
width: 22px;
|
|
81
|
+
height: 11px;
|
|
82
|
+
background: var(--mb-popover-material);
|
|
83
|
+
-webkit-backdrop-filter: var(--mb-material-filter);
|
|
84
|
+
backdrop-filter: var(--mb-material-filter);
|
|
85
|
+
clip-path: path("M0 11C5 11 8 6.5 9.6 3.4C10.3 2 10.6 1.5 11 1.5S11.7 2 12.4 3.4C14 6.5 17 11 22 11Z");
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.mb-popover-arrow::after {
|
|
90
|
+
content: "";
|
|
91
|
+
position: absolute;
|
|
92
|
+
inset: 0;
|
|
93
|
+
background: var(--mb-glass-border);
|
|
94
|
+
-webkit-mask: var(--mb-popover-arrow-stroke) center / 100% 100% no-repeat;
|
|
95
|
+
mask: var(--mb-popover-arrow-stroke) center / 100% 100% no-repeat;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mb-popover-arrow {
|
|
99
|
+
--mb-popover-arrow-stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 11'%3E%3Cpath d='M0 11C5 11 8 6.5 9.6 3.4C10.3 2 10.6 1.5 11 1.5S11.7 2 12.4 3.4C14 6.5 17 11 22 11' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.mb-popover-arrow[data-side="bottom"] {
|
|
103
|
+
bottom: calc(100% - 0.5px);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.mb-popover-arrow[data-side="top"] {
|
|
107
|
+
top: calc(100% - 0.5px);
|
|
108
|
+
rotate: 180deg;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Rotated a quarter turn about its center, the 22×11 box needs 5.5px to sit flush. */
|
|
112
|
+
.mb-popover-arrow[data-side="left"] {
|
|
113
|
+
left: calc(100% - 0.5px);
|
|
114
|
+
rotate: 90deg;
|
|
115
|
+
translate: -5.5px 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.mb-popover-arrow[data-side="right"] {
|
|
119
|
+
right: calc(100% - 0.5px);
|
|
120
|
+
rotate: -90deg;
|
|
121
|
+
translate: 5.5px 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.mb-popover-title {
|
|
125
|
+
margin: 0;
|
|
126
|
+
font: var(--mb-text-headline);
|
|
127
|
+
letter-spacing: var(--mb-tracking-body);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.mb-popover-description {
|
|
131
|
+
margin: 0;
|
|
132
|
+
color: var(--mb-label-secondary);
|
|
133
|
+
font: var(--mb-text-callout);
|
|
134
|
+
letter-spacing: var(--mb-tracking-body);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Presented as a sheet on a phone: ui-sdk moves it; it only needs a shape. */
|
|
138
|
+
.mb-popover[data-presentation="sheet"] {
|
|
139
|
+
max-width: none;
|
|
140
|
+
width: 100%;
|
|
141
|
+
padding-block: calc(var(--mb-popover-padding) + 10px) calc(var(--mb-popover-padding) + env(safe-area-inset-bottom));
|
|
142
|
+
border-radius: var(--mb-sheet-radius) var(--mb-sheet-radius) 0 0;
|
|
143
|
+
transition: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.mb-popover[data-presentation="sheet"] .mb-popover-arrow {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* The grabber says it can be swiped away. Decorative: Escape and the scrim dismiss it too. */
|
|
151
|
+
.mb-popover[data-presentation="sheet"]::after {
|
|
152
|
+
content: "";
|
|
153
|
+
position: absolute;
|
|
154
|
+
inset-block-start: 5px;
|
|
155
|
+
inset-inline: 0;
|
|
156
|
+
width: 36px;
|
|
157
|
+
height: 5px;
|
|
158
|
+
margin-inline: auto;
|
|
159
|
+
border-radius: var(--mb-radius-full);
|
|
160
|
+
background: var(--mb-label-quaternary);
|
|
161
|
+
pointer-events: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (prefers-reduced-motion: reduce) {
|
|
165
|
+
:where(:root:not([data-motion="full"])) {
|
|
166
|
+
.mb-popover:is([data-starting-style], [data-ending-style]) {
|
|
167
|
+
scale: none;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Continuous corners, on the popover and on the bottom sheet it becomes on touch. */
|
|
173
|
+
@supports (corner-shape: squircle) {
|
|
174
|
+
.mb-popover {
|
|
175
|
+
corner-shape: var(--mb-corner-shape);
|
|
176
|
+
border-radius: calc(var(--mb-popover-radius) * var(--mb-corner-factor));
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.mb-popover[data-presentation="sheet"] {
|
|
180
|
+
border-radius: calc(var(--mb-sheet-radius) * var(--mb-corner-factor)) calc(var(--mb-sheet-radius) * var(--mb-corner-factor)) 0 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.mb-popover::before {
|
|
184
|
+
corner-shape: inherit;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* Progress — the thin Apple bar, its indeterminate sweep, and the circular ring. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-progress-height-sm: 4px;
|
|
5
|
+
--mb-progress-height: 5px;
|
|
6
|
+
--mb-progress-height-lg: 8px;
|
|
7
|
+
--mb-progress-circle-size-sm: 16px;
|
|
8
|
+
--mb-progress-circle-size: 24px;
|
|
9
|
+
--mb-progress-circle-size-lg: 36px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
13
|
+
--mb-progress-height-sm: 3px;
|
|
14
|
+
--mb-progress-height: 4px;
|
|
15
|
+
--mb-progress-height-lg: 8px;
|
|
16
|
+
--mb-progress-circle-size-sm: 20px;
|
|
17
|
+
--mb-progress-circle-size: 28px;
|
|
18
|
+
--mb-progress-circle-size-lg: 44px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.mb-progress,
|
|
22
|
+
.mb-progress-circle {
|
|
23
|
+
--mb-progress-tone: var(--mb-accent);
|
|
24
|
+
--mb-progress-track-color: var(--mb-fill-tertiary);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:is(.mb-progress, .mb-progress-circle)[data-tone="neutral"] {
|
|
28
|
+
--mb-progress-tone: var(--mb-label-secondary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:is(.mb-progress, .mb-progress-circle)[data-tone="destructive"] {
|
|
32
|
+
--mb-progress-tone: var(--mb-destructive);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Linear */
|
|
36
|
+
.mb-progress {
|
|
37
|
+
--mb-progress-h: var(--mb-progress-height);
|
|
38
|
+
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
41
|
+
align-items: baseline;
|
|
42
|
+
column-gap: var(--mb-space-4);
|
|
43
|
+
row-gap: var(--mb-space-3);
|
|
44
|
+
inline-size: 100%;
|
|
45
|
+
min-inline-size: 80px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.mb-progress[data-size="sm"] {
|
|
49
|
+
--mb-progress-h: var(--mb-progress-height-sm);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mb-progress[data-size="lg"] {
|
|
53
|
+
--mb-progress-h: var(--mb-progress-height-lg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.mb-progress-label {
|
|
57
|
+
grid-column: 1;
|
|
58
|
+
min-width: 0;
|
|
59
|
+
font: var(--mb-text-body);
|
|
60
|
+
letter-spacing: var(--mb-tracking-body);
|
|
61
|
+
color: var(--mb-label);
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mb-progress-value {
|
|
68
|
+
grid-column: 2;
|
|
69
|
+
font: var(--mb-text-callout);
|
|
70
|
+
letter-spacing: var(--mb-tracking-body);
|
|
71
|
+
font-variant-numeric: tabular-nums;
|
|
72
|
+
color: var(--mb-label-secondary);
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.mb-progress-track {
|
|
77
|
+
position: relative;
|
|
78
|
+
grid-column: 1 / -1;
|
|
79
|
+
height: var(--mb-progress-h);
|
|
80
|
+
border-radius: var(--mb-radius-full);
|
|
81
|
+
background: var(--mb-progress-track-color);
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
/* Keeps the rounded clip on the sliding segment in Safari. */
|
|
84
|
+
isolation: isolate;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.mb-progress-indicator {
|
|
88
|
+
height: 100%;
|
|
89
|
+
border-radius: inherit;
|
|
90
|
+
background: var(--mb-progress-tone);
|
|
91
|
+
transition: width var(--mb-duration-slow) var(--mb-ease-out);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Indeterminate: a short segment glides across and comes back around, never a barber pole. */
|
|
95
|
+
.mb-progress-indicator[data-indeterminate] {
|
|
96
|
+
position: absolute;
|
|
97
|
+
inset-block: 0;
|
|
98
|
+
inset-inline-start: 0;
|
|
99
|
+
width: 36%;
|
|
100
|
+
animation: mb-progress-slide 1.45s var(--mb-ease-in-out) infinite;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where([dir="rtl"]) .mb-progress-indicator[data-indeterminate] {
|
|
104
|
+
animation-name: mb-progress-slide-rtl;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@keyframes mb-progress-slide {
|
|
108
|
+
from {
|
|
109
|
+
translate: -105% 0;
|
|
110
|
+
}
|
|
111
|
+
to {
|
|
112
|
+
translate: 285% 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@keyframes mb-progress-slide-rtl {
|
|
117
|
+
from {
|
|
118
|
+
translate: 105% 0;
|
|
119
|
+
}
|
|
120
|
+
to {
|
|
121
|
+
translate: -285% 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Circular */
|
|
126
|
+
.mb-progress-circle {
|
|
127
|
+
--mb-progress-circle-size-current: var(--mb-progress-circle-size);
|
|
128
|
+
|
|
129
|
+
position: relative;
|
|
130
|
+
display: inline-grid;
|
|
131
|
+
flex: none;
|
|
132
|
+
place-items: center;
|
|
133
|
+
width: var(--mb-progress-circle-size-current);
|
|
134
|
+
height: var(--mb-progress-circle-size-current);
|
|
135
|
+
color: var(--mb-progress-tone);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.mb-progress-circle[data-size="sm"] {
|
|
139
|
+
--mb-progress-circle-size-current: var(--mb-progress-circle-size-sm);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.mb-progress-circle[data-size="lg"] {
|
|
143
|
+
--mb-progress-circle-size-current: var(--mb-progress-circle-size-lg);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.mb-progress-circle > * {
|
|
147
|
+
grid-area: 1 / 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.mb-progress-circle-ring {
|
|
151
|
+
width: 100%;
|
|
152
|
+
height: 100%;
|
|
153
|
+
rotate: -90deg;
|
|
154
|
+
overflow: visible;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.mb-progress-circle-track,
|
|
158
|
+
.mb-progress-circle-fill {
|
|
159
|
+
fill: none;
|
|
160
|
+
stroke-width: 3;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.mb-progress-circle[data-size="lg"] :is(.mb-progress-circle-track, .mb-progress-circle-fill) {
|
|
164
|
+
stroke-width: 2.5;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.mb-progress-circle-track {
|
|
168
|
+
stroke: var(--mb-progress-track-color);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.mb-progress-circle-fill {
|
|
172
|
+
stroke: var(--mb-progress-tone);
|
|
173
|
+
stroke-linecap: round;
|
|
174
|
+
transition: stroke-dasharray var(--mb-duration-slow) var(--mb-ease-out);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* A zero-length round cap still paints a dot; hide it until there's progress. */
|
|
178
|
+
.mb-progress-circle-fill[stroke-dasharray^="0 "] {
|
|
179
|
+
stroke-linecap: butt;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.mb-progress-circle[data-indeterminate] .mb-progress-circle-ring {
|
|
183
|
+
animation: mb-progress-spin 0.9s linear infinite;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@keyframes mb-progress-spin {
|
|
187
|
+
from {
|
|
188
|
+
rotate: -90deg;
|
|
189
|
+
}
|
|
190
|
+
to {
|
|
191
|
+
rotate: 270deg;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* What sits inside the ring: a stop square, a glyph, a percentage. */
|
|
196
|
+
.mb-progress-circle > :not(svg) {
|
|
197
|
+
display: grid;
|
|
198
|
+
place-items: center;
|
|
199
|
+
font: 600 calc(var(--mb-progress-circle-size-current) * 0.28) / 1 var(--mb-font);
|
|
200
|
+
font-variant-numeric: tabular-nums;
|
|
201
|
+
color: var(--mb-progress-tone);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.mb-progress-circle > :where(svg:not(.mb-progress-circle-ring)) {
|
|
205
|
+
width: 36%;
|
|
206
|
+
height: 36%;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* Reduced motion: the segment stops sliding and fills the track, dimmed, as a still "busy" state. */
|
|
210
|
+
@media (prefers-reduced-motion: reduce) {
|
|
211
|
+
:where(:root:not([data-motion="full"])) {
|
|
212
|
+
.mb-progress-circle[data-indeterminate] .mb-progress-circle-ring {
|
|
213
|
+
animation: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.mb-progress-indicator[data-indeterminate] {
|
|
217
|
+
width: 100%;
|
|
218
|
+
translate: none;
|
|
219
|
+
opacity: 0.4;
|
|
220
|
+
animation: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.mb-progress-circle[data-indeterminate] .mb-progress-circle-fill {
|
|
224
|
+
stroke-dasharray: 100 100;
|
|
225
|
+
opacity: 0.4;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/* Radio — one choice from a few. macOS: a small circle that fills with the accent around a white dot.
|
|
2
|
+
Touch: a larger circle, or a list of rows with a trailing checkmark, as in iOS Settings. */
|
|
3
|
+
|
|
4
|
+
:where(:root, [data-platform="macos"]) {
|
|
5
|
+
--mb-radio-size: 14px;
|
|
6
|
+
--mb-radio-dot: 6px;
|
|
7
|
+
--mb-radio-label-gap: var(--mb-space-3);
|
|
8
|
+
--mb-radio-group-gap: var(--mb-space-3);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
12
|
+
--mb-radio-size: 22px;
|
|
13
|
+
--mb-radio-dot: 9px;
|
|
14
|
+
--mb-radio-label-gap: var(--mb-space-5);
|
|
15
|
+
--mb-radio-group-gap: var(--mb-space-6);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mb-radio-group {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: flex-start;
|
|
22
|
+
gap: var(--mb-radio-group-gap);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.mb-radio {
|
|
26
|
+
position: relative;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
flex: none;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
width: var(--mb-radio-size);
|
|
32
|
+
height: var(--mb-radio-size);
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0;
|
|
35
|
+
border: 0;
|
|
36
|
+
border-radius: var(--mb-radius-full);
|
|
37
|
+
background: var(--mb-bg-control);
|
|
38
|
+
box-shadow:
|
|
39
|
+
inset 0 0 0 var(--mb-hairline) var(--mb-control-border),
|
|
40
|
+
0 0.5px 1px var(--mb-shadow-color);
|
|
41
|
+
font: inherit;
|
|
42
|
+
cursor: default;
|
|
43
|
+
touch-action: manipulation;
|
|
44
|
+
-webkit-tap-highlight-color: transparent;
|
|
45
|
+
transition:
|
|
46
|
+
background-color var(--mb-duration-fast) var(--mb-ease-out),
|
|
47
|
+
box-shadow var(--mb-duration-fast) var(--mb-ease-out),
|
|
48
|
+
scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mb-radio::after {
|
|
52
|
+
content: "";
|
|
53
|
+
position: absolute;
|
|
54
|
+
inset: 50% auto auto 50%;
|
|
55
|
+
width: max(100%, var(--mb-hit-target));
|
|
56
|
+
height: max(100%, var(--mb-hit-target));
|
|
57
|
+
translate: -50% -50%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.mb-radio[data-checked] {
|
|
61
|
+
background: var(--mb-accent);
|
|
62
|
+
box-shadow:
|
|
63
|
+
inset 0 0 0 var(--mb-hairline) color-mix(in oklch, var(--mb-accent-pressed), transparent 30%),
|
|
64
|
+
inset 0 0.5px 0 rgb(255 255 255 / 0.28),
|
|
65
|
+
0 0.5px 1px var(--mb-shadow-color);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mb-radio:active:not([data-disabled], [data-readonly]) {
|
|
69
|
+
background: color-mix(in oklch, var(--mb-bg-control), var(--mb-ink) 12%);
|
|
70
|
+
transition-duration: 0ms;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mb-radio[data-checked]:active:not([data-disabled], [data-readonly]) {
|
|
74
|
+
background: var(--mb-accent-pressed);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.mb-radio[data-disabled] {
|
|
78
|
+
opacity: 0.4;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* ui-sdk marks the group, not each radio, when a Field shows it invalid. */
|
|
82
|
+
.mb-radio-group[data-invalid]:not([data-variant="list"]) .mb-radio:not([data-checked]) {
|
|
83
|
+
box-shadow: inset 0 0 0 1.5px var(--mb-destructive);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.mb-radio-indicator {
|
|
87
|
+
display: block;
|
|
88
|
+
width: var(--mb-radio-dot);
|
|
89
|
+
height: var(--mb-radio-dot);
|
|
90
|
+
border-radius: var(--mb-radius-full);
|
|
91
|
+
/* White on the system blue, as AppKit draws it; a brand whose accent needs dark ink gets a dark dot. */
|
|
92
|
+
background: var(--mb-on-accent);
|
|
93
|
+
box-shadow: 0 0.5px 1px rgb(0 0 0 / 0.18);
|
|
94
|
+
scale: 0;
|
|
95
|
+
transition: scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mb-radio-indicator[data-checked] {
|
|
99
|
+
scale: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.mb-radio-check {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* A radio with a title. */
|
|
107
|
+
.mb-radio-label {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
align-items: flex-start;
|
|
110
|
+
gap: var(--mb-radio-label-gap);
|
|
111
|
+
color: var(--mb-label);
|
|
112
|
+
font: var(--mb-text-body);
|
|
113
|
+
letter-spacing: var(--mb-tracking-body);
|
|
114
|
+
cursor: default;
|
|
115
|
+
user-select: none;
|
|
116
|
+
-webkit-user-select: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.mb-radio-label > .mb-radio {
|
|
120
|
+
margin-block-start: calc((1lh - var(--mb-radio-size)) / 2);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.mb-radio-label:has(> .mb-radio[data-disabled]) {
|
|
124
|
+
color: var(--mb-label-tertiary);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.mb-radio-text {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
gap: var(--mb-space-1);
|
|
131
|
+
min-width: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.mb-radio-description {
|
|
135
|
+
color: var(--mb-label-secondary);
|
|
136
|
+
font: var(--mb-text-callout);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* List: rows in an inset group, the chosen one marked with a checkmark at the end. */
|
|
140
|
+
.mb-radio-group[data-variant="list"] {
|
|
141
|
+
align-items: stretch;
|
|
142
|
+
gap: 0;
|
|
143
|
+
min-width: min(100%, 280px);
|
|
144
|
+
padding: 0;
|
|
145
|
+
border-radius: var(--mb-group-radius);
|
|
146
|
+
background: var(--mb-bg-grouped-secondary);
|
|
147
|
+
box-shadow: 0 0 0 var(--mb-hairline) var(--mb-separator);
|
|
148
|
+
overflow: clip;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.mb-radio-group[data-variant="list"] .mb-radio-label {
|
|
152
|
+
position: relative;
|
|
153
|
+
flex-direction: row-reverse;
|
|
154
|
+
align-items: center;
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
min-height: var(--mb-row-height);
|
|
157
|
+
padding: var(--mb-space-3) var(--mb-row-padding);
|
|
158
|
+
transition: background-color var(--mb-duration-fast) var(--mb-ease-out);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.mb-radio-group[data-variant="list"] .mb-radio-label + .mb-radio-label::before {
|
|
162
|
+
content: "";
|
|
163
|
+
position: absolute;
|
|
164
|
+
inset: 0 0 auto var(--mb-row-padding);
|
|
165
|
+
border-top: var(--mb-hairline) solid var(--mb-separator);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.mb-radio-group[data-variant="list"] .mb-radio-label:active {
|
|
169
|
+
background: var(--mb-fill-tertiary);
|
|
170
|
+
transition-duration: 0ms;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.mb-radio-group[data-variant="list"] .mb-radio-label:has(.mb-radio:focus-visible) {
|
|
174
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
175
|
+
outline-offset: calc(var(--mb-focus-ring-width) * -1);
|
|
176
|
+
border-radius: inherit;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.mb-radio-group[data-variant="list"] .mb-radio,
|
|
180
|
+
.mb-radio-group[data-variant="list"] .mb-radio[data-checked]:active {
|
|
181
|
+
width: var(--mb-icon-size);
|
|
182
|
+
height: var(--mb-icon-size);
|
|
183
|
+
margin: 0;
|
|
184
|
+
background: transparent;
|
|
185
|
+
box-shadow: none;
|
|
186
|
+
color: var(--mb-accent-text);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.mb-radio-group[data-variant="list"] .mb-radio:focus-visible {
|
|
190
|
+
outline: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mb-radio-group[data-variant="list"] .mb-radio-indicator {
|
|
194
|
+
width: 100%;
|
|
195
|
+
height: 100%;
|
|
196
|
+
background: none;
|
|
197
|
+
box-shadow: none;
|
|
198
|
+
scale: 1;
|
|
199
|
+
opacity: 0;
|
|
200
|
+
transition: opacity var(--mb-duration-instant) var(--mb-ease-out);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.mb-radio-group[data-variant="list"] .mb-radio-indicator[data-checked] {
|
|
204
|
+
opacity: 1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.mb-radio-group[data-variant="list"] .mb-radio-check {
|
|
208
|
+
display: block;
|
|
209
|
+
width: 100%;
|
|
210
|
+
height: 100%;
|
|
211
|
+
fill: none;
|
|
212
|
+
stroke: currentColor;
|
|
213
|
+
stroke-width: 2;
|
|
214
|
+
stroke-linecap: round;
|
|
215
|
+
stroke-linejoin: round;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@media (hover: hover) and (pointer: fine) {
|
|
219
|
+
.mb-radio-group[data-variant="list"] .mb-radio-label:hover {
|
|
220
|
+
background: var(--mb-fill-quaternary);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
|
|
225
|
+
.mb-radio {
|
|
226
|
+
background: transparent;
|
|
227
|
+
box-shadow: inset 0 0 0 1.5px var(--mb-control-border);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.mb-radio[data-checked] {
|
|
231
|
+
background: var(--mb-accent);
|
|
232
|
+
box-shadow: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.mb-radio:active:not([data-disabled], [data-readonly]) {
|
|
236
|
+
background: var(--mb-fill-tertiary);
|
|
237
|
+
scale: 0.92;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.mb-radio[data-checked]:active:not([data-disabled], [data-readonly]) {
|
|
241
|
+
background: var(--mb-accent-pressed);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.mb-radio-group[data-variant="list"] .mb-radio,
|
|
245
|
+
.mb-radio-group[data-variant="list"] .mb-radio[data-checked]:active {
|
|
246
|
+
background: transparent;
|
|
247
|
+
box-shadow: none;
|
|
248
|
+
scale: 1;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.mb-radio-group[data-variant="list"] .mb-radio-check {
|
|
252
|
+
stroke-width: 2.2;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
|
|
257
|
+
@media (prefers-reduced-motion: reduce) {
|
|
258
|
+
:where(:root:not([data-motion="full"])) {
|
|
259
|
+
.mb-radio:active:not([data-disabled], [data-readonly]) {
|
|
260
|
+
scale: none;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Choices with descriptions need more room between them to stay distinct. */
|
|
267
|
+
.mb-radio-group:not([data-variant="list"]):has(.mb-radio-description) {
|
|
268
|
+
gap: calc(var(--mb-radio-group-gap) + var(--mb-space-3));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* Continuous corners on the inset-grouped list, and the focus ring inside it. */
|
|
272
|
+
@supports (corner-shape: squircle) {
|
|
273
|
+
.mb-radio-group[data-variant="list"] {
|
|
274
|
+
corner-shape: var(--mb-corner-shape);
|
|
275
|
+
border-radius: calc(var(--mb-group-radius) * var(--mb-corner-factor));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.mb-radio-group[data-variant="list"] .mb-radio-label:has(.mb-radio:focus-visible) {
|
|
279
|
+
corner-shape: inherit;
|
|
280
|
+
}
|
|
281
|
+
}
|