@adea-ai/ui 0.152.4 → 0.153.0

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 (892) hide show
  1. package/README.md +469 -580
  2. package/dist/components/composites/account-menu/account-menu.d.ts +5 -0
  3. package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
  4. package/dist/components/composites/account-menu/account-menu.js +37 -13
  5. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  6. package/dist/components/composites/action-button/action-button.d.ts +2 -1
  7. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  8. package/dist/components/composites/action-button/action-button.js +92 -66
  9. package/dist/components/composites/action-button/action-button.js.map +1 -1
  10. package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +3 -3
  11. package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
  12. package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
  13. package/dist/components/composites/appearance-editor/appearance-choices.d.ts +1 -1
  14. package/dist/components/composites/appearance-editor/appearance-choices.js +1 -1
  15. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  16. package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
  17. package/dist/components/composites/appearance-editor/appearance-editor.js +57 -57
  18. package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
  19. package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
  20. package/dist/components/composites/appearance-editor/appearance-rows.js +9 -9
  21. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  22. package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -7
  23. package/dist/components/composites/appearance-editor/theme-preview.d.ts +1 -1
  24. package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
  25. package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
  26. package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
  27. package/dist/components/composites/catalog-browser/catalog-browser.js +6 -10
  28. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  29. package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
  30. package/dist/components/composites/catalog-browser/catalog-detail.js +36 -36
  31. package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
  32. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +4 -4
  33. package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
  34. package/dist/components/composites/chat/chat.d.ts.map +1 -1
  35. package/dist/components/composites/chat/chat.js +33 -37
  36. package/dist/components/composites/chat/chat.js.map +1 -1
  37. package/dist/components/composites/checkpoint/checkpoint-model.d.ts +3 -3
  38. package/dist/components/composites/checkpoint/checkpoint-model.js +2 -2
  39. package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
  40. package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
  41. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  42. package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
  43. package/dist/components/composites/confirmation/confirmation.js +1 -1
  44. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  45. package/dist/components/composites/context/context.d.ts +2 -2
  46. package/dist/components/composites/context/context.js.map +1 -1
  47. package/dist/components/composites/file-tree/build-file-tree.d.ts +1 -1
  48. package/dist/components/composites/file-tree/build-file-tree.js +1 -1
  49. package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
  50. package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
  51. package/dist/components/composites/file-tree/file-tree.js +7 -3
  52. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  53. package/dist/components/composites/icon-picker/icon-picker.js +1 -3
  54. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  55. package/dist/components/composites/inline-citation/citation.d.ts +1 -1
  56. package/dist/components/composites/inline-citation/citation.js +1 -1
  57. package/dist/components/composites/inline-citation/citation.js.map +1 -1
  58. package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
  59. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  60. package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
  61. package/dist/components/composites/list-row/list-row-control.js +22 -22
  62. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  63. package/dist/components/composites/list-row/list-row.d.ts +5 -0
  64. package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
  65. package/dist/components/composites/list-row/list-row.js +75 -83
  66. package/dist/components/composites/list-row/list-row.js.map +1 -1
  67. package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
  68. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  69. package/dist/components/composites/model-selector/model-selector.d.ts +4 -4
  70. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  71. package/dist/components/composites/model-selector/models.d.ts +2 -2
  72. package/dist/components/composites/model-selector/models.js +1 -1
  73. package/dist/components/composites/model-selector/models.js.map +1 -1
  74. package/dist/components/composites/plan/plan.d.ts.map +1 -1
  75. package/dist/components/composites/plan/plan.js +17 -15
  76. package/dist/components/composites/plan/plan.js.map +1 -1
  77. package/dist/components/composites/queue/queue.d.ts.map +1 -1
  78. package/dist/components/composites/queue/queue.js +5 -7
  79. package/dist/components/composites/queue/queue.js.map +1 -1
  80. package/dist/components/composites/reasoning/reasoning.d.ts +4 -4
  81. package/dist/components/composites/reasoning/reasoning.js +4 -4
  82. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  83. package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
  84. package/dist/components/composites/settings/settings-navigation.js +63 -14
  85. package/dist/components/composites/settings/settings-navigation.js.map +1 -1
  86. package/dist/components/composites/settings/settings.d.ts.map +1 -1
  87. package/dist/components/composites/settings/settings.js +32 -32
  88. package/dist/components/composites/settings/settings.js.map +1 -1
  89. package/dist/components/composites/sources/source.d.ts +1 -1
  90. package/dist/components/composites/sources/source.js.map +1 -1
  91. package/dist/components/composites/sources/sources.d.ts +2 -2
  92. package/dist/components/composites/sources/sources.js.map +1 -1
  93. package/dist/components/composites/stack-trace/parse-stack-trace.d.ts +3 -3
  94. package/dist/components/composites/stack-trace/parse-stack-trace.js +4 -4
  95. package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
  96. package/dist/components/composites/stack-trace/stack-trace.d.ts +3 -3
  97. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  98. package/dist/components/composites/stat/stat.d.ts.map +1 -1
  99. package/dist/components/composites/stat/stat.js +14 -16
  100. package/dist/components/composites/stat/stat.js.map +1 -1
  101. package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
  102. package/dist/components/composites/subagent/subagent.js +6 -4
  103. package/dist/components/composites/subagent/subagent.js.map +1 -1
  104. package/dist/components/composites/task/task.d.ts +1 -1
  105. package/dist/components/composites/task/task.js.map +1 -1
  106. package/dist/components/composites/terminal/ansi.d.ts +3 -3
  107. package/dist/components/composites/terminal/ansi.js.map +1 -1
  108. package/dist/components/composites/terminal/terminal-model.d.ts +3 -3
  109. package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
  110. package/dist/components/composites/terminal/terminal-model.js +1 -1
  111. package/dist/components/composites/terminal/terminal-model.js.map +1 -1
  112. package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
  113. package/dist/components/composites/terminal/terminal.js +24 -11
  114. package/dist/components/composites/terminal/terminal.js.map +1 -1
  115. package/dist/components/composites/test-results/test-results-model.d.ts +4 -4
  116. package/dist/components/composites/test-results/test-results-model.js +2 -2
  117. package/dist/components/composites/test-results/test-results-model.js.map +1 -1
  118. package/dist/components/composites/test-results/test-results.d.ts +1 -1
  119. package/dist/components/composites/test-results/test-results.js.map +1 -1
  120. package/dist/components/composites/tool/tool.d.ts +4 -4
  121. package/dist/components/composites/tool/tool.js.map +1 -1
  122. package/dist/components/composites/tree/tree.d.ts +1 -1
  123. package/dist/components/composites/tree/tree.d.ts.map +1 -1
  124. package/dist/components/composites/tree/tree.js +25 -18
  125. package/dist/components/composites/tree/tree.js.map +1 -1
  126. package/dist/components/composites/update-dialog/channel-control.d.ts +10 -4
  127. package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
  128. package/dist/components/composites/update-dialog/channel-control.js +14 -19
  129. package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
  130. package/dist/components/composites/update-dialog/index.d.ts +1 -1
  131. package/dist/components/composites/update-dialog/index.d.ts.map +1 -1
  132. package/dist/components/composites/update-dialog/update-dialog.js +4 -5
  133. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  134. package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
  135. package/dist/components/composites/workspace-mark/workspace-mark.js +19 -20
  136. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  137. package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
  138. package/dist/components/conversation/busy-send-button.js +18 -20
  139. package/dist/components/conversation/busy-send-button.js.map +1 -1
  140. package/dist/components/conversation/composer-menu.d.ts +3 -3
  141. package/dist/components/conversation/composer-menu.js +3 -3
  142. package/dist/components/conversation/composer-menu.js.map +1 -1
  143. package/dist/components/conversation/conversation-avatar.js +2 -4
  144. package/dist/components/conversation/conversation-avatar.js.map +1 -1
  145. package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
  146. package/dist/components/conversation/conversation-pane.js +6 -5
  147. package/dist/components/conversation/conversation-pane.js.map +1 -1
  148. package/dist/components/conversation/conversation-surface.js +3 -7
  149. package/dist/components/conversation/conversation-surface.js.map +1 -1
  150. package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
  151. package/dist/components/conversation/internal/chat-composer-shell.js +76 -76
  152. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  153. package/dist/components/conversation/message-composer.d.ts.map +1 -1
  154. package/dist/components/conversation/message-composer.js +32 -38
  155. package/dist/components/conversation/message-composer.js.map +1 -1
  156. package/dist/components/conversation/message-row.d.ts.map +1 -1
  157. package/dist/components/conversation/message-row.js +79 -73
  158. package/dist/components/conversation/message-row.js.map +1 -1
  159. package/dist/components/conversation/scroll-follow-core.d.ts +7 -7
  160. package/dist/components/conversation/scroll-follow-core.js +4 -4
  161. package/dist/components/conversation/scroll-follow-core.js.map +1 -1
  162. package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
  163. package/dist/components/conversation/scroll-follow.js +19 -4
  164. package/dist/components/conversation/scroll-follow.js.map +1 -1
  165. package/dist/components/conversation/thread-panel.d.ts.map +1 -1
  166. package/dist/components/conversation/thread-panel.js +23 -23
  167. package/dist/components/conversation/thread-panel.js.map +1 -1
  168. package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
  169. package/dist/components/conversation/transcript-composition.js +2 -2
  170. package/dist/components/conversation/transcript-composition.js.map +1 -1
  171. package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
  172. package/dist/components/layout/app-shell/app-shell.js +1 -1
  173. package/dist/components/layout/app-shell/app-shell.js.map +1 -1
  174. package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
  175. package/dist/components/layout/app-shell/skip-link.js +4 -6
  176. package/dist/components/layout/app-shell/skip-link.js.map +1 -1
  177. package/dist/components/layout/page/page.d.ts.map +1 -1
  178. package/dist/components/layout/page/page.js +17 -17
  179. package/dist/components/layout/page/page.js.map +1 -1
  180. package/dist/components/layout/panel/panel.js +2 -4
  181. package/dist/components/layout/panel/panel.js.map +1 -1
  182. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
  183. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +16 -1
  184. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  185. package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
  186. package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
  187. package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
  188. package/dist/components/layout/side-rail/side-rail.js +35 -34
  189. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  190. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
  191. package/dist/components/layout/sidebar-nav/sidebar-nav.js +23 -23
  192. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  193. package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
  194. package/dist/components/layout/split-layout/resize-controller-core-retry.js +25 -7
  195. package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
  196. package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
  197. package/dist/components/layout/split-layout/resize-controller-core.js +25 -7
  198. package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
  199. package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
  200. package/dist/components/layout/split-layout/split-layout.js +2 -2
  201. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  202. package/dist/components/layout/status-bar/status-bar.d.ts +1 -1
  203. package/dist/components/layout/status-bar/status-bar.js +1 -1
  204. package/dist/components/layout/status-bar/status-bar.js.map +1 -1
  205. package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
  206. package/dist/components/layout/top-bar/top-bar.js +7 -7
  207. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  208. package/dist/components/motion/presence.d.ts +2 -2
  209. package/dist/components/motion/presence.js.map +1 -1
  210. package/dist/components/theme/appearance-panel.d.ts +5 -5
  211. package/dist/components/theme/appearance-panel.js.map +1 -1
  212. package/dist/components/theme/lazy.d.ts +1 -1
  213. package/dist/components/theme/lazy.js.map +1 -1
  214. package/dist/components/theme/theme-catalogue-source.d.ts +2 -2
  215. package/dist/components/theme/theme-catalogue-source.js +2 -2
  216. package/dist/components/theme/theme-catalogue-source.js.map +1 -1
  217. package/dist/components/theme/theme-context.d.ts +2 -2
  218. package/dist/components/theme/theme-context.js +3 -3
  219. package/dist/components/theme/theme-context.js.map +1 -1
  220. package/dist/components/theme/theme-document.d.ts.map +1 -1
  221. package/dist/components/theme/theme-document.js +14 -9
  222. package/dist/components/theme/theme-document.js.map +1 -1
  223. package/dist/components/theme/theme-picker.d.ts +5 -5
  224. package/dist/components/theme/theme-picker.js.map +1 -1
  225. package/dist/components/theme/theme-provider-value.d.ts +0 -6
  226. package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
  227. package/dist/components/theme/theme-provider-value.js +9 -3
  228. package/dist/components/theme/theme-provider-value.js.map +1 -1
  229. package/dist/components/theme/theme-script.d.ts +14 -0
  230. package/dist/components/theme/theme-script.d.ts.map +1 -1
  231. package/dist/components/theme/theme-script.js +1 -0
  232. package/dist/components/theme/theme-script.js.map +1 -1
  233. package/dist/components/theme/theme-state.d.ts +7 -7
  234. package/dist/components/theme/theme-state.js.map +1 -1
  235. package/dist/components/theme/theme-toggle.d.ts +1 -1
  236. package/dist/components/theme/theme-toggle.js.map +1 -1
  237. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  238. package/dist/components/ui/alert/alert.js +4 -3
  239. package/dist/components/ui/alert/alert.js.map +1 -1
  240. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +1 -1
  241. package/dist/components/ui/alert-dialog/alert-dialog.js +3 -3
  242. package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
  243. package/dist/components/ui/badge/badge.d.ts +1 -1
  244. package/dist/components/ui/badge/badge.js +2 -2
  245. package/dist/components/ui/badge/badge.js.map +1 -1
  246. package/dist/components/ui/board/board.d.ts.map +1 -1
  247. package/dist/components/ui/board/board.js +10 -6
  248. package/dist/components/ui/board/board.js.map +1 -1
  249. package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
  250. package/dist/components/ui/bubble/bubble.js +6 -4
  251. package/dist/components/ui/bubble/bubble.js.map +1 -1
  252. package/dist/components/ui/button/button.js +2 -2
  253. package/dist/components/ui/button/button.js.map +1 -1
  254. package/dist/components/ui/button-group/button-group.d.ts +1 -1
  255. package/dist/components/ui/button-group/button-group.js +1 -1
  256. package/dist/components/ui/button-group/button-group.js.map +1 -1
  257. package/dist/components/ui/calendar/calendar.js +6 -6
  258. package/dist/components/ui/calendar/calendar.js.map +1 -1
  259. package/dist/components/ui/callout/callout.d.ts +4 -4
  260. package/dist/components/ui/callout/callout.js +4 -4
  261. package/dist/components/ui/callout/callout.js.map +1 -1
  262. package/dist/components/ui/card/card.d.ts +2 -2
  263. package/dist/components/ui/card/card.js +2 -2
  264. package/dist/components/ui/card/card.js.map +1 -1
  265. package/dist/components/ui/carousel/carousel.d.ts +4 -4
  266. package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
  267. package/dist/components/ui/carousel/carousel.js.map +1 -1
  268. package/dist/components/ui/chart/chart-options.d.ts +7 -7
  269. package/dist/components/ui/chart/chart-options.js +9 -9
  270. package/dist/components/ui/chart/chart-options.js.map +1 -1
  271. package/dist/components/ui/chart/chart.d.ts.map +1 -1
  272. package/dist/components/ui/chart/chart.js +16 -7
  273. package/dist/components/ui/chart/chart.js.map +1 -1
  274. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  275. package/dist/components/ui/checkbox/checkbox.js +8 -6
  276. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  277. package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
  278. package/dist/components/ui/code-block/code-block.js +8 -6
  279. package/dist/components/ui/code-block/code-block.js.map +1 -1
  280. package/dist/components/ui/command/command.d.ts +4 -4
  281. package/dist/components/ui/command/command.js +4 -4
  282. package/dist/components/ui/command/command.js.map +1 -1
  283. package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
  284. package/dist/components/ui/context-menu/context-menu.js.map +1 -1
  285. package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
  286. package/dist/components/ui/detail-panel/detail-panel.js +13 -13
  287. package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
  288. package/dist/components/ui/dialog/dialog-layer.d.ts +0 -4
  289. package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
  290. package/dist/components/ui/dialog/dialog-layer.js +17 -1
  291. package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
  292. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  293. package/dist/components/ui/dialog/dialog.js +4 -3
  294. package/dist/components/ui/dialog/dialog.js.map +1 -1
  295. package/dist/components/ui/diff-block/diff-block.d.ts +6 -6
  296. package/dist/components/ui/diff-block/diff-block.js +3 -3
  297. package/dist/components/ui/diff-block/diff-block.js.map +1 -1
  298. package/dist/components/ui/drawer/drawer.d.ts +3 -3
  299. package/dist/components/ui/drawer/drawer.js +2 -2
  300. package/dist/components/ui/drawer/drawer.js.map +1 -1
  301. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +5 -5
  302. package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
  303. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  304. package/dist/components/ui/dropdown-menu/menu-parts.d.ts +3 -3
  305. package/dist/components/ui/dropdown-menu/menu-parts.js +1 -1
  306. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
  307. package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
  308. package/dist/components/ui/empty/empty-state.js +33 -36
  309. package/dist/components/ui/empty/empty-state.js.map +1 -1
  310. package/dist/components/ui/empty/empty.d.ts +1 -1
  311. package/dist/components/ui/empty/empty.js +1 -1
  312. package/dist/components/ui/empty/empty.js.map +1 -1
  313. package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
  314. package/dist/components/ui/entity-icon/entity-icon.js +7 -7
  315. package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
  316. package/dist/components/ui/field/field.d.ts.map +1 -1
  317. package/dist/components/ui/field/field.js +15 -15
  318. package/dist/components/ui/field/field.js.map +1 -1
  319. package/dist/components/ui/field/number-field.d.ts +1 -1
  320. package/dist/components/ui/field/number-field.js +1 -1
  321. package/dist/components/ui/field/number-field.js.map +1 -1
  322. package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
  323. package/dist/components/ui/hover-card/hover-card.js.map +1 -1
  324. package/dist/components/ui/input-group/input-group.d.ts +1 -1
  325. package/dist/components/ui/input-group/input-group.js.map +1 -1
  326. package/dist/components/ui/input-otp/input-otp.d.ts +1 -1
  327. package/dist/components/ui/input-otp/input-otp.js.map +1 -1
  328. package/dist/components/ui/item/item.d.ts.map +1 -1
  329. package/dist/components/ui/item/item.js +26 -26
  330. package/dist/components/ui/item/item.js.map +1 -1
  331. package/dist/components/ui/kbd/kbd.d.ts +2 -2
  332. package/dist/components/ui/kbd/kbd.js +2 -2
  333. package/dist/components/ui/kbd/kbd.js.map +1 -1
  334. package/dist/components/ui/kbd/platform-modifier.d.ts +3 -3
  335. package/dist/components/ui/kbd/platform-modifier.js +3 -3
  336. package/dist/components/ui/kbd/platform-modifier.js.map +1 -1
  337. package/dist/components/ui/label/label.d.ts +1 -1
  338. package/dist/components/ui/label/label.js +1 -1
  339. package/dist/components/ui/label/label.js.map +1 -1
  340. package/dist/components/ui/marker/marker.d.ts.map +1 -1
  341. package/dist/components/ui/marker/marker.js +17 -19
  342. package/dist/components/ui/marker/marker.js.map +1 -1
  343. package/dist/components/ui/menubar/menubar.d.ts +2 -2
  344. package/dist/components/ui/menubar/menubar.js +1 -1
  345. package/dist/components/ui/menubar/menubar.js.map +1 -1
  346. package/dist/components/ui/message/message.d.ts.map +1 -1
  347. package/dist/components/ui/message/message.js +16 -18
  348. package/dist/components/ui/message/message.js.map +1 -1
  349. package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
  350. package/dist/components/ui/modal-dialog/modal-dialog.js +7 -11
  351. package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
  352. package/dist/components/ui/native-select/native-select.d.ts +1 -1
  353. package/dist/components/ui/native-select/native-select.js.map +1 -1
  354. package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
  355. package/dist/components/ui/navigation-menu/navigation-menu.js +5 -4
  356. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  357. package/dist/components/ui/pagination/pagination.js +2 -4
  358. package/dist/components/ui/pagination/pagination.js.map +1 -1
  359. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  360. package/dist/components/ui/popover/popover.js +11 -4
  361. package/dist/components/ui/popover/popover.js.map +1 -1
  362. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  363. package/dist/components/ui/progress/progress.js +6 -8
  364. package/dist/components/ui/progress/progress.js.map +1 -1
  365. package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
  366. package/dist/components/ui/questionnaire/questionnaire.js +73 -73
  367. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  368. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  369. package/dist/components/ui/radio-group/radio-group.js +12 -6
  370. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  371. package/dist/components/ui/resizable/resizable.d.ts +2 -2
  372. package/dist/components/ui/resizable/resizable.js +3 -3
  373. package/dist/components/ui/resizable/resizable.js.map +1 -1
  374. package/dist/components/ui/select/select.d.ts +3 -3
  375. package/dist/components/ui/select/select.js +1 -1
  376. package/dist/components/ui/select/select.js.map +1 -1
  377. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  378. package/dist/components/ui/sheet/sheet.js +4 -3
  379. package/dist/components/ui/sheet/sheet.js.map +1 -1
  380. package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
  381. package/dist/components/ui/skeleton/skeleton.js +1 -1
  382. package/dist/components/ui/skeleton/skeleton.js.map +1 -1
  383. package/dist/components/ui/slider/slider.d.ts +1 -1
  384. package/dist/components/ui/slider/slider.js.map +1 -1
  385. package/dist/components/ui/spinner/spinner.d.ts +1 -1
  386. package/dist/components/ui/spinner/spinner.js +1 -1
  387. package/dist/components/ui/spinner/spinner.js.map +1 -1
  388. package/dist/components/ui/status-chip/status-chip.d.ts +13 -13
  389. package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
  390. package/dist/components/ui/status-chip/status-chip.js +11 -11
  391. package/dist/components/ui/status-chip/status-chip.js.map +1 -1
  392. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  393. package/dist/components/ui/switch/switch.js +8 -6
  394. package/dist/components/ui/switch/switch.js.map +1 -1
  395. package/dist/components/ui/tabs/tabs.d.ts +4 -4
  396. package/dist/components/ui/tabs/tabs.js +4 -4
  397. package/dist/components/ui/tabs/tabs.js.map +1 -1
  398. package/dist/components/ui/textarea/textarea.d.ts +1 -1
  399. package/dist/components/ui/textarea/textarea.js +1 -1
  400. package/dist/components/ui/textarea/textarea.js.map +1 -1
  401. package/dist/components/ui/toast/toast.d.ts.map +1 -1
  402. package/dist/components/ui/toast/toast.js +13 -15
  403. package/dist/components/ui/toast/toast.js.map +1 -1
  404. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  405. package/dist/components/ui/toggle/toggle.js +1 -1
  406. package/dist/components/ui/toggle/toggle.js.map +1 -1
  407. package/dist/components/ui/tooltip/deferred-tooltip.d.ts +51 -0
  408. package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -0
  409. package/dist/components/ui/tooltip/deferred-tooltip.js +103 -0
  410. package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -0
  411. package/dist/components/ui/tooltip/index.d.ts +1 -0
  412. package/dist/components/ui/tooltip/index.d.ts.map +1 -1
  413. package/dist/components/ui/tooltip/index.js +3 -1
  414. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  415. package/dist/components/ui/tooltip/tooltip.js +6 -5
  416. package/dist/components/ui/tooltip/tooltip.js.map +1 -1
  417. package/dist/components/ui/trace/trace.d.ts.map +1 -1
  418. package/dist/components/ui/trace/trace.js +17 -17
  419. package/dist/components/ui/trace/trace.js.map +1 -1
  420. package/dist/components/ui/typography/typography.d.ts +3 -3
  421. package/dist/components/ui/typography/typography.js +5 -5
  422. package/dist/components/ui/typography/typography.js.map +1 -1
  423. package/dist/index.d.ts +1 -0
  424. package/dist/index.d.ts.map +1 -1
  425. package/dist/index.js +5 -3
  426. package/dist/lib/accent-presets.d.ts +1 -1
  427. package/dist/lib/accent-presets.js.map +1 -1
  428. package/dist/lib/accent-roles.d.ts +2 -2
  429. package/dist/lib/accent-roles.js +2 -2
  430. package/dist/lib/accent-roles.js.map +1 -1
  431. package/dist/lib/appearance-font-settings.d.ts.map +1 -1
  432. package/dist/lib/appearance-font-settings.js +15 -7
  433. package/dist/lib/appearance-font-settings.js.map +1 -1
  434. package/dist/lib/create-poll.d.ts +39 -0
  435. package/dist/lib/create-poll.d.ts.map +1 -0
  436. package/dist/lib/create-poll.js +116 -0
  437. package/dist/lib/create-poll.js.map +1 -0
  438. package/dist/lib/font-zoom.d.ts +1 -1
  439. package/dist/lib/font-zoom.js +1 -1
  440. package/dist/lib/font-zoom.js.map +1 -1
  441. package/dist/lib/keyed-rows.d.ts +2 -1
  442. package/dist/lib/keyed-rows.d.ts.map +1 -1
  443. package/dist/lib/keyed-rows.js +3 -2
  444. package/dist/lib/keyed-rows.js.map +1 -1
  445. package/dist/lib/overlay.d.ts +5 -5
  446. package/dist/lib/overlay.js +5 -5
  447. package/dist/lib/overlay.js.map +1 -1
  448. package/dist/lib/preference-store.d.ts +2 -2
  449. package/dist/lib/preference-store.js +2 -2
  450. package/dist/lib/preference-store.js.map +1 -1
  451. package/dist/lib/safe-script.d.ts +2 -2
  452. package/dist/lib/safe-script.js +2 -2
  453. package/dist/lib/safe-script.js.map +1 -1
  454. package/dist/lib/scroll-geometry.d.ts +1 -1
  455. package/dist/lib/scroll-geometry.js +1 -1
  456. package/dist/lib/scroll-geometry.js.map +1 -1
  457. package/dist/lib/text.d.ts +1 -1
  458. package/dist/lib/text.js +1 -1
  459. package/dist/lib/text.js.map +1 -1
  460. package/dist/lib/theme-accents.js +3 -3
  461. package/dist/lib/theme-accents.js.map +1 -1
  462. package/dist/lib/theme-css.js.map +1 -1
  463. package/dist/lib/theme-defaults.d.ts +4 -4
  464. package/dist/lib/theme-defaults.js +4 -4
  465. package/dist/lib/theme-defaults.js.map +1 -1
  466. package/dist/lib/theme-engine-light.js.map +1 -1
  467. package/dist/lib/theme-engine.d.ts +2 -2
  468. package/dist/lib/theme-engine.js +2 -2
  469. package/dist/lib/theme-engine.js.map +1 -1
  470. package/dist/lib/theme-projection.d.ts +1 -1
  471. package/dist/lib/theme-projection.js +2 -2
  472. package/dist/lib/theme-projection.js.map +1 -1
  473. package/dist/lib/theme-records.d.ts +2 -2
  474. package/dist/lib/theme-records.js +2 -2
  475. package/dist/lib/theme-records.js.map +1 -1
  476. package/dist/lib/theme-types.d.ts +1 -1
  477. package/dist/lib/theme-types.js.map +1 -1
  478. package/dist/lib/themes.d.ts +13 -13
  479. package/dist/lib/themes.js +13 -13
  480. package/dist/lib/themes.js.map +1 -1
  481. package/dist/lib/tokens.d.ts +2 -2
  482. package/dist/lib/tokens.js +1 -1
  483. package/dist/lib/tokens.js.map +1 -1
  484. package/dist/lib/tooltip-focus-gate.d.ts +2 -2
  485. package/dist/lib/tooltip-focus-gate.js +2 -2
  486. package/dist/lib/tooltip-focus-gate.js.map +1 -1
  487. package/dist/lib/utils.d.ts +1 -1
  488. package/dist/lib/utils.js +1 -1
  489. package/dist/lib/utils.js.map +1 -1
  490. package/dist/lib/variants.d.ts +4 -4
  491. package/dist/lib/variants.js +1 -1
  492. package/dist/lib/variants.js.map +1 -1
  493. package/dist/lib/version-notes.d.ts +4 -4
  494. package/dist/lib/version-notes.js +4 -4
  495. package/dist/lib/version-notes.js.map +1 -1
  496. package/dist/lint.js.map +1 -1
  497. package/dist/r/account-menu.json +1 -0
  498. package/dist/r/lib.json +5 -0
  499. package/dist/r/registry.json +11 -0
  500. package/dist/r/src/components/composites/account-menu/account-menu.tsx +22 -2
  501. package/dist/r/src/components/composites/action-button/action-button.tsx +124 -78
  502. package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
  503. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
  504. package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
  505. package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
  506. package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -7
  507. package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
  508. package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
  509. package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
  510. package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
  511. package/dist/r/src/components/composites/chat/chat.tsx +15 -9
  512. package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  513. package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +2 -2
  514. package/dist/r/src/components/composites/confirmation/confirmation.tsx +8 -4
  515. package/dist/r/src/components/composites/context/context.tsx +2 -2
  516. package/dist/r/src/components/composites/file-tree/build-file-tree.ts +1 -1
  517. package/dist/r/src/components/composites/file-tree/file-tree.tsx +16 -2
  518. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  519. package/dist/r/src/components/composites/inline-citation/citation.ts +1 -1
  520. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +2 -2
  521. package/dist/r/src/components/composites/list-row/list-row-control.tsx +31 -22
  522. package/dist/r/src/components/composites/list-row/list-row.tsx +69 -73
  523. package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +1 -1
  524. package/dist/r/src/components/composites/model-selector/model-selector.tsx +4 -4
  525. package/dist/r/src/components/composites/model-selector/models.ts +2 -2
  526. package/dist/r/src/components/composites/plan/plan.tsx +19 -11
  527. package/dist/r/src/components/composites/queue/queue.tsx +5 -3
  528. package/dist/r/src/components/composites/reasoning/reasoning.tsx +4 -4
  529. package/dist/r/src/components/composites/settings/settings-navigation.tsx +57 -17
  530. package/dist/r/src/components/composites/settings/settings.tsx +14 -6
  531. package/dist/r/src/components/composites/sources/source.ts +1 -1
  532. package/dist/r/src/components/composites/sources/sources.tsx +2 -2
  533. package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
  534. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -3
  535. package/dist/r/src/components/composites/stat/stat.tsx +20 -16
  536. package/dist/r/src/components/composites/subagent/subagent.tsx +6 -4
  537. package/dist/r/src/components/composites/task/task.tsx +1 -1
  538. package/dist/r/src/components/composites/terminal/ansi.ts +3 -3
  539. package/dist/r/src/components/composites/terminal/terminal-model.ts +3 -3
  540. package/dist/r/src/components/composites/terminal/terminal.tsx +24 -12
  541. package/dist/r/src/components/composites/test-results/test-results-model.ts +4 -4
  542. package/dist/r/src/components/composites/test-results/test-results.tsx +1 -1
  543. package/dist/r/src/components/composites/tool/tool.tsx +4 -4
  544. package/dist/r/src/components/composites/tree/tree.tsx +31 -15
  545. package/dist/r/src/components/composites/update-dialog/channel-control.tsx +17 -8
  546. package/dist/r/src/components/composites/update-dialog/index.ts +1 -0
  547. package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +7 -7
  548. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
  549. package/dist/r/src/components/conversation/busy-send-button.tsx +6 -2
  550. package/dist/r/src/components/conversation/composer-menu.tsx +3 -3
  551. package/dist/r/src/components/conversation/conversation-avatar.tsx +1 -1
  552. package/dist/r/src/components/conversation/conversation-pane.tsx +8 -5
  553. package/dist/r/src/components/conversation/conversation-surface.tsx +2 -2
  554. package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
  555. package/dist/r/src/components/conversation/message-composer.tsx +4 -6
  556. package/dist/r/src/components/conversation/message-row.tsx +34 -26
  557. package/dist/r/src/components/conversation/scroll-follow-core.ts +8 -8
  558. package/dist/r/src/components/conversation/scroll-follow.ts +24 -8
  559. package/dist/r/src/components/conversation/thread-panel.tsx +7 -3
  560. package/dist/r/src/components/conversation/transcript-composition.tsx +4 -2
  561. package/dist/r/src/components/layout/app-shell/app-shell.tsx +1 -1
  562. package/dist/r/src/components/layout/app-shell/skip-link.tsx +3 -2
  563. package/dist/r/src/components/layout/page/page.tsx +15 -11
  564. package/dist/r/src/components/layout/panel/panel.tsx +1 -1
  565. package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
  566. package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -1
  567. package/dist/r/src/components/layout/side-rail/side-rail.tsx +38 -22
  568. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
  569. package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
  570. package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
  571. package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -2
  572. package/dist/r/src/components/layout/status-bar/status-bar.tsx +1 -1
  573. package/dist/r/src/components/layout/top-bar/top-bar.tsx +8 -6
  574. package/dist/r/src/components/motion/presence.tsx +2 -2
  575. package/dist/r/src/components/theme/appearance-panel.tsx +5 -5
  576. package/dist/r/src/components/theme/lazy.ts +1 -1
  577. package/dist/r/src/components/theme/theme-catalogue-source.ts +2 -2
  578. package/dist/r/src/components/theme/theme-context.ts +3 -3
  579. package/dist/r/src/components/theme/theme-document.ts +22 -11
  580. package/dist/r/src/components/theme/theme-picker.tsx +5 -5
  581. package/dist/r/src/components/theme/theme-provider-value.ts +15 -3
  582. package/dist/r/src/components/theme/theme-script.ts +20 -0
  583. package/dist/r/src/components/theme/theme-state.ts +7 -7
  584. package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
  585. package/dist/r/src/components/ui/alert/alert.tsx +4 -3
  586. package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
  587. package/dist/r/src/components/ui/badge/badge.tsx +2 -2
  588. package/dist/r/src/components/ui/board/board.tsx +17 -5
  589. package/dist/r/src/components/ui/bubble/bubble.tsx +6 -4
  590. package/dist/r/src/components/ui/button/button.tsx +2 -2
  591. package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
  592. package/dist/r/src/components/ui/calendar/calendar.tsx +2 -2
  593. package/dist/r/src/components/ui/callout/callout.tsx +4 -4
  594. package/dist/r/src/components/ui/card/card.tsx +2 -2
  595. package/dist/r/src/components/ui/carousel/carousel.tsx +6 -6
  596. package/dist/r/src/components/ui/chart/chart-options.ts +9 -9
  597. package/dist/r/src/components/ui/chart/chart.tsx +14 -1
  598. package/dist/r/src/components/ui/checkbox/checkbox.tsx +9 -6
  599. package/dist/r/src/components/ui/code-block/code-block.tsx +14 -7
  600. package/dist/r/src/components/ui/command/command.tsx +7 -7
  601. package/dist/r/src/components/ui/context-menu/context-menu.tsx +1 -1
  602. package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -3
  603. package/dist/r/src/components/ui/dialog/dialog-layer.tsx +27 -1
  604. package/dist/r/src/components/ui/dialog/dialog.tsx +4 -3
  605. package/dist/r/src/components/ui/diff-block/diff-block.tsx +6 -6
  606. package/dist/r/src/components/ui/drawer/drawer.tsx +3 -3
  607. package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
  608. package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
  609. package/dist/r/src/components/ui/empty/empty-state.tsx +23 -18
  610. package/dist/r/src/components/ui/empty/empty.tsx +1 -1
  611. package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +5 -1
  612. package/dist/r/src/components/ui/field/field.tsx +15 -7
  613. package/dist/r/src/components/ui/field/number-field.tsx +1 -1
  614. package/dist/r/src/components/ui/hover-card/hover-card.tsx +1 -1
  615. package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
  616. package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
  617. package/dist/r/src/components/ui/item/item.tsx +24 -18
  618. package/dist/r/src/components/ui/kbd/kbd.tsx +2 -2
  619. package/dist/r/src/components/ui/kbd/platform-modifier.ts +3 -3
  620. package/dist/r/src/components/ui/label/label.tsx +1 -1
  621. package/dist/r/src/components/ui/marker/marker.tsx +9 -5
  622. package/dist/r/src/components/ui/menubar/menubar.tsx +2 -2
  623. package/dist/r/src/components/ui/message/message.tsx +14 -13
  624. package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
  625. package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
  626. package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
  627. package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
  628. package/dist/r/src/components/ui/popover/popover.tsx +4 -2
  629. package/dist/r/src/components/ui/progress/progress.tsx +5 -3
  630. package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +10 -5
  631. package/dist/r/src/components/ui/radio-group/radio-group.tsx +9 -6
  632. package/dist/r/src/components/ui/resizable/resizable.tsx +5 -5
  633. package/dist/r/src/components/ui/select/select.tsx +4 -4
  634. package/dist/r/src/components/ui/sheet/sheet.tsx +4 -3
  635. package/dist/r/src/components/ui/skeleton/skeleton.tsx +1 -1
  636. package/dist/r/src/components/ui/slider/slider.tsx +1 -1
  637. package/dist/r/src/components/ui/spinner/spinner.tsx +1 -1
  638. package/dist/r/src/components/ui/status-chip/status-chip.tsx +13 -13
  639. package/dist/r/src/components/ui/switch/switch.tsx +9 -6
  640. package/dist/r/src/components/ui/tabs/tabs.tsx +4 -4
  641. package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
  642. package/dist/r/src/components/ui/toast/toast.tsx +6 -4
  643. package/dist/r/src/components/ui/toggle/toggle.tsx +1 -1
  644. package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
  645. package/dist/r/src/components/ui/tooltip/index.ts +1 -0
  646. package/dist/r/src/components/ui/tooltip/tooltip.tsx +6 -4
  647. package/dist/r/src/components/ui/trace/trace.tsx +13 -9
  648. package/dist/r/src/components/ui/typography/typography.tsx +5 -5
  649. package/dist/r/src/lib/accent-presets.ts +1 -1
  650. package/dist/r/src/lib/accent-roles.ts +2 -2
  651. package/dist/r/src/lib/appearance-font-settings.ts +18 -7
  652. package/dist/r/src/lib/create-poll.ts +150 -0
  653. package/dist/r/src/lib/font-zoom.ts +3 -3
  654. package/dist/r/src/lib/keyed-rows.ts +3 -2
  655. package/dist/r/src/lib/overlay.ts +5 -5
  656. package/dist/r/src/lib/preference-store.ts +2 -2
  657. package/dist/r/src/lib/safe-script.ts +2 -2
  658. package/dist/r/src/lib/scroll-geometry.ts +1 -1
  659. package/dist/r/src/lib/text.ts +1 -1
  660. package/dist/r/src/lib/theme-accents.ts +3 -3
  661. package/dist/r/src/lib/theme-css.ts +2 -2
  662. package/dist/r/src/lib/theme-defaults.ts +4 -4
  663. package/dist/r/src/lib/theme-engine-light.ts +2 -2
  664. package/dist/r/src/lib/theme-engine.ts +2 -2
  665. package/dist/r/src/lib/theme-projection.ts +2 -2
  666. package/dist/r/src/lib/theme-records.ts +2 -2
  667. package/dist/r/src/lib/theme-types.ts +1 -1
  668. package/dist/r/src/lib/themes.ts +14 -14
  669. package/dist/r/src/lib/tokens.ts +2 -2
  670. package/dist/r/src/lib/tooltip-focus-gate.ts +11 -11
  671. package/dist/r/src/lib/utils.ts +1 -1
  672. package/dist/r/src/lib/variants.ts +4 -4
  673. package/dist/r/src/lib/version-notes.ts +4 -4
  674. package/dist/r/src/styles/base.css +12 -43
  675. package/dist/r/src/styles/fonts.css +1 -1
  676. package/dist/r/src/styles/theme.css +35 -35
  677. package/dist/r/tooltip.json +5 -0
  678. package/package.json +2 -1
  679. package/registry.json +11 -0
  680. package/src/components/composites/account-menu/account-menu.tsx +22 -2
  681. package/src/components/composites/action-button/action-button.tsx +124 -78
  682. package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
  683. package/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
  684. package/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
  685. package/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
  686. package/src/components/composites/appearance-editor/appearance-types.ts +7 -7
  687. package/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
  688. package/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
  689. package/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
  690. package/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
  691. package/src/components/composites/chat/chat.tsx +15 -9
  692. package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  693. package/src/components/composites/checkpoint/checkpoint.tsx +2 -2
  694. package/src/components/composites/confirmation/confirmation.tsx +8 -4
  695. package/src/components/composites/context/context.tsx +2 -2
  696. package/src/components/composites/file-tree/build-file-tree.ts +1 -1
  697. package/src/components/composites/file-tree/file-tree.tsx +16 -2
  698. package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  699. package/src/components/composites/inline-citation/citation.ts +1 -1
  700. package/src/components/composites/inline-citation/inline-citation.tsx +2 -2
  701. package/src/components/composites/list-row/list-row-control.tsx +31 -22
  702. package/src/components/composites/list-row/list-row.tsx +69 -73
  703. package/src/components/composites/message-scroller/message-scroller.tsx +1 -1
  704. package/src/components/composites/model-selector/model-selector.tsx +4 -4
  705. package/src/components/composites/model-selector/models.ts +2 -2
  706. package/src/components/composites/plan/plan.tsx +19 -11
  707. package/src/components/composites/queue/queue.tsx +5 -3
  708. package/src/components/composites/reasoning/reasoning.tsx +4 -4
  709. package/src/components/composites/settings/settings-navigation.tsx +57 -17
  710. package/src/components/composites/settings/settings.tsx +14 -6
  711. package/src/components/composites/sources/source.ts +1 -1
  712. package/src/components/composites/sources/sources.tsx +2 -2
  713. package/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
  714. package/src/components/composites/stack-trace/stack-trace.tsx +3 -3
  715. package/src/components/composites/stat/stat.tsx +20 -16
  716. package/src/components/composites/subagent/subagent.tsx +6 -4
  717. package/src/components/composites/task/task.tsx +1 -1
  718. package/src/components/composites/terminal/ansi.ts +3 -3
  719. package/src/components/composites/terminal/terminal-model.ts +3 -3
  720. package/src/components/composites/terminal/terminal.tsx +24 -12
  721. package/src/components/composites/test-results/test-results-model.ts +4 -4
  722. package/src/components/composites/test-results/test-results.tsx +1 -1
  723. package/src/components/composites/tool/tool.tsx +4 -4
  724. package/src/components/composites/tree/tree.tsx +31 -15
  725. package/src/components/composites/update-dialog/channel-control.tsx +17 -8
  726. package/src/components/composites/update-dialog/index.ts +1 -0
  727. package/src/components/composites/update-dialog/update-dialog.tsx +7 -7
  728. package/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
  729. package/src/components/conversation/busy-send-button.tsx +6 -2
  730. package/src/components/conversation/composer-menu.tsx +3 -3
  731. package/src/components/conversation/conversation-avatar.tsx +1 -1
  732. package/src/components/conversation/conversation-pane.tsx +8 -5
  733. package/src/components/conversation/conversation-surface.tsx +2 -2
  734. package/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
  735. package/src/components/conversation/message-composer.tsx +4 -6
  736. package/src/components/conversation/message-row.tsx +34 -26
  737. package/src/components/conversation/scroll-follow-core.ts +8 -8
  738. package/src/components/conversation/scroll-follow.ts +24 -8
  739. package/src/components/conversation/thread-panel.tsx +7 -3
  740. package/src/components/conversation/transcript-composition.tsx +4 -2
  741. package/src/components/layout/app-shell/app-shell.tsx +1 -1
  742. package/src/components/layout/app-shell/skip-link.tsx +3 -2
  743. package/src/components/layout/page/page.tsx +15 -11
  744. package/src/components/layout/panel/panel.tsx +1 -1
  745. package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
  746. package/src/components/layout/side-rail/side-rail-context.ts +1 -1
  747. package/src/components/layout/side-rail/side-rail.tsx +38 -22
  748. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
  749. package/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
  750. package/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
  751. package/src/components/layout/split-layout/split-layout.tsx +6 -2
  752. package/src/components/layout/status-bar/status-bar.tsx +1 -1
  753. package/src/components/layout/top-bar/top-bar.tsx +8 -6
  754. package/src/components/motion/presence.tsx +2 -2
  755. package/src/components/theme/appearance-panel.tsx +5 -5
  756. package/src/components/theme/lazy.ts +1 -1
  757. package/src/components/theme/theme-catalogue-source.ts +2 -2
  758. package/src/components/theme/theme-context.ts +3 -3
  759. package/src/components/theme/theme-document.ts +22 -11
  760. package/src/components/theme/theme-picker.tsx +5 -5
  761. package/src/components/theme/theme-provider-value.ts +15 -3
  762. package/src/components/theme/theme-script.ts +20 -0
  763. package/src/components/theme/theme-state.ts +7 -7
  764. package/src/components/theme/theme-toggle.tsx +1 -1
  765. package/src/components/ui/alert/alert.tsx +4 -3
  766. package/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
  767. package/src/components/ui/badge/badge.tsx +2 -2
  768. package/src/components/ui/board/board.tsx +17 -5
  769. package/src/components/ui/bubble/bubble.tsx +6 -4
  770. package/src/components/ui/button/button.tsx +2 -2
  771. package/src/components/ui/button-group/button-group.tsx +1 -1
  772. package/src/components/ui/calendar/calendar.tsx +2 -2
  773. package/src/components/ui/callout/callout.tsx +4 -4
  774. package/src/components/ui/card/card.tsx +2 -2
  775. package/src/components/ui/carousel/carousel.tsx +6 -6
  776. package/src/components/ui/chart/chart-options.ts +9 -9
  777. package/src/components/ui/chart/chart.tsx +14 -1
  778. package/src/components/ui/checkbox/checkbox.tsx +9 -6
  779. package/src/components/ui/code-block/code-block.tsx +14 -7
  780. package/src/components/ui/command/command.tsx +7 -7
  781. package/src/components/ui/context-menu/context-menu.tsx +1 -1
  782. package/src/components/ui/detail-panel/detail-panel.tsx +5 -3
  783. package/src/components/ui/dialog/dialog-layer.tsx +27 -1
  784. package/src/components/ui/dialog/dialog.tsx +4 -3
  785. package/src/components/ui/diff-block/diff-block.tsx +6 -6
  786. package/src/components/ui/drawer/drawer.tsx +3 -3
  787. package/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
  788. package/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
  789. package/src/components/ui/empty/empty-state.tsx +23 -18
  790. package/src/components/ui/empty/empty.tsx +1 -1
  791. package/src/components/ui/entity-icon/entity-icon.tsx +5 -1
  792. package/src/components/ui/field/field.tsx +15 -7
  793. package/src/components/ui/field/number-field.tsx +1 -1
  794. package/src/components/ui/hover-card/hover-card.tsx +1 -1
  795. package/src/components/ui/input-group/input-group.tsx +1 -1
  796. package/src/components/ui/input-otp/input-otp.tsx +1 -1
  797. package/src/components/ui/item/item.tsx +24 -18
  798. package/src/components/ui/kbd/kbd.tsx +2 -2
  799. package/src/components/ui/kbd/platform-modifier.ts +3 -3
  800. package/src/components/ui/label/label.tsx +1 -1
  801. package/src/components/ui/marker/marker.tsx +9 -5
  802. package/src/components/ui/menubar/menubar.tsx +2 -2
  803. package/src/components/ui/message/message.tsx +14 -13
  804. package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
  805. package/src/components/ui/native-select/native-select.tsx +1 -1
  806. package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
  807. package/src/components/ui/pagination/pagination.tsx +1 -1
  808. package/src/components/ui/popover/popover.tsx +4 -2
  809. package/src/components/ui/progress/progress.tsx +5 -3
  810. package/src/components/ui/questionnaire/questionnaire.tsx +10 -5
  811. package/src/components/ui/radio-group/radio-group.tsx +9 -6
  812. package/src/components/ui/resizable/resizable.tsx +5 -5
  813. package/src/components/ui/select/select.tsx +4 -4
  814. package/src/components/ui/sheet/sheet.tsx +4 -3
  815. package/src/components/ui/skeleton/skeleton.tsx +1 -1
  816. package/src/components/ui/slider/slider.tsx +1 -1
  817. package/src/components/ui/spinner/spinner.tsx +1 -1
  818. package/src/components/ui/status-chip/status-chip.tsx +13 -13
  819. package/src/components/ui/switch/switch.tsx +9 -6
  820. package/src/components/ui/tabs/tabs.tsx +4 -4
  821. package/src/components/ui/textarea/textarea.tsx +1 -1
  822. package/src/components/ui/toast/toast.tsx +6 -4
  823. package/src/components/ui/toggle/toggle.tsx +1 -1
  824. package/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
  825. package/src/components/ui/tooltip/index.ts +1 -0
  826. package/src/components/ui/tooltip/tooltip.tsx +6 -4
  827. package/src/components/ui/trace/trace.tsx +13 -9
  828. package/src/components/ui/typography/typography.tsx +5 -5
  829. package/src/index.ts +1 -0
  830. package/src/lib/accent-presets.ts +1 -1
  831. package/src/lib/accent-roles.ts +2 -2
  832. package/src/lib/appearance-font-settings.ts +18 -7
  833. package/src/lib/create-poll.ts +150 -0
  834. package/src/lib/font-zoom.ts +3 -3
  835. package/src/lib/keyed-rows.ts +3 -2
  836. package/src/lib/overlay.ts +5 -5
  837. package/src/lib/preference-store.ts +2 -2
  838. package/src/lib/safe-script.ts +2 -2
  839. package/src/lib/scroll-geometry.ts +1 -1
  840. package/src/lib/text.ts +1 -1
  841. package/src/lib/theme-accents.ts +3 -3
  842. package/src/lib/theme-css.ts +2 -2
  843. package/src/lib/theme-defaults.ts +4 -4
  844. package/src/lib/theme-engine-light.ts +2 -2
  845. package/src/lib/theme-engine.ts +2 -2
  846. package/src/lib/theme-projection.ts +2 -2
  847. package/src/lib/theme-records.ts +2 -2
  848. package/src/lib/theme-types.ts +1 -1
  849. package/src/lib/themes.ts +14 -14
  850. package/src/lib/tokens.ts +2 -2
  851. package/src/lib/tooltip-focus-gate.ts +11 -11
  852. package/src/lib/utils.ts +1 -1
  853. package/src/lib/variants.ts +4 -4
  854. package/src/lib/version-notes.ts +4 -4
  855. package/src/lint/index.ts +1 -1
  856. package/src/styles/base.css +12 -43
  857. package/src/styles/fonts.css +1 -1
  858. package/src/styles/theme.css +35 -35
  859. package/src/styles/themes/aardvark-blue.css +98 -0
  860. package/src/styles/themes/aardvark-ink.css +98 -0
  861. package/src/styles/themes/adea-dark-colorblind.css +98 -0
  862. package/src/styles/themes/adea-dark-high-contrast.css +98 -0
  863. package/src/styles/themes/adea-dark.css +47 -0
  864. package/src/styles/themes/adea-light-colorblind.css +141 -0
  865. package/src/styles/themes/adea-light-high-contrast.css +141 -0
  866. package/src/styles/themes/adea-light.css +47 -0
  867. package/src/styles/themes/ayu-light.css +141 -0
  868. package/src/styles/themes/ayu-mirage.css +98 -0
  869. package/src/styles/themes/ayu.css +98 -0
  870. package/src/styles/themes/catppuccin-frappe.css +98 -0
  871. package/src/styles/themes/catppuccin-latte.css +141 -0
  872. package/src/styles/themes/catppuccin-macchiato.css +98 -0
  873. package/src/styles/themes/catppuccin-mocha.css +98 -0
  874. package/src/styles/themes/dracula.css +98 -0
  875. package/src/styles/themes/everforest-dark.css +98 -0
  876. package/src/styles/themes/everforest-light.css +141 -0
  877. package/src/styles/themes/gruvbox-dark.css +98 -0
  878. package/src/styles/themes/gruvbox-light.css +141 -0
  879. package/src/styles/themes/kanagawa.css +98 -0
  880. package/src/styles/themes/monokai.css +98 -0
  881. package/src/styles/themes/nord-light.css +141 -0
  882. package/src/styles/themes/nord.css +98 -0
  883. package/src/styles/themes/one-dark.css +98 -0
  884. package/src/styles/themes/rosepine-dawn.css +141 -0
  885. package/src/styles/themes/rosepine-moon.css +98 -0
  886. package/src/styles/themes/rosepine.css +98 -0
  887. package/src/styles/themes/solarized-dark.css +98 -0
  888. package/src/styles/themes/solarized-light.css +141 -0
  889. package/src/styles/themes/tokyonight-day.css +141 -0
  890. package/src/styles/themes/tokyonight-night.css +98 -0
  891. package/src/styles/themes/tokyonight-storm.css +98 -0
  892. package/src/styles/themes/vesper.css +98 -0
