@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/CHANGELOG.md +26 -0
- package/components/input/input.class.js +38 -0
- package/components/input/input.css +8 -4
- package/components/input/input.test.js +57 -0
- package/components/menu/menu.class.js +26 -5
- package/components/menu/menu.test.js +130 -0
- package/components/tree/tree.class.js +24 -4
- package/components/tree/tree.test.js +108 -0
- package/core/template.js +9 -0
- package/core/template.test.js +36 -0
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +51 -51
- package/package.json +1 -1
- package/styles/type/roles.css +5 -0
- package/styles/typography.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-components",
|
|
3
|
-
"version": "0.7.
|
|
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",
|
package/styles/type/roles.css
CHANGED
|
@@ -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.
|
package/styles/typography.css
CHANGED
|
@@ -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) */
|