@adia-ai/web-components 0.6.20 → 0.6.22

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.
Files changed (252) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/components/accordion/accordion-item.a2ui.json +20 -3
  3. package/components/accordion/accordion-item.yaml +24 -0
  4. package/components/accordion/accordion.a2ui.json +1 -1
  5. package/components/accordion/accordion.d.ts +8 -1
  6. package/components/accordion/accordion.yaml +15 -2
  7. package/components/action-list/action-item.a2ui.json +19 -3
  8. package/components/action-list/action-item.yaml +24 -0
  9. package/components/action-list/action-list.a2ui.json +12 -2
  10. package/components/action-list/action-list.yaml +13 -3
  11. package/components/agent-artifact/agent-artifact.a2ui.json +9 -2
  12. package/components/agent-artifact/agent-artifact.d.ts +1 -1
  13. package/components/agent-artifact/agent-artifact.yaml +17 -3
  14. package/components/agent-feedback-bar/agent-feedback-bar.a2ui.json +9 -2
  15. package/components/agent-feedback-bar/agent-feedback-bar.d.ts +8 -1
  16. package/components/agent-feedback-bar/agent-feedback-bar.yaml +19 -3
  17. package/components/agent-questions/agent-questions.a2ui.json +8 -2
  18. package/components/agent-questions/agent-questions.d.ts +8 -1
  19. package/components/agent-questions/agent-questions.yaml +19 -3
  20. package/components/agent-reasoning/agent-reasoning.yaml +9 -1
  21. package/components/agent-suggestions/agent-suggestions.a2ui.json +9 -2
  22. package/components/agent-suggestions/agent-suggestions.d.ts +7 -1
  23. package/components/agent-suggestions/agent-suggestions.yaml +18 -3
  24. package/components/agent-trace/agent-trace.a2ui.json +9 -2
  25. package/components/agent-trace/agent-trace.d.ts +1 -1
  26. package/components/agent-trace/agent-trace.yaml +16 -3
  27. package/components/alert/alert.a2ui.json +1 -1
  28. package/components/alert/alert.css +8 -0
  29. package/components/alert/alert.d.ts +9 -1
  30. package/components/alert/alert.yaml +16 -2
  31. package/components/aside/aside.a2ui.json +7 -1
  32. package/components/aside/aside.yaml +33 -2
  33. package/components/avatar/avatar-group.a2ui.json +20 -3
  34. package/components/avatar/avatar-group.yaml +24 -0
  35. package/components/avatar/avatar.a2ui.json +1 -1
  36. package/components/avatar/avatar.d.ts +7 -1
  37. package/components/avatar/avatar.yaml +14 -2
  38. package/components/badge/badge.a2ui.json +1 -1
  39. package/components/badge/badge.d.ts +7 -1
  40. package/components/badge/badge.yaml +14 -2
  41. package/components/block/block.a2ui.json +9 -4
  42. package/components/block/block.d.ts +9 -3
  43. package/components/block/block.yaml +25 -5
  44. package/components/block/class.js +23 -0
  45. package/components/breadcrumb/breadcrumb.a2ui.json +5 -1
  46. package/components/breadcrumb/breadcrumb.yaml +33 -2
  47. package/components/button/button.a2ui.json +22 -2
  48. package/components/button/button.yaml +21 -3
  49. package/components/calendar-picker/calendar-picker.a2ui.json +1 -1
  50. package/components/calendar-picker/calendar-picker.yaml +13 -2
  51. package/components/canvas/canvas.a2ui.json +6 -2
  52. package/components/canvas/canvas.yaml +20 -3
  53. package/components/card/card.css +23 -2
  54. package/components/card/card.yaml +12 -0
  55. package/components/chart/chart.css +4 -2
  56. package/components/chart/chart.yaml +9 -1
  57. package/components/chart-legend/chart-legend.yaml +7 -1
  58. package/components/chat-thread/chat-thread.a2ui.json +6 -2
  59. package/components/chat-thread/chat-thread.d.ts +8 -1
  60. package/components/chat-thread/chat-thread.yaml +21 -3
  61. package/components/check/check.a2ui.json +13 -3
  62. package/components/check/check.yaml +18 -3
  63. package/components/code/code.a2ui.json +1 -1
  64. package/components/code/code.yaml +13 -2
  65. package/components/col/class.js +39 -0
  66. package/components/col/col.a2ui.json +12 -5
  67. package/components/col/col.d.ts +12 -4
  68. package/components/col/col.yaml +27 -7
  69. package/components/color-input/color-input.yaml +27 -1
  70. package/components/color-picker/color-picker.a2ui.json +8 -2
  71. package/components/color-picker/color-picker.yaml +15 -3
  72. package/components/command/command.a2ui.json +7 -2
  73. package/components/command/command.d.ts +9 -1
  74. package/components/command/command.yaml +39 -3
  75. package/components/demo-toggle/demo-toggle.yaml +7 -1
  76. package/components/description-list/description-list.a2ui.json +5 -1
  77. package/components/description-list/description-list.yaml +11 -2
  78. package/components/divider/divider.a2ui.json +1 -1
  79. package/components/divider/divider.d.ts +8 -1
  80. package/components/divider/divider.yaml +15 -2
  81. package/components/drawer/drawer.yaml +32 -1
  82. package/components/embed/embed.a2ui.json +1 -1
  83. package/components/embed/embed.d.ts +8 -1
  84. package/components/embed/embed.yaml +17 -2
  85. package/components/empty-state/empty-state.a2ui.json +19 -2
  86. package/components/empty-state/empty-state.css +14 -0
  87. package/components/empty-state/empty-state.d.ts +3 -1
  88. package/components/empty-state/empty-state.yaml +50 -3
  89. package/components/feed/feed-item.a2ui.json +21 -3
  90. package/components/feed/feed-item.yaml +25 -0
  91. package/components/feed/feed.a2ui.json +23 -3
  92. package/components/feed/feed.css +9 -4
  93. package/components/feed/feed.yaml +26 -0
  94. package/components/fields/fields.yaml +7 -1
  95. package/components/footer/footer.a2ui.json +7 -1
  96. package/components/footer/footer.yaml +27 -2
  97. package/components/grid/class.js +57 -0
  98. package/components/grid/grid.a2ui.json +3 -3
  99. package/components/grid/grid.d.ts +3 -3
  100. package/components/grid/grid.yaml +22 -8
  101. package/components/header/header.a2ui.json +8 -1
  102. package/components/header/header.yaml +30 -2
  103. package/components/heatmap/heatmap.yaml +7 -1
  104. package/components/icon/icon.a2ui.json +9 -2
  105. package/components/icon/icon.d.ts +1 -1
  106. package/components/icon/icon.yaml +32 -3
  107. package/components/image/image.yaml +7 -1
  108. package/components/input/input.css +8 -1
  109. package/components/input/input.yaml +29 -1
  110. package/components/inspector/inspector.a2ui.json +7 -2
  111. package/components/inspector/inspector.d.ts +9 -1
  112. package/components/inspector/inspector.yaml +23 -3
  113. package/components/kbd/kbd.a2ui.json +1 -1
  114. package/components/kbd/kbd.d.ts +1 -1
  115. package/components/kbd/kbd.yaml +11 -2
  116. package/components/list/list-item.a2ui.json +21 -3
  117. package/components/list/list-item.yaml +25 -0
  118. package/components/list/list.a2ui.json +7 -2
  119. package/components/list/list.d.ts +9 -1
  120. package/components/list/list.yaml +21 -3
  121. package/components/menu/menu-divider.a2ui.json +17 -3
  122. package/components/menu/menu-divider.yaml +35 -0
  123. package/components/menu/menu-item.a2ui.json +19 -3
  124. package/components/menu/menu-item.yaml +42 -0
  125. package/components/menu/menu.a2ui.json +7 -1
  126. package/components/menu/menu.yaml +33 -2
  127. package/components/modal/modal.a2ui.json +7 -2
  128. package/components/modal/modal.d.ts +10 -1
  129. package/components/modal/modal.yaml +48 -3
  130. package/components/nav/nav.a2ui.json +16 -2
  131. package/components/nav/nav.yaml +40 -3
  132. package/components/nav-group/nav-group.a2ui.json +12 -2
  133. package/components/nav-group/nav-group.yaml +37 -3
  134. package/components/nav-item/nav-item.a2ui.json +13 -2
  135. package/components/nav-item/nav-item.yaml +40 -3
  136. package/components/noodles/noodles.a2ui.json +12 -2
  137. package/components/noodles/noodles.yaml +14 -3
  138. package/components/option-card/option-card.yaml +27 -1
  139. package/components/otp-input/otp-input.yaml +24 -1
  140. package/components/page/page.a2ui.json +7 -1
  141. package/components/page/page.yaml +9 -2
  142. package/components/pagination/pagination.a2ui.json +1 -1
  143. package/components/pagination/pagination.d.ts +1 -1
  144. package/components/pagination/pagination.yaml +13 -2
  145. package/components/pane/pane.a2ui.json +1 -1
  146. package/components/pane/pane.d.ts +7 -1
  147. package/components/pane/pane.yaml +33 -2
  148. package/components/pipeline-status/pipeline-status.a2ui.json +6 -2
  149. package/components/pipeline-status/pipeline-status.d.ts +1 -1
  150. package/components/pipeline-status/pipeline-status.yaml +18 -3
  151. package/components/popover/popover.yaml +30 -1
  152. package/components/progress/progress.a2ui.json +1 -1
  153. package/components/progress/progress.d.ts +1 -1
  154. package/components/progress/progress.yaml +13 -2
  155. package/components/progress-row/progress-row.a2ui.json +12 -2
  156. package/components/progress-row/progress-row.yaml +13 -3
  157. package/components/radio/radio.a2ui.json +1 -1
  158. package/components/radio/radio.yaml +9 -1
  159. package/components/range/range.yaml +7 -1
  160. package/components/rating/rating.a2ui.json +4 -1
  161. package/components/rating/rating.yaml +10 -2
  162. package/components/richtext/richtext.a2ui.json +6 -2
  163. package/components/richtext/richtext.d.ts +9 -1
  164. package/components/richtext/richtext.yaml +20 -3
  165. package/components/row/class.js +34 -0
  166. package/components/row/row.a2ui.json +11 -5
  167. package/components/row/row.d.ts +11 -4
  168. package/components/row/row.yaml +25 -7
  169. package/components/search/search.a2ui.json +5 -1
  170. package/components/search/search.yaml +11 -2
  171. package/components/section/section.a2ui.json +7 -1
  172. package/components/section/section.yaml +36 -2
  173. package/components/segment/segment.a2ui.json +8 -2
  174. package/components/segment/segment.d.ts +7 -1
  175. package/components/segment/segment.yaml +16 -3
  176. package/components/segmented/segmented.a2ui.json +6 -1
  177. package/components/segmented/segmented.css +5 -0
  178. package/components/segmented/segmented.yaml +12 -2
  179. package/components/select/select.a2ui.json +1 -1
  180. package/components/select/select.yaml +34 -2
  181. package/components/skeleton/skeleton.a2ui.json +7 -2
  182. package/components/skeleton/skeleton.d.ts +1 -1
  183. package/components/skeleton/skeleton.yaml +17 -3
  184. package/components/slider/slider.yaml +7 -1
  185. package/components/stack/stack.a2ui.json +14 -3
  186. package/components/stack/stack.d.ts +9 -1
  187. package/components/stack/stack.yaml +22 -4
  188. package/components/stat/stat.a2ui.json +6 -2
  189. package/components/stat/stat.css +5 -2
  190. package/components/stat/stat.d.ts +1 -1
  191. package/components/stat/stat.yaml +16 -3
  192. package/components/step-progress/step-progress.yaml +7 -1
  193. package/components/stepper/stepper-item.a2ui.json +20 -3
  194. package/components/stepper/stepper-item.yaml +24 -0
  195. package/components/stepper/stepper.a2ui.json +1 -1
  196. package/components/stepper/stepper.d.ts +1 -1
  197. package/components/stepper/stepper.yaml +13 -2
  198. package/components/stream/stream.a2ui.json +12 -2
  199. package/components/stream/stream.yaml +15 -3
  200. package/components/swatch/swatch.yaml +7 -1
  201. package/components/swiper/swiper.yaml +7 -1
  202. package/components/switch/switch.a2ui.json +6 -2
  203. package/components/switch/switch.yaml +16 -2
  204. package/components/table/cell-types.js +23 -10
  205. package/components/table/class.js +12 -2
  206. package/components/table/table.a2ui.json +6 -1
  207. package/components/table/table.css +68 -1
  208. package/components/table/table.d.ts +3 -1
  209. package/components/table/table.test.js +64 -0
  210. package/components/table/table.yaml +39 -2
  211. package/components/table-toolbar/table-toolbar.yaml +27 -1
  212. package/components/tabs/tab.a2ui.json +17 -3
  213. package/components/tabs/tab.yaml +39 -0
  214. package/components/tabs/tabs.a2ui.json +1 -1
  215. package/components/tabs/tabs.d.ts +1 -1
  216. package/components/tabs/tabs.yaml +36 -2
  217. package/components/tag/tag.a2ui.json +6 -2
  218. package/components/tag/tag.d.ts +9 -1
  219. package/components/tag/tag.yaml +38 -3
  220. package/components/text/class.js +13 -0
  221. package/components/text/text.a2ui.json +9 -2
  222. package/components/text/text.d.ts +1 -1
  223. package/components/text/text.yaml +12 -5
  224. package/components/textarea/textarea.a2ui.json +15 -3
  225. package/components/textarea/textarea.yaml +41 -4
  226. package/components/timeline/timeline-item.a2ui.json +20 -3
  227. package/components/timeline/timeline-item.yaml +24 -0
  228. package/components/timeline/timeline.a2ui.json +8 -1
  229. package/components/timeline/timeline.yaml +9 -2
  230. package/components/toast/toast.a2ui.json +6 -2
  231. package/components/toast/toast.yaml +19 -3
  232. package/components/toggle-group/toggle-group.a2ui.json +13 -3
  233. package/components/toggle-group/toggle-group.d.ts +1 -1
  234. package/components/toggle-group/toggle-group.yaml +19 -4
  235. package/components/toggle-group/toggle-option.a2ui.json +18 -3
  236. package/components/toggle-group/toggle-option.yaml +23 -0
  237. package/components/toggle-scheme/toggle-scheme.yaml +4 -0
  238. package/components/toolbar/toolbar-group.a2ui.json +18 -3
  239. package/components/toolbar/toolbar-group.yaml +23 -0
  240. package/components/toolbar/toolbar.yaml +7 -1
  241. package/components/tooltip/tooltip.yaml +24 -1
  242. package/components/tree/tree-item.a2ui.json +19 -3
  243. package/components/tree/tree-item.yaml +42 -0
  244. package/components/tree/tree.a2ui.json +6 -1
  245. package/components/tree/tree.yaml +31 -2
  246. package/components/upload/upload.yaml +7 -1
  247. package/core/index.js +1 -0
  248. package/core/responsive.d.ts +29 -0
  249. package/core/responsive.js +120 -0
  250. package/core/responsive.test.js +121 -0
  251. package/package.json +1 -1
  252. package/styles/tokens.css +6 -6
