@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zazz-ui/core",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Zazz Design Framework — a zero-build, semantic-token CSS + vanilla JS UI kit built on modern web standards.",
5
5
  "keywords": [
6
6
  "cascade-layers",
@@ -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 (@supports gated)
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
- @supports (inline-size: anchor-size(width)) {
64
- [data-slot~="autocomplete-panel"] {
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 (@supports gated)
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
- @supports (inline-size: anchor-size(width)) {
194
- [data-slot~="combobox-panel"] {
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; Firefox/Safari fall
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 (Chromium 125+ today). It is gated behind
81
- @supports so browsers without anchor positioning (Firefox, Safari) keep the
82
- UA-centered popover (inset: 0 + margin: auto) instead of a mispositioned
83
- top-left box. Detection key is anchor-name — the entry property of the API. */
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 (@supports gated)
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; it is anchor-related,
248
- so it is gated. The fallback (max-content) only matters in the narrow case
249
- of a browser that supports customizable <select> (::picker) but not
250
- anchor-size, where the panel sizes to its content instead of stretching. */
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
- @supports (inline-size: anchor-size(width)) {
268
- .ui-select::picker(select) {
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
- @supports (inline-size: anchor-size(width)) {
417
- [data-slot~="multiselect-panel"] {
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