@adia-ai/a2ui-corpus 0.6.17 → 0.6.18

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog — @adia-ai/a2ui-corpus
2
2
 
3
+ ## [0.6.18] — 2026-05-21
4
+
5
+ ### Changed
6
+ - **`catalog-a2ui_0_9.json` + `catalog-a2ui_0_9_rules.txt` regenerated.** Re-emitted to reflect the `button-ui` (FB-15 `anti_patterns` entry) and `toggle-scheme-ui` (FB-13 / FB-14) yaml-schema changes shipped in `@adia-ai/web-components` v0.6.18 — keeps the A2UI component catalog in sync with the primitive schemas.
7
+
8
+ ### Note
9
+ - The headline v0.6.18 work shipped in `@adia-ai/web-components` — `stat-ui` + `table-ui` `loading` props (FB-12 P2) and `text-ui` `size` / `color` / `weight` / `text-align` overlay attributes (FB-10). See `packages/web-components/CHANGELOG.md#0618--2026-05-21` for details.
10
+
3
11
  ## [0.6.17] — 2026-05-21
4
12
 
5
13
  ### Maintenance
@@ -3007,7 +3007,14 @@
3007
3007
  ],
3008
3008
  "unevaluatedProperties": false,
3009
3009
  "x-adiaui": {
3010
- "anti_patterns": [],
3010
+ "anti_patterns": [
3011
+ {
3012
+ "description": "Beginning text= with a symbol that icon= already renders. icon=\"plus\" paints a Phosphor \"+\" glyph; text=\"+ New Item\" then renders the literal \"+\" too, so the symbol appears twice ([+ icon] [+ New Item]).",
3013
+ "right": "<button-ui text=\"New Claim\" icon=\"plus\" variant=\"primary\"></button-ui>\n",
3014
+ "rule": "Do not repeat the icon's glyph in text=. The icon provides the symbol; text= carries only the words. Applies to plus / minus / x / check / arrow icons.",
3015
+ "wrong": "<button-ui text=\"+ New Claim\" icon=\"plus\" variant=\"primary\"></button-ui>\n"
3016
+ }
3017
+ ],
3011
3018
  "category": "action",
3012
3019
  "composes": [
3013
3020
  "icon-ui"
@@ -13710,6 +13717,11 @@
13710
13717
  "type": "string",
13711
13718
  "default": ""
13712
13719
  },
13720
+ "loading": {
13721
+ "description": "Renders skeleton-ui shimmer placeholders in place of the value and change slots while data is fetching. Sets aria-busy=\"true\" on the host. Label and icon are preserved (they're static metadata, not fetched data). Toggle back to false when data arrives.",
13722
+ "type": "boolean",
13723
+ "default": false
13724
+ },
13713
13725
  "trend": {
13714
13726
  "description": "Trend direction or narrative subtitle. Canonical values color the change badge (up=success, down=danger, neutral/flat=muted); any other string renders as caption-style text under the primary value.",
13715
13727
  "type": "string",
@@ -13729,7 +13741,8 @@
13729
13741
  "anti_patterns": [],
13730
13742
  "category": "display",
13731
13743
  "composes": [
13732
- "icon-ui"
13744
+ "icon-ui",
13745
+ "skeleton-ui"
13733
13746
  ],
13734
13747
  "events": {},
13735
13748
  "examples": [
@@ -14916,7 +14929,7 @@
14916
14929
  "default": false
14917
14930
  },
14918
14931
  "loading": {
14919
- "description": "Shows a loading overlay and skeleton rows. Sets aria-busy=\"true\". Data updates are deferred until loading is set back to false.",
14932
+ "description": "Renders N ghost skeleton rows in place of the body data (count derived from `paginate` if set, else 5). Header + columns stay intact so the table layout is preserved while data fetches. Sets aria-busy=\"true\" on the host. Data updates are deferred until loading is set back to false.",
14920
14933
  "type": "boolean",
14921
14934
  "default": false
14922
14935
  },
@@ -14963,6 +14976,7 @@
14963
14976
  "icon-ui",
14964
14977
  "progress-ui",
14965
14978
  "pagination-ui",
14979
+ "skeleton-ui",
14966
14980
  "badge-ui"
14967
14981
  ],
14968
14982
  "events": {
@@ -15980,6 +15994,20 @@
15980
15994
  }
15981
15995
  ],
