@zazz-ui/core 0.2.0 → 0.3.0
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 +36 -0
- package/README.md +2 -2
- package/dist/sri.json +10 -10
- package/dist/zazz.css +1 -1
- package/examples/components.html +1 -6
- package/package.json +1 -1
- package/src/base/_layers.css +14 -4
- package/src/base/_layout.css +5 -2
- package/src/base/_typography.css +24 -6
- package/src/base/_utilities.css +509 -391
- package/src/base/_variables.css +22 -81
- package/src/base/_view-transitions.css +1 -1
- package/src/index.css +10 -4
- package/src/primitives/badge/badge.css +10 -9
- package/src/primitives/button/button.css +12 -12
- package/src/primitives/carousel/carousel.html +1 -1
- package/src/primitives/tooltip/tooltip-disabled.html +1 -6
- package/src/primitives/tooltip/tooltip-sides.html +3 -22
- package/src/primitives/tooltip/tooltip-with-kbd.html +1 -6
- package/src/primitives/tooltip/tooltip.html +1 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
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").
|
|
4
4
|
|
|
5
|
+
## 0.3.0 (2026-09-02)
|
|
6
|
+
|
|
7
|
+
Three themes: (1) **theming is single-source** — every theme role is declared once as a `light-dark()` pair, and `.dark`/`.light`/`[data-theme]` are pure `color-scheme` pins that re-resolve the same tokens (the inverted-popover feature is removed); (2) **utility classes go fully logical** — every physical-side declaration becomes its logical equivalent, every side-named class gains a logical-name alias, and border widths and dividers arrive; (3) the **cascade layer contract is reworked** around `vendors`, a grouped `legacy`, `zazz.plugins`, and `overrides`. In LTR horizontal writing with system theming, default rendering is unchanged except where flagged below.
|
|
8
|
+
|
|
9
|
+
### base
|
|
10
|
+
|
|
11
|
+
- Theme roles are now **declared exactly once** as `light-dark()` pairs on `:root`; `.dark`/`.light` and `[data-theme="dark"|"light"]` are pure `color-scheme` pins that also re-assert `color`. Scopes nest — a `.light` island inside a `.dark` section re-lightens its subtree. Override a role once (`--primary: light-dark(…, …)`) and every mode picks it up. **Visible change:** the manual/toggled dark palette had drifted from the system-dark arms and is now reconciled to them — `--border` (tint-100), `--popover` (neutral-950), `--primary`/`--secondary` (800), `--tertiary` (800) replace the stale tint-200/shade-950/500/400 copies, so toggled dark now matches system dark exactly.
|
|
12
|
+
- **BREAKING** The inverted-popover feature is removed: the `--use-inverted-popovers` property and the `data-use-inverted-menu` attribute no longer exist. Popovers follow the page's color scheme. Migration: delete both from your markup/CSS; to force a dark popover, set `color-scheme: dark` on it (tokens re-resolve automatically).
|
|
13
|
+
- New **text-decoration utilities**: `underline`, `overline`, `line-through`, `no-underline`.
|
|
14
|
+
- New **border width utilities**: `border-1` to `border-4` (all sides), per-side `border-{t|b}-{1-4}`, `border-{l|s}-{1-4}`, `border-{r|e}-{1-4}`. Compose with border color classes. Not responsive.
|
|
15
|
+
- New **divider utilities**: `divide-x` / `divide-y` draw a 1px border on the trailing logical edge of every direct child except the last. Children inherit `--_border-color`, so border color classes on the container recolor the dividers.
|
|
16
|
+
- New **logical-name aliases** (identical values to their physical-name twins): `inline-*`/`block-*` for `w-*`/`h-*` (plus `min-`/`max-` variants), `start-*`/`end-*` for `left-*`/`right-*`, `ps-*`/`pe-*` for `pl-*`/`pr-*`, `ms-*`/`me-*` for `ml-*`/`mr-*` (negative margins included), `border-s`/`border-e` for `border-l`/`border-r`, `rounded-s/e/ss/se/ee/es-*` for `rounded-l/r/tl/tr/br/bl-*`, and `text-start`/`text-end` for `text-left`/`text-right` (responsive variants included).
|
|
17
|
+
- Positioning, border, radius, and text-align utilities converted from physical to logical properties/values: `left:` → `inset-inline-start:`, `border-right:` → `border-inline-end:`, physical corner radii → `border-start-start-radius` etc., `text-align: left|right` → `start|end`. Rendering only changes in RTL/vertical writing modes, where utilities now mirror with the text direction.
|
|
18
|
+
- **BREAKING** Internal radius composition variables renamed to logical corners: `--_radius-top-left|top-right|bottom-right|bottom-left` → `--_radius-start-start|start-end|end-end|end-start`. Migration: rename in any custom CSS that reads or sets the `--_radius-*` vars (they are internal, so most consumers are unaffected).
|
|
19
|
+
- Fix: `z-isolate` declared invalid `z-index: isolate` (a no-op); now `isolation: isolate` as documented.
|
|
20
|
+
- Fix: `--ui-prose-figcaption-gap` was consumed by `.ui-prose figure` but never declared; now declared (`0px`, preserving current spacing) so the hook works.
|
|
21
|
+
- Fix: the `global-view-transition--old` keyframes read `--view-transition-opacity--new`; they now read `--view-transition-opacity--old`, making that documented hook functional (defaults are identical, so default rendering is unchanged).
|
|
22
|
+
- Fix: article containers' `data-container="full"|"bleed"` referenced undeclared `--article-full`/`--article-bleed` tokens (the rules were invalid and fell back to auto width); they now implement band-container semantics — `full` spans the available width keeping gutters, `bleed` runs edge to edge.
|
|
23
|
+
- **BREAKING** Cascade layer contract reworked: top-level order is now `variables, reset, vendors, legacy, zazz, overrides`. New `vendors` layer for third-party CSS that does not build on Zazz (above `reset` so the reset can't clobber library widgets, below `legacy`). The `migrations` top-level layer moved to a `legacy.migrations` sublayer — `legacy` now nests `imports, components, utilities, migrations`, so deleting a finished migration is dropping one layer; shims still beat all other legacy CSS but no longer beat Zazz (use `overrides` for that). New `zazz.plugins` sublayer between `components` and `utilities` for Zazz-dependent extensions (added variants can restyle the primitives they extend; utilities still win). New `overrides` top-level layer as the structured app-override slot — only unlayered CSS outranks it. Migration: import whole legacy files with `layer(legacy.imports)` (never bare `layer(legacy)` — un-sublayered rules form an implicit final sublayer that beats the shims), move `migrations.css` to `layer(legacy.migrations)`, and move any shim that had to override Zazz into `@layer overrides`.
|
|
24
|
+
|
|
25
|
+
### button
|
|
26
|
+
|
|
27
|
+
- Buttons paint with `background-clip: padding-box`, and filled variants (`primary`, `secondary`, `muted`, …) now default their border color to the variant background (`--ui-button-border-color: var(--ui-button-background)` and the `--hover`/`--active` pairs) instead of `transparent`. Same rendered look with cleaner edges on translucent backgrounds; if you overrode a variant background, its border now follows automatically.
|
|
28
|
+
|
|
29
|
+
### badge
|
|
30
|
+
|
|
31
|
+
- Same treatment as buttons: `background-clip: padding-box`, and variant border colors default to the variant background instead of `transparent`.
|
|
32
|
+
|
|
33
|
+
### carousel
|
|
34
|
+
|
|
35
|
+
- Example markup: dropped a redundant `font-heading` class from the example heading (`text-h5` already applies the heading weight).
|
|
36
|
+
|
|
37
|
+
### tooltip
|
|
38
|
+
|
|
39
|
+
- Example markup no longer carries `data-use-inverted-menu="false"` — the attribute was removed with the inverted-popover feature (see base).
|
|
40
|
+
|
|
5
41
|
## 0.2.0 (2026-08-31)
|
|
6
42
|
|
|
7
43
|
Token naming consistency pass + shared field-family inheritance. Two themes: (1) every token is now named after the **logical** CSS property it feeds (`-block-size`, never `-height`), and interactive controls decompose borders into `-border-width` / `-border-style` / `-border-color` parts; (2) buttons, toggles, tabs, checkboxes, radios, and badge borders now **default to the shared `--ui-field-*` family**, so one `--ui-field-radius` or `--ui-field-block-size` override retunes every control that sits on a line together. Default rendering is unchanged — the new aliases resolve to the same values.
|
package/README.md
CHANGED
|
@@ -18,8 +18,8 @@ import "@zazz-ui/core"; // custom elements and shared behaviors
|
|
|
18
18
|
From a CDN:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.
|
|
22
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.
|
|
21
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.3.0/dist/zazz.css" />
|
|
22
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.3.0/dist/zazz.js"></script>
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Use an exact version in CDN URLs. Each release includes `dist/sri.json`, which lists the SHA-384 hash for every published file. Use those hashes in `integrity` attributes.
|
package/dist/sri.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dist/zazz.css": "sha384-
|
|
2
|
+
"dist/zazz.css": "sha384-XRnKV6BhLEZ+Wd5XP10+LsmDA7lHqY3Q6X61eFd9ly+Mg5w6b8p77PbCJONadcMk",
|
|
3
3
|
"dist/zazz.js": "sha384-aPfxDnhH5V87Iwa/0sKglKCN/caKacvP5Lw99Xej2K51HI4UFKYF/6G6tbZ7ySzs",
|
|
4
|
-
"src/base/_layers.css": "sha384-
|
|
5
|
-
"src/base/_layout.css": "sha384-
|
|
4
|
+
"src/base/_layers.css": "sha384-6lai/sx1zuGAK8TfF02TCc4FGE5rNs57GrNpz5FDs4u0BK5F26g36jycNQPXxkDs",
|
|
5
|
+
"src/base/_layout.css": "sha384-xmqjLFPKpqjGpFVEmMjoKsZiWb+hVQ0u5AceRpnkdWuH56nrMS7XqrfaAfelLJGa",
|
|
6
6
|
"src/base/_reset.css": "sha384-+nvxayQr5UV3DlJHhpltIJRD7pLwOTCX3HSVeQAZZR3G6w1Hms5B46NoN3l3B9M1",
|
|
7
|
-
"src/base/_typography.css": "sha384
|
|
8
|
-
"src/base/_utilities.css": "sha384-
|
|
9
|
-
"src/base/_variables.css": "sha384-
|
|
10
|
-
"src/base/_view-transitions.css": "sha384-
|
|
7
|
+
"src/base/_typography.css": "sha384-+t4TGUCrY+5KlIuKpvfCCWRl8NCPhY3lUZjX9bFD4uYWvOpeShlEQWldxXoa/1lG",
|
|
8
|
+
"src/base/_utilities.css": "sha384-fj57L+24msXeBG+X4+g8RWQ+xKU2O5kBGZfutYL9+7IRySw61z1xnr3KhsJZkwup",
|
|
9
|
+
"src/base/_variables.css": "sha384-kWgPE4BgqnCSLZB+AswU43O9+ZRXthmOXHSskLGBv8PzUQlwMZPkWBWTwSd89J7X",
|
|
10
|
+
"src/base/_view-transitions.css": "sha384-IwttrGYS0xBYXBsjQoY4qHS266SOjGlYwfsdoEEaEWvJaEQMV2xB9U35sj5BfL6c",
|
|
11
11
|
"src/base/command-score.js": "sha384-1+Wn/S4VV+ICEqn3ekwMNPmWpAMZemIVULpSflx1eqJvzxcbq16v4uhRt9ebongt",
|
|
12
12
|
"src/base/dialog-lifecycle.js": "sha384-xuMHW1urqWKKEYA6raOIDHsgj9TTBir7ku9WxE/KsmMwxBpazEZKGhMfM37zC5RP",
|
|
13
13
|
"src/base/embla.js": "sha384-Gpd9ylfh+ExtTg87yNMGBRhRaeU6LptO3RKXUlfMOW35UMXjC9ni6gRAST8FuCqB",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"src/base/utils.js": "sha384-iwJoEs/fLdpt/TEDOQo+tk0Ao0vuEfGrE1bGGaM8OSXv6NgCY78LxQ/YiR6/AxF4",
|
|
20
20
|
"src/base/zazz-element.js": "sha384-6YCkr165EheG5e/nJbvFHTgeBL5HV3N0spXJiq5ZNArQyhUMV47dtyhrzaZTnTrr",
|
|
21
21
|
"src/head.js": "sha384-LWNGGFWPTlhFEEVAAgXcGsG6sslA6iKG4+SinHNwKMSKwJTWbZyutYYx7ZeaX0RB",
|
|
22
|
-
"src/index.css": "sha384-
|
|
22
|
+
"src/index.css": "sha384-LdiaQ4o6WjSPrZVXXBBYhXYFs2m/Pmjz+G38UdFNWm4j0F4lAltMRC8pfl0pwkXP",
|
|
23
23
|
"src/index.js": "sha384-oiwIyfPR++s0gEHK1AhBCJ0801zVMgDs8n65WF7mM2RSnR3ME7ZKUFslUf8rV+5k",
|
|
24
24
|
"src/manifest.js": "sha384-MaI6+2vkyPrNjZ79XUAfwr3T6d7ud+fu8Ar5l1B8JmFlhek2ccfLeE4fV81qdwGv",
|
|
25
25
|
"src/primitives/accordion/accordion.css": "sha384-4lKoG9z38aKRyb3OxKaFRDGuxdQy55f/PWXnqoYDuuXsDb4Zs+19wsM3rO2215iR",
|
|
26
26
|
"src/primitives/alert-dialog/alert-dialog.css": "sha384-b2kvZNJgYFImVnNTP8IlnUB5JhXHDi55tsdUoiukMUsztH+0CL/CMuCYVoPi7bRv",
|
|
27
27
|
"src/primitives/autocomplete/autocomplete.css": "sha384-R0blgYdjEdnkCSPeWwGJO7dQAxRE2Op8kQreqgpTXESFxNSjKi//WSCUEyNre3k3",
|
|
28
28
|
"src/primitives/autocomplete/autocomplete.js": "sha384-pSs//u6eySW6BvHOG2ei9L7diGOfP0lqhfhJwOtXJnMNu5UHPCr/hiRXo9XGAbs/",
|
|
29
|
-
"src/primitives/badge/badge.css": "sha384-
|
|
29
|
+
"src/primitives/badge/badge.css": "sha384-xkWBCG/Sjkcw+ixRrKfRHlrEpS/xMDWOvBkHwy89vawXPml4yIcQyQhum4mvZUe+",
|
|
30
30
|
"src/primitives/button-group/button-group.css": "sha384-exGEia7TDeu6gGQBYyOy5l++jCGlDLpi+4Js0vPvu5XJEU9h2G1itJ9I52aT5Evd",
|
|
31
|
-
"src/primitives/button/button.css": "sha384-
|
|
31
|
+
"src/primitives/button/button.css": "sha384-Vs5F0stgUGHP6H0J2P3fdktsvi6ZwNpN246u7gmNJFUjQCvsJAjwfWT2Qz3+xASh",
|
|
32
32
|
"src/primitives/carousel/carousel.css": "sha384-LqoT3Yls+K0/N5u3TJHlOrp3F7wrnCJGAC15Tcrcxu7laBRZd6vkmPY+TKkIhd+i",
|
|
33
33
|
"src/primitives/carousel/carousel.js": "sha384-vzVtcr/e8BmG3h3eKJZFSZak3Wc1mBgBPRhaZJZaDzAeqkP+FEdMDKXJYRWV07MX",
|
|
34
34
|
"src/primitives/checkbox/checkbox.css": "sha384-x0kjj5JvslE6MuQ7TbRJ3E9cJFokyGFY26DxHj3Ky5jKRakQHUG4TeV6Iv7G9Yfl",
|