@zazz-ui/core 0.9.1 → 0.10.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/AUTHORING.md +21 -16
- package/CHANGELOG.md +89 -0
- package/README.md +3 -3
- package/dist/sri.json +85 -84
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +9042 -1944
- package/editor/zazz.html-data.json +31 -41
- package/editor/zazz.language-data.json +468 -233
- package/editor/zazz.lint-data.json +412 -396
- package/package.json +2 -3
- package/src/base/_defaults.css +59 -40
- package/src/base/_layers.css +5 -2
- package/src/base/_properties-2xl.css +10 -0
- package/src/base/_properties-active.css +8 -0
- package/src/base/_properties-checked.css +8 -0
- package/src/base/_properties-current.css +8 -0
- package/src/base/_properties-disabled.css +8 -0
- package/src/base/_properties-focus-visible.css +8 -0
- package/src/base/_properties-focus-within.css +8 -0
- package/src/base/_properties-hover.css +8 -0
- package/src/base/_properties-lg.css +10 -0
- package/src/base/_properties-md.css +10 -0
- package/src/base/_properties-open.css +8 -0
- package/src/base/_properties-sm.css +10 -0
- package/src/base/_properties-starting.css +4 -0
- package/src/base/_properties-stuck.css +4 -0
- package/src/base/_properties-xl.css +10 -0
- package/src/base/_properties.css +55 -15
- package/src/base/_reset.css +8 -4
- package/src/base/_typography.css +26 -9
- package/src/base/_utilities-box.css +63 -59
- package/src/base/_utilities-color.css +55 -8
- package/src/base/_utilities-effects.css +8 -0
- package/src/base/_utilities-flow.css +28 -5
- package/src/base/_utilities-pseudo.css +4 -0
- package/src/base/_utilities-spacing.css +8 -8
- package/src/base/_utilities-sr.css +98 -0
- package/src/base/_utilities-tier-2xl.css +5 -0
- package/src/base/_utilities-tier-active.css +5 -1
- package/src/base/_utilities-tier-checked.css +5 -1
- package/src/base/_utilities-tier-current.css +5 -1
- package/src/base/_utilities-tier-disabled.css +5 -1
- package/src/base/_utilities-tier-focus-visible.css +5 -1
- package/src/base/_utilities-tier-focus-within.css +5 -1
- package/src/base/_utilities-tier-hover.css +5 -1
- package/src/base/_utilities-tier-lg.css +5 -0
- package/src/base/_utilities-tier-md.css +5 -0
- package/src/base/_utilities-tier-open.css +5 -1
- package/src/base/_utilities-tier-sm.css +5 -0
- package/src/base/_utilities-tier-starting.css +2 -0
- package/src/base/_utilities-tier-stuck.css +3 -0
- package/src/base/_utilities-tier-xl.css +5 -0
- package/src/base/_utilities-typography.css +263 -3
- package/src/base/_variables.css +123 -57
- package/src/base/kit-styling.d.ts.map +1 -1
- package/src/base/kit-styling.js +90 -86
- package/src/base/kit-styling.ts +90 -86
- package/src/base/utilities.d.ts +23 -8
- package/src/base/utilities.d.ts.map +1 -1
- package/src/base/utilities.js +78 -3
- package/src/base/utilities.ts +95 -11
- package/src/head.d.ts.map +1 -1
- package/src/head.js +4 -5
- package/src/head.ts +4 -5
- package/src/index.css +3 -2
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +13 -3
- package/src/manifest.ts +13 -3
- package/src/primitives/alert-dialog/alert-dialog.css +1 -1
- package/src/primitives/autocomplete/autocomplete.css +4 -2
- package/src/primitives/avatar/avatar.html +4 -6
- package/src/primitives/badge/badge.css +63 -56
- package/src/primitives/breadcrumbs/breadcrumbs.html +1 -7
- package/src/primitives/button/button.css +44 -57
- package/src/primitives/button-group/button-group.css +4 -0
- package/src/primitives/callout/callout.css +22 -43
- package/src/primitives/card/card-subgrid.html +2 -3
- package/src/primitives/card/card.css +4 -0
- package/src/primitives/card/card.html +2 -3
- package/src/primitives/checkbox/checkbox.css +4 -0
- package/src/primitives/combobox/combobox.css +8 -1
- package/src/primitives/command/command-actions.d.ts.map +1 -1
- package/src/primitives/command/command-actions.js +4 -9
- package/src/primitives/command/command-actions.ts +4 -9
- package/src/primitives/debug/audit-core.d.ts +1 -1
- package/src/primitives/debug/audit-core.d.ts.map +1 -1
- package/src/primitives/debug/audit-core.js +30 -3
- package/src/primitives/debug/audit-core.ts +40 -2
- package/src/primitives/dialog/dialog-with-form.html +1 -1
- package/src/primitives/dialog/dialog.css +19 -4
- package/src/primitives/fields/fields.css +11 -5
- package/src/primitives/group/group.css +18 -0
- package/src/primitives/group/group.html +26 -0
- package/src/primitives/input/input.css +14 -8
- package/src/primitives/input-group/input-group-password-group.html +1 -1
- package/src/primitives/input-group/input-group.css +12 -8
- package/src/primitives/kbd/kbd.css +4 -0
- package/src/primitives/lightbox/lightbox.css +13 -0
- package/src/primitives/lightbox/lightbox.html +2 -1
- package/src/primitives/menu/menu.css +3 -1
- package/src/primitives/meter/meter.css +10 -3
- package/src/primitives/navigation-menu/navigation-menu.css +5 -0
- package/src/primitives/navigation-menu/navigation-menu.html +2 -2
- package/src/primitives/otp/otp.css +4 -0
- package/src/primitives/password-group/password-group.css +13 -9
- package/src/primitives/password-group/password-group.html +1 -1
- package/src/primitives/popover/popover.css +6 -0
- package/src/primitives/progress/progress.css +5 -0
- package/src/primitives/radio/radio.css +3 -0
- package/src/primitives/select/select.css +17 -9
- package/src/primitives/slider/slider.css +8 -0
- package/src/primitives/switch/switch.css +56 -20
- package/src/primitives/tabs/tabs.css +18 -0
- package/src/primitives/textarea/textarea.css +19 -10
- package/src/primitives/toaster/toaster.css +8 -4
- package/src/primitives/toggle/toggle.css +10 -6
- package/src/primitives/toggle-group/toggle-group.css +4 -0
- package/src/primitives/tooltip/tooltip.css +4 -0
- package/src/primitives/utilities/pile.html +2 -3
- package/src/base/_switches.css +0 -148
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* @uses @container — thumb column count at narrow widths
|
|
8
8
|
* @uses @starting-style — dialog slide scale/opacity on snap
|
|
9
9
|
* @uses Embla sync — requires zazz/scripts/embla.js for carousel behaviour
|
|
10
|
+
* @uses corner-shape — superellipse corners; unsupported browsers keep plain
|
|
11
|
+
* rounded corners
|
|
10
12
|
* @tokens --ui-lightbox-* (@layer variables)
|
|
11
13
|
*/
|
|
12
14
|
|
|
@@ -15,7 +17,9 @@
|
|
|
15
17
|
--ui-lightbox-aspect: 3 / 2;
|
|
16
18
|
--ui-lightbox-object-fit: cover;
|
|
17
19
|
--ui-lightbox-slide-radius: var(--radius-lg);
|
|
20
|
+
--ui-lightbox-slide-corner-shape: var(--radius-corner-shape);
|
|
18
21
|
--ui-lightbox-thumb-radius: var(--radius-md);
|
|
22
|
+
--ui-lightbox-thumb-corner-shape: var(--radius-corner-shape);
|
|
19
23
|
--ui-lightbox-thumb-size: calc(var(--spacing) * 16);
|
|
20
24
|
--ui-lightbox-thumb-opacity: 0.5;
|
|
21
25
|
--ui-lightbox-thumb-opacity--active: 1;
|
|
@@ -82,6 +86,7 @@
|
|
|
82
86
|
[data-lightbox-slot~="stage"]
|
|
83
87
|
> [data-carousel-slot~="viewport"] {
|
|
84
88
|
border-radius: var(--ui-lightbox-slide-radius);
|
|
89
|
+
corner-shape: var(--ui-lightbox-slide-corner-shape);
|
|
85
90
|
background: var(--color-card);
|
|
86
91
|
}
|
|
87
92
|
|
|
@@ -90,6 +95,7 @@
|
|
|
90
95
|
> [data-carousel-slot~="viewport"]
|
|
91
96
|
> [data-carousel-slot~="container"] {
|
|
92
97
|
border-radius: var(--ui-lightbox-slide-radius);
|
|
98
|
+
corner-shape: var(--ui-lightbox-slide-corner-shape);
|
|
93
99
|
margin-inline-start: calc(var(--space-sm) * -1);
|
|
94
100
|
}
|
|
95
101
|
|
|
@@ -120,6 +126,7 @@
|
|
|
120
126
|
overflow: clip;
|
|
121
127
|
position: relative;
|
|
122
128
|
border-radius: var(--ui-lightbox-slide-radius);
|
|
129
|
+
corner-shape: var(--ui-lightbox-slide-corner-shape);
|
|
123
130
|
border: var(--ui-lightbox-img-border);
|
|
124
131
|
|
|
125
132
|
/* transparent twin of the inset ring for forced-colors / high-contrast modes */
|
|
@@ -138,6 +145,7 @@
|
|
|
138
145
|
inset: 0;
|
|
139
146
|
pointer-events: none;
|
|
140
147
|
border-radius: inherit;
|
|
148
|
+
corner-shape: inherit;
|
|
141
149
|
box-shadow: inset 0 0 0 var(--_ring-width) var(--color-ring);
|
|
142
150
|
transition: box-shadow var(--default-transition-duration)
|
|
143
151
|
var(--default-transition-timing-function);
|
|
@@ -217,6 +225,7 @@
|
|
|
217
225
|
flex: 1;
|
|
218
226
|
min-inline-size: 0;
|
|
219
227
|
border-radius: var(--ui-lightbox-thumb-radius);
|
|
228
|
+
corner-shape: var(--ui-lightbox-thumb-corner-shape);
|
|
220
229
|
}
|
|
221
230
|
|
|
222
231
|
:where(ui-lightbox, [data-ui~="lightbox"]) [data-lightbox-slot~="thumbs-prev"],
|
|
@@ -256,6 +265,7 @@
|
|
|
256
265
|
position: relative;
|
|
257
266
|
border: var(--ui-lightbox-img-border);
|
|
258
267
|
border-radius: var(--ui-lightbox-thumb-radius);
|
|
268
|
+
corner-shape: var(--ui-lightbox-thumb-corner-shape);
|
|
259
269
|
overflow: clip;
|
|
260
270
|
|
|
261
271
|
/* transparent twin of the inset ring for forced-colors / high-contrast modes */
|
|
@@ -271,6 +281,7 @@
|
|
|
271
281
|
inset: 0;
|
|
272
282
|
pointer-events: none;
|
|
273
283
|
border-radius: inherit;
|
|
284
|
+
corner-shape: inherit;
|
|
274
285
|
box-shadow: inset 0 0 0 var(--_ring-width) var(--_ring-fill);
|
|
275
286
|
transition: box-shadow var(--default-transition-duration)
|
|
276
287
|
var(--default-transition-timing-function);
|
|
@@ -334,6 +345,7 @@
|
|
|
334
345
|
[data-lightbox-slot~="thumb"]
|
|
335
346
|
img {
|
|
336
347
|
border-radius: var(--ui-lightbox-thumb-radius);
|
|
348
|
+
corner-shape: var(--ui-lightbox-thumb-corner-shape);
|
|
337
349
|
}
|
|
338
350
|
|
|
339
351
|
:where(ui-lightbox, [data-ui~="lightbox"])
|
|
@@ -438,6 +450,7 @@
|
|
|
438
450
|
--ui-lightbox-thumb-radius: var(--radius-xs);
|
|
439
451
|
|
|
440
452
|
border-radius: var(--ui-lightbox-slide-radius);
|
|
453
|
+
corner-shape: var(--ui-lightbox-slide-corner-shape);
|
|
441
454
|
border: var(--ui-lightbox-img-border);
|
|
442
455
|
overflow: clip;
|
|
443
456
|
inline-size: 100%;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* menu.css: Menu (ui-menu | [data-ui~="menu"]; slot data-menu-slot="popover")
|
|
3
3
|
*
|
|
4
4
|
* @layer variables, components
|
|
5
|
-
* @requires _layers.css, _variables.css, _properties.css (--_*-resolved), popover.css, button.css
|
|
5
|
+
* @requires _layers.css, _variables.css, _properties.css (--_*-resolved), popover.css, button.css, fields.css
|
|
6
6
|
* @uses popovertarget + [popover]: inherits Popover API from popover.css
|
|
7
7
|
* @uses interestfor: optional hover/focus open on the same trigger
|
|
8
8
|
* (Interest Invokers, Chromium 142+; polyfill via invokers)
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
@layer variables {
|
|
17
17
|
:root {
|
|
18
18
|
--ui-menu-button-radius: var(--radius-sm);
|
|
19
|
+
--ui-menu-button-corner-shape: var(--radius-corner-shape);
|
|
19
20
|
/* a scale number or a length */
|
|
20
21
|
--ui-menu-min-w: calc(var(--spacing) * 52);
|
|
21
22
|
--ui-menu-gap: var(--ui-field-option-gap);
|
|
@@ -56,5 +57,6 @@
|
|
|
56
57
|
|
|
57
58
|
:where(ui-menu, [data-ui~="menu"]) [data-menu-slot~="popover"] [data-ui~="button"] {
|
|
58
59
|
--ui-button-radius: var(--ui-menu-button-radius);
|
|
60
|
+
--ui-button-corner-shape: var(--ui-menu-button-corner-shape);
|
|
59
61
|
}
|
|
60
62
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* @uses Engines without typed attr() keep the vendor-pseudo fill;
|
|
15
15
|
* recorded degradation in Blink pre-133: themed track + thin
|
|
16
16
|
* centered fill (browser policy exception)
|
|
17
|
+
* @uses corner-shape — round by default, so circles stay circles; a hook takes any shape
|
|
17
18
|
* @tokens --ui-meter-* (@layer variables); geometry aliases --ui-progress-*
|
|
18
19
|
*/
|
|
19
20
|
|
|
@@ -24,13 +25,14 @@
|
|
|
24
25
|
--ui-meter-w: var(--ui-progress-w);
|
|
25
26
|
--ui-meter-h: var(--ui-progress-h);
|
|
26
27
|
--ui-meter-radius: var(--ui-progress-radius);
|
|
28
|
+
--ui-meter-corner-shape: var(--ui-progress-corner-shape);
|
|
27
29
|
--ui-meter-bg: var(--ui-progress-bg);
|
|
28
30
|
--ui-meter-track-border: var(--ui-progress-track-border);
|
|
29
31
|
|
|
30
32
|
/* Fills are semantic: a meter communicates good/bad, not completion */
|
|
31
|
-
--ui-meter-bar-bg: var(--color-success);
|
|
32
|
-
--ui-meter-bar-bg--suboptimum: var(--color-warning);
|
|
33
|
-
--ui-meter-bar-bg--even-less-good: var(--color-destructive);
|
|
33
|
+
--ui-meter-bar-bg: var(--color-success-foreground);
|
|
34
|
+
--ui-meter-bar-bg--suboptimum: var(--color-warning-foreground);
|
|
35
|
+
--ui-meter-bar-bg--even-less-good: var(--color-destructive-foreground);
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -57,6 +59,7 @@
|
|
|
57
59
|
border-radius: calc(
|
|
58
60
|
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-multiplier)
|
|
59
61
|
);
|
|
62
|
+
corner-shape: var(--_corner-shape-resolved, var(--ui-meter-corner-shape));
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
:where([data-ui~="meter"])::-webkit-meter-bar {
|
|
@@ -70,23 +73,27 @@
|
|
|
70
73
|
block-size: 100%;
|
|
71
74
|
background: var(--ui-meter-bar-bg);
|
|
72
75
|
border-radius: inherit;
|
|
76
|
+
corner-shape: inherit;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
:where([data-ui~="meter"])::-webkit-meter-suboptimum-value {
|
|
76
80
|
block-size: 100%;
|
|
77
81
|
background: var(--ui-meter-bar-bg--suboptimum);
|
|
78
82
|
border-radius: inherit;
|
|
83
|
+
corner-shape: inherit;
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
:where([data-ui~="meter"])::-webkit-meter-even-less-good-value {
|
|
82
87
|
block-size: 100%;
|
|
83
88
|
background: var(--ui-meter-bar-bg--even-less-good);
|
|
84
89
|
border-radius: inherit;
|
|
90
|
+
corner-shape: inherit;
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
:where([data-ui~="meter"])::-moz-meter-bar {
|
|
88
94
|
block-size: 100%;
|
|
89
95
|
border-radius: inherit;
|
|
96
|
+
corner-shape: inherit;
|
|
90
97
|
}
|
|
91
98
|
|
|
92
99
|
:where([data-ui~="meter"]:-moz-meter-optimum)::-moz-meter-bar {
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* @uses :has(:popover-open): rotates the trigger's data-navigation-menu-slot="marker"
|
|
10
10
|
* chevron without JS
|
|
11
11
|
* @uses @starting-style: slide-down viewport reveal
|
|
12
|
+
* @uses corner-shape — superellipse corners; unsupported browsers keep plain
|
|
13
|
+
* rounded corners
|
|
12
14
|
* @tokens --ui-navigation-menu-* (@layer variables)
|
|
13
15
|
* @presets on the popover slot: data-navigation-menu-variant="submenu",
|
|
14
16
|
* data-navigation-menu-size="container | root | screen",
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
|
|
24
26
|
--ui-navigation-menu-popover-shadow: var(--shadow-md);
|
|
25
27
|
--ui-navigation-menu-popover-child-radius: var(--radius-sm);
|
|
28
|
+
--ui-navigation-menu-popover-child-corner-shape: var(--radius-corner-shape);
|
|
26
29
|
--ui-navigation-menu-popover-gap: calc(var(--spacing) * 1.5);
|
|
27
30
|
--ui-navigation-menu-popover-w: min(var(--article-sm), 100% - var(--space-md));
|
|
28
31
|
--ui-navigation-menu-popover-viewport-display: grid;
|
|
@@ -136,6 +139,7 @@
|
|
|
136
139
|
padding: var(--ui-navigation-menu-popover-gap);
|
|
137
140
|
border: 0;
|
|
138
141
|
border-radius: var(--ui-navigation-menu-popover-child-radius);
|
|
142
|
+
corner-shape: var(--ui-navigation-menu-popover-child-corner-shape);
|
|
139
143
|
color: inherit;
|
|
140
144
|
font: inherit;
|
|
141
145
|
text-align: start;
|
|
@@ -194,6 +198,7 @@
|
|
|
194
198
|
flex-direction: column;
|
|
195
199
|
padding: var(--ui-navigation-menu-popover-gap);
|
|
196
200
|
border-radius: var(--ui-navigation-menu-popover-child-radius);
|
|
201
|
+
corner-shape: var(--ui-navigation-menu-popover-child-corner-shape);
|
|
197
202
|
text-decoration: none;
|
|
198
203
|
transition: background-color var(--default-transition-duration)
|
|
199
204
|
var(--default-transition-timing-function);
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
"
|
|
780
780
|
>
|
|
781
781
|
<fieldset data-ui="field-group">
|
|
782
|
-
<legend
|
|
782
|
+
<legend style="--sr: only">Sign in</legend>
|
|
783
783
|
<div
|
|
784
784
|
style="
|
|
785
785
|
--display: grid;
|
|
@@ -915,7 +915,7 @@
|
|
|
915
915
|
<div data-field-slot="description">
|
|
916
916
|
<span data-field-slot="error" role="alert">Incorrect email or password.</span>
|
|
917
917
|
</div>
|
|
918
|
-
<span
|
|
918
|
+
<span style="--sr: only" id="f-login-password-warning"
|
|
919
919
|
>Warning: showing the password makes it visible to anyone near your
|
|
920
920
|
screen.</span
|
|
921
921
|
>
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* stamped cell rail with transparent text/caret so autofill,
|
|
8
8
|
* paste, and focus stay native; never display:none
|
|
9
9
|
* @uses :focus-within: active-cell ring only while the input has focus
|
|
10
|
+
* @uses corner-shape — superellipse corners; unsupported browsers keep plain
|
|
11
|
+
* rounded corners
|
|
10
12
|
* @tokens --ui-otp-* (@layer variables; aliases --ui-field-*)
|
|
11
13
|
* @see otp.ts: stamps the rail and mirrors value/caret into the cells
|
|
12
14
|
*/
|
|
@@ -20,6 +22,7 @@
|
|
|
20
22
|
--ui-otp-cell-border-style: var(--ui-field-border-style);
|
|
21
23
|
--ui-otp-cell-border-color: var(--ui-field-border-color);
|
|
22
24
|
--ui-otp-cell-radius: var(--ui-field-radius);
|
|
25
|
+
--ui-otp-cell-corner-shape: var(--ui-field-corner-shape);
|
|
23
26
|
--ui-otp-cell-font-size: var(--font-size-md);
|
|
24
27
|
--ui-otp-gap: calc(var(--spacing) * 1.5);
|
|
25
28
|
--ui-otp-separator-text: var(--color-muted-foreground);
|
|
@@ -90,6 +93,7 @@
|
|
|
90
93
|
border-radius: calc(
|
|
91
94
|
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-multiplier)
|
|
92
95
|
);
|
|
96
|
+
corner-shape: var(--_corner-shape-resolved, var(--ui-otp-cell-corner-shape));
|
|
93
97
|
|
|
94
98
|
transition: var(--default-transition);
|
|
95
99
|
}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* @uses aria-pressed on toggle — show/hide icon swap via CSS (JS sets type +
|
|
9
9
|
* aria in password-group.ts)
|
|
10
10
|
* @uses Native reveal suppressed in _reset.css (::-ms-reveal, etc.)
|
|
11
|
+
* @uses corner-shape — superellipse corners; unsupported browsers keep plain
|
|
12
|
+
* rounded corners
|
|
11
13
|
* @tokens --ui-password-group-* (@layer variables)
|
|
12
14
|
*/
|
|
13
15
|
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
border-radius: calc(
|
|
74
76
|
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-multiplier)
|
|
75
77
|
);
|
|
78
|
+
corner-shape: var(--_corner-shape-resolved, var(--ui-field-corner-shape));
|
|
76
79
|
|
|
77
80
|
/* the ring is a box-shadow; the transparent outline keeps focus visible in
|
|
78
81
|
forced-colors mode */
|
|
@@ -226,12 +229,13 @@
|
|
|
226
229
|
:where([data-ui~="password-group"]) [data-ui~="button"] {
|
|
227
230
|
flex-shrink: 0;
|
|
228
231
|
border-radius: var(--ui-field-inset-child-radius);
|
|
232
|
+
corner-shape: var(--ui-field-corner-shape);
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
:where([data-ui~="field"]:has(:user-invalid))
|
|
232
236
|
:where([data-ui~="password-group"])
|
|
233
237
|
[data-password-group-slot~="text"] {
|
|
234
|
-
--ui-password-group-text: var(--color-destructive);
|
|
238
|
+
--ui-password-group-text: var(--color-destructive-foreground);
|
|
235
239
|
}
|
|
236
240
|
|
|
237
241
|
/* Both icons ship in the markup; aria-pressed picks which one shows. */
|
|
@@ -262,13 +266,13 @@
|
|
|
262
266
|
}
|
|
263
267
|
|
|
264
268
|
:where([data-ui~="password-group"]):has(:user-invalid) {
|
|
265
|
-
--ui-field-bg:
|
|
266
|
-
--ui-field-bg--hover:
|
|
267
|
-
--ui-field-border-color: var(--color-destructive);
|
|
268
|
-
--ui-field-border-color--hover: var(--color-destructive);
|
|
269
|
-
--ui-field-border-color--focus-within: var(--color-destructive);
|
|
270
|
-
--ui-field-ring-color: var(--color-destructive);
|
|
271
|
-
|
|
272
|
-
border-color: var(--color-destructive);
|
|
269
|
+
--ui-field-bg: var(--color-destructive);
|
|
270
|
+
--ui-field-bg--hover: oklch(from var(--color-destructive) calc(l - 0.025) c h);
|
|
271
|
+
--ui-field-border-color: var(--color-destructive-foreground);
|
|
272
|
+
--ui-field-border-color--hover: var(--color-destructive-foreground);
|
|
273
|
+
--ui-field-border-color--focus-within: var(--color-destructive-foreground);
|
|
274
|
+
--ui-field-ring-color: var(--color-destructive-foreground);
|
|
275
|
+
|
|
276
|
+
border-color: var(--color-destructive-foreground);
|
|
273
277
|
}
|
|
274
278
|
}
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<span data-field-slot="hint" id="pw-preview-hint">Use eight or more characters.</span>
|
|
110
110
|
<span data-field-slot="error" role="alert">Password must be at least 8 characters.</span>
|
|
111
111
|
</div>
|
|
112
|
-
<span
|
|
112
|
+
<span style="--sr: only" id="pw-preview-warning"
|
|
113
113
|
>Warning: showing the password makes it visible to anyone near your screen.</span
|
|
114
114
|
>
|
|
115
115
|
</div>
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* @uses anchor-name, position-anchor, position-area, position-try-fallbacks:
|
|
9
9
|
* anchor positioning (gated behind @supports; Safari 26.x falls
|
|
10
10
|
* back to the UA-centered popover)
|
|
11
|
+
* @uses corner-shape — superellipse corners; unsupported browsers keep plain
|
|
12
|
+
* rounded corners
|
|
11
13
|
* @tokens --ui-popover-* (Tier 3 owner; @layer variables)
|
|
12
14
|
* @presets data-popover-side="top | bottom | left | right", data-popover-align="start | center | end"
|
|
13
15
|
* on the [popover] element (the identity is the native attribute)
|
|
@@ -20,7 +22,9 @@
|
|
|
20
22
|
/* Styles */
|
|
21
23
|
--ui-popover-border-color: var(--color-border);
|
|
22
24
|
--ui-popover-radius: var(--radius-md);
|
|
25
|
+
--ui-popover-corner-shape: var(--radius-corner-shape);
|
|
23
26
|
--ui-popover-button-radius: var(--radius-sm);
|
|
27
|
+
--ui-popover-button-corner-shape: var(--radius-corner-shape);
|
|
24
28
|
--ui-popover-shadow: var(--shadow-md);
|
|
25
29
|
--ui-popover-p: calc(var(--spacing) * 1.5);
|
|
26
30
|
--ui-popover-min-w: var(--article-xs);
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
border-radius: calc(
|
|
62
66
|
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-multiplier)
|
|
63
67
|
);
|
|
68
|
+
corner-shape: var(--_corner-shape-resolved, var(--ui-popover-corner-shape));
|
|
64
69
|
box-shadow: var(--_shadow-resolved, var(--ui-popover-shadow));
|
|
65
70
|
opacity: var(--ui-popover-opacity--start);
|
|
66
71
|
transform: scale(var(--ui-popover-scale--start)) translate3d(var(--ui-popover-translate--start));
|
|
@@ -130,6 +135,7 @@
|
|
|
130
135
|
|
|
131
136
|
:where([popover] [data-ui~="button"]) {
|
|
132
137
|
--ui-button-radius: var(--ui-popover-button-radius);
|
|
138
|
+
--ui-button-corner-shape: var(--ui-popover-button-corner-shape);
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
/* ===========================================================================
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* ::-moz-progress-bar) — never combine the two vendors in one
|
|
9
9
|
* selector list (an unknown pseudo invalidates the whole rule)
|
|
10
10
|
* @uses :indeterminate — animated stripe on the element background
|
|
11
|
+
* @uses corner-shape — round by default, so circles stay circles; a hook takes any shape
|
|
11
12
|
* @tokens --ui-progress-* (@layer variables)
|
|
12
13
|
* @consumedby meter.css
|
|
13
14
|
*/
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
--ui-progress-w: 100%;
|
|
18
19
|
--ui-progress-h: calc(var(--spacing) * 1.5);
|
|
19
20
|
--ui-progress-radius: var(--radius-full);
|
|
21
|
+
--ui-progress-corner-shape: round;
|
|
20
22
|
--ui-progress-bg: var(--color-muted);
|
|
21
23
|
--ui-progress-track-border: 1px solid transparent;
|
|
22
24
|
--ui-progress-bar-bg: var(--color-primary);
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
border-radius: calc(
|
|
47
49
|
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-multiplier)
|
|
48
50
|
);
|
|
51
|
+
corner-shape: var(--_corner-shape-resolved, var(--ui-progress-corner-shape));
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
:where([data-ui~="progress"])::-webkit-progress-bar {
|
|
@@ -55,6 +58,7 @@
|
|
|
55
58
|
:where([data-ui~="progress"])::-webkit-progress-value {
|
|
56
59
|
background-color: var(--ui-progress-bar-bg);
|
|
57
60
|
border-radius: inherit;
|
|
61
|
+
corner-shape: inherit;
|
|
58
62
|
transition: inline-size var(--default-transition-duration)
|
|
59
63
|
var(--default-transition-timing-function);
|
|
60
64
|
}
|
|
@@ -62,6 +66,7 @@
|
|
|
62
66
|
:where([data-ui~="progress"])::-moz-progress-bar {
|
|
63
67
|
background-color: var(--ui-progress-bar-bg);
|
|
64
68
|
border-radius: inherit;
|
|
69
|
+
corner-shape: inherit;
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
/* Stripe on the element itself so it renders the same in every engine; the
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @layer variables, components
|
|
5
5
|
* @requires _layers.css, _variables.css, _properties.css (--_*-resolved, --_focus-shadow), fields.css (field-group layout, --ui-field-* surface/border)
|
|
6
6
|
* @uses appearance: none — custom circle + masked ::before dot when :checked
|
|
7
|
+
* @uses corner-shape — round by default, so circles stay circles; a hook takes any shape
|
|
7
8
|
* @tokens --ui-radio-* (@layer variables)
|
|
8
9
|
*/
|
|
9
10
|
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
--ui-radio-border-color--hover: var(--ui-field-border-color--hover);
|
|
20
21
|
--ui-radio-border-color--checked: var(--color-primary);
|
|
21
22
|
--ui-radio-radius: var(--radius-full);
|
|
23
|
+
--ui-radio-corner-shape: round;
|
|
22
24
|
--ui-radio-dot-size: 1em;
|
|
23
25
|
--ui-radio-dot-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' fill='currentColor' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3C/svg%3E")
|
|
24
26
|
center / contain no-repeat;
|
|
@@ -51,6 +53,7 @@
|
|
|
51
53
|
border-radius: calc(
|
|
52
54
|
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-multiplier)
|
|
53
55
|
);
|
|
56
|
+
corner-shape: var(--_corner-shape-resolved, var(--ui-radio-corner-shape));
|
|
54
57
|
|
|
55
58
|
/* centres the ::before dot */
|
|
56
59
|
display: inline-grid;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* select.css: Select (:where([data-ui~="select"]) on customizable <select>)
|
|
3
3
|
*
|
|
4
4
|
* @layer variables, reset, components
|
|
5
|
-
* @requires _layers.css, _variables.css, fields.css, _reset.css, popover.css (--ui-popover-*), button.css (--ui-button-*)
|
|
5
|
+
* @requires _layers.css, _variables.css, fields.css, _reset.css, popover.css (--ui-popover-*), button.css (--ui-button-*), menu.css (--ui-menu-*)
|
|
6
6
|
* @uses appearance: base-select: customizable select
|
|
7
7
|
* @uses ::picker(select), ::picker-icon, selectedcontent, option::checkmark
|
|
8
8
|
* @uses @starting-style + allow-discrete: picker open animation
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
* @uses ui-multiselect (multiselect.ts): JS-projected dropdown for
|
|
14
14
|
* <select multiple> (base-select has no stable multi-select);
|
|
15
15
|
* degrades to the native multi listbox without JS
|
|
16
|
+
* @uses corner-shape — superellipse corners; unsupported browsers keep plain
|
|
17
|
+
* rounded corners
|
|
16
18
|
* @tokens --ui-select-* (@layer variables); picker panel reuses --ui-popover-* (owned in popover.css)
|
|
17
19
|
* @consumedby autocomplete.css, combobox.css, command.css (--ui-option-*, --ui-select-picker-icon-*)
|
|
18
20
|
*/
|
|
@@ -32,6 +34,7 @@
|
|
|
32
34
|
--ui-select-border-style: var(--ui-field-border-style);
|
|
33
35
|
--ui-select-border-color: var(--ui-field-border-color);
|
|
34
36
|
--ui-select-radius: var(--ui-field-radius);
|
|
37
|
+
--ui-select-corner-shape: var(--ui-field-corner-shape);
|
|
35
38
|
--ui-select-option-gap: var(--ui-field-option-gap);
|
|
36
39
|
|
|
37
40
|
/* Picker icon (trigger chevron) */
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
--ui-option-min-h: var(--ui-button-min-h);
|
|
52
55
|
--ui-option-icon-size: var(--ui-button-icon-size);
|
|
53
56
|
--ui-option-radius: var(--ui-menu-button-radius);
|
|
57
|
+
--ui-option-corner-shape: var(--ui-menu-button-corner-shape);
|
|
54
58
|
--ui-option-shadow: none;
|
|
55
59
|
|
|
56
60
|
--ui-option-bg: transparent;
|
|
@@ -177,6 +181,7 @@
|
|
|
177
181
|
border-radius: calc(
|
|
178
182
|
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-multiplier)
|
|
179
183
|
);
|
|
184
|
+
corner-shape: var(--_corner-shape-resolved, var(--ui-select-corner-shape));
|
|
180
185
|
cursor: pointer;
|
|
181
186
|
|
|
182
187
|
/* the transparent outline keeps focus visible in forced-colors */
|
|
@@ -269,6 +274,7 @@
|
|
|
269
274
|
border-radius: calc(
|
|
270
275
|
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-multiplier)
|
|
271
276
|
);
|
|
277
|
+
corner-shape: var(--_corner-shape-resolved, var(--ui-popover-corner-shape));
|
|
272
278
|
box-shadow: var(--ui-popover-shadow);
|
|
273
279
|
}
|
|
274
280
|
|
|
@@ -311,6 +317,7 @@
|
|
|
311
317
|
border: var(--ui-option-border-width) var(--ui-option-border-style)
|
|
312
318
|
var(--ui-option-border-color);
|
|
313
319
|
border-radius: var(--ui-option-radius);
|
|
320
|
+
corner-shape: var(--ui-option-corner-shape);
|
|
314
321
|
box-shadow: var(--ui-option-shadow);
|
|
315
322
|
cursor: pointer;
|
|
316
323
|
|
|
@@ -440,6 +447,7 @@
|
|
|
440
447
|
border: var(--ui-option-border-width) var(--ui-option-border-style)
|
|
441
448
|
var(--ui-option-border-color);
|
|
442
449
|
border-radius: var(--ui-option-radius);
|
|
450
|
+
corner-shape: var(--ui-option-corner-shape);
|
|
443
451
|
cursor: pointer;
|
|
444
452
|
|
|
445
453
|
transition: var(--default-transition);
|
|
@@ -503,14 +511,14 @@
|
|
|
503
511
|
}
|
|
504
512
|
|
|
505
513
|
:where([data-ui~="select"]):user-invalid {
|
|
506
|
-
--ui-field-bg:
|
|
507
|
-
--ui-field-bg--hover:
|
|
508
|
-
--ui-field-border-color: var(--color-destructive);
|
|
509
|
-
--ui-field-border-color--hover: var(--color-destructive);
|
|
510
|
-
--ui-field-border-color--focus-within: var(--color-destructive);
|
|
511
|
-
--ui-field-ring-color: var(--color-destructive);
|
|
512
|
-
|
|
513
|
-
border-color: var(--color-destructive);
|
|
514
|
+
--ui-field-bg: var(--color-destructive);
|
|
515
|
+
--ui-field-bg--hover: oklch(from var(--color-destructive) calc(l - 0.025) c h);
|
|
516
|
+
--ui-field-border-color: var(--color-destructive-foreground);
|
|
517
|
+
--ui-field-border-color--hover: var(--color-destructive-foreground);
|
|
518
|
+
--ui-field-border-color--focus-within: var(--color-destructive-foreground);
|
|
519
|
+
--ui-field-ring-color: var(--color-destructive-foreground);
|
|
520
|
+
|
|
521
|
+
border-color: var(--color-destructive-foreground);
|
|
514
522
|
}
|
|
515
523
|
}
|
|
516
524
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @layer variables, reset
|
|
5
5
|
* @requires _layers.css, _variables.css
|
|
6
6
|
* @uses appearance: none — redraws track + thumb from theme tokens
|
|
7
|
+
* @uses corner-shape — round by default, so circles stay circles; a hook takes any shape
|
|
7
8
|
* @tokens --ui-slider-* (@layer variables, on :root so subtree hooks work)
|
|
8
9
|
*
|
|
9
10
|
* Note: The active region is NOT filled (parity across engines); add a paint
|
|
@@ -19,12 +20,14 @@
|
|
|
19
20
|
--ui-slider-track-bg: var(--color-muted);
|
|
20
21
|
--ui-slider-track-border: 1px solid var(--color-muted);
|
|
21
22
|
--ui-slider-track-radius: var(--radius-full);
|
|
23
|
+
--ui-slider-track-corner-shape: round;
|
|
22
24
|
--ui-slider-thumb-size: calc(var(--spacing) * 4);
|
|
23
25
|
--ui-slider-thumb-bg: var(--color-background);
|
|
24
26
|
|
|
25
27
|
--ui-slider-thumb-shadow: var(--shadow-xs);
|
|
26
28
|
--ui-slider-thumb-border: 1px solid var(--color-border);
|
|
27
29
|
--ui-slider-thumb-radius: var(--radius-full);
|
|
30
|
+
--ui-slider-thumb-corner-shape: round;
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -39,6 +42,7 @@
|
|
|
39
42
|
background: transparent;
|
|
40
43
|
cursor: grab;
|
|
41
44
|
border-radius: var(--ui-slider-track-radius);
|
|
45
|
+
corner-shape: var(--ui-slider-track-corner-shape);
|
|
42
46
|
|
|
43
47
|
/* transparent outline keeps focus visible in forced-colors / high-contrast
|
|
44
48
|
modes; the visible focus ring lives on the thumb via --shadow-ring */
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
background: var(--ui-slider-track-bg);
|
|
53
57
|
border: var(--ui-slider-track-border);
|
|
54
58
|
border-radius: var(--ui-slider-track-radius);
|
|
59
|
+
corner-shape: var(--ui-slider-track-corner-shape);
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
:where(input[type="range"])::-moz-range-track {
|
|
@@ -60,6 +65,7 @@
|
|
|
60
65
|
background: var(--ui-slider-track-bg);
|
|
61
66
|
border: var(--ui-slider-track-border);
|
|
62
67
|
border-radius: var(--ui-slider-track-radius);
|
|
68
|
+
corner-shape: var(--ui-slider-track-corner-shape);
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
:where(input[type="range"])::-webkit-slider-thumb {
|
|
@@ -82,6 +88,7 @@
|
|
|
82
88
|
background-color: var(--ui-slider-thumb-bg);
|
|
83
89
|
border: var(--ui-slider-thumb-border);
|
|
84
90
|
border-radius: var(--ui-slider-thumb-radius);
|
|
91
|
+
corner-shape: var(--ui-slider-thumb-corner-shape);
|
|
85
92
|
|
|
86
93
|
transition: var(--default-transition);
|
|
87
94
|
}
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
background-color: var(--ui-slider-thumb-bg);
|
|
100
107
|
border: var(--ui-slider-thumb-border);
|
|
101
108
|
border-radius: var(--ui-slider-thumb-radius);
|
|
109
|
+
corner-shape: var(--ui-slider-thumb-corner-shape);
|
|
102
110
|
|
|
103
111
|
box-shadow:
|
|
104
112
|
0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|