@zazz-ui/core 0.9.0 → 0.9.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 +22 -0
- package/README.md +2 -2
- package/dist/sri.json +7 -7
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/package.json +1 -1
- package/src/base/dialog-lifecycle.d.ts.map +1 -1
- package/src/base/dialog-lifecycle.js +4 -1
- package/src/base/dialog-lifecycle.ts +4 -1
- package/src/primitives/badge/badge.css +3 -6
- package/src/primitives/button/button.css +3 -6
- package/src/primitives/combobox/combobox.d.ts +23 -0
- package/src/primitives/combobox/combobox.d.ts.map +1 -1
- package/src/primitives/combobox/combobox.js +53 -2
- package/src/primitives/combobox/combobox.ts +51 -2
- package/src/primitives/debug/debug.d.ts.map +1 -1
- package/src/primitives/debug/debug.js +4 -1
- package/src/primitives/debug/debug.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
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").
|
|
2
2
|
|
|
3
|
+
## 0.9.1 (2026-11-03)
|
|
4
|
+
|
|
5
|
+
### base
|
|
6
|
+
|
|
7
|
+
- Fix: the `zazz:dialog-open` and `zazz:dialog-close` events stopped firing after the first swap navigation (`data-ui-navigation="swap"`), which replaces the whole `<body>` the dialog observer was watching. The observer now watches the document root, which stays put for the page's lifetime.
|
|
8
|
+
|
|
9
|
+
### debug
|
|
10
|
+
|
|
11
|
+
- Fix: a `<ui-debug>` kept across a swap navigation went on watching the old `<body>`, so it never re-audited the new page. It now watches the document root and audits the current page on every run.
|
|
12
|
+
|
|
13
|
+
### button
|
|
14
|
+
|
|
15
|
+
- Fix: the `ghost` variant's hover surface is `--color-muted` again, and its active state deepens that same tint (one and a half times its alpha) instead of an opaque mix of foreground into background. A ghost button over a card or an image now shows what is beneath it, and the tint follows a retheme of `--color-muted`.
|
|
16
|
+
|
|
17
|
+
### badge
|
|
18
|
+
|
|
19
|
+
- Fix: the `ghost` variant's hover and active surfaces match the button's: `--color-muted`, deepened on press, translucent over whatever is beneath.
|
|
20
|
+
|
|
21
|
+
### combobox
|
|
22
|
+
|
|
23
|
+
- New `value` property on `<ui-combobox>`, mirroring `<select>.value`: reading it gives the selected row's form value (the empty string when nothing is selected); setting it moves the selection, the label, and the hidden input without focusing the input or dispatching `change`. A value no row carries clears the selection; in the multiselect variant the value becomes the whole selection.
|
|
24
|
+
|
|
3
25
|
## 0.9.0 (2026-10-30)
|
|
4
26
|
|
|
5
27
|
### base
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ import "@zazz-ui/core"; // custom elements and shared behaviors
|
|
|
20
20
|
From a CDN, the script needs an import map for its dependencies and the Interest Invokers polyfill:
|
|
21
21
|
|
|
22
22
|
```html
|
|
23
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.9.
|
|
23
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.9.1/dist/zazz.css" />
|
|
24
24
|
<script type="importmap">
|
|
25
25
|
{
|
|
26
26
|
"imports": {
|
|
@@ -36,7 +36,7 @@ From a CDN, the script needs an import map for its dependencies and the Interest
|
|
|
36
36
|
type="module"
|
|
37
37
|
src="https://cdn.jsdelivr.net/npm/invokers@2.2.2/dist/esm/production/interest.js"
|
|
38
38
|
></script>
|
|
39
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.9.
|
|
39
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.9.1/dist/zazz.js"></script>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Use an exact version in CDN URLs. Under a strict `script-src`, give the import map and the theme script the response's nonce (`buildHead({ nonce })` does); the docs' [security page](https://zazz.sh/docs/install/security/) has the full policy, including `style-src-attr` for the utilities. The [installation guide](https://zazz.sh/docs/install/installation/) has the complete `<head>`, with fonts, the theme script, a per-primitive variant, and integrity hashes on every URL; `buildHead({ cdn: { version } })` from `@zazz-ui/core/head` returns the same markup. Each release also includes `dist/sri.json` with the SHA-384 hash of every published file.
|
package/dist/sri.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dist/csp-DR-s45Kg.js": "sha384-SRUYG+OT4HN+P3+I9IKcQzpaASIhLzYatHDTdH0+TQ+hO0T5I9+vKp+676YcwyG8",
|
|
3
3
|
"dist/scroll-state-C8mA5gq6.js": "sha384-m9uzgIAkSnk8Es+jgCbChIYFu4rPyr00IB7lrAR/8dcsPc3u75VA7Wq5LIEAvXpT",
|
|
4
|
-
"dist/zazz.css": "sha384-
|
|
5
|
-
"dist/zazz.js": "sha384-
|
|
4
|
+
"dist/zazz.css": "sha384-RZ70PnOCXvbA2iyT8kD0ZOgbUHd0IXJSnAHoRE8VDBCRp0HqStHk0bamBO455x+t",
|
|
5
|
+
"dist/zazz.js": "sha384-ZKekMJ+S84trepnprC1G+PPcHsT3N9cCrJMmaBYHJ77kcJqZ6a4xIEdKwr2AlU8d",
|
|
6
6
|
"src/base/_breakpoints.css": "sha384-vsvdoL+ZjTa5gyCiMp4DlNIbr9rxkLqfQjZ+W3YTp2Apuuu+1/Dd68ACtcBOip3v",
|
|
7
7
|
"src/base/_defaults.css": "sha384-zxyCAC7DsjpKieVtFD3eDDqmGB02wdzKBR/AePWPI6U3ThRWfdU7UQRauU76ZWjW",
|
|
8
8
|
"src/base/_layers.css": "sha384-oP5mW12kxkLOsf0YZCjBxZ+QxearUXLYbRHv4ynTgvAbVMur2O9gXAPv9DZH8QGH",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"src/base/command-score.js": "sha384-o8BNVjYP6YWyVnMBzMJdBanMFwhsYbp3HsBK4FSYa32A2cWTwI79hm0dBo4z+ZW0",
|
|
57
57
|
"src/base/csp.js": "sha384-ZmcebcR7weMWHMY2uW1TKYuZOfOmCTQrx4elGyD6/KVO0pDqBhBy31jhBGgqYzvp",
|
|
58
58
|
"src/base/declarations.js": "sha384-WQPqKnnq9j1dO4jLXdt8VvQGhCfCdGZ8PWyUJYYpIWrbBh/1ptzx3qxyT39GWtoo",
|
|
59
|
-
"src/base/dialog-lifecycle.js": "sha384-
|
|
59
|
+
"src/base/dialog-lifecycle.js": "sha384-pihbZ9cErHyz3/ZnrB/j7zgspBa6tqYmGE8SOV71ErMbJYh24DLxBVs4hT6qJVi+",
|
|
60
60
|
"src/base/embla.js": "sha384-cPYANxOYQs7dUeEP8rYxqLYWZtmiYx6oLWs0jNxqZqBNoyOrU6Dpml5sZVqGHufp",
|
|
61
61
|
"src/base/hotkeys.js": "sha384-THU0JbWwkM9QAVJ2BwF5rwGHOIhCPLKHxfhmixYyyCBU0eNRi9kz6VxfNGaj8D8O",
|
|
62
62
|
"src/base/kit-styling.js": "sha384-cOGmgaS4lxaD9ze3pOY5/pEPnxy9povkdSaYCo+xR0+W9cyS2a53+SPDIJePuiK1",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"src/primitives/alert-dialog/alert-dialog.css": "sha384-4E+JekkG+6cMsj89lI9TSOb5w52mG8dxCncKWd19GLiUydvhCiBzBzTn2LI9CxM9",
|
|
78
78
|
"src/primitives/autocomplete/autocomplete.css": "sha384-6cOSg97IKnshQi1udOlwbwzcq7JnzqlS9QDTTiyPVwdqA60oqxeFuSqWKg3lEbri",
|
|
79
79
|
"src/primitives/autocomplete/autocomplete.js": "sha384-WI2uVoam+LtX3ze2XI9XEQIlLULGg/I1hVlb54zGKcgEiYIjtNcmNO69Age4SmuV",
|
|
80
|
-
"src/primitives/badge/badge.css": "sha384-
|
|
80
|
+
"src/primitives/badge/badge.css": "sha384-AmrLhJngdsisPm4JYdZEWPdPLtbuJaZnyzY4KviY5VAPRLJeMhCFt6Ma896ThB2P",
|
|
81
81
|
"src/primitives/button-group/button-group.css": "sha384-NZYiLlPlNOYc6r3kmO70iO0uLSDNZuKBYIIYOFWnp2uX1tTtT0dKaUYbWKBw8+zN",
|
|
82
|
-
"src/primitives/button/button.css": "sha384-
|
|
82
|
+
"src/primitives/button/button.css": "sha384-MGUXuWGi3Pj+rBT4uUYZc668+L/xxqb6AWsrRzEblCDm/iU6ofJRMrmUTvhY+tDb",
|
|
83
83
|
"src/primitives/callout/callout.css": "sha384-QsJQhafCFEFkzXPDEG9Qs0+k+DrBUUVX3tyMtCrQkB0mRKf3XvIXCum1f48oixel",
|
|
84
84
|
"src/primitives/card/card.css": "sha384-Q5ptNt0Iv84Ikpg7Fk/RfzUIQ0YmHUOMCAeW/MdYNQro/Z0UGGSfpQ8umeMqYpNd",
|
|
85
85
|
"src/primitives/carousel/carousel.css": "sha384-oRne6bLXEa1w/LxVpozGq01LFn4NJcdGmH1qVJQ3kYoqc89o6/CgyVU5zgSJOfIm",
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
"src/primitives/checkbox/checkbox.css": "sha384-Q7Goy59XlsuWo6RIskQAnVWLbNsjjX1O2Delb/YIwXLrll5zixNmTqeUbPsaJl7G",
|
|
88
88
|
"src/primitives/checkbox/checkbox.js": "sha384-mE1RsnkiD6343Q9mUH/L3zB7dTrVQlSZ9Cdn5dWiF5GT2V+0rWrA4t4EmyS9H13w",
|
|
89
89
|
"src/primitives/combobox/combobox.css": "sha384-lvzN4TLXiHvDtn5KQPhfZG2GJjMCr4ukVnkH8VqV/Whv2DBN7J8J2epnWwWlxh0K",
|
|
90
|
-
"src/primitives/combobox/combobox.js": "sha384-
|
|
90
|
+
"src/primitives/combobox/combobox.js": "sha384-kUhIsd8+YurItufjrhcW92QhknSQ4MeqnsRqCGKGkxmviw7MOccIHfCLs4p3b+Dy",
|
|
91
91
|
"src/primitives/command/command-actions.js": "sha384-C5zPTHAfE9Gkb4ZyWIlxTpmG9leKwB4EQEXLMNfpxtB3H6cWNqLHm8HMtpNPVpeA",
|
|
92
92
|
"src/primitives/command/command.css": "sha384-nxjq/N565X8jVhJr8FlIlnHgNkFM++6Roxc8keKEt0l1Zj0/LJIztl2Lzhet9R4Z",
|
|
93
93
|
"src/primitives/command/command.js": "sha384-xiAyBUBhXmECFvIqZOzbAPpiRXhHr0w2Rta4Jrsj3S3ERCxqFKG4nAHdMvMC+c6X",
|
|
94
94
|
"src/primitives/debug/audit-core.js": "sha384-qq/Q7QaYKH4neocVtyW6Ve7//3xbB8ac3ezvoIYrTJIlIV6GEkBf7FdofhtWND4w",
|
|
95
|
-
"src/primitives/debug/debug.js": "sha384
|
|
95
|
+
"src/primitives/debug/debug.js": "sha384-H08opwyN2A/u/KyWvKK9Je1f5WGQVt/jMtmxhIzSnIQWwp64fQUGkXCWH84staf1",
|
|
96
96
|
"src/primitives/dialog/dialog.css": "sha384-Q72ESElKQDGDDpcYPWmyopUMaGrlstpNl1ZUlZOX0HRrt12oM4r+iXtQJaWo22BI",
|
|
97
97
|
"src/primitives/fields/fields.css": "sha384-zUUOTLf1WyuwXYj/qrfJz7J2ZjAA2UkZNJBI+qq+1OJ3SUVsBmFHx1ZlA08VWGNT",
|
|
98
98
|
"src/primitives/input-group/input-group.css": "sha384-Sbs5m3tUElDbRTneiu8BmpaeOIU4QI3NNyL/5i4eQPI16KOrzJaEqsIXgAlX4M/M",
|