@adia-ai/web-components 0.7.0 → 0.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adia-ai/web-components",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "AdiaUI web components \u2014 vanilla custom elements. A2UI runtime (renderer, registry, streams, wiring) lives in @adia-ai/a2ui-runtime.",
5
5
  "type": "module",
6
6
  "types": "./index.d.ts",
@@ -6,6 +6,10 @@
6
6
  type/elements.css) — safe because [variant] is (0,1,0) and native
7
7
  element defaults are :where() (0,0,0); specificity decides, not order. */
8
8
 
9
+ /* Role tokens → `tokens` layer — completes the tokens layer the @layer migration
10
+ deferred (ADR-0038). Behavior-neutral: each token is declared once, so layer
11
+ assignment can't change resolution. */
12
+ @layer tokens {
9
13
  :root {
10
14
  /* ═══════════════════════════════════════════════════════════
11
15
  L3 ROLES — 13 roles across 6 jobs
@@ -246,6 +250,7 @@
246
250
  + expressive hero + standard body.
247
251
  ═══════════════════════════════════════════════════════════ */
248
252
  }
253
+ } /* @layer tokens — role tokens */
249
254
 
250
255
  /* ═══════════════════════════════════════════════════════════
251
256
  VARIANT ATTRIBUTE — applies typography roles to any element.
@@ -58,7 +58,7 @@
58
58
  api/{text,layout}.css (v0.6.48 foundation reorg, ADR-0035). The imports
59
59
  below reproduce the historical cascade order exactly. */
60
60
 
61
- @import "./type/scale.css"; /* L1/L2 — families, weights, leading, tracking */
61
+ @import "./type/scale.css" layer(tokens); /* L1/L2 — families, weights, leading, tracking → tokens layer (ADR-0038) */
62
62
  @import "./type/roles.css"; /* L3 — 13 roles + h1-h6 + [variant] */
63
63
  @import "./type/elements.css" layer(elements); /* native element defaults → elements layer (ADR-0038 step 4) */
64
64
  @import "./api/text.css" layer(utilities); /* [text-align][weight][color][transform][truncate] → utilities (ADR-0038 step 6) */