@adea-ai/ui 0.152.3 → 0.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (892) hide show
  1. package/README.md +469 -580
  2. package/dist/components/composites/account-menu/account-menu.d.ts +5 -0
  3. package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
  4. package/dist/components/composites/account-menu/account-menu.js +37 -13
  5. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  6. package/dist/components/composites/action-button/action-button.d.ts +2 -1
  7. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  8. package/dist/components/composites/action-button/action-button.js +92 -66
  9. package/dist/components/composites/action-button/action-button.js.map +1 -1
  10. package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +3 -3
  11. package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
  12. package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
  13. package/dist/components/composites/appearance-editor/appearance-choices.d.ts +1 -1
  14. package/dist/components/composites/appearance-editor/appearance-choices.js +1 -1
  15. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  16. package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
  17. package/dist/components/composites/appearance-editor/appearance-editor.js +57 -57
  18. package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
  19. package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
  20. package/dist/components/composites/appearance-editor/appearance-rows.js +9 -9
  21. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  22. package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -7
  23. package/dist/components/composites/appearance-editor/theme-preview.d.ts +1 -1
  24. package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
  25. package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
  26. package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
  27. package/dist/components/composites/catalog-browser/catalog-browser.js +6 -10
  28. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  29. package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
  30. package/dist/components/composites/catalog-browser/catalog-detail.js +36 -36
  31. package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
  32. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +4 -4
  33. package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
  34. package/dist/components/composites/chat/chat.d.ts.map +1 -1
  35. package/dist/components/composites/chat/chat.js +33 -37
  36. package/dist/components/composites/chat/chat.js.map +1 -1
  37. package/dist/components/composites/checkpoint/checkpoint-model.d.ts +3 -3
  38. package/dist/components/composites/checkpoint/checkpoint-model.js +2 -2
  39. package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
  40. package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
  41. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  42. package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
  43. package/dist/components/composites/confirmation/confirmation.js +1 -1
  44. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  45. package/dist/components/composites/context/context.d.ts +2 -2
  46. package/dist/components/composites/context/context.js.map +1 -1
  47. package/dist/components/composites/file-tree/build-file-tree.d.ts +1 -1
  48. package/dist/components/composites/file-tree/build-file-tree.js +1 -1
  49. package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
  50. package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
  51. package/dist/components/composites/file-tree/file-tree.js +7 -3
  52. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  53. package/dist/components/composites/icon-picker/icon-picker.js +1 -3
  54. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  55. package/dist/components/composites/inline-citation/citation.d.ts +1 -1
  56. package/dist/components/composites/inline-citation/citation.js +1 -1
  57. package/dist/components/composites/inline-citation/citation.js.map +1 -1
  58. package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
  59. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  60. package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
  61. package/dist/components/composites/list-row/list-row-control.js +22 -22
  62. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  63. package/dist/components/composites/list-row/list-row.d.ts +5 -0
  64. package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
  65. package/dist/components/composites/list-row/list-row.js +75 -83
  66. package/dist/components/composites/list-row/list-row.js.map +1 -1
  67. package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
  68. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  69. package/dist/components/composites/model-selector/model-selector.d.ts +4 -4
  70. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  71. package/dist/components/composites/model-selector/models.d.ts +2 -2
  72. package/dist/components/composites/model-selector/models.js +1 -1
  73. package/dist/components/composites/model-selector/models.js.map +1 -1
  74. package/dist/components/composites/plan/plan.d.ts.map +1 -1
  75. package/dist/components/composites/plan/plan.js +17 -15
  76. package/dist/components/composites/plan/plan.js.map +1 -1
  77. package/dist/components/composites/queue/queue.d.ts.map +1 -1
  78. package/dist/components/composites/queue/queue.js +5 -7
  79. package/dist/components/composites/queue/queue.js.map +1 -1
  80. package/dist/components/composites/reasoning/reasoning.d.ts +4 -4
  81. package/dist/components/composites/reasoning/reasoning.js +4 -4
  82. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  83. package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
  84. package/dist/components/composites/settings/settings-navigation.js +63 -14
  85. package/dist/components/composites/settings/settings-navigation.js.map +1 -1
  86. package/dist/components/composites/settings/settings.d.ts.map +1 -1
  87. package/dist/components/composites/settings/settings.js +32 -32
  88. package/dist/components/composites/settings/settings.js.map +1 -1
  89. package/dist/components/composites/sources/source.d.ts +1 -1
  90. package/dist/components/composites/sources/source.js.map +1 -1
  91. package/dist/components/composites/sources/sources.d.ts +2 -2
  92. package/dist/components/composites/sources/sources.js.map +1 -1
  93. package/dist/components/composites/stack-trace/parse-stack-trace.d.ts +3 -3
  94. package/dist/components/composites/stack-trace/parse-stack-trace.js +4 -4
  95. package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
  96. package/dist/components/composites/stack-trace/stack-trace.d.ts +3 -3
  97. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  98. package/dist/components/composites/stat/stat.d.ts.map +1 -1
  99. package/dist/components/composites/stat/stat.js +14 -16
  100. package/dist/components/composites/stat/stat.js.map +1 -1
  101. package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
  102. package/dist/components/composites/subagent/subagent.js +6 -4
  103. package/dist/components/composites/subagent/subagent.js.map +1 -1
  104. package/dist/components/composites/task/task.d.ts +1 -1
  105. package/dist/components/composites/task/task.js.map +1 -1
  106. package/dist/components/composites/terminal/ansi.d.ts +3 -3
  107. package/dist/components/composites/terminal/ansi.js.map +1 -1
  108. package/dist/components/composites/terminal/terminal-model.d.ts +3 -3
  109. package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
  110. package/dist/components/composites/terminal/terminal-model.js +1 -1
  111. package/dist/components/composites/terminal/terminal-model.js.map +1 -1
  112. package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
  113. package/dist/components/composites/terminal/terminal.js +24 -11
  114. package/dist/components/composites/terminal/terminal.js.map +1 -1
  115. package/dist/components/composites/test-results/test-results-model.d.ts +4 -4
  116. package/dist/components/composites/test-results/test-results-model.js +2 -2
  117. package/dist/components/composites/test-results/test-results-model.js.map +1 -1
  118. package/dist/components/composites/test-results/test-results.d.ts +1 -1
  119. package/dist/components/composites/test-results/test-results.js.map +1 -1
  120. package/dist/components/composites/tool/tool.d.ts +4 -4
  121. package/dist/components/composites/tool/tool.js.map +1 -1
  122. package/dist/components/composites/tree/tree.d.ts +1 -1
  123. package/dist/components/composites/tree/tree.d.ts.map +1 -1
  124. package/dist/components/composites/tree/tree.js +25 -18
  125. package/dist/components/composites/tree/tree.js.map +1 -1
  126. package/dist/components/composites/update-dialog/channel-control.d.ts +10 -4
  127. package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
  128. package/dist/components/composites/update-dialog/channel-control.js +14 -19
  129. package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
  130. package/dist/components/composites/update-dialog/index.d.ts +1 -1
  131. package/dist/components/composites/update-dialog/index.d.ts.map +1 -1
  132. package/dist/components/composites/update-dialog/update-dialog.js +4 -5
  133. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  134. package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
  135. package/dist/components/composites/workspace-mark/workspace-mark.js +19 -20
  136. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  137. package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
  138. package/dist/components/conversation/busy-send-button.js +18 -20
  139. package/dist/components/conversation/busy-send-button.js.map +1 -1
  140. package/dist/components/conversation/composer-menu.d.ts +3 -3
  141. package/dist/components/conversation/composer-menu.js +3 -3
  142. package/dist/components/conversation/composer-menu.js.map +1 -1
  143. package/dist/components/conversation/conversation-avatar.js +2 -4
  144. package/dist/components/conversation/conversation-avatar.js.map +1 -1
  145. package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
  146. package/dist/components/conversation/conversation-pane.js +6 -5
  147. package/dist/components/conversation/conversation-pane.js.map +1 -1
  148. package/dist/components/conversation/conversation-surface.js +3 -7
  149. package/dist/components/conversation/conversation-surface.js.map +1 -1
  150. package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
  151. package/dist/components/conversation/internal/chat-composer-shell.js +76 -76
  152. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  153. package/dist/components/conversation/message-composer.d.ts.map +1 -1
  154. package/dist/components/conversation/message-composer.js +32 -38
  155. package/dist/components/conversation/message-composer.js.map +1 -1
  156. package/dist/components/conversation/message-row.d.ts.map +1 -1
  157. package/dist/components/conversation/message-row.js +79 -73
  158. package/dist/components/conversation/message-row.js.map +1 -1
  159. package/dist/components/conversation/scroll-follow-core.d.ts +7 -7
  160. package/dist/components/conversation/scroll-follow-core.js +4 -4
  161. package/dist/components/conversation/scroll-follow-core.js.map +1 -1
  162. package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
  163. package/dist/components/conversation/scroll-follow.js +19 -4
  164. package/dist/components/conversation/scroll-follow.js.map +1 -1
  165. package/dist/components/conversation/thread-panel.d.ts.map +1 -1
  166. package/dist/components/conversation/thread-panel.js +23 -23
  167. package/dist/components/conversation/thread-panel.js.map +1 -1
  168. package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
  169. package/dist/components/conversation/transcript-composition.js +2 -2
  170. package/dist/components/conversation/transcript-composition.js.map +1 -1
  171. package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
  172. package/dist/components/layout/app-shell/app-shell.js +1 -1
  173. package/dist/components/layout/app-shell/app-shell.js.map +1 -1
  174. package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
  175. package/dist/components/layout/app-shell/skip-link.js +4 -6
  176. package/dist/components/layout/app-shell/skip-link.js.map +1 -1
  177. package/dist/components/layout/page/page.d.ts.map +1 -1
  178. package/dist/components/layout/page/page.js +17 -17
  179. package/dist/components/layout/page/page.js.map +1 -1
  180. package/dist/components/layout/panel/panel.js +2 -4
  181. package/dist/components/layout/panel/panel.js.map +1 -1
  182. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
  183. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +16 -1
  184. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  185. package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
  186. package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
  187. package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
  188. package/dist/components/layout/side-rail/side-rail.js +35 -34
  189. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  190. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
  191. package/dist/components/layout/sidebar-nav/sidebar-nav.js +23 -23
  192. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  193. package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
  194. package/dist/components/layout/split-layout/resize-controller-core-retry.js +25 -7
  195. package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
  196. package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
  197. package/dist/components/layout/split-layout/resize-controller-core.js +25 -7
  198. package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
  199. package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
  200. package/dist/components/layout/split-layout/split-layout.js +2 -2
  201. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  202. package/dist/components/layout/status-bar/status-bar.d.ts +1 -1
  203. package/dist/components/layout/status-bar/status-bar.js +1 -1
  204. package/dist/components/layout/status-bar/status-bar.js.map +1 -1
  205. package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
  206. package/dist/components/layout/top-bar/top-bar.js +7 -7
  207. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  208. package/dist/components/motion/presence.d.ts +2 -2
  209. package/dist/components/motion/presence.js.map +1 -1
  210. package/dist/components/theme/appearance-panel.d.ts +5 -5
  211. package/dist/components/theme/appearance-panel.js.map +1 -1
  212. package/dist/components/theme/lazy.d.ts +1 -1
  213. package/dist/components/theme/lazy.js.map +1 -1
  214. package/dist/components/theme/theme-catalogue-source.d.ts +2 -2
  215. package/dist/components/theme/theme-catalogue-source.js +2 -2
  216. package/dist/components/theme/theme-catalogue-source.js.map +1 -1
  217. package/dist/components/theme/theme-context.d.ts +2 -2
  218. package/dist/components/theme/theme-context.js +3 -3
  219. package/dist/components/theme/theme-context.js.map +1 -1
  220. package/dist/components/theme/theme-document.d.ts.map +1 -1
  221. package/dist/components/theme/theme-document.js +14 -9
  222. package/dist/components/theme/theme-document.js.map +1 -1
  223. package/dist/components/theme/theme-picker.d.ts +5 -5
  224. package/dist/components/theme/theme-picker.js.map +1 -1
  225. package/dist/components/theme/theme-provider-value.d.ts +0 -6
  226. package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
  227. package/dist/components/theme/theme-provider-value.js +9 -3
  228. package/dist/components/theme/theme-provider-value.js.map +1 -1
  229. package/dist/components/theme/theme-script.d.ts +14 -0
  230. package/dist/components/theme/theme-script.d.ts.map +1 -1
  231. package/dist/components/theme/theme-script.js +1 -0
  232. package/dist/components/theme/theme-script.js.map +1 -1
  233. package/dist/components/theme/theme-state.d.ts +7 -7
  234. package/dist/components/theme/theme-state.js.map +1 -1
  235. package/dist/components/theme/theme-toggle.d.ts +1 -1
  236. package/dist/components/theme/theme-toggle.js.map +1 -1
  237. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  238. package/dist/components/ui/alert/alert.js +4 -3
  239. package/dist/components/ui/alert/alert.js.map +1 -1
  240. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +1 -1
  241. package/dist/components/ui/alert-dialog/alert-dialog.js +3 -3
  242. package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
  243. package/dist/components/ui/badge/badge.d.ts +1 -1
  244. package/dist/components/ui/badge/badge.js +2 -2
  245. package/dist/components/ui/badge/badge.js.map +1 -1
  246. package/dist/components/ui/board/board.d.ts.map +1 -1
  247. package/dist/components/ui/board/board.js +10 -6
  248. package/dist/components/ui/board/board.js.map +1 -1
  249. package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
  250. package/dist/components/ui/bubble/bubble.js +6 -4
  251. package/dist/components/ui/bubble/bubble.js.map +1 -1
  252. package/dist/components/ui/button/button.js +2 -2
  253. package/dist/components/ui/button/button.js.map +1 -1
  254. package/dist/components/ui/button-group/button-group.d.ts +1 -1
  255. package/dist/components/ui/button-group/button-group.js +1 -1
  256. package/dist/components/ui/button-group/button-group.js.map +1 -1
  257. package/dist/components/ui/calendar/calendar.js +6 -6
  258. package/dist/components/ui/calendar/calendar.js.map +1 -1
  259. package/dist/components/ui/callout/callout.d.ts +4 -4
  260. package/dist/components/ui/callout/callout.js +4 -4
  261. package/dist/components/ui/callout/callout.js.map +1 -1
  262. package/dist/components/ui/card/card.d.ts +2 -2
  263. package/dist/components/ui/card/card.js +2 -2
  264. package/dist/components/ui/card/card.js.map +1 -1
  265. package/dist/components/ui/carousel/carousel.d.ts +4 -4
  266. package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
  267. package/dist/components/ui/carousel/carousel.js.map +1 -1
  268. package/dist/components/ui/chart/chart-options.d.ts +7 -7
  269. package/dist/components/ui/chart/chart-options.js +9 -9
  270. package/dist/components/ui/chart/chart-options.js.map +1 -1
  271. package/dist/components/ui/chart/chart.d.ts.map +1 -1
  272. package/dist/components/ui/chart/chart.js +16 -7
  273. package/dist/components/ui/chart/chart.js.map +1 -1
  274. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  275. package/dist/components/ui/checkbox/checkbox.js +8 -6
  276. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  277. package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
  278. package/dist/components/ui/code-block/code-block.js +8 -6
  279. package/dist/components/ui/code-block/code-block.js.map +1 -1
  280. package/dist/components/ui/command/command.d.ts +4 -4
  281. package/dist/components/ui/command/command.js +4 -4
  282. package/dist/components/ui/command/command.js.map +1 -1
  283. package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
  284. package/dist/components/ui/context-menu/context-menu.js.map +1 -1
  285. package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
  286. package/dist/components/ui/detail-panel/detail-panel.js +13 -13
  287. package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
  288. package/dist/components/ui/dialog/dialog-layer.d.ts +0 -4
  289. package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
  290. package/dist/components/ui/dialog/dialog-layer.js +17 -1
  291. package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
  292. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  293. package/dist/components/ui/dialog/dialog.js +4 -3
  294. package/dist/components/ui/dialog/dialog.js.map +1 -1
  295. package/dist/components/ui/diff-block/diff-block.d.ts +6 -6
  296. package/dist/components/ui/diff-block/diff-block.js +3 -3
  297. package/dist/components/ui/diff-block/diff-block.js.map +1 -1
  298. package/dist/components/ui/drawer/drawer.d.ts +3 -3
  299. package/dist/components/ui/drawer/drawer.js +2 -2
  300. package/dist/components/ui/drawer/drawer.js.map +1 -1
  301. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +5 -5
  302. package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
  303. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  304. package/dist/components/ui/dropdown-menu/menu-parts.d.ts +3 -3
  305. package/dist/components/ui/dropdown-menu/menu-parts.js +1 -1
  306. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
  307. package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
  308. package/dist/components/ui/empty/empty-state.js +33 -36
  309. package/dist/components/ui/empty/empty-state.js.map +1 -1
  310. package/dist/components/ui/empty/empty.d.ts +1 -1
  311. package/dist/components/ui/empty/empty.js +1 -1
  312. package/dist/components/ui/empty/empty.js.map +1 -1
  313. package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
  314. package/dist/components/ui/entity-icon/entity-icon.js +7 -7
  315. package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
  316. package/dist/components/ui/field/field.d.ts.map +1 -1
  317. package/dist/components/ui/field/field.js +15 -15
  318. package/dist/components/ui/field/field.js.map +1 -1
  319. package/dist/components/ui/field/number-field.d.ts +1 -1
  320. package/dist/components/ui/field/number-field.js +1 -1
  321. package/dist/components/ui/field/number-field.js.map +1 -1
  322. package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
  323. package/dist/components/ui/hover-card/hover-card.js.map +1 -1
  324. package/dist/components/ui/input-group/input-group.d.ts +1 -1
  325. package/dist/components/ui/input-group/input-group.js.map +1 -1
  326. package/dist/components/ui/input-otp/input-otp.d.ts +1 -1
  327. package/dist/components/ui/input-otp/input-otp.js.map +1 -1
  328. package/dist/components/ui/item/item.d.ts.map +1 -1
  329. package/dist/components/ui/item/item.js +26 -26
  330. package/dist/components/ui/item/item.js.map +1 -1
  331. package/dist/components/ui/kbd/kbd.d.ts +2 -2
  332. package/dist/components/ui/kbd/kbd.js +2 -2
  333. package/dist/components/ui/kbd/kbd.js.map +1 -1
  334. package/dist/components/ui/kbd/platform-modifier.d.ts +3 -3
  335. package/dist/components/ui/kbd/platform-modifier.js +3 -3
  336. package/dist/components/ui/kbd/platform-modifier.js.map +1 -1
  337. package/dist/components/ui/label/label.d.ts +1 -1
  338. package/dist/components/ui/label/label.js +1 -1
  339. package/dist/components/ui/label/label.js.map +1 -1
  340. package/dist/components/ui/marker/marker.d.ts.map +1 -1
  341. package/dist/components/ui/marker/marker.js +17 -19
  342. package/dist/components/ui/marker/marker.js.map +1 -1
  343. package/dist/components/ui/menubar/menubar.d.ts +2 -2
  344. package/dist/components/ui/menubar/menubar.js +1 -1
  345. package/dist/components/ui/menubar/menubar.js.map +1 -1
  346. package/dist/components/ui/message/message.d.ts.map +1 -1
  347. package/dist/components/ui/message/message.js +16 -18
  348. package/dist/components/ui/message/message.js.map +1 -1
  349. package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
  350. package/dist/components/ui/modal-dialog/modal-dialog.js +7 -11
  351. package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
  352. package/dist/components/ui/native-select/native-select.d.ts +1 -1
  353. package/dist/components/ui/native-select/native-select.js.map +1 -1
  354. package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
  355. package/dist/components/ui/navigation-menu/navigation-menu.js +5 -4
  356. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  357. package/dist/components/ui/pagination/pagination.js +2 -4
  358. package/dist/components/ui/pagination/pagination.js.map +1 -1
  359. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  360. package/dist/components/ui/popover/popover.js +11 -4
  361. package/dist/components/ui/popover/popover.js.map +1 -1
  362. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  363. package/dist/components/ui/progress/progress.js +6 -8
  364. package/dist/components/ui/progress/progress.js.map +1 -1
  365. package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
  366. package/dist/components/ui/questionnaire/questionnaire.js +73 -73
  367. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  368. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  369. package/dist/components/ui/radio-group/radio-group.js +12 -6
  370. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  371. package/dist/components/ui/resizable/resizable.d.ts +2 -2
  372. package/dist/components/ui/resizable/resizable.js +3 -3
  373. package/dist/components/ui/resizable/resizable.js.map +1 -1
  374. package/dist/components/ui/select/select.d.ts +3 -3
  375. package/dist/components/ui/select/select.js +1 -1
  376. package/dist/components/ui/select/select.js.map +1 -1
  377. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  378. package/dist/components/ui/sheet/sheet.js +4 -3
  379. package/dist/components/ui/sheet/sheet.js.map +1 -1
  380. package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
  381. package/dist/components/ui/skeleton/skeleton.js +1 -1
  382. package/dist/components/ui/skeleton/skeleton.js.map +1 -1
  383. package/dist/components/ui/slider/slider.d.ts +1 -1
  384. package/dist/components/ui/slider/slider.js.map +1 -1
  385. package/dist/components/ui/spinner/spinner.d.ts +1 -1
  386. package/dist/components/ui/spinner/spinner.js +1 -1
  387. package/dist/components/ui/spinner/spinner.js.map +1 -1
  388. package/dist/components/ui/status-chip/status-chip.d.ts +13 -13
  389. package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
  390. package/dist/components/ui/status-chip/status-chip.js +11 -11
  391. package/dist/components/ui/status-chip/status-chip.js.map +1 -1
  392. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  393. package/dist/components/ui/switch/switch.js +8 -6
  394. package/dist/components/ui/switch/switch.js.map +1 -1
  395. package/dist/components/ui/tabs/tabs.d.ts +4 -4
  396. package/dist/components/ui/tabs/tabs.js +4 -4
  397. package/dist/components/ui/tabs/tabs.js.map +1 -1
  398. package/dist/components/ui/textarea/textarea.d.ts +1 -1
  399. package/dist/components/ui/textarea/textarea.js +1 -1
  400. package/dist/components/ui/textarea/textarea.js.map +1 -1
  401. package/dist/components/ui/toast/toast.d.ts.map +1 -1
  402. package/dist/components/ui/toast/toast.js +13 -15
  403. package/dist/components/ui/toast/toast.js.map +1 -1
  404. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  405. package/dist/components/ui/toggle/toggle.js +1 -1
  406. package/dist/components/ui/toggle/toggle.js.map +1 -1
  407. package/dist/components/ui/tooltip/deferred-tooltip.d.ts +51 -0
  408. package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -0
  409. package/dist/components/ui/tooltip/deferred-tooltip.js +103 -0
  410. package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -0
  411. package/dist/components/ui/tooltip/index.d.ts +1 -0
  412. package/dist/components/ui/tooltip/index.d.ts.map +1 -1
  413. package/dist/components/ui/tooltip/index.js +3 -1
  414. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  415. package/dist/components/ui/tooltip/tooltip.js +6 -5
  416. package/dist/components/ui/tooltip/tooltip.js.map +1 -1
  417. package/dist/components/ui/trace/trace.d.ts.map +1 -1
  418. package/dist/components/ui/trace/trace.js +17 -17
  419. package/dist/components/ui/trace/trace.js.map +1 -1
  420. package/dist/components/ui/typography/typography.d.ts +3 -3
  421. package/dist/components/ui/typography/typography.js +5 -5
  422. package/dist/components/ui/typography/typography.js.map +1 -1
  423. package/dist/index.d.ts +1 -0
  424. package/dist/index.d.ts.map +1 -1
  425. package/dist/index.js +5 -3
  426. package/dist/lib/accent-presets.d.ts +1 -1
  427. package/dist/lib/accent-presets.js.map +1 -1
  428. package/dist/lib/accent-roles.d.ts +2 -2
  429. package/dist/lib/accent-roles.js +2 -2
  430. package/dist/lib/accent-roles.js.map +1 -1
  431. package/dist/lib/appearance-font-settings.d.ts.map +1 -1
  432. package/dist/lib/appearance-font-settings.js +15 -7
  433. package/dist/lib/appearance-font-settings.js.map +1 -1
  434. package/dist/lib/create-poll.d.ts +39 -0
  435. package/dist/lib/create-poll.d.ts.map +1 -0
  436. package/dist/lib/create-poll.js +116 -0
  437. package/dist/lib/create-poll.js.map +1 -0
  438. package/dist/lib/font-zoom.d.ts +1 -1
  439. package/dist/lib/font-zoom.js +1 -1
  440. package/dist/lib/font-zoom.js.map +1 -1
  441. package/dist/lib/keyed-rows.d.ts +2 -1
  442. package/dist/lib/keyed-rows.d.ts.map +1 -1
  443. package/dist/lib/keyed-rows.js +3 -2
  444. package/dist/lib/keyed-rows.js.map +1 -1
  445. package/dist/lib/overlay.d.ts +5 -5
  446. package/dist/lib/overlay.js +5 -5
  447. package/dist/lib/overlay.js.map +1 -1
  448. package/dist/lib/preference-store.d.ts +2 -2
  449. package/dist/lib/preference-store.js +2 -2
  450. package/dist/lib/preference-store.js.map +1 -1
  451. package/dist/lib/safe-script.d.ts +2 -2
  452. package/dist/lib/safe-script.js +2 -2
  453. package/dist/lib/safe-script.js.map +1 -1
  454. package/dist/lib/scroll-geometry.d.ts +1 -1
  455. package/dist/lib/scroll-geometry.js +1 -1
  456. package/dist/lib/scroll-geometry.js.map +1 -1
  457. package/dist/lib/text.d.ts +1 -1
  458. package/dist/lib/text.js +1 -1
  459. package/dist/lib/text.js.map +1 -1
  460. package/dist/lib/theme-accents.js +3 -3
  461. package/dist/lib/theme-accents.js.map +1 -1
  462. package/dist/lib/theme-css.js.map +1 -1
  463. package/dist/lib/theme-defaults.d.ts +4 -4
  464. package/dist/lib/theme-defaults.js +4 -4
  465. package/dist/lib/theme-defaults.js.map +1 -1
  466. package/dist/lib/theme-engine-light.js.map +1 -1
  467. package/dist/lib/theme-engine.d.ts +2 -2
  468. package/dist/lib/theme-engine.js +2 -2
  469. package/dist/lib/theme-engine.js.map +1 -1
  470. package/dist/lib/theme-projection.d.ts +1 -1
  471. package/dist/lib/theme-projection.js +2 -2
  472. package/dist/lib/theme-projection.js.map +1 -1
  473. package/dist/lib/theme-records.d.ts +2 -2
  474. package/dist/lib/theme-records.js +2 -2
  475. package/dist/lib/theme-records.js.map +1 -1
  476. package/dist/lib/theme-types.d.ts +1 -1
  477. package/dist/lib/theme-types.js.map +1 -1
  478. package/dist/lib/themes.d.ts +13 -13
  479. package/dist/lib/themes.js +13 -13
  480. package/dist/lib/themes.js.map +1 -1
  481. package/dist/lib/tokens.d.ts +2 -2
  482. package/dist/lib/tokens.js +1 -1
  483. package/dist/lib/tokens.js.map +1 -1
  484. package/dist/lib/tooltip-focus-gate.d.ts +2 -2
  485. package/dist/lib/tooltip-focus-gate.js +2 -2
  486. package/dist/lib/tooltip-focus-gate.js.map +1 -1
  487. package/dist/lib/utils.d.ts +1 -1
  488. package/dist/lib/utils.js +1 -1
  489. package/dist/lib/utils.js.map +1 -1
  490. package/dist/lib/variants.d.ts +4 -4
  491. package/dist/lib/variants.js +1 -1
  492. package/dist/lib/variants.js.map +1 -1
  493. package/dist/lib/version-notes.d.ts +4 -4
  494. package/dist/lib/version-notes.js +4 -4
  495. package/dist/lib/version-notes.js.map +1 -1
  496. package/dist/lint.js.map +1 -1
  497. package/dist/r/account-menu.json +1 -0
  498. package/dist/r/lib.json +5 -0
  499. package/dist/r/registry.json +11 -0
  500. package/dist/r/src/components/composites/account-menu/account-menu.tsx +22 -2
  501. package/dist/r/src/components/composites/action-button/action-button.tsx +124 -78
  502. package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
  503. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
  504. package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
  505. package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
  506. package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -7
  507. package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
  508. package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
  509. package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
  510. package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
  511. package/dist/r/src/components/composites/chat/chat.tsx +15 -9
  512. package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  513. package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +2 -2
  514. package/dist/r/src/components/composites/confirmation/confirmation.tsx +8 -4
  515. package/dist/r/src/components/composites/context/context.tsx +2 -2
  516. package/dist/r/src/components/composites/file-tree/build-file-tree.ts +1 -1
  517. package/dist/r/src/components/composites/file-tree/file-tree.tsx +16 -2
  518. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  519. package/dist/r/src/components/composites/inline-citation/citation.ts +1 -1
  520. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +2 -2
  521. package/dist/r/src/components/composites/list-row/list-row-control.tsx +31 -22
  522. package/dist/r/src/components/composites/list-row/list-row.tsx +69 -73
  523. package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +1 -1
  524. package/dist/r/src/components/composites/model-selector/model-selector.tsx +4 -4
  525. package/dist/r/src/components/composites/model-selector/models.ts +2 -2
  526. package/dist/r/src/components/composites/plan/plan.tsx +19 -11
  527. package/dist/r/src/components/composites/queue/queue.tsx +5 -3
  528. package/dist/r/src/components/composites/reasoning/reasoning.tsx +4 -4
  529. package/dist/r/src/components/composites/settings/settings-navigation.tsx +57 -17
  530. package/dist/r/src/components/composites/settings/settings.tsx +14 -6
  531. package/dist/r/src/components/composites/sources/source.ts +1 -1
  532. package/dist/r/src/components/composites/sources/sources.tsx +2 -2
  533. package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
  534. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -3
  535. package/dist/r/src/components/composites/stat/stat.tsx +20 -16
  536. package/dist/r/src/components/composites/subagent/subagent.tsx +6 -4
  537. package/dist/r/src/components/composites/task/task.tsx +1 -1
  538. package/dist/r/src/components/composites/terminal/ansi.ts +3 -3
  539. package/dist/r/src/components/composites/terminal/terminal-model.ts +3 -3
  540. package/dist/r/src/components/composites/terminal/terminal.tsx +24 -12
  541. package/dist/r/src/components/composites/test-results/test-results-model.ts +4 -4
  542. package/dist/r/src/components/composites/test-results/test-results.tsx +1 -1
  543. package/dist/r/src/components/composites/tool/tool.tsx +4 -4
  544. package/dist/r/src/components/composites/tree/tree.tsx +31 -15
  545. package/dist/r/src/components/composites/update-dialog/channel-control.tsx +17 -8
  546. package/dist/r/src/components/composites/update-dialog/index.ts +1 -0
  547. package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +7 -7
  548. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
  549. package/dist/r/src/components/conversation/busy-send-button.tsx +6 -2
  550. package/dist/r/src/components/conversation/composer-menu.tsx +3 -3
  551. package/dist/r/src/components/conversation/conversation-avatar.tsx +1 -1
  552. package/dist/r/src/components/conversation/conversation-pane.tsx +8 -5
  553. package/dist/r/src/components/conversation/conversation-surface.tsx +2 -2
  554. package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
  555. package/dist/r/src/components/conversation/message-composer.tsx +4 -6
  556. package/dist/r/src/components/conversation/message-row.tsx +34 -26
  557. package/dist/r/src/components/conversation/scroll-follow-core.ts +8 -8
  558. package/dist/r/src/components/conversation/scroll-follow.ts +24 -8
  559. package/dist/r/src/components/conversation/thread-panel.tsx +7 -3
  560. package/dist/r/src/components/conversation/transcript-composition.tsx +4 -2
  561. package/dist/r/src/components/layout/app-shell/app-shell.tsx +1 -1
  562. package/dist/r/src/components/layout/app-shell/skip-link.tsx +3 -2
  563. package/dist/r/src/components/layout/page/page.tsx +15 -11
  564. package/dist/r/src/components/layout/panel/panel.tsx +1 -1
  565. package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
  566. package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -1
  567. package/dist/r/src/components/layout/side-rail/side-rail.tsx +38 -22
  568. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
  569. package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
  570. package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
  571. package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -2
  572. package/dist/r/src/components/layout/status-bar/status-bar.tsx +1 -1
  573. package/dist/r/src/components/layout/top-bar/top-bar.tsx +8 -6
  574. package/dist/r/src/components/motion/presence.tsx +2 -2
  575. package/dist/r/src/components/theme/appearance-panel.tsx +5 -5
  576. package/dist/r/src/components/theme/lazy.ts +1 -1
  577. package/dist/r/src/components/theme/theme-catalogue-source.ts +2 -2
  578. package/dist/r/src/components/theme/theme-context.ts +3 -3
  579. package/dist/r/src/components/theme/theme-document.ts +22 -11
  580. package/dist/r/src/components/theme/theme-picker.tsx +5 -5
  581. package/dist/r/src/components/theme/theme-provider-value.ts +15 -3
  582. package/dist/r/src/components/theme/theme-script.ts +20 -0
  583. package/dist/r/src/components/theme/theme-state.ts +7 -7
  584. package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
  585. package/dist/r/src/components/ui/alert/alert.tsx +4 -3
  586. package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
  587. package/dist/r/src/components/ui/badge/badge.tsx +2 -2
  588. package/dist/r/src/components/ui/board/board.tsx +17 -5
  589. package/dist/r/src/components/ui/bubble/bubble.tsx +6 -4
  590. package/dist/r/src/components/ui/button/button.tsx +2 -2
  591. package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
  592. package/dist/r/src/components/ui/calendar/calendar.tsx +2 -2
  593. package/dist/r/src/components/ui/callout/callout.tsx +4 -4
  594. package/dist/r/src/components/ui/card/card.tsx +2 -2
  595. package/dist/r/src/components/ui/carousel/carousel.tsx +6 -6
  596. package/dist/r/src/components/ui/chart/chart-options.ts +9 -9
  597. package/dist/r/src/components/ui/chart/chart.tsx +14 -1
  598. package/dist/r/src/components/ui/checkbox/checkbox.tsx +9 -6
  599. package/dist/r/src/components/ui/code-block/code-block.tsx +14 -7
  600. package/dist/r/src/components/ui/command/command.tsx +7 -7
  601. package/dist/r/src/components/ui/context-menu/context-menu.tsx +1 -1
  602. package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -3
  603. package/dist/r/src/components/ui/dialog/dialog-layer.tsx +27 -1
  604. package/dist/r/src/components/ui/dialog/dialog.tsx +4 -3
  605. package/dist/r/src/components/ui/diff-block/diff-block.tsx +6 -6
  606. package/dist/r/src/components/ui/drawer/drawer.tsx +3 -3
  607. package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
  608. package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
  609. package/dist/r/src/components/ui/empty/empty-state.tsx +23 -18
  610. package/dist/r/src/components/ui/empty/empty.tsx +1 -1
  611. package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +5 -1
  612. package/dist/r/src/components/ui/field/field.tsx +15 -7
  613. package/dist/r/src/components/ui/field/number-field.tsx +1 -1
  614. package/dist/r/src/components/ui/hover-card/hover-card.tsx +1 -1
  615. package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
  616. package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
  617. package/dist/r/src/components/ui/item/item.tsx +24 -18
  618. package/dist/r/src/components/ui/kbd/kbd.tsx +2 -2
  619. package/dist/r/src/components/ui/kbd/platform-modifier.ts +3 -3
  620. package/dist/r/src/components/ui/label/label.tsx +1 -1
  621. package/dist/r/src/components/ui/marker/marker.tsx +9 -5
  622. package/dist/r/src/components/ui/menubar/menubar.tsx +2 -2
  623. package/dist/r/src/components/ui/message/message.tsx +14 -13
  624. package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
  625. package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
  626. package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
  627. package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
  628. package/dist/r/src/components/ui/popover/popover.tsx +4 -2
  629. package/dist/r/src/components/ui/progress/progress.tsx +5 -3
  630. package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +10 -5
  631. package/dist/r/src/components/ui/radio-group/radio-group.tsx +9 -6
  632. package/dist/r/src/components/ui/resizable/resizable.tsx +5 -5
  633. package/dist/r/src/components/ui/select/select.tsx +4 -4
  634. package/dist/r/src/components/ui/sheet/sheet.tsx +4 -3
  635. package/dist/r/src/components/ui/skeleton/skeleton.tsx +1 -1
  636. package/dist/r/src/components/ui/slider/slider.tsx +1 -1
  637. package/dist/r/src/components/ui/spinner/spinner.tsx +1 -1
  638. package/dist/r/src/components/ui/status-chip/status-chip.tsx +13 -13
  639. package/dist/r/src/components/ui/switch/switch.tsx +9 -6
  640. package/dist/r/src/components/ui/tabs/tabs.tsx +4 -4
  641. package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
  642. package/dist/r/src/components/ui/toast/toast.tsx +6 -4
  643. package/dist/r/src/components/ui/toggle/toggle.tsx +1 -1
  644. package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
  645. package/dist/r/src/components/ui/tooltip/index.ts +1 -0
  646. package/dist/r/src/components/ui/tooltip/tooltip.tsx +6 -4
  647. package/dist/r/src/components/ui/trace/trace.tsx +13 -9
  648. package/dist/r/src/components/ui/typography/typography.tsx +5 -5
  649. package/dist/r/src/lib/accent-presets.ts +1 -1
  650. package/dist/r/src/lib/accent-roles.ts +2 -2
  651. package/dist/r/src/lib/appearance-font-settings.ts +18 -7
  652. package/dist/r/src/lib/create-poll.ts +150 -0
  653. package/dist/r/src/lib/font-zoom.ts +3 -3
  654. package/dist/r/src/lib/keyed-rows.ts +3 -2
  655. package/dist/r/src/lib/overlay.ts +5 -5
  656. package/dist/r/src/lib/preference-store.ts +2 -2
  657. package/dist/r/src/lib/safe-script.ts +2 -2
  658. package/dist/r/src/lib/scroll-geometry.ts +1 -1
  659. package/dist/r/src/lib/text.ts +1 -1
  660. package/dist/r/src/lib/theme-accents.ts +3 -3
  661. package/dist/r/src/lib/theme-css.ts +2 -2
  662. package/dist/r/src/lib/theme-defaults.ts +4 -4
  663. package/dist/r/src/lib/theme-engine-light.ts +2 -2
  664. package/dist/r/src/lib/theme-engine.ts +2 -2
  665. package/dist/r/src/lib/theme-projection.ts +2 -2
  666. package/dist/r/src/lib/theme-records.ts +2 -2
  667. package/dist/r/src/lib/theme-types.ts +1 -1
  668. package/dist/r/src/lib/themes.ts +14 -14
  669. package/dist/r/src/lib/tokens.ts +2 -2
  670. package/dist/r/src/lib/tooltip-focus-gate.ts +11 -11
  671. package/dist/r/src/lib/utils.ts +1 -1
  672. package/dist/r/src/lib/variants.ts +4 -4
  673. package/dist/r/src/lib/version-notes.ts +4 -4
  674. package/dist/r/src/styles/base.css +12 -43
  675. package/dist/r/src/styles/fonts.css +1 -1
  676. package/dist/r/src/styles/theme.css +35 -35
  677. package/dist/r/tooltip.json +5 -0
  678. package/package.json +2 -1
  679. package/registry.json +11 -0
  680. package/src/components/composites/account-menu/account-menu.tsx +22 -2
  681. package/src/components/composites/action-button/action-button.tsx +124 -78
  682. package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
  683. package/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
  684. package/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
  685. package/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
  686. package/src/components/composites/appearance-editor/appearance-types.ts +7 -7
  687. package/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
  688. package/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
  689. package/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
  690. package/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
  691. package/src/components/composites/chat/chat.tsx +15 -9
  692. package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  693. package/src/components/composites/checkpoint/checkpoint.tsx +2 -2
  694. package/src/components/composites/confirmation/confirmation.tsx +8 -4
  695. package/src/components/composites/context/context.tsx +2 -2
  696. package/src/components/composites/file-tree/build-file-tree.ts +1 -1
  697. package/src/components/composites/file-tree/file-tree.tsx +16 -2
  698. package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  699. package/src/components/composites/inline-citation/citation.ts +1 -1
  700. package/src/components/composites/inline-citation/inline-citation.tsx +2 -2
  701. package/src/components/composites/list-row/list-row-control.tsx +31 -22
  702. package/src/components/composites/list-row/list-row.tsx +69 -73
  703. package/src/components/composites/message-scroller/message-scroller.tsx +1 -1
  704. package/src/components/composites/model-selector/model-selector.tsx +4 -4
  705. package/src/components/composites/model-selector/models.ts +2 -2
  706. package/src/components/composites/plan/plan.tsx +19 -11
  707. package/src/components/composites/queue/queue.tsx +5 -3
  708. package/src/components/composites/reasoning/reasoning.tsx +4 -4
  709. package/src/components/composites/settings/settings-navigation.tsx +57 -17
  710. package/src/components/composites/settings/settings.tsx +14 -6
  711. package/src/components/composites/sources/source.ts +1 -1
  712. package/src/components/composites/sources/sources.tsx +2 -2
  713. package/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
  714. package/src/components/composites/stack-trace/stack-trace.tsx +3 -3
  715. package/src/components/composites/stat/stat.tsx +20 -16
  716. package/src/components/composites/subagent/subagent.tsx +6 -4
  717. package/src/components/composites/task/task.tsx +1 -1
  718. package/src/components/composites/terminal/ansi.ts +3 -3
  719. package/src/components/composites/terminal/terminal-model.ts +3 -3
  720. package/src/components/composites/terminal/terminal.tsx +24 -12
  721. package/src/components/composites/test-results/test-results-model.ts +4 -4
  722. package/src/components/composites/test-results/test-results.tsx +1 -1
  723. package/src/components/composites/tool/tool.tsx +4 -4
  724. package/src/components/composites/tree/tree.tsx +31 -15
  725. package/src/components/composites/update-dialog/channel-control.tsx +17 -8
  726. package/src/components/composites/update-dialog/index.ts +1 -0
  727. package/src/components/composites/update-dialog/update-dialog.tsx +7 -7
  728. package/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
  729. package/src/components/conversation/busy-send-button.tsx +6 -2
  730. package/src/components/conversation/composer-menu.tsx +3 -3
  731. package/src/components/conversation/conversation-avatar.tsx +1 -1
  732. package/src/components/conversation/conversation-pane.tsx +8 -5
  733. package/src/components/conversation/conversation-surface.tsx +2 -2
  734. package/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
  735. package/src/components/conversation/message-composer.tsx +4 -6
  736. package/src/components/conversation/message-row.tsx +34 -26
  737. package/src/components/conversation/scroll-follow-core.ts +8 -8
  738. package/src/components/conversation/scroll-follow.ts +24 -8
  739. package/src/components/conversation/thread-panel.tsx +7 -3
  740. package/src/components/conversation/transcript-composition.tsx +4 -2
  741. package/src/components/layout/app-shell/app-shell.tsx +1 -1
  742. package/src/components/layout/app-shell/skip-link.tsx +3 -2
  743. package/src/components/layout/page/page.tsx +15 -11
  744. package/src/components/layout/panel/panel.tsx +1 -1
  745. package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
  746. package/src/components/layout/side-rail/side-rail-context.ts +1 -1
  747. package/src/components/layout/side-rail/side-rail.tsx +38 -22
  748. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
  749. package/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
  750. package/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
  751. package/src/components/layout/split-layout/split-layout.tsx +6 -2
  752. package/src/components/layout/status-bar/status-bar.tsx +1 -1
  753. package/src/components/layout/top-bar/top-bar.tsx +8 -6
  754. package/src/components/motion/presence.tsx +2 -2
  755. package/src/components/theme/appearance-panel.tsx +5 -5
  756. package/src/components/theme/lazy.ts +1 -1
  757. package/src/components/theme/theme-catalogue-source.ts +2 -2
  758. package/src/components/theme/theme-context.ts +3 -3
  759. package/src/components/theme/theme-document.ts +22 -11
  760. package/src/components/theme/theme-picker.tsx +5 -5
  761. package/src/components/theme/theme-provider-value.ts +15 -3
  762. package/src/components/theme/theme-script.ts +20 -0
  763. package/src/components/theme/theme-state.ts +7 -7
  764. package/src/components/theme/theme-toggle.tsx +1 -1
  765. package/src/components/ui/alert/alert.tsx +4 -3
  766. package/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
  767. package/src/components/ui/badge/badge.tsx +2 -2
  768. package/src/components/ui/board/board.tsx +17 -5
  769. package/src/components/ui/bubble/bubble.tsx +6 -4
  770. package/src/components/ui/button/button.tsx +2 -2
  771. package/src/components/ui/button-group/button-group.tsx +1 -1
  772. package/src/components/ui/calendar/calendar.tsx +2 -2
  773. package/src/components/ui/callout/callout.tsx +4 -4
  774. package/src/components/ui/card/card.tsx +2 -2
  775. package/src/components/ui/carousel/carousel.tsx +6 -6
  776. package/src/components/ui/chart/chart-options.ts +9 -9
  777. package/src/components/ui/chart/chart.tsx +14 -1
  778. package/src/components/ui/checkbox/checkbox.tsx +9 -6
  779. package/src/components/ui/code-block/code-block.tsx +14 -7
  780. package/src/components/ui/command/command.tsx +7 -7
  781. package/src/components/ui/context-menu/context-menu.tsx +1 -1
  782. package/src/components/ui/detail-panel/detail-panel.tsx +5 -3
  783. package/src/components/ui/dialog/dialog-layer.tsx +27 -1
  784. package/src/components/ui/dialog/dialog.tsx +4 -3
  785. package/src/components/ui/diff-block/diff-block.tsx +6 -6
  786. package/src/components/ui/drawer/drawer.tsx +3 -3
  787. package/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
  788. package/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
  789. package/src/components/ui/empty/empty-state.tsx +23 -18
  790. package/src/components/ui/empty/empty.tsx +1 -1
  791. package/src/components/ui/entity-icon/entity-icon.tsx +5 -1
  792. package/src/components/ui/field/field.tsx +15 -7
  793. package/src/components/ui/field/number-field.tsx +1 -1
  794. package/src/components/ui/hover-card/hover-card.tsx +1 -1
  795. package/src/components/ui/input-group/input-group.tsx +1 -1
  796. package/src/components/ui/input-otp/input-otp.tsx +1 -1
  797. package/src/components/ui/item/item.tsx +24 -18
  798. package/src/components/ui/kbd/kbd.tsx +2 -2
  799. package/src/components/ui/kbd/platform-modifier.ts +3 -3
  800. package/src/components/ui/label/label.tsx +1 -1
  801. package/src/components/ui/marker/marker.tsx +9 -5
  802. package/src/components/ui/menubar/menubar.tsx +2 -2
  803. package/src/components/ui/message/message.tsx +14 -13
  804. package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
  805. package/src/components/ui/native-select/native-select.tsx +1 -1
  806. package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
  807. package/src/components/ui/pagination/pagination.tsx +1 -1
  808. package/src/components/ui/popover/popover.tsx +4 -2
  809. package/src/components/ui/progress/progress.tsx +5 -3
  810. package/src/components/ui/questionnaire/questionnaire.tsx +10 -5
  811. package/src/components/ui/radio-group/radio-group.tsx +9 -6
  812. package/src/components/ui/resizable/resizable.tsx +5 -5
  813. package/src/components/ui/select/select.tsx +4 -4
  814. package/src/components/ui/sheet/sheet.tsx +4 -3
  815. package/src/components/ui/skeleton/skeleton.tsx +1 -1
  816. package/src/components/ui/slider/slider.tsx +1 -1
  817. package/src/components/ui/spinner/spinner.tsx +1 -1
  818. package/src/components/ui/status-chip/status-chip.tsx +13 -13
  819. package/src/components/ui/switch/switch.tsx +9 -6
  820. package/src/components/ui/tabs/tabs.tsx +4 -4
  821. package/src/components/ui/textarea/textarea.tsx +1 -1
  822. package/src/components/ui/toast/toast.tsx +6 -4
  823. package/src/components/ui/toggle/toggle.tsx +1 -1
  824. package/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
  825. package/src/components/ui/tooltip/index.ts +1 -0
  826. package/src/components/ui/tooltip/tooltip.tsx +6 -4
  827. package/src/components/ui/trace/trace.tsx +13 -9
  828. package/src/components/ui/typography/typography.tsx +5 -5
  829. package/src/index.ts +1 -0
  830. package/src/lib/accent-presets.ts +1 -1
  831. package/src/lib/accent-roles.ts +2 -2
  832. package/src/lib/appearance-font-settings.ts +18 -7
  833. package/src/lib/create-poll.ts +150 -0
  834. package/src/lib/font-zoom.ts +3 -3
  835. package/src/lib/keyed-rows.ts +3 -2
  836. package/src/lib/overlay.ts +5 -5
  837. package/src/lib/preference-store.ts +2 -2
  838. package/src/lib/safe-script.ts +2 -2
  839. package/src/lib/scroll-geometry.ts +1 -1
  840. package/src/lib/text.ts +1 -1
  841. package/src/lib/theme-accents.ts +3 -3
  842. package/src/lib/theme-css.ts +2 -2
  843. package/src/lib/theme-defaults.ts +4 -4
  844. package/src/lib/theme-engine-light.ts +2 -2
  845. package/src/lib/theme-engine.ts +2 -2
  846. package/src/lib/theme-projection.ts +2 -2
  847. package/src/lib/theme-records.ts +2 -2
  848. package/src/lib/theme-types.ts +1 -1
  849. package/src/lib/themes.ts +14 -14
  850. package/src/lib/tokens.ts +2 -2
  851. package/src/lib/tooltip-focus-gate.ts +11 -11
  852. package/src/lib/utils.ts +1 -1
  853. package/src/lib/variants.ts +4 -4
  854. package/src/lib/version-notes.ts +4 -4
  855. package/src/lint/index.ts +1 -1
  856. package/src/styles/base.css +12 -43
  857. package/src/styles/fonts.css +1 -1
  858. package/src/styles/theme.css +35 -35
  859. package/src/styles/themes/aardvark-blue.css +98 -0
  860. package/src/styles/themes/aardvark-ink.css +98 -0
  861. package/src/styles/themes/adea-dark-colorblind.css +98 -0
  862. package/src/styles/themes/adea-dark-high-contrast.css +98 -0
  863. package/src/styles/themes/adea-dark.css +47 -0
  864. package/src/styles/themes/adea-light-colorblind.css +141 -0
  865. package/src/styles/themes/adea-light-high-contrast.css +141 -0
  866. package/src/styles/themes/adea-light.css +47 -0
  867. package/src/styles/themes/ayu-light.css +141 -0
  868. package/src/styles/themes/ayu-mirage.css +98 -0
  869. package/src/styles/themes/ayu.css +98 -0
  870. package/src/styles/themes/catppuccin-frappe.css +98 -0
  871. package/src/styles/themes/catppuccin-latte.css +141 -0
  872. package/src/styles/themes/catppuccin-macchiato.css +98 -0
  873. package/src/styles/themes/catppuccin-mocha.css +98 -0
  874. package/src/styles/themes/dracula.css +98 -0
  875. package/src/styles/themes/everforest-dark.css +98 -0
  876. package/src/styles/themes/everforest-light.css +141 -0
  877. package/src/styles/themes/gruvbox-dark.css +98 -0
  878. package/src/styles/themes/gruvbox-light.css +141 -0
  879. package/src/styles/themes/kanagawa.css +98 -0
  880. package/src/styles/themes/monokai.css +98 -0
  881. package/src/styles/themes/nord-light.css +141 -0
  882. package/src/styles/themes/nord.css +98 -0
  883. package/src/styles/themes/one-dark.css +98 -0
  884. package/src/styles/themes/rosepine-dawn.css +141 -0
  885. package/src/styles/themes/rosepine-moon.css +98 -0
  886. package/src/styles/themes/rosepine.css +98 -0
  887. package/src/styles/themes/solarized-dark.css +98 -0
  888. package/src/styles/themes/solarized-light.css +141 -0
  889. package/src/styles/themes/tokyonight-day.css +141 -0
  890. package/src/styles/themes/tokyonight-night.css +98 -0
  891. package/src/styles/themes/tokyonight-storm.css +98 -0
  892. package/src/styles/themes/vesper.css +98 -0