@@ -25,6 +25,10 @@
25
25
  */
26
26
 
27
27
  import { UIElement } from '../../core/element.js';
28
+ import { parseResponsive, breakpoint } from '../../core/responsive.js';
29
+
30
+ const _SIZE = { sm: 'var(--a-body-sm)', md: 'var(--a-body-md)', lg: 'var(--a-body-lg)' };
31
+ function _sizeToCss(v) { return _SIZE[v] ?? v; }
28
32
 
29
33
  export class UIText extends UIElement {
30
34
  static properties = {
@@ -52,5 +56,14 @@ export class UIText extends UIElement {
52
56
  } else {
53
57
  this.style.removeProperty('--_text-lines');
54
58
  }
59
+
60
+ // Responsive size — e.g. size="sm sm@md lg@lg"
61
+ const size = this.size;
62
+ if (size?.includes('@')) {
63
+ const bp = breakpoint.value; // subscribe only when needed
64
+ this.style.setProperty('--text-size', _sizeToCss(parseResponsive(size, bp)));
65
+ } else {
66
+ this.style.removeProperty('--text-size');
67
+ }
55
68
  }
56
69
  }
@@ -36,7 +36,7 @@
36
36
  "default": 0
37
37
  },
38
38
  "size": {
39
- "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).",
39
+ "description": "Override the variant's font-size on the body ladder (sm/md/lg --a-body-sm/md/lg). Accepts `@bp` notation: size=\"sm md@lg\" = sm below lg, md from lg up. Added v0.6.18 (FB-10).",
40
40
  "type": "string",
41
41
  "enum": [
42
42
  "sm",
@@ -154,7 +154,14 @@
154
154
  "name": "idle"
155
155
  }
156
156
  ],