package/README.md CHANGED
@@ -7,15 +7,23 @@ their domain compositions, persistence, services, and native capabilities.
7
7
  bun add @adea-ai/ui
8
8
  ```
9
9
 
10
- SolidJS, Tailwind v4, Kobalte, corvu. No runtime dependency on a framework of
11
- its own — `solid-js` is a peer, and the four heavy optional peers (`chart.js`,
10
+ Built on SolidJS, Tailwind v4, Kobalte and corvu. `solid-js` is a peer, and the
11
+ four heavy optional peers (`chart.js`,
12
12
  `embla-carousel`, `embla-carousel-solid`, `solid-chartjs`) are marked optional
13
13
  so installing the library does not drag in a charting or carousel engine you
14
14
  never use.
15
15
 
16
- ## The short version
16
+ ## Contents
17
17
 
18
- Import the stylesheet, wrap your app in the provider, done.
18
+ - [Getting started](#getting-started) and [entry points](#entry-points)
19
+ - [Theming](#theming) and [fonts](#fonts)
20
+ - Components: [forms and navigation](#forms-and-navigation), [catalog browser](#catalog-browser), [composer](#composer), [transcript](#transcript), [split layout](#split-layout), [scene controls](#scene-controls)
21
+ - [Package checks](#package-checks)
22
+ - [Adding a component](#adding-a-component) and [reviewing it](#reviewing-it)
23
+
24
+ ## Getting started
25
+
26
+ Import the stylesheet and wrap your app in the provider.
19
27
 
20
28
  ```tsx
