@adia-ai/web-components 0.7.26 → 0.7.28
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 +38 -6
- package/components/chart/chart.a2ui.json +1 -1
- package/components/chart/chart.yaml +2 -0
- package/components/kbd/kbd.a2ui.json +4 -0
- package/components/kbd/kbd.d.ts +2 -0
- package/components/kbd/kbd.yaml +5 -0
- package/components/nav/nav.class.js +7 -0
- package/components/richtext/richtext.a2ui.json +5 -0
- package/components/richtext/richtext.css +20 -0
- package/components/richtext/richtext.d.ts +2 -0
- package/components/richtext/richtext.yaml +10 -0
- package/components/table/cell-types.js +31 -2
- package/components/table/table.a2ui.json +1 -1
- package/components/table/table.test.js +37 -0
- package/components/table/table.yaml +2 -0
- package/core/markdown.js +29 -4
- package/core/markdown.test.js +47 -0
- package/core/provider.js +17 -0
- package/dist/host.min.css +1 -1
- package/dist/host.sheet.js +1 -1
- package/dist/theme-provider.min.js +1 -1
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +64 -64
- package/dist/web-components.sheet.js +1 -1
- package/package.json +1 -1
- package/styles/README.md +1 -1
- package/styles/resets.css +15 -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.28",
|
|
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/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Consumable design-token reference for component authors.
|
|
|
8
8
|
|
|
9
9
|
## Token layers
|
|
10
10
|
|
|
11
|
-
Files are organized by **dimension × layer** (v0.6.48 reorg,
|
|
11
|
+
Files are organized by **dimension × layer** (v0.6.48 reorg, `ADR-0035`).
|
|
12
12
|
A file answers two questions: which dimension (color · type · space · size · radius · motion · elevation) and which layer (primitive → semantic → role → applied/element → attribute-API → context → reset).
|
|
13
13
|
|
|
14
14
|
| Layer | Files | When to use |
|
package/styles/resets.css
CHANGED
|
@@ -65,7 +65,6 @@ body {
|
|
|
65
65
|
|
|
66
66
|
img,
|
|
67
67
|
picture,
|
|
68
|
-
svg,
|
|
69
68
|
video,
|
|
70
69
|
canvas {
|
|
71
70
|
display: block;
|
|
@@ -73,6 +72,21 @@ canvas {
|
|
|
73
72
|
block-size: auto;
|
|
74
73
|
}
|
|
75
74
|
|
|
75
|
+
/* svg gets its own rule, WITHOUT max-inline-size/block-size — unlike
|
|
76
|
+
img/picture/video/canvas, an SVG has real spec behavior that makes that
|
|
77
|
+
pairing actively harmful: a zero-size viewport (which is exactly what
|
|
78
|
+
max-inline-size:100% computes to inside a zero-intrinsic-size ancestor —
|
|
79
|
+
the common `width:0;height:0;transform:scale(s)` pattern for a CSS-
|
|
80
|
+
scaled canvas/scene) makes the whole element NOT RENDER AT ALL, not
|
|
81
|
+
"render at 0 visual size" — a silent, hard-to-diagnose failure with no
|
|
82
|
+
console warning (consumer-reported, GH #224). Components that embed SVG
|
|
83
|
+
size it explicitly in their own scoped CSS (e.g. icon-ui sets width/
|
|
84
|
+
height on its inner svg directly) and are unaffected by this rule
|
|
85
|
+
either way. */
|
|
86
|
+
svg {
|
|
87
|
+
display: block;
|
|
88
|
+
}
|
|
89
|
+
|
|
76
90
|
/* The `ul/ol[role="list"]` semantic-list opt-out moved to
|
|
77
91
|
styles/type/elements.css (with the other element list defaults) during the
|
|
78
92
|
@layer migration — it's an element-default refinement that must win by
|