@adia-ai/web-components 0.8.47 → 0.8.48
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 +34 -0
- package/components/card/card.css +25 -2
- package/components/chart/chart.a2ui.json +1 -1
- package/components/chart/chart.d.ts +1 -1
- package/components/chart/chart.yaml +6 -3
- package/components/link/link.css +3 -2
- package/components/richtext/richtext.css +2 -2
- package/components/table/table.a2ui.json +5 -2
- package/components/table/table.class.js +36 -1
- package/components/table/table.d.ts +2 -2
- package/components/table/table.yaml +17 -1
- package/components/table-footer/table-footer.a2ui.json +20 -2
- package/components/table-footer/table-footer.class.js +94 -8
- package/components/table-footer/table-footer.d.ts +6 -2
- package/components/table-footer/table-footer.yaml +57 -6
- package/components/table-toolbar/table-toolbar.a2ui.json +25 -2
- package/components/table-toolbar/table-toolbar.class.js +47 -2
- package/components/table-toolbar/table-toolbar.css +6 -2
- package/components/table-toolbar/table-toolbar.d.ts +8 -2
- package/components/table-toolbar/table-toolbar.examples.md +6 -4
- package/components/table-toolbar/table-toolbar.yaml +83 -9
- package/custom-elements.json +43 -5
- package/dist/host.min.css +1 -1
- package/dist/host.sheet.js +1 -1
- package/dist/theme-provider.min.js +8 -8
- package/dist/themes.min.css +1 -1
- package/dist/themes.sheet.js +1 -1
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +49 -49
- package/dist/web-components.sheet.js +1 -1
- package/package.json +1 -1
- package/styles/colors/material-static.css +34 -12
- package/styles/themes.css +2676 -0
- package/styles/type/elements.css +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.48",
|
|
4
4
|
"description": "AdiaUI web components \u2014 vanilla custom elements. A2UI runtime (renderer, registry, streams, wiring) lives in @adia-ai/a2ui.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -28,18 +28,40 @@
|
|
|
28
28
|
(host.css) puts `context` (where [theme="x"] rules live) after
|
|
29
29
|
`tokens` (this file's :root block) in the cascade-layer order, and
|
|
30
30
|
layer order always wins over selector specificity — so a themed
|
|
31
|
-
ancestor's raw-stop override wins
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
ancestor's raw-stop override wins there. Verified empirically
|
|
32
|
+
(Playwright, file:// harness) — `--md-sys-color-primary-600` measured
|
|
33
|
+
`oklch(0.5493 0.1051 226.08)` at :root vs `oklch(0.5493 0.0946
|
|
34
|
+
216.96)` under `[theme="atlas"]`, the atlas-rotated hue, not the
|
|
35
|
+
default.
|
|
36
|
+
|
|
37
|
+
CORRECTION #2 (gh#1863, 2026-08-22) — the "every semantic role...
|
|
38
|
+
re-resolves through it at each descendant, by ordinary CSS
|
|
39
|
+
custom-property inheritance" claim directly above was WRONG for a
|
|
40
|
+
descendant-scoped `[theme]` and has been removed; the raw-stop
|
|
41
|
+
measurement above never actually tested an alias. Per CSS
|
|
42
|
+
custom-property semantics, `var()` inside a property's value
|
|
43
|
+
substitutes at computed-value time on the element where THAT property
|
|
44
|
+
is declared — every alias in this file is declared once, at `:root`,
|
|
45
|
+
so it substitutes using `:root`'s own raw stops and that computed
|
|
46
|
+
value is what inherits downward as a plain value, not a live
|
|
47
|
+
reference. `[theme]` on `:root`/`<html>` itself works (root is also
|
|
48
|
+
the alias's declaration site, so the raw-stop override and the alias
|
|
49
|
+
substitution happen at the same element) — but `[theme]` on a
|
|
50
|
+
DESCENDANT (the documented, shipped `<theme-provider theme="X">`
|
|
51
|
+
nested-scoping shape, components/theme-provider/) only rotates the
|
|
52
|
+
raw stop there; every alias stayed pinned to the default theme,
|
|
53
|
+
silently, because no rule redeclares the alias itself at that
|
|
54
|
+
descendant. Confirmed both ways (Playwright, file:// harness,
|
|
55
|
+
`--md-sys-color-primary` vs `-primary-600` under root- and
|
|
56
|
+
descendant-scoped `[theme="atlas"]`) and closed by generating a
|
|
57
|
+
themed redeclaration of every alias into each of themes.css's 12
|
|
58
|
+
`[theme="X"]` blocks (`scripts/build/generate-theme-aliases.mjs`,
|
|
59
|
+
`npm run check:theme-scoped-alias` — the regression gate).
|
|
60
|
+
info/success/warning/danger are correctly left unthemed (deliberate —
|
|
61
|
+
status meaning stays constant across themes, themes.css's own
|
|
62
|
+
header). Only `--a-brand-hue`/`-radius-k`/`-density`/
|
|
63
|
+
`-shadow-intensity` were ever the OTHER stated-live knobs; that part
|
|
64
|
+
of the original 2026-07-14 claim stands.
|
|
43
65
|
|
|
44
66
|
NOT touched by this replacement: `--a-brand-*` (no adia.css palette
|
|
45
67
|
to source from), `--a-link*`/`--a-focus-*`/`--a-data-*` (no direct
|