157
- "synonyms": {},
157
+ "synonyms": {
158
+ "text": [
159
+ "typography",
160
+ "prose",
161
+ "label-text",
162
+ "paragraph"
163
+ ]
164
+ },
158
165
  "tag": "text-ui",
159
166
  "tokens": {},
160
167
  "traits": [],
@@ -43,7 +43,7 @@ export class UIText extends UIElement {
43
43
  color: 'default' | 'subtle' | 'strong' | 'accent' | 'danger' | 'success' | 'warning';
44
44
  /** Multi-line clamp count (0 = no clamp) */
45
45
  lines: number;
46
- /** 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). */
46
+ /** Override the variant's font-size on the body ladder (sm/md/lg --a-body-sm/md/lg). Accepts `@bp` notation: size="sm md@lg" = sm below lg, md from lg up. Added v0.6.18 (FB-10). */
47
47
  size: 'sm' | 'md' | 'lg';
48
48
  /** 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. */
49
49
  strong: boolean;
@@ -22,9 +22,9 @@ props:
22
22
  default: 0
23
23
  size:
24
24
  description: >-
25
- Override the variant's font-size on the body ladder. Maps to
26
- --a-body-sm / --a-body-md / --a-body-lg. Permissive: unknown values
27
- are no-ops (variant size wins). Added v0.6.18 (FB-10).
25
+ Override the variant's font-size on the body ladder (sm/md/lg → --a-body-sm/md/lg).
26
+ Accepts `@bp` notation: size="sm md@lg" = sm below lg, md from lg up.
27
+ Added v0.6.18 (FB-10).
28
28
  type: string
29
29
  enum: ["sm", "md", "lg"]
30
30
  default: ""
@@ -112,7 +112,13 @@ states:
112
112
  traits: []
113
113
  tokens: {}
114
114
  a2ui:
115
- rules: []
115
+ rules:
116
+ - rule: 'Use for typographic content with semantic role (heading, body, label, caption). Variant attribute sets the role.'
117
+ reason: 'Token-driven font/size/weight per variant — better than raw <p>/<h*> with overrides.'
118
+ - rule: 'For inline-flow rich content with multiple paragraphs, use <richtext-ui> instead.'
119
+ reason: 'Richtext handles paragraph rhythm + rich formatting.'
120
+ - rule: 'Heading variants (h1, h2, ...) are not auto-tagged — set the role explicitly via variant.'
121
+ reason: 'Visual variant decoupled from DOM tag.'
116
122
  anti_patterns: []
117
123
  examples:
118
124
  - name: chat-interface
@@ -414,7 +420,8 @@ examples:
414
420
  ]
