@taprootio/espalier 2.20.0 → 3.0.1
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 +29 -0
- package/custom-elements.json +17746 -14702
- package/dist/badge/esp-badge.d.ts +7 -6
- package/dist/badge/esp-badge.js +6 -6
- package/dist/box/esp-box.d.ts +5 -5
- package/dist/button/esp-button.d.ts +6 -12
- package/dist/button/esp-button.js +3 -3
- package/dist/date-picker/esp-date-picker.js +2 -2
- package/dist/details/esp-details-group.d.ts +0 -13
- package/dist/details/esp-details.d.ts +9 -9
- package/dist/dialog/esp-dialog.d.ts +4 -4
- package/dist/empty-state/esp-empty-state.d.ts +1 -1
- package/dist/form/esp-form.d.ts +5 -5
- package/dist/grid/esp-grid.d.ts +8 -8
- package/dist/info/esp-info.d.ts +6 -4
- package/dist/info/esp-info.js +15 -15
- package/dist/input/esp-input.d.ts +5 -3
- package/dist/lightbox/esp-lightbox.js +1 -1
- package/dist/pickers/esp-picker-menu.d.ts +1 -0
- package/dist/pickers/esp-picker-menu.js +6 -6
- package/dist/progress/esp-progress.d.ts +24 -24
- package/dist/repeater/esp-repeater.d.ts +0 -3
- package/dist/root/helpers/compute-theme-properties.js +1 -1
- package/dist/root/helpers/lightness-ramp-properties.js +1 -0
- package/dist/shared/bus-events.d.ts +2 -2
- package/dist/shared/esp-element-base.d.ts +33 -15
- package/dist/shared/esp-element-base.js +2 -2
- package/dist/shared/style-fragments.js +39 -9
- package/dist/shared/theme.d.ts +4 -15
- package/dist/shared/theme.js +1 -1
- package/dist/shared/toast-events.d.ts +6 -5
- package/dist/status-indicator/esp-status-indicator.d.ts +13 -12
- package/dist/status-indicator/esp-status-indicator.js +7 -7
- package/dist/tabs/esp-tab-group.d.ts +8 -6
- package/dist/textarea/esp-textarea.d.ts +5 -4
- package/dist/toaster/esp-toaster.d.ts +9 -9
- package/dist/toaster/esp-toaster.js +3 -3
- package/dist/tree/esp-tree.js +2 -2
- package/package.json +5 -1
- package/dist/shared/esp-intent-element-base.d.ts +0 -10
- package/dist/shared/esp-intent-element-base.js +0 -31
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,35 @@ here. This file ships in the published npm package. It is a curated public
|
|
|
5
5
|
record and intentionally does not mirror the private `taproot-controls`
|
|
6
6
|
development history.
|
|
7
7
|
|
|
8
|
+
## 3.0.0 — Intent and context replace the variant attribute
|
|
9
|
+
|
|
10
|
+
- Remove the `variant` attribute. Its two jobs are now separate attributes:
|
|
11
|
+
`intent` (`neutral`, `success`, `warning`, `danger`, `info`) states what an
|
|
12
|
+
element means, and `context` selects a theme-defined zone that re-emits the
|
|
13
|
+
complete, contrast-enforced semantic token table for its subtree.
|
|
14
|
+
- Rename status values mechanically (`variant="danger"` becomes
|
|
15
|
+
`intent="danger"`; `variant="primary"` is deleted). Geometric values
|
|
16
|
+
(`complementary`, `triadic-left`, and the rest) have no rename: express each
|
|
17
|
+
usage as a named theme context. A leftover `variant` attribute is inert;
|
|
18
|
+
unknown `intent` values warn once and render as `neutral`, with the
|
|
19
|
+
attribute reflecting the normalized value, and removing the attribute
|
|
20
|
+
restores the element's own default intent.
|
|
21
|
+
- Pin the filled-action pair on token-emitting controls to the intent's
|
|
22
|
+
family — fixed status hues for danger/success/warning, the complementary
|
|
23
|
+
family for info — derived over the governing context's theme with APCA
|
|
24
|
+
contrast enforced. Intents never repaint the surrounding zone.
|
|
25
|
+
- Replace the `EspalierVariant` type with `EspalierIntentVariant` and
|
|
26
|
+
`ToastConfig.variant` with `ToastConfig.intent`.
|
|
27
|
+
- Remove the protected variant hooks from `EspalierElementBase`:
|
|
28
|
+
`variantBacker` becomes `intentBacker`, `applyVariantTokens()` becomes
|
|
29
|
+
`applyScopedColorTokens()`, and `getVariantColorSource()` is gone;
|
|
30
|
+
class-styled chrome opts out of inline emission with
|
|
31
|
+
`intentEmitsTokens = false`.
|
|
32
|
+
- Change `esp-info`'s default appearance: instead of re-seeding inline tokens
|
|
33
|
+
from the complementary family it renders a class-based informational surface
|
|
34
|
+
themeable via the `--esp-info-*` custom properties, and toasts without an
|
|
35
|
+
explicit intent render that same treatment.
|
|
36
|
+
|
|
8
37
|
## 2.14.0 — Stable workspace resizing and trailing-edge controls
|
|
9
38
|
|
|
10
39
|
- Yield a safely linked navigation rail after auxiliary panes contract and
|