@zazz-ui/core 0.8.0 → 0.8.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 CHANGED
@@ -1,5 +1,23 @@
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.8.2 (2026-10-20)
4
+
5
+ ### dialog
6
+
7
+ - The page holds still under a modal. Chromium 144 and Firefox 150 already contained wheel and touch scrolling through `overscroll-behavior: contain` on the dialog and its backdrop; WebKit only honours it on a box that overflows, which the backdrop and a short dialog never do. While a modal is open the root now also gets `overflow: hidden` with `scrollbar-gutter: stable`. The gutter is the width of the scrollbar it replaces, so nothing shifts on open or on close and the scroll position survives; where scrollbars take space, a strip the colour of the page background sits where the track did until the dialog closes. On a phone with the keyboard open, iOS can still scroll the page to reveal the focused control; the dialog is pinned to the viewport, so the page only shows through the backdrop.
8
+ - Fix: the open dialog is `display: grid` again (it went missing with the `--ui-dialog-display` token in 0.2.0), so the content slot is capped by the dialog's height instead of sizing it, and each slot owns its row whatever the order it comes in. A tall body scrolls on its own inside the cap while the header, the footer, and the close button hold still. Before, a tall dialog scrolled as a whole and carried the close button away, and a dialog with a body and nothing else never got a cap at all.
9
+ - New hook `--ui-dialog-mobile-size`: below the `sm` band every dialog takes its size over `data-dialog-size`. The default is `layout-bleed`, edge to edge with no page behind it, so **a dialog on a phone now opens full-screen unless you say otherwise**; `layout-full` keeps the gutters and `none` keeps the preset. It is read through a style query on the dialog's parent: set it on `:root` for the site, or on one dialog's parent for that dialog alone. Style queries are Chrome 111, Safari 18, and Firefox 151; an older engine keeps the preset.
10
+
11
+ ### input
12
+
13
+ - Fix: on iOS, `date`, `time`, `datetime-local`, `month`, and `week` inputs drew their padding and border outside `width: 100%` (webkit.org/b/301648), so a full-width field overflowed its column by the padding and border. An iOS-only rule takes both back out of the inline size, and they line up with the text inputs beside them.
14
+
15
+ ## 0.8.1 (2026-10-19)
16
+
17
+ ### scroll-fade
18
+
19
+ - Fix: the fades never ran from the single-file bundle (`dist/zazz.css`, which the CDN snippets load). The minifier folded `animation-timeline` into the `animation` shorthand (parcel-bundler/lightningcss#1369), browsers drop a shorthand that names a `scroll()` timeline, and the registered fade depths stayed at 0, so a scroller showed a hard edge. The timeline longhands now sit in a block of their own, and a bundle test guards the output. Vendored and `index.css` consumers were never affected.
20
+
3
21
  ## 0.8.0 (2026-10-19)
4
22
 
5
23
  ### 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.8.0/dist/zazz.css" />
23
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.8.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.8.0/dist/zazz.js"></script>
39
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.8.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.
@@ -0,0 +1 @@
1
+ function e(e,t,n){for(;t<n&&/\s/.test(e[t]);)t++;for(;n>t&&/\s/.test(e[n-1]);)n--;return[t,n]}const t=/!\s*important$/i;function n(n){let r=[],i=(i,a)=>{let o=e(n,i,a);if(o[0]===o[1])return;let s=n.indexOf(`:`,o[0]),c=s!==-1&&s<o[1],l=c?e(n,o[0],s):o,u=c?e(n,s+1,o[1]):[o[1],o[1]],d=n.slice(...u);r.push({span:o,name:n.slice(...l),nameSpan:l,colon:c?s:-1,value:d,valueSpan:u,priority:t.test(d)?`important`:``})},a=0,o=null,s=0;for(let e=0;e<n.length;e++){let t=n[e];o?t===`\\`?e++:t===o&&(o=null):t===`"`||t===`'`?o=t:t===`(`?a++:t===`)`?a=Math.max(0,a-1):t===`;`&&a===0&&(i(s,e),s=e+1)}return i(s,n.length),r}function r({value:e}){return e.replace(t,``).trimEnd()}function i(e){if(!(`style`in e))return!1;let t=e.getAttribute(`style`);return!!t&&t.includes(`:`)&&e.style.length===0}function a(e=document){for(let t of e.querySelectorAll(`[style]`))if(i(t))return!0;return!1}function o(e){let t=/* @__PURE__ */ new Map;for(let i of n(e))i.colon!==-1&&t.set(i.name,[r(i),i.priority]);return t}function s(e,t){let{style:n}=e;if(n.length!==t.size)return!1;for(let[e,[r,i]]of t)if(n.getPropertyValue(e).trim()!==r.trim()||n.getPropertyPriority(e)!==i)return!1;return!0}function c(e){if(!(`style`in e)||e.getAttribute(`data-ui-guard`)===`off`)return;let t=e,n=o(e.getAttribute(`style`)??``);if(!s(t,n)){for(let e of[...t.style].reverse())t.style.removeProperty(e);for(let[e,[r,i]]of n)t.style.setProperty(e,r,i)}}function l(e){e instanceof Element&&c(e);for(let t of e.querySelectorAll(`[style]`))c(t)}let u=null;function d(e){for(let t of e){t.type===`attributes`&&c(t.target);for(let e of t.addedNodes)e instanceof Element&&l(e)}}const f={blockedInlineStyles:a,applyInlineStyles:c,start(e=document.body){f.stop(),l(e),u=new MutationObserver(d),u.observe(e,{attributes:!0,attributeFilter:[`style`],childList:!0,subtree:!0})},stop(){u?.disconnect(),u=null}};typeof window<`u`&&typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>f.start()):f.start());export{f as Csp};
package/dist/sri.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "dist/csp-D72qtdXZ.js": "sha384-ql65Y8rnRK2SaClp37crhsy4jvWfVc6BkojqC2qaxcbd5iJDAUBZ0JgDOg8n19As",
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-iExSFLLKb4Ml7sC9QZO9iRH5mMMAgMwoiBdCiF/yY8LiFZbtpBT1O8wsqqM/YcCF",
5
- "dist/zazz.js": "sha384-T75ikUl3Hsv7Au4BH7PC06tGef+K8cJMwYaUwkjFQrgY8SXB+IjqxQhtq6tSCneN",
4
+ "dist/zazz.css": "sha384-o3SrhaG/wq/nOIKzCtifZMnBZULNrLO1K071JrjnsEY2zNGGXJbG8O84dTzpAsUW",
5
+ "dist/zazz.js": "sha384-d1Kibv6ytJiJ3td92TxjZQDIu8jtbVLrd+dVSygx3ZvJGOUvxLpbSOrbxr31TEKD",
6
6
  "src/base/_breakpoints.css": "sha384-vsvdoL+ZjTa5gyCiMp4DlNIbr9rxkLqfQjZ+W3YTp2Apuuu+1/Dd68ACtcBOip3v",
