@zazz-ui/core 0.5.2 → 0.5.3
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/AUTHORING.md +1 -1
- package/CHANGELOG.md +11 -0
- package/README.md +2 -2
- package/dist/sri.json +7 -7
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +4 -0
- package/package.json +1 -1
- package/src/base/_properties.css +3 -0
- package/src/base/_reset.css +2 -33
- package/src/base/_utilities-box.css +8 -0
- package/src/base/_utilities-tier-stuck.css +1 -1
- package/src/base/utilities.d.ts.map +1 -1
- package/src/base/utilities.js +1 -0
- package/src/base/utilities.ts +1 -0
- package/src/primitives/lightbox/lightbox.css +1 -1
package/AUTHORING.md
CHANGED
|
@@ -101,7 +101,7 @@ Rules that bite:
|
|
|
101
101
|
2. **Breakpoints reach layout and color; states reach color and effects.** `--bg--md`, `--text--lg`, and `--px--md` exist; `--px--hover` and `--shadow--md` do not. On a color utility a state beats a breakpoint: `--bg--md: black; --bg--hover: gray` is gray on hover at any width.
|
|
102
102
|
3. **Keywords mix with numbers.** `--w: 4; --w--md: auto`, `--w: fit-content; --h: 4`, and `--grid-cols: 2; --grid-cols--md: subgrid` all work: each keyword-bearing utility has explicit keyword rules per tier until CSS `if()` can branch on the value. Keywords must be spelled exactly (`--w--md: auto`).
|
|
103
103
|
4. **A utility on a primitive flattens its states.** `--bg: red` on a button is red on hover too. To keep hover, add the tier (`--bg--hover: darkred`) or set the hook instead (below).
|
|
104
|
-
5. **Breakpoints read the nearest container, not the window.** A tier answers to the closest inline-size container: the page's `html`,
|
|
104
|
+
5. **Breakpoints read the nearest container, not the window.** A tier answers to the closest inline-size container: the page's `html`, a layout band's child (so tiers inside a `layout-md` band follow the band), or any `data-ui="container"`. Thresholds are character counts: `sm` 40ch, `md` 65ch, `lg` 90ch, `xl` 120ch, `2xl` 150ch. Mark a card, sidebar, or slot `data-ui="container"` and the tiers inside it follow its width. An element never queries itself: a container's own tiers read the container above it. A container cannot size itself from its content, so give it a definite or stretched width.
|
|
105
105
|
|
|
106
106
|
## Theming primitives: hooks
|
|
107
107
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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.5.3 (2026-10-08)
|
|
4
|
+
|
|
5
|
+
### base
|
|
6
|
+
|
|
7
|
+
- **BREAKING** `body`, `main`, `header`, `footer`, `section`, and `article` are no longer inline-size query containers, and their container names (`body`, `main`, `section`, …) are gone; `html` is the only page-level container. Breakpoint tiers inside a narrow `section` that sits outside a layout now follow the page: add `data-ui="container"` to that section to keep them on its width. A named query such as `@container section (…)` matches nothing now; drop the name. A sticky sectioning element is no longer an inline-size container either: the stuck state makes it a scroll-state container only.
|
|
8
|
+
- New `--object-position` utility (box family, no tiers): any `object-position` value, such as `--object-position: top` or `--object-position: 25% 75%`. Pair it with `--object-fit: cover` to choose which part of an image stays in frame.
|
|
9
|
+
|
|
10
|
+
### lightbox
|
|
11
|
+
|
|
12
|
+
- The thumb strip drops to four columns in the nearest container 40rem or narrower, not only inside a `section`. A lightbox in a narrow `section` outside a layout now follows the page, so mark that section `data-ui="container"` to keep four columns there.
|
|
13
|
+
|
|
3
14
|
## 0.5.2 (2026-10-08)
|
|
4
15
|
|
|
5
16
|
### 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.5.
|
|
23
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.3/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.5.
|
|
39
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.3/dist/zazz.js"></script>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Use an exact version in CDN URLs. 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dist/scroll-state-C8mA5gq6.js": "sha384-m9uzgIAkSnk8Es+jgCbChIYFu4rPyr00IB7lrAR/8dcsPc3u75VA7Wq5LIEAvXpT",
|
|
3
|
-
"dist/zazz.css": "sha384-
|
|
3
|
+
"dist/zazz.css": "sha384-XgApfwCILfysr5sZq2NyaaPrCxYvqbcNBHruXaCLreCGAz+qpH6/xYJ4a6s8Z1xJ",
|
|
4
4
|
"dist/zazz.js": "sha384-OpW5MvOX7FJBiG064atEDfRFSCnOY1SmrGAsaNo8430/SbGIJD2h8nGsmZwWDopL",
|
|
5
5
|
"src/base/_breakpoints.css": "sha384-vsvdoL+ZjTa5gyCiMp4DlNIbr9rxkLqfQjZ+W3YTp2Apuuu+1/Dd68ACtcBOip3v",
|
|
6
6
|
"src/base/_layers.css": "sha384-5DNbucvN9usFbR5WoM9jF0TkR+sHzIxz3IMOWIWIRSe46yec/ZNTk3OE/OKSdLJZ",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"src/base/_properties-starting.css": "sha384-4wQxw0R1KwmePtesc2CzUhxSf8O8vesIN5ZgJibheWIsjCiiQN785/89xSU1/v8B",
|
|
20
20
|
"src/base/_properties-stuck.css": "sha384-kILCZ8EqvYuHxAtGFdctXMM7K1In+eebT31U2lRS8Lv1YLAQ+ewpcVbPJ2djEWC7",
|
|
21
21
|
"src/base/_properties-xl.css": "sha384-1YUaLY4RD8EtS9iFWyfWiazGSk2rK/CkI93Lha1DSFyQeTpYDV6eXhcA9y3UWUiz",
|
|
22
|
-
"src/base/_properties.css": "sha384-
|
|
23
|
-
"src/base/_reset.css": "sha384-
|
|
22
|
+
"src/base/_properties.css": "sha384-dL0BooDwguPboeooBn48djkhQqcmZUqTyCJ/gpqfdGOnha/sc3Dd0kYIauCbC82H",
|
|
23
|
+
"src/base/_reset.css": "sha384-DLNIT+B0U6Ef0gVExm2NlxIsopEnMiE6YBLTqUHYb3D4XdOiblzVXRLL+EtcacAp",
|
|
24
24
|
"src/base/_switches.css": "sha384-AEvv3WNMKlSSZRYwstCBcxQ3UbRm0avgUtoHQZJYXIYnXXErsEyMkMRti+6Fk+c4",
|
|
25
25
|
"src/base/_typography.css": "sha384-gvy8NaerXu+HPDI2MsPXyK0ANt7C7BOxgLeuJLx4cZhSA1B0ogkVLW0mmc7JUeZ2",
|
|
26
|
-
"src/base/_utilities-box.css": "sha384-
|
|
26
|
+
"src/base/_utilities-box.css": "sha384-eodP3OPkvsLqO1k73C2cw8twdBTvQ9CeniCKaLHx8fsd7aichCo7q6MMjUEk31lV",
|
|
27
27
|
"src/base/_utilities-color.css": "sha384-tnZ/BEb5Mu3Xo3HhuwqfYrb4bRTgVUUPRF+R1agdefJuGPdfbkNgwu7jp/8XmLYs",
|
|
28
28
|
"src/base/_utilities-effects.css": "sha384-x9BgrQCQAr6ocy6tN0gefa7YgoqiEs2KxmEn7E/xzxWihXXHpRmHPHL/33iUG+CH",
|
|
29
29
|
"src/base/_utilities-flow.css": "sha384-VtEL5oTxEC07IBvdw0MkvbzY2zaxN+UNqv13c23FGD5KvlOVSyClvjlB7FrfpwnY",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"src/base/_utilities-tier-open.css": "sha384-SPYaTEApf54Gy85jIxZjqBTJssV6t+GzMBDOAidVBsqY7eGo8SOM1QRRGLNUlVCH",
|
|
46
46
|
"src/base/_utilities-tier-sm.css": "sha384-YgcpSjdYcX33n2dSNH08lux7f1eOS1p1FFl8VBApU4WYvVMNCLKU4rcE+G932L91",
|
|
47
47
|
"src/base/_utilities-tier-starting.css": "sha384-oPrlRCAYbHdaWBhhbn898sMnkim+kbvboooVlzfqeeMvMDt/WB6P9DnQ/oM/a3wh",
|
|
48
|
-
"src/base/_utilities-tier-stuck.css": "sha384-
|
|
48
|
+
"src/base/_utilities-tier-stuck.css": "sha384-Gpff1MBJR1u9kVWfd2FuFaYQwEX7u+19uyY1WWGuiyrstIdn5fTjKYhX6GZ9kffJ",
|
|
49
49
|
"src/base/_utilities-tier-xl.css": "sha384-SoNEkcENI+cPkcNjeqhyn++UP2QcHrL+GMse43V2xizprzOHGM9G9ofPeSEArkTc",
|
|
50
50
|
"src/base/_utilities-typography.css": "sha384-3mlnfs8/nCHIX2FY92VchBznlSlgsSfev85m3AelHX8t0WKKTc5zYvIL9asj7A0H",
|
|
51
51
|
"src/base/_variables.css": "sha384-39e7qP4aLpARSqNJIhKZRy4+9lz1mXB74s12ml/MVWkinn7NYyBRQjn6IJ0bQs/l",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"src/base/signals.js": "sha384-N4p17bKbP9wixbRP1y8qH7XQ+FGKNzyFLMd63FCDE8qz3UKRx8csEQTLGodDCRBi",
|
|
61
61
|
"src/base/style-format.js": "sha384-ZecSvvPRExr6mAQcpdXSlMIXcaAlOqk8Z9LtmssaKs72mRomgVxVqoKnK8kom1dE",
|
|
62
62
|
"src/base/typeahead.js": "sha384-jh0mIkDn2KiL9y+7vBq8hPXymo+yXd0d4PG4dUHq29B3NEvOmnxinqaxTyoPWUiV",
|
|
63
|
-
"src/base/utilities.js": "sha384-
|
|
63
|
+
"src/base/utilities.js": "sha384-biIR2iftpaWta/K11lN8+Sy28HKOObAsxwXeNS6po3274boL6X+UB1nLqObXjW1R",
|
|
64
64
|
"src/base/utils.js": "sha384-ViPJZ9b6onUuHHgvcn2w1CHs0WTzbRKn6HD9FfoIWFQpX+ogZ34Zzb+JWohhT4O0",
|
|
65
65
|
"src/base/zazz-element.js": "sha384-UvckAl+GPm38SPS5B/V/ont0Pe9J5wb9K98ZB8+g2rd3ddlMHu3L27Mhv5ZfsQuw",
|
|
66
66
|
"src/head.js": "sha384-KPGI797+KY5jpuM8D8xlGU/XR8TAhmgEiDoNmMf7DwBRPQIBOTOGv0vFGs8SUBFR",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"src/primitives/input/input.css": "sha384-NGSKq7/EblDbDZreAVdUNUYuS+OphzsbxLweH5QMIMWIZ8MPepm1WSqkcx9NEww7",
|
|
94
94
|
"src/primitives/kbd/kbd.css": "sha384-cyoGDhAq4pb1ekOZw41xZY8Ibkdxh/KMxnRcM17IjtAuxoOA+8HcBbMe/tBLvxnR",
|
|
95
95
|
"src/primitives/layout/layout.css": "sha384-t14PB4WKl50yORZIlaWyrgnZqbEvY8JJgBe4gAgdnt0jzVrYm6KvqVod0iVtjHJa",
|
|
96
|
-
"src/primitives/lightbox/lightbox.css": "sha384-
|
|
96
|
+
"src/primitives/lightbox/lightbox.css": "sha384-x4DkJjpx+nUYJhErcc5DhBDzSJCoMZfn0l7BburOliVETrMXcbliuqo5PhE0Smb2",
|
|
97
97
|
"src/primitives/lightbox/lightbox.js": "sha384-NI4gOoEf6GDXeuiRPM+wt6DGlUtKtEG+YZv4H/kfKCCSjAD51fWI+1mHNvpMsQNb",
|
|
98
98
|
"src/primitives/menu/menu.css": "sha384-v18DY/M7zrJTYLfAvms9xyGNB0gDdS2kRfccbqRqT/xxueNYIQv8k4SL9oBj9+LD",
|
|
99
99
|
"src/primitives/menu/menu.js": "sha384-BiFyze9EnMICWT3lnXpb96ypDctDYk8oLq3Op3vnSMqY7/wK4cnmqSBq+6F5+eYZ",
|