@zazz-ui/core 0.3.0 → 0.4.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 +19 -2
- package/README.md +4 -2
- package/dist/sri.json +16 -16
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/examples/about.html +5 -12
- package/examples/components.html +3 -10
- package/examples/forms.html +3 -10
- package/examples/index.html +3 -10
- package/examples/layout.html +3 -10
- package/examples/products.html +3 -10
- package/examples/responsive.html +3 -10
- package/package.json +1 -1
- package/src/base/typeahead.js +1 -1
- package/src/base/typeahead.ts +1 -1
- package/src/head.d.ts +11 -4
- package/src/head.d.ts.map +1 -1
- package/src/head.js +23 -24
- package/src/head.ts +23 -24
- package/src/manifest.d.ts +1 -1
- package/src/manifest.js +6 -6
- package/src/primitives/autocomplete/autocomplete.css +1 -1
- package/src/primitives/combobox/combobox.css +1 -1
- package/src/primitives/command/command.css +1 -1
- package/src/primitives/command/command.js +1 -1
- package/src/primitives/command/command.ts +1 -1
- package/src/primitives/menu/menu.js +1 -1
- package/src/primitives/menu/menu.ts +1 -1
- package/src/primitives/navigation-menu/navigation-menu.css +4 -15
- package/src/primitives/popover/popover.css +5 -3
- package/src/primitives/select/select.css +1 -1
- package/src/primitives/toaster/toaster.css +1 -1
- package/src/primitives/toaster/toaster.js +2 -2
- package/src/primitives/toaster/toaster.ts +2 -2
- package/src/primitives/tooltip/tooltip.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
1
|
Notable changes to `@zazz-ui/core`, grouped by primitive or base scope under each version. The grouping is load-bearing: the `zazz-ui` CLI's `update` and `diff` print only the slice that touches the files you've vendored. Breaking entries are flagged **BREAKING** with a one-line migration note. During 0.x, a minor bump means at least one breaking entry (ADR-0010 has the full definition of "breaking").
|
|
4
2
|
|
|
3
|
+
## 0.4.0 (2026-09-03)
|
|
4
|
+
|
|
5
|
+
One theme: the **polyfill set is corrected and cut to one**. The Popover API and Invoker Commands are native across the kit's browser floor and are no longer polyfilled; `interestfor` — which is Chromium-only and drives every tooltip — was never actually polyfilled despite appearing to be, and now is. Net effect: tooltips and hover-open menus start working in Firefox and Safari, and the head's polyfill payload drops from ~228 KB to 15 KB. See ADR-0011.
|
|
6
|
+
|
|
7
|
+
### base
|
|
8
|
+
|
|
9
|
+
- **BREAKING** The head contract ships one polyfill instead of two: `invokers@2.2.2/dist/esm/production/interest.js` (Interest Invokers). `@oddbird/popover-polyfill` is removed — the Popover API is native in Chrome 114+, Firefox 125+, Safari 17+, iOS Safari 18.3+, all below the support floor — and the `invokers` `compatible` build (Invoker Commands: Chrome 135+, Firefox 144+, Safari 26.2+) is replaced by the `interest` build from the same package. Migration: re-run `zazz-ui update` (vendored) or re-render `buildHead` / regenerate your `head.html`; if you hand-maintain your head, replace both old script tags with the single `interest.js` tag and its `sha384-hR2BVNtsS7fIIMwOm+f7MY0JZfuByGhQQfevCBB6evFATKzBsTw0JzH/RxD94z2T` hash.
|
|
10
|
+
- **BREAKING** Browser floor raised to match: the Popover API and Invoker Commands are now assumed native rather than polyfilled. Browsers below the floor no longer get popover behavior at all (a closed `[popover]` keeps the UA's `display: none`) instead of degrading through the polyfill. Migration: none if you were already on the documented floor (latest Chrome/Firefox/Safari, two versions back).
|
|
11
|
+
- **BREAKING** The `.\:popover-open` class hack is gone from every selector and `matches()` guard — 18 sites across popover, tooltip, menu, navigation-menu, command, select, combobox, autocomplete, toaster, and `base/typeahead`. Selectors are plain `:popover-open` now. `command.css` keeps `:where(:popover-open, [open])`; that branch is the dialog form of the panel, not the polyfill. Migration: if your own CSS matched `.\:popover-open` to hook Zazz popovers, switch to `:popover-open`.
|
|
12
|
+
|
|
13
|
+
### tooltip
|
|
14
|
+
|
|
15
|
+
- Fix: tooltips now work in Firefox and Safari. The trigger is `interestfor`, and the previously loaded polyfill (`invokers/compatible`) contained no `interestfor` implementation at all, so tooltips were silently Chromium-only. The `invokers/interest` build supplies it.
|
|
16
|
+
- Header comment corrected: the Popover API is native across the floor, and `interestfor`'s implicit anchors still are not polyfilled (explicit `anchor-name` is why the styling holds).
|
|
17
|
+
|
|
18
|
+
### menu
|
|
19
|
+
|
|
20
|
+
- Fix: the optional hover/focus-open path on menu, menubar, and navigation-menu triggers (`interestfor` alongside `popovertarget`) now works outside Chromium, for the same reason as tooltip.
|
|
21
|
+
|
|
5
22
|
## 0.3.0 (2026-09-02)
|
|
6
23
|
|
|
7
24
|
Three themes: (1) **theming is single-source** — every theme role is declared once as a `light-dark()` pair, and `.dark`/`.light`/`[data-theme]` are pure `color-scheme` pins that re-resolve the same tokens (the inverted-popover feature is removed); (2) **utility classes go fully logical** — every physical-side declaration becomes its logical equivalent, every side-named class gains a logical-name alias, and border widths and dividers arrive; (3) the **cascade layer contract is reworked** around `vendors`, a grouped `legacy`, `zazz.plugins`, and `overrides`. In LTR horizontal writing with system theming, default rendering is unchanged except where flagged below.
|
package/README.md
CHANGED
|
@@ -18,8 +18,8 @@ import "@zazz-ui/core"; // custom elements and shared behaviors
|
|
|
18
18
|
From a CDN:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.
|
|
22
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.
|
|
21
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.4.0/dist/zazz.css" />
|
|
22
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.4.0/dist/zazz.js"></script>
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Use an exact version in CDN URLs. Each release includes `dist/sri.json`, which lists the SHA-384 hash for every published file. Use those hashes in `integrity` attributes.
|
|
@@ -80,6 +80,8 @@ See [layout and containers](https://zazz.sh/docs/core-concepts/layout) for the b
|
|
|
80
80
|
|
|
81
81
|
Zazz targets the latest Chrome, Firefox, and Safari, two versions back. Features below that floor are feature-detected with a polyfill or a graceful fallback where practical. The kit leans on modern CSS (cascade layers, container style queries, subgrid, `light-dark()`), so older browsers get a degraded but functional experience rather than a pixel-perfect one.
|
|
82
82
|
|
|
83
|
+
The head loads exactly one polyfill: `invokers/interest`, for Interest Invokers (`interestfor`), which is Chromium-only and drives tooltip triggers. Everything else the kit builds on — the Popover API, Invoker Commands, native `<dialog>`, `<details>` — is native across the floor. CSS anchor positioning is below the floor and is gated behind `@supports` with a UA-centered fallback.
|
|
84
|
+
|
|
83
85
|
## Package layout
|
|
84
86
|
|
|
85
87
|
```text
|
package/dist/sri.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dist/zazz.css": "sha384-
|
|
3
|
-
"dist/zazz.js": "sha384-
|
|
2
|
+
"dist/zazz.css": "sha384-skrEBIKUgHE01I4ZsSGplvsowOPuke4DaWAv++k5vg+3fw1svzHU6fB+YjDn/fBu",
|
|
3
|
+
"dist/zazz.js": "sha384-o9ZafkMEU6kIP1aPJF5aC3ODUQIoC+as9KqTOidGSCrGU8xYeaKqRjPzH91F20Vi",
|
|
4
4
|
"src/base/_layers.css": "sha384-6lai/sx1zuGAK8TfF02TCc4FGE5rNs57GrNpz5FDs4u0BK5F26g36jycNQPXxkDs",
|
|
5
5
|
"src/base/_layout.css": "sha384-xmqjLFPKpqjGpFVEmMjoKsZiWb+hVQ0u5AceRpnkdWuH56nrMS7XqrfaAfelLJGa",
|
|
6
6
|
"src/base/_reset.css": "sha384-+nvxayQr5UV3DlJHhpltIJRD7pLwOTCX3HSVeQAZZR3G6w1Hms5B46NoN3l3B9M1",
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"src/base/navigation.js": "sha384-CNO5xdhvx4H1aRipOZ4W3w4ad7bWf7yH4IPTyWnW3aepNeJmsrwUebODeP9ALJC6",
|
|
16
16
|
"src/base/reveal.js": "sha384-XBh9JUP0jyS6TtcbEtBoeumSS6xBW50PVslmjvAVz80/wVgHGDck6Cd6+xxSnxSy",
|
|
17
17
|
"src/base/signals.js": "sha384-iyU+iAMEszJi5fYt1eGYhgLS2r8EXOt6PZhDg2OzDuIyDkQslchF3E+QyuT4CF8R",
|
|
18
|
-
"src/base/typeahead.js": "sha384-
|
|
18
|
+
"src/base/typeahead.js": "sha384-dxonBJRWe2+EgTjwNQ8+V66c357LflnM4m00Cobx35v4chn+JS+uZj8EZZqwyfhH",
|
|
19
19
|
"src/base/utils.js": "sha384-iwJoEs/fLdpt/TEDOQo+tk0Ao0vuEfGrE1bGGaM8OSXv6NgCY78LxQ/YiR6/AxF4",
|
|
20
20
|
"src/base/zazz-element.js": "sha384-6YCkr165EheG5e/nJbvFHTgeBL5HV3N0spXJiq5ZNArQyhUMV47dtyhrzaZTnTrr",
|
|
21
|
-
"src/head.js": "sha384-
|
|
21
|
+
"src/head.js": "sha384-OLRxC6VFJ7ZYzchrO8MfQWo+dkbsk7H05suLrKN0JmzXNbLMXtGeNXZnRvJZy0gq",
|
|
22
22
|
"src/index.css": "sha384-LdiaQ4o6WjSPrZVXXBBYhXYFs2m/Pmjz+G38UdFNWm4j0F4lAltMRC8pfl0pwkXP",
|
|
23
23
|
"src/index.js": "sha384-oiwIyfPR++s0gEHK1AhBCJ0801zVMgDs8n65WF7mM2RSnR3ME7ZKUFslUf8rV+5k",
|
|
24
|
-
"src/manifest.js": "sha384-
|
|
24
|
+
"src/manifest.js": "sha384-13SDHe1BkHVoy7QCmkZiREp6bT3dw8HKylkz9hChF/VfEDCweqVsllQp97W0Mp6i",
|
|
25
25
|
"src/primitives/accordion/accordion.css": "sha384-4lKoG9z38aKRyb3OxKaFRDGuxdQy55f/PWXnqoYDuuXsDb4Zs+19wsM3rO2215iR",
|
|
26
26
|
"src/primitives/alert-dialog/alert-dialog.css": "sha384-b2kvZNJgYFImVnNTP8IlnUB5JhXHDi55tsdUoiukMUsztH+0CL/CMuCYVoPi7bRv",
|
|
27
|
-
"src/primitives/autocomplete/autocomplete.css": "sha384-
|
|
27
|
+
"src/primitives/autocomplete/autocomplete.css": "sha384-mn1WzaUdN98UmW8N69bjibnkcoCE56GAfGsgzXwF2OrmauxNOj1JQqaUhXjiYXDX",
|
|
28
28
|
"src/primitives/autocomplete/autocomplete.js": "sha384-pSs//u6eySW6BvHOG2ei9L7diGOfP0lqhfhJwOtXJnMNu5UHPCr/hiRXo9XGAbs/",
|
|
29
29
|
"src/primitives/badge/badge.css": "sha384-xkWBCG/Sjkcw+ixRrKfRHlrEpS/xMDWOvBkHwy89vawXPml4yIcQyQhum4mvZUe+",
|
|
30
30
|
"src/primitives/button-group/button-group.css": "sha384-exGEia7TDeu6gGQBYyOy5l++jCGlDLpi+4Js0vPvu5XJEU9h2G1itJ9I52aT5Evd",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"src/primitives/carousel/carousel.js": "sha384-vzVtcr/e8BmG3h3eKJZFSZak3Wc1mBgBPRhaZJZaDzAeqkP+FEdMDKXJYRWV07MX",
|
|
34
34
|
"src/primitives/checkbox/checkbox.css": "sha384-x0kjj5JvslE6MuQ7TbRJ3E9cJFokyGFY26DxHj3Ky5jKRakQHUG4TeV6Iv7G9Yfl",
|
|
35
35
|
"src/primitives/checkbox/checkbox.js": "sha384-Gr6vMabK4kBba1MZRichsGKTrI3qVw/NHeONsUGkIzBuXsgO5cESOU9dIJ/LMLVY",
|
|
36
|
-
"src/primitives/combobox/combobox.css": "sha384-
|
|
36
|
+
"src/primitives/combobox/combobox.css": "sha384-yuww8OQXZhPCzoEft5RiytcCBzrQDQNJ/ufaDOkJTw9vQsVGFULL+rIDOjs9rZpq",
|
|
37
37
|
"src/primitives/combobox/combobox.js": "sha384-j//0AELQhqU2wyW5toz5h6BlZHGGZL349iGNJW0lQOzo7KQGPUosI1+BlgsfCKi4",
|
|
38
38
|
"src/primitives/command/command-actions.js": "sha384-T1zQ2KeawEZZ8lh6nnF02HjNvlnwFueAlLSYjd7T0F0PGOiz92pyu+9WdkeVuEzE",
|
|
39
|
-
"src/primitives/command/command.css": "sha384-
|
|
40
|
-
"src/primitives/command/command.js": "sha384-
|
|
39
|
+
"src/primitives/command/command.css": "sha384-gm6wCCmmgWyF+L2LY8tL0NJUPH2wSyBVHtBsJNpCPssj09OlIMmQH6lRMQW7yPbW",
|
|
40
|
+
"src/primitives/command/command.js": "sha384-MREOqGlpuuv4jabm6jQGwBR9L9jbDGUaLPMcUjKR4ybO9RgFfmOdroD9t3aSnEuZ",
|
|
41
41
|
"src/primitives/dialog/dialog.css": "sha384-Aow1Sk46Tp3aM3q/Xma0ddKNKnE2/N6LvF54lUsth4YgHegfFQ/gEiEH/ZDkVg5g",
|
|
42
42
|
"src/primitives/fields/fields.css": "sha384-O/Lp14Zind2WZQ79V+CK9uGsrwF8AINm5xwydtoOM/PiTIMDgdeF2p38TIDoQaUN",
|
|
43
43
|
"src/primitives/input-group/input-group.css": "sha384-VAzb7AbKgcu4iyYd8fyC8ThDs1YnwWjxkbhaY5brLnfCC74LpmaKjwRTVwLbzcZG",
|
|
@@ -46,20 +46,20 @@
|
|
|
46
46
|
"src/primitives/lightbox/lightbox.css": "sha384-+2ypt1iWmY/NOgNqY6Witj7tqga3PzWle56Pn6UX9MWc6186yiVXMq7Ur7itqieP",
|
|
47
47
|
"src/primitives/lightbox/lightbox.js": "sha384-8AjhUn5yRUbs4Cw934kdcPPGWlxjiejkAi52DE8uRJrEX92pEulUqIfdJvA7p2QT",
|
|
48
48
|
"src/primitives/menu/menu.css": "sha384-vMg8WO5PV11zkaWxQp2iHfVKZybM4V2tHH8wvI0ZHkzTQmVdtfhj46E8yrzn583J",
|
|
49
|
-
"src/primitives/menu/menu.js": "sha384-
|
|
49
|
+
"src/primitives/menu/menu.js": "sha384-7ynmoQqHjsWYl3W6ozwWPAFeKhnbRq4i1429GLkbmIrB9EERG3nR8XLhHP45rMyf",
|
|
50
50
|
"src/primitives/meter/meter.css": "sha384-qHqTrporwJbDHkQ/UW6BE/l69rjfC9dO+cXEk3jXEGdtuvxtLBU1Oj+MAOoCnmjJ",
|
|
51
51
|
"src/primitives/mobile-menu/mobile-menu.css": "sha384-msuO5tWwMK3818WFnAYv/OcLwsK5M0vwADGpPNVTwNKQmfFMuzRthS3/kr8V4qYc",
|
|
52
|
-
"src/primitives/navigation-menu/navigation-menu.css": "sha384-
|
|
52
|
+
"src/primitives/navigation-menu/navigation-menu.css": "sha384-hifJiTEO0NaLgxyMaa097xyqWP9UbdJ3oEmNKcOnKUdj995lr6ecOjqqR0agPWUc",
|
|
53
53
|
"src/primitives/otp/otp.css": "sha384-0oeVrtshegMYG2Y4CeNKD2NgJ5jjN8NrYUl1/r4n60R/EbGn7j6APOedUvSKHNXJ",
|
|
54
54
|
"src/primitives/otp/otp.js": "sha384-TSP2DHzrKkSVmGiuOnSrQjXYXXUro8svFyn8HVC7S/evI8gGcuY4+2HTqQ5/Opza",
|
|
55
55
|
"src/primitives/password-group/password-group.css": "sha384-Lagi9heKIWSNTJBuSO0OsGwpCRg2+iTpxNh1y7fPbncsTsdiAXuIWePnKfb36i3X",
|
|
56
56
|
"src/primitives/password-group/password-group.js": "sha384-qWMDes6gBfYbLmOLaR+Uc32A1FFqMAANoMSy1fulKMUvqPv/zA0NvXbn1hsNT5JA",
|
|
57
|
-
"src/primitives/popover/popover.css": "sha384-
|
|
57
|
+
"src/primitives/popover/popover.css": "sha384-65rxzLQb+vTeNITS8P3xA1CkrHmkTjDnypsYtixuKmmZ1B7EqDarVcdm/1rqFMdv",
|
|
58
58
|
"src/primitives/progress/progress.css": "sha384-qVNIdYg9NVyMJcC1yBbWtZH7M7WbOLIzMDq9AbTQibc+wUEubwThjbq+VXx4wa5n",
|
|
59
59
|
"src/primitives/radio/radio.css": "sha384-MCwj0IZencEnI7wQP3CQIq36mSBBrYr/xOg63gthW55J8AyObSoaWYHA4G6+sb3D",
|
|
60
60
|
"src/primitives/reveal/reveal.css": "sha384-/QfJXd7g2Bb4knJKr7Txt0ae5InCC3fRwasoj+Lk3lklIZE2aSf2GeJs6TQJDUFT",
|
|
61
61
|
"src/primitives/select/multiselect.js": "sha384-JMJu0pLMgqzHY/zTuyAnl8kkQwOYLTbWk0mcaQciqc9qNOXsSlEvRKlmtVITDzDG",
|
|
62
|
-
"src/primitives/select/select.css": "sha384-
|
|
62
|
+
"src/primitives/select/select.css": "sha384-Khf59sZgKIxrgVSblzupEOd/Iz/nUlz05YFquuq7c8BO3l3KbkH4341sBJM8HHYW",
|
|
63
63
|
"src/primitives/separator/separator.css": "sha384-G01cL0eyZtOU4wxrrlSk7ep0BxqvqzRfefv9DBHsRxryRZy5rRPbjLOodugvI8qu",
|
|
64
64
|
"src/primitives/slider/slider.css": "sha384-gEQ+QwVOZ3pJUq5lYUAECzJ9+TBjYMGC/RtqZOOAI0NFde5WwXHEVk7xBC1fMOUy",
|
|
65
65
|
"src/primitives/switch/switch.css": "sha384-IGXNv5UfSumA/hxNXWgm6kvWxYk/s/+6lPj2AMWX35BkqfgvSCZ7fMy7FCEiasb6",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"src/primitives/tabs/tabs.css": "sha384-jLknrtjusKMXYD2DzL5MZ3xvrfOcPAhc0S4mvoz2J32dj3ovC3leU1zM1qNTitHZ",
|
|
68
68
|
"src/primitives/tabs/tabs.js": "sha384-FfrT8E9lh5/V8prSZokemklL0NIgVFG0aVo2ZpJ62uWMFa3cFP6gZO8nCgD4Z9Zx",
|
|
69
69
|
"src/primitives/textarea/textarea.css": "sha384-u7gXoNvOux1RlytcKMzEIpMif08eLxI8djeNb3snFb/Dw5Jhut70Me/pMNSsl2wk",
|
|
70
|
-
"src/primitives/toaster/toaster.css": "sha384-
|
|
71
|
-
"src/primitives/toaster/toaster.js": "sha384-
|
|
70
|
+
"src/primitives/toaster/toaster.css": "sha384-i6DsALcbU3W5teVq1H+vRjaIiRwaRKNHROnRYym+C+7mMWZG6Jp+aBrXrtFlFXZD",
|
|
71
|
+
"src/primitives/toaster/toaster.js": "sha384-JiTspSyOnHS1M2J9rcqPc7nvK23w/6Frr4JyeijH/eYWMNlvSx0eCNoQGxoewAKF",
|
|
72
72
|
"src/primitives/toggle-group/toggle-group.css": "sha384-hYP6iopUXkAh7nQnI+f0ZuI+g7Sl+LqtmuZ19LzpeAXtMZVN8P4HYHytao5wrHTl",
|
|
73
73
|
"src/primitives/toggle/toggle.css": "sha384-DILJL/10h/gzfOVmwvauhLyLzAP5vJqceRgHLx7LPSuz16Ji/VEzTpFFaG8GLGoA",
|
|
74
|
-
"src/primitives/tooltip/tooltip.css": "sha384-
|
|
74
|
+
"src/primitives/tooltip/tooltip.css": "sha384-4sVxWCh1ZMsiPmX2a13OXv0cMe9cBubE7qB5tcXAkO1UGiUAezkuHZAc68JbBVjh"
|
|
75
75
|
}
|