@zazz-ui/core 0.6.1 → 0.6.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 +5 -3
- package/CHANGELOG.md +46 -0
- package/README.md +5 -5
- package/dist/csp-D72qtdXZ.js +1 -0
- package/dist/sri.json +18 -15
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/editor/zazz.css-data.json +2028 -0
- package/editor/zazz.language-data.json +15 -3
- package/package.json +1 -1
- package/src/base/_reset.css +9 -17
- package/src/base/_utilities-color.css +3 -0
- package/src/base/_utilities-spacing.css +35 -0
- package/src/base/_variables.css +4 -0
- 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/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.map +1 -1
- package/src/base/utilities.js +35 -17
- package/src/base/utilities.ts +42 -20
- 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.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 +10 -1
- package/src/manifest.ts +25 -1
- package/src/primitives/badge/badge.css +61 -111
- package/src/primitives/badge/badge.html +5 -0
- package/src/primitives/button/button.css +55 -53
- package/src/primitives/button/button.html +4 -0
- package/src/primitives/callout/callout.css +35 -10
- package/src/primitives/debug/audit-core.d.ts +1 -1
- package/src/primitives/debug/audit-core.d.ts.map +1 -1
- package/src/primitives/debug/audit-core.js +35 -5
- package/src/primitives/debug/audit-core.ts +42 -4
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Authoring markup with Zazz 0.5
|
|
1
|
+
# Authoring markup with Zazz (0.5 and later)
|
|
2
2
|
|
|
3
3
|
How to write HTML for the Zazz kit: identities, presets, slots, and style utilities. This is the single source for humans, editor rules, and AI assistants. The contract behind it is `SPEC.md`; the vocabulary is `CONTEXT.md`.
|
|
4
4
|
|
|
@@ -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,7 +100,7 @@ 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 --rounded --aspect --position --overflow --overflow-x --overflow-y --z` (on any element that is not a primitive: typography roles, switches, and prose count as plain, so `data-ui="text-2xl" style="--opacity--hover: .8"` works; a primitive like a button still needs the base).
|
|
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 --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 --rounded --aspect --position --overflow --overflow-x --overflow-y --z` (on any element that is not a primitive: typography roles, switches, and prose count as plain, so `data-ui="text-2xl" style="--opacity--hover: .8"` works; a primitive like a button still needs the base). Padding keeps the base requirement on the elements the base pads (lists, definition details, and quotes inside `prose`; `code`; form controls), and `--bg` on `code` and `hr`. 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.
|
|
102
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`. 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).
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
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.6.3 (2026-10-13)
|
|
4
|
+
|
|
5
|
+
### base
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
- `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`.
|
|
9
|
+
|
|
10
|
+
- 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.
|
|
11
|
+
|
|
12
|
+
### prose
|
|
13
|
+
|
|
14
|
+
- 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.
|
|
15
|
+
|
|
16
|
+
### table
|
|
17
|
+
|
|
18
|
+
- The `size="sm"` example lists the table's own attributes (`data-table-variant`, `data-table-size`, `data-table-state`) instead of 0.4 names.
|
|
19
|
+
|
|
20
|
+
### utilities
|
|
21
|
+
|
|
22
|
+
- 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%`.
|
|
23
|
+
|
|
24
|
+
### debug
|
|
25
|
+
|
|
26
|
+
- 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.
|
|
27
|
+
|
|
28
|
+
## 0.6.2 (2026-10-12)
|
|
29
|
+
|
|
30
|
+
### base
|
|
31
|
+
|
|
32
|
+
- **BREAKING** The text-selection highlight is the `--color-selection` / `--color-selection-foreground` role pair (default: `--color-primary` / `--color-primary-foreground`), an opaque fill with its own text color. It replaces the `--selection-bg` hook on `html` (a 30% primary tint) and the `contrast-color()` text that went with it. Migration: rename `--selection-bg` to `--color-selection`, give it an opaque color, and set `--color-selection-foreground` to a text color with enough contrast on it; set both on `:root`. Shipped in a patch on purpose, as an exception to the 0.x contract (ADR-0010 makes a custom-property removal a minor): the alpha has few installs, and the selection highlight is the only thing it changes.
|
|
33
|
+
|
|
34
|
+
### button
|
|
35
|
+
|
|
36
|
+
- The info, success, warning, and destructive variants are soft: the status color at 10% alpha (20% in dark mode) as the surface, and the status hue as the text with its lightness clamped (at most 0.45 in light, at least 0.82 in dark) so it holds WCAG AA, 4.5:1, on the tint over the page or a card. A deeper tint on hover and press, no border, and the status color as the focus ring. The solid fills they replace fell below 4.5:1 with white text in light mode (info 4.1:1, success 3.8:1, warning 3.2:1). To keep a solid destructive button (white on `--color-destructive` holds 4.8:1), drop the variant and set the hooks on the button: `--ui-button-bg`, `--ui-button-bg--hover`, `--ui-button-text`, `--ui-button-text--hover`, and `--ui-button-border-color: transparent`. A variant's colors take precedence over the hooks, so the hooks do nothing alongside `data-button-variant`.
|
|
37
|
+
- `--ui-button-leading` defaults to `1` instead of `--leading-sm`. Set the hook to `var(--leading-sm)` to keep the old line height.
|
|
38
|
+
|
|
39
|
+
### badge
|
|
40
|
+
|
|
41
|
+
- The info, success, warning, and destructive variants match the buttons: the same soft status colors, no border. Destructive was solid; it now matches the other three.
|
|
42
|
+
- Badges are a little smaller: `--ui-badge-h` is `calc(var(--spacing) * 5)` (was `5.5`) and `--ui-badge-px` is `calc(var(--spacing) * 1.25)` (was `1.5`). Set the hooks back to keep the old size.
|
|
43
|
+
- The `link` variant matches the link button: plain text that turns primary on hover, with no underline and no hover offset.
|
|
44
|
+
|
|
45
|
+
### callout
|
|
46
|
+
|
|
47
|
+
- The status variants use the same soft status colors and keep their faint status border. Destructive was solid; it now matches the other three.
|
|
48
|
+
|
|
3
49
|
## 0.6.1 (2026-10-12)
|
|
4
50
|
|
|
5
51
|
### base
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Zazz is a CSS and vanilla JavaScript UI kit that does not require a build step.
|
|
|
4
4
|
|
|
5
5
|
Docs: <https://zazz.sh> (guides, a [quick start](https://zazz.sh/docs/quick-start/), and an [API reference](https://zazz.sh/api/) generated from this package's data).
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Zazz is in alpha (0.6).** The markup contract can change in any minor release before 1.0, and 0.5 and later are not compatible with 0.4; see [`CHANGELOG.md`](./CHANGELOG.md) for every breaking change and its migration note.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -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.6.
|
|
23
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.6.3/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.6.
|
|
39
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.6.3/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
|
|
|
@@ -112,7 +112,7 @@ pnpm exec playwright install chromium
|
|
|
112
112
|
|
|
113
113
|
Zazz targets the latest Chrome, Firefox, and Safari, two versions back. Features below that floor are feature-detected with a polyfill or a graceful fallback where practical. The kit leans on modern CSS (cascade layers, container style queries, subgrid, `light-dark()`), so older browsers get a degraded but functional experience rather than a pixel-perfect one.
|
|
114
114
|
|
|
115
|
-
The head loads exactly one polyfill: `invokers/interest`, for Interest Invokers (`interestfor`), which is Chromium-only and drives tooltip triggers. Everything else the kit builds on
|
|
115
|
+
The head loads exactly one polyfill: `invokers/interest`, for Interest Invokers (`interestfor`), which is Chromium-only and drives tooltip triggers. Everything else the kit builds on (the Popover API, Invoker Commands, native `<dialog>`, `<details>`) is native across the floor. One gap gets a fallback instead of a polyfill: Safari supports `<dialog closedby>` but not its `any` value, so the dialog script closes a `closedby="any"` dialog on a backdrop tap there. CSS anchor positioning is below the floor and is gated behind `@supports` with a UA-centered fallback.
|
|
116
116
|
|
|
117
117
|
## Package layout
|
|
118
118
|
|
|
@@ -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,7 +1,8 @@
|
|
|
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-Q2miFrNB19E6uyt47uCoCJ7hsm/bQwuQIAxsxcLfS3CUKjujQblRr/Mn3SIDdk/G",
|
|
5
|
+
"dist/zazz.js": "sha384-OVNmmMvhtHgQnaG3zE0RFjiAKpQzHB8Z5JrnFYpC7BY2IALpKkmLKrPxnM0zaHog",
|
|
5
6
|
"src/base/_breakpoints.css": "sha384-vsvdoL+ZjTa5gyCiMp4DlNIbr9rxkLqfQjZ+W3YTp2Apuuu+1/Dd68ACtcBOip3v",
|
|
6
7
|
"src/base/_layers.css": "sha384-5DNbucvN9usFbR5WoM9jF0TkR+sHzIxz3IMOWIWIRSe46yec/ZNTk3OE/OKSdLJZ",
|
|
7
8
|
"src/base/_properties-2xl.css": "sha384-ujcxDY2g7vn7bEsK5mzgQdZbBVTNSHdEAy3VmuB+7WErrZpyAG2bF1tcGwfVGodM",
|
|
@@ -20,18 +21,18 @@
|
|
|
20
21
|
"src/base/_properties-stuck.css": "sha384-/su2OhTygGTODEX4a7bHW+UQaoBbAg/OLZ2GJewPwywLAvPBBc7fgPu0Bkj01+6T",
|
|
21
22
|
"src/base/_properties-xl.css": "sha384-phoaLWHnnCTvIEJeHAW40CAM/koin8EbDApNo22U8q0z32uoHeRSwH2CDhuWiHB/",
|
|
22
23
|
"src/base/_properties.css": "sha384-u0dJNC0jQX2vOvNT78gNpbNHWDZ4Mwx9E8wh1RnAWyqrja2Xxi0cZ/VWuo0kjGrU",
|
|
23
|
-
"src/base/_reset.css": "sha384-
|
|
24
|
+
"src/base/_reset.css": "sha384-yy3858X2KRndBB3iVxs7AWpDjDcX3YZr3X5rtRTR95cX35+joh5bdTHL2ONB2X5e",
|
|
24
25
|
"src/base/_switches.css": "sha384-sGwuSg/A2io3VXsZDzLtawKjhcH2fg0NkvIejLCx4kGsM5QQXZmLyoWz+MvPWlCH",
|
|
25
26
|
"src/base/_typography.css": "sha384-dK5YewnVGNuq8EZk7fAC9IweAn/f9VmumHMA8VZQ2KLX4LrxbwWm34bcny1vhinp",
|
|
26
27
|
"src/base/_utilities-box.css": "sha384-eodP3OPkvsLqO1k73C2cw8twdBTvQ9CeniCKaLHx8fsd7aichCo7q6MMjUEk31lV",
|
|
27
|
-
"src/base/_utilities-color.css": "sha384-
|
|
28
|
+
"src/base/_utilities-color.css": "sha384-tbnMqoJ1No4++0p1pR/phrm2xEi4yQQF6x+npZg2VI73TMp3AFzxHOc5PGc8u43I",
|
|
28
29
|
"src/base/_utilities-effects.css": "sha384-177SZuIjerKzjRm55TNC367WZyQko178GhRJ215zF5tLdaf9iDcEa81P+7ERsuEl",
|
|
29
30
|
"src/base/_utilities-flow.css": "sha384-BlwUSqFVprXc35vx1UcvOWbGQtqHnwF75UJcZx1i3AlvmWIqG1O/qQbb0/jzqZvb",
|
|
30
31
|
"src/base/_utilities-grid.css": "sha384-olDDAJ+/98k23nn5tr3Zvtkug6cco29ag+NO08tYsuY9v6p3WywAoSWsWp3ZIDHB",
|
|
31
32
|
"src/base/_utilities-margin.css": "sha384-zwIwNsFcu8iT8w6LDBO87O9RBsbS2y9FrL28balsQkbSoeRHzBJKRPOJ9lutwnd+",
|
|
32
33
|
"src/base/_utilities-pseudo.css": "sha384-pF6gvBFbBeFwbRUa69ITVGGFcuHFH9BT7CCqz6Qk9QaqtSqSIWWP4gcIhiXsHo0s",
|
|
33
34
|
"src/base/_utilities-sizing.css": "sha384-o02E3yKMIN2hs5Zwdk8RpLGRcbwtr0crpbw8FJTiPAz5j7uCcWc7VrwVFpSLl4Ol",
|
|
34
|
-
"src/base/_utilities-spacing.css": "sha384-
|
|
35
|
+
"src/base/_utilities-spacing.css": "sha384-a2OnviSMJ/relsO2I7NFMH0iitwZpcsti4JgRvUwJvhyauYMdIEqA88/ns/BEqhE",
|
|
35
36
|
"src/base/_utilities-tier-2xl.css": "sha384-i3RQ9fX2O9mbRpQQYMXaQTcG24qP0GF+iauHFOhKSn4SViOPuVjQjFcUTbYVM6XB",
|
|
36
37
|
"src/base/_utilities-tier-active.css": "sha384-2oeI+ScrGheDb7maYoJ5aCK6ktNl6xN6UsDkXOuAkyh2UZpLr2sPsbc4WAjLhACL",
|
|
37
38
|
"src/base/_utilities-tier-checked.css": "sha384-63+JQpCB9Ljiz8fZvGpfqvWb0EL+RMfjbA6lwzNLZlYfwKuqqOFsQ0xHfyLLzSKL",
|
|
@@ -48,9 +49,11 @@
|
|
|
48
49
|
"src/base/_utilities-tier-stuck.css": "sha384-C2V8xg0LSv5F8eQ/s7HuniKgGgehObFZ/BelfVAdAg0bKmrZ3vQPVZ3Gs/FyBMnx",
|
|
49
50
|
"src/base/_utilities-tier-xl.css": "sha384-N5Cm3O4tdycFHd8qGTFSThflShEfPNDSiGN11OraCfnTbGKVtgHCXWuvmalAe6kX",
|
|
50
51
|
"src/base/_utilities-typography.css": "sha384-Qea11V9YQlDGC/5NOHPSWvlNuQJEz/EFCQtvwVRoa2AN/LdlFoy2DqEF9VgjdfZz",
|
|
51
|
-
"src/base/_variables.css": "sha384-
|
|
52
|
+
"src/base/_variables.css": "sha384-avm/99WesRG9GYS2AKRudFn0dhVjw80XfJQ3xgs9unhMiXrD7pKkVvMJzrzu8Jw6",
|
|
52
53
|
"src/base/_view-transitions.css": "sha384-0aNEjsjVLNa3+6y7ektne0C4vgbjg4Sg1m1vY6PCB6ysRbwyqngfy/D5b+BAsYWY",
|
|
53
54
|
"src/base/command-score.js": "sha384-o8BNVjYP6YWyVnMBzMJdBanMFwhsYbp3HsBK4FSYa32A2cWTwI79hm0dBo4z+ZW0",
|
|
55
|
+
"src/base/csp.js": "sha384-ZmcebcR7weMWHMY2uW1TKYuZOfOmCTQrx4elGyD6/KVO0pDqBhBy31jhBGgqYzvp",
|
|
56
|
+
"src/base/declarations.js": "sha384-WQPqKnnq9j1dO4jLXdt8VvQGhCfCdGZ8PWyUJYYpIWrbBh/1ptzx3qxyT39GWtoo",
|
|
54
57
|
"src/base/dialog-lifecycle.js": "sha384-4Bskp0XQUtf2Rz7PIOfTnvj5MPPuyeNNdBKoDwAdub0Lo/chTQmUcLlsXXfc8+Ky",
|
|
55
58
|
"src/base/embla.js": "sha384-pO7q7M5Z7rf9D9snHCn9C9gFQ4cFerhAgoKRTTVmcM+bHTyT7kH+GXtACA7VKBBX",
|
|
56
59
|
"src/base/hotkeys.js": "sha384-THU0JbWwkM9QAVJ2BwF5rwGHOIhCPLKHxfhmixYyyCBU0eNRi9kz6VxfNGaj8D8O",
|
|
@@ -58,23 +61,23 @@
|
|
|
58
61
|
"src/base/reveal.js": "sha384-RLpaipZUT7bLSK7Bfazoe2xxkwVqInKrWqCtczlpxoYxNu+l1Ei58zJnCka0vcRM",
|
|
59
62
|
"src/base/scroll-state.js": "sha384-ql6E3qGCmO5nKrmORbRCrU9bVlbIpcYvQq+zr26VZhRNHdnqNuJGH9mK0hXy1vG1",
|
|
60
63
|
"src/base/signals.js": "sha384-N4p17bKbP9wixbRP1y8qH7XQ+FGKNzyFLMd63FCDE8qz3UKRx8csEQTLGodDCRBi",
|
|
61
|
-
"src/base/style-format.js": "sha384-
|
|
64
|
+
"src/base/style-format.js": "sha384-6NPIOydUNtfLIa/gI5rnUf9Yo+SaTDoTjl+Hz14+ZfDc6UVANIR8NMyEkQt+TFdp",
|
|
62
65
|
"src/base/typeahead.js": "sha384-jh0mIkDn2KiL9y+7vBq8hPXymo+yXd0d4PG4dUHq29B3NEvOmnxinqaxTyoPWUiV",
|
|
63
|
-
"src/base/utilities.js": "sha384-
|
|
66
|
+
"src/base/utilities.js": "sha384-F9nFIwaGgal2zXDc9jH9nhia1X610Z+z2BcqkOnCLXsLQ7naj4z8ReQMErvnoVn7",
|
|
64
67
|
"src/base/utils.js": "sha384-ViPJZ9b6onUuHHgvcn2w1CHs0WTzbRKn6HD9FfoIWFQpX+ogZ34Zzb+JWohhT4O0",
|
|
65
68
|
"src/base/zazz-element.js": "sha384-UvckAl+GPm38SPS5B/V/ont0Pe9J5wb9K98ZB8+g2rd3ddlMHu3L27Mhv5ZfsQuw",
|
|
66
|
-
"src/head.js": "sha384-
|
|
69
|
+
"src/head.js": "sha384-k/Jupui92uWnK1OtEEyQyrvFWNhxY2Ovw6B33oQLt33vnICoPcEZc1ntp3lhcZwt",
|
|
67
70
|
"src/index.css": "sha384-+mDQ5NdzGbLhYNmD2tdksW0nMwpQLj3Nsezi/eAYfQb7HigvwaTJxlEbRVItkZkj",
|
|
68
|
-
"src/index.js": "sha384-
|
|
69
|
-
"src/manifest.js": "sha384-
|
|
71
|
+
"src/index.js": "sha384-Rkyj3udA9ujzRHWq6M2fcHomkDZ1P7beyuJc78g6WRRZPwxY2y3DpuVjRCFqrAvL",
|
|
72
|
+
"src/manifest.js": "sha384-1EW3BRu59FBTaiB8moJ5dOGOXirNjBoA5LWR8adWbpDoPkROwSVsARqaJAdrBjIM",
|
|
70
73
|
"src/primitives/accordion/accordion.css": "sha384-niCbvmwjG2qRzd89jva0aF2hu4tDKHcrNVX9lC9l1+8k65qVyTFVxZPdrMuDhTNr",
|
|
71
74
|
"src/primitives/alert-dialog/alert-dialog.css": "sha384-4E+JekkG+6cMsj89lI9TSOb5w52mG8dxCncKWd19GLiUydvhCiBzBzTn2LI9CxM9",
|
|
72
75
|
"src/primitives/autocomplete/autocomplete.css": "sha384-6cOSg97IKnshQi1udOlwbwzcq7JnzqlS9QDTTiyPVwdqA60oqxeFuSqWKg3lEbri",
|
|
73
76
|
"src/primitives/autocomplete/autocomplete.js": "sha384-WI2uVoam+LtX3ze2XI9XEQIlLULGg/I1hVlb54zGKcgEiYIjtNcmNO69Age4SmuV",
|
|
74
|
-
"src/primitives/badge/badge.css": "sha384-
|
|
77
|
+
"src/primitives/badge/badge.css": "sha384-E7X4QaidUQ6m/LVRfdFLKJDefbKqX2EWb6wdaVx9qb13oWKNejn7TK1kMvTrPhQO",
|
|
75
78
|
"src/primitives/button-group/button-group.css": "sha384-zELHeHhwdftZ7Rm6i5ttYJZSNOnI62pFul+mG1ICCKlkBGtBRi4UmpZUiHvRnsnV",
|
|
76
|
-
"src/primitives/button/button.css": "sha384-
|
|
77
|
-
"src/primitives/callout/callout.css": "sha384-
|
|
79
|
+
"src/primitives/button/button.css": "sha384-k1C8x3wdX13bkC55kFe9pDiSIUMa21l7qdWp8iGhHY/F3KVb+LxG1r0rkv12wFfD",
|
|
80
|
+
"src/primitives/callout/callout.css": "sha384-Ki2VvC4a/DqBs3VrpDObZRf8TzsbF4BTG/1WTP7X51WzIRVWJXGJKXZK6X6GVMIa",
|
|
78
81
|
"src/primitives/card/card.css": "sha384-VJYsOOkus0R1N8s4NjlGf9wX7Tql6hs8tSCv7wpY4baT9ANTv3R6MJXYo8vuTXNB",
|
|
79
82
|
"src/primitives/carousel/carousel.css": "sha384-6nLbkvD1z68YFv7MUsFoVOUbd9qdL05J/gbBpKVhURS67wXvgDCwfnjJG9scsR3S",
|
|
80
83
|
"src/primitives/carousel/carousel.js": "sha384-1CD4+KGm/93D3ZTAXc16NYIoC15M/nFeSHuAJdHQAoVU1bCx6Mn5JsITdEg4VEqH",
|
|
@@ -85,7 +88,7 @@
|
|
|
85
88
|
"src/primitives/command/command-actions.js": "sha384-C5zPTHAfE9Gkb4ZyWIlxTpmG9leKwB4EQEXLMNfpxtB3H6cWNqLHm8HMtpNPVpeA",
|
|
86
89
|
"src/primitives/command/command.css": "sha384-5gcCopYTxugPcO6PTN34TjnFTXLhGF/aLNMm9eqven/dYUTaN6nxmVRvyLEEI8SJ",
|
|
87
90
|
"src/primitives/command/command.js": "sha384-xiAyBUBhXmECFvIqZOzbAPpiRXhHr0w2Rta4Jrsj3S3ERCxqFKG4nAHdMvMC+c6X",
|
|
88
|
-
"src/primitives/debug/audit-core.js": "sha384-
|
|
91
|
+
"src/primitives/debug/audit-core.js": "sha384-JA0QzwKsxkmpa8ml6PKL0fnH2OEtN6RaLRS6pINWGoY3uuXV5XlaJA0ws7+ZOyz7",
|
|
89
92
|
"src/primitives/debug/debug.js": "sha384-KOYilAR4FcZ5rTiOJGu9VEaWl3VfpJusELTJBAirSUmGdTjo86t3+mzgIY1J4c2w",
|
|
90
93
|
"src/primitives/dialog/dialog.css": "sha384-kzQ6y+vnhu35sVS6+aOlB/a13UuV/PW+qS+QTHQj9vieB1YdfNTfHplAYV9+zY5d",
|
|
91
94
|
"src/primitives/fields/fields.css": "sha384-6Yc2bXEG+6FNZCsMdV0U4047By8d1pgc5ICrLQGWv5ixquMv95rMojLQu8/Qzuux",
|