7
7
  "src/base/_defaults.css": "sha384-OKB2RkRTdHkgUGvpmkC9IiWbodoqUrzZSTeYafRrV7IiKd0uFPe4+HDsdzhYkn8n",
8
8
  "src/base/_layers.css": "sha384-oP5mW12kxkLOsf0YZCjBxZ+QxearUXLYbRHv4ynTgvAbVMur2O9gXAPv9DZH8QGH",
@@ -59,14 +59,14 @@
59
59
  "src/base/dialog-lifecycle.js": "sha384-4Bskp0XQUtf2Rz7PIOfTnvj5MPPuyeNNdBKoDwAdub0Lo/chTQmUcLlsXXfc8+Ky",
60
60
  "src/base/embla.js": "sha384-pO7q7M5Z7rf9D9snHCn9C9gFQ4cFerhAgoKRTTVmcM+bHTyT7kH+GXtACA7VKBBX",
61
61
  "src/base/hotkeys.js": "sha384-THU0JbWwkM9QAVJ2BwF5rwGHOIhCPLKHxfhmixYyyCBU0eNRi9kz6VxfNGaj8D8O",
62
- "src/base/kit-styling.js": "sha384-EDPiSSLoOne1baPhGTZjCsjg9d1Noo30bZd318r+nodekWBJbGoJHqFSutSYJwn1",
62
+ "src/base/kit-styling.js": "sha384-cWOlxjwSDRWYHytYV5PhhF/rPZNvBhS7zoIPEEKIuaz0zHZQ8glaQf/hjoVBXyzw",
63
63
  "src/base/navigation.js": "sha384-xXVh1k4O3prr1/76ha8ly4UWpFtGEiFMTZfCcvMNHycwDvBFfKgrjqPdVlVRLzbG",
