@taprootio/espalier 3.2.0 → 3.4.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 +42 -0
- package/custom-elements.json +4475 -3579
- package/dist/action-menu/esp-action-menu-item.d.ts +2 -1
- package/dist/action-menu/esp-action-menu-item.js +1 -1
- package/dist/action-menu/esp-action-menu.js +1 -1
- package/dist/button/esp-button-group.js +1 -1
- package/dist/cli/espalier.js +2 -0
- package/dist/cli/theme-check.js +2 -0
- package/dist/form/esp-form.d.ts +2 -2
- package/dist/form/esp-form.js +1 -1
- package/dist/header/esp-header-button.d.ts +1 -0
- package/dist/header/esp-header-button.js +2 -2
- package/dist/icons/icon-sprite.generated.d.ts +17 -0
- package/dist/icons/icon-sprite.generated.js +702 -0
- package/dist/icons/index.d.ts +40 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/pickers/esp-picker-item.js +3 -3
- package/dist/popover/esp-popover.js +2 -2
- package/dist/root/esp-root.d.ts +16 -0
- package/dist/root/helpers/compute-theme-properties.js +1 -1
- package/dist/root/helpers/data-companion-properties.js +1 -0
- package/dist/shared/document-sprite.js +1 -0
- package/dist/shared/esp-element-base.d.ts +1 -0
- package/dist/shared/esp-element-base.js +2 -2
- package/dist/shared/intent-values.d.ts +29 -0
- package/dist/shared/intent-values.js +1 -1
- package/dist/shared/theme-fit-report.d.ts +94 -4
- package/dist/shared/theme-fit-report.js +1 -1
- package/dist/shared/theme-swatches.d.ts +79 -0
- package/dist/shared/theme-swatches.js +1 -0
- package/dist/shared/theme.d.ts +36 -0
- package/dist/shared/theme.js +1 -1
- package/dist/shared/unsafe-keys.js +1 -0
- package/espalier.token-manifest.json +80 -0
- package/licenses/asset-provenance.json +9 -7
- package/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
# 3.4.0
|
|
2
|
+
|
|
3
|
+
An offline story for icons: a fully self-contained page renders
|
|
4
|
+
Espalier icons with zero network requests.
|
|
5
|
+
|
|
6
|
+
- `import { installIconSprite } from "@taprootio/espalier/icons"` —
|
|
7
|
+
inline the sprite once (idempotent) and point the root at it:
|
|
8
|
+
`icon-sprite-url="#esp-icons"`.
|
|
9
|
+
- The same-document form works for any inline sprite, including your
|
|
10
|
+
own: `<svg id="brand-icons"><symbol id="…">` +
|
|
11
|
+
`icon-sprite-url="#brand-icons"`. Components adopt exactly the
|
|
12
|
+
symbols they reference into their shadow roots; light-DOM
|
|
13
|
+
`<use href="#id">` resolves against the document directly.
|
|
14
|
+
- Behavior note: a fragment-only `icon-sprite-url` previously disabled
|
|
15
|
+
icons; it now selects same-document mode.
|
|
16
|
+
|
|
17
|
+
# 3.3.0
|
|
18
|
+
|
|
19
|
+
Theme QA: the fit report as a lint over every surface a themed site
|
|
20
|
+
has, a CLI that makes fit tables reviewable, and swatch intake.
|
|
21
|
+
|
|
22
|
+
- `themeFitReportSuite(lightPartial, darkPartial)`: root plus every
|
|
23
|
+
context, both schemes, compiled through the exact zone path a
|
|
24
|
+
`context` attribute uses (`resolveContextTheme`, now exported), with
|
|
25
|
+
cross-token lints — action/canvas separation and link/hover ordering.
|
|
26
|
+
- `npx espalier theme check ./theme.json` — validate a pair, print the
|
|
27
|
+
suite, and gate CI on committed fit tables (`--expect`, non-zero on
|
|
28
|
+
drift; refresh deliberately with `--update-expect`).
|
|
29
|
+
- The action-surface placement steps past stops indistinguishable from
|
|
30
|
+
the local canvas whenever a separated stop can carry the ink.
|
|
31
|
+
- Context declarations accept `semanticMappings` to correct inherited
|
|
32
|
+
root-level pins; the fit report marks pins `declared` / `inherited`.
|
|
33
|
+
- New data companions per surface: `--esp-color-series-N-wash` (the
|
|
34
|
+
documented 75% OKLab fill mix, baked against the local background)
|
|
35
|
+
and `--esp-color-series-N-ink` (text-tier contrast).
|
|
36
|
+
- `themeFromSwatches` / `deriveLightnessRamp`: brand book in,
|
|
37
|
+
reviewable paired theme starter out (names normalized to anchor
|
|
38
|
+
slugs).
|
|
39
|
+
- Fix: `linkHover` is enforced against `linkHoverBg`, the wash hovered
|
|
40
|
+
links actually paint on. Values move only where hover was under tier
|
|
41
|
+
on its rendered wash.
|
|
42
|
+
|
|
1
43
|
# 3.2.0
|
|
2
44
|
|
|
3
45
|
Website-tier layout: the pieces a real marketing page proved were
|