@zazz-ui/core 0.6.2 → 0.7.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/AUTHORING.md +5 -3
- package/CHANGELOG.md +38 -0
- package/README.md +3 -3
- package/dist/csp-D72qtdXZ.js +1 -0
- package/dist/sri.json +54 -49
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/editor/zazz.css-data.json +312 -24
- package/editor/zazz.language-data.json +9 -9
- package/editor/zazz.lint-data.json +2028 -0
- package/package.json +1 -1
- package/src/base/_defaults.css +367 -0
- package/src/base/_layers.css +6 -2
- package/src/base/_properties-2xl.css +8 -2
- package/src/base/_properties-active.css +12 -0
- package/src/base/_properties-checked.css +12 -0
- package/src/base/_properties-current.css +12 -0
- package/src/base/_properties-disabled.css +12 -0
- package/src/base/_properties-focus-visible.css +12 -0
- package/src/base/_properties-focus-within.css +12 -0
- package/src/base/_properties-hover.css +12 -0
- package/src/base/_properties-lg.css +8 -2
- package/src/base/_properties-md.css +8 -2
- package/src/base/_properties-open.css +12 -0
- package/src/base/_properties-sm.css +8 -2
- package/src/base/_properties-starting.css +6 -0
- package/src/base/_properties-stuck.css +6 -0
- package/src/base/_properties-xl.css +8 -2
- package/src/base/_properties.css +12 -3
- package/src/base/_utilities-box.css +0 -15
- package/src/base/_utilities-effects.css +0 -15
- package/src/base/_utilities-flow.css +79 -68
- package/src/base/_utilities-grid.css +20 -32
- package/src/base/_utilities-sizing.css +0 -3
- package/src/base/_utilities-spacing.css +36 -11
- package/src/base/_utilities-tier-2xl.css +4 -1
- package/src/base/_utilities-tier-active.css +6 -0
- package/src/base/_utilities-tier-checked.css +6 -0
- package/src/base/_utilities-tier-current.css +6 -0
- package/src/base/_utilities-tier-disabled.css +6 -0
- package/src/base/_utilities-tier-focus-visible.css +6 -0
- package/src/base/_utilities-tier-focus-within.css +6 -0
- package/src/base/_utilities-tier-hover.css +6 -0
- package/src/base/_utilities-tier-lg.css +4 -1
- package/src/base/_utilities-tier-md.css +4 -1
- package/src/base/_utilities-tier-open.css +6 -0
- package/src/base/_utilities-tier-sm.css +4 -1
- package/src/base/_utilities-tier-starting.css +3 -0
- package/src/base/_utilities-tier-stuck.css +3 -0
- package/src/base/_utilities-tier-xl.css +4 -1
- package/src/base/_utilities-typography.css +0 -9
- package/src/base/csp.d.ts +19 -0
- package/src/base/csp.d.ts.map +1 -0
- package/src/base/csp.js +131 -0
- package/src/base/csp.ts +137 -0
- package/src/base/declarations.d.ts +36 -0
- package/src/base/declarations.d.ts.map +1 -0
- package/src/base/declarations.js +70 -0
- package/src/base/declarations.ts +97 -0
- package/src/base/kit-styling.d.ts +11 -0
- package/src/base/kit-styling.d.ts.map +1 -0
- package/src/base/kit-styling.js +467 -0
- package/src/base/kit-styling.ts +470 -0
- package/src/base/style-format.d.ts +3 -22
- package/src/base/style-format.d.ts.map +1 -1
- package/src/base/style-format.js +4 -62
- package/src/base/style-format.ts +4 -71
- package/src/base/utilities.d.ts +14 -6
- package/src/base/utilities.d.ts.map +1 -1
- package/src/base/utilities.js +81 -29
- package/src/base/utilities.ts +92 -38
- package/src/head.d.ts +6 -0
- package/src/head.d.ts.map +1 -1
- package/src/head.js +21 -14
- package/src/head.ts +38 -11
- package/src/index.css +1 -0
- package/src/index.js +22 -0
- package/src/index.ts +19 -0
- package/src/manifest.d.ts +21 -1
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +12 -2
- package/src/manifest.ts +27 -2
- package/src/primitives/debug/audit-core.d.ts +9 -1
- package/src/primitives/debug/audit-core.d.ts.map +1 -1
- package/src/primitives/debug/audit-core.js +58 -8
- package/src/primitives/debug/audit-core.ts +84 -7
- package/src/primitives/debug/debug.d.ts +0 -15
- package/src/primitives/debug/debug.d.ts.map +1 -1
- package/src/primitives/debug/debug.js +11 -2
- package/src/primitives/debug/debug.ts +12 -1
- package/src/primitives/prose/prose.html +3 -3
- package/src/primitives/table/table-size-sm.html +12 -12
- package/src/primitives/utilities/aspect-ratio.html +1 -0
- package/src/primitives/utilities/margin-auto.html +1 -1
- package/src/primitives/utilities/overflow.html +5 -6
- package/src/primitives/utilities/position.html +1 -1
- package/src/primitives/utilities/width.html +2 -1
package/AUTHORING.md
CHANGED
|
@@ -35,9 +35,11 @@ State tokens (`data-<identity>-state="active open"`) are written by the kit's sc
|
|
|
35
35
|
<div style="--display: grid; --grid-cols: 1; --grid-cols--md: 3; --gap: 6">…</div>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
- **
|
|
38
|
+
- **Tailwind's names, CSS values.** A utility is named after the Tailwind class it stands in for (`--justify`, `--items`, `--rounded`, `--w`) and takes the value its CSS property takes (`--justify: space-between`, `--w: 100%`, `--shadow: 0 1px 2px black`). Three exceptions: a bare number on spacing, margin, and sizing utilities is a step on the spacing scale (next); `--shadow` and `--font-weight` also take a token by name; and `--display` takes `flex-col` and its siblings. The `var()` form of a token (`--shadow: var(--shadow-md)`) always works too. Coming from CSS rather than Tailwind? The docs have a [property-to-utility table](https://zazz.sh/api/utilities/from-css/).
|
|
39
|
+
- **Spelling is exact**: `--<utility>: value`, one space after the colon, declarations separated by `; `. The kit matches the attribute text, so `--px : 6` silently does nothing. A tier gate (`--p:`, `--md:`) reads the property itself and takes `--p:4`, but a keyword, a token by name, a `--display` shorthand, `--bg: none`, and `--position: sticky` match as text and need the one space: `--w:auto` is 0 wide and `--shadow:md` draws nothing. React and Vue serialize an object `style` without the space, so in JSX or a Vue object write those values as a string `style` or as `var()` (`"--shadow": "var(--shadow-md)"`).
|
|
39
40
|
- **Numbers are scale steps** on spacing, margin and sizing utilities: `--px: 6` is `6 × --spacing`. The space tokens sit on that scale, so write their number and skip the `var()`: `--space-2xs` = 1, `xs` = 2, `sm` = 4, `md` = 6, `lg` = 11, `xl` = 24, `2xl` = 40 (`--gap: 4` is `--space-sm`). Any length works too: `--px: 1.5rem`, `--w: 100%`.
|
|
40
41
|
- **Prefer tokens and their shorthands**: scale numbers for spacing (above), `var(--color-<role>)` for color, `var(--radius-*)`, `var(--font-size-*)`. A few utilities take a token by name, at every tier: `--shadow: md` (`2xs … 2xl`, any shadow or `var()` still works; `--shadow-hue: var(--color-primary)` tints an element's and its subtree's shadows, and `--color-shadow` on `:root` tints them all) and `--font-weight: strong` (also `heading`, `body`; standard names such as `medium` are not CSS, so write `500`). `--display` takes flex shorthands that set the direction too: `flex-row`, `flex-col`, their `-reverse` forms, and `inline-flex-…` (`--display: flex-col; --display--md: flex-row`); there is no `--flex-direction` utility. Raw values are the escape hatch.
|
|
42
|
+
- **Utilities need the `style` attribute to apply.** Under a strict Content Security Policy, allow it with `style-src-attr 'unsafe-inline'` and keep stylesheets locked with `style-src-elem`; where a policy blocks it anyway, `index.js` loads a fallback that copies each attribute into the CSSOM, at the cost of needing JavaScript. Markup that passes through a sanitizer which strips `style` should use presets, switches, and hooks set in a stylesheet instead.
|
|
41
43
|
- **Names are short**, Tailwind-style where Tailwind has one: `--p --px --py --pt --pb --pl --pr`, `--m …`, `--w --h --size --min-w --max-w`, `--bg --text --border --border-color`, `--bg-linear --bg-radial --bg-conic --bg-stops`, `--rounded`, `--inset --inset-x --inset-y --top --right --bottom --left`, `--font-size --leading --tracking --font-weight`, `--items --justify --self`, `--place-items --place-content` (alignment keywords only, `safe end` included), `--grid-cols --grid-rows --col-span --col-start --col-end --row-span --row-start --row-end`, `--flex --basis --shrink`. Sides are `l`/`t`/`r`/`b` (`--pl`, `--mr`, `--border-l`); they set logical properties, so `l` is the right side in RTL. `--border: <color | number | length>` is a solid border: a color is 1px wide, a number is that many px in `--color-border`, a length is the width in `--color-border`; `--border-width` and `--border-color` win over it. A side takes only the shorthand: `--border-b: 1` is a one-line divider, `--border-l: var(--color-primary)` an accent edge (there is no `--border-b-width`). Borders between direct children are the `divide-x` / `divide-y` switches: `data-ui="divide-y"`, with `--divide: 2` or `--divide: var(--color-muted)` on the container to size or color them. Grids follow Tailwind: `--grid-cols` / `--grid-rows` take a count (`3` is three equal tracks) or `subgrid` (`none` is `--template-cols: none`); a track list goes in `--template-cols: 2fr 1fr` / `--template-rows`. Place items with `--col-span: 2` (`span 2 / span 2`), `--col-start: 2`, `--col-end: -1`, and the `--row-*` twins; span every track with `--col-start: 1; --col-end: -1` (Tailwind's `col-span-full`). Inside a layout, `--band: layout-md` puts a child in a band. Gradients pair a type with its stops: `--bg-linear: to bottom in oklch; --bg-stops: var(--color-shade-600), transparent 20%` (also `--bg-radial: circle at top`, `--bg-conic: from 45deg`); the type takes the gradient's prelude (direction, shape, position, `in <color-space> [<hue> hue]`), any of it optional but not all of it, and `--bg` stays the color underneath. `--bg: none` clears both the color and any gradient, at the base or a state (`--bg--hover: none`). The editor completes the full list (`editor/zazz.css-data.json`).
|
|
42
44
|
|
|
43
45
|
### Modifiers
|
|
@@ -98,8 +100,8 @@ State tokens (`data-<identity>-state="active open"`) are written by the kit's sc
|
|
|
98
100
|
|
|
99
101
|
Rules that bite:
|
|
100
102
|
|
|
101
|
-
1. **A tier needs a base.** `--text--hover: red` alone does nothing; write `--text: currentColor; --text--hover: red`. These utilities have a natural default and work tier-only: `--flex-wrap --shrink --grid-flow --auto-cols --auto-rows --items --justify --place-items --place-content --self --flex --basis --order --band --grid-cols --grid-rows --gap --gap-x --gap-y --text-align --text-wrap --text-decoration --opacity --scale --translate --rotate --shadow --shadow-angle --ring --ring-color --ring-offset --ring-offset-color --focus-ring --
|
|
102
|
-
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. The rings and the shadow's angle take breakpoints too: `--ring--md`, `--focus-ring--md`, `--shadow-angle--md`. On a color utility a state beats a breakpoint: `--bg--md: black; --bg--hover: gray` is gray on hover at any width.
|
|
103
|
+
1. **A tier needs a base.** `--text--hover: red` alone does nothing; write `--text: currentColor; --text--hover: red`. These utilities have a natural default on a plain element and work tier-only: `--p --px --py --pt --pb --pl --pr --bg --flex-wrap --shrink --grid-flow --auto-cols --auto-rows --items --justify --place-items --place-content --self --flex --basis --order --band --col-span --col-start --col-end --row-span --row-start --row-end --grid-cols --grid-rows --template-cols --template-rows --gap --gap-x --gap-y --text-align --text-wrap --text-decoration --opacity --scale --translate --rotate --shadow --shadow-angle --ring --ring-color --ring-offset --ring-offset-color --focus-ring --aspect --position --anchor-name --position-anchor --position-area` (on any element where the kit does not set that property itself: `data-ui="text-2xl" style="--opacity--hover: .8"` works, and so does `--opacity--hover` on a card). Where a primitive or the base does set it, its value wins over a tier alone: the tier then applies only if that rule reads the utility, as a button reads `--px` and `--bg`; otherwise write the base (`--bg--md` alone on a popover keeps the popover's paint). The tier-only rules sit in `@layer defaults`, below every component, vendor, and legacy layer (ADR-0017); the editor and `<ui-debug>` report a tier alone that has no effect. Margin, `--text`, and `--font-size` stay out: the base sets a heading's size, a link's color, and the margins between text blocks, and a tier-only value would reset those at rest.
|
|
104
|
+
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. The rings and the shadow's angle take breakpoints too: `--ring--md`, `--focus-ring--md`, `--shadow-angle--md`. The anchor utilities take states too (`--anchor-name--hover`, `--position-area--open`), so editor chrome can follow the hovered block. On a color utility a state beats a breakpoint: `--bg--md: black; --bg--hover: gray` is gray on hover at any width.
|
|
103
105
|
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`).
|
|
104
106
|
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).
|
|
105
107
|
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 the `--layout-*` widths in rem, the same in any font: `sm` 40rem, `md` 48rem, `lg` 64rem, `xl` 80rem, `2xl` 96rem. 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.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
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.7.0 (2026-10-13)
|
|
4
|
+
|
|
5
|
+
### base
|
|
6
|
+
|
|
7
|
+
- **BREAKING:** the cascade order gains a `defaults` layer between `reset` and `vendors`: `@layer variables, reset, defaults, vendors, legacy, ui, overrides` (ADR-0017). It holds every utility rule gated on a tier alone (`--px--md: 8` with no `--px`), generated into the new `base/_defaults.css`. A primitive, vendor, or legacy rule that sets the property now beats a tier alone, so the element keeps its own value at rest; before, tier-only padding or paint wiped it on popovers, menu popovers, tooltip content, `kbd`, checkboxes, switches, and the combobox control. A tier alone still applies where the primitive reads the utility itself (a button's `--px` and `--bg`), and now also works on a primitive root that does not set the property (`--opacity--hover` on a card). On an element a primitive styles without reading the utility, write the base (`--bg--md` alone on a popover keeps the popover's paint). A longhand tier beside its shorthand's base (`--p: 4; --px--md: 1`) applies from the tier and keeps the shorthand's value below it; before, the longhand's rest value dropped to its literal (0 for padding). The utility table's `noBaseExclude` field is gone, and `--rounded`, `--overflow*`, and `--z`, which take no tiers, no longer list a no-base value. The generated layer is 21.6 KB with Brotli.
|
|
8
|
+
- **Migration** for the `defaults` layer: if your project declares its own `@layer` order, add `defaults` after `reset`. `zazz-ui update` brings the new `_layers.css` and `_defaults.css`.
|
|
9
|
+
- Fix: `--shrink` beside `--flex` (`--flex: 1; --shrink: 0`) did nothing, because `--flex`'s base came later in source. `--shrink` now follows it.
|
|
10
|
+
- New utilities `--anchor-name` and `--position-anchor` set the anchor positioning properties, with state and breakpoint tiers (`--anchor-name--hover`, `--group-anchor-name--hover`, `--position-anchor--md`) for editor chrome that follows the hovered, focused, or current block. `--position-area` places the tethered element on its anchor's grid (`--position-area: block-start span-inline-end`), with the same tiers. All three work tier-only.
|
|
11
|
+
|
|
12
|
+
### debug
|
|
13
|
+
|
|
14
|
+
- The `tier-without-base` finding now reports where a tier alone does nothing: a no-base utility on an element whose primitive or base sets the property without reading it (`--bg--md` on a popover, `--p--md` on a button, which reads `--px`), a ring or shadow tier on an element whose primitive draws its own `box-shadow` (`--ring--md` on a card), and any other utility on an element no kit rule reads it on. A shorthand's base counts as the base for its longhand's tier (`--p: 4; --px--md: 1`). A tier the kit reads is not reported, outside the no-base allowlist too (`--text--hover` on a button, `--band--md` on a layout child). The editor and the ESLint plugin report the same findings. The data is generated from the kit's stylesheets into the new `base/kit-styling.js`, which `<ui-debug>` imports (the CLI vendors it with debug), and into the new `selectors`, `reads`, and `blocks` fields of `editor/zazz.lint-data.json`.
|
|
15
|
+
|
|
16
|
+
## 0.6.3 (2026-10-13)
|
|
17
|
+
|
|
18
|
+
### base
|
|
19
|
+
|
|
20
|
+
- Under a Content Security Policy that blocks inline style attributes, utilities now apply: `index.js` finds a styled element whose declaration block is empty (the shape of a blocked attribute) and loads the new `base/csp.js`, which copies each `style` attribute into the CSSOM with `setProperty` and watches later writes. Utilities then need JavaScript and apply after the module runs; a policy that allows the attribute (`style-src-attr 'unsafe-inline'`, the documented one) never fetches it. `data-ui-guard="off"` opts an element out. New `base/declarations.js` holds the `style` attribute parser the formatter and the fallback share.
|
|
21
|
+
- `buildHead({ nonce })` puts the response's nonce on the import map and the theme script, the head's two inline scripts, for a strict `script-src`.
|
|
22
|
+
|
|
23
|
+
- Padding (`--p`, `--px`, `--py`, `--pt`, `--pb`, `--pl`, `--pr`) and `--bg` join the no-base allowlist: on a plain element a tier alone works, so `--px--md: 8` pads from md and `--bg--hover: var(--color-muted)` paints on hover, without `--px: 0` or `--bg: transparent` beside it. As with the rest of the allowlist, a primitive still needs the base, and so do the elements the base pads or paints (for padding: lists, definition details, and quotes inside `prose`, `code`, and form controls; for `--bg`: `code` and `hr`). The audit no longer reports a tier-only padding or `--bg` on a plain element.
|
|
24
|
+
|
|
25
|
+
### prose
|
|
26
|
+
|
|
27
|
+
- The example's figure caption no longer names the 0.4 `.ui-prose` class, and its image is a real photograph instead of a placeholder service.
|
|
28
|
+
|
|
29
|
+
### table
|
|
30
|
+
|
|
31
|
+
- The `size="sm"` example lists the table's own attributes (`data-table-variant`, `data-table-size`, `data-table-state`) instead of 0.4 names.
|
|
32
|
+
|
|
33
|
+
### utilities
|
|
34
|
+
|
|
35
|
+
- The position, overflow, aspect-ratio, margin-auto, and width examples lay out as described: the positioned box and the scroll regions have a height, the second overflow region clips instead of repeating the first, the aspect boxes keep their ratios, the centered box fits its content, and the full-width bar is labelled `--w: 100%`.
|
|
36
|
+
|
|
37
|
+
### debug
|
|
38
|
+
|
|
39
|
+
- New audit finding, `whitespace-after-colon`: a value the kit matches as text (a keyword such as `auto` or `subgrid`, a token by name such as `md` or `strong`, a `--display` shorthand, `--bg: none`, `--position: sticky`, a stuck side) written without exactly one space after the colon. `--w:auto` is 0 wide and `--shadow:md` draws nothing, and that is how React and Vue serialize an object `style`. The editor and the ESLint plugin offer the fix. A tier gate (`--p:4`) is not affected and is not reported.
|
|
40
|
+
|
|
3
41
|
## 0.6.2 (2026-10-12)
|
|
4
42
|
|
|
5
43
|
### 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.
|
|
23
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.7.0/dist/zazz.css" />
|
|
24
24
|
<script type="importmap">
|
|
25
25
|
{
|
|
26
26
|
"imports": {
|
|
@@ -36,10 +36,10 @@ 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.
|
|
39
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.7.0/dist/zazz.js"></script>
|
|
40
40
|
```
|
|
41
41
|
|
|
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.
|
|
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.
|
|
43
43
|
|
|
44
44
|
Or own the files: the [`zazz-ui`](https://www.npmjs.com/package/zazz-ui) CLI vendors the base platform and any primitives (with their dependencies) into your project and merges later updates against the recorded originals.
|
|
45
45
|
|
|
@@ -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=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,72 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
+
"dist/csp-D72qtdXZ.js": "sha384-ql65Y8rnRK2SaClp37crhsy4jvWfVc6BkojqC2qaxcbd5iJDAUBZ0JgDOg8n19As",
|
|
2
3
|
"dist/scroll-state-C8mA5gq6.js": "sha384-m9uzgIAkSnk8Es+jgCbChIYFu4rPyr00IB7lrAR/8dcsPc3u75VA7Wq5LIEAvXpT",
|
|
3
|
-
"dist/zazz.css": "sha384
|
|
4
|
-
"dist/zazz.js": "sha384-
|
|
4
|
+
"dist/zazz.css": "sha384-wDHeKABihYIJImZDKc9tLWPA268lJaMNbVdy7OLMt9Up4H86zkvm6M37LR0IyKKP",
|
|
5
|
+
"dist/zazz.js": "sha384-OVNmmMvhtHgQnaG3zE0RFjiAKpQzHB8Z5JrnFYpC7BY2IALpKkmLKrPxnM0zaHog",
|
|
5
6
|
"src/base/_breakpoints.css": "sha384-vsvdoL+ZjTa5gyCiMp4DlNIbr9rxkLqfQjZ+W3YTp2Apuuu+1/Dd68ACtcBOip3v",
|
|
6
|
-
"src/base/
|
|
7
|
-
"src/base/
|
|
8
|
-
"src/base/_properties-
|
|
9
|
-
"src/base/_properties-
|
|
10
|
-
"src/base/_properties-
|
|
11
|
-
"src/base/_properties-
|
|
12
|
-
"src/base/_properties-
|
|
13
|
-
"src/base/_properties-focus-
|
|
14
|
-
"src/base/_properties-
|
|
15
|
-
"src/base/_properties-
|
|
16
|
-
"src/base/_properties-
|
|
17
|
-
"src/base/_properties-
|
|
18
|
-
"src/base/_properties-
|
|
19
|
-
"src/base/_properties-
|
|
20
|
-
"src/base/_properties-
|
|
21
|
-
"src/base/_properties-
|
|
22
|
-
"src/base/_properties.css": "sha384-
|
|
7
|
+
"src/base/_defaults.css": "sha384-sYNVMgxMur2KPXnCW/KlAF5YNDJnMiKQ7Fhy1vdist7/QJ31HAX16aQHYQkd8rmI",
|
|
8
|
+
"src/base/_layers.css": "sha384-oP5mW12kxkLOsf0YZCjBxZ+QxearUXLYbRHv4ynTgvAbVMur2O9gXAPv9DZH8QGH",
|
|
9
|
+
"src/base/_properties-2xl.css": "sha384-6BAgtYI+Y65uF4klRv+/yV7uEPLiOznlbcB6Y5pC4ZxekCozZxW4MP+v+VDp/6Ge",
|
|
10
|
+
"src/base/_properties-active.css": "sha384-c585RYEmYTomw88J86O4LTqlRjLLqwVM5aa5ori5kdbAuGm1xdRFfrgv+fWz9I2C",
|
|
11
|
+
"src/base/_properties-checked.css": "sha384-GwIl3KY/2dfIvcBtKp3rCdjuHVDNTVH4WQOHEnijMHRxlDygN3eGDeS6eSEc6LtF",
|
|
12
|
+
"src/base/_properties-current.css": "sha384-HeesWGNwGGy5FSjzyze10cg3yHRuRzIJ0RgIq8fEbtSf0lgV5tS9MB9TOiiJq2QL",
|
|
13
|
+
"src/base/_properties-disabled.css": "sha384-4LNUJzu02+9ItS86olszJ4TEn0/6OFj5GWKxpIw3EYlZVdiXnhWbD0/r0SIJGhcF",
|
|
14
|
+
"src/base/_properties-focus-visible.css": "sha384-s3PPWVLogf6v5c7iynO4GWM1a3ziRMEi870h7wU/tWvbptlxUGmRW3lm8Ay5baOZ",
|
|
15
|
+
"src/base/_properties-focus-within.css": "sha384-VqrdRJyuOaOfVf3qyWRRn/4T72XcgGk3D6KphQrgiJUMetY3NtBcFVnJlhwj2lAj",
|
|
16
|
+
"src/base/_properties-hover.css": "sha384-yOWBwkryASfouMR+xtwlZAegNzuhA0GVHtL1gyyEsfnfUXD/mMrst7Fs6m40OWTA",
|
|
17
|
+
"src/base/_properties-lg.css": "sha384-mOI7GU+McNtSZ9JrEXBm3nk+BQMlwpwP6PFN7PTagY8WpLYMAa9s4yJUNS6uM9hX",
|
|
18
|
+
"src/base/_properties-md.css": "sha384-oCOTYs8D77gi0PI2UM9wNfRltdqOcfV9e2eKY1B1d4IlvdkyZM+ce1uab4SCGAdG",
|
|
19
|
+
"src/base/_properties-open.css": "sha384-pLx5DJSE9Ue/klhHAmiN0LK9sVDjrsD8Dzk7AebYfWa+U/l0Ejx0apZXyeCBHjrV",
|
|
20
|
+
"src/base/_properties-sm.css": "sha384-dPuT6N/dyUYfGuPj1W4NniwwQ/Bgia5z2sg8IdevkQG554Q+RDwQOGB0l1UgzcoB",
|
|
21
|
+
"src/base/_properties-starting.css": "sha384-3V85sUl335MoIre1fVhA+KG6+9E7yd88RRLBiqq5GRIgK+G+7FOWN6v0ZJEbUvYz",
|
|
22
|
+
"src/base/_properties-stuck.css": "sha384-YTwfxb662fhFUlPI1l9uQdvpFwWi/B02c3QMiCGAJ5flbGTtxbh4fCXQ6CfC0cS3",
|
|
23
|
+
"src/base/_properties-xl.css": "sha384-d1hvBjIkzsx/wphkbX7wock0wcLkBtcZ8v7zipbG571mIMX7tZrQ4eoC5HCpXOZt",
|
|
24
|
+
"src/base/_properties.css": "sha384-WuP45Xioedr78Tl8aWX9PK23+BY3lCQ83SxvSgJcSTzLBX1RgiG+Z6ILxzWOQYTG",
|
|
23
25
|
"src/base/_reset.css": "sha384-yy3858X2KRndBB3iVxs7AWpDjDcX3YZr3X5rtRTR95cX35+joh5bdTHL2ONB2X5e",
|
|
24
26
|
"src/base/_switches.css": "sha384-sGwuSg/A2io3VXsZDzLtawKjhcH2fg0NkvIejLCx4kGsM5QQXZmLyoWz+MvPWlCH",
|
|
25
27
|
"src/base/_typography.css": "sha384-dK5YewnVGNuq8EZk7fAC9IweAn/f9VmumHMA8VZQ2KLX4LrxbwWm34bcny1vhinp",
|
|
26
|
-
"src/base/_utilities-box.css": "sha384-
|
|
28
|
+
"src/base/_utilities-box.css": "sha384-NMwwHHaBFPYPC+JkyK39lXKjwoqB5pjFt762nzz4/RYgHchCKJO46Lfbnn+wVT9X",
|
|
27
29
|
"src/base/_utilities-color.css": "sha384-HmtI5YIr4N3As9b4MQy+tKRcOujlxEUa3VwNa9EjtHy54IRjsvq8ORT9+BPksP1y",
|
|
28
|
-
"src/base/_utilities-effects.css": "sha384-
|
|
29
|
-
"src/base/_utilities-flow.css": "sha384-
|
|
30
|
-
"src/base/_utilities-grid.css": "sha384-
|
|
30
|
+
"src/base/_utilities-effects.css": "sha384-JnVIfnHOPe5MoI2VzrDnPoNg+7YTekjr5+fK0+EE9BcKGk7MaiKPNWFWjcxdgCjb",
|
|
31
|
+
"src/base/_utilities-flow.css": "sha384-EpoAq+fuGVlm16f3h4npr1XuYU8m00rnD5FYARfS2n8A0uzfOcnxyRzRtkuDDcPZ",
|
|
32
|
+
"src/base/_utilities-grid.css": "sha384-bvh5byoTXdeUY9uSjEeoebUi9mArSZxYGwbeh+VCvaEpf1rz5v+dZ7Dl8Ahajzaq",
|
|
31
33
|
"src/base/_utilities-margin.css": "sha384-zwIwNsFcu8iT8w6LDBO87O9RBsbS2y9FrL28balsQkbSoeRHzBJKRPOJ9lutwnd+",
|
|
32
34
|
"src/base/_utilities-pseudo.css": "sha384-pF6gvBFbBeFwbRUa69ITVGGFcuHFH9BT7CCqz6Qk9QaqtSqSIWWP4gcIhiXsHo0s",
|
|
33
|
-
"src/base/_utilities-sizing.css": "sha384-
|
|
34
|
-
"src/base/_utilities-spacing.css": "sha384-
|
|
35
|
-
"src/base/_utilities-tier-2xl.css": "sha384-
|
|
36
|
-
"src/base/_utilities-tier-active.css": "sha384-
|
|
37
|
-
"src/base/_utilities-tier-checked.css": "sha384-
|
|
38
|
-
"src/base/_utilities-tier-current.css": "sha384-
|
|
39
|
-
"src/base/_utilities-tier-disabled.css": "sha384-
|
|
40
|
-
"src/base/_utilities-tier-focus-visible.css": "sha384-
|
|
41
|
-
"src/base/_utilities-tier-focus-within.css": "sha384-
|
|
42
|
-
"src/base/_utilities-tier-hover.css": "sha384-
|
|
43
|
-
"src/base/_utilities-tier-lg.css": "sha384-
|
|
44
|
-
"src/base/_utilities-tier-md.css": "sha384-
|
|
45
|
-
"src/base/_utilities-tier-open.css": "sha384-
|
|
46
|
-
"src/base/_utilities-tier-sm.css": "sha384-
|
|
47
|
-
"src/base/_utilities-tier-starting.css": "sha384-
|
|
48
|
-
"src/base/_utilities-tier-stuck.css": "sha384-
|
|
49
|
-
"src/base/_utilities-tier-xl.css": "sha384-
|
|
50
|
-
"src/base/_utilities-typography.css": "sha384-
|
|
35
|
+
"src/base/_utilities-sizing.css": "sha384-Ver13L2d6YiTCt+BooZpR7mYwbDN9SDBU5EgJWl7Z9onizc0x4wLp08pisWfCvfh",
|
|
36
|
+
"src/base/_utilities-spacing.css": "sha384-ZlhdU6ExbM8tV+2CrYHWS09jLiq6+RV8P4c8CKGhGnNsnxxCvXCGsbY+8orrySvF",
|
|
37
|
+
"src/base/_utilities-tier-2xl.css": "sha384-YjP6MlSpFYYb+xvtjZistMIJq+8DmF9NtkYHcYfykLpj02md6Y/trE9yEkDW3ttQ",
|
|
38
|
+
"src/base/_utilities-tier-active.css": "sha384-6rOYHwRAXaB6uQ3nyeLEg6uAGCJ+0UuYlZU19I8JnSgCqPGVqprhPgfOFGjreIHO",
|
|
39
|
+
"src/base/_utilities-tier-checked.css": "sha384-715xWSkk1K+VdGCxTHrc3dKiXzMUWiHSzZ9+yO+ydRKXgWx7yZ0rGeUQB/VtwrUO",
|
|
40
|
+
"src/base/_utilities-tier-current.css": "sha384-4oXbSteSQmrO1Vqogz3q4DBArt9uuyOrGNEl/XLGgvKcgzp8CsXHfXWmkoWhU/oH",
|
|
41
|
+
"src/base/_utilities-tier-disabled.css": "sha384-UkniAENWhKTa2TNfiT8jtXlzOP+oU7KupwHHqbH2T6Qn8GTzm+2bvdeNtJcyntgC",
|
|
42
|
+
"src/base/_utilities-tier-focus-visible.css": "sha384-v6buJqSAKOlCH/ZMUT/+aN6IoC1j1DZBXaDnyGq7iBmCKAsWsNq4AKbTr4vEcOHM",
|
|
43
|
+
"src/base/_utilities-tier-focus-within.css": "sha384-eGihMBACknf7CLeMOpr07LXMHroyi8iPSP7VYH/v53kP4T7jtuF+8rvuSm7kzFzM",
|
|
44
|
+
"src/base/_utilities-tier-hover.css": "sha384-L0s5YQPnh5vcC8sysFGby/zK2nykJ/RD+C3UwjfHUQkFCvupY+4v4pKkK61z9Gfz",
|
|
45
|
+
"src/base/_utilities-tier-lg.css": "sha384-XXehparsNQ59EhbnkAb7ehF4ij3w0gK2pJ8d09dhyDdXNHzErJ4jfVqfsI9FvaHH",
|
|
46
|
+
"src/base/_utilities-tier-md.css": "sha384-oq70vINoGpLZmdRxcM3/AZiUOVvcUapeEMVGgic2kexIqgonqiV0mUjqAABehiGQ",
|
|
47
|
+
"src/base/_utilities-tier-open.css": "sha384-phZ8Xxvs4cF47tSz76TemwuYPRAsQReFavznGZV8UKqWkE0gIEW70QUrrpJ+D2AA",
|
|
48
|
+
"src/base/_utilities-tier-sm.css": "sha384-aoKF4/uoBrwnQT5uN3rRJNxX6XQsgNPWOWai6/jByw7KjN/J/ebygYYL8RMUaD4a",
|
|
49
|
+
"src/base/_utilities-tier-starting.css": "sha384-BpCQQMowEIkm03lzaMQbApfmCuhB1e6ltD3Ys5tpB4k7Vrpt27h0OESFwK/7PTwo",
|
|
50
|
+
"src/base/_utilities-tier-stuck.css": "sha384-b6nUm88iOvOYietb8ARaCyD8qHyPxoHNOZAx03uDNFaiNkwPEWvdCtAqFXOp4pti",
|
|
51
|
+
"src/base/_utilities-tier-xl.css": "sha384-aRPxxFGoylk/n57OrQ+pMlpQwaZtfzo6jzc8424rWFjsh8hqyRZJigVKFFL9QKVG",
|
|
52
|
+
"src/base/_utilities-typography.css": "sha384-OIsV8u8KHIrWvvtXYEghYsKTf9bEzynQqyxAZlnO7YICY/PY04OSNFa3bHxIHJqm",
|
|
51
53
|
"src/base/_variables.css": "sha384-avm/99WesRG9GYS2AKRudFn0dhVjw80XfJQ3xgs9unhMiXrD7pKkVvMJzrzu8Jw6",
|
|
52
54
|
"src/base/_view-transitions.css": "sha384-0aNEjsjVLNa3+6y7ektne0C4vgbjg4Sg1m1vY6PCB6ysRbwyqngfy/D5b+BAsYWY",
|
|
53
55
|
"src/base/command-score.js": "sha384-o8BNVjYP6YWyVnMBzMJdBanMFwhsYbp3HsBK4FSYa32A2cWTwI79hm0dBo4z+ZW0",
|
|
56
|
+
"src/base/csp.js": "sha384-ZmcebcR7weMWHMY2uW1TKYuZOfOmCTQrx4elGyD6/KVO0pDqBhBy31jhBGgqYzvp",
|
|
57
|
+
"src/base/declarations.js": "sha384-WQPqKnnq9j1dO4jLXdt8VvQGhCfCdGZ8PWyUJYYpIWrbBh/1ptzx3qxyT39GWtoo",
|
|
54
58
|
"src/base/dialog-lifecycle.js": "sha384-4Bskp0XQUtf2Rz7PIOfTnvj5MPPuyeNNdBKoDwAdub0Lo/chTQmUcLlsXXfc8+Ky",
|
|
55
59
|
"src/base/embla.js": "sha384-pO7q7M5Z7rf9D9snHCn9C9gFQ4cFerhAgoKRTTVmcM+bHTyT7kH+GXtACA7VKBBX",
|
|
56
60
|
"src/base/hotkeys.js": "sha384-THU0JbWwkM9QAVJ2BwF5rwGHOIhCPLKHxfhmixYyyCBU0eNRi9kz6VxfNGaj8D8O",
|
|
61
|
+
"src/base/kit-styling.js": "sha384-oOq6p9pg0pSoxDgkqUcaBMHi5zNyU8YTDfpNswjyG1DZcSIzdOETqBpzp9FM3FsC",
|
|
57
62
|
"src/base/navigation.js": "sha384-xXVh1k4O3prr1/76ha8ly4UWpFtGEiFMTZfCcvMNHycwDvBFfKgrjqPdVlVRLzbG",
|
|
58
63
|
"src/base/reveal.js": "sha384-RLpaipZUT7bLSK7Bfazoe2xxkwVqInKrWqCtczlpxoYxNu+l1Ei58zJnCka0vcRM",
|
|
59
64
|
"src/base/scroll-state.js": "sha384-ql6E3qGCmO5nKrmORbRCrU9bVlbIpcYvQq+zr26VZhRNHdnqNuJGH9mK0hXy1vG1",
|
|
60
65
|
"src/base/signals.js": "sha384-N4p17bKbP9wixbRP1y8qH7XQ+FGKNzyFLMd63FCDE8qz3UKRx8csEQTLGodDCRBi",
|
|
61
|
-
"src/base/style-format.js": "sha384-
|
|
66
|
+
"src/base/style-format.js": "sha384-6NPIOydUNtfLIa/gI5rnUf9Yo+SaTDoTjl+Hz14+ZfDc6UVANIR8NMyEkQt+TFdp",
|
|
62
67
|
"src/base/typeahead.js": "sha384-jh0mIkDn2KiL9y+7vBq8hPXymo+yXd0d4PG4dUHq29B3NEvOmnxinqaxTyoPWUiV",
|
|
63
|
-
"src/base/utilities.js": "sha384-
|
|
68
|
+
"src/base/utilities.js": "sha384-X9me7ObKC5SqgiB7DSax9ctuhqFj+IkV56wn+HJlPbF258WovKkM+yuZUbWj10q1",
|
|
64
69
|
"src/base/utils.js": "sha384-ViPJZ9b6onUuHHgvcn2w1CHs0WTzbRKn6HD9FfoIWFQpX+ogZ34Zzb+JWohhT4O0",
|
|
65
70
|
"src/base/zazz-element.js": "sha384-UvckAl+GPm38SPS5B/V/ont0Pe9J5wb9K98ZB8+g2rd3ddlMHu3L27Mhv5ZfsQuw",
|
|
66
|
-
"src/head.js": "sha384-
|
|
67
|
-
"src/index.css": "sha384
|
|
68
|
-
"src/index.js": "sha384-
|
|
69
|
-
"src/manifest.js": "sha384-
|
|
71
|
+
"src/head.js": "sha384-k/Jupui92uWnK1OtEEyQyrvFWNhxY2Ovw6B33oQLt33vnICoPcEZc1ntp3lhcZwt",
|
|
72
|
+
"src/index.css": "sha384-UUuaWgQmkgioQqyvBBovOKc19fUnDUNMldj5xtNynmmY/N63SMo6Hh5M5aLMLb1Z",
|
|
73
|
+
"src/index.js": "sha384-Rkyj3udA9ujzRHWq6M2fcHomkDZ1P7beyuJc78g6WRRZPwxY2y3DpuVjRCFqrAvL",
|
|
74
|
+
"src/manifest.js": "sha384-kBF65A4BshRrOitjJ+MC4UCcdurZYg/ud38gE4U3sGnibAWnttxAdhMz3K1Ym4rL",
|
|
70
75
|
"src/primitives/accordion/accordion.css": "sha384-niCbvmwjG2qRzd89jva0aF2hu4tDKHcrNVX9lC9l1+8k65qVyTFVxZPdrMuDhTNr",
|
|
71
76
|
"src/primitives/alert-dialog/alert-dialog.css": "sha384-4E+JekkG+6cMsj89lI9TSOb5w52mG8dxCncKWd19GLiUydvhCiBzBzTn2LI9CxM9",
|
|
72
77
|
"src/primitives/autocomplete/autocomplete.css": "sha384-6cOSg97IKnshQi1udOlwbwzcq7JnzqlS9QDTTiyPVwdqA60oqxeFuSqWKg3lEbri",
|
|
@@ -85,8 +90,8 @@
|
|
|
85
90
|
"src/primitives/command/command-actions.js": "sha384-C5zPTHAfE9Gkb4ZyWIlxTpmG9leKwB4EQEXLMNfpxtB3H6cWNqLHm8HMtpNPVpeA",
|
|
86
91
|
"src/primitives/command/command.css": "sha384-5gcCopYTxugPcO6PTN34TjnFTXLhGF/aLNMm9eqven/dYUTaN6nxmVRvyLEEI8SJ",
|
|
87
92
|
"src/primitives/command/command.js": "sha384-xiAyBUBhXmECFvIqZOzbAPpiRXhHr0w2Rta4Jrsj3S3ERCxqFKG4nAHdMvMC+c6X",
|
|
88
|
-
"src/primitives/debug/audit-core.js": "sha384-
|
|
89
|
-
"src/primitives/debug/debug.js": "sha384
|
|
93
|
+
"src/primitives/debug/audit-core.js": "sha384-v2Csup+JChQuCPDDBOyyk1X29HTVjL4CgpQWq4C5LB9dp4tLFtMsC1swyVESm6q2",
|
|
94
|
+
"src/primitives/debug/debug.js": "sha384-/VHFWHcr2BWtb61cw4PGZ3kGAnoCA4QDioc63i/j/Jvuoj5sqSZRAfgyJ7KJeQPD",
|
|
90
95
|
"src/primitives/dialog/dialog.css": "sha384-kzQ6y+vnhu35sVS6+aOlB/a13UuV/PW+qS+QTHQj9vieB1YdfNTfHplAYV9+zY5d",
|
|
91
96
|
"src/primitives/fields/fields.css": "sha384-6Yc2bXEG+6FNZCsMdV0U4047By8d1pgc5ICrLQGWv5ixquMv95rMojLQu8/Qzuux",
|
|
92
97
|
"src/primitives/input-group/input-group.css": "sha384-zj7Q3zetWfAvbHSMYzO+3yLuEPPqkYfeSlrF2XKK1RusiMVXSwYJ0vS1CKuLTqme",
|