64
64
  "src/base/reveal.js": "sha384-UYiDoNgXsINWTIabv/STaj1+zfP3OSe1vBgkxTWup51l0HQE1PgsRtQDpPAHOPHC",
65
65
  "src/base/scroll-state.js": "sha384-ql6E3qGCmO5nKrmORbRCrU9bVlbIpcYvQq+zr26VZhRNHdnqNuJGH9mK0hXy1vG1",
66
66
  "src/base/signals.js": "sha384-N4p17bKbP9wixbRP1y8qH7XQ+FGKNzyFLMd63FCDE8qz3UKRx8csEQTLGodDCRBi",
67
67
  "src/base/style-format.js": "sha384-6NPIOydUNtfLIa/gI5rnUf9Yo+SaTDoTjl+Hz14+ZfDc6UVANIR8NMyEkQt+TFdp",
68
68
  "src/base/typeahead.js": "sha384-jh0mIkDn2KiL9y+7vBq8hPXymo+yXd0d4PG4dUHq29B3NEvOmnxinqaxTyoPWUiV",
69
- "src/base/utilities.js": "sha384-mwsW9jx8VMn1ENjWRy3ZrHG0r3eC8NA95W1sJrW0ff5GbFU6+qLIB3M0j66XH5WW",
69
+ "src/base/utilities.js": "sha384-fBQBDHeTWiO96hHjDg8Vp0nwAyiQEYFzyPKVajq7RqFrD5VhN7QM134/xLQONtcR",
70
70
  "src/base/utils.js": "sha384-ViPJZ9b6onUuHHgvcn2w1CHs0WTzbRKn6HD9FfoIWFQpX+ogZ34Zzb+JWohhT4O0",
71
71
  "src/base/zazz-element.js": "sha384-UvckAl+GPm38SPS5B/V/ont0Pe9J5wb9K98ZB8+g2rd3ddlMHu3L27Mhv5ZfsQuw",
72
72
  "src/head.js": "sha384-k/Jupui92uWnK1OtEEyQyrvFWNhxY2Ovw6B33oQLt33vnICoPcEZc1ntp3lhcZwt",
@@ -77,7 +77,7 @@
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-Mnt8Hz17P56no4Qx7YtD8aYzaCHPYI6UytH2APUxNy5q5PaJadi2N7jK1AJ9yXya",
80
+ "src/primitives/badge/badge.css": "sha384-YdI7hTpAEc4n1hBORKox1cn1AhO9BpaFqfnFNZJNfZo2cMxBU15v/sIBaC397HXT",
81
81
  "src/primitives/button-group/button-group.css": "sha384-NZYiLlPlNOYc6r3kmO70iO0uLSDNZuKBYIIYOFWnp2uX1tTtT0dKaUYbWKBw8+zN",
82
82
  "src/primitives/button/button.css": "sha384-VB8oSjBThlSJqcTAxlOuIoewBCWFITJY4+XtNXxCOXyQzulN4yz6kXXLIfSeHeoo",
83
83
  "src/primitives/callout/callout.css": "sha384-YKX8QIN4Egd0HQyd+tdRda/f/WPNTwYwO4kcsMAznDnUmCFmwD8DvCdg63X1uBGV",
@@ -93,10 +93,10 @@
93
93
  "src/primitives/command/command.js": "sha384-xiAyBUBhXmECFvIqZOzbAPpiRXhHr0w2Rta4Jrsj3S3ERCxqFKG4nAHdMvMC+c6X",
94
94
  "src/primitives/debug/audit-core.js": "sha384-qq/Q7QaYKH4neocVtyW6Ve7//3xbB8ac3ezvoIYrTJIlIV6GEkBf7FdofhtWND4w",
