@adia-ai/web-components 0.7.4 → 0.7.5

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.4",
3
+ "version": "0.7.5",
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",
@@ -55,8 +55,15 @@
55
55
  font-weight: var(--a-weight);
56
56
  } /* 700 */
57
57
 
58
- /* Text color */
59
- [color] {
58
+ /* Text color. button-ui is EXCLUDED: it re-purposes [color] as a semantic
59
+ FILL (color="danger|info|success|warning" → colored background + contrasting
60
+ label via its own --button-fg, since the variant="danger"→color="danger"
61
+ migration). Without the exclusion this utility (utilities layer > components)
62
+ overrides the button's label color to the fill hue → invisible text on the
63
+ fill. button-ui is the only filled control that does this and is NOT among
64
+ the color honorings (cascade-component-attr-sweep.mjs). `:where(button-ui)`
65
+ keeps specificity at (0,1,0) so the real text honorings are unaffected. */
66
+ [color]:not(:where(button-ui)) {
60
67
  color: var(--a-fg);
61
68
  }
62
69
  [color="text"] {