@adea-ai/ui 0.152.4 → 0.154.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 (900) hide show
  1. package/README.md +469 -580
  2. package/dist/NOTICE +10 -1
  3. package/dist/components/composites/account-menu/account-menu.d.ts +5 -0
  4. package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
  5. package/dist/components/composites/account-menu/account-menu.js +37 -13
  6. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  7. package/dist/components/composites/action-button/action-button.d.ts +2 -1
  8. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  9. package/dist/components/composites/action-button/action-button.js +92 -66
  10. package/dist/components/composites/action-button/action-button.js.map +1 -1
  11. package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +3 -3
  12. package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
  13. package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
  14. package/dist/components/composites/appearance-editor/appearance-choices.d.ts +1 -1
  15. package/dist/components/composites/appearance-editor/appearance-choices.js +1 -1
  16. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  17. package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
  18. package/dist/components/composites/appearance-editor/appearance-editor.js +57 -57
  19. package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
  20. package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
  21. package/dist/components/composites/appearance-editor/appearance-rows.js +9 -9
  22. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  23. package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -7
  24. package/dist/components/composites/appearance-editor/theme-preview.d.ts +1 -1
  25. package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
  26. package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
  27. package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
  28. package/dist/components/composites/catalog-browser/catalog-browser.js +6 -10
  29. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  30. package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
  31. package/dist/components/composites/catalog-browser/catalog-detail.js +36 -36
  32. package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
  33. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +4 -4
  34. package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
  35. package/dist/components/composites/chat/chat.d.ts.map +1 -1
  36. package/dist/components/composites/chat/chat.js +33 -37
  37. package/dist/components/composites/chat/chat.js.map +1 -1
  38. package/dist/components/composites/checkpoint/checkpoint-model.d.ts +3 -3
  39. package/dist/components/composites/checkpoint/checkpoint-model.js +2 -2
  40. package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
  41. package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
  42. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  43. package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
  44. package/dist/components/composites/confirmation/confirmation.js +1 -1
  45. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  46. package/dist/components/composites/context/context.d.ts +2 -2
  47. package/dist/components/composites/context/context.js.map +1 -1
  48. package/dist/components/composites/file-tree/build-file-tree.d.ts +1 -1
  49. package/dist/components/composites/file-tree/build-file-tree.js +1 -1
  50. package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
  51. package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
  52. package/dist/components/composites/file-tree/file-tree.js +7 -3
  53. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  54. package/dist/components/composites/icon-picker/icon-picker.js +1 -3
  55. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  56. package/dist/components/composites/inline-citation/citation.d.ts +1 -1
  57. package/dist/components/composites/inline-citation/citation.js +1 -1
  58. package/dist/components/composites/inline-citation/citation.js.map +1 -1
  59. package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
  60. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  61. package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
  62. package/dist/components/composites/list-row/list-row-control.js +22 -22
  63. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  64. package/dist/components/composites/list-row/list-row.d.ts +5 -0
  65. package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
  66. package/dist/components/composites/list-row/list-row.js +75 -83
  67. package/dist/components/composites/list-row/list-row.js.map +1 -1
  68. package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
  69. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  70. package/dist/components/composites/model-selector/model-selector.d.ts +19 -5
  71. package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
  72. package/dist/components/composites/model-selector/model-selector.js +263 -29
  73. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  74. package/dist/components/composites/model-selector/models.d.ts +2 -2
  75. package/dist/components/composites/model-selector/models.js +1 -1
  76. package/dist/components/composites/model-selector/models.js.map +1 -1
  77. package/dist/components/composites/plan/plan.d.ts.map +1 -1
  78. package/dist/components/composites/plan/plan.js +17 -15
  79. package/dist/components/composites/plan/plan.js.map +1 -1
  80. package/dist/components/composites/queue/queue.d.ts.map +1 -1
  81. package/dist/components/composites/queue/queue.js +5 -7
  82. package/dist/components/composites/queue/queue.js.map +1 -1
  83. package/dist/components/composites/reasoning/reasoning.d.ts +4 -4
  84. package/dist/components/composites/reasoning/reasoning.js +4 -4
  85. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  86. package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
  87. package/dist/components/composites/settings/settings-navigation.js +63 -14
  88. package/dist/components/composites/settings/settings-navigation.js.map +1 -1
  89. package/dist/components/composites/settings/settings.d.ts.map +1 -1
  90. package/dist/components/composites/settings/settings.js +32 -32
  91. package/dist/components/composites/settings/settings.js.map +1 -1
  92. package/dist/components/composites/sources/source.d.ts +1 -1
  93. package/dist/components/composites/sources/source.js.map +1 -1
  94. package/dist/components/composites/sources/sources.d.ts +2 -2
  95. package/dist/components/composites/sources/sources.js.map +1 -1
  96. package/dist/components/composites/stack-trace/parse-stack-trace.d.ts +3 -3
  97. package/dist/components/composites/stack-trace/parse-stack-trace.js +4 -4
  98. package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
  99. package/dist/components/composites/stack-trace/stack-trace.d.ts +3 -3
  100. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  101. package/dist/components/composites/stat/stat.d.ts.map +1 -1
  102. package/dist/components/composites/stat/stat.js +14 -16
  103. package/dist/components/composites/stat/stat.js.map +1 -1
  104. package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
  105. package/dist/components/composites/subagent/subagent.js +6 -4
  106. package/dist/components/composites/subagent/subagent.js.map +1 -1
  107. package/dist/components/composites/task/task.d.ts +1 -1
  108. package/dist/components/composites/task/task.js.map +1 -1
  109. package/dist/components/composites/terminal/ansi.d.ts +3 -3
  110. package/dist/components/composites/terminal/ansi.js.map +1 -1
  111. package/dist/components/composites/terminal/terminal-model.d.ts +3 -3
  112. package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
  113. package/dist/components/composites/terminal/terminal-model.js +1 -1
  114. package/dist/components/composites/terminal/terminal-model.js.map +1 -1
  115. package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
  116. package/dist/components/composites/terminal/terminal.js +24 -11
  117. package/dist/components/composites/terminal/terminal.js.map +1 -1
  118. package/dist/components/composites/test-results/test-results-model.d.ts +4 -4
  119. package/dist/components/composites/test-results/test-results-model.js +2 -2
  120. package/dist/components/composites/test-results/test-results-model.js.map +1 -1
  121. package/dist/components/composites/test-results/test-results.d.ts +1 -1
  122. package/dist/components/composites/test-results/test-results.js.map +1 -1
  123. package/dist/components/composites/tool/tool.d.ts +4 -4
  124. package/dist/components/composites/tool/tool.js.map +1 -1
  125. package/dist/components/composites/tree/tree.d.ts +1 -1
  126. package/dist/components/composites/tree/tree.d.ts.map +1 -1
  127. package/dist/components/composites/tree/tree.js +25 -18
  128. package/dist/components/composites/tree/tree.js.map +1 -1
  129. package/dist/components/composites/update-dialog/channel-control.d.ts +10 -4
  130. package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
  131. package/dist/components/composites/update-dialog/channel-control.js +14 -19
  132. package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
  133. package/dist/components/composites/update-dialog/index.d.ts +1 -1
  134. package/dist/components/composites/update-dialog/index.d.ts.map +1 -1
  135. package/dist/components/composites/update-dialog/update-dialog.js +4 -5
  136. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  137. package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
  138. package/dist/components/composites/workspace-mark/workspace-mark.js +19 -20
  139. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  140. package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
  141. package/dist/components/conversation/busy-send-button.js +18 -20
  142. package/dist/components/conversation/busy-send-button.js.map +1 -1
  143. package/dist/components/conversation/composer-menu.d.ts +3 -3
  144. package/dist/components/conversation/composer-menu.js +3 -3
  145. package/dist/components/conversation/composer-menu.js.map +1 -1
  146. package/dist/components/conversation/conversation-avatar.js +2 -4
  147. package/dist/components/conversation/conversation-avatar.js.map +1 -1
  148. package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
  149. package/dist/components/conversation/conversation-pane.js +6 -5
  150. package/dist/components/conversation/conversation-pane.js.map +1 -1
  151. package/dist/components/conversation/conversation-surface.js +3 -7
  152. package/dist/components/conversation/conversation-surface.js.map +1 -1
  153. package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
  154. package/dist/components/conversation/internal/chat-composer-shell.js +76 -76
  155. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  156. package/dist/components/conversation/message-composer.d.ts.map +1 -1
  157. package/dist/components/conversation/message-composer.js +32 -38
  158. package/dist/components/conversation/message-composer.js.map +1 -1
  159. package/dist/components/conversation/message-row.d.ts.map +1 -1
  160. package/dist/components/conversation/message-row.js +79 -73
  161. package/dist/components/conversation/message-row.js.map +1 -1
  162. package/dist/components/conversation/scroll-follow-core.d.ts +7 -7
  163. package/dist/components/conversation/scroll-follow-core.js +4 -4
  164. package/dist/components/conversation/scroll-follow-core.js.map +1 -1
  165. package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
  166. package/dist/components/conversation/scroll-follow.js +19 -4
  167. package/dist/components/conversation/scroll-follow.js.map +1 -1
  168. package/dist/components/conversation/thread-panel.d.ts.map +1 -1
  169. package/dist/components/conversation/thread-panel.js +23 -23
  170. package/dist/components/conversation/thread-panel.js.map +1 -1
  171. package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
  172. package/dist/components/conversation/transcript-composition.js +2 -2
  173. package/dist/components/conversation/transcript-composition.js.map +1 -1
  174. package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
  175. package/dist/components/layout/app-shell/app-shell.js +1 -1
  176. package/dist/components/layout/app-shell/app-shell.js.map +1 -1
  177. package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
  178. package/dist/components/layout/app-shell/skip-link.js +4 -6
  179. package/dist/components/layout/app-shell/skip-link.js.map +1 -1
  180. package/dist/components/layout/page/page.d.ts.map +1 -1
  181. package/dist/components/layout/page/page.js +17 -17
  182. package/dist/components/layout/page/page.js.map +1 -1
  183. package/dist/components/layout/panel/panel.js +2 -4
  184. package/dist/components/layout/panel/panel.js.map +1 -1
  185. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
  186. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +16 -1
  187. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  188. package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
  189. package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
  190. package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
  191. package/dist/components/layout/side-rail/side-rail.js +62 -57
  192. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  193. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
  194. package/dist/components/layout/sidebar-nav/sidebar-nav.js +23 -23
  195. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  196. package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
  197. package/dist/components/layout/split-layout/resize-controller-core-retry.js +25 -7
  198. package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
  199. package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
  200. package/dist/components/layout/split-layout/resize-controller-core.js +25 -7
  201. package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
  202. package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
  203. package/dist/components/layout/split-layout/split-layout.js +2 -2
  204. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  205. package/dist/components/layout/status-bar/status-bar.d.ts +1 -1
  206. package/dist/components/layout/status-bar/status-bar.js +1 -1
  207. package/dist/components/layout/status-bar/status-bar.js.map +1 -1
  208. package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
  209. package/dist/components/layout/top-bar/top-bar.js +15 -14
  210. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  211. package/dist/components/motion/presence.d.ts +2 -2
  212. package/dist/components/motion/presence.js.map +1 -1
  213. package/dist/components/theme/appearance-panel.d.ts +5 -5
  214. package/dist/components/theme/appearance-panel.js.map +1 -1
  215. package/dist/components/theme/lazy.d.ts +1 -1
  216. package/dist/components/theme/lazy.js.map +1 -1
  217. package/dist/components/theme/theme-catalogue-source.d.ts +2 -2
  218. package/dist/components/theme/theme-catalogue-source.js +2 -2
  219. package/dist/components/theme/theme-catalogue-source.js.map +1 -1
  220. package/dist/components/theme/theme-context.d.ts +2 -2
  221. package/dist/components/theme/theme-context.js +3 -3
  222. package/dist/components/theme/theme-context.js.map +1 -1
  223. package/dist/components/theme/theme-document.d.ts.map +1 -1
  224. package/dist/components/theme/theme-document.js +14 -9
  225. package/dist/components/theme/theme-document.js.map +1 -1
  226. package/dist/components/theme/theme-picker.d.ts +5 -5
  227. package/dist/components/theme/theme-picker.js.map +1 -1
  228. package/dist/components/theme/theme-provider-value.d.ts +0 -6
  229. package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
  230. package/dist/components/theme/theme-provider-value.js +9 -3
  231. package/dist/components/theme/theme-provider-value.js.map +1 -1
  232. package/dist/components/theme/theme-script.d.ts +14 -0
  233. package/dist/components/theme/theme-script.d.ts.map +1 -1
  234. package/dist/components/theme/theme-script.js +1 -0
  235. package/dist/components/theme/theme-script.js.map +1 -1
  236. package/dist/components/theme/theme-state.d.ts +7 -7
  237. package/dist/components/theme/theme-state.js.map +1 -1
  238. package/dist/components/theme/theme-toggle.d.ts +1 -1
  239. package/dist/components/theme/theme-toggle.js.map +1 -1
  240. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  241. package/dist/components/ui/alert/alert.js +4 -3
  242. package/dist/components/ui/alert/alert.js.map +1 -1
  243. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +1 -1
  244. package/dist/components/ui/alert-dialog/alert-dialog.js +3 -3
  245. package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
  246. package/dist/components/ui/badge/badge.d.ts +1 -1
  247. package/dist/components/ui/badge/badge.js +2 -2
  248. package/dist/components/ui/badge/badge.js.map +1 -1
  249. package/dist/components/ui/board/board.d.ts.map +1 -1
  250. package/dist/components/ui/board/board.js +10 -6
  251. package/dist/components/ui/board/board.js.map +1 -1
  252. package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
  253. package/dist/components/ui/bubble/bubble.js +6 -4
  254. package/dist/components/ui/bubble/bubble.js.map +1 -1
  255. package/dist/components/ui/button/button.js +2 -2
  256. package/dist/components/ui/button/button.js.map +1 -1
  257. package/dist/components/ui/button-group/button-group.d.ts +1 -1
  258. package/dist/components/ui/button-group/button-group.js +1 -1
  259. package/dist/components/ui/button-group/button-group.js.map +1 -1
  260. package/dist/components/ui/calendar/calendar.js +6 -6
  261. package/dist/components/ui/calendar/calendar.js.map +1 -1
  262. package/dist/components/ui/callout/callout.d.ts +4 -4
  263. package/dist/components/ui/callout/callout.js +4 -4
  264. package/dist/components/ui/callout/callout.js.map +1 -1
  265. package/dist/components/ui/card/card.d.ts +2 -2
  266. package/dist/components/ui/card/card.js +2 -2
  267. package/dist/components/ui/card/card.js.map +1 -1
  268. package/dist/components/ui/carousel/carousel.d.ts +4 -4
  269. package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
  270. package/dist/components/ui/carousel/carousel.js.map +1 -1
  271. package/dist/components/ui/chart/chart-options.d.ts +7 -7
  272. package/dist/components/ui/chart/chart-options.js +9 -9
  273. package/dist/components/ui/chart/chart-options.js.map +1 -1
  274. package/dist/components/ui/chart/chart.d.ts.map +1 -1
  275. package/dist/components/ui/chart/chart.js +16 -7
  276. package/dist/components/ui/chart/chart.js.map +1 -1
  277. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  278. package/dist/components/ui/checkbox/checkbox.js +8 -6
  279. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  280. package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
  281. package/dist/components/ui/code-block/code-block.js +8 -6
  282. package/dist/components/ui/code-block/code-block.js.map +1 -1
  283. package/dist/components/ui/command/command.d.ts +4 -4
  284. package/dist/components/ui/command/command.js +4 -4
  285. package/dist/components/ui/command/command.js.map +1 -1
  286. package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
  287. package/dist/components/ui/context-menu/context-menu.js.map +1 -1
  288. package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
  289. package/dist/components/ui/detail-panel/detail-panel.js +13 -13
  290. package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
  291. package/dist/components/ui/dialog/dialog-layer.d.ts +0 -4
  292. package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
  293. package/dist/components/ui/dialog/dialog-layer.js +17 -1
  294. package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
  295. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  296. package/dist/components/ui/dialog/dialog.js +4 -3
  297. package/dist/components/ui/dialog/dialog.js.map +1 -1
  298. package/dist/components/ui/diff-block/diff-block.d.ts +6 -6
  299. package/dist/components/ui/diff-block/diff-block.js +3 -3
  300. package/dist/components/ui/diff-block/diff-block.js.map +1 -1
  301. package/dist/components/ui/drawer/drawer.d.ts +3 -3
  302. package/dist/components/ui/drawer/drawer.js +2 -2
  303. package/dist/components/ui/drawer/drawer.js.map +1 -1
  304. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +5 -5
  305. package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
  306. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  307. package/dist/components/ui/dropdown-menu/menu-parts.d.ts +3 -3
  308. package/dist/components/ui/dropdown-menu/menu-parts.js +1 -1
  309. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
  310. package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
  311. package/dist/components/ui/empty/empty-state.js +33 -36
  312. package/dist/components/ui/empty/empty-state.js.map +1 -1
  313. package/dist/components/ui/empty/empty.d.ts +1 -1
  314. package/dist/components/ui/empty/empty.js +1 -1
  315. package/dist/components/ui/empty/empty.js.map +1 -1
  316. package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
  317. package/dist/components/ui/entity-icon/entity-icon.js +7 -7
  318. package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
  319. package/dist/components/ui/field/field.d.ts.map +1 -1
  320. package/dist/components/ui/field/field.js +15 -15
  321. package/dist/components/ui/field/field.js.map +1 -1
  322. package/dist/components/ui/field/number-field.d.ts +1 -1
  323. package/dist/components/ui/field/number-field.js +1 -1
  324. package/dist/components/ui/field/number-field.js.map +1 -1
  325. package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
  326. package/dist/components/ui/hover-card/hover-card.js.map +1 -1
  327. package/dist/components/ui/input-group/input-group.d.ts +1 -1
  328. package/dist/components/ui/input-group/input-group.js.map +1 -1
  329. package/dist/components/ui/input-otp/input-otp.d.ts +1 -1
  330. package/dist/components/ui/input-otp/input-otp.js.map +1 -1
  331. package/dist/components/ui/item/item.d.ts.map +1 -1
  332. package/dist/components/ui/item/item.js +26 -26
  333. package/dist/components/ui/item/item.js.map +1 -1
  334. package/dist/components/ui/kbd/kbd.d.ts +25 -12
  335. package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
  336. package/dist/components/ui/kbd/kbd.js +44 -13
  337. package/dist/components/ui/kbd/kbd.js.map +1 -1
  338. package/dist/components/ui/kbd/platform-modifier.d.ts +3 -3
  339. package/dist/components/ui/kbd/platform-modifier.js +3 -3
  340. package/dist/components/ui/kbd/platform-modifier.js.map +1 -1
  341. package/dist/components/ui/label/label.d.ts +1 -1
  342. package/dist/components/ui/label/label.js +1 -1
  343. package/dist/components/ui/label/label.js.map +1 -1
  344. package/dist/components/ui/marker/marker.d.ts.map +1 -1
  345. package/dist/components/ui/marker/marker.js +17 -19
  346. package/dist/components/ui/marker/marker.js.map +1 -1
  347. package/dist/components/ui/menubar/menubar.d.ts +2 -2
  348. package/dist/components/ui/menubar/menubar.js +1 -1
  349. package/dist/components/ui/menubar/menubar.js.map +1 -1
  350. package/dist/components/ui/message/message.d.ts.map +1 -1
  351. package/dist/components/ui/message/message.js +16 -18
  352. package/dist/components/ui/message/message.js.map +1 -1
  353. package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
  354. package/dist/components/ui/modal-dialog/modal-dialog.js +7 -11
  355. package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
  356. package/dist/components/ui/native-select/native-select.d.ts +1 -1
  357. package/dist/components/ui/native-select/native-select.js.map +1 -1
  358. package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
  359. package/dist/components/ui/navigation-menu/navigation-menu.js +5 -4
  360. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  361. package/dist/components/ui/pagination/pagination.js +2 -4
  362. package/dist/components/ui/pagination/pagination.js.map +1 -1
  363. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  364. package/dist/components/ui/popover/popover.js +11 -4
  365. package/dist/components/ui/popover/popover.js.map +1 -1
  366. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  367. package/dist/components/ui/progress/progress.js +6 -8
  368. package/dist/components/ui/progress/progress.js.map +1 -1
  369. package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
  370. package/dist/components/ui/questionnaire/questionnaire.js +73 -73
  371. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  372. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  373. package/dist/components/ui/radio-group/radio-group.js +12 -6
  374. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  375. package/dist/components/ui/resizable/resizable.d.ts +2 -2
  376. package/dist/components/ui/resizable/resizable.js +3 -3
  377. package/dist/components/ui/resizable/resizable.js.map +1 -1
  378. package/dist/components/ui/select/select.d.ts +3 -3
  379. package/dist/components/ui/select/select.js +1 -1
  380. package/dist/components/ui/select/select.js.map +1 -1
  381. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  382. package/dist/components/ui/sheet/sheet.js +4 -3
  383. package/dist/components/ui/sheet/sheet.js.map +1 -1
  384. package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
  385. package/dist/components/ui/skeleton/skeleton.js +1 -1
  386. package/dist/components/ui/skeleton/skeleton.js.map +1 -1
  387. package/dist/components/ui/slider/slider.d.ts +1 -1
  388. package/dist/components/ui/slider/slider.js.map +1 -1
  389. package/dist/components/ui/spinner/spinner.d.ts +1 -1
  390. package/dist/components/ui/spinner/spinner.js +1 -1
  391. package/dist/components/ui/spinner/spinner.js.map +1 -1
  392. package/dist/components/ui/status-chip/status-chip.d.ts +13 -13
  393. package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
  394. package/dist/components/ui/status-chip/status-chip.js +11 -11
  395. package/dist/components/ui/status-chip/status-chip.js.map +1 -1
  396. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  397. package/dist/components/ui/switch/switch.js +8 -6
  398. package/dist/components/ui/switch/switch.js.map +1 -1
  399. package/dist/components/ui/tabs/tabs.d.ts +4 -4
  400. package/dist/components/ui/tabs/tabs.js +4 -4
  401. package/dist/components/ui/tabs/tabs.js.map +1 -1
  402. package/dist/components/ui/textarea/textarea.d.ts +1 -1
  403. package/dist/components/ui/textarea/textarea.js +1 -1
  404. package/dist/components/ui/textarea/textarea.js.map +1 -1
  405. package/dist/components/ui/toast/toast.d.ts.map +1 -1
  406. package/dist/components/ui/toast/toast.js +13 -15
  407. package/dist/components/ui/toast/toast.js.map +1 -1
  408. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  409. package/dist/components/ui/toggle/toggle.js +1 -1
  410. package/dist/components/ui/toggle/toggle.js.map +1 -1
  411. package/dist/components/ui/tooltip/deferred-tooltip.d.ts +51 -0
  412. package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -0
  413. package/dist/components/ui/tooltip/deferred-tooltip.js +103 -0
  414. package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -0
  415. package/dist/components/ui/tooltip/index.d.ts +1 -0
  416. package/dist/components/ui/tooltip/index.d.ts.map +1 -1
  417. package/dist/components/ui/tooltip/index.js +3 -1
  418. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  419. package/dist/components/ui/tooltip/tooltip.js +6 -5
  420. package/dist/components/ui/tooltip/tooltip.js.map +1 -1
  421. package/dist/components/ui/trace/trace.d.ts.map +1 -1
  422. package/dist/components/ui/trace/trace.js +17 -17
  423. package/dist/components/ui/trace/trace.js.map +1 -1
  424. package/dist/components/ui/typography/typography.d.ts +3 -3
  425. package/dist/components/ui/typography/typography.js +5 -5
  426. package/dist/components/ui/typography/typography.js.map +1 -1
  427. package/dist/index.d.ts +1 -0
  428. package/dist/index.d.ts.map +1 -1
  429. package/dist/index.js +5 -3
  430. package/dist/lib/accent-presets.d.ts +1 -1
  431. package/dist/lib/accent-presets.js.map +1 -1
  432. package/dist/lib/accent-roles.d.ts +2 -2
  433. package/dist/lib/accent-roles.js +2 -2
  434. package/dist/lib/accent-roles.js.map +1 -1
  435. package/dist/lib/appearance-font-settings.d.ts.map +1 -1
  436. package/dist/lib/appearance-font-settings.js +15 -7
  437. package/dist/lib/appearance-font-settings.js.map +1 -1
  438. package/dist/lib/create-poll.d.ts +39 -0
  439. package/dist/lib/create-poll.d.ts.map +1 -0
  440. package/dist/lib/create-poll.js +116 -0
  441. package/dist/lib/create-poll.js.map +1 -0
  442. package/dist/lib/font-zoom.d.ts +1 -1
  443. package/dist/lib/font-zoom.js +1 -1
  444. package/dist/lib/font-zoom.js.map +1 -1
  445. package/dist/lib/keyed-rows.d.ts +2 -1
  446. package/dist/lib/keyed-rows.d.ts.map +1 -1
  447. package/dist/lib/keyed-rows.js +3 -2
  448. package/dist/lib/keyed-rows.js.map +1 -1
  449. package/dist/lib/overlay.d.ts +6 -6
  450. package/dist/lib/overlay.d.ts.map +1 -1
  451. package/dist/lib/overlay.js +6 -6
  452. package/dist/lib/overlay.js.map +1 -1
  453. package/dist/lib/preference-store.d.ts +2 -2
  454. package/dist/lib/preference-store.js +2 -2
  455. package/dist/lib/preference-store.js.map +1 -1
  456. package/dist/lib/safe-script.d.ts +2 -2
  457. package/dist/lib/safe-script.js +2 -2
  458. package/dist/lib/safe-script.js.map +1 -1
  459. package/dist/lib/scroll-geometry.d.ts +1 -1
  460. package/dist/lib/scroll-geometry.js +1 -1
  461. package/dist/lib/scroll-geometry.js.map +1 -1
  462. package/dist/lib/text.d.ts +1 -1
  463. package/dist/lib/text.js +1 -1
  464. package/dist/lib/text.js.map +1 -1
  465. package/dist/lib/theme-accents.js +3 -3
  466. package/dist/lib/theme-accents.js.map +1 -1
  467. package/dist/lib/theme-css.js.map +1 -1
  468. package/dist/lib/theme-defaults.d.ts +4 -4
  469. package/dist/lib/theme-defaults.js +4 -4
  470. package/dist/lib/theme-defaults.js.map +1 -1
  471. package/dist/lib/theme-engine-light.js.map +1 -1
  472. package/dist/lib/theme-engine.d.ts +2 -2
  473. package/dist/lib/theme-engine.js +2 -2
  474. package/dist/lib/theme-engine.js.map +1 -1
  475. package/dist/lib/theme-projection.d.ts +1 -1
  476. package/dist/lib/theme-projection.js +2 -2
  477. package/dist/lib/theme-projection.js.map +1 -1
  478. package/dist/lib/theme-records.d.ts +2 -2
  479. package/dist/lib/theme-records.js +2 -2
  480. package/dist/lib/theme-records.js.map +1 -1
  481. package/dist/lib/theme-types.d.ts +1 -1
  482. package/dist/lib/theme-types.js.map +1 -1
  483. package/dist/lib/themes.d.ts +13 -13
  484. package/dist/lib/themes.js +13 -13
  485. package/dist/lib/themes.js.map +1 -1
  486. package/dist/lib/tokens.d.ts +2 -2
  487. package/dist/lib/tokens.js +1 -1
  488. package/dist/lib/tokens.js.map +1 -1
  489. package/dist/lib/tooltip-focus-gate.d.ts +2 -2
  490. package/dist/lib/tooltip-focus-gate.js +2 -2
  491. package/dist/lib/tooltip-focus-gate.js.map +1 -1
  492. package/dist/lib/utils.d.ts +1 -1
  493. package/dist/lib/utils.js +1 -1
  494. package/dist/lib/utils.js.map +1 -1
  495. package/dist/lib/variants.d.ts +4 -4
  496. package/dist/lib/variants.js +1 -1
  497. package/dist/lib/variants.js.map +1 -1
  498. package/dist/lib/version-notes.d.ts +4 -4
  499. package/dist/lib/version-notes.js +4 -4
  500. package/dist/lib/version-notes.js.map +1 -1
  501. package/dist/lint.js.map +1 -1
  502. package/dist/r/account-menu.json +1 -0
  503. package/dist/r/lib.json +5 -0
  504. package/dist/r/model-selector.json +1 -0
  505. package/dist/r/registry.json +14 -0
  506. package/dist/r/side-rail.json +1 -0
  507. package/dist/r/src/components/composites/account-menu/account-menu.tsx +22 -2
  508. package/dist/r/src/components/composites/action-button/action-button.tsx +124 -78
  509. package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
  510. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
  511. package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
  512. package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
  513. package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -7
  514. package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
  515. package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
  516. package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
  517. package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
  518. package/dist/r/src/components/composites/chat/chat.tsx +15 -9
  519. package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  520. package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +2 -2
  521. package/dist/r/src/components/composites/confirmation/confirmation.tsx +8 -4
  522. package/dist/r/src/components/composites/context/context.tsx +2 -2
  523. package/dist/r/src/components/composites/file-tree/build-file-tree.ts +1 -1
  524. package/dist/r/src/components/composites/file-tree/file-tree.tsx +16 -2
  525. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  526. package/dist/r/src/components/composites/inline-citation/citation.ts +1 -1
  527. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +2 -2
  528. package/dist/r/src/components/composites/list-row/list-row-control.tsx +31 -22
  529. package/dist/r/src/components/composites/list-row/list-row.tsx +69 -73
  530. package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +1 -1
  531. package/dist/r/src/components/composites/model-selector/model-selector.tsx +190 -14
  532. package/dist/r/src/components/composites/model-selector/models.ts +2 -2
  533. package/dist/r/src/components/composites/plan/plan.tsx +19 -11
  534. package/dist/r/src/components/composites/queue/queue.tsx +5 -3
  535. package/dist/r/src/components/composites/reasoning/reasoning.tsx +4 -4
  536. package/dist/r/src/components/composites/settings/settings-navigation.tsx +57 -17
  537. package/dist/r/src/components/composites/settings/settings.tsx +14 -6
  538. package/dist/r/src/components/composites/sources/source.ts +1 -1
  539. package/dist/r/src/components/composites/sources/sources.tsx +2 -2
  540. package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
  541. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -3
  542. package/dist/r/src/components/composites/stat/stat.tsx +20 -16
  543. package/dist/r/src/components/composites/subagent/subagent.tsx +6 -4
  544. package/dist/r/src/components/composites/task/task.tsx +1 -1
  545. package/dist/r/src/components/composites/terminal/ansi.ts +3 -3
  546. package/dist/r/src/components/composites/terminal/terminal-model.ts +3 -3
  547. package/dist/r/src/components/composites/terminal/terminal.tsx +24 -12
  548. package/dist/r/src/components/composites/test-results/test-results-model.ts +4 -4
  549. package/dist/r/src/components/composites/test-results/test-results.tsx +1 -1
  550. package/dist/r/src/components/composites/tool/tool.tsx +4 -4
  551. package/dist/r/src/components/composites/tree/tree.tsx +31 -15
  552. package/dist/r/src/components/composites/update-dialog/channel-control.tsx +17 -8
  553. package/dist/r/src/components/composites/update-dialog/index.ts +1 -0
  554. package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +7 -7
  555. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
  556. package/dist/r/src/components/conversation/busy-send-button.tsx +6 -2
  557. package/dist/r/src/components/conversation/composer-menu.tsx +3 -3
  558. package/dist/r/src/components/conversation/conversation-avatar.tsx +1 -1
  559. package/dist/r/src/components/conversation/conversation-pane.tsx +8 -5
  560. package/dist/r/src/components/conversation/conversation-surface.tsx +2 -2
  561. package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
  562. package/dist/r/src/components/conversation/message-composer.tsx +4 -6
  563. package/dist/r/src/components/conversation/message-row.tsx +34 -26
  564. package/dist/r/src/components/conversation/scroll-follow-core.ts +8 -8
  565. package/dist/r/src/components/conversation/scroll-follow.ts +24 -8
  566. package/dist/r/src/components/conversation/thread-panel.tsx +7 -3
  567. package/dist/r/src/components/conversation/transcript-composition.tsx +4 -2
  568. package/dist/r/src/components/layout/app-shell/app-shell.tsx +1 -1
  569. package/dist/r/src/components/layout/app-shell/skip-link.tsx +3 -2
  570. package/dist/r/src/components/layout/page/page.tsx +15 -11
  571. package/dist/r/src/components/layout/panel/panel.tsx +1 -1
  572. package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
  573. package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -1
  574. package/dist/r/src/components/layout/side-rail/side-rail.tsx +41 -28
  575. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
  576. package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
  577. package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
  578. package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -2
  579. package/dist/r/src/components/layout/status-bar/status-bar.tsx +1 -1
  580. package/dist/r/src/components/layout/top-bar/top-bar.tsx +4 -6
  581. package/dist/r/src/components/motion/presence.tsx +2 -2
  582. package/dist/r/src/components/theme/appearance-panel.tsx +5 -5
  583. package/dist/r/src/components/theme/lazy.ts +1 -1
  584. package/dist/r/src/components/theme/theme-catalogue-source.ts +2 -2
  585. package/dist/r/src/components/theme/theme-context.ts +3 -3
  586. package/dist/r/src/components/theme/theme-document.ts +22 -11
  587. package/dist/r/src/components/theme/theme-picker.tsx +5 -5
  588. package/dist/r/src/components/theme/theme-provider-value.ts +15 -3
  589. package/dist/r/src/components/theme/theme-script.ts +20 -0
  590. package/dist/r/src/components/theme/theme-state.ts +7 -7
  591. package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
  592. package/dist/r/src/components/ui/alert/alert.tsx +4 -3
  593. package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
  594. package/dist/r/src/components/ui/badge/badge.tsx +2 -2
  595. package/dist/r/src/components/ui/board/board.tsx +17 -5
  596. package/dist/r/src/components/ui/bubble/bubble.tsx +6 -4
  597. package/dist/r/src/components/ui/button/button.tsx +2 -2
  598. package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
  599. package/dist/r/src/components/ui/calendar/calendar.tsx +2 -2
  600. package/dist/r/src/components/ui/callout/callout.tsx +4 -4
  601. package/dist/r/src/components/ui/card/card.tsx +2 -2
  602. package/dist/r/src/components/ui/carousel/carousel.tsx +6 -6
  603. package/dist/r/src/components/ui/chart/chart-options.ts +9 -9
  604. package/dist/r/src/components/ui/chart/chart.tsx +14 -1
  605. package/dist/r/src/components/ui/checkbox/checkbox.tsx +9 -6
  606. package/dist/r/src/components/ui/code-block/code-block.tsx +14 -7
  607. package/dist/r/src/components/ui/command/command.tsx +7 -7
  608. package/dist/r/src/components/ui/context-menu/context-menu.tsx +1 -1
  609. package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -3
  610. package/dist/r/src/components/ui/dialog/dialog-layer.tsx +25 -1
  611. package/dist/r/src/components/ui/dialog/dialog.tsx +4 -3
  612. package/dist/r/src/components/ui/diff-block/diff-block.tsx +6 -6
  613. package/dist/r/src/components/ui/drawer/drawer.tsx +3 -3
  614. package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
  615. package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
  616. package/dist/r/src/components/ui/empty/empty-state.tsx +23 -18
  617. package/dist/r/src/components/ui/empty/empty.tsx +1 -1
  618. package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +5 -1
  619. package/dist/r/src/components/ui/field/field.tsx +15 -7
  620. package/dist/r/src/components/ui/field/number-field.tsx +1 -1
  621. package/dist/r/src/components/ui/hover-card/hover-card.tsx +1 -1
  622. package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
  623. package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
  624. package/dist/r/src/components/ui/item/item.tsx +24 -18
  625. package/dist/r/src/components/ui/kbd/kbd.tsx +55 -14
  626. package/dist/r/src/components/ui/kbd/platform-modifier.ts +3 -3
  627. package/dist/r/src/components/ui/label/label.tsx +1 -1
  628. package/dist/r/src/components/ui/marker/marker.tsx +9 -5
  629. package/dist/r/src/components/ui/menubar/menubar.tsx +2 -2
  630. package/dist/r/src/components/ui/message/message.tsx +14 -13
  631. package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
  632. package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
  633. package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
  634. package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
  635. package/dist/r/src/components/ui/popover/popover.tsx +4 -2
  636. package/dist/r/src/components/ui/progress/progress.tsx +5 -3
  637. package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +10 -5
  638. package/dist/r/src/components/ui/radio-group/radio-group.tsx +9 -6
  639. package/dist/r/src/components/ui/resizable/resizable.tsx +5 -5
  640. package/dist/r/src/components/ui/select/select.tsx +4 -4
  641. package/dist/r/src/components/ui/sheet/sheet.tsx +4 -3
  642. package/dist/r/src/components/ui/skeleton/skeleton.tsx +1 -1
  643. package/dist/r/src/components/ui/slider/slider.tsx +1 -1
  644. package/dist/r/src/components/ui/spinner/spinner.tsx +1 -1
  645. package/dist/r/src/components/ui/status-chip/status-chip.tsx +13 -13
  646. package/dist/r/src/components/ui/switch/switch.tsx +9 -6
  647. package/dist/r/src/components/ui/tabs/tabs.tsx +4 -4
  648. package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
  649. package/dist/r/src/components/ui/toast/toast.tsx +6 -4
  650. package/dist/r/src/components/ui/toggle/toggle.tsx +1 -1
  651. package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
  652. package/dist/r/src/components/ui/tooltip/index.ts +1 -0
  653. package/dist/r/src/components/ui/tooltip/tooltip.tsx +6 -4
  654. package/dist/r/src/components/ui/trace/trace.tsx +13 -9
  655. package/dist/r/src/components/ui/typography/typography.tsx +5 -5
  656. package/dist/r/src/lib/accent-presets.ts +1 -1
  657. package/dist/r/src/lib/accent-roles.ts +2 -2
  658. package/dist/r/src/lib/appearance-font-settings.ts +18 -7
  659. package/dist/r/src/lib/create-poll.ts +150 -0
  660. package/dist/r/src/lib/font-zoom.ts +3 -3
  661. package/dist/r/src/lib/keyed-rows.ts +3 -2
  662. package/dist/r/src/lib/overlay.ts +6 -6
  663. package/dist/r/src/lib/preference-store.ts +2 -2
  664. package/dist/r/src/lib/safe-script.ts +2 -2
  665. package/dist/r/src/lib/scroll-geometry.ts +1 -1
  666. package/dist/r/src/lib/text.ts +1 -1
  667. package/dist/r/src/lib/theme-accents.ts +3 -3
  668. package/dist/r/src/lib/theme-css.ts +2 -2
  669. package/dist/r/src/lib/theme-defaults.ts +4 -4
  670. package/dist/r/src/lib/theme-engine-light.ts +2 -2
  671. package/dist/r/src/lib/theme-engine.ts +2 -2
  672. package/dist/r/src/lib/theme-projection.ts +2 -2
  673. package/dist/r/src/lib/theme-records.ts +2 -2
  674. package/dist/r/src/lib/theme-types.ts +1 -1
  675. package/dist/r/src/lib/themes.ts +14 -14
  676. package/dist/r/src/lib/tokens.ts +2 -2
  677. package/dist/r/src/lib/tooltip-focus-gate.ts +11 -11
  678. package/dist/r/src/lib/utils.ts +1 -1
  679. package/dist/r/src/lib/variants.ts +4 -4
  680. package/dist/r/src/lib/version-notes.ts +4 -4
  681. package/dist/r/src/styles/base.css +12 -43
  682. package/dist/r/src/styles/fonts.css +1 -1
  683. package/dist/r/src/styles/theme.css +35 -35
  684. package/dist/r/tooltip.json +5 -0
  685. package/dist/r/top-bar.json +1 -0
  686. package/package.json +2 -1
  687. package/registry.json +14 -0
  688. package/src/components/composites/account-menu/account-menu.tsx +22 -2
  689. package/src/components/composites/action-button/action-button.tsx +124 -78
  690. package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
  691. package/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
  692. package/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
  693. package/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
  694. package/src/components/composites/appearance-editor/appearance-types.ts +7 -7
  695. package/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
  696. package/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
  697. package/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
  698. package/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
  699. package/src/components/composites/chat/chat.tsx +15 -9
  700. package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  701. package/src/components/composites/checkpoint/checkpoint.tsx +2 -2
  702. package/src/components/composites/confirmation/confirmation.tsx +8 -4
  703. package/src/components/composites/context/context.tsx +2 -2
  704. package/src/components/composites/file-tree/build-file-tree.ts +1 -1
  705. package/src/components/composites/file-tree/file-tree.tsx +16 -2
  706. package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  707. package/src/components/composites/inline-citation/citation.ts +1 -1
  708. package/src/components/composites/inline-citation/inline-citation.tsx +2 -2
  709. package/src/components/composites/list-row/list-row-control.tsx +31 -22
  710. package/src/components/composites/list-row/list-row.tsx +69 -73
  711. package/src/components/composites/message-scroller/message-scroller.tsx +1 -1
  712. package/src/components/composites/model-selector/model-selector.tsx +190 -14
  713. package/src/components/composites/model-selector/models.ts +2 -2
  714. package/src/components/composites/plan/plan.tsx +19 -11
  715. package/src/components/composites/queue/queue.tsx +5 -3
  716. package/src/components/composites/reasoning/reasoning.tsx +4 -4
  717. package/src/components/composites/settings/settings-navigation.tsx +57 -17
  718. package/src/components/composites/settings/settings.tsx +14 -6
  719. package/src/components/composites/sources/source.ts +1 -1
  720. package/src/components/composites/sources/sources.tsx +2 -2
  721. package/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
  722. package/src/components/composites/stack-trace/stack-trace.tsx +3 -3
  723. package/src/components/composites/stat/stat.tsx +20 -16
  724. package/src/components/composites/subagent/subagent.tsx +6 -4
  725. package/src/components/composites/task/task.tsx +1 -1
  726. package/src/components/composites/terminal/ansi.ts +3 -3
  727. package/src/components/composites/terminal/terminal-model.ts +3 -3
  728. package/src/components/composites/terminal/terminal.tsx +24 -12
  729. package/src/components/composites/test-results/test-results-model.ts +4 -4
  730. package/src/components/composites/test-results/test-results.tsx +1 -1
  731. package/src/components/composites/tool/tool.tsx +4 -4
  732. package/src/components/composites/tree/tree.tsx +31 -15
  733. package/src/components/composites/update-dialog/channel-control.tsx +17 -8
  734. package/src/components/composites/update-dialog/index.ts +1 -0
  735. package/src/components/composites/update-dialog/update-dialog.tsx +7 -7
  736. package/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
  737. package/src/components/conversation/busy-send-button.tsx +6 -2
  738. package/src/components/conversation/composer-menu.tsx +3 -3
  739. package/src/components/conversation/conversation-avatar.tsx +1 -1
  740. package/src/components/conversation/conversation-pane.tsx +8 -5
  741. package/src/components/conversation/conversation-surface.tsx +2 -2
  742. package/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
  743. package/src/components/conversation/message-composer.tsx +4 -6
  744. package/src/components/conversation/message-row.tsx +34 -26
  745. package/src/components/conversation/scroll-follow-core.ts +8 -8
  746. package/src/components/conversation/scroll-follow.ts +24 -8
  747. package/src/components/conversation/thread-panel.tsx +7 -3
  748. package/src/components/conversation/transcript-composition.tsx +4 -2
  749. package/src/components/layout/app-shell/app-shell.tsx +1 -1
  750. package/src/components/layout/app-shell/skip-link.tsx +3 -2
  751. package/src/components/layout/page/page.tsx +15 -11
  752. package/src/components/layout/panel/panel.tsx +1 -1
  753. package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
  754. package/src/components/layout/side-rail/side-rail-context.ts +1 -1
  755. package/src/components/layout/side-rail/side-rail.tsx +41 -28
  756. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
  757. package/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
  758. package/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
  759. package/src/components/layout/split-layout/split-layout.tsx +6 -2
  760. package/src/components/layout/status-bar/status-bar.tsx +1 -1
  761. package/src/components/layout/top-bar/top-bar.tsx +4 -6
  762. package/src/components/motion/presence.tsx +2 -2
  763. package/src/components/theme/appearance-panel.tsx +5 -5
  764. package/src/components/theme/lazy.ts +1 -1
  765. package/src/components/theme/theme-catalogue-source.ts +2 -2
  766. package/src/components/theme/theme-context.ts +3 -3
  767. package/src/components/theme/theme-document.ts +22 -11
  768. package/src/components/theme/theme-picker.tsx +5 -5
  769. package/src/components/theme/theme-provider-value.ts +15 -3
  770. package/src/components/theme/theme-script.ts +20 -0
  771. package/src/components/theme/theme-state.ts +7 -7
  772. package/src/components/theme/theme-toggle.tsx +1 -1
  773. package/src/components/ui/alert/alert.tsx +4 -3
  774. package/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
  775. package/src/components/ui/badge/badge.tsx +2 -2
  776. package/src/components/ui/board/board.tsx +17 -5
  777. package/src/components/ui/bubble/bubble.tsx +6 -4
  778. package/src/components/ui/button/button.tsx +2 -2
  779. package/src/components/ui/button-group/button-group.tsx +1 -1
  780. package/src/components/ui/calendar/calendar.tsx +2 -2
  781. package/src/components/ui/callout/callout.tsx +4 -4
  782. package/src/components/ui/card/card.tsx +2 -2
  783. package/src/components/ui/carousel/carousel.tsx +6 -6
  784. package/src/components/ui/chart/chart-options.ts +9 -9
  785. package/src/components/ui/chart/chart.tsx +14 -1
  786. package/src/components/ui/checkbox/checkbox.tsx +9 -6
  787. package/src/components/ui/code-block/code-block.tsx +14 -7
  788. package/src/components/ui/command/command.tsx +7 -7
  789. package/src/components/ui/context-menu/context-menu.tsx +1 -1
  790. package/src/components/ui/detail-panel/detail-panel.tsx +5 -3
  791. package/src/components/ui/dialog/dialog-layer.tsx +25 -1
  792. package/src/components/ui/dialog/dialog.tsx +4 -3
  793. package/src/components/ui/diff-block/diff-block.tsx +6 -6
  794. package/src/components/ui/drawer/drawer.tsx +3 -3
  795. package/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
  796. package/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
  797. package/src/components/ui/empty/empty-state.tsx +23 -18
  798. package/src/components/ui/empty/empty.tsx +1 -1
  799. package/src/components/ui/entity-icon/entity-icon.tsx +5 -1
  800. package/src/components/ui/field/field.tsx +15 -7
  801. package/src/components/ui/field/number-field.tsx +1 -1
  802. package/src/components/ui/hover-card/hover-card.tsx +1 -1
  803. package/src/components/ui/input-group/input-group.tsx +1 -1
  804. package/src/components/ui/input-otp/input-otp.tsx +1 -1
  805. package/src/components/ui/item/item.tsx +24 -18
  806. package/src/components/ui/kbd/kbd.tsx +55 -14
  807. package/src/components/ui/kbd/platform-modifier.ts +3 -3
  808. package/src/components/ui/label/label.tsx +1 -1
  809. package/src/components/ui/marker/marker.tsx +9 -5
  810. package/src/components/ui/menubar/menubar.tsx +2 -2
  811. package/src/components/ui/message/message.tsx +14 -13
  812. package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
  813. package/src/components/ui/native-select/native-select.tsx +1 -1
  814. package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
  815. package/src/components/ui/pagination/pagination.tsx +1 -1
  816. package/src/components/ui/popover/popover.tsx +4 -2
  817. package/src/components/ui/progress/progress.tsx +5 -3
  818. package/src/components/ui/questionnaire/questionnaire.tsx +10 -5
  819. package/src/components/ui/radio-group/radio-group.tsx +9 -6
  820. package/src/components/ui/resizable/resizable.tsx +5 -5
  821. package/src/components/ui/select/select.tsx +4 -4
  822. package/src/components/ui/sheet/sheet.tsx +4 -3
  823. package/src/components/ui/skeleton/skeleton.tsx +1 -1
  824. package/src/components/ui/slider/slider.tsx +1 -1
  825. package/src/components/ui/spinner/spinner.tsx +1 -1
  826. package/src/components/ui/status-chip/status-chip.tsx +13 -13
  827. package/src/components/ui/switch/switch.tsx +9 -6
  828. package/src/components/ui/tabs/tabs.tsx +4 -4
  829. package/src/components/ui/textarea/textarea.tsx +1 -1
  830. package/src/components/ui/toast/toast.tsx +6 -4
  831. package/src/components/ui/toggle/toggle.tsx +1 -1
  832. package/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
  833. package/src/components/ui/tooltip/index.ts +1 -0
  834. package/src/components/ui/tooltip/tooltip.tsx +6 -4
  835. package/src/components/ui/trace/trace.tsx +13 -9
  836. package/src/components/ui/typography/typography.tsx +5 -5
  837. package/src/index.ts +1 -0
  838. package/src/lib/accent-presets.ts +1 -1
  839. package/src/lib/accent-roles.ts +2 -2
  840. package/src/lib/appearance-font-settings.ts +18 -7
  841. package/src/lib/create-poll.ts +150 -0
  842. package/src/lib/font-zoom.ts +3 -3
  843. package/src/lib/keyed-rows.ts +3 -2
  844. package/src/lib/overlay.ts +6 -6
  845. package/src/lib/preference-store.ts +2 -2
  846. package/src/lib/safe-script.ts +2 -2
  847. package/src/lib/scroll-geometry.ts +1 -1
  848. package/src/lib/text.ts +1 -1
  849. package/src/lib/theme-accents.ts +3 -3
  850. package/src/lib/theme-css.ts +2 -2
  851. package/src/lib/theme-defaults.ts +4 -4
  852. package/src/lib/theme-engine-light.ts +2 -2
  853. package/src/lib/theme-engine.ts +2 -2
  854. package/src/lib/theme-projection.ts +2 -2
  855. package/src/lib/theme-records.ts +2 -2
  856. package/src/lib/theme-types.ts +1 -1
  857. package/src/lib/themes.ts +14 -14
  858. package/src/lib/tokens.ts +2 -2
  859. package/src/lib/tooltip-focus-gate.ts +11 -11
  860. package/src/lib/utils.ts +1 -1
  861. package/src/lib/variants.ts +4 -4
  862. package/src/lib/version-notes.ts +4 -4
  863. package/src/lint/index.ts +1 -1
  864. package/src/styles/base.css +12 -43
  865. package/src/styles/fonts.css +1 -1
  866. package/src/styles/theme.css +35 -35
  867. package/src/styles/themes/aardvark-blue.css +98 -0
  868. package/src/styles/themes/aardvark-ink.css +98 -0
  869. package/src/styles/themes/adea-dark-colorblind.css +98 -0
  870. package/src/styles/themes/adea-dark-high-contrast.css +98 -0
  871. package/src/styles/themes/adea-dark.css +47 -0
  872. package/src/styles/themes/adea-light-colorblind.css +141 -0
  873. package/src/styles/themes/adea-light-high-contrast.css +141 -0
  874. package/src/styles/themes/adea-light.css +47 -0
  875. package/src/styles/themes/ayu-light.css +141 -0
  876. package/src/styles/themes/ayu-mirage.css +98 -0
  877. package/src/styles/themes/ayu.css +98 -0
  878. package/src/styles/themes/catppuccin-frappe.css +98 -0
  879. package/src/styles/themes/catppuccin-latte.css +141 -0
  880. package/src/styles/themes/catppuccin-macchiato.css +98 -0
  881. package/src/styles/themes/catppuccin-mocha.css +98 -0
  882. package/src/styles/themes/dracula.css +98 -0
  883. package/src/styles/themes/everforest-dark.css +98 -0
  884. package/src/styles/themes/everforest-light.css +141 -0
  885. package/src/styles/themes/gruvbox-dark.css +98 -0
  886. package/src/styles/themes/gruvbox-light.css +141 -0
  887. package/src/styles/themes/kanagawa.css +98 -0
  888. package/src/styles/themes/monokai.css +98 -0
  889. package/src/styles/themes/nord-light.css +141 -0
  890. package/src/styles/themes/nord.css +98 -0
  891. package/src/styles/themes/one-dark.css +98 -0
  892. package/src/styles/themes/rosepine-dawn.css +141 -0
  893. package/src/styles/themes/rosepine-moon.css +98 -0
  894. package/src/styles/themes/rosepine.css +98 -0
  895. package/src/styles/themes/solarized-dark.css +98 -0
  896. package/src/styles/themes/solarized-light.css +141 -0
  897. package/src/styles/themes/tokyonight-day.css +141 -0
  898. package/src/styles/themes/tokyonight-night.css +98 -0
  899. package/src/styles/themes/tokyonight-storm.css +98 -0
  900. package/src/styles/themes/vesper.css +98 -0