21
29
  import { ThemeProvider } from '@adea-ai/ui/components/theme'
@@ -34,6 +42,24 @@ export function App() {
34
42
  persists the choice. Without it you get the two default variants and nothing
35
43
  else.
36
44
 
45
+ Tailwind ignores dependency directories by default. Register the component
46
+ directories your application uses in its stylesheet, relative to that stylesheet:
47
+
48
+ ```css
49
+ @import 'tailwindcss';
50
+ @import '@adea-ai/ui/theme.css';
51
+ @import '@adea-ai/ui/base.css';
52
+ @import '@adea-ai/ui/appearance-font-settings.css'; /* optional: shared font roles and Appearance controls */
53
+ @source '../node_modules/@adea-ai/ui/src/components/ui/button';
54
+ ```
55
+
56
+ `globals.css` combines Tailwind, base styles, and theme tokens. Fonts require a
57
+ separate explicit `@adea-ai/ui/fonts.css` import. The packed-artifact gate expands
58
+ all component and library export conditions and rejects leaked story/test files,
59
+ including declaration output.
60
+
61
+ ## Entry points
62
+
37
63
  Folder subpaths such as `@adea-ai/ui/components/ui/button` resolve the folder's
38
64
  public index under the types, Solid source, development, and compiled conditions.
39
65
  The package includes source for Solid compilation and Tailwind discovery, and
@@ -45,7 +71,201 @@ For shortcut labels in server-side or other non-UI code, import
45
71
  This entry does not load the keyboard components; the keyboard folder entry
46
72
  continues to export the same helper for component consumers.
47
73
 
48
- ## Native select
74
+ Charts and carousels are exported only from their subpaths, so root imports
75
+ work without their optional peers:
76
+
77
+ ```tsx
78
+ import { Button } from '@adea-ai/ui'
79
+ import { LineChart } from '@adea-ai/ui/components/ui/chart'
80
+ import { Carousel, CarouselSlide } from '@adea-ai/ui/components/ui/carousel'
81
+ ```
82
+
83
+ Install `chart.js` and `solid-chartjs` for charts, or `embla-carousel` and
84
+ `embla-carousel-solid` for carousels. Their helpers and types live on the same
85
+ subpaths.
86
+
87
+ ### Split-layout tree imports
88
+
89
+ Scoped persistence decoders can import `MAX_LAYOUT_LEAVES`, `MAX_LAYOUT_DEPTH`,
90
+ `MIN_SPLIT_RATIO`, `MAX_SPLIT_RATIO`, `listLeaves`, `countLeaves`, `layoutDepth`,
91
+ and the opaque tree types from
92
+ `@adea-ai/ui/components/layout/split-layout/tree`. This read-only entry has no
93
+ UI runtime, renderer, or pane-editing dependencies. The existing `/model` entry
94
+ re-exports the same functions and types for compatibility. Use `/model` for
95
+ split, close, move, resize, and undo operations; use the component entry when
96
+ rendering the layout.
97
+
98
+ ## Theming
99
+
100
+ The catalogue is 34 themes across two appearances, grouped into families. The
101
+ provider takes an initial selection and every axis is a plain value:
102
+
103
+ ```tsx
104
+ <ThemeProvider
105
+ initial={{
106
+ appearance: 'system', // 'light' | 'dark' | 'system'
107
+ lightThemeId: 'adea-light',
108
+ darkThemeId: 'adea-dark',
109
+ accent: 'theme', // or 'violet' | 'blue' | 'green' | 'amber' | 'cyan' | 'pink',
110
+ // or a theme-carried accent such as 'ansi-blue'
111
+ fonts: {
112
+ ui: { family: 'system', size: 14 },
113
+ content: { family: 'system', size: 14 },
114
+ code: { family: 'system', size: 12 },
115
+ },
116
+ }}
117
+ >
118
+ ```
119
+
120
+ | Axis | Values | How it is applied |
121
+ | ---------- | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
122
+ | Appearance | `light`, `dark`, `system` | a `dark` class plus `color-scheme` on `<html>` |
123
+ | Theme | any of the 34 catalogue ids | the variant's tokens, written as custom properties on `<html>` |
124
+ | Accent | `theme` (follow the variant), one of six presets, or an accent the theme pair carries (`ansi-blue`…) | a `data-accent` attribute on `<html>`, plus the resolved roles as custom properties |
125
+ | Fonts | UI, content and code family ids from the shared catalogue; sizes from 10–32px | Stable `data-*-font` ids plus resolved `--font-*` family and pixel-size properties |
126
+
127
+ Older single-font `font` preferences remain readable and migrate their family to
128
+ the UI axis; new preferences store `fonts` with one family and size per axis.
129
+ Canonical size properties stay in pixels for native editor integrations; the
130
+ shared text tokens use rem-relative ratios so browser root-text enlargement still
131
+ scales UI, prose, keyboard keys and code.
132
+
133
+ Read and change the current selection with `useTheme()`:
134
+
135
+ ```tsx
136
+ const { selection, resolvedAppearance, setSelection, themes, themeAccents } = useTheme()
137
+ setSelection({ accent: 'amber' })
138
+ ```
139
+
140
+ `themeAccents()` lists the accents the selected light/dark theme pair carries
141
+ itself (`@adea-ai/themes`' `themeAccentPresets`): the palette's own blue,
142
+ magenta, cyan and green, offered only when both themes clear the catalogue's
143
+ accent floors. Their ids are role-shaped, so `ansi-blue` follows a theme switch
144
+ to the new theme's blue; a slot the new pair cannot offer falls back to the
145
+ theme's own primary. The primary grid is the theme default plus five standard
146
+ presets; Violet remains available under Additional colors, and theme accents
147
+ have their own group.
148
+
149
+ Two components ship for the settings surface: `AppearancePanel` is the whole
150
+ appearance view, and `ThemeToggle` is the light/dark switch on its own.
151
+
152
+ `SettingsLayout` composes a controlled vertical tab root, grouped `SettingsNavigation`,
153
+ and a scrollable panel viewport. Supply the selected `value`, `onChange`, navigation
154
+ groups, and matching `TabsContent` panels. The host owns URL or preference updates
155
+ and panel content; below 48rem of viewport width the rail becomes a horizontal,
156
+ scrollable strip of tabs above the panels (groups in order, Left/Right keys,
157
+ `aria-orientation="horizontal"`), and `navigationLayout="rail" | "strip"` pins one
158
+ shape at every width. The layout reports repeated activation through `onReselect`
159
+ and reveals the selected row on either axis by default. Use `SettingsNavigation`
160
+ directly when you already own the surrounding tabs composition; it follows the
161
+ enclosing `Tabs` orientation.
162
+ Shared tabs associate panels with custom trigger IDs in browser and server renders;
163
+ an explicit panel `aria-labelledby` takes precedence. Independent tab roots keep
164
+ their associations separate.
165
+
166
+ ### Controlled appearance mode
167
+
168
+ `ThemeModeToggle` provides the shared light/dark/system selector for hosts that
169
+ own their preference provider and storage. Pass `mode` and `onModeChange`; the
170
+ control owns roving keyboard focus, pressed state and explanatory tooltips. It
171
+ does not require or mount the shared `ThemeProvider`. `ThemeToggle` retains its
172
+ existing provider-bound API.
173
+
174
+ ### Controlled appearance editor
175
+
176
+ `AppearanceEditor` and `AppearancePopover` retain the accepted Zeron-derived
177
+ System/Light/Dark miniature cards, independent light/dark theme rows, palette
178
+ swatches, default/preset/custom accent choices and Theme default/Frosted/Opaque
179
+ surface choices. The popup supports live host preview and Save/Cancel/Reset;
180
+ Kobalte provides radio navigation, selection, dismissal and focus restoration. Since
181
+ its menus prevent Tab, the theme row carries Tab and Shift+Tab through the enclosing
182
+ dialog's focus order. `DropdownMenuContent.portalMount` keeps the theme menu within
183
+ its enclosing modal's accessible subtree.
184
+
185
+ Supply canonical `AdeaTheme` previews and `AdeaThemeRecord` choices.
186
+ `themeRecords`/`themeRecordById` export those records, and
187
+ `appearancePreviewThemes({ lightThemeId, darkThemeId, accent })` resolves a
188
+ draft's ids and accent, a preset or a theme-carried accent, into the two
189
+ preview themes, exactly as `ThemeProvider` would apply them; `withAccent` is the
190
+ overlay on its own. `builtinThemes` is the shadcn projection a document is
191
+ painted with, not an editor input. Pass `themeAccentOptions`,
192
+ `themeAccentsFor(lightThemeId, darkThemeId)`, to offer the accents the previewed
193
+ pair carries after the presets; the editor itself loads no catalogue or
194
+ normalization. Hosts own saved-ID recovery, validation, draft snapshots,
195
+ System appearance resolution, native transparency, live application tokens,
196
+ Save persistence and restoration on Cancel/dismissal. `saving`,
197
+ `saveDisabledReason`, `recoveryNotice`, `customAccentError`, and
198
+ `surfaceCapability` expose those outcomes; an unavailable import or Frosted
199
+ capability stays visibly unavailable. App-specific persisted versions and the
200
+ legacy `translucent` value need an app-owned adapter to the editor's `theme`
201
+ surface selection. The library does not silently migrate stored preferences.
202
+
203
+ A host recomposes the editor through props, never by forking it. Every option keeps
204
+ the default below, so an existing consumer renders as before:
205
+
206
+ | Prop | Default | What it changes |
207
+ | -------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
208
+ | `fontSettingsPlacement` | `inline` | `end` closes the option list with the typefaces, after Glass, Reduce transparency and Theme library. |
209
+ | `accentEntryStyle` | `swatches` | `labels` renders every choice as a named chip. `row` draws the presets as circles in one equally spaced line (it holds at 320px, where the grid wraps) and turns Custom into a button that opens the native colour selector: only a chosen colour changes the draft. |
210
+ | `showThemeDefaultAccent` | `true` | `false` drops the leading "Theme default" entry, for a host whose default accent already is a preset. |
211
+ | `showCustomAccentCaption` | `true` | `false` drops the "Custom" caption over the `swatches` style's custom chip. No effect on `labels` or `row`. |
212
+ | `showModeIcons` | `false` | A sun, moon or monitor glyph beside each mode card's label. |
213
+ | `triggerVariant` (popover) | `ghost` | `toolbar` holds the pressed rung while the sheet is open and repeats the palette glyph in the tooltip, like the other toolbar actions. |
214
+
215
+ `customAccentValue` seeds the native selector (`row`) and the draft the `swatches`
216
+ Custom chip commits; hand it your starting colour.
217
+
218
+ ### Avoiding the flash
219
+
220
+ A themed app has to know the appearance before the first paint, or it paints
221
+ once in the wrong mode. `themeScript` emits the inline script that does it:
222
+
223
+ ```tsx
224
+ <head>
225
+ <script innerHTML={themeScript('my-app-appearance')} />
226
+ </head>
227
+ ```
228
+
229
+ Pass the same key to `ThemeProvider` as `storageKey`, and the two agree.
230
+
231
+ ## Fonts
232
+
233
+ Font preference roles and font assets are separate opt-ins. Import
234
+ `appearance-font-settings.css` after the theme and base styles to enable the
235
+ shared UI/content/code projections and utilities. `globals.css` does not import
236
+ font assets; import `fonts.css` explicitly when those faces are wanted:
237
+
238
+ ```css
239
+ @import '@adea-ai/ui/theme.css';
240
+ @import '@adea-ai/ui/base.css';
241
+ @import '@adea-ai/ui/appearance-font-settings.css';
242
+ @import '@adea-ai/ui/fonts.css'; /* omit to bring your own */
243
+ ```
244
+
245
+ `appearance-font-settings.css` defaults `--font-ui`, `--font-content` and
246
+ `--font-code` to System and scales each text role. Import it after `theme.css` and
247
+ `base.css`, then apply settings with the shared runtime or prepaint helper; the
248
+ helper resolves catalogue ids to family tokens and writes canonical pixel sizes.
249
+ This stylesheet does not load any font files.
250
+ The `font-ui-size`, `font-content-size` and `font-code-size` entries in the token
251
+ gallery are runtime-projected properties: `applyAppearanceFontSettings` and
252
+ `fontSettingsBootstrapScript` write their pixel values from normalized font
253
+ settings. They are not fixed declarations in the theme stylesheet.
254
+ `--font-sans` and `--font-mono` remain compatibility aliases for UI and code.
255
+ The shared projection and prepaint helpers are exported from
256
+ `@adea-ai/ui/lib/appearance-font-settings`; hosts can normalize persisted ids,
257
+ apply the shared data attributes, resolve family ids through the published
258
+ `--font-family-*` tokens, and reuse the same bootstrap snippet without
259
+ duplicating catalogue rules.
260
+ For versioned host preferences, pass the expected version as the bootstrap
261
+ helper's second argument. Only an exact version match is applied before paint;
262
+ missing or unsupported records use the System defaults. Omitting the argument
263
+ retains the unversioned helper behavior.
264
+ Each UI, Content and Code chooser keeps the complete font catalogue, and Code
265
+ uses the exact selected catalogue family. Choose a `Mono` option when you want a
266
+ monospace face; `System` uses the platform's monospace counterpart for Code.
267
+
268
+ ## Forms and navigation
49
269
 
50
270
  Use `NativeSelect` for a compact list of known choices that should keep native
51
271
  keyboard, form submission, option, and label behavior:
@@ -83,8 +303,6 @@ ref props still apply to the input.
83
303
  `size="settings"` with `SettingsPage` for a wider,
84
304
  viewport-bounded settings surface; the shared layout keeps its panel content
85
305
  scrollable while the dialog title remains visible.
86
- The settings navigation and modal sizing browser contracts run against the
87
- packed artifact in both pull-request validation and publishing.
88
306
 
89
307
  `ThreadPanel.headerActions` accepts shared controls for host actions such as
90
308
  marking a thread unread. Closing the thread remains a separate labelled,
@@ -115,6 +333,22 @@ Ctrl/Cmd + arrow moves skip disabled columns without wrapping at the edges.
115
333
  After a controlled move settles, focus follows the moved card only when the
116
334
  source card owned focus; another focus or pointer action cancels restoration.
117
335
 
336
+ Square icon controls use the control-height tokens through the Tailwind `--size`
337
+ mapping; `--spacing-control-*` remains the separate inline-padding ladder.
338
+ Text controls, icon buttons and toggles share the same height in both densities.
339
+ Dimensions remain rem-based and follow the consumer's root font size. The browser
340
+ geometry lane checks the standard density rungs, heights and padding under both
341
+ themes/densities; the `2xl` touch target remains 48px under compact density.
342
+
343
+ On narrow screens, the shared `TopBar` keeps a usable middle Search target while
344
+ side groups scroll horizontally when their actions do not fit. Keyboard focus
345
+ reveals each action. Groups opt out of native window dragging.
346
+ Use `TopBarTitle align="center"` to center text within its slot; the host controls
347
+ slot placement. Use layout-only visibility classes when a title should yield
348
+ space to essential controls.
349
+
350
+ ## Catalog browser
351
+
118
352
  `CatalogBrowser` presents a host-owned searchable catalog with ordered category
119
353
  groups, discover/installed tabs, bounded group expansion, optional filters and
120
354
  supplemental tabs. Give `entries` the full set of detail records so opening an
@@ -198,179 +432,44 @@ const groups: readonly CatalogBrowserGroup<VerifiedPlugin>[] = /* visible filter
198
432
  The `CatalogBrowser` story demonstrates category expansion, search, separate
199
433
  installed content, a supplemental navigation surface, and host-provided details.
200
434
 
201
- Tailwind ignores dependency directories by default. Register the component
202
- directories your application uses in its stylesheet, relative to that stylesheet:
435
+ Catalog detail summaries place actions and feedback beneath identity on narrow
436
+ screens, preserving readable title/description flow. Grouped field sections keep
437
+ their content at the top while sharing the outline and dividers.
203
438
 
204
- ```css
205
- @import 'tailwindcss';
206
- @import '@adea-ai/ui/theme.css';
207
- @import '@adea-ai/ui/base.css';
208
- @import '@adea-ai/ui/appearance-font-settings.css'; /* optional: shared font roles and Appearance controls */
209
- @source '../node_modules/@adea-ai/ui/src/components/ui/button';
210
- ```
439
+ ## Composer
211
440
 
212
- `globals.css` combines Tailwind, base styles, and theme tokens. Fonts require a
213
- separate explicit `@adea-ai/ui/fonts.css` import. The packed-artifact gate expands
214
- all component and library export conditions and rejects leaked story/test files,
215
- including declaration output.
441
+ ### Chat composer
216
442
 
217
- ## Breaking root-export migration
443
+ `ChatComposer` translates the pinned Kiro composer hierarchy: knowledge context,
444
+ follow-ups and adjacent band, approval/notices, staged content, input/action
445
+ rows and the context shelf. It composes the existing IME and busy-action units.
446
+ Its optional controlled `collapse` contract unmounts input and shelf and replaces
447
+ them with a labeled bar showing the waiting draft's first line. Collapse keeps
448
+ the host draft and caret selection; `controlRef` exposes instance-scoped
449
+ `focus()`/`expandAndFocus()` instead of a global shortcut or broadcast.
218
450
 
219
- Chart and Carousel exports now live exclusively on their component subpaths.
220
- Core root imports work without their optional peers. Replace root imports:
451
+ The host supplies `value`, `onValueChange` and `onSubmit({text, action})`; it owns
452
+ attachments and runtime authority and clears its draft only after confirmation.
453
+ The shared input guards pending delivery, reports failure, visibly blocks
454
+ unsupported delivery and fences local feedback on `resetKey`. Enter follows the
455
+ controlled busy mode, while Ctrl/Cmd+Enter requests the other supported busy
456
+ action. `sendableActions` declares non-text payload eligibility per action: a
457
+ reference-only draft can send or queue without becoming steerable. Explicit false
458
+ also vetoes delivery when the draft contains text; alternate-action hints appear
459
+ only when that action is eligible. Mode selection
460
+ itself never fires. `approvalFocus` is host-derived
461
+ presentation, not a permission decision. Agent and model controls remain distinct
462
+ host contributions in `context`.
221
463
 
222
- ```tsx
223
- import { Button } from '@adea-ai/ui'
224
- import { LineChart } from '@adea-ai/ui/components/ui/chart'
225
- import { Carousel, CarouselSlide } from '@adea-ai/ui/components/ui/carousel'
226
- ```
227
-
228
- Install `chart.js` and `solid-chartjs` for charts, or `embla-carousel` and
229
- `embla-carousel-solid` for carousels. All chart helpers and types move with the
230
- chart entry; all carousel helpers and types move with the carousel entry.
231
- Folder export conditions, registry distribution and component behavior remain
232
- available. This is an intentional breaking export change, recorded in release
233
- notes through the breaking Conventional Commit, rather than a silent patch.
234
-
235
- ## Theming
236
-
237
- The catalogue is 34 themes across two appearances, grouped into families. The
238
- provider takes an initial selection and every axis is a plain value:
239
-
240
- ```tsx
241
- <ThemeProvider
242
- initial={{
243
- appearance: 'system', // 'light' | 'dark' | 'system'
244
- lightThemeId: 'adea-light',
245
- darkThemeId: 'adea-dark',
246
- accent: 'theme', // or 'violet' | 'blue' | 'green' | 'amber' | 'cyan' | 'pink',
247
- // or a theme-carried accent such as 'ansi-blue'
248
- fonts: {
249
- ui: { family: 'system', size: 14 },
250
- content: { family: 'system', size: 14 },
251
- code: { family: 'system', size: 12 },
252
- },
253
- }}
254
- >
255
- ```
256
-
257
- | Axis | Values | How it is applied |
258
- | ---------- | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
259
- | Appearance | `light`, `dark`, `system` | a `dark` class plus `color-scheme` on `<html>` |
260
- | Theme | any of the 34 catalogue ids | the variant's tokens, written as custom properties on `<html>` |
261
- | Accent | `theme` (follow the variant), one of six presets, or an accent the theme pair carries (`ansi-blue`…) | a `data-accent` attribute on `<html>`, plus the resolved roles as custom properties |
262
- | Fonts | UI, content and code family ids from the shared catalogue; sizes from 10–32px | Stable `data-*-font` ids plus resolved `--font-*` family and pixel-size properties |
263
-
264
- Older single-font `font` preferences remain readable and migrate their family to
265
- the UI axis; new preferences store `fonts` with one family and size per axis.
266
- Canonical size properties stay in pixels for native editor integrations; the
267
- shared text tokens use rem-relative ratios so browser root-text enlargement still
268
- scales UI, prose, keyboard keys and code.
269
-
270
- Read and change the current selection with `useTheme()`:
271
-
272
- ```tsx
273
- const { selection, resolvedAppearance, setSelection, themes, themeAccents } = useTheme()
274
- setSelection({ accent: 'amber' })
275
- ```
276
-
277
- `themeAccents()` lists the accents the selected light/dark theme pair carries
278
- itself (`@adea-ai/themes`' `themeAccentPresets`): the palette's own blue,
279
- magenta, cyan and green, offered only when both themes clear the catalogue's
280
- accent floors. Their ids are role-shaped, so `ansi-blue` follows a theme switch
281
- to the new theme's blue; a slot the new pair cannot offer falls back to the
282
- theme's own primary. The primary grid is the theme default plus five standard
283
- presets; Violet remains available under Additional colors, and theme accents
284
- have their own group.
285
-
286
- Two components ship for the settings surface: `AppearancePanel` is the whole
287
- appearance view, and `ThemeToggle` is the light/dark switch on its own.
288
-
289
- `SettingsLayout` composes a controlled vertical tab root, grouped `SettingsNavigation`,
290
- and a scrollable panel viewport. Supply the selected `value`, `onChange`, navigation
291
- groups, and matching `TabsContent` panels. The host owns URL or preference updates
292
- and panel content; below 48rem of viewport width the rail becomes a horizontal,
293
- scrollable strip of tabs above the panels (groups in order, Left/Right keys,
294
- `aria-orientation="horizontal"`), and `navigationLayout="rail" | "strip"` pins one
295
- shape at every width. The layout reports repeated activation through `onReselect`
296
- and reveals the selected row on either axis by default. Use `SettingsNavigation`
297
- directly when you already own the surrounding tabs composition; it follows the
298
- enclosing `Tabs` orientation.
299
- Shared tabs associate panels with custom trigger IDs in browser and server renders;
300
- an explicit panel `aria-labelledby` takes precedence. Independent tab roots keep
301
- their associations separate.
302
-
303
- ### Avoiding the flash
304
-
305
- A themed app has to know the appearance before the first paint, or it paints
306
- once in the wrong mode. `themeScript` emits the inline script that does it:
307
-
308
- ```tsx
309
- <head>
310
- <script innerHTML={themeScript('my-app-appearance')} />
311
- </head>
312
- ```
313
-
314
- Pass the same key to `ThemeProvider` as `storageKey`, and the two agree.
315
-
316
- ## Fonts
317
-
318
- Font preference roles and font assets are separate opt-ins. Import
319
- `appearance-font-settings.css` after the theme and base styles to enable the
320
- shared UI/content/code projections and utilities. `globals.css` does not import
321
- font assets; import `fonts.css` explicitly when those faces are wanted:
322
-
323
- ```css
324
- @import '@adea-ai/ui/theme.css';
325
- @import '@adea-ai/ui/base.css';
326
- @import '@adea-ai/ui/appearance-font-settings.css';
327
- @import '@adea-ai/ui/fonts.css'; /* omit to bring your own */
328
- ```
329
-
330
- `appearance-font-settings.css` defaults `--font-ui`, `--font-content` and
331
- `--font-code` to System and scales each text role. Import it after `theme.css` and
332
- `base.css`, then apply settings with the shared runtime or prepaint helper; the
333
- helper resolves catalogue ids to family tokens and writes canonical pixel sizes.
334
- This stylesheet does not load any font files.
335
- The `font-ui-size`, `font-content-size` and `font-code-size` entries in the token
336
- gallery are runtime-projected properties: `applyAppearanceFontSettings` and
337
- `fontSettingsBootstrapScript` write their pixel values from normalized font
338
- settings. They are not fixed declarations in the theme stylesheet.
339
- `--font-sans` and `--font-mono` remain compatibility aliases for UI and code.
340
- The shared projection and prepaint helpers are exported from
341
- `@adea-ai/ui/lib/appearance-font-settings`; hosts can normalize persisted ids,
342
- apply the shared data attributes, resolve family ids through the published
343
- `--font-family-*` tokens, and reuse the same bootstrap snippet without
344
- duplicating catalogue rules.
345
- For versioned host preferences, pass the expected version as the bootstrap
346
- helper's second argument. Only an exact version match is applied before paint;
347
- missing or unsupported records use the System defaults. Omitting the argument
348
- retains the unversioned helper behavior.
349
- Each UI, Content and Code chooser keeps the complete font catalogue, and Code
350
- uses the exact selected catalogue family. Choose a `Mono` option when you want a
351
- monospace face; `System` uses the platform's monospace counterpart for Code.
464
+ Sent-prompt history, manual resize, uploads, voice and stop/resume are not part
465
+ of the shared composer; hosts build them.
352
466
 
353
- ## Adding a component
354
-
355
- `shadcn add` works against the published registry:
356
-
357
- ```sh
358
- bunx shadcn@latest add https://adea-ai.github.io/ui/r/button.json
359
- ```
360
-
361
- ## Reviewing it
362
-
363
- Every component, every variant and the token galleries are in the workshop:
364
-
365
- ```sh
366
- bun run storybook
367
- ```
368
-
369
- The toolbar switches theme, accent, fonts and density live, which is the
370
- fastest way to see how a component behaves across the catalogue rather than in
371
- one theme.
467
+ `sendableActions` is the host's payload eligibility contract: explicit `false`
468
+ refuses that action even with typed text, explicit `true` supports structured
469
+ payloads without text, and omitted entries fall back to nonempty text. Selecting
470
+ an unavailable action cannot override this contract through keyboard delivery.
372
471
 
373
- ## Composer keyboard behavior
472
+ ### Keyboard and IME
374
473
 
375
474
  `MessageComposer` preserves native IME candidate commits and suppresses sending
376
475
  during composition, including the 50 ms commit window when browser flags have
@@ -388,81 +487,7 @@ maximum; `inputResize` selects one of the Textarea's named resize behaviors.
388
487
  `Textarea` owns both its standalone and borderless `variant="composer"`
389
488
  appearances, so consumers do not need to style a nested control.
390
489
 
391
- Run `bun run test:components` for the built Solid component contracts in
392
- Chromium and WebKit. The event-sequence tests exercise browser handling of
393
- composition flags, timers and focus recovery; manual operating-system IME
394
- acceptance and each application's mounted chat journey remain separate gates.
395
-
396
- ## Transcript follow
397
-
398
- `ConversationSurface` follows streamed text, earlier-row growth, turn collapse
399
- and pane resizing using the KiroCrew plain-scroller decision contract. A
400
- deliberate upward scroll releases follow, including small moves near the bottom.
401
- Returning to the bottom or choosing **Jump to latest** re-arms it; the action
402
- does not estimate unread messages from pixel distance. Instant pins keep
403
- self-scroll attribution synchronized. Keyboard jumping returns focus to the
404
- transcript when its jump control disappears; automatic pins never move focus.
405
-
406
- `threshold` controls jump-button visibility (80px by default), independently of
407
- follow intent. `follow={false}` is fully inert: positioning belongs to the host,
408
- with no observer or mount pin. Re-enabling it explicitly re-arms at the bottom
409
- unless the host supplies `initialReadingPosition: { top, following }`. That
410
- snapshot is consumed only on mount, identity reset or follow re-enable; ordinary
411
- snapshot prop changes never reposition the reader. A parked snapshot releases
412
- follow until an explicit jump or native return to the bottom. The
413
- `onReadingPositionChange` callback reports native offset and actual follow intent,
414
- including small upward moves inside the jump visibility threshold. An optional
415
- `resetKey` resets follow or consumes the current identity's snapshot. Canonical
416
- session identity, durable restoration and virtualized transcript windows remain
417
- application-owned. `ref` and `onScroll` still reach the inner scroller.
418
-
419
- `bun run test:components` checks the built component in Chromium and WebKit.
420
- The `SurfaceFollowing` story exercises streaming, collapse and pane resizing;
421
- source/license/test provenance is recorded in `NOTICE`.
422
-
423
- ## Packed conversation pilot
424
-
425
- After building, run `bun run check:packed-conversation` to pack the actual npm
426
- artifact and install it into a disposable consumer without optional heavy peers.
427
- The composition imports the documented conversation subpath and builds under
428
- both default compiled and Solid source conditions. Headless Chromium and WebKit
429
- check failed-draft retention, recovery, native IME candidate defaults and commit
430
- latch, reader intent, keyboard jump focus and external Tailwind utility delivery.
431
- The output records retained module paths, JS/gzip/CSS totals, font exclusion and
432
- one Solid runtime. Its first measured baseline was 23,880/23,936 gzip JS bytes
433
- (compiled/Solid) and 40,203 raw CSS bytes. The fixture gates 26 KiB gzip JS and
434
- 42 KiB raw CSS, alongside independent module exclusions. The packed Apache license
435
- and all four selected KiroCrew attribution sections must be present. This pilot adds no server
436
- and removes its temporary consumer.
437
-
438
- A separate packed busy-action fixture imports only `BusySendButton`. Both
439
- conditions and engines check disabled firing with live mode selection, the scoped
440
- Tab cycle, focus restoration, action-only execution, unavailable-mode recovery
441
- and square-control token delivery (24 check groups, plus the conversation's 28).
442
- Its measured gzip JS baseline is 50,308/50,429 bytes with a separate 50 KiB cap;
443
- both fixtures share the 42 KiB raw CSS cap. Their module graphs must exclude each
444
- other's unrelated components as well as charts, editors, terminal/highlighter,
445
- theme JS, fonts and workshop assets. Tailwind scans the required external source
446
- folders explicitly; this check does not assume consumer node_modules scanning.
447
-
448
- This lane complements `check:packed-consumer`; it does not replace its required
449
- root imports, lightweight controls, overlay and shell checks. Chart and Carousel use explicit optional-engine subpaths; core root imports do not
450
- require their peers. The root-contract lane independently checks that API. These
451
- composition fixtures do not certify full donor Chat, rendered Dev/Chat state
452
- restoration or production adoption.
453
-
454
- ## Licence
455
-
456
- Apache-2.0.
457
-
458
- ## Busy composer action
459
-
460
- Square icon controls use the control-height tokens through the Tailwind `--size`
461
- mapping; `--spacing-control-*` remains the separate inline-padding ladder.
462
- Text controls, icon buttons and toggles share the same height in both densities.
463
- Dimensions remain rem-based and follow the consumer's root font size. The browser
464
- geometry lane checks the standard density rungs, heights and padding under both
465
- themes/densities; the `2xl` touch target remains 48px under compact density.
490
+ ### Busy send button
466
491
 
467
492
  `BusySendButton` translates KiroCrew's split fire/mode-picker composition. Pass
468
493
  controlled `mode`, `onModeChange` and `onFire`. `disabled` prevents firing while
@@ -473,138 +498,12 @@ when the host implements the described keyboard chord. The component adds no
473
498
  keyboard chord, preference storage, runtime command or queue. Persistence and
474
499
  same-session preference synchronization remain application-owned.
475
500
 
476
- ## Scene controls
477
-
478
- `SceneControls` composes movement, jump and optional zoom actions for a host
479
- scene. `onMovementChange(direction, pressed)` and `onJumpChange(pressed)` report
480
- held state from pointer or keyboard input; zoom callbacks fire once per
481
- activation. The shared controls capture pointers and release held actions on
482
- pointer end/cancel, lost capture, window blur and component cleanup. The host
483
- maps these typed callbacks to its own camera or movement system; the component
484
- does not synthesize keyboard events or access host globals. Each icon action
485
- uses the shared tooltip and a `2xl` 48px target that stays that size under
486
- compact density. Rounded movement and zoom group surfaces use the shared
487
- scrim treatment, which follows the library's reduced-transparency and fallback
488
- policy.
489
-
490
- ```tsx
491
- import { SceneControls } from '@adea-ai/ui/components/composites/scene-controls'
492
-
493
- ;<SceneControls
494
- onMovementChange={(direction, pressed) => setMovement(direction, pressed)}
495
- onJumpChange={(pressed) => setJumping(pressed)}
496
- onZoomIn={zoomIn}
497
- onZoomOut={zoomOut}
498
- />
499
- ```
500
-
501
- Labels default to English and can be supplied through `labels` for a host's
502
- locale. Hold actions have separate accessible names and explanatory tooltip
503
- strings so localization can describe the gesture without changing the action
504
- name. `SceneControls` owns control arrangement and interaction lifecycle;
505
- the host owns placement, persistence and scene behavior.
506
-
507
- After building, `bun run check:packed-scene-controls` verifies the installed npm
508
- archive under both compiled and Solid export conditions. It reuses the
509
- SceneControls and ActionButton consumer fixtures to check held callback release,
510
- localized labels, keyboard and pointer cleanup, and the opt-in touch target at
511
- 320px and 200% text. It also checks packed type declarations, license/NOTICE,
512
- native Node SSR, module separation, and the existing 40 KiB gzip / 32 KiB CSS
513
- control budgets. The ActionButton fixture with menus and popovers uses the
514
- existing 38 KiB gzip / 40 KiB CSS overlay budgets. These packed consumer checks
515
- do not replace product-level native-device acceptance.
516
-
517
501
  Kobalte owns the menu and focus lifecycle. Its Tab prevention lacks row cycling,
518
502
  so a menu-scoped donor translation cycles enabled rows without a document listener.
519
503
  Stories cover before-typing, working,
520
- unavailable and read-only states. `bun run test:components` checks the isolated
521
- Solid composition headlessly in Chromium and WebKit. Full Chat composition,
522
- packed distribution and real consumer/native acceptance remain separate gates.
523
-
524
- ## Composed Chat input pilot
525
-
526
- `ChatComposer` translates the pinned Kiro composer hierarchy: knowledge context,
527
- follow-ups and adjacent band, approval/notices, staged content, input/action
528
- rows and the context shelf. It composes the existing IME and busy-action units.
529
- Its optional controlled `collapse` contract unmounts input and shelf and replaces
530
- them with a labeled bar showing the waiting draft's first line. Collapse keeps
531
- the host draft and caret selection; `controlRef` exposes instance-scoped
532
- `focus()`/`expandAndFocus()` instead of a global shortcut or broadcast.
533
-
534
- The host supplies `value`, `onValueChange` and `onSubmit({text, action})`; it owns
535
- attachments and runtime authority and clears its draft only after confirmation.
536
- The shared input guards pending delivery, reports failure, visibly blocks
537
- unsupported delivery and fences local feedback on `resetKey`. Enter follows the
538
- controlled busy mode, while Ctrl/Cmd+Enter requests the other supported busy
539
- action. `sendableActions` declares non-text payload eligibility per action: a
540
- reference-only draft can send or queue without becoming steerable. Explicit false
541
- also vetoes delivery when the draft contains text; alternate-action hints appear
542
- only when that action is eligible. Mode selection
543
- itself never fires. `approvalFocus` is host-derived
544
- presentation, not a permission decision. Agent and model controls remain distinct
545
- host contributions in `context`.
546
-
547
- This is an unshipped release proposal for UI issue #21, dependent on the
548
- packing/IME/follow/busy PRs #16/#18/#19/#20. It is not full donor Chat,
549
- canonical runtime restoration or application adoption. The separately scoped,
550
- opt-in paste-token editor for issue #532 is documented below. Sent-prompt
551
- undo/history, manual resize, upload/skill/voice/optimizer and stop/resume
552
- operations are not claimed by these ports. They require their own mapped reusable
553
- behavior or application composition as the owning issues specify.
554
-
555
- The composed-input packed fixture checks collapse/draft retention, shelf unmount,
556
- focus restoration, failed-delivery recovery, controlled busy mode, its alternate
557
- gesture, native IME defaults and external Tailwind styles under both exports and
558
- both engines, including reference-only queue eligibility/steer refusal and the
559
- pending-delivery state with its explicitly scanned spinner CSS. On the current
560
- actual-tarball run, its gzip JS is 53,554 bytes compiled and 53,650 bytes Solid,
561
- below the unchanged 55,296-byte cap; CSS is 41,624 bytes under the shared 43,008-byte
562
- cap. The separate atomic fixture measures 58,922/59,043 gzip JS and 42,289 CSS.
563
- Its measured incremental cost over the same-condition composed fixture is
564
- 5,368/5,393 gzip JS, with 751 bytes of headroom under the accepted 6 KiB feature
565
- increment ceiling, and 665 additional CSS bytes. The gate applies the 6 KiB
566
- limit to that paired-fixture delta; modules retained in both bundles are excluded
567
- from the increment. The unchanged 54 KiB composed ceiling and shared 43,008-byte
568
- CSS ceiling still apply, and no production bundle cap has changed. The gate checks
569
- both export conditions and engines, reports native Node SSR separately, and keeps
570
- plain/atomic module ownership separate. Selected Kiro NOTICE attributions and the
571
- license must survive the tarball.
572
- Native CSS content sizing replaces live-field measurement on the two verified
573
- engines, both of which support it; legacy-engine fallback is not claimed.
574
-
575
- The release gate `bun run check:packed-conversation` installs the actual tarball
576
- with optional engines absent, checks compiled and Solid browser conditions in
577
- Chromium and WebKit, and compiles installed Solid source for native Node SSR.
578
- The expanded server output includes the input and context; collapsed output
579
- keeps the draft preview while omitting both, and token-mode SSR retains its
580
- highlight mirror and token text. Browser cases check opaque menu surfaces,
581
- control sizing, streaming follow, IME ownership, draft recovery, collapse/focus,
582
- busy actions, pending spinner styling, atomic token paste/pruning, accessible
583
- previews and the referenced-block submit snapshot.
584
-
585
- External CSS discovery includes the exact component files used by the fixture,
586
- Button's `src/lib/variants.ts`, the token editor and Tooltip source, and menu
587
- compositions' `src/lib/overlay.ts`.
588
- `node_modules` is excluded from automatic Tailwind scanning; importing a
589
- stylesheet alone does not discover these shared class strings. Stories are
590
- excluded from discovery. Earlier plain and busy CSS measurements were 37,060
591
- and 40,644 bytes; current composed and atomic fixture measurements are listed
592
- above, all under the existing shared 43,008-byte cap. Existing gzip JS caps
593
- remain 26, 50 and 54 KiB for the plain, busy and composed fixtures,
594
- respectively. This fixture proves the published component contract; mounted
595
- Adea/Cortana services, hydration and manual IME/assistive-technology acceptance
596
- remain application evidence lanes.
597
-
598
- `sendableActions` is the host's payload eligibility contract: explicit `false`
599
- refuses that action even with typed text, explicit `true` supports structured
600
- payloads without text, and omitted entries fall back to nonempty text. Selecting
601
- an unavailable action cannot override this contract through keyboard delivery.
602
-
603
- Local packed interaction gates require `bunx playwright install chromium webkit`
604
- after dependency installation. On Linux, use `--with-deps` when required system
605
- libraries are absent. Automation uses headless disposable browser contexts.
504
+ unavailable and read-only states.
606
505
 
607
- ## Paste-token model (issue #532 selected unit)
506
+ ### Paste tokens
608
507
 
609
508
  `@adea-ai/ui/components/conversation` also exports the pure paste-token model:
610
509
  `PasteBlock`, `isPasteBlock`, `countLines`, `shouldCollapse`, `nextSeq`,
@@ -614,10 +513,9 @@ threshold and marker constants. Hosts provide stable, bounded ASCII block IDs an
614
513
  draft state, persistence, message reconciliation and editor behavior. The model
615
514
  does not read storage or the clipboard, upload files, edit a textarea, or
616
515
  provide undo/history, previews or chips. The opt-in editor below composes this
617
- pure model with a controlled textarea. The selected source and Apache-2.0
618
- attribution are recorded in the issue #532 entries in `NOTICE`.
516
+ pure model with a controlled textarea. Source attribution is in `NOTICE`.
619
517
 
620
- ### Controlled paste-token composer (issue #532 selected editor)
518
+ #### Atomic paste editor
621
519
 
622
520
  `ChatComposer` keeps its plain-text API and bundle closure. Consumers that need
623
521
  atomic paste editing import `AtomicChatComposer` from the direct
@@ -629,7 +527,7 @@ referenced `blocks` before delivery starts. Both entries share a private
629
527
  composition shell; the UI owns no paste identity, history, storage, transport or
630
528
  undo state.
631
529
 
632
- The selected editor collapses text-only pastes at the existing three-line or
530
+ The editor collapses text-only pastes at the existing three-line or
633
531
  200-character thresholds, supports raw Cmd/Ctrl+Shift+V for the next paste,
634
532
  preserves standalone and Markdown quote-prefix placement, and keeps token
635
533
  deletion, navigation, selection and dropped-text replacement atomic.
@@ -645,25 +543,94 @@ while keeping focus in the textarea. The preview uses the existing tooltip
645
543
  portal without intercepting textarea input.
646
544
 
647
545
  Only `ClipboardEvent.clipboardData` text is read. Clipboard permissions,
648
- images/files, uploads, rich editors, persistence, sent-prompt history and
649
- application adoption remain with the host. The added `AtomicPasteTokens` story
650
- shows the controlled contract; component browser and packed conversation gates
651
- exercise Chromium and WebKit. The plain fixture retains its existing caps.
652
- Atomic whole-bundle and incremental costs are reported above; the packed gate
653
- enforces the accepted 6 KiB incremental ceiling while retaining the existing
654
- composed and CSS ceilings. Donor source/test provenance is in the issue #532
655
- editor entry in `NOTICE`.
656
-
657
- ## Binary layout model checkpoint
658
-
659
- UI issue #22 extracts the existing attributed bb/Muxy Adea adaptation rather
660
- than introducing another layout tree. `createLayoutState`, `splitPane`,
546
+ images and files, uploads, rich editing, persistence and sent-prompt history stay
547
+ with the host. The `AtomicPasteTokens` story shows the controlled contract.
548
+
549
+ ## Transcript
550
+
551
+ ### Following new output
552
+
553
+ `ConversationSurface` follows streamed text, earlier-row growth, turn collapse
554
+ and pane resizing using the KiroCrew plain-scroller decision contract. A
555
+ deliberate upward scroll releases follow, including small moves near the bottom.
556
+ Returning to the bottom or choosing **Jump to latest** re-arms it; the action
557
+ does not estimate unread messages from pixel distance. Instant pins keep
558
+ self-scroll attribution synchronized. Keyboard jumping returns focus to the
559
+ transcript when its jump control disappears; automatic pins never move focus.
560
+
561
+ `threshold` controls jump-button visibility (80px by default), independently of
562
+ follow intent. `follow={false}` is fully inert: positioning belongs to the host,
563
+ with no observer or mount pin. Re-enabling it explicitly re-arms at the bottom
564
+ unless the host supplies `initialReadingPosition: { top, following }`. That
565
+ snapshot is consumed only on mount, identity reset or follow re-enable; ordinary
566
+ snapshot prop changes never reposition the reader. A parked snapshot releases
567
+ follow until an explicit jump or native return to the bottom. The
568
+ `onReadingPositionChange` callback reports native offset and actual follow intent,
569
+ including small upward moves inside the jump visibility threshold. An optional
570
+ `resetKey` resets follow or consumes the current identity's snapshot. Canonical
571
+ session identity, durable restoration and virtualized transcript windows remain
572
+ application-owned. `ref` and `onScroll` still reach the inner scroller.
573
+
574
+ The `SurfaceFollowing` story shows streaming, collapse and pane resizing.
575
+
576
+ ### Transcript composition
577
+
578
+ `TranscriptComposition` assembles ordered host-classified rows, contiguous groups,
579
+ turn presentation and accessible fold controls. Import it from the public component
580
+ subpath:
581
+
582
+ ```tsx
583
+ import {
584
+ TranscriptComposition,
585
+ type TranscriptCompositionRendererProps,
586
+ type TranscriptRow,
587
+ } from '@adea-ai/ui/components/conversation/transcript-composition'
588
+
589
+ type Message = { text: string }
590
+ const rows: readonly TranscriptRow<Message>[] = [
591
+ { id: 'question-1', value: { text: 'Inspect the cursor.' }, opensTurn: 'reset' },
592
+ {
593
+ id: 'tool-1',
594
+ value: { text: 'Read the cursor.' },
595
+ fold: 'tool',
596
+ call: { phase: 'request', id: 'call-1' },
597
+ },
598
+ ]
599
+
600
+ function HostMessage(props: TranscriptCompositionRendererProps<Message>) {
601
+ return <article>{props.row.value.text}</article>
602
+ }
603
+
604
+ export function TranscriptPreview() {
605
+ return <TranscriptComposition rows={rows} renderRow={HostMessage} />
606
+ }
607
+ ```
608
+
609
+ Each row needs a stable unique `id` within its transcript. The host supplies the
610
+ Solid row component and classifies turn boundaries, calls, conclusions,
611
+ always-visible actions and redacted values. The renderer does not parse protocol
612
+ payloads or decide permission, session, event, delivery or success state.
613
+
614
+ Settled tool folds start closed and unmount their hidden row payloads. Live rows
615
+ stay open until the host marks them settled; an explicit row choice survives that
616
+ running-state transition. `foldMode="prose"` folds host-marked eligible activity
617
+ before a host-designated conclusion, leaving that conclusion visible.
618
+ The `foldState="collapsed"` command keeps hidden
619
+ content mounted. It folds eligible rows before a host-marked conclusion; without
620
+ that boundary it leaves prose visible and can still collapse explicitly classified
621
+ tool calls. Always-visible rows stay in place. `disclosure` plus
622
+ `onDisclosureChange` lets an application restore explicit choices from its own
623
+ durable store using `transcriptDisclosureKey`.
624
+
625
+ ## Split layout
626
+
627
+ The split-layout model (adapted from bb/Muxy; see `NOTICE`) is pure:
628
+ `createLayoutState`, `splitPane`,
661
629
  `movePane`, `closePane`, `undoClosePane`, `focusPane`, `swapPanes`,
662
- `resizeSplit`, `normalizeLayout` and the reading-order helpers are pure.
630
+ `resizeSplit`, `normalizeLayout` and the reading-order helpers.
663
631
  Leaves extend `{kind: 'leaf', id: string}` with any host-owned payload. Closing
664
632
  the last leaf calls an injected placeholder factory; it never selects a harness,
665
- starts a terminal or deletes a project. Eight leaves/depth eight and 10–90%
666
- ratios preserve the accepted contract. Construct or validate a tree before
633
+ starts a terminal or deletes a project. The limits are eight leaves, depth eight and 10 to 90 percent split ratios. Construct or validate a tree before
667
634
  editing it; the shared constructor validates visual structure and identities,
668
635
  while applications still decode/scoped-persist preferences and retain unknown
669
636
  future versions for recovery.
@@ -682,16 +649,10 @@ The new pane is focused, and the close-undo stack is cleared like other structur
682
649
  explicit-axis `splitPane` operation is unchanged for hosts that do not want an
683
650
  automatic reflow.
684
651
 
685
- The model and maintained accessible renderer are implemented in this draft.
686
- Stable content ownership and movement are exercised in component fixtures.
687
- The packed renderer gate includes the UI #20 size-token correction and the host
688
- presentation fixture. It checks the real package in compiled and Solid
689
- conditions; complete shell composition, production adoption and release remain
690
- required.
691
652
  No persistent state, session services, native drag region or host framework is
692
653
  imported into this model.
693
654
 
694
- ### Host pane presentation hooks
655
+ ### Host pane presentation
695
656
 
696
657
  Controlled split ratios survive host visibility changes and disposal. Corvu panel
697
658
  registration and unregistration callbacks with incomplete sizes, and callbacks
@@ -722,195 +683,123 @@ The `HostPresentation` story shows a decorative icon and host title, keyboard
722
683
  pane stops, and a workspace-specific separator name. A narrow-width component
723
684
  fixture also checks that a long host title does not widen its pane header.
724
685
 
725
- `bun run check:packed-layout` packs the real artifact, installs it in a disposable
726
- consumer with peers omitted and scripts disabled, and exercises the direct model
727
- subpath in native Node and the Solid source condition. It verifies zero runtime
728
- imports and a 3 KiB gzip model budget (measured baseline: 2,455 bytes). This is
729
- model-subpath evidence; it does not waive UI #16's package attribution/conditional
730
- export corrections or the separate root compatibility gate.
731
-
732
- `bun run check:packed-paste-model` installs the actual archive with peer and
733
- optional packages omitted. It verifies the direct
734
- `@adea-ai/ui/components/conversation/paste-tokens` entry in native Node and the
735
- Solid source condition, a strict clean TypeScript consumer without ambient types,
736
- round-trip/range/pruning and invalid-metadata behavior, and exact packed
737
- LICENSE/NOTICE fidelity. The pure compiled module retains zero runtime imports
738
- and stays within a 3 KiB gzip budget. This gate runs in local verification, CI
739
- and publication; textarea editing and production adoption remain separate gates.
740
-
741
- ### Controlled appearance editor
742
-
743
- `AppearanceEditor` and `AppearancePopover` retain the accepted Zeron-derived
744
- System/Light/Dark miniature cards, independent light/dark theme rows, palette
745
- swatches, default/preset/custom accent choices and Theme default/Frosted/Opaque
746
- surface choices. The popup supports live host preview and Save/Cancel/Reset;
747
- Kobalte provides radio navigation, selection, dismissal and focus restoration. Since
748
- its menus prevent Tab, the theme row carries Tab and Shift+Tab through the enclosing
749
- dialog's focus order. `DropdownMenuContent.portalMount` keeps the theme menu within
750
- its enclosing modal's accessible subtree.
751
-
752
- Supply canonical `AdeaTheme` previews and `AdeaThemeRecord` choices.
753
- `themeRecords`/`themeRecordById` export those records, and
754
- `appearancePreviewThemes({ lightThemeId, darkThemeId, accent })` resolves a
755
- draft's ids and accent — a preset or a theme-carried accent — into the two
756
- preview themes, exactly as `ThemeProvider` would apply them; `withAccent` is the
757
- overlay on its own. `builtinThemes` is the shadcn projection a document is
758
- painted with, not an editor input. Pass `themeAccentOptions` —
759
- `themeAccentsFor(lightThemeId, darkThemeId)` — to offer the accents the previewed
760
- pair carries after the presets; the editor itself loads no catalogue or
761
- normalization. Hosts own saved-ID recovery, validation, draft snapshots,
762
- System appearance resolution, native transparency, live application tokens,
763
- Save persistence and restoration on Cancel/dismissal. `saving`,
764
- `saveDisabledReason`, `recoveryNotice`, `customAccentError`, and
765
- `surfaceCapability` expose those outcomes; an unavailable import or Frosted
766
- capability stays visibly unavailable. App-specific persisted versions and the
767
- legacy `translucent` value need an app-owned adapter to the editor's `theme`
768
- surface selection. The library does not silently migrate stored preferences.
769
-
770
- A host recomposes the editor through props, never by forking it. Every option keeps
771
- the default below, so an existing consumer renders as before:
772
-
773
- | Prop | Default | What it changes |
774
- | -------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
775
- | `fontSettingsPlacement` | `inline` | `end` closes the option list with the typefaces, after Glass, Reduce transparency and Theme library. |
776
- | `accentEntryStyle` | `swatches` | `labels` renders every choice as a named chip. `row` draws the presets as circles in one equally spaced line (it holds at 320px, where the grid wraps) and turns Custom into a button that opens the native colour selector: only a chosen colour changes the draft. |
777
- | `showThemeDefaultAccent` | `true` | `false` drops the leading "Theme default" entry, for a host whose default accent already is a preset. |
778
- | `showCustomAccentCaption` | `true` | `false` drops the "Custom" caption over the `swatches` style's custom chip. No effect on `labels` or `row`. |
779
- | `showModeIcons` | `false` | A sun, moon or monitor glyph beside each mode card's label. |
780
- | `triggerVariant` (popover) | `ghost` | `toolbar` holds the pressed rung while the sheet is open and repeats the palette glyph in the tooltip, like the other toolbar actions. |
781
-
782
- `customAccentValue` seeds the native selector (`row`) and the draft the `swatches`
783
- Custom chip commits; hand it your starting colour.
784
-
785
- The component browser lane uses a real Vite/Solid/Tailwind build in headless
786
- Chromium without an app server. It checks keyboard mode selection, nested menu
787
- accessibility, focus and pointer dismissal, Escape, live-preview rollback,
788
- valid/invalid custom accents, Save pending state, mobile selection and
789
- 320/768/1024/1440px layouts. A separate native Node server-render fixture verifies the composed editor without
790
- browser or application globals. These checks
791
- are component integration evidence; they do not certify application persistence,
792
- native effects, packaged applications or manual assistive technology acceptance.
793
-
794
- ### Packed appearance contract
795
-
796
- `bun run check:packed-appearance` installs the actual tarball without optional
797
- Chart/Carousel engines, then runs all 25 component cases in Chromium and WebKit
798
- against compiled and Solid entries (100 execution runs total).
799
- The same fixture verifies
800
- Solid source SSR in native Node. Keyboard choices, live preview, save/cancel/reset,
801
- nested dismissal, validation, pending save, narrow layouts with reachable footer actions, and automated accessibility
802
- are covered. Production persistence, native transparency, hydration and manual AT
803
- remain application acceptance gates.
804
-
805
- The disposable host explicitly imports four isolated canonical theme records plus
806
- color/CSS adapters from published `@adea-ai/themes`; the UI composition imports only
807
- theme types. Both conditions retain one Solid runtime and one JS chunk, external CSS,
808
- no fonts or unrelated engines, and full donor attribution. The combined host/editor
809
- budgets are 64 KiB gzip JS and 50 KiB raw CSS; measured baselines are 63,599 gzip
810
- JS / 50,059 raw CSS bytes for compiled and 64,126 gzip JS / 50,059 raw CSS bytes
811
- for Solid, with complete discovery of nested controls and shared helpers. This
812
- includes host theme-preview behavior, not just the editor primitive.
813
-
814
- Local packed interaction gates require `bunx playwright install chromium webkit`
815
- after dependency installation. On Linux, use `--with-deps` when the required
816
- system libraries are absent. All automation runs headless with disposable profiles.
817
-
818
- ## Paste-token model (issue #532 selected unit)
819
-
820
- `@adea-ai/ui/components/conversation` also exports the pure paste-token model:
821
- `PasteBlock`, `isPasteBlock`, `countLines`, `shouldCollapse`, `nextSeq`,
822
- `formatToken`, `findTokenRanges`, `tokenRangeAt`, `pruneBlocks`, `expandAll`,
823
- `recollapsePastes`, `remapCarriedBlocks`, `stripTrailingBlankLines`, and the
824
- threshold and marker constants. Hosts provide stable, bounded ASCII block IDs and own
825
- draft state, persistence, message reconciliation and editor behavior. The model
826
- does not read storage or the clipboard, upload files, edit a textarea, or
827
- provide undo/history, previews or chips. Its selected source and Apache-2.0
828
- attribution are recorded in the issue #532 entry in `NOTICE`.
829
-
830
- ## Transcript composition
686
+ ## Scene controls
831
687
 
832
- `TranscriptComposition` assembles ordered host-classified rows, contiguous groups,
833
- turn presentation and accessible fold controls. Import it from the public component
834
- subpath:
688
+ `SceneControls` composes movement, jump and optional zoom actions for a host
689
+ scene. `onMovementChange(direction, pressed)` and `onJumpChange(pressed)` report
690
+ held state from pointer or keyboard input; zoom callbacks fire once per
691
+ activation. The shared controls capture pointers and release held actions on
692
+ pointer end/cancel, lost capture, window blur and component cleanup. The host
693
+ maps these typed callbacks to its own camera or movement system; the component
694
+ does not synthesize keyboard events or access host globals. Each icon action
695
+ uses the shared tooltip and a `2xl` 48px target that stays that size under
696
+ compact density. Rounded movement and zoom group surfaces use the shared
697
+ scrim treatment, which follows the library's reduced-transparency and fallback
698
+ policy.
835
699
 
836
700
  ```tsx
837
- import {
838
- TranscriptComposition,
839
- type TranscriptCompositionRendererProps,
840
- type TranscriptRow,
841
- } from '@adea-ai/ui/components/conversation/transcript-composition'
701
+ import { SceneControls } from '@adea-ai/ui/components/composites/scene-controls'
842
702
 
843
- type Message = { text: string }
844
- const rows: readonly TranscriptRow<Message>[] = [
845
- { id: 'question-1', value: { text: 'Inspect the cursor.' }, opensTurn: 'reset' },
846
- {
847
- id: 'tool-1',
848
- value: { text: 'Read the cursor.' },
849
- fold: 'tool',
850
- call: { phase: 'request', id: 'call-1' },
851
- },
852
- ]
703
+ ;<SceneControls
704
+ onMovementChange={(direction, pressed) => setMovement(direction, pressed)}
705
+ onJumpChange={(pressed) => setJumping(pressed)}
706
+ onZoomIn={zoomIn}
707
+ onZoomOut={zoomOut}
708
+ />
709
+ ```
853
710
 
854
- function HostMessage(props: TranscriptCompositionRendererProps<Message>) {
855
- return <article>{props.row.value.text}</article>
856
- }
711
+ Labels default to English and can be supplied through `labels` for a host's
712
+ locale. Hold actions have separate accessible names and explanatory tooltip
713
+ strings so localization can describe the gesture without changing the action
714
+ name. `SceneControls` owns control arrangement and interaction lifecycle;
715
+ the host owns placement, persistence and scene behavior.
857
716
 
858
- export function TranscriptPreview() {
859
- return <TranscriptComposition rows={rows} renderRow={HostMessage} />
860
- }
861
- ```
717
+ ## Package checks
718
+
719
+ Each `check:packed-*` script packs the real npm archive, installs it into a
720
+ throwaway consumer (optional peers left out, lifecycle scripts off) and checks it
721
+ under both the compiled and Solid source export conditions. Browser cases run
722
+ headless in Chromium and WebKit, and most also server-render in Node. Every check
723
+ confirms the packed `LICENSE` and `NOTICE` and enforces a size budget. Install the
724
+ browsers once with `bunx playwright install chromium webkit` (add `--with-deps` on
725
+ Linux if system libraries are missing).
726
+
727
+ | Script | What it covers | Budget (gzip JS / raw CSS) |
728
+ | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
729
+ | `check:packed-conversation` | Conversation subpath: draft recovery, IME, follow, jump focus, busy actions, composer collapse, atomic paste tokens | 26 / 50 / 54 KiB (plain, busy, composed) / 42 KiB |
730
+ | `check:packed-transcript` | Transcript composition: row identity, tool folds, keyboard disclosure, accessibility | set in the script |
731
+ | `check:packed-appearance` | Appearance editor with real `@adea-ai/themes` records: keyboard, live preview, save, cancel and reset, narrow layouts | 64 KiB / 50 KiB |
732
+ | `check:packed-scene-controls` | Scene controls and ActionButton: held-action release, labels, 48px targets at 320px and 200% text | 40 KiB / 32 KiB |
733
+ | `check:packed-layout` | Split-layout model subpath in Node, with no runtime imports | 3 KiB |
734
+ | `check:packed-layout-renderer` | Split layout, sidebar and top bar rendering | 32 KiB / 34 KiB |
735
+ | `check:packed-paste-model` | Paste-token model subpath with a strict TypeScript consumer | 3 KiB |
736
+ | `check:packed-consumer` | Root imports, lightweight controls, overlays and the shell | set in the script |
737
+
738
+ The atomic paste editor may add at most 6 KiB of gzip JS over the composed
739
+ fixture. Tailwind discovery in these fixtures is explicit; they never rely on
740
+ scanning `node_modules`. The checks prove the published component contracts;
741
+ persistence, hydration and manual assistive-technology checks happen in the apps.
742
+
743
+ `bun run test:components` runs the component contracts against a real
744
+ Vite/Solid/Tailwind build in Chromium and WebKit.
745
+
746
+ ### What one component costs
747
+
748
+ `bun run --cwd packages/ui check:tree-shaking` builds real bundles against the built
749
+ package. Each row uses the public entry, and importing one component does not pull in
750
+ the rest of the library. The script writes this table (`-- --write`) and CI fails when
751
+ the committed figures drift from what it measures.
752
+
753
+ <!-- tree-shaking:start — generated by `bun run check:tree-shaking --write`; do not edit by hand -->
754
+
755
+ | Public import | Gzipped | What it brings |
756
+ | --------------------------------------------------------------- | ---------- | ------------------------------------- |
757
+ | `@adea-ai/ui` → `Button` | 22.2 kB | the floor: Solid, `clsx`, `tw-merge` |
758
+ | `@adea-ai/ui` → `Board` | 22.6 kB | nothing |
759
+ | `@adea-ai/ui/components/composites/list-row` → `ListRowControl` | 21.9 kB | nothing: the row without its tooltip |
760
+ | `@adea-ai/ui` → `DiffBlock` | 23.2 kB | lucide icons |
761
+ | `@adea-ai/ui` → `CodeBlock` | 47.5 kB | lucide icons, Kobalte tooltip on copy |
762
+ | `@adea-ai/ui` → `MessageRow` | 27.2 kB | nothing |
763
+ | `@adea-ai/ui` → `CalendarSurface` | 30.0 kB | corvu calendar |
764
+ | `@adea-ai/ui` → `ModalDialog` | 50.8 kB | Kobalte dialog, the shared tooltip |
765
+ | `@adea-ai/ui/components/ui/carousel` → `Carousel` | 34.4 kB | embla |
766
+ | `@adea-ai/ui/components/composites/list-row` → `ListRow` | 41.9 kB | Kobalte tooltip |
767
+ | `@adea-ai/ui` → `NavigationMenu` | 56.8 kB | Kobalte navigation menu |
768
+ | `@adea-ai/ui/components/ui/chart` → `LineChart` | 89.9 kB | chart.js, the line controller only |
769
+ | _root plus chart and carousel entries_ | _453.0 kB_ | and `Button` is 4.9% of it |
770
+
771
+ The chart splits from itself, which is why chart.js was chosen: `LineChart` is
772
+ 10.6 kB smaller than importing all seven chart types together (89.9 kB against 100.5 kB), because the
773
+ controllers are imported per component while the shared scales and plugins are
774
+ registered once. The gate fails if that stops being true.
775
+
776
+ Three budgets are enforced in CI: importing `Button` must stay under 40.0 kB
777
+ and under 25.0% of the whole library, and no sampled component may exceed
778
+ 180.0 kB.
779
+
780
+ <!-- tree-shaking:end -->
862
781
 
863
- Each row needs a stable unique `id` within its transcript. The host supplies the
864
- Solid row component and classifies turn boundaries, calls, conclusions,
865
- always-visible actions and redacted values. The renderer does not parse protocol
866
- payloads or decide permission, session, event, delivery or success state.
782
+ ## Adding a component
867
783
 
868
- Settled tool folds start closed and unmount their hidden row payloads. Live rows
869
- stay open until the host marks them settled; an explicit row choice survives that
870
- running-state transition. `foldMode="prose"` folds host-marked eligible activity
871
- before a host-designated conclusion, leaving that conclusion visible.
872
- The `foldState="collapsed"` command keeps hidden
873
- content mounted. It folds eligible rows before a host-marked conclusion; without
874
- that boundary it leaves prose visible and can still collapse explicitly classified
875
- tool calls. Always-visible rows stay in place. `disclosure` plus
876
- `onDisclosureChange` lets an application restore explicit choices from its own
877
- durable store using `transcriptDisclosureKey`.
784
+ `shadcn add` installs an item from the registry on GitLab Pages (or from
785
+ `./packages/ui/public/r/<name>.json` in a checkout):
878
786
 
879
- `bun run check:packed-transcript` installs the actual tarball without optional
880
- chart/carousel engines, compiles both published export conditions, and checks the
881
- same behavior in headless Chromium, WebKit and native Node SSR. It covers row-owner
882
- identity through loose-to-turn promotion, tool request counting, mounted prose,
883
- keyboard disclosure, visible actions and automated accessibility. This is shared
884
- composition evidence; bounded runtime projection, storage and production chat
885
- integration remain application acceptance gates. Attribution for the selected
886
- KiroCrew source contracts is recorded in the issue-specific `NOTICE` entry.
787
+ ```sh
788
+ bunx shadcn@latest add https://adea-ai.gitlab.io/design-system/ui/r/button.json
789
+ ```
887
790
 
888
- On narrow screens, the shared `TopBar` keeps a usable middle Search target while
889
- side groups scroll horizontally when their actions do not fit. Keyboard focus
890
- reveals each action. Groups opt out of native window dragging.
891
- Use `TopBarTitle align="center"` to center text within its slot; the host controls
892
- slot placement. Use layout-only visibility classes when a title should yield
893
- space to essential controls.
791
+ ## Reviewing it
894
792
 
895
- ### Controlled appearance mode
793
+ Every component, every variant and the token galleries are in the workshop:
896
794
 
897
- `ThemeModeToggle` provides the shared light/dark/system selector for hosts that
898
- own their preference provider and storage. Pass `mode` and `onModeChange`; the
899
- control owns roving keyboard focus, pressed state and explanatory tooltips. It
900
- does not require or mount the shared `ThemeProvider`. `ThemeToggle` retains its
901
- existing provider-bound API.
795
+ ```sh
796
+ bun run storybook
797
+ ```
902
798
 
903
- Catalog detail summaries place actions and feedback beneath identity on narrow
904
- screens, preserving readable title/description flow. Grouped field sections keep
905
- their content at the top while sharing the outline and dividers.
799
+ The toolbar switches theme, accent, fonts and density live, which is the
800
+ fastest way to see how a component behaves across the catalogue rather than in
801
+ one theme.
906
802
 
907
- ### Small split-layout tree imports
803
+ ## Licence
908
804
 
909
- Scoped persistence decoders can import `MAX_LAYOUT_LEAVES`, `MAX_LAYOUT_DEPTH`,
910
- `MIN_SPLIT_RATIO`, `MAX_SPLIT_RATIO`, `listLeaves`, `countLeaves`, `layoutDepth`,
911
- and the opaque tree types from
912
- `@adea-ai/ui/components/layout/split-layout/tree`. This read-only entry has no
913
- UI runtime, renderer, or pane-editing dependencies. The existing `/model` entry
914
- re-exports the same functions and types for compatibility. Use `/model` for
915
- split, close, move, resize, and undo operations; use the component entry when
916
- rendering the layout.
805
+ Apache-2.0. Donor attributions are in `NOTICE`, which ships in the package.