@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adia-ai/web-components",
3
- "version": "0.7.26",
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, [ADR-0035](../../../.brain/adrs/0035-foundation-by-dimension-and-layer.md)).
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