@@ -0,0 +1,150 @@
1
+ import { createEffect, createSignal, onCleanup, untrack, type Accessor } from 'solid-js'
2
+ import { isServer } from 'solid-js/web'
3
+
4
+ export type PollOptions = {
5
+ /** Run once as soon as the poll starts, before the first interval. Default `true`. */
6
+ immediate?: boolean
7
+ /**
8
+ * Keep polling while the document is hidden (a background tab, a minimised
9
+ * window). Default `false`: a hidden page pauses, and becoming visible again
10
+ * runs at once when an interval was missed, then resumes the schedule.
11
+ */
12
+ whileHidden?: boolean
13
+ }
14
+
15
+ export type Poll = {
16
+ /** Run now, outside the schedule, and restart the interval from here. */
17
+ refresh: () => Promise<void>
18
+ /** Whether a run is in flight. */
19
+ running: Accessor<boolean>
20
+ }
21
+
22
+ /**
23
+ * A polling loop with the behaviour every hand-written one has to remember.
24
+ *
25
+ * - **Paused while hidden.** A background window does not wake the CPU or hit the
26
+ * network for data nobody can see; on return it catches up with one run.
27
+ * - **No overlap.** The next interval is scheduled after the previous run settles,
28
+ * so a slow request cannot stack up behind itself.
29
+ * - **Reactive interval.** `interval` may be an accessor; `false` (or `0`) stops the
30
+ * loop, and a new value reschedules it.
31
+ * - **Owned.** It stops with the owner that created it.
32
+ *
33
+ * A failed run is the task's business: a rejection is caught so the loop survives,
34
+ * and the next interval runs as usual.
35
+ *
36
+ * ```ts
37
+ * const poll = createPoll(() => refetch(), 5_000)
38
+ * // after a user action that changes the data:
39
+ * void poll.refresh()
40
+ * ```
41
+ */
42
+ export function createPoll(
43
+ task: () => unknown,
44
+ interval: number | false | Accessor<number | false>,
45
+ options: PollOptions = {}
46
+ ): Poll {
47
+ const [running, setRunning] = createSignal(false)
48
+ const [hidden, setHidden] = createSignal(
49
+ !isServer && !options.whileHidden && typeof document !== 'undefined' && document.hidden
50
+ )
51
+ const period = typeof interval === 'function' ? interval : () => interval
52
+ let timer: ReturnType<typeof setTimeout> | undefined
53
+ let missed = false
54
+ let disposed = false
55
+ let inFlight: Promise<void> | undefined
56
+
57
+ const clear = () => {
58
+ if (timer !== undefined) clearTimeout(timer)
59
+ timer = undefined
60
+ }
61
+
62
+ const schedule = () => {
63
+ clear()
64
+ const ms = untrack(period)
65
+ if (disposed || !ms || ms <= 0) return
66
+ timer = setTimeout(() => {
67
+ timer = undefined
68
+ if (untrack(hidden)) {
69
+ missed = true
70
+ return
71
+ }
72
+ void run()
73
+ }, ms)
74
+ }
75
+
76
+ const run = (): Promise<void> => {
77
+ if (inFlight) return inFlight
78
+ clear()
79
+ setRunning(true)
80
+ // The task starts synchronously; only its settling is awaited. A task that
81
+ // throws before returning is still a settled run, never a stuck one.
82
+ let result: unknown
83
+ try {
84
+ result = task()
85
+ } catch {
86
+ result = undefined
87
+ }
88
+ inFlight = Promise.resolve(result)
89
+ .catch(() => {
90
+ // The task reports its own failures; the loop keeps going.
91
+ })
92
+ .then(() => {
93
+ inFlight = undefined
94
+ if (!disposed) {
95
+ setRunning(false)
96
+ schedule()
97
+ }
98
+ })
99
+ return inFlight
100
+ }
101
+
102
+ if (!isServer && !options.whileHidden && typeof document !== 'undefined') {
103
+ const onVisibility = () => setHidden(document.hidden)
104
+ document.addEventListener('visibilitychange', onVisibility)
105
+ onCleanup(() => document.removeEventListener('visibilitychange', onVisibility))
106
+ }
107
+
108
+ let started = false
109
+ let lastPeriod: number | false = false
110
+ let rescheduleOnVisible = false
111
+ createEffect(() => {
112
+ const ms = period()
113
+ const isHidden = hidden()
114
+ if (isServer) return
115
+ const periodChanged = ms !== lastPeriod
116
+ lastPeriod = ms
117
+ if (!ms || ms <= 0) {
118
+ clear()
119
+ return
120
+ }
121
+ if (!started) {
122
+ started = true
123
+ if (options.immediate === false || isHidden) {
124
+ // A start while hidden owes the immediate run to the first visible moment.
125
+ missed = isHidden && options.immediate !== false
126
+ schedule()
127
+ } else void run()
128
+ return
129
+ }
130
+ if (isHidden) {
131
+ // A new interval while hidden is owed a schedule on return: no timer may be
132
+ // pending (a `false` cleared it), and nothing else would start one.
133
+ if (periodChanged) rescheduleOnVisible = true
134
+ return
135
+ }
136
+ const reschedule = periodChanged || rescheduleOnVisible
137
+ rescheduleOnVisible = false
138
+ if (missed) {
139
+ missed = false
140
+ void run()
141
+ } else if (reschedule && !inFlight) schedule()
142
+ })
143
+
144
+ onCleanup(() => {
145
+ disposed = true
146
+ clear()
147
+ })
148
+
149
+ return { refresh: run, running }
150
+ }
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * The platform zoom chords, mapped onto Adea's three text roles.
6
6
  *
