@zazz-ui/core 0.12.1 → 0.12.2
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 +27 -0
- package/README.md +2 -2
- package/dist/sri.json +8 -8
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +8 -0
- package/editor/zazz.language-data.json +24 -14
- package/editor/zazz.lint-data.json +4 -0
- package/package.json +1 -1
- package/src/base/_defaults.css +4 -4
- package/src/base/_variables.css +1 -1
- package/src/base/kit-styling.js +4 -4
- package/src/base/kit-styling.ts +4 -4
- package/src/primitives/fields/fields.css +1 -1
- package/src/primitives/slider/slider.css +142 -8
- package/src/primitives/tabs/tabs.css +5 -5
- package/src/primitives/tooltip/tooltip.css +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
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.12.2 (2026-11-12)
|
|
4
|
+
|
|
5
|
+
### base
|
|
6
|
+
|
|
7
|
+
- `--color-input` in dark mode is the solid `--color-neutral-950`, where it was the `--color-tint-100` overlay.
|
|
8
|
+
- A padding tier written without its base (`--px--md: 4` with no `--px`) no longer applies to a slider, so it can't override the inline padding the slider's fill depends on.
|
|
9
|
+
|
|
10
|
+
### fields
|
|
11
|
+
|
|
12
|
+
- A field's hover border mixes 10% of `--color-foreground` into the border, where it mixed `--color-primary`.
|
|
13
|
+
|
|
14
|
+
### slider
|
|
15
|
+
|
|
16
|
+
- The track takes the field look: `--ui-slider-track-bg`, `--ui-slider-track-border-width`, and `--ui-slider-track-border-color` default to the matching `--ui-field-*` hooks, where they were `--color-muted` with a 1px muted border. The thumb is `--color-card` (was `--color-background`).
|
|
17
|
+
- The track fills from the start to the thumb in `--color-primary`. Set the color with `--ui-slider-fill-bg`, and fill from the thumb to the end instead with `--ui-slider-fill-side: end`.
|
|
18
|
+
- In Chromium and Safari, the fill needs the input to clip its overflow. A slider used with a mouse is now about 30px tall, and its track ends sit 3px in from each side to leave room for the focus ring. A thumb shadow larger than the default gets clipped, and padding utilities on the slider move the fill off the thumb.
|
|
19
|
+
- Right-to-left sliders have no fill in Chromium or Safari, because the two engines disagree on which way it should run. Firefox fills them.
|
|
20
|
+
|
|
21
|
+
### tabs
|
|
22
|
+
|
|
23
|
+
- The indicator is `--color-muted` with no shadow (`--ui-tabs-indicator-bg`, `--ui-tabs-indicator-shadow`), where it was `--color-card` with `--shadow-xs`.
|
|
24
|
+
- The track is tighter: `--ui-tabs-track-p` and `--ui-tabs-track-gap` are `0.35 * --spacing` (were `0.5`), and `--ui-tabs-gap`, between the tab list and the panels, is `0` (was `--space-xs`).
|
|
25
|
+
|
|
26
|
+
### tooltip
|
|
27
|
+
|
|
28
|
+
- An opening tooltip no longer flashes far from its trigger in Chromium when the page or a container around it is scrolled. Chromium misplaces one of the first two frames, so the opening fade now starts 34ms late and that frame is transparent. Closing is unchanged. A custom `--ui-tooltip-transition` gets the delay on its first entry.
|
|
29
|
+
|
|
3
30
|
## 0.12.1 (2026-11-12)
|
|
4
31
|
|
|
5
32
|
### 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.12.
|
|
23
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.12.2/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.12.
|
|
39
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.12.2/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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dist/csp-LRx1fynI.js": "sha384-s1Kg/1/tQobRsTf5BpAR3XeNmA3AkU7xfe6xdKivdk22yxstCs1ets32NeMMp9Av",
|
|
3
3
|
"dist/scroll-state-C8mA5gq6.js": "sha384-m9uzgIAkSnk8Es+jgCbChIYFu4rPyr00IB7lrAR/8dcsPc3u75VA7Wq5LIEAvXpT",
|
|
4
|
-
"dist/zazz.css": "sha384-
|
|
4
|
+
"dist/zazz.css": "sha384-laC1vYW9aQy8TQLJR0zho11W10/zy6AWxuMkZwFsedV+QbRgye3ejkJy7P7spHTj",
|
|
5
5
|
"dist/zazz.js": "sha384-I6MopAQVYy1N/5Y05t6YIErdia3YbfpYuaj/mvvKbfdPM1FfC8GnrunqohsfqsDl",
|
|
6
6
|
"src/base/_breakpoints.css": "sha384-vsvdoL+ZjTa5gyCiMp4DlNIbr9rxkLqfQjZ+W3YTp2Apuuu+1/Dd68ACtcBOip3v",
|
|
7
|
-
"src/base/_defaults.css": "sha384-
|
|
7
|
+
"src/base/_defaults.css": "sha384-wpNG8/enm8fxhzRNCG79YWbS6Zb1bJufrsmawGfe5qnligdwPg3RLpbM73kQl146",
|
|
8
8
|
"src/base/_layers.css": "sha384-+muc9Umj4iangP79BNjiCidmgTfGe7w41/GR/ZW14yuBb+b5MnrPpWrYu99Ontr8",
|
|
9
9
|
"src/base/_properties-2xl.css": "sha384-ZKisobz5lJCW6ee/t8HoN00cQQDcivsZU0pAcOpzLectwwWuFqRKUggf8AQB/Fbb",
|
|
10
10
|
"src/base/_properties-active.css": "sha384-xZGMsPY70S9irHDpy/KmbB75pimNCz0Zj+97e7DVImX+b5fdQNw/u5qnN/fCpI3k",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"src/base/_utilities-tier-stuck.css": "sha384-y31kYYjchK8AX1W/uXOlC/hnDYndokkjLKy5P25BGO8rZQvflzWvKR9vUxO3ILhA",
|
|
52
52
|
"src/base/_utilities-tier-xl.css": "sha384-0tyJaY87jITtTAyCqCp/ifF11qrI3WLwdnTA+eZ6Zye8i1rvP8JxyPH+BaDL2Aj0",
|
|
53
53
|
"src/base/_utilities-typography.css": "sha384-/2r/jV7qM0sQjLbwqJdyNeryHRsFEVnUV4aXoJzStjKmdgT6qUp59oJVMjYx45F1",
|
|
54
|
-
"src/base/_variables.css": "sha384
|
|
54
|
+
"src/base/_variables.css": "sha384-eoylO8ZyziiQXlBMFAo3KAXrn4OXgBVxwENO4Pm0tb18rbpTFzbI5GaDXaHj/ZXr",
|
|
55
55
|
"src/base/_view-transitions.css": "sha384-0aNEjsjVLNa3+6y7ektne0C4vgbjg4Sg1m1vY6PCB6ysRbwyqngfy/D5b+BAsYWY",
|
|
56
56
|
"src/base/command-score.js": "sha384-o8BNVjYP6YWyVnMBzMJdBanMFwhsYbp3HsBK4FSYa32A2cWTwI79hm0dBo4z+ZW0",
|
|
57
57
|
"src/base/csp.js": "sha384-bAg/dGdmavUFEpUo1vGNNxB0n4Hx2h9LaU3G7PtICxhtLeun4DgUamIf+3lmH9Ft",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
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
|
-
"src/base/kit-styling.js": "sha384-
|
|
62
|
+
"src/base/kit-styling.js": "sha384-P12zFpL3xOwyjchvvhSAmQAl8V2oAOOcudB40mq52Ng7lvyIhz+d+LPOwJlevuJg",
|
|
63
63
|
"src/base/navigation.js": "sha384-qi8prjZOQxsA5C8UjMCGuivbVquYbVWqQzS3d7ZvTdZc7Rh/udJYLMYL4TIgtAQ1",
|
|
64
64
|
"src/base/reveal.js": "sha384-UYiDoNgXsINWTIabv/STaj1+zfP3OSe1vBgkxTWup51l0HQE1PgsRtQDpPAHOPHC",
|
|
65
65
|
"src/base/scroll-state.js": "sha384-ql6E3qGCmO5nKrmORbRCrU9bVlbIpcYvQq+zr26VZhRNHdnqNuJGH9mK0hXy1vG1",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"src/primitives/debug/audit-core.js": "sha384-EOrVRfOAib7o7DZmXl9xj9uKKGpRqIff12v6RuBwbc/Nx+hWQkNqXDfhjRFIfRT8",
|
|
95
95
|
"src/primitives/debug/debug.js": "sha384-H08opwyN2A/u/KyWvKK9Je1f5WGQVt/jMtmxhIzSnIQWwp64fQUGkXCWH84staf1",
|
|
96
96
|
"src/primitives/dialog/dialog.css": "sha384-ziIuDxaNM4ACOz3smRaPTOAqo8TltWw60zumwO+/+DYa2Ri3r6cgL6Yw/bs5M/da",
|
|
97
|
-
"src/primitives/fields/fields.css": "sha384
|
|
97
|
+
"src/primitives/fields/fields.css": "sha384-+sIAFbi5gm3CcHhSlXK9EBFxUF7v35UZ8gM6bgBg1IMGFRuUU7M+iHyfOg62NzXY",
|
|
98
98
|
"src/primitives/group/group.css": "sha384-lGS+9BCaqRZLOx0AXGldNW01V1cbPnFc6tZuy7jAUpwyeupUfGQgyA90e7Ms561f",
|
|
99
99
|
"src/primitives/input-group/input-group.css": "sha384-H2Ph7pY5IQVv/K5qjYNOpRLAv/L5RR5irMcrmCYcSDq+d9xdOBQxFQ285H0q1lSj",
|
|
100
100
|
"src/primitives/input/input.css": "sha384-V6UqxxX9jZiohQ11GVgVMUyNbiwqOMHQmSyuIKm4gNmT+DnIJk7g+r1j+BGtS468",
|
|
@@ -119,16 +119,16 @@
|
|
|
119
119
|
"src/primitives/select/multiselect.js": "sha384-4uSHU1RxSQMjVc8fOJ9lGZwGoCSgsvkKEMCGjOYKD56WRd0hNR3dQGum+/87RaGH",
|
|
120
120
|
"src/primitives/select/select.css": "sha384-fVWlFu97fLNUSmIiZqXQV9bA3/PRrnakDazrfA/xwpNhQv78XtyX0C2u+hLyzq/3",
|
|
121
121
|
"src/primitives/separator/separator.css": "sha384-UziCDvCsa0uoO/GyFvzOXs3PZ3CdS5julG1/Vd30NH1yxFs5yeqXY9SujY1zp/sJ",
|
|
122
|
-
"src/primitives/slider/slider.css": "sha384-
|
|
122
|
+
"src/primitives/slider/slider.css": "sha384-aQ1BdekwJjPddYaZHxDcasoxOJ8HwiWsIl3hbHgkUaYKr1LbeWuEltiMmEz7zedm",
|
|
123
123
|
"src/primitives/style-guard/style-guard.js": "sha384-IWHx+hfiowFBTvYY0smy+LOC3ZVSzgpNk7DzUj/04aP2qtTMKmhS10lrj8HgKNnO",
|
|
124
124
|
"src/primitives/switch/switch.css": "sha384-14d6hyBDok7BSqONYJ8oB8tw4ct1HPrgSGiuJuz4r79vIexGktCAvJXy5ym3Qe/S",
|
|
125
125
|
"src/primitives/table/table.css": "sha384-nh/TJS5qr3IUe+3FmdE+098BkYGfiioYWrXg9WjgsRdnOHYSjUutO4Ijha99DI2B",
|
|
126
|
-
"src/primitives/tabs/tabs.css": "sha384-
|
|
126
|
+
"src/primitives/tabs/tabs.css": "sha384-h2U9k0K4HD4qB/WMk+f+VLivqkYXbjp06g7bWxQd/SftQVb36w6oS0bQgkruvdy6",
|
|
127
127
|
"src/primitives/tabs/tabs.js": "sha384-bhNFxMX9bn8ccFGg2PQQB/2lNoJWy5B6g3a9PnwXVsmKIRQX7hTXBu2GeiR2zXy9",
|
|
128
128
|
"src/primitives/textarea/textarea.css": "sha384-uPprqwp2w+1JuEmNA2G+E9cNV5/sJJWcg9gUOFtwl+PvOQLUjhF8u/6hxs/mQPqj",
|
|
129
129
|
"src/primitives/toaster/toaster.css": "sha384-W7Jm1/S7acIZUxAxDpS3nM8bVW8duOK4bzw31LU36zshd1QQ8+nGS4RiHrpoMzE/",
|
|
130
130
|
"src/primitives/toaster/toaster.js": "sha384-HXZS+zXrhIjShFp+YJcvxt9HJMb1wf6rV2YUDwterlo6Hf6bzrunuGOMrczvRb4S",
|
|
131
131
|
"src/primitives/toggle-group/toggle-group.css": "sha384-v53Y/LcfZldgONI5Yux0lG4vMIth1y0c8EF1WFOu3f8yKcQ2LyNMV4NU2NLdkNWf",
|
|
132
132
|
"src/primitives/toggle/toggle.css": "sha384-GXBGDbDhVCJiDbBL2vS3CmnA2x5eSSG7Xgzq9G67hm8Vl5ZK+FWNRkztAXttPQFh",
|
|
133
|
-
"src/primitives/tooltip/tooltip.css": "sha384
|
|
133
|
+
"src/primitives/tooltip/tooltip.css": "sha384-9K6nNVjGov9yp0S1RVv1Sy3WHJwFYO33Zgl9gJbFpydk+T0Yd9S3EB17xbqBAaXq"
|
|
134
134
|
}
|