15982
15996
  "properties": {
15997
+ "color": {
15998
+ "description": "Override the variant's color token. Permissive: unknown values are no-ops (variant color wins). Added v0.6.18 (FB-10).",
15999
+ "type": "string",
16000
+ "enum": [
16001
+ "default",
16002
+ "subtle",
16003
+ "strong",
16004
+ "accent",
16005
+ "danger",
16006
+ "success",
16007
+ "warning"
16008
+ ],
16009
+ "default": ""
16010
+ },
15983
16011
  "component": {
15984
16012
  "const": "Text"
15985
16013
  },
@@ -15988,11 +16016,32 @@
15988
16016
  "type": "number",
15989
16017
  "default": 0
15990
16018
  },
16019
+ "size": {
16020
+ "description": "Override the variant's font-size on the body ladder. Maps to --a-body-sm / --a-body-md / --a-body-lg. Permissive: unknown values are no-ops (variant size wins). Added v0.6.18 (FB-10).",
16021
+ "type": "string",
16022
+ "enum": [
16023
+ "sm",
16024
+ "md",
16025
+ "lg"
16026
+ ],
16027
+ "default": ""
16028
+ },
15991
16029
  "strong": {
15992
16030
  "description": "When true, applies stronger emphasis (heavier weight + accent color). Styled via :scope[strong] in text.css. Use instead of variant=heading when you want a single emphasized word inline in body copy.",
15993
16031
  "type": "boolean",
15994
16032
  "default": false
15995
16033
  },
16034
+ "text-align": {
16035
+ "description": "Override text alignment. Note: text-ui defaults to display:inline, so this only takes effect when text-ui is block-like (wrapping or parent display:block/grid). Added v0.6.18 (FB-10).",
16036
+ "type": "string",
16037
+ "enum": [
16038
+ "start",
16039
+ "center",
16040
+ "end",
16041
+ "justify"
16042
+ ],
16043
+ "default": ""
16044
+ },
15996
16045
  "textContent": {
15997
16046
  "description": "Display text content. The main payload field for Text components extracted from HTML.",
15998
16047
  "$ref": "#/$defs/DynamicString"
@@ -16034,6 +16083,17 @@
16034
16083
  "section": "Inline form-group / navlist heading (visual rank H4). Small-cap. Use for form group labels, nav list headings.",
16035
16084
  "subsection": "Sub-landmark within a section (visual rank H3). 14px / semibold. Use for card titles within a section."
16036
16085
  }
16086
+ },
16087
+ "weight": {
16088
+ "description": "Override the variant's font-weight. Maps to --a-weight / --a-weight-medium / --a-weight-semibold / --a-weight-bold. Permissive: unknown values are no-ops (variant weight wins). Added v0.6.18 (FB-10).",
16089
+ "type": "string",
16090
+ "enum": [
16091
+ "regular",
16092
+ "medium",
16093
+ "semibold",
16094
+ "bold"
16095
+ ],
16096
+ "default": ""
16037
16097
  }
16038
16098
  },
16039
16099
  "required": [
@@ -39,6 +39,9 @@
39
39
  ## Switch
40
40
  - Self-labeling widget — use the [label] attribute directly; do NOT wrap in <field-ui>. The widget renders its own label inline via CSS attr() pattern. For settings rows (label-left, switch-right), put the descriptive text in switch-ui's own [label] attribute; do not introduce a field-ui wrapper. For descriptive helper text below the switch, use <text-ui variant='caption'> as a sibling — not field-ui's hint slot.
41
41
 
42
+ ## ToggleScheme
43
+ - Place toggle-scheme-ui in the shell topbar's trailing action cluster — slot="action" inside <admin-topbar slot="header"> of <admin-content>. It is a persistent, app-wide preference control; never put it in a sidebar footer / <admin-statusbar>, which hosts user-account items only.
44
+
42
45
  ## ChatComposer
43
46
  - chat-composer is the bespoke replacement for legacy <chat-input-ui data-chat-input> inside <chat-shell>. Place an inner <chat-input-ui submit-on-enter> as the primary input.
44
47
  - The host listens for 'composer-submit' on the composer (not on the inner input). The event detail mirrors the inner submit event so existing handlers Just Work.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adia-ai/a2ui-corpus",
3
- "version": "0.6.17",
3
+ "version": "0.6.18",
4
4
  "type": "module",
5
5
  "description": "AdiaUI A2UI training corpus \u2014 canonical v0.9 catalog + chunks + eval fixtures + feedback + gap registry. Consumed by the compose engine's retrieval layer + the MCP pipeline.",
6
6
  "exports": {