7
- * macOS (and Windows/Linux) zoom shortcuts — Cmd/Ctrl with `=`, `+`, `-`, or
8
- * `0` — normally scale the browser's page zoom. In Adea every text element is
7
+ * macOS (and Windows/Linux) zoom shortcuts: Cmd/Ctrl with `=`, `+`, `-`, or
8
+ * `0`, normally scale the browser's page zoom. In Adea every text element is
9
9
  * already tied to one of the three appearance font tiers (the UI tier drives
10
10
  * the whole `text-*` scale through `--font-ui-scale`; content and code roles
11
11
  * scale through their own tokens), so stepping those tiers reproduces zoom
@@ -49,7 +49,7 @@ export function fontZoomShortcut(event: {
49
49
 
50
50
  /**
51
51
  * Step every text tier by `delta` pixels, clamped to the range the appearance editor
52
- * enforces. The axes move together — that is what makes the chord read as zoom — and
52
+ * enforces. The axes move together, that is what makes the chord read as zoom, and
53
53
  * each keeps its own family choice.
54
54
  */
55
55
  export function stepAppearanceFontSizes(
@@ -24,7 +24,8 @@ export type KeyedRow<T> = Readonly<{ item: Accessor<T> }>
24
24
  *
25
25
  * `equals` decides whether a fresh item replaces the row's stored value. The
26
26
  * default treats every new object as a change, which is correct for a projection
27
- * whose fields are all rendered. Pass a field-level comparator — a version
27
+ * whose fields are all rendered; the same object passed again is not one, so a
28
+ * list that rebuilds its array around unchanged items updates no row. Pass a field-level comparator — a version
28
29
  * stamp, a revision number — to skip redundant downstream updates entirely.
29
30
  *
30
31
  * ```tsx
@@ -52,7 +53,7 @@ export function keyedRows<T, K>(
52
53
  const [holder, setHolder] = createSignal<readonly [T]>([item], {
53
54
  equals:
54
55
  equals === false
55
- ? false
56
+ ? (previousHolder, nextHolder) => previousHolder[0] === nextHolder[0]
56
57
  : (previousHolder, nextHolder) => equals(previousHolder[0], nextHolder[0]),
57
58
  })
58
59
  entry = { row: { item: () => holder()[0] }, set: (nextItem) => setHolder([nextItem]) }
@@ -5,7 +5,7 @@
5
5
  * These live here rather than in each component because the overlay family is
6
6
  * where consistency is most visible and least likely to survive duplication.
7
7
  * A dialog, a sheet and a dropdown that disagree about their border, radius,
8
- * motion or shadow read as three different apps — and an app that adopts this
8
+ * motion or shadow read as three different apps, and an app that adopts this
9
9
  * library would inherit all three. Declaring the surface once is what makes
10
10
  * "an overlay looks like this" a fact rather than a convention.
11
11
  */
@@ -23,8 +23,8 @@ export const overlaySurface =
23
23
  *
24
24
  * `--popover` is the catalogue's `surfaceElevated`, whose derivation amplifies
25
25
  * the canvas hue's chroma on the elevated step. On the dark default's violet
26
- * canvas that makes the dialog the most chromatic surface in the ladder —
27
- * `oklch(0.2406 0.0088 300.91)`, red above green in sRGB — and on a full dialog
26
+ * canvas that makes the dialog the most chromatic surface in the ladder,
27
+ * `oklch(0.2406 0.0088 300.91)`, red above green in sRGB, and on a full dialog
28
28
  * panel that cast reads as a warm tint the canvas never has. shadcn's own
29
29
  * convention already splits the two: a Dialog paints `bg-background`, menus and
30
30
  * popovers paint `bg-popover`. The veil, the hairline and the elevation shadow
@@ -130,7 +130,7 @@ export const menuLabel =
130
130
  'px-2 py-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase'
131
131
 
132
132
  /** The chord drawn at a row's trailing edge: menus and the command palette. */
133
- export const menuShortcut = 'text-muted-foreground ms-auto font-code text-code tracking-widest'
133
+ export const menuShortcut = 'text-muted-foreground ms-auto text-xs tracking-widest'
134
134
 
135
135
  /** The rule between menu groups. */
136
136
  export const menuSeparator = 'bg-border -mx-1 my-1 h-px'
@@ -138,7 +138,7 @@ export const menuSeparator = 'bg-border -mx-1 my-1 h-px'
138
138
  /**
139
139
  * A leading colour swatch on a menu or select row: the sanctioned way to carry
140
140
  * a card-tone colour into a list of options. The tones are the system's accent
141
- * and status roles — the vocabulary a Badge already speaks — so the colour an
141
+ * and status roles, the vocabulary a Badge already speaks, so the colour an
142
142
  * option shows in a menu is the colour its badge carries on a card, and a
143
143
  * caller never passes a raw colour into a list. The dot is `aria-hidden`; the
144
144
  * label carries the meaning, so a tone is never the only signal.
@@ -164,7 +164,7 @@ export type MenuSwatchTone = NonNullable<VariantProps<typeof menuSwatchTone>['to
164
164
  export const menuContentPadding = 'p-1'
165
165
 
166
166
  /**
167
- * Marks a floating layer — a menu, a listbox, a popover — as part of the top
167
+ * Marks a floating layer, a menu, a listbox, a popover, as part of the top
168
168
  * layer.
169
169
  *
170
170
  * A modal dialog hides everything outside itself from assistive technology
@@ -59,8 +59,8 @@ export type RecoveryEnvelope = Readonly<{
59
59
  * Run `operation`, or answer `otherwise` if it throws.
60
60
  *
61
61
  * The one place a storage failure is swallowed. Storage throws for reasons outside
62
- * the code — blocked by a sandbox or a privacy mode, full, or holding bytes that are
63
- * not JSON — and a host's codec or persistence is code this system has not seen. In
62
+ * the code, blocked by a sandbox or a privacy mode, full, or holding bytes that are
63
+ * not JSON, and a host's codec or persistence is code this system has not seen. In
64
64
  * every case the preference is lost for the session and the switch that read or saved
65
65
  * it still works.
66
66
  */
@@ -6,12 +6,12 @@
6
6
  * there: it leaves `<` and `>` alone, so a value containing `</script>` ends the tag
7
7
  * early and everything after it is parsed as HTML. That is the classic inline-script
8
8
  * injection, and it is a real one even when the value is a developer-supplied prop
9
- * rather than user input — a prop can come from configuration, and a key that happens
9
+ * rather than user input, a prop can come from configuration, and a key that happens
10
10
  * to contain a closing tag should not be able to execute.
11
11
  *
12
12
  * The escape is also correct JavaScript: `\u003c` is `<` to the parser, so the value
13
13
  * is byte-identical at runtime and inert to the HTML tokenizer. `\u2028` and `\u2029`
14
- * are escaped for the neighbouring reason — they are legal inside a JSON string and
14
+ * are escaped for the neighbouring reason, they are legal inside a JSON string and
15
15
  * were, before ES2019, line terminators to a JavaScript parser.
16
16
  *
17
17
  * CodeQL flags the unescaped form as `js/bad-code-sanitization`, which is how this
@@ -17,7 +17,7 @@
17
17
  * ratios (0.67 CSS px at 150% zoom, 0.8 at 125%): the scroller's resting
18
18
  * maximum scrollTop lands on a fractional value, so `|scrollTop - target|`
19
19
  * stays just above 0.5 even when the viewport is visually pinned to the
20
- * bottom — making the pin re-fire on every ResizeObserver tick. Scaling the
20
+ * bottom, making the pin re-fire on every ResizeObserver tick. Scaling the
21
21
  * epsilon to the device pixel (never below 1 CSS px) absorbs that fractional
22
22
  * resting error. `devicePixelRatio` is read defensively so a jsdom / SSR
23
23
  * environment that leaves it undefined falls back to 1 (→ 1.5px).
@@ -34,7 +34,7 @@ function stripHidden(value: string): string {
34
34
  * Untrusted text, made safe to lay out: hidden and direction-overriding
35
35
  * characters removed, runs of whitespace (including newlines) collapsed to one
36
36
  * space, and clipped to `limit` with an ellipsis. It is still only ever rendered
37
- * as a text node — this is about length and spoofing, not escaping.
37
+ * as a text node, this is about length and spoofing, not escaping.
38
38
  */
39
39
  export function boundText(value: string, limit: number): string {
40
40
  // Clip before the regex passes so a multi-megabyte value costs a slice, not a scan.
@@ -3,16 +3,16 @@
3
3
  *
4
4
  * `@adea-ai/themes` offers two kinds of accent. The presets (`ACCENTS`) are brand
5
5
  * colours, the same six on every theme. Since 0.9 the catalogue also offers the
6
- * accent-shaped colours a theme carries itself — its ANSI blue, magenta, cyan and
6
+ * accent-shaped colours a theme carries itself, its ANSI blue, magenta, cyan and
7
7
  * green, paired across a light and a dark theme and kept only when they clear the
8
- * catalogue's accent floors — through `themeAccentPresets`. Those read as part of
8
+ * catalogue's accent floors, through `themeAccentPresets`. Those read as part of
9
9
  * the palette rather than as visitors on it, which is why they are offered here.
10
10
  *
11
11
  * Their ids are role-shaped (`ansi-blue`), not value-shaped: a stored theme accent
12
12
  * survives switching themes and resolves to the *new* theme's blue. That has one
13
13
  * consequence a consumer must handle, and this module is where it is handled once:
14
14
  * a stored theme accent may name a slot the current pair does not offer, and then
15
- * it resolves to nothing and the theme's own primary applies — the same fallback a
15
+ * it resolves to nothing and the theme's own primary applies, the same fallback a
16
16
  * stale preset id gets.
17
17
  *
18
18
  * This module holds only the id test, and reads only the schema entry: the
@@ -76,7 +76,7 @@ export function themeCssVariablesWith(
76
76
  '--primary-foreground': c.primaryForeground,
77
77
  /*
78
78
  * The two tokens derived from the primary, and they are here rather than left to
79
- * `theme.css` because they must follow `--primary` — which this function writes
79
+ * `theme.css` because they must follow `--primary`, which this function writes
80
80
  * for *any* theme in the catalogue, not just the two defaults `theme.css` carries.
81
81
  *
82
82
  * `--primary-hover` is a resolved colour, not a `color-mix()`: a uniform hover
@@ -87,7 +87,7 @@ export function themeCssVariablesWith(
87
87
  * own, but its *strength* is per theme: `primarySubtleCss(record)` lowers the
88
88
  * appearance ceiling only as far as this theme needs for body text to clear 4.5:1
89
89
  * on the tint, over every surface, for every accent it offers. It has to be
90
- * written per theme for that reason — the appearance-wide value is not legible on
90
+ * written per theme for that reason, the appearance-wide value is not legible on
91
91
  * every palette.
92
92
  */
93
93
  '--primary-hover': primaryHover(c.primary, theme.appearance),
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * The catalogue (`@adea-ai/themes`, 34 themes) is the heavy part of the theme
6
6
  * system. Most hosts start on the default pair, paint a catalogue theme from a
7
- * stylesheet, and open a picker rarely, so the rules every layer applies — the
8
- * engines, `lib/themes`, the persistence and the boot script — live here, beside the
7
+ * stylesheet, and open a picker rarely, so the rules every layer applies, the
8
+ * engines, `lib/themes`, the persistence and the boot script, live here, beside the
9
9
  * few catalogue facts they need: every catalogue id with its appearance and the
10
10
  * default pair as complete variants.
11
11
  *
@@ -97,8 +97,8 @@ export function storedThemeId(value: unknown, appearance: ThemeAppearance): stri
97
97
  /**
98
98
  * The variant a stored id means, or the default of the same appearance.
99
99
  *
100
- * An id the registry does not hold — an imported theme that was deleted, a
101
- * catalogue entry that was renamed — must still paint *something of the appearance
100
+ * An id the registry does not hold, an imported theme that was deleted, a
101
+ * catalogue entry that was renamed, must still paint *something of the appearance
102
102
  * being shown*. Falling back to whichever variant happens to be first in the
103
103
  * registry painted a dark palette under a light `color-scheme` for a light id, so
104
104
  * the fallback is the appearance's own default, then any variant of that
@@ -3,8 +3,8 @@
3
3
  * with the provider, with no catalogue code or data (see `lib/theme-engine`).
4
4
  *
5
5
  * It always answers. Where the exact answer needs the catalogue it gives the one the
6
- * shipped data supports — the appearance's tint strength for a theme it cannot
7
- * measure, no theme accents for a pair it does not hold — and calls `onIncomplete`,
6
+ * shipped data supports, the appearance's tint strength for a theme it cannot
7
+ * measure, no theme accents for a pair it does not hold, and calls `onIncomplete`,
8
8
  * which is how the lazy provider learns to load the catalogue. Painting never relies
9
9
  * on such an answer: the provider asks `needsCatalogue` first and waits.
10
10
  */
@@ -93,8 +93,8 @@ export function pairNeedsData(pair: ThemePair): boolean {
93
93
  *
94
94
  * True when the variant being shown, the pinned terminal theme, or (for a
95
95
  * theme-derived `ansi-*` accent) either theme of the pair is a catalogue theme other
96
- * than the two defaults. Everything else — the default pair, a host's own variants,
97
- * every preset and custom accent — the light engine answers from shipped data.
96
+ * than the two defaults. Everything else, the default pair, a host's own variants,
97
+ * every preset and custom accent, the light engine answers from shipped data.
98
98
  */
99
99
  export function needsCatalogue(
100
100
  selection: ThemePair & { accent: string; terminalThemeId?: string },
@@ -4,7 +4,7 @@
4
4
  * Adea imports user themes: a file is validated, repaired toward the readable floor,
5
5
  * and projected onto the hex values the host persists. That projection is the
6
6
  * catalogue's own (`shadcnVariables`, the xterm adapter, the editor roles), so it is
7
- * re-exported here and the host depends on this package alone for it — the pin
7
+ * re-exported here and the host depends on this package alone for it, the pin
8
8
  * between this package and `@adea-ai/themes` cannot drift from the host's.
9
9
  *
10
10
  * Its own module, with no catalogue data and no definition of its own beyond the two
@@ -43,7 +43,7 @@ export function defaultThemeRecord(appearance: 'light' | 'dark'): AdeaThemeRecor
43
43
  /**
44
44
  * The accents a light/dark pair of records carries itself, beside the presets.
45
45
  *
46
- * For a host whose pair is not in the catalogue — an imported theme — where
46
+ * For a host whose pair is not in the catalogue, an imported theme, where
47
47
  * `themeAccentsFor` (which looks the pair up by id) cannot answer. A slot is offered
48
48
  * only when both themes clear the catalogue's accent floors.
49
49
  */
@@ -101,8 +101,8 @@ function provenanceOf(theme: AdeaThemeRecord): ThemeProvenance {
101
101
  /**
102
102
  * The design system's view of one catalogue record, built in full and at once.
103
103
  *
104
- * For a host that holds a record the catalogue does not — an imported theme, a
105
- * reconstruction from stored data — and wants a variant it can hand to
104
+ * For a host that holds a record the catalogue does not, an imported theme, a
105
+ * reconstruction from stored data, and wants a variant it can hand to
106
106
  * `ThemeProvider`'s `themes`. It throws for a record the shadcn projection cannot
107
107
  * map, here and now, rather than on first paint. The catalogue itself goes through
108
108
  * {@link lazyVariantFromRecord} instead.
@@ -156,7 +156,7 @@ export type ThemeVariant = {
156
156
  /**
157
157
  * Custom properties written verbatim over `themeCssVariables`, last.
158
158
  *
159
- * For a variant a host built from data it does not control the derivation of —
159
+ * For a variant a host built from data it does not control the derivation of,
160
160
  * an imported theme whose painted colours must stay exactly what the user
161
161
  * imported. The catalogue's own variants never carry it, so the derived roles
162
162
  * stay the only source of truth for them.
@@ -5,7 +5,7 @@
5
5
  * the design system: the translation between the catalogue's **canonical** role
6
6
  * names and the **shadcn** vocabulary every component here is written against, plus
7
7
  * the handful of custom properties this system declares that are presentations of
8
- * data the catalogue already holds — the `--terminal-*` ramp, the `--editor-*` ramp,
8
+ * data the catalogue already holds, the `--terminal-*` ramp, the `--editor-*` ramp,
9
9
  * and `--chrome`.
10
10
  *
11
11
  * ## Why it is a bridge and not a copy
@@ -13,7 +13,7 @@
13
13
  * This file used to hold thirteen themes as hand-written hex literal tables, with its
14
14
  * own contrast validator, its own terminal and editor palettes, and its own
15
15
  * provenance records. That is a lot of surface to maintain for one consumer of a
16
- * palette, and it meant every product that wanted the same themes — Adea, Cortana —
16
+ * palette, and it meant every product that wanted the same themes, Adea, Cortana,
17
17
  * either imported this package or wrote its own. The catalogue moved out so that
18
18
  * there is one answer to "what is Catppuccin Mocha", and this file is the part that
19
19
  * genuinely belongs to the design system.
@@ -27,8 +27,8 @@
27
27
  * The package-owned `shadcnVariables` adapter maps canonical roles onto this
28
28
  * system's vocabulary. One entry will trip a reader: the catalogue's `accent`
29
29
  * becomes this system's `primary`, because in the shadcn vocabulary `--primary` is
30
- * the action colour — the fill of a primary button, the thing a focus ring is drawn
31
- * in — while `--accent` is a low-contrast hover wash. The catalogue's `accent` is
30
+ * the action colour, the fill of a primary button, the thing a focus ring is drawn
31
+ * in, while `--accent` is a low-contrast hover wash. The catalogue's `accent` is
32
32
  * the former, so it goes to `--primary`, and `--accent` is filled from
33
33
  * `surfaceHover`, which is what shadcn components actually use it for.
34
34
  */
@@ -135,7 +135,7 @@ export function themeFamilies(): { family: string; label: string; themes: ThemeV
135
135
  *
136
136
  * {@link builtinThemes} is this system's projection of the catalogue onto the
137
137
  * shadcn vocabulary, which is what a document is painted with. A *preview* of a
138
- * theme — the miniatures `AppearanceEditor` and `ThemeMiniature` draw — reads the
138
+ * theme, the miniatures `AppearanceEditor` and `ThemeMiniature` draw, reads the
139
139
  * catalogue's own roles instead (`surfaceActive`, `borderMuted`, `textSubtle`…),
140
140
  * several of which the projection folds together. These are those records, so a
141
141
  * consumer hands the editor exactly what it takes rather than reconstructing it
@@ -154,7 +154,7 @@ function recordPair(pair: ThemePair) {
154
154
  }
155
155
 
156
156
  /**
157
- * The accents the selected light/dark pair carries — offered beside the presets.
157
+ * The accents the selected light/dark pair carries, offered beside the presets.
158
158
  *
159
159
  * Computed per pair rather than per theme because a theme accent is a *pair* of
160
160
  * values, like a preset: a slot is offered only when both themes can offer it.
@@ -170,7 +170,7 @@ export function themeAccentsFor(
170
170
  /**
171
171
  * An accent id resolved against a theme pair: a preset, a theme accent the pair
172
172
  * offers, or `undefined` for `theme`, an unknown id, or a slot this pair cannot
173
- * offer — each of which means "use the theme's own primary".
173
+ * offer, each of which means "use the theme's own primary".
174
174
  *
175
175
  * Theme accent ids are role-shaped (`ansi-blue`), so a stored one survives a theme
176
176
  * switch and resolves to the new theme's blue; when the new pair cannot offer the
@@ -207,8 +207,8 @@ export function withAccent<T extends AdeaTheme>(theme: T, accent: AccentPreset |
207
207
  /**
208
208
  * The two preview themes an appearance selection resolves to, accent applied.
209
209
  *
210
- * The adapter between a stored selection and `AppearanceEditor`: it takes ids —
211
- * what a preference holds — and returns the canonical records the editor's
210
+ * The adapter between a stored selection and `AppearanceEditor`: it takes ids,
211
+ * what a preference holds, and returns the canonical records the editor's
212
212
  * `lightTheme` and `darkTheme` props take, so a host does not map roles by hand.
213
213
  * Unknown ids fall back to the defaults and an accent the pair cannot offer falls
214
214
  * back to the theme's own, exactly as `ThemeProvider` resolves them.
@@ -229,24 +229,24 @@ export function appearancePreviewThemes(selection: {
229
229
  * ## Why this exists rather than relying on the `[data-accent]` blocks
230
230
  *
231
231
  * `theme.css` carries a `[data-accent='…']` block per preset, and those blocks are
232
- * correct — but they are unreachable at runtime. `ThemeProvider` writes a theme's
232
+ * correct, but they are unreachable at runtime. `ThemeProvider` writes a theme's
233
233
  * whole role set onto `<html>` as *inline* custom properties, and an inline
234
234
  * declaration outranks any stylesheet selector regardless of specificity. The
235
235
  * attribute was set, the rules existed, the values were right, and every one of the
236
236
  * seven accents rendered as the same blue.
237
237
  *
238
238
  * The blocks are kept, because they are what styles the window between the document
239
- * arriving and the provider mounting — which is the whole reason `themeScript`
239
+ * arriving and the provider mounting, which is the whole reason `themeScript`
240
240
  * exists. But the authoritative value has to be applied by the same code that
241
241
  * applies the theme, from the same source, or the two can drift again. So both the
242
242
  * provider and the CSS generator call `accentRoles` out of `@adea-ai/themes`, and
243
243
  * `tests/appearance-axes.test.ts` asserts the two agree value for value.
244
244
  *
245
245
  * A theme accent (`ansi-blue`) has no block: its value depends on the theme pair,
246
- * so it is resolved against `pair` — the selection's light and dark theme ids —
246
+ * so it is resolved against `pair`, the selection's light and dark theme ids,
247
247
  * and only ever applied here. Without a pair it resolves against the defaults.
248
248
  *
249
- * Returns `undefined` for `theme` — the variant's own primary — for an id the
249
+ * Returns `undefined` for `theme`, the variant's own primary, for an id the
250
250
  * catalogue does not have, and for a theme accent the pair does not offer, so a
251
251
  * stale stored preference falls back to the theme rather than blanking the primary.
252
252
  */
@@ -368,7 +368,7 @@ export function themeCssVariables(
368
368
  *
369
369
  * Delegated. The floors are the catalogue's, because they are what makes the
370
370
  * catalogue able to hold other people's palettes at all, and a second set of floors
371
- * here would be a second answer to the same question — and the one that drifts.
371
+ * here would be a second answer to the same question, and the one that drifts.
372
372
  * ------------------------------------------------------------------------- */
373
373
 
374
374
  export type ThemeFinding = {
@@ -2,7 +2,7 @@
2
2
  * The design system's token manifest.
3
3
  *
4
4
  * `theme.css` is the source of truth for token *values*. This file is the
5
- * source of truth for token *names and meaning* — what each one is for, and
5
+ * source of truth for token *names and meaning*, what each one is for, and
6
6
  * which ones a theme may vary.
7
7
  *
8
8
  * It exists because a manifest that is only documentation rots. Two things read
@@ -43,7 +43,7 @@ export type TokenDefinition = {
43
43
  /**
44
44
  * Colour roles, in the order they appear in a page: surfaces first, then text,
45
45
  * then the lines between them, then the semantic fills. The order is the
46
- * documentation — reading the gallery top to bottom walks the surface ladder.
46
+ * documentation, reading the gallery top to bottom walks the surface ladder.
47
47
  */
48
48
  export const colorTokens: TokenDefinition[] = [
49
49
  // Surfaces
@@ -2,7 +2,7 @@
2
2
  * Tooltips open on active hover over the control, or on keyboard focus that
3
3
  * follows a Tab key press. They must never open from programmatic focus: the
4
4
  * autofocus a dialog or sheet gives its first control, and the focus a closing
5
- * overlay restores to its opener, both land on buttons that carry tooltips —
5
+ * overlay restores to its opener, both land on buttons that carry tooltips,
6
6
  * and the tooltip primitive opens immediately on focus and pins the tooltip
7
7
  * until blur. That is the "tooltip auto-displays when a sheet opens" report,
8
8
  * and the pinned tooltip is the "tooltip gets stuck and never disappears"
@@ -17,10 +17,10 @@
17
17
  * any element listener runs: the tooltip never learns about the focus. Hover
18
18
  * opens are untouched (they ride pointer events), and the separate `focusin`
19
19
  * event still flows, so dialog focus-cycle tracking, `:focus-visible` styling,
20
- * and focus restoration all keep working. Focus still lands — only the event
21
- * is stopped — so `document.activeElement` and scripted `.blur()` behave.
20
+ * and focus restoration all keep working. Focus still lands, only the event
21
+ * is stopped, so `document.activeElement` and scripted `.blur()` behave.
22
22
  *
23
- * The keyboard-intent signal is a Tab key press immediately before the focus —
23
+ * The keyboard-intent signal is a Tab key press immediately before the focus,
24
24
  * the only key that moves focus natively. Enter and Space open overlays too,
25
25
  * so any "recent key" window wide enough for those would let an overlay's own
26
26
  * autofocus back through; Tab-only keeps autofocus suppressed no matter how
@@ -29,7 +29,7 @@
29
29
  *
30
30
  * Suppression is scoped to button-like targets (`button`, `a[href]`,
31
31
  * `[role="button"]`, `[role="link"]`). Composite widgets that move focus
32
- * programmatically — menu items, listbox options, grid cells — are other
32
+ * programmatically, menu items, listbox options, grid cells, are other
33
33
  * element types whose roving-focus highlighting must keep receiving focus
34
34
  * events, and text controls keep their own focus behaviour (select on focus,
35
35
  * caret placement).
@@ -39,11 +39,11 @@
39
39
  * a trigger that is `activeElement` as keyboard-held: while a tooltip on it is
40
40
  * open, pointer movement away only *requests* a close and the request is
41
41
  * refused for as long as the pointer keeps moving. Left alone, a later real
42
- * hover on that control would open the tip and never let it leave — the
42
+ * hover on that control would open the tip and never let it leave, the
43
43
  * residual "stuck" case. The gate therefore treats a suppressed focus as a
44
44
  * phantom and releases it: the first pointer activity after the focus (a
45
45
  * pointer session taking over from a script) blurs the element. Keyboard
46
- * sessions never release it and never need to — keyboard focus moves by Tab,
46
+ * sessions never release it and never need to, keyboard focus moves by Tab,
47
47
  * which is never suppressed, so nothing pins; and the release only runs for
48
48
  * elements still holding `activeElement`, so a Tab already taken from the
49
49
  * phantom is left alone.
@@ -71,8 +71,8 @@
71
71
  *
72
72
  * The gate is installed by the `Tooltip` root for the lifetime of the first
73
73
  * tooltip in a document and removed when the last one unmounts, so every
74
- * consumer of the primitive — including composites that build their own
75
- * tooltips — inherits the contract without wiring of its own.
74
+ * consumer of the primitive, including composites that build their own
75
+ * tooltips, inherits the contract without wiring of its own.
76
76
  */
77
77
 
78
78
  /** How long after a Tab key press a resulting focus event still counts as
@@ -116,8 +116,8 @@ export function isButtonLikeFocusTarget(target: unknown): boolean {
116
116
 
117
117
  /**
118
118
  * The suppression decision: a button-like focus target hides a tooltip only
119
- * when no keyboard navigation is in flight. Anything else — a Tab-driven
120
- * focus, or focus on a non-button element — passes through untouched.
119
+ * when no keyboard navigation is in flight. Anything else, a Tab-driven
120
+ * focus, or focus on a non-button element, passes through untouched.
121
121
  */
122
122
  export function shouldSuppressTooltipFocus(input: {
123
123
  isButtonLike: boolean
@@ -18,7 +18,7 @@ import tables from './cn-tables.generated'
18
18
  * token-derived utility (`h-control-md`, `w-rail`, `p-control-lg`, …) is an
19
19
  * unknown name to a default merge instance. Left unregistered,
20
20
  * `cn('h-control-md', 'h-control-sm')` keeps both classes and the winner is
21
- * decided by stylesheet order rather than by the caller — a bug that only
21
+ * decided by stylesheet order rather than by the caller, a bug that only
22
22
  * shows up as a control that ignores its `size` prop, long after the line
23
23
  * that caused it was written.
24
24
  *
@@ -10,9 +10,9 @@
10
10
  * Three axes recur across the system, and components must reuse these names
11
11
  * rather than inventing synonyms:
12
12
  *
13
- * variant what the control *is for* — primary, secondary, destructive, …
14
- * size how much room it takes — 2xs, xs, sm, md, lg, xl, 2xl
15
- * tone what it *communicates* — neutral, success, warning, …
13
+ * variant what the control *is for*, primary, secondary, destructive, …
14
+ * size how much room it takes, 2xs, xs, sm, md, lg, xl, 2xl
15
+ * tone what it *communicates*, neutral, success, warning, …
16
16
  *
17
17
  * A component that needs a fourth axis is usually two components.
18
18
  */
@@ -55,7 +55,7 @@ export type ControlSize = (typeof controlSizes)[number]
55
55
  *
56
56
  * Kept in one place so hover, active, focus and disabled read identically on a
57
57
  * button, a toggle, a menu row and a tab. The `active:` step is only one
58
- * lightness rung below hover — enough to feel pressed, not enough to look like
58
+ * lightness rung below hover, enough to feel pressed, not enough to look like
59
59
  * a different state.
60
60
  */
61
61
  export const controlInteractive =