@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.
Files changed (34) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/components/card/card.css +25 -2
  3. package/components/chart/chart.a2ui.json +1 -1
  4. package/components/chart/chart.d.ts +1 -1
  5. package/components/chart/chart.yaml +6 -3
  6. package/components/link/link.css +3 -2
  7. package/components/richtext/richtext.css +2 -2
  8. package/components/table/table.a2ui.json +5 -2
  9. package/components/table/table.class.js +36 -1
  10. package/components/table/table.d.ts +2 -2
  11. package/components/table/table.yaml +17 -1
  12. package/components/table-footer/table-footer.a2ui.json +20 -2
  13. package/components/table-footer/table-footer.class.js +94 -8
  14. package/components/table-footer/table-footer.d.ts +6 -2
  15. package/components/table-footer/table-footer.yaml +57 -6
  16. package/components/table-toolbar/table-toolbar.a2ui.json +25 -2
  17. package/components/table-toolbar/table-toolbar.class.js +47 -2
  18. package/components/table-toolbar/table-toolbar.css +6 -2
  19. package/components/table-toolbar/table-toolbar.d.ts +8 -2
  20. package/components/table-toolbar/table-toolbar.examples.md +6 -4
  21. package/components/table-toolbar/table-toolbar.yaml +83 -9
  22. package/custom-elements.json +43 -5
  23. package/dist/host.min.css +1 -1
  24. package/dist/host.sheet.js +1 -1
  25. package/dist/theme-provider.min.js +8 -8
  26. package/dist/themes.min.css +1 -1
  27. package/dist/themes.sheet.js +1 -1
  28. package/dist/web-components.min.css +1 -1
  29. package/dist/web-components.min.js +49 -49
  30. package/dist/web-components.sheet.js +1 -1
  31. package/package.json +1 -1
  32. package/styles/colors/material-static.css +34 -12
  33. package/styles/themes.css +2676 -0
  34. 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.47",
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, and every semantic role above that
32
- reads `var(--md-sys-color-{family}-NNN)` re-resolves through it at
33
- each descendant, by ordinary CSS custom-property inheritance (not
34
- fixed to its :root declaration site). Verified two ways: the cascade
35
- mechanics above, and empirically (Playwright, file:// harness) —
36
- `--md-sys-color-primary-600` measured `oklch(0.5493 0.1051 226.08)`
37
- at :root vs `oklch(0.5493 0.0946 216.96)` under `[theme="atlas"]`,
38
- the atlas-rotated hue, not the default. info/success/warning/danger
39
- are correctly left unthemed (deliberate status meaning stays
40
- constant across themes, themes.css's own header). Only
41
- `--a-brand-hue`/`-radius-k`/`-density`/`-shadow-intensity` were ever
42
- the OTHER stated-live knobs; that part of the original claim stands.
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