415
421
  keywords:
416
422
  - text
417
- synonyms: {}
423
+ synonyms:
424
+ text: [typography, prose, label-text, paragraph]
418
425
  related:
419
426
  - avatar
420
427
  - input
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://adiaui.dev/a2ui/v0_9/components/Textarea.json",
4
4
  "title": "Textarea",
5
- "description": "Multiline text input. The host IS the interactive surface.",
5
+ "description": "Multi-line text input primitive — the host IS the contenteditable\nsurface (per ADR-0025, no native <textarea> wrapped underneath).\nForm-bearing via UIFormElement: [name], [value], [required],\n[disabled], [readonly], fires `change` on blur and `input` per\nkeystroke. Enter inserts a newline — does NOT fire `submit` (for\nEnter-to-send composers use <chat-input-ui submit-on-enter> inside\n<chat-composer>). Wrap in <field-ui label=\"…\"> for the canonical\nlabeled stack.\n",
6
6
  "type": "object",
7
7
  "allOf": [
8
8
  {
@@ -110,7 +110,12 @@
110
110
  "textarea"
111
111
  ],
112
112
  "name": "UITextarea",
113
- "related": [],
113
+ "related": [
114
+ "Input",
115
+ "Field",
116
+ "ChatInput",
117
+ "Code"
118
+ ],
114
119
  "slots": {},
115
120
  "states": [
116
121
  {
@@ -118,7 +123,14 @@
118
123
  "name": "idle"
119
124
  }
120
125
  ],
121
- "synonyms": {},
126
+ "synonyms": {
127
+ "textarea": [
128
+ "multiline-input",
129
+ "text-area",
130
+ "comment-input",
131
+ "long-text-input"
132
+ ]
133
+ },
122
134
  "tag": "textarea-ui",
123
135
  "tokens": {},
124
136
  "traits": [],
@@ -6,7 +6,15 @@ tag: textarea-ui
6
6
  component: Textarea
7
7
  category: layout
8
8
  version: 1
9
- description: Multiline text input. The host IS the interactive surface.
9
+ description: |
10
+ Multi-line text input primitive — the host IS the contenteditable
11
+ surface (per ADR-0025, no native <textarea> wrapped underneath).
12
+ Form-bearing via UIFormElement: [name], [value], [required],
13
+ [disabled], [readonly], fires `change` on blur and `input` per
14
+ keystroke. Enter inserts a newline — does NOT fire `submit` (for
15
+ Enter-to-send composers use <chat-input-ui submit-on-enter> inside
16
+ <chat-composer>). Wrap in <field-ui label="…"> for the canonical
17
+ labeled stack.
10
18
  props:
11
19
  disabled:
12
20
  description: Disables interaction, removes contenteditable, and dims the control. Inherited from UIFormElement.
@@ -86,7 +94,31 @@ states:
86
94
  traits: []
87
95
  tokens: {}
88
96
  a2ui:
89
- rules: []
97
+ rules:
98
+ - >-
99
+ <textarea-ui> is the canonical multi-line text input. The host
100
+ IS the contenteditable surface — NEVER use a native <textarea>
101
+ (banned by ADR-0025).
102
+ - >-
103
+ Wrap <textarea-ui> in <field-ui label="…" hint="…" error="…"> for
104
+ the canonical labeled stack. The inline [label] / [hint] /
105
+ [error] props are also supported on the primitive for compact
106
+ use.
107
+ - >-
108
+ Form participation is implicit via UIFormElement. Set [name] for
109
+ FormData submission; [required] / [disabled] / [readonly]
110
+ reflect; listen for `change` (on blur after value change) and
111
+ `input` (per keystroke).
112
+ - >-
113
+ Use [rows] to set initial height (default 3) and [resize]
114
+ (vertical | horizontal | both | none; default vertical) to
115
+ control user resize. Never substitute a native <textarea> just
116
+ to get rows / resize.
117
+ - >-
118
+ Enter inserts a newline — <textarea-ui> does NOT emit a `submit`
119
+ event. For Enter-to-send multi-line composers, use
120
+ <chat-input-ui submit-on-enter> inside <chat-composer>, not
121
+ textarea-ui.
90
122
  anti_patterns: []
91
123
  examples:
92
124
  - name: basic-textarea
@@ -116,5 +148,10 @@ examples:
116
148
  ]
