@zazz-ui/core 0.5.1 → 0.5.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/AUTHORING.md +2 -2
- package/CHANGELOG.md +11 -0
- package/README.md +2 -2
- package/dist/sri.json +2 -2
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +0 -4
- package/editor/zazz.html-data.json +3 -0
- package/editor/zazz.language-data.json +10 -4
- package/editor/zazz.lint-data.json +1 -0
- package/package.json +1 -1
- package/src/base/_typography.css +7 -15
- package/src/primitives/prose/prose.html +1 -0
package/AUTHORING.md
CHANGED
|
@@ -15,7 +15,7 @@ State tokens (`data-<identity>-state="active open"`) are written by the kit's sc
|
|
|
15
15
|
|
|
16
16
|
## Identity
|
|
17
17
|
|
|
18
|
-
- One element, one or more tokens: `data-ui="card group"`. Primitives (`button`, `card`, `dialog`, `layout`…), switches (`sr-only`, `pile`, `isolate`, `not-prose`, `truncate`, `spin`, `ping`, `pulse`, `bounce`, `container`, `divide-x`, `divide-y`), and typography roles (`text-h2`, `text-eyebrow`…) are all tokens.
|
|
18
|
+
- One element, one or more tokens: `data-ui="card group"`. Primitives (`button`, `card`, `dialog`, `layout`…), switches (`sr-only`, `pile`, `isolate`, `not-prose`, `truncate`, `spin`, `ping`, `pulse`, `bounce`, `container`, `divide-x`, `divide-y`), and typography roles (`text-h2`, `text-eyebrow`, `text-link`…) are all tokens.
|
|
19
19
|
- Interactive primitives also have a tag form (`<ui-carousel>`, `<ui-tabs>`, `<ui-layout>`). Use the tag where the wrapper would otherwise be a plain `div`.
|
|
20
20
|
- Native elements keep their meaning: a button is a `<button data-ui="button">`, a dialog is a `<dialog data-ui="dialog">`, an input is `<input data-ui="input">`. Never put `data-ui="button"` on a `div`.
|
|
21
21
|
- Default variant = no preset attribute. Write `data-button-variant="primary"`, never a combined token.
|
|
@@ -118,7 +118,7 @@ Order of preference for changing how a primitive looks: preset, then hook on a s
|
|
|
118
118
|
## Layout and typography
|
|
119
119
|
|
|
120
120
|
- `data-ui="layout"` (or `<ui-layout>`) makes the element a band grid. Children default to the `xl` band. Change the default with `data-layout-size="md"`; place one child with `--band: layout-bleed | layout-full | layout-2xl … layout-sm`, responsive with `--band--md: layout-sm`. A layout nested in a layout aligns to the parent's bands.
|
|
121
|
-
- Native `h1`–`h6` carry their role automatically. Give any other element a role with `data-ui="text-h3"`, `text-display`, `text-eyebrow`, or a body size `text-2xs … text-2xl`. Override one property with a utility (`--font-size`, `--leading`, `--font-weight`); never rebuild a role from utilities.
|
|
121
|
+
- Native `h1`–`h6` carry their role automatically. Give any other element a role with `data-ui="text-h3"`, `text-display`, `text-eyebrow`, or a body size `text-2xs … text-2xl`. An inline link outside `prose` takes `text-link` (`data-ui="text-sm text-link"` stacks it with a size). Override one property with a utility (`--font-size`, `--leading`, `--font-weight`); never rebuild a role from utilities.
|
|
122
122
|
- `data-ui="prose"` styles rich text inside it. Give a reading column `--max-w: var(--article-lg); --mx: auto`. `data-ui="not-prose"` on a wrapper stops prose styling for that subtree (a form or widget inside an article).
|
|
123
123
|
|
|
124
124
|
## Navigation
|
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.2 (2026-10-08)
|
|
4
|
+
|
|
5
|
+
### base
|
|
6
|
+
|
|
7
|
+
- New `text-link` typography role for an inline link outside `prose`: an underline in the text's own color at `--decoration-thickness` and `--decoration-offset`, fading on hover. It stacks with a size role (`data-ui="text-sm text-link"`).
|
|
8
|
+
- A link inside a plain `<p>` is no longer styled automatically; only `prose` styles its links without a token. That rule reached into markup the kit doesn't own, so it's removed in a patch, along with its `--ui-prose-link-text` hook, which nothing else read. To keep the underline on such a link, add `data-ui="text-link"`.
|
|
9
|
+
|
|
10
|
+
### prose
|
|
11
|
+
|
|
12
|
+
- The example sets `--w: 100%`, so the article fills its container up to its reading width instead of shrinking to its content.
|
|
13
|
+
|
|
3
14
|
## 0.5.1 (2026-10-07)
|
|
4
15
|
|
|
5
16
|
### card
|
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.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.5.
|
|
39
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.2/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-voat4+KuuTq0sCg2yprD+gY7clOb/3XXucNXf9W+0gCBg8k1XMknJ+EKkrhjdsKh",
|
|
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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"src/base/_properties.css": "sha384-r6jOSxYaJoyQEx288BJKn2ZfGBi1xtBb7RynakVGsZ9iWx+g3FppH+qiI9PaaArd",
|
|
23
23
|
"src/base/_reset.css": "sha384-ap6OZjABQkU5Lci1sEQ6Wfo7USz4YNe0GSnS4X8QSJnJfDJrPhY1wSgDQ4EL2Wyd",
|
|
24
24
|
"src/base/_switches.css": "sha384-AEvv3WNMKlSSZRYwstCBcxQ3UbRm0avgUtoHQZJYXIYnXXErsEyMkMRti+6Fk+c4",
|
|
25
|
-
"src/base/_typography.css": "sha384-
|
|
25
|
+
"src/base/_typography.css": "sha384-gvy8NaerXu+HPDI2MsPXyK0ANt7C7BOxgLeuJLx4cZhSA1B0ogkVLW0mmc7JUeZ2",
|
|
26
26
|
"src/base/_utilities-box.css": "sha384-lMEsvMcF5tmoBbE1Pgn/s5AVgIaD+Wit9RORM+0XQ4bsqJEwJ3D/mhExtIqdte/N",
|
|
27
27
|
"src/base/_utilities-color.css": "sha384-tnZ/BEb5Mu3Xo3HhuwqfYrb4bRTgVUUPRF+R1agdefJuGPdfbkNgwu7jp/8XmLYs",
|
|
28
28
|
"src/base/_utilities-effects.css": "sha384-x9BgrQCQAr6ocy6tN0gefa7YgoqiEs2KxmEn7E/xzxWihXXHpRmHPHL/33iUG+CH",
|