@zazz-ui/core 0.4.0 → 0.4.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/CHANGELOG.md +10 -0
- package/README.md +2 -2
- package/dist/sri.json +5 -5
- package/dist/zazz.css +1 -1
- package/package.json +1 -1
- package/src/primitives/autocomplete/autocomplete.css +3 -5
- package/src/primitives/combobox/combobox.css +3 -5
- package/src/primitives/popover/popover.css +7 -6
- package/src/primitives/select/select.css +10 -13
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* select.css (--ui-option-*), input.css
|
|
7
7
|
* @uses [popover="manual"] — panel opened/closed by autocomplete.js
|
|
8
8
|
* @uses anchor-name, anchor-scope, position-anchor — tether panel to the input
|
|
9
|
-
* @uses anchor-size(width) — match panel width to the input (
|
|
9
|
+
* @uses anchor-size(width) — match panel width to the input (Baseline 2026)
|
|
10
10
|
* @uses :has() — group + empty-state visibility without JavaScript
|
|
11
11
|
* @uses data-side / data-align — maps to --ui-popover-position-* in popover.css
|
|
12
12
|
* @tokens --ui-autocomplete-* (@layer variables); items alias --ui-option-*
|
|
@@ -60,10 +60,8 @@
|
|
|
60
60
|
box-shadow: none;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
min-inline-size: anchor-size(width);
|
|
66
|
-
}
|
|
63
|
+
[data-slot~="autocomplete-panel"] {
|
|
64
|
+
min-inline-size: anchor-size(width);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
[data-slot~="autocomplete-list"] {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* select.css (--ui-option-*, --ui-select-picker-icon-*)
|
|
8
8
|
* @uses [popover="manual"]: panel opened/closed by combobox.js
|
|
9
9
|
* @uses anchor-name, anchor-scope, position-anchor: tether panel to the control
|
|
10
|
-
* @uses anchor-size(width): match panel width to the control (
|
|
10
|
+
* @uses anchor-size(width): match panel width to the control (Baseline 2026)
|
|
11
11
|
* @uses :has(): chevron rotation, group + empty-state visibility
|
|
12
12
|
* @uses mask: chevron and tag-remove icons; wiped in forced-colors mode,
|
|
13
13
|
* matching the rest of the kit (option checkmark, picker icon)
|
|
@@ -190,10 +190,8 @@
|
|
|
190
190
|
box-shadow: none;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
min-inline-size: anchor-size(width);
|
|
196
|
-
}
|
|
193
|
+
[data-slot~="combobox-panel"] {
|
|
194
|
+
min-inline-size: anchor-size(width);
|
|
197
195
|
}
|
|
198
196
|
|
|
199
197
|
[data-slot~="combobox-list"] {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* Safari 17, iOS 18.3; no polyfill, see ADR-0011)
|
|
9
9
|
* @uses @starting-style + allow-discrete: enter/exit opacity/transform
|
|
10
10
|
* @uses anchor-name, position-anchor, position-area, position-try-fallbacks:
|
|
11
|
-
* anchor positioning (gated behind @supports;
|
|
12
|
-
* back to UA-centered popover)
|
|
11
|
+
* anchor positioning (gated behind @supports; Safari 26.x falls
|
|
12
|
+
* back to UA-centered popover — full support lands in Safari 27)
|
|
13
13
|
* @uses backdrop-filter: popover surface blur
|
|
14
14
|
* @tokens --ui-popover-* (Tier 3 owner; @layer variables)
|
|
15
15
|
* @consumedby select.css (picker placement), menu.css, navigation-menu.css, tooltip.css, toaster.css,
|
|
@@ -77,10 +77,11 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/* Anchor positioning tethers the popover to its trigger and lets the browser
|
|
80
|
-
flip it away from viewport edges
|
|
81
|
-
@supports
|
|
82
|
-
UA-centered popover (inset: 0 + margin: auto) instead of a
|
|
83
|
-
top-left box.
|
|
80
|
+
flip it away from viewport edges. Baseline 2026: Chrome 151, Firefox 147,
|
|
81
|
+
Safari 27. The @supports gate now covers exactly one case — Safari 26.x,
|
|
82
|
+
which keeps the UA-centered popover (inset: 0 + margin: auto) instead of a
|
|
83
|
+
mispositioned top-left box. Retire this gate once Safari 27 is two versions
|
|
84
|
+
back. Detection key is anchor-name — the entry property of the API. */
|
|
84
85
|
@supports (anchor-name: --zazz) {
|
|
85
86
|
:where([popover]) {
|
|
86
87
|
position: fixed;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @uses appearance: base-select: customizable select (Chromium 135+ / Safari 17+)
|
|
7
7
|
* @uses ::picker(select), ::picker-icon, selectedcontent, option::checkmark
|
|
8
8
|
* @uses @starting-style + allow-discrete: picker open animation
|
|
9
|
-
* @uses anchor-size(width): match picker width to trigger (
|
|
9
|
+
* @uses anchor-size(width): match picker width to trigger (Baseline 2026)
|
|
10
10
|
* @uses position-area, position-try-fallbacks: placement tokens come from
|
|
11
11
|
* popover.css's shared matrix (@supports gated)
|
|
12
12
|
* @uses backdrop-filter: picker surface blur (shared with [popover])
|
|
@@ -244,10 +244,11 @@
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
/* Dropdown panel: the shared [popover] surface (--ui-popover-* family), anchored
|
|
247
|
-
to the trigger. anchor-size() matches the panel to the trigger width
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
247
|
+
to the trigger. anchor-size() matches the panel to the trigger width. No
|
|
248
|
+
@supports gate: anchor-size() is Baseline 2026 (Chrome 125, Firefox 147,
|
|
249
|
+
Safari 26.0), and where it is missing the declaration is simply dropped, so
|
|
250
|
+
the max-content declared above stands — the panel sizes to its content
|
|
251
|
+
instead of stretching. */
|
|
251
252
|
.ui-select::picker(select) {
|
|
252
253
|
flex-direction: column;
|
|
253
254
|
gap: var(--step-px);
|
|
@@ -264,10 +265,8 @@
|
|
|
264
265
|
box-shadow: var(--ui-popover-shadow);
|
|
265
266
|
}
|
|
266
267
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
min-inline-size: anchor-size(width);
|
|
270
|
-
}
|
|
268
|
+
.ui-select::picker(select) {
|
|
269
|
+
min-inline-size: anchor-size(width);
|
|
271
270
|
}
|
|
272
271
|
|
|
273
272
|
/* ===========================================================================
|
|
@@ -413,10 +412,8 @@
|
|
|
413
412
|
display: flex;
|
|
414
413
|
}
|
|
415
414
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
min-inline-size: anchor-size(width);
|
|
419
|
-
}
|
|
415
|
+
[data-slot~="multiselect-panel"] {
|
|
416
|
+
min-inline-size: anchor-size(width);
|
|
420
417
|
}
|
|
421
418
|
|
|
422
419
|
/* Rows are ghost options; the checkbox is real but visually replaced by the
|