117
149
  keywords:
118
150
  - textarea
119
- synonyms: {}
120
- related: []
151
+ synonyms:
152
+ textarea: [multiline-input, text-area, comment-input, long-text-input]
153
+ related:
154
+ - Input
155
+ - Field
156
+ - ChatInput
157
+ - Code
@@ -62,12 +62,29 @@
62
62
  "composes": [],
63
63
  "events": {},
64
64
  "examples": [],
65
- "keywords": [],
65
+ "keywords": [
66
+ "timeline-item",
67
+ "timeline-row",
68
+ "activity-entry",
69
+ "event-entry",
70
+ "history-row"
71
+ ],
66
72
  "name": "UITimelineItem",
67
- "related": [],
73
+ "related": [
74
+ "Timeline",
75
+ "FeedItem",
76
+ "Stepper"
77
+ ],
68
78
  "slots": {},
69
79
  "states": [],
70
- "synonyms": {},
80
+ "synonyms": {
81
+ "timeline-item": [
82
+ "timeline-row",
83
+ "activity-row",
84
+ "event-row",
85
+ "history-entry"
86
+ ]
87
+ },
71
88
  "tag": "timeline-item-ui",
72
89
  "tokens": {},
73
90
  "traits": [],
@@ -45,3 +45,27 @@ props:
45
45
  description: Show a spinner instead of the icon while status=pending.
46
46
  type: boolean
47
47
  default: false
48
+
49
+ keywords:
50
+ - timeline-item
51
+ - timeline-row
52
+ - activity-entry
53
+ - event-entry
54
+ - history-row
55
+
56
+ synonyms:
57
+ timeline-item: [timeline-row, activity-row, event-row, history-entry]
58
+
59
+ related:
60
+ - Timeline
61
+ - FeedItem
62
+ - Stepper
63
+
64
+ a2ui:
65
+ rules:
66
+ - rule: 'Child of <timeline-ui> — one chronological event with timestamp + content + optional icon dot.'
67
+ reason: 'Timeline cluster contract.'
68
+ - rule: 'Different from <stepper-item-ui> (process steps with completion state) — timeline-item is event history.'
69
+ reason: 'Process vs history.'
70
+ - rule: 'Order is DOM-order — no auto-sort by timestamp.'
71
+ reason: 'Author-controlled order.'
@@ -81,7 +81,14 @@
81
81
  "name": "idle"
82
82
  }
83
83
  ],