@@ -37,8 +37,8 @@ export const buttonVariants = cva(
37
37
  ghost: 'text-foreground hover:bg-surface-hover',
38
38
  /**
39
39
  * A ghost that opens something: a sheet, menu or popover trigger in a
40
- * toolbar. While its surface is open it holds the accent's own tint —
41
- * the same treatment that drives the side rail's active destination —
40
+ * toolbar. While its surface is open it holds the accent's own tint,
41
+ * the same treatment that drives the side rail's active destination,
42
42
  * so the open control never reads identical to its closed neighbours
43
43
  * and the app's pressed chrome reads as one accent chroma. The
44
44
  * compound hover keeps the tint when an open control is pointed at.
@@ -72,7 +72,7 @@ export function ButtonGroupSeparator(
72
72
  }
73
73
 
74
74
  /**
75
- * Static text in a group — a unit, a label, a readout that is not a control. It
75
+ * Static text in a group, a unit, a label, a readout that is not a control. It
76
76
  * takes the group's border and height so it sits in the row as a peer, but it is
77
77
  * not focusable and does not pretend to be.
78
78
  */
@@ -256,7 +256,7 @@ export function DatePicker(props: DatePickerProps) {
256
256
  return (
257
257
  <div class={cn('grid w-fit gap-2', local.class)}>
258
258
  <Show when={local.label}>
259
- <p class="text-xs font-semibold text-foreground">{local.label}</p>
259
+ {(labelSlot) => <p class="text-xs font-semibold text-foreground">{labelSlot()}</p>}
260
260
  </Show>
261
261
  <CalendarSurface
262
262
  {...rest}
@@ -265,7 +265,7 @@ export function DatePicker(props: DatePickerProps) {
265
265
  onValueChange={local.onValueChange}
266
266
  />
267
267
  <Show when={local.footer}>
268
- <div class="flex justify-end gap-2">{local.footer}</div>
268
+ {(footerSlot) => <div class="flex justify-end gap-2">{footerSlot()}</div>}
269
269
  </Show>
270
270
  </div>
271
271
  )
@@ -12,7 +12,7 @@ import { cn } from '#lib/utils'
12
12
  * nothing about it interrupts the reader.
13
13
  *
14
14
  * That is the difference from `Alert`. An `Alert` is a message about the state of
15
- * the surface it sits in — a failed sync, a validation summary — so it is always
15
+ * the surface it sits in, a failed sync, a validation summary, so it is always
16
16
  * `role="alert"`, a live announcement, with a tone glyph and a tinted status
17
17
  * surface. A callout is static page content: a plain `div` with `role="note"`, no
18
18
  * live region, no icon, and no tint. A caller whose note really is a status
@@ -30,9 +30,9 @@ import { cn } from '#lib/utils'
30
30
  * sets `p-*` or a border width to make one denser. The rungs are Cortana's three
31
31
  * answer-view callouts, expressed in the Tailwind spacing scale:
32
32
  *
33
- * - `lg`: 22px / 24px padding, 3px rule — Cortana's `.answer-copy`.
34
- * - `md`: 18px / 20px padding, 3px rule — Cortana's `.answer-memory`.
35
- * - `sm`: 12px / 14px padding, 2px rule — Cortana's `.answer-note`.
33
+ * - `lg`: 22px / 24px padding, 3px rule: Cortana's `.answer-copy`.
34
+ * - `md`: 18px / 20px padding, 3px rule: Cortana's `.answer-memory`.
35
+ * - `sm`: 12px / 14px padding, 2px rule: Cortana's `.answer-note`.
36
36
  *
37
37
  * Type size and colour are inherited rather than set (only the card foreground is
38
38
  * applied), so a callout in a dense panel and one in an article both read at the
@@ -7,8 +7,8 @@ import { headingVariants } from '../typography'
7
7
  /**
8
8
  * Card.
9
9
  *
10
- * A surface that sits on the canvas. Every card carries its own edge — a
11
- * border — because in the light theme `--card` is one faint step off a white
10
+ * A surface that sits on the canvas. Every card carries its own edge, a
11
+ * border, because in the light theme `--card` is one faint step off a white
12
12
  * `--background`, and a borderless card there all but disappears. Making the border
13
13
  * structural rather than optional is what stops one app's cards from reading
14
14
  * as floating panels and another's as nothing at all.
@@ -9,7 +9,7 @@ import { Button } from '../button'
9
9
  * Carousel.
10
10
  *
11
11
  * A horizontal scroller with snap points, over embla. The primitive owns the
12
- * physics — momentum, snapping, drag — and this owns the two things a carousel
12
+ * physics, momentum, snapping, drag, and this owns the two things a carousel
13
13
  * always needs and embla deliberately leaves to the caller: a keyboard path and a
14
14
  * way to tell how far along you are.
15
15
  *
@@ -23,8 +23,8 @@ import { Button } from '../button'
23
23
  *
24
24
  * `orientation="vertical"` exists because embla supports it and a vertical
25
25
  * carousel is what a short list of cards becomes on a phone. It is a prop rather
26
- * than a second component because every part — the track, the previous/next
27
- * buttons, the dots — has the same relationship to the axis.
26
+ * than a second component because every part, the track, the previous/next
27
+ * buttons, the dots, has the same relationship to the axis.
28
28
  *
29
29
  * The dot indicators are buttons, not spans: a carousel with twelve slides and a
30
30
  * "go to slide 7" affordance is the only way to reach the seventh without
@@ -47,7 +47,7 @@ export type CarouselProps = {
47
47
  loop?: boolean
48
48
  /** Show the previous/next controls. */
49
49
  controls?: boolean
50
- /** Show the dot indicators. Off by default — a single-slide carousel needs none. */
50
+ /** Show the dot indicators. Off by default, a single-slide carousel needs none. */
51
51
  dots?: boolean
52
52
  /** Accessible names. Override for a non-English application. */
53
53
  previousLabel?: string
@@ -77,7 +77,7 @@ export function Carousel(props: CarouselProps) {
77
77
 
78
78
  const orientation = () => local.orientation ?? 'horizontal'
79
79
 
80
- // The first element of the tuple is the ref setter, the second the accessor —
80
+ // The first element of the tuple is the ref setter, the second the accessor,
81
81
  // so `ref={emblaRef}` is the whole wiring.
82
82
  const [emblaRef, embla] = createEmblaCarousel(() => ({
83
83
  axis: orientation() === 'vertical' ? 'y' : 'x',
@@ -128,7 +128,7 @@ export function Carousel(props: CarouselProps) {
128
128
  >
129
129
  <div
130
130
  ref={emblaRef}
131
- // A scroll container has to be reachable by keyboard — the same
131
+ // A scroll container has to be reachable by keyboard, the same
132
132
  // requirement the code block's scroller meets.
133
133
  tabindex="0"
134
134
  class={cn(
@@ -5,8 +5,8 @@ import type { ChartOptions } from 'chart.js'
5
5
  * defaults and the merge rules are testable on their own.
6
6
  *
7
7
  * Every colour here is written as `var(--token)`. A canvas cannot read a custom
8
- * property — `fillStyle = 'var(--chart-1)'` is an invalid colour, which the
9
- * canvas ignores and paints in its default black — so these strings are the
8
+ * property, `fillStyle = 'var(--chart-1)'` is an invalid colour, which the
9
+ * canvas ignores and paints in its default black, so these strings are the
10
10
  * *declaration* of which token a colour comes from. The components resolve them
11
11
  * against their own element at render time (see `resolveCssVariables` and the
12
12
  * resolver in `chart.tsx`).
@@ -49,8 +49,8 @@ export type ChartScaleShape = 'cartesian' | 'radial' | 'none'
49
49
  * The chart's type: the UI face from the font axis and a rung of the type scale,
50
50
  * declared as tokens like the colours.
51
51
  *
52
- * Chart.js does not inherit the page's font — it paints in its own default
53
- * family — so every text a chart draws names `--font-sans` explicitly, and the
52
+ * Chart.js does not inherit the page's font, it paints in its own default
53
+ * family, so every text a chart draws names `--font-sans` explicitly, and the
54
54
  * chart follows `data-font` the same way it follows `.dark`. Everything is
55
55
  * `--text-2xs`, the rung `ChartLegend` and the frame's metadata already use, so
56
56
  * a canvas legend and an HTML one beside it are the same size.
@@ -124,8 +124,8 @@ function mergeInto(target: Record<string, unknown>, source: Record<string, unkno
124
124
  * Merge Chart.js options, later sources winning, object by object.
125
125
  *
126
126
  * Deep, because Chart.js options are deep: `{ scales: { x: { stacked: true } } }`
127
- * means "also stack x", and a spread would replace the whole axis — its grid,
128
- * its tick colour, its font — with that one flag. Arrays, functions (scriptable
127
+ * means "also stack x", and a spread would replace the whole axis, its grid,
128
+ * its tick colour, its font, with that one flag. Arrays, functions (scriptable
129
129
  * options) and class instances (gradients, patterns) are values and replace
130
130
  * rather than merge. No source is mutated.
131
131
  */
@@ -141,7 +141,7 @@ export function mergeChartOptions(...sources: (ChartOptions | undefined)[]): Cha
141
141
  * The theme's defaults as Chart.js options.
142
142
  *
143
143
  * Exported so a caller can spread it and change one thing, rather than
144
- * restating every colour. Everything a chart draws that is not data — grid,
144
+ * restating every colour. Everything a chart draws that is not data, grid,
145
145
  * ticks, legend, tooltip — is decided here once, which is what makes two charts
146
146
  * in one application look like they came from the same place. `overrides` is
147
147
  * merged deeply; `shape` selects the scales the chart type has.
@@ -192,8 +192,8 @@ export function chartOptions(
192
192
  const cssVariable = /^\s*var\(\s*(--[\w-]+)\s*(?:,\s*(.*?))?\s*\)\s*$/
193
193
 
194
194
  /**
195
- * Replace every `var(--token)` string in `value` — options, datasets, nested
196
- * arrays — with what `read` returns for the token, which may be a number (a
195
+ * Replace every `var(--token)` string in `value`, options, datasets, nested
196
+ * arrays, with what `read` returns for the token, which may be a number (a
197
197
  * length token read as pixels). A token `read` cannot
198
198
  * resolve falls back to the `var()`'s own fallback, then to the string as
199
199
  * written. Functions and class instances pass through untouched, so scriptable
@@ -105,7 +105,20 @@ export { chartOptions, chartSeriesColors }
105
105
  */
106
106
  let swatch: CanvasRenderingContext2D | null | undefined
107
107
 
108
+ // A computed colour string always paints the same pixel, so each is converted once.
109
+ // Bounded so a long session of custom accents cannot grow it without limit.
110
+ const canvasColors = new Map<string, string>()
111
+
108
112
  function toCanvasColor(value: string): string {
113
+ const cached = canvasColors.get(value)
114
+ if (cached !== undefined) return cached
115
+ const converted = paintCanvasColor(value)
116
+ if (canvasColors.size >= 512) canvasColors.clear()
117
+ canvasColors.set(value, converted)
118
+ return converted
119
+ }
120
+
121
+ function paintCanvasColor(value: string): string {
109
122
  if (typeof CSS === 'undefined' || !CSS.supports('color', value)) return value
110
123
  if (swatch === undefined) {
111
124
  const canvas = document.createElement('canvas')
@@ -207,7 +220,7 @@ export function ChartFrame(props: ChartFrameProps) {
207
220
  <div>
208
221
  <h3 class="text-sm font-semibold text-foreground">{local.title}</h3>
209
222
  <Show when={local.description}>
210
- <p class="text-xs text-muted-foreground">{local.description}</p>
223
+ {(descriptionSlot) => <p class="text-xs text-muted-foreground">{descriptionSlot()}</p>}
211
224
  </Show>
212
225
  </div>
213
226
  {local.actions}
@@ -1,7 +1,7 @@
1
1
  import { Checkbox as KobalteCheckbox } from '@kobalte/core/checkbox'
2
2
  import { Check, Minus } from 'lucide-solid'
3
3
  import type { ComponentProps, JSX } from 'solid-js'
4
- import { splitProps } from 'solid-js'
4
+ import { children as resolveChildren, splitProps } from 'solid-js'
5
5
  import { useFormFieldControl } from '#lib/form-field'
6
6
  import { cn } from '#lib/utils'
7
7
 
@@ -62,6 +62,9 @@ export function Checkbox(props: CheckboxProps) {
62
62
  'aria-errormessage': local['aria-errormessage'],
63
63
  })
64
64
 
65
+ // Slots are JSX getters that build per read; resolve each once.
66
+ const label = resolveChildren(() => local.label)
67
+ const description = resolveChildren(() => local.description)
65
68
  return (
66
69
  <KobalteCheckbox
67
70
  data-slot="checkbox"
@@ -102,18 +105,18 @@ export function Checkbox(props: CheckboxProps) {
102
105
  </KobalteCheckbox.Indicator>
103
106
  </KobalteCheckbox.Control>
104
107
  {local.children ??
105
- (local.label || local.description ? (
108
+ (label() || description() ? (
106
109
  <div class="grid gap-0.5">
107
- {local.label ? (
110
+ {label() ? (
108
111
  <KobalteCheckbox.Label class={cn('text-sm font-medium', local.labelClass)}>
109
- {local.label}
112
+ {label()}
110
113
  </KobalteCheckbox.Label>
111
114
  ) : null}
112
- {local.description ? (
115
+ {description() ? (
113
116
  <KobalteCheckbox.Description
114
117
  class={cn('text-muted-foreground text-sm', local.descriptionClass)}
115
118
  >
116
- {local.description}
119
+ {description()}
117
120
  </KobalteCheckbox.Description>
118
121
  ) : null}
119
122
  </div>
@@ -146,6 +146,8 @@ export const CODE_BLOCK_LINE_LIMIT = 2_000
146
146
 
147
147
  export const TALL_CODE_BLOCK_PX = 480
148
148
 
149
+ const NO_LINES: readonly string[] = []
150
+
149
151
  export function CodeBlock(props: CodeBlockProps) {
150
152
  const [local, rest] = splitProps(props, [
151
153
  'code',
@@ -184,7 +186,15 @@ export function CodeBlock(props: CodeBlockProps) {
184
186
  const label = () => local.title ?? language() ?? 'code'
185
187
  const groupLabel = () => (language() ? `${language()} code` : 'code')
186
188
  const small = () => local.size === 'sm'
187
- const lines = createMemo(() => local.code.replace(/\n$/, '').split('\n'))
189
+ const highlighter = (): CodeHighlighter | undefined => local.highlight ?? loaded()
190
+ const perLine = () =>
191
+ highlighter() === undefined && (local.showLineNumbers === true || local.lineMarks !== undefined)
192
+ const usesLines = () => highlighter() !== undefined || perLine()
193
+ // Memos run eagerly, so the split is gated on a renderer that reads lines: a
194
+ // streaming plain block would otherwise split its whole text on every delta.
195
+ const lines = createMemo((): readonly string[] =>
196
+ usesLines() ? local.code.replace(/\n$/, '').split('\n') : NO_LINES
197
+ )
188
198
  const lineLimit = () => local.lineLimit ?? CODE_BLOCK_LINE_LIMIT
189
199
  const visibleLines = createMemo(() => (showAll() ? lines() : lines().slice(0, lineLimit())))
190
200
  const hiddenLines = () => lines().length - visibleLines().length
@@ -204,21 +214,18 @@ export function CodeBlock(props: CodeBlockProps) {
204
214
  // (a bad import path, a missing grammar table) must degrade to plain text
205
215
  // like one that rejects, not tear down the tree from inside this effect.
206
216
  new Promise<CodeHighlighter | undefined>((resolve) => resolve(load(lang))).then(
207
- (highlighter) => {
208
- if (current && highlighter) setLoaded(() => highlighter)
217
+ (resolved) => {
218
+ if (current && resolved) setLoaded(() => resolved)
209
219
  },
210
220
  () => undefined
211
221
  )
212
222
  }
213
223
  )
214
224
  )
215
- const highlighter = (): CodeHighlighter | undefined => local.highlight ?? loaded()
216
225
  // The renderer in use decides everything about the limit, not the props alone:
217
226
  // a highlighter that has loaded since the first render replaces the per-line
218
227
  // rows, so what is drawn, and what the footer may say, follows `highlighter()`.
219
- const perLine = () =>
220
- highlighter() === undefined && (local.showLineNumbers === true || local.lineMarks !== undefined)
221
- const truncated = () => hiddenLines() > 0 && (highlighter() !== undefined || perLine())
228
+ const truncated = () => usesLines() && hiddenLines() > 0
222
229
  const maxHeight = () =>
223
230
  typeof local.maxHeight === 'number' ? `${local.maxHeight}px` : local.maxHeight
224
231
 
@@ -35,7 +35,7 @@ const commandItem = menuItem
35
35
  * - Every item must be reachable by typing its name. If a user has to
36
36
  * remember which group it lives in, the palette has failed at its job.
37
37
  * - Groups exist for reading, not for navigation. The ranking crosses them.
38
- * - The empty state is not an apology — it should offer the closest thing
38
+ * - The empty state is not an apology: it should offer the closest thing
39
39
  * the app could guess, or say plainly that nothing matched.
40
40
  *
41
41
  * cmdk-solid supplies the filter, the scoring, the `aria-activedescendant`
@@ -161,12 +161,12 @@ export function CommandInput(props: ComponentProps<typeof CmdkInput>) {
161
161
  *
162
162
  * - a bare `<div cmdk-list-sizer>` with no role, wrapped around every group;
163
163
  * - a `<div cmdk-separator role="separator">`, and `separator` is a menu and
164
- * toolbar role — inside a listbox the only owned elements may be `option`
164
+ * toolbar role, inside a listbox the only owned elements may be `option`
165
165
  * and `group`.
166
166
  *
167
167
  * Both are pure presentation: the sizer is layout, and the separator is a
168
168
  * hairline between groups that the groups already structure. `role="presentation"`
169
- * is their accurate role rather than a workaround — each is flattened out of the
169
+ * is their accurate role rather than a workaround, each is flattened out of the
170
170
  * accessibility tree, and the options inside are reached exactly as before.
171
171
  *
172
172
  * Written onto the mounted nodes rather than through props, because cmdk owns
@@ -187,7 +187,7 @@ export function CommandList(props: ComponentProps<typeof CmdkList>) {
187
187
 
188
188
  /*
189
189
  * A `listbox` must own at least one `option`, so a listbox with nothing in it
190
- * is invalid ARIA — which is what a search with no matches produces. When
190
+ * is invalid ARIA, which is what a search with no matches produces. When
191
191
  * there are no results the list is inert, so it becomes presentational and
192
192
  * the empty message carries the information instead. It keeps its `id`, so
193
193
  * the input's `aria-controls` still resolves.
@@ -246,8 +246,8 @@ export function CommandItem(props: ComponentProps<typeof CmdkItem>) {
246
246
  class={cn(
247
247
  commandItem,
248
248
  'data-[disabled=true]:pointer-events-none data-[disabled=true]:text-muted-foreground',
249
- // The selected row sits on the accent rung — the same primary-subtle
250
- // fill the settings navigation's selected row owns — instead of the
249
+ // The selected row sits on the accent rung, the same primary-subtle
250
+ // fill the settings navigation's selected row owns, instead of the
251
251
  // popover rung, so what is chosen keeps the accent the checked menus
252
252
  // already carry in their indicators.
253
253
  'group/command-item text-popover-foreground data-[selected=true]:bg-primary-subtle data-[selected=true]:text-foreground',
@@ -294,7 +294,7 @@ export function CommandShortcut(props: {
294
294
  /**
295
295
  * The status line a command surface reports under its list: searching, offline,
296
296
  * a partial result caveat. The copy and the live-role semantics (`status`,
297
- * `alert`) are the caller's — a palette's failure modes are app facts — but the
297
+ * `alert`) are the caller's, a palette's failure modes are app facts, but the
298
298
  * line's shape is not something every caller should redraw.
299
299
  */
300
300
  export function CommandStatus(props: ComponentProps<'p'>) {
@@ -9,7 +9,7 @@ import { createMenuParts, menuPanel } from '../dropdown-menu/menu-parts'
9
9
  * ContextMenu.
10
10
  *
11
11
  * The same actions as DropdownMenu, opened by right-click. The trigger is the
12
- * region the menu belongs to — a file row, a canvas, a code block — and the
12
+ * region the menu belongs to, a file row, a canvas, a code block, and the
13
13
  * menu opens at the pointer.
14
14
  *
15
15
  * The accessibility rule for this component is not about its own markup: a
@@ -80,9 +80,11 @@ export function DetailPanelHeader(props: DetailPanelHeaderProps) {
80
80
  >
81
81
  <div class="min-w-0">
82
82
  <Show when={local.eyebrow}>
83
- <p class="text-2xs font-semibold tracking-wide text-muted-foreground uppercase">
84
- {local.eyebrow}
85
- </p>
83
+ {(eyebrowSlot) => (
84
+ <p class="text-2xs font-semibold tracking-wide text-muted-foreground uppercase">
85
+ {eyebrowSlot()}
86
+ </p>
87
+ )}
86
88
  </Show>
87
89
  <h2 id={titleId} class="truncate text-sm font-semibold text-foreground">
88
90
  {local.title}
@@ -34,6 +34,8 @@ type FocusCycle = {
34
34
  closed: boolean
35
35
  focusMovedOutside: boolean
36
36
  closeAutoFocusScheduled: boolean
37
+ /** The restore deadline passed: stop waiting on the opener after the frame that is due. */
38
+ deadlinePassed: boolean
37
39
  frame?: number
38
40
  fallbackTimer?: number
39
41
  observer?: MutationObserver
@@ -76,6 +78,9 @@ function anotherLayerOpen(content: HTMLElement, opener: HTMLElement): boolean {
76
78
  * The focus-return half of the layer rules, for a layer whose open state is
77
79
  * `open`. Returns the autofocus handlers to give the Kobalte content.
78
80
  */
81
+ /** How long a closed layer may wait for its opener to become focusable again. */
82
+ const FOCUS_RESTORE_DEADLINE_MS = 1000
83
+
79
84
  export function createDialogFocusReturn(
80
85
  open: Accessor<boolean>,
81
86
  options: DialogLayerOptions
@@ -137,9 +142,17 @@ export function createDialogFocusReturn(
137
142
  return
138
143
  }
139
144
 
145
+ // Nothing to restore: stop watching the document now.
146
+ if (!cycle.openerEligible) {
147
+ finishFocusCycle(cycle)
148
+ return
149
+ }
140
150
  // Kobalte removes the `inert` / `aria-hidden` it put on the background
141
151
  // only after the layer unmounts; the observer below brings us back here.
142
- if (opener.closest('[inert], [aria-hidden="true"]')) return
152
+ if (opener.closest('[inert], [aria-hidden="true"]')) {
153
+ if (cycle.deadlinePassed) finishFocusCycle(cycle)
154
+ return
155
+ }
143
156
  if (cycle.openerEligible && canRestoreFocus(opener)) {
144
157
  opener.focus({ preventScroll: true })
145
158
  }
@@ -167,6 +180,7 @@ export function createDialogFocusReturn(
167
180
  closed: false,
168
181
  focusMovedOutside: false,
169
182
  closeAutoFocusScheduled: false,
183
+ deadlinePassed: false,
170
184
  onFocusIn: (focusEvent) => {
171
185
  const target = focusEvent.target
172
186
  if (
@@ -218,6 +232,18 @@ export function createDialogFocusReturn(
218
232
  subtree: true,
219
233
  })
220
234
  scheduleFocusRestore(cycle)
235
+ // The observer watches every mutation in the document. If the opener stays
236
+ // under an `inert` or `aria-hidden` that is not this layer's, nothing above
237
+ // finishes the cycle, and a streaming page would schedule a frame per DOM
238
+ // change for good. Kobalte clears its own markers within a frame or two.
239
+ // The deadline stops the watching, not a restore already asked for: a busy
240
+ // or throttled page (WebKit under load) can hold the frame past it.
241
+ cycle.fallbackTimer = window.setTimeout(() => {
242
+ cycle.fallbackTimer = undefined
243
+ cycle.deadlinePassed = true
244
+ cycle.observer?.disconnect()
245
+ if (cycle.frame === undefined) finishFocusCycle(cycle)
246
+ }, FOCUS_RESTORE_DEADLINE_MS)
221
247
  }
222
248
 
223
249
  onCleanup(() => {
@@ -6,7 +6,7 @@ import {
6
6
  // AlertDialog assigns to the shared DialogRoot.Content object, so these named exports stay role-stable.
7
7
  import { X } from 'lucide-solid'
8
8
  import type { Accessor, ComponentProps, JSX } from 'solid-js'
9
- import { Show, splitProps } from 'solid-js'
9
+ import { children as resolveChildren, Show, splitProps } from 'solid-js'
10
10
  import {
11
11
  dialogSurface,
12
12
  overlayCornerClose,
@@ -122,6 +122,7 @@ export function DialogContent(props: DialogContentProps) {
122
122
  onCloseAutoFocus: (event) => local.onCloseAutoFocus?.(event),
123
123
  })
124
124
 
125
+ const closeButton = resolveChildren(() => local.closeButton)
125
126
  return (
126
127
  <KobalteDialog.Portal>
127
128
  <DialogOverlay />
@@ -140,7 +141,7 @@ export function DialogContent(props: DialogContentProps) {
140
141
  >
141
142
  <DialogEscapeTarget onEscapeKeyDown={props.onEscapeKeyDown}>
142
143
  {local.children}
143
- <Show when={local.closeButton !== false}>
144
+ <Show when={closeButton() !== false}>
144
145
  {/* The corner close is icon-only, so it carries the shared tooltip
145
146
  treatment. */}
146
147
  <Tooltip>
@@ -150,7 +151,7 @@ export function DialogContent(props: DialogContentProps) {
150
151
  aria-label={local.closeLabel ?? 'Close'}
151
152
  class={overlayCornerClose}
152
153
  >
153
- {local.closeButton ?? <X class="size-4" />}
154
+ {closeButton() ?? <X class="size-4" />}
154
155
  </TooltipTrigger>
155
156
  <TooltipContent>
156
157
  {local.closeLabel ? `${local.closeLabel}.` : 'Close dialog.'}
@@ -10,7 +10,7 @@ import { cn } from '#lib/utils'
10
10
  * fix from a caller: whether a line is an addition, a deletion, a hunk header,
11
11
  * a file header, or context depends on state — a line beginning with `+++` is a
12
12
  * file header *before* the first hunk and an added line beginning with `++`
13
- * *inside* one — and a renderer that tested prefixes without that state would
13
+ * *inside* one, and a renderer that tested prefixes without that state would
14
14
  * mis-colour real patches.
15
15
  *
16
16
  * The line grammar:
@@ -25,13 +25,13 @@ import { cn } from '#lib/utils'
25
25
  * | anything else, including a leading space | context |
26
26
  *
27
27
  * Tones are pairs of surface and text, so an addition is readable in both
28
- * polarities and with any accent — the greens and reds are the theme's own
28
+ * polarities and with any accent, the greens and reds are the theme's own
29
29
  * `success` and `destructive` at low alpha, not fixed hexes. Colour is never the
30
30
  * only signal: the gutter carries `+` or `-` as well, which is what makes the
31
31
  * block usable in greyscale and by anyone who cannot separate the two hues.
32
32
  *
33
33
  * Split (side-by-side) view is deliberately not implemented. It is a different
34
- * layout algorithm — pairing deletions with additions across hunks — and a
34
+ * layout algorithm, pairing deletions with additions across hunks, and a
35
35
  * half-correct one is worse than none. `view="unified"` is the only value, and
36
36
  * the prop exists so that adding the second is not a breaking change.
37
37
  */
@@ -58,7 +58,7 @@ const HUNK_HEADER = /^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/
58
58
  * `headerState` is what makes `---` and `+++` unambiguous: git writes them as
59
59
  * file headers before the first `@@` and as content after it, and the two need
60
60
  * different tones. `oldLine`/`newLine` are tracked so the gutter can number both
61
- * sides — the numbers a reader uses to find the change in their editor.
61
+ * sides, the numbers a reader uses to find the change in their editor.
62
62
  */
63
63
  export function parseDiff(patch: string): readonly DiffLine[] {
64
64
  const lines: DiffLine[] = []
@@ -134,8 +134,8 @@ export function diffStats(
134
134
  }
135
135
 
136
136
  /**
137
- * The target path from a unified diff's file header. Prefers `+++ b/<path>` —
138
- * git's explicit new-side marker — and skips `/dev/null`, which marks an added
137
+ * The target path from a unified diff's file header. Prefers `+++ b/<path>`,
138
+ * git's explicit new-side marker, and skips `/dev/null`, which marks an added
139
139
  * or deleted side rather than naming a file. Only lines outside a hunk are
140
140
  * considered, for the same reason the parser tracks state.
141
141
  */
@@ -9,12 +9,12 @@ import { cn } from '#lib/utils'
9
9
  *
10
10
  * A sheet the user can drag away: it opens from an edge, carries a handle, and
11
11
  * closes by swipe as well as by button. That drag affordance is the reason to
12
- * choose it over Sheet — the gesture is for content the user is *finishing*
12
+ * choose it over Sheet, the gesture is for content the user is *finishing*
13
13
  * with (a summary, a queue, a confirmation), not for browsing.
14
14
  *
15
15
  * On a large window a Drawer is usually the wrong control: dragging is a touch
16
16
  * idiom, and on a desktop the same content is better as a Sheet or a Dialog.
17
- * The exceptions are the surfaces a pointer also drags naturally — a bottom
17
+ * The exceptions are the surfaces a pointer also drags naturally, a bottom
18
18
  * console, a media panel.
19
19
  *
20
20
  * corvu supplies the drag physics, the snap points and the pointer capture.
@@ -55,7 +55,7 @@ export type DrawerContentProps = Omit<ComponentProps<typeof DrawerPrimitive.Cont
55
55
  *
56
56
  * It is an affordance, not the drag target: corvu makes the whole sheet
57
57
  * draggable, exactly as the platform's own sheets behave. So this is
58
- * `aria-hidden` decoration that tells the user the sheet can be pulled — it
58
+ * `aria-hidden` decoration that tells the user the sheet can be pulled, it
59
59
  * carries no behaviour and must not be the only thing that moves.
60
60
  */
61
61
  withHandle?: boolean
@@ -34,8 +34,8 @@ type DropdownMenuTriggerPointerEvent = HandlerEvent<
34
34
  * selected value needs the field-style control, and Popover for arbitrary
35
35
  * content.
36
36
  *
37
- * Kobalte supplies the full menu contract — arrow keys, typeahead, the roving
38
- * highlight, Escape to close and return focus — which is exactly what a
37
+ * Kobalte supplies the full menu contract, arrow keys, typeahead, the roving
38
+ * highlight, Escape to close and return focus, which is exactly what a
39
39
  * hand-rolled `div` with click handlers gets wrong.
40
40
  * Menus are nonmodal by default so their generated focus guards do not become
41
41
  * invalid direct children of the ARIA menu. Set `modal` explicitly when the
@@ -45,7 +45,7 @@ type DropdownMenuTriggerPointerEvent = HandlerEvent<
45
45
  * highlighted tint while keeping its label on the body foreground. Pairing it
46
46
  * with an AlertDialog is the caller's job.
47
47
  *
48
- * An item that opens something else — a dialog, a sheet — passes it as
48
+ * An item that opens something else, a dialog, a sheet, passes it as
49
49
  * `onSelectAfterClose`, which runs once the menu has closed and returned focus
50
50
  * to its trigger, so the next layer captures the trigger as the control to
51
51
  * return to.
@@ -178,7 +178,7 @@ export function DropdownMenuTrigger(props: ComponentProps<typeof KobalteDropdown
178
178
  trigger.focus({ preventScroll: true })
179
179
  // Focusing first is not enough in WebKit: the press's default mousedown
180
180
  // action runs afterwards and moves focus off a button to the nearest
181
- // focusable ancestor — inside a dialog, the dialog — so the menu that
181
+ // focusable ancestor, inside a dialog, the dialog, so the menu that
182
182
  // just opened still reads focus leaving it and closes. Cancelling the
183
183
  // default keeps focus where it was put.
184
184
  if (event.pointerType !== 'touch') event.preventDefault()
@@ -266,7 +266,7 @@ export type DropdownMenuContentProps = ComponentProps<typeof KobalteDropdownMenu
266
266
  /**
267
267
  * Kept for callers that hid the arrow explicitly; the arrow is now hidden by
268
268
  * default. Pass `false` to draw one. The default flipped because Kobalte
269
- * reserves half of the arrow's 30px box as popper gutter — a menu anchored to
269
+ * reserves half of the arrow's 30px box as popper gutter, a menu anchored to
270
270
  * its trigger floated 15px off it, which read as a gap rather than as a
271
271
  * pointer, and every anchored caller already passed `hideArrow`.
272
272
  */
@@ -378,7 +378,7 @@ const parts = createMenuParts(KobalteDropdownMenu, 'dropdown-menu')
378
378
  export function DropdownMenuItem(
379
379
  props: ComponentProps<typeof parts.Item> & {
380
380
  /**
381
- * Runs after the menu has closed and returned focus to its trigger — the
381
+ * Runs after the menu has closed and returned focus to its trigger, the
382
382
  * place to open a dialog or sheet, which then returns focus to the trigger.
383
383
  */
384
384
  onSelectAfterClose?: () => void
@@ -18,7 +18,7 @@ import {
18
18
  import { cn } from '#lib/utils'
19
19
 
20
20
  /**
21
- * The rows and panels every Kobalte menu family draws alike — DropdownMenu,
21
+ * The rows and panels every Kobalte menu family draws alike: DropdownMenu,
22
22
  * ContextMenu and Menubar. Kobalte builds all three from the same menu
23
23
  * primitives; each family passes its own namespace and keeps its own exported
24
24
  * names, so a row looks and reads the same whichever menu it is in.
@@ -51,12 +51,12 @@ export type MenuItemProps<Item> = Item & {
51
51
  shortcut?: string
52
52
  /**
53
53
  * The parseable chord behind `shortcut`, e.g. `Meta+E`. The drawn glyph is
54
- * `aria-hidden` — reading it out would pollute the item's accessible name —
54
+ * `aria-hidden`, reading it out would pollute the item's accessible name,
55
55
  * so this is what assistive technology announces instead. Supply it
56
56
  * whenever `shortcut` is drawn.
57
57
  */
58
58
  keyshortcuts?: string
59
- /** Draw a leading colour dot from the shared tone ladder — the accent or
59
+ /** Draw a leading colour dot from the shared tone ladder, the accent or
60
60
  * status role the option's card badge carries. `aria-hidden`; the label
61
61
  * carries the meaning. */
62
62
  swatch?: MenuSwatchTone
@@ -132,7 +132,7 @@ export function createMenuParts(
132
132
  }
133
133
 
134
134
  // Selection indicators read in the accent, like every other selected state
135
- // in the system — a canvas-coloured mark on a checked row reads as decoration.
135
+ // in the system, a canvas-coloured mark on a checked row reads as decoration.
136
136
  function CheckboxItem(
137
137
  props: MenuChoiceItemProps<ComponentProps<typeof KobalteDropdownMenu.CheckboxItem>>
138
138
  ) {
@@ -176,7 +176,7 @@ export function createMenuParts(
176
176
  * child of the group it names: Kobalte reads the group from context, so a
177
177
  * label placed directly in the content throws `useMenuGroupContext must be
178
178
  * used within a Menu.Group` the moment the menu opens. For an ungrouped
179
- * caption, wrap the label and its items in a group anyway — the grouping is
179
+ * caption, wrap the label and its items in a group anyway, the grouping is
180
180
  * what a screen reader announces.
181
181
  */
182
182
  function Label(props: ComponentProps<typeof KobalteDropdownMenu.GroupLabel>) {