@adia-ai/a2ui-corpus 0.2.2 → 0.2.4
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 +35 -1
- package/catalog-a2ui_0_9.json +144 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,10 +9,44 @@ gap registry. Consumed by `@adia-ai/a2ui-retrieval` and
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
_No pending changes._
|
|
13
|
+
|
|
14
|
+
## [0.2.4] - 2026-05-04
|
|
15
|
+
|
|
16
|
+
**Lockstep cut + catalog regen for `<demo-toggle-ui>` primitive.** All 8 published `@adia-ai/*` packages bump 0.2.3 → 0.2.4 per [`docs/specs/package-architecture.md` § 15](../../../docs/specs/package-architecture.md#15-versioning-policy). Patch cut — no breaking changes.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- `version`: `0.2.3` → `0.2.4`.
|
|
21
|
+
- `catalog-a2ui_0_9.json`: 6 new references (name + slots + events + props + tokens + example) covering the new `<demo-toggle-ui>` primitive added in `web-components@0.2.4`.
|
|
22
|
+
|
|
23
|
+
### Changed — Catalog regenerated against `web-components` Tier-4 surface
|
|
24
|
+
|
|
25
|
+
`catalog-a2ui_0_9.json` regenerated to include the new
|
|
26
|
+
`<demo-toggle-ui>` primitive (6 references covering name + slots +
|
|
27
|
+
events + props + tokens + example) authored alongside the trait-
|
|
28
|
+
library lift initiative's Tier 5 work. No other corpus surface
|
|
29
|
+
changed; new traits introduced in `web-components` are picked up via
|
|
30
|
+
the generated `_catalog.json` consumed by
|
|
31
|
+
`@adia-ai/a2ui-retrieval`.
|
|
13
32
|
|
|
14
33
|
---
|
|
15
34
|
|
|
35
|
+
## [0.2.3] - 2026-05-04
|
|
36
|
+
|
|
37
|
+
**Lockstep cut.** All 8 published `@adia-ai/*` packages bump
|
|
38
|
+
0.2.2 → 0.2.3 per
|
|
39
|
+
[`docs/specs/package-architecture.md` § 15](../../../../docs/specs/package-architecture.md#15-versioning-policy).
|
|
40
|
+
Patch cut — no breaking changes.
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- `version`: `0.2.2` → `0.2.3`.
|
|
45
|
+
|
|
46
|
+
### No source changes
|
|
47
|
+
|
|
48
|
+
`@adia-ai/a2ui-corpus` source is byte-identical to `0.2.2`. The cut bumps version only.
|
|
49
|
+
|
|
16
50
|
## [0.2.2] - 2026-05-02
|
|
17
51
|
|
|
18
52
|
**Lockstep cut.** All 8 published `@adia-ai/*` packages bump 0.2.1 → 0.2.2 per [`docs/specs/package-architecture.md` § 15](../../../docs/specs/package-architecture.md#15-versioning-policy). Patch cut — no breaking changes.
|
package/catalog-a2ui_0_9.json
CHANGED
|
@@ -4045,6 +4045,148 @@
|
|
|
4045
4045
|
"version": 1
|
|
4046
4046
|
}
|
|
4047
4047
|
},
|
|
4048
|
+
"DemoToggle": {
|
|
4049
|
+
"title": "DemoToggle",
|
|
4050
|
+
"description": "Side-by-side comparison primitive — header bar with a switch + two child slots (\"on\" / \"off\"); toggling the switch swaps which slot is visible. Used on trait detail pages to show \"with trait\" vs \"without trait\" on the same chrome. data-mode=\"overlay\" stacks the slots on the same coordinates so layout never shifts.",
|
|
4051
|
+
"type": "object",
|
|
4052
|
+
"allOf": [
|
|
4053
|
+
{
|
|
4054
|
+
"$ref": "#/$defs/ComponentCommon"
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
"$ref": "#/$defs/CatalogComponentCommon"
|
|
4058
|
+
}
|
|
4059
|
+
],
|
|
4060
|
+
"properties": {
|
|
4061
|
+
"component": {
|
|
4062
|
+
"const": "DemoToggle"
|
|
4063
|
+
},
|
|
4064
|
+
"initial": {
|
|
4065
|
+
"description": "Initial state when [state] is not set on connect (\"on\" | \"off\").",
|
|
4066
|
+
"type": "string",
|
|
4067
|
+
"enum": [
|
|
4068
|
+
"on",
|
|
4069
|
+
"off"
|
|
4070
|
+
],
|
|
4071
|
+
"default": "off"
|
|
4072
|
+
},
|
|
4073
|
+
"labelOff": {
|
|
4074
|
+
"description": "Header label rendered when state is \"off\".",
|
|
4075
|
+
"type": "string",
|
|
4076
|
+
"default": "Off"
|
|
4077
|
+
},
|
|
4078
|
+
"labelOn": {
|
|
4079
|
+
"description": "Header label rendered when state is \"on\".",
|
|
4080
|
+
"type": "string",
|
|
4081
|
+
"default": "On"
|
|
4082
|
+
},
|
|
4083
|
+
"state": {
|
|
4084
|
+
"description": "Current toggle state (\"on\" | \"off\"). Reflected as data-state on the host.",
|
|
4085
|
+
"type": "string",
|
|
4086
|
+
"enum": [
|
|
4087
|
+
"",
|
|
4088
|
+
"on",
|
|
4089
|
+
"off"
|
|
4090
|
+
],
|
|
4091
|
+
"default": ""
|
|
4092
|
+
}
|
|
4093
|
+
},
|
|
4094
|
+
"required": [
|
|
4095
|
+
"component"
|
|
4096
|
+
],
|
|
4097
|
+
"unevaluatedProperties": false,
|
|
4098
|
+
"x-adiaui": {
|
|
4099
|
+
"anti_patterns": [],
|
|
4100
|
+
"category": "container",
|
|
4101
|
+
"events": {
|
|
4102
|
+
"change": {
|
|
4103
|
+
"description": "Fired when the toggle flips. detail contains { state }."
|
|
4104
|
+
}
|
|
4105
|
+
},
|
|
4106
|
+
"examples": [
|
|
4107
|
+
{
|
|
4108
|
+
"description": "Compare a trait-bearing surface against the bare control on the same chrome.",
|
|
4109
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"DemoToggle\",\n \"labelOn\": \"With shimmer-loading\",\n \"labelOff\": \"Without shimmer-loading\",\n \"initial\": \"off\",\n \"children\": [\"off\", \"on\"]\n },\n {\n \"id\": \"off\",\n \"component\": \"Card\",\n \"slot\": \"off\",\n \"children\": [\"off-section\"]\n },\n {\n \"id\": \"off-section\",\n \"component\": \"Section\",\n \"children\": [\"off-text\"]\n },\n {\n \"id\": \"off-text\",\n \"component\": \"Text\",\n \"textContent\": \"Bare surface — no trait attached.\"\n },\n {\n \"id\": \"on\",\n \"component\": \"Card\",\n \"slot\": \"on\",\n \"children\": [\"on-section\"]\n },\n {\n \"id\": \"on-section\",\n \"component\": \"Section\",\n \"children\": [\"on-text\"]\n },\n {\n \"id\": \"on-text\",\n \"component\": \"Text\",\n \"textContent\": \"Same surface, with trait attached.\"\n }\n]",
|
|
4110
|
+
"name": "with-without-trait"
|
|
4111
|
+
}
|
|
4112
|
+
],
|
|
4113
|
+
"keywords": [
|
|
4114
|
+
"demo",
|
|
4115
|
+
"toggle",
|
|
4116
|
+
"compare",
|
|
4117
|
+
"comparison",
|
|
4118
|
+
"trait",
|
|
4119
|
+
"before-after",
|
|
4120
|
+
"a-b",
|
|
4121
|
+
"switch"
|
|
4122
|
+
],
|
|
4123
|
+
"name": "UIDemoToggle",
|
|
4124
|
+
"related": [
|
|
4125
|
+
"Switch",
|
|
4126
|
+
"Card"
|
|
4127
|
+
],
|
|
4128
|
+
"slots": {
|
|
4129
|
+
"bar": {
|
|
4130
|
+
"description": "Internal header bar (auto-stamped). Hosts the embedded switch + label."
|
|
4131
|
+
},
|
|
4132
|
+
"off": {
|
|
4133
|
+
"description": "Surface rendered when state is \"off\" (the \"without trait\" variant)."
|
|
4134
|
+
},
|
|
4135
|
+
"on": {
|
|
4136
|
+
"description": "Surface rendered when state is \"on\" (the \"with trait\" variant)."
|
|
4137
|
+
}
|
|
4138
|
+
},
|
|
4139
|
+
"states": [
|
|
4140
|
+
{
|
|
4141
|
+
"description": "Default, ready for interaction.",
|
|
4142
|
+
"name": "idle"
|
|
4143
|
+
},
|
|
4144
|
+
{
|
|
4145
|
+
"description": "On slot is active; bar leans accent.",
|
|
4146
|
+
"attribute": "data-state",
|
|
4147
|
+
"name": "on"
|
|
4148
|
+
},
|
|
4149
|
+
{
|
|
4150
|
+
"description": "Off slot is active; bar is neutral.",
|
|
4151
|
+
"attribute": "data-state",
|
|
4152
|
+
"name": "off"
|
|
4153
|
+
}
|
|
4154
|
+
],
|
|
4155
|
+
"synonyms": {
|
|
4156
|
+
"compare": [
|
|
4157
|
+
"demo-toggle",
|
|
4158
|
+
"segmented"
|
|
4159
|
+
],
|
|
4160
|
+
"switch": [
|
|
4161
|
+
"demo-toggle",
|
|
4162
|
+
"toggle-group"
|
|
4163
|
+
]
|
|
4164
|
+
},
|
|
4165
|
+
"tag": "demo-toggle-ui",
|
|
4166
|
+
"tokens": {
|
|
4167
|
+
"--demo-toggle-bar-bg": {
|
|
4168
|
+
"description": "Header bar background (accent when state=on)"
|
|
4169
|
+
},
|
|
4170
|
+
"--demo-toggle-bar-fg": {
|
|
4171
|
+
"description": "Header bar foreground"
|
|
4172
|
+
},
|
|
4173
|
+
"--demo-toggle-bg": {
|
|
4174
|
+
"description": "Stage background"
|
|
4175
|
+
},
|
|
4176
|
+
"--demo-toggle-border": {
|
|
4177
|
+
"description": "Border color"
|
|
4178
|
+
},
|
|
4179
|
+
"--demo-toggle-radius": {
|
|
4180
|
+
"description": "Outer border-radius"
|
|
4181
|
+
},
|
|
4182
|
+
"--demo-toggle-stage-padding": {
|
|
4183
|
+
"description": "Inner padding around each slot"
|
|
4184
|
+
}
|
|
4185
|
+
},
|
|
4186
|
+
"traits": [],
|
|
4187
|
+
"version": 1
|
|
4188
|
+
}
|
|
4189
|
+
},
|
|
4048
4190
|
"DescriptionList": {
|
|
4049
4191
|
"title": "DescriptionList",
|
|
4050
4192
|
"description": "Semantic key-value list (dl/dt/dd). Preserves native HTML semantics for screen readers and SSR. Layout supports stacked (default) or inline.",
|
|
@@ -6761,7 +6903,7 @@
|
|
|
6761
6903
|
"default": ""
|
|
6762
6904
|
},
|
|
6763
6905
|
"variant": {
|
|
6764
|
-
"description": "Visual treatment. Default ('') renders as a primary-rail group (icon row, caret, collapsible). 'section' renders the header as a static kicker label with always-visible children
|
|
6906
|
+
"description": "Visual treatment. Default ('') renders as a primary-rail group (icon row, caret, collapsible). 'section' renders the header as a static kicker label with always-visible children. When the parent <nav-ui> carries variant=\"section\", this group inherits it via CSS cascade unless an explicit variant is set on the group.",
|
|
6765
6907
|
"type": "string",
|
|
6766
6908
|
"enum": [
|
|
6767
6909
|
"",
|
|
@@ -6864,7 +7006,7 @@
|
|
|
6864
7006
|
"default": ""
|
|
6865
7007
|
},
|
|
6866
7008
|
"variant": {
|
|
6867
|
-
"description": "Visual treatment. Default ('') renders as a primary-rail item (reserved icon space, in-icon selected accent). 'section' renders flat — no icon space when absent, left-edge accent bar for selected
|
|
7009
|
+
"description": "Visual treatment. Default ('') renders as a primary-rail item (reserved icon space, in-icon selected accent). 'section' renders flat — no icon space when absent, left-edge accent bar for selected. When the parent <nav-ui> carries variant=\"section\", this item inherits it via CSS cascade unless an explicit variant is set.",
|
|
6868
7010
|
"type": "string",
|
|
6869
7011
|
"enum": [
|
|
6870
7012
|
"",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/a2ui-corpus",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AdiaUI A2UI training corpus — patterns, fragments, compositions, exemplars, eval fixtures, feedback, gap registry. Consumed by the compose engine's retrieval layer + the MCP pipeline.",
|
|
6
6
|
"exports": {
|