84
- "synonyms": {},
84
+ "synonyms": {
85
+ "timeline": [
86
+ "activity-log",
87
+ "event-log",
88
+ "history",
89
+ "audit-trail"
90
+ ]
91
+ },
85
92
  "tag": "timeline-ui",
86
93
  "tokens": {},
87
94
  "traits": [],
@@ -44,7 +44,13 @@ requiredIcons:
44
44
  - caret-down
45
45
  - caret-right
46
46
  a2ui:
47
- rules: []
47
+ rules:
48
+ - rule: 'Use for chronological event lists (audit log, activity feed, version history).'
49
+ reason: 'Visual rhythm: line + dot + content per row.'
50
+ - rule: 'Hosts <timeline-item-ui> children only.'
51
+ reason: 'Cluster contract — children are family-scoped.'
52
+ - rule: 'For multi-step processes with progress state use <stepper-ui> instead; timeline is read-only history.'
53
+ reason: 'Stepper has current/upcoming/complete states; timeline is event-time.'
48
54
  anti_patterns: []
49
55
  examples:
50
56
  - name: order-tracking
@@ -188,6 +194,7 @@ examples:
188
194
  ]
189
195
  keywords:
190
196
  - timeline
191
- synonyms: {}
197
+ synonyms:
198
+ timeline: [activity-log, event-log, history, audit-trail]
192
199
  related:
193
200
  - timeline-item
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://adiaui.dev/a2ui/v0_9/components/Toast.json",
4
4
  "title": "Toast",
5
- "description": "Notification popup with auto-dismiss. Animated enter/exit.",
5
+ "description": "Transient global notification popup with auto-dismiss + animated\nenter/exit. Variants map to severity (info / success / warning /\ndanger). Distinct from <alert-ui> (inline persistent banner) and\n<empty-state-ui> (zero-data placeholder). Use toast-ui for\nshort-lived feedback after user actions (\"Saved\", \"Copied to\nclipboard\"); the toast positions itself relative to viewport\n[position] regardless of where in the DOM it's rendered.\n",
6
6
  "type": "object",