95
95
  "src/primitives/debug/debug.js": "sha384-/VHFWHcr2BWtb61cw4PGZ3kGAnoCA4QDioc63i/j/Jvuoj5sqSZRAfgyJ7KJeQPD",
96
- "src/primitives/dialog/dialog.css": "sha384-e0QbnsKjhfBC+P0LdenkHnpNO1sYnhAVpR3puZqj3OUbDP8xrEad4WgeIPB6837p",
96
+ "src/primitives/dialog/dialog.css": "sha384-Q72ESElKQDGDDpcYPWmyopUMaGrlstpNl1ZUlZOX0HRrt12oM4r+iXtQJaWo22BI",
97
97
  "src/primitives/fields/fields.css": "sha384-v1i5t8AQfUmBMNhBIe7FLQVmmKJf3AZ8QhkYZaEKZa201SSLB+Hi6CWcBXB5BDi0",
98
98
  "src/primitives/input-group/input-group.css": "sha384-Nla3vqS3KCbqINTeLA9HL9+0+tfrZSxlUyxEI9DVbIYEcvku4ZLMzhxBpRx9EQnF",
99
- "src/primitives/input/input.css": "sha384-UuYDCyhqoqEEY/Oognp83J4CrQE4wNS2W9Vl1odoKl2Lyn3dce/2sT68zDa68UHG",
99
+ "src/primitives/input/input.css": "sha384-frF3bwvDCW5mKWLBEK4X5Kh+pt7+LVtJ2QR3I61gedYHECp5d9amKs+VQlsmedY7",
100
100
  "src/primitives/kbd/kbd.css": "sha384-LVNPSr2Ghe0ys6prh1477stRQJ5gRuFXMOj1GRJg/hS61+5ZpzTKzx+5KXif2wtl",
101
101
  "src/primitives/layout/layout.css": "sha384-t14PB4WKl50yORZIlaWyrgnZqbEvY8JJgBe4gAgdnt0jzVrYm6KvqVod0iVtjHJa",
102
102
  "src/primitives/lightbox/lightbox.css": "sha384-zLaltLXFSQtx/7oluYyAGz5VHGrp8SPgCzci03XYItFelFwH3BhDag/YGpDqWHE0",
@@ -114,7 +114,7 @@
114
114
  "src/primitives/progress/progress.css": "sha384-xOX5awQaAMCNr91P8hEc9eanJ1QGd3j5jSEgDyP/c5skTz75S4rspRZlM+y/D7XA",
115
115
  "src/primitives/radio/radio.css": "sha384-71yKzzSFPPAQkk/eNgtM+NboI6KEAYk6WKBgqHiNXlsB0/btu9AphEZxNN/rZKiX",
116
116
  "src/primitives/reveal/reveal.css": "sha384-DzYYxsKPlMEDEbrCXmb33hGfb+FCeLtbdoZlGhJDIZyDWZQz2HO3VK12NT8iIp+H",
117
- "src/primitives/scroll-fade/scroll-fade.css": "sha384-c5y4wmTqdi+4ePbwxF7hVEgA7syA+NlzfZE/5WpfF+YMT1iimpohn1d/GA9GAYUT",
117
+ "src/primitives/scroll-fade/scroll-fade.css": "sha384-CxPPy7Oxwu2tfNxxYVhI6VbPwNXf0IsyHH5OtR1ZKgfxQsEvR1zCR+3GSbjmaCcq",
118
118
  "src/primitives/select/multiselect.js": "sha384-4uSHU1RxSQMjVc8fOJ9lGZwGoCSgsvkKEMCGjOYKD56WRd0hNR3dQGum+/87RaGH",
119
119
  "src/primitives/select/select.css": "sha384-Ry8fZJWyUSDi1LOLXhtDgymqWK9KomM3dxbAQjKpS0CnGVbqxSLBGobkRE3ID6M4",
120
120
  "src/primitives/separator/separator.css": "sha384-UziCDvCsa0uoO/GyFvzOXs3PZ3CdS5julG1/Vd30NH1yxFs5yeqXY9SujY1zp/sJ",