7
7
  "allOf": [
8
8
  {
@@ -86,7 +86,11 @@
86
86
  "alert"
87
87
  ],
88
88
  "name": "UIToast",
89
- "related": [],
89
+ "related": [
90
+ "Feed",
91
+ "Alert",
92
+ "FeedItem"
93
+ ],
90
94
  "slots": {},
91
95
  "states": [
92
96
  {
@@ -6,7 +6,14 @@ tag: toast-ui
6
6
  component: Toast
7
7
  category: container
8
8
  version: 1
9
- description: Notification popup with auto-dismiss. Animated enter/exit.
9
+ description: |
10
+ Transient global notification popup with auto-dismiss + animated
11
+ enter/exit. Variants map to severity (info / success / warning /
12
+ danger). Distinct from <alert-ui> (inline persistent banner) and
13
+ <empty-state-ui> (zero-data placeholder). Use toast-ui for
14
+ short-lived feedback after user actions ("Saved", "Copied to
15
+ clipboard"); the toast positions itself relative to viewport
16
+ [position] regardless of where in the DOM it's rendered.
10
17
  props:
11
18
  duration:
12
19
  description: Auto-dismiss time in milliseconds. 0 disables auto-dismiss.
@@ -73,7 +80,13 @@ tokens:
73
80
  --toast-foreground:
74
81
  description: Override text color
75
82
  a2ui:
76
- rules: []
83
+ rules:
84
+ - rule: 'Single ephemeral notification item — auto-dismissing or manually-closable.'
85
+ reason: 'Toast pattern.'
86
+ - rule: 'Typically posted into <feed-ui> via UIFeed.post(...); for inline persistent alerts use <alert-ui> instead.'
87
+ reason: 'Posting model + surface boundary.'
88
+ - rule: 'Variant maps to severity (info, success, warn, error); same tokens as <alert-ui>.'
89
+ reason: 'Visual consistency.'
77
90
  anti_patterns: []
78
91
  examples:
79
92
  - name: toast-notification
@@ -184,4 +197,7 @@ synonyms:
184
197
  - alert
185
198
  - error
186
199
  - toast
187
- related: []
200
+ related:
201
+ - Feed
202
+ - Alert
203
+ - FeedItem
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://adiaui.dev/a2ui/v0_9/components/ToggleGroup.json",
4
4
  "title": "ToggleGroup",
5
- "description": "Multi-select button group (unlike segmented which is single-select).",
5
+ "description": "Multi-select button group (unlike <segmented-ui> which is single-select). Hosts <toggle-option-ui> children, each independently toggleable; emits change events with the active value set. Use for filter chips or feature flag clusters; for single-select option groups use <segmented-ui> instead.",
6
6
  "type": "object",
7
7
  "allOf": [
8
8
  {
@@ -60,7 +60,11 @@
60
60
  "group"
61
61
  ],
62
62
  "name": "UIToggleGroup",
63
- "related": [],
63
+ "related": [
64
+ "ToggleOption",
65
+ "Segmented",
66
+ "Radio"
67
+ ],
64
68
  "slots": {
65
69
  "default": {
66
70
  "description": "Default slot — primary child content."
@@ -72,7 +76,13 @@
72
76
  "name": "idle"
73
77
  }
74
78
  ],
75
- "synonyms": {},
79
+ "synonyms": {
80
+ "toggle-group": [
81
+ "segmented-control",
82
+ "option-group",
83
+ "toggle-set"
84
+ ]
85
+ },
76
86
  "tag": "toggle-group-ui",
77
87
  "tokens": {
78
88
  "--toggle-group-border": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `<toggle-group-ui>` — Multi-select button group (unlike segmented which is single-select).
2
+ * `<toggle-group-ui>` — Multi-select button group (unlike <segmented-ui> which is single-select). Hosts <toggle-option-ui> children, each independently toggleable; emits change events with the active value set. Use for filter chips or feature flag clusters; for single-select option groups use <segmented-ui> instead.
3
3
  *
4
4
  * @see https://ui-kit.exe.xyz/site/components/toggle-group
5
5
  *
@@ -6,7 +6,12 @@ tag: toggle-group-ui
6
6
  component: ToggleGroup
7
7
  category: navigation
8
8
  version: 1
9
- description: Multi-select button group (unlike segmented which is single-select).
9
+ description: >-
10
+ Multi-select button group (unlike <segmented-ui> which is
11
+ single-select). Hosts <toggle-option-ui> children, each independently
12
+ toggleable; emits change events with the active value set. Use for
13
+ filter chips or feature flag clusters; for single-select option groups
14
+ use <segmented-ui> instead.
10
15
  props:
11
16
  single:
12
17
  description: When true, restrict to one active option (single-select).
@@ -66,7 +71,13 @@ tokens:
66
71
  --toggle-option-selected-fg:
67
72
  description: Text color when selected
68
73
  a2ui:
69
- rules: []
74
+ rules:
75
+ - rule: 'Multi-select button cluster — hosts <toggle-option-ui> children, each independently toggleable.'
76
+ reason: 'Multi-select cluster contract.'
77
+ - rule: 'Different from <segmented-ui> (single-select) — toggle-group emits a SET of active values.'
78
+ reason: 'Selection model distinction.'
79
+ - rule: 'Use for filter chips, multi-flag toggles, day-of-week pickers; for binary on/off use <switch-ui>.'
80
+ reason: 'Capacity guidance.'
70
81
  anti_patterns: []
71
82
  examples:
72
83
  - name: basic-toggle-group
@@ -98,5 +109,9 @@ keywords:
98
109
  - toggle-group
99
110
  - toggle
100
111
  - group
101
- synonyms: {}
102
- related: []
112
+ synonyms:
113
+ toggle-group: [segmented-control, option-group, toggle-set]
114
+ related:
115
+ - ToggleOption
116
+ - Segmented
117
+ - Radio
@@ -47,12 +47,27 @@
47
47
  "composes": [],
48
48
  "events": {},
49
49
  "examples": [],
50
- "keywords": [],
50
+ "keywords": [
51
+ "toggle-option",
52
+ "toggle-segment",
53
+ "option-toggle",
54
+ "segmented-option"
55
+ ],
51
56
  "name": "UIToggleOption",
52
- "related": [],
57
+ "related": [
58
+ "ToggleGroup",
59
+ "Segment",
60
+ "Radio"
61
+ ],
53
62
  "slots": {},
54
63
  "states": [],
55
- "synonyms": {},
64
+ "synonyms": {
65
+ "toggle-option": [
66
+ "toggle-segment",
67
+ "option-button",
68
+ "segmented-option"
69
+ ]
70
+ },
56
71
  "tag": "toggle-option-ui",
57
72
  "tokens": {},
58
73
  "traits": [],
@@ -31,3 +31,26 @@ props:
31
31
  description: Disabled state — blocks pointer + keyboard activation.
32
32
  type: boolean
33
33
  default: false
34
+
35
+ keywords:
36
+ - toggle-option
37
+ - toggle-segment
38
+ - option-toggle
39
+ - segmented-option
40
+
41
+ synonyms:
42
+ toggle-option: [toggle-segment, option-button, segmented-option]
43
+
44
+ related:
45
+ - ToggleGroup
46
+ - Segment
47
+ - Radio
48
+
49
+ a2ui:
50
+ rules:
51
+ - rule: 'Child of <toggle-group-ui> — one independently-toggleable button in a multi-select cluster.'
52
+ reason: 'Multi-select cluster contract.'
53
+ - rule: 'Different from <segment-ui> (which is single-select inside <segmented-ui>).'
54
+ reason: 'Selection model boundary.'
55
+ - rule: 'Active state controlled via the toggle-option''s own active attribute (independent of siblings).'
56
+ reason: 'Parent does not own state in multi-select.'
@@ -156,6 +156,10 @@ a2ui:
156
156
  <admin-content>. It is a persistent, app-wide preference control;
157
157
  never put it in a sidebar footer / <admin-statusbar>, which hosts
158
158
  user-account items only.
159
+ - rule: 'Stores user override in localStorage and writes color-scheme inline-style to the target; falls back to prefers-color-scheme if no override is set.'
160
+ reason: 'Behavior contract — explains why first-paint resolution happens correctly.'
161
+ - rule: 'Singleton per page — placing more than one in DOM creates conflicting writes to the same target.'
162
+ reason: 'Cardinality constraint.'
159
163
  anti_patterns: []
160
164
  examples:
161
165
  - name: header-action
@@ -27,12 +27,27 @@
27
27
  "composes": [],
28
28
  "events": {},
29
29
  "examples": [],
30
- "keywords": [],
30
+ "keywords": [
31
+ "toolbar-group",
32
+ "button-group",
33
+ "action-cluster",
34
+ "toolbar-cluster"
35
+ ],
31
36
  "name": "UIToolbarGroup",
32
- "related": [],
37
+ "related": [
38
+ "Toolbar",
39
+ "Button",
40
+ "Divider"
41
+ ],
33
42
  "slots": {},
34
43
  "states": [],
35
- "synonyms": {},
44
+ "synonyms": {
45
+ "toolbar-group": [
46
+ "button-group",
47
+ "action-cluster",
48
+ "toolbar-section"
49
+ ]
50
+ },
36
51
  "tag": "toolbar-group-ui",
37
52
  "tokens": {},
38
53
  "traits": [],
@@ -14,3 +14,26 @@ category: navigation
14
14
  version: 1
15
15
  description: |-
16
16
  Visual cluster of related actions inside a `<toolbar-ui>`. Provides role="group" for assistive-tech grouping; no own visual chrome beyond a margin-collapsing gap with sibling groups.
17
+
18
+ keywords:
19
+ - toolbar-group
20
+ - button-group
21
+ - action-cluster
22
+ - toolbar-cluster
23
+
24
+ synonyms:
25
+ toolbar-group: [button-group, action-cluster, toolbar-section]
26
+
27
+ related:
28
+ - Toolbar
29
+ - Button
30
+ - Divider
31
+
32
+ a2ui:
33
+ rules:
34
+ - rule: 'Child of <toolbar-ui> — clusters related action buttons with token-driven internal gap.'
35
+ reason: 'Visual grouping primitive.'
36
+ - rule: 'Separate clusters with <divider-ui> siblings inside <toolbar-ui>.'
37
+ reason: 'Convention for toolbar rhythm.'
38
+ - rule: 'Do not nest toolbar-groups; flat hierarchy only.'
39
+ reason: 'Visual complexity guard.'
@@ -41,7 +41,13 @@ states:
41
41
  traits: []
42
42
  tokens: {}
43
43
  a2ui:
44
- rules: []
44
+ rules:
45
+ - rule: 'Horizontal action bar — hosts <button-ui>, <toolbar-group-ui>, and <divider-ui> children.'
46
+ reason: 'Canonical action-row primitive.'
47
+ - rule: 'Cluster related buttons inside <toolbar-group-ui> with <divider-ui> separating clusters.'
48
+ reason: 'Visual grouping convention.'
49
+ - rule: 'For navigation use <nav-ui>; for modal/popover action bars use the modal''s footer slot. Toolbar is for inline action bars within content regions.'
50
+ reason: 'Context boundary.'
45
51
  anti_patterns: []
46
52
  examples:
47
53
  - name: toolbar-buttons
@@ -71,7 +71,30 @@ states:
71
71
  traits: []
72
72
  tokens: {}
73
73
  a2ui:
74
- rules: []
74
+ rules:
75
+ - >-
76
+ Use <tooltip-ui> to label icon-only <button-ui> elements
77
+ (text="Save" on a save-icon button, etc.) and for short
78
+ descriptive hover hints. Never use it for content the user
79
+ must read carefully (the bubble is transient + non-focusable).
80
+ - >-
81
+ Never place INTERACTIVE children inside <tooltip-ui> — it is a
82
+ read-only hint, not a surface. If the user must click or type,
83
+ use <popover-ui> instead. Tooltips never receive keyboard focus.
84
+ - >-
85
+ [follows="pointer"] mode requires [for] pointing at a <chart-ui>
86
+ or <heatmap-ui> [id]; the tooltip subscribes to that target's
87
+ `chart-hover` / `chart-leave` events to render data-viz
88
+ annotations that track the cursor. Without [for] the tooltip
89
+ renders nothing in pointer mode.
90
+ - >-
91
+ Set [delay=0] only for high-frequency exploratory surfaces
92
+ (sparkline ticks, chart hover). Keep the default 400ms delay
93
+ elsewhere to avoid hover noise.
94
+ - >-
95
+ [indicator] (dot | line | dashed) is meaningful only in pointer
96
+ mode for per-series swatches. Omit it or leave default "none"
97
+ for text-mode tooltips.
75
98
  anti_patterns: []
76
99
  examples:
77
100
  - name: tooltip-buttons
@@ -51,12 +51,28 @@
51
51
  "composes": [],
52
52
  "events": {},
53
53
  "examples": [],
54
- "keywords": [],
54
+ "keywords": [
55
+ "tree-item",
56
+ "tree-row",
57
+ "tree-node",
58
+ "hierarchy-item"
59
+ ],
55
60
  "name": "UITreeItem",
56
- "related": [],
61
+ "related": [
62
+ "Tree",
63
+ "List",
64
+ "Nav",
65
+ "Accordion"
66
+ ],
57
67
  "slots": {},
58
68
  "states": [],
59
- "synonyms": {},
69
+ "synonyms": {
70
+ "tree-item": [
71
+ "tree-node",
72
+ "tree-row",
73
+ "hierarchy-row"
74
+ ]
75
+ },
60
76
  "tag": "tree-item-ui",
61
77
  "tokens": {},
62
78
  "traits": [],