@adea-ai/ui 0.154.0 → 0.154.2

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 (554) hide show
  1. package/README.md +10 -10
  2. package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
  3. package/dist/components/composites/about-dialog/about-dialog.js +3 -1
  4. package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
  5. package/dist/components/composites/accent-picker/accent-picker.js +20 -9
  6. package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
  7. package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
  8. package/dist/components/composites/account-menu/account-menu.js +20 -10
  9. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  10. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  11. package/dist/components/composites/action-button/action-button.js +37 -24
  12. package/dist/components/composites/action-button/action-button.js.map +1 -1
  13. package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
  14. package/dist/components/composites/appearance-editor/appearance-choices.js +7 -3
  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 +11 -6
  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 +8 -3
  21. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  22. package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
  23. package/dist/components/composites/appearance-editor/font-settings-group.js +8 -4
  24. package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
  25. package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts.map +1 -1
  26. package/dist/components/composites/catalog-browser/catalog-browser-group.js +7 -3
  27. package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
  28. package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
  29. package/dist/components/composites/catalog-browser/catalog-browser.js +8 -4
  30. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  31. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts.map +1 -1
  32. package/dist/components/composites/chain-of-thought/chain-of-thought.js +3 -1
  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 +5 -1
  36. package/dist/components/composites/chat/chat.js.map +1 -1
  37. package/dist/components/composites/checkpoint/checkpoint.d.ts.map +1 -1
  38. package/dist/components/composites/checkpoint/checkpoint.js +3 -1
  39. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  40. package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
  41. package/dist/components/composites/confirmation/confirmation.js +11 -5
  42. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  43. package/dist/components/composites/context/context.d.ts.map +1 -1
  44. package/dist/components/composites/context/context.js +7 -4
  45. package/dist/components/composites/context/context.js.map +1 -1
  46. package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
  47. package/dist/components/composites/file-tree/file-tree.js +7 -3
  48. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  49. package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
  50. package/dist/components/composites/help-center/help-center.js +3 -1
  51. package/dist/components/composites/help-center/help-center.js.map +1 -1
  52. package/dist/components/composites/icon-picker/icon-picker.d.ts +2 -2
  53. package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
  54. package/dist/components/composites/icon-picker/icon-picker.js +77 -71
  55. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  56. package/dist/components/composites/icon-picker/shell-icons.d.ts.map +1 -1
  57. package/dist/components/composites/icon-picker/shell-icons.js +119 -59
  58. package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
  59. package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
  60. package/dist/components/composites/inline-citation/inline-citation.js +5 -2
  61. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  62. package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
  63. package/dist/components/composites/list-row/list-row-control.js +3 -4
  64. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  65. package/dist/components/composites/message-scroller/message-scroller.d.ts.map +1 -1
  66. package/dist/components/composites/message-scroller/message-scroller.js +5 -2
  67. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  68. package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
  69. package/dist/components/composites/model-selector/model-selector.js +9 -5
  70. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  71. package/dist/components/composites/plan/plan.d.ts.map +1 -1
  72. package/dist/components/composites/plan/plan.js +3 -1
  73. package/dist/components/composites/plan/plan.js.map +1 -1
  74. package/dist/components/composites/queue/queue.d.ts.map +1 -1
  75. package/dist/components/composites/queue/queue.js +11 -5
  76. package/dist/components/composites/queue/queue.js.map +1 -1
  77. package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
  78. package/dist/components/composites/reasoning/reasoning.js +3 -1
  79. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  80. package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -1
  81. package/dist/components/composites/scene-controls/scene-controls.js +14 -7
  82. package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
  83. package/dist/components/composites/settings/settings.d.ts.map +1 -1
  84. package/dist/components/composites/settings/settings.js +77 -67
  85. package/dist/components/composites/settings/settings.js.map +1 -1
  86. package/dist/components/composites/sources/sources.d.ts.map +1 -1
  87. package/dist/components/composites/sources/sources.js +39 -39
  88. package/dist/components/composites/sources/sources.js.map +1 -1
  89. package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
  90. package/dist/components/composites/stack-trace/stack-trace.js +9 -4
  91. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  92. package/dist/components/composites/stat/stat.d.ts.map +1 -1
  93. package/dist/components/composites/stat/stat.js +4 -1
  94. package/dist/components/composites/stat/stat.js.map +1 -1
  95. package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
  96. package/dist/components/composites/subagent/subagent.js +3 -1
  97. package/dist/components/composites/subagent/subagent.js.map +1 -1
  98. package/dist/components/composites/task/task.d.ts.map +1 -1
  99. package/dist/components/composites/task/task.js +3 -1
  100. package/dist/components/composites/task/task.js.map +1 -1
  101. package/dist/components/composites/terminal/ansi.d.ts.map +1 -1
  102. package/dist/components/composites/terminal/ansi.js +16 -0
  103. package/dist/components/composites/terminal/ansi.js.map +1 -1
  104. package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
  105. package/dist/components/composites/terminal/terminal.js +15 -7
  106. package/dist/components/composites/terminal/terminal.js.map +1 -1
  107. package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
  108. package/dist/components/composites/test-results/test-results.js +15 -7
  109. package/dist/components/composites/test-results/test-results.js.map +1 -1
  110. package/dist/components/composites/tool/tool.d.ts.map +1 -1
  111. package/dist/components/composites/tool/tool.js +3 -1
  112. package/dist/components/composites/tool/tool.js.map +1 -1
  113. package/dist/components/composites/tree/tree.d.ts.map +1 -1
  114. package/dist/components/composites/tree/tree.js +3 -1
  115. package/dist/components/composites/tree/tree.js.map +1 -1
  116. package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
  117. package/dist/components/composites/update-dialog/update-dialog.js +34 -24
  118. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  119. package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
  120. package/dist/components/composites/workspace-mark/workspace-mark.js +17 -12
  121. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  122. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts.map +1 -1
  123. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +5 -2
  124. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
  125. package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
  126. package/dist/components/composites/workspace-switcher/workspace-switcher.js +9 -4
  127. package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
  128. package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
  129. package/dist/components/conversation/busy-send-button.js +9 -5
  130. package/dist/components/conversation/busy-send-button.js.map +1 -1
  131. package/dist/components/conversation/conversation-avatar.d.ts.map +1 -1
  132. package/dist/components/conversation/conversation-avatar.js +6 -3
  133. package/dist/components/conversation/conversation-avatar.js.map +1 -1
  134. package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
  135. package/dist/components/conversation/conversation-surface.js +3 -1
  136. package/dist/components/conversation/conversation-surface.js.map +1 -1
  137. package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
  138. package/dist/components/conversation/internal/chat-composer-shell.js +9 -4
  139. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  140. package/dist/components/conversation/message-composer.d.ts.map +1 -1
  141. package/dist/components/conversation/message-composer.js +9 -4
  142. package/dist/components/conversation/message-composer.js.map +1 -1
  143. package/dist/components/conversation/message-row.d.ts.map +1 -1
  144. package/dist/components/conversation/message-row.js +11 -5
  145. package/dist/components/conversation/message-row.js.map +1 -1
  146. package/dist/components/conversation/thread-panel.d.ts.map +1 -1
  147. package/dist/components/conversation/thread-panel.js +3 -1
  148. package/dist/components/conversation/thread-panel.js.map +1 -1
  149. package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
  150. package/dist/components/conversation/transcript-composition.js +3 -1
  151. package/dist/components/conversation/transcript-composition.js.map +1 -1
  152. package/dist/components/layout/floating-preview/floating-preview.d.ts.map +1 -1
  153. package/dist/components/layout/floating-preview/floating-preview.js +5 -2
  154. package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
  155. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
  156. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +3 -1
  157. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  158. package/dist/components/layout/shell-rail/shell-rail.d.ts.map +1 -1
  159. package/dist/components/layout/shell-rail/shell-rail.js +3 -1
  160. package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
  161. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
  162. package/dist/components/layout/sidebar-nav/sidebar-nav.js +3 -1
  163. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  164. package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
  165. package/dist/components/layout/split-layout/split-layout.js +5 -2
  166. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  167. package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
  168. package/dist/components/layout/top-bar/top-bar.js +3 -1
  169. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  170. package/dist/components/theme/appearance-panel.d.ts.map +1 -1
  171. package/dist/components/theme/appearance-panel.js +3 -1
  172. package/dist/components/theme/appearance-panel.js.map +1 -1
  173. package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
  174. package/dist/components/theme/theme-mode-toggle.js +6 -3
  175. package/dist/components/theme/theme-mode-toggle.js.map +1 -1
  176. package/dist/components/theme/theme-toggle.d.ts.map +1 -1
  177. package/dist/components/theme/theme-toggle.js +6 -3
  178. package/dist/components/theme/theme-toggle.js.map +1 -1
  179. package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
  180. package/dist/components/ui/accordion/accordion.js +3 -1
  181. package/dist/components/ui/accordion/accordion.js.map +1 -1
  182. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  183. package/dist/components/ui/alert/alert.js +15 -9
  184. package/dist/components/ui/alert/alert.js.map +1 -1
  185. package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -1
  186. package/dist/components/ui/annotation-surface/annotation-surface.js +5 -4
  187. package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
  188. package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
  189. package/dist/components/ui/attachment/attachment.js +18 -9
  190. package/dist/components/ui/attachment/attachment.js.map +1 -1
  191. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  192. package/dist/components/ui/badge/badge.js +30 -11
  193. package/dist/components/ui/badge/badge.js.map +1 -1
  194. package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
  195. package/dist/components/ui/breadcrumb/breadcrumb.js +5 -2
  196. package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
  197. package/dist/components/ui/button/button.d.ts.map +1 -1
  198. package/dist/components/ui/button/button.js +37 -13
  199. package/dist/components/ui/button/button.js.map +1 -1
  200. package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
  201. package/dist/components/ui/calendar/calendar.js +5 -2
  202. package/dist/components/ui/calendar/calendar.js.map +1 -1
  203. package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
  204. package/dist/components/ui/carousel/carousel.js +12 -6
  205. package/dist/components/ui/carousel/carousel.js.map +1 -1
  206. package/dist/components/ui/checkbox/checkbox.d.ts +13 -0
  207. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  208. package/dist/components/ui/checkbox/checkbox.js +296 -21
  209. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  210. package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
  211. package/dist/components/ui/code-block/code-block.js +9 -6
  212. package/dist/components/ui/code-block/code-block.js.map +1 -1
  213. package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
  214. package/dist/components/ui/combobox/combobox.js +8 -11
  215. package/dist/components/ui/combobox/combobox.js.map +1 -1
  216. package/dist/components/ui/command/command.d.ts.map +1 -1
  217. package/dist/components/ui/command/command.js +4 -2
  218. package/dist/components/ui/command/command.js.map +1 -1
  219. package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
  220. package/dist/components/ui/detail-panel/detail-panel.js +3 -1
  221. package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
  222. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  223. package/dist/components/ui/dialog/dialog.js +3 -1
  224. package/dist/components/ui/dialog/dialog.js.map +1 -1
  225. package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -1
  226. package/dist/components/ui/dropdown-menu/menu-parts.js +7 -3
  227. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
  228. package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
  229. package/dist/components/ui/empty/empty-state.js +3 -1
  230. package/dist/components/ui/empty/empty-state.js.map +1 -1
  231. package/dist/components/ui/field/field.d.ts.map +1 -1
  232. package/dist/components/ui/field/field.js +12 -6
  233. package/dist/components/ui/field/field.js.map +1 -1
  234. package/dist/components/ui/input/input-control.d.ts +2 -0
  235. package/dist/components/ui/input/input-control.d.ts.map +1 -1
  236. package/dist/components/ui/input/input-control.js +24 -6
  237. package/dist/components/ui/input/input-control.js.map +1 -1
  238. package/dist/components/ui/input/input.d.ts.map +1 -1
  239. package/dist/components/ui/input/input.js +47 -48
  240. package/dist/components/ui/input/input.js.map +1 -1
  241. package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
  242. package/dist/components/ui/input-group/input-group.js +1 -8
  243. package/dist/components/ui/input-group/input-group.js.map +1 -1
  244. package/dist/components/ui/message/index.d.ts +1 -1
  245. package/dist/components/ui/message/index.d.ts.map +1 -1
  246. package/dist/components/ui/message/index.js +2 -2
  247. package/dist/components/ui/message/message.d.ts.map +1 -1
  248. package/dist/components/ui/message/message.js +5 -3
  249. package/dist/components/ui/message/message.js.map +1 -1
  250. package/dist/components/ui/message/parse-message-text.d.ts +32 -0
  251. package/dist/components/ui/message/parse-message-text.d.ts.map +1 -1
  252. package/dist/components/ui/message/parse-message-text.js +63 -3
  253. package/dist/components/ui/message/parse-message-text.js.map +1 -1
  254. package/dist/components/ui/native-select/native-select.d.ts.map +1 -1
  255. package/dist/components/ui/native-select/native-select.js +4 -9
  256. package/dist/components/ui/native-select/native-select.js.map +1 -1
  257. package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
  258. package/dist/components/ui/navigation-menu/navigation-menu.js +3 -1
  259. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  260. package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
  261. package/dist/components/ui/pagination/pagination.js +7 -3
  262. package/dist/components/ui/pagination/pagination.js.map +1 -1
  263. package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
  264. package/dist/components/ui/questionnaire/questionnaire.js +9 -4
  265. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  266. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  267. package/dist/components/ui/radio-group/radio-group.js +4 -9
  268. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  269. package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
  270. package/dist/components/ui/resizable/resizable.js +3 -1
  271. package/dist/components/ui/resizable/resizable.js.map +1 -1
  272. package/dist/components/ui/select/select.d.ts.map +1 -1
  273. package/dist/components/ui/select/select.js +7 -3
  274. package/dist/components/ui/select/select.js.map +1 -1
  275. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  276. package/dist/components/ui/sheet/sheet.js +3 -1
  277. package/dist/components/ui/sheet/sheet.js.map +1 -1
  278. package/dist/components/ui/spinner/spinner.d.ts.map +1 -1
  279. package/dist/components/ui/spinner/spinner.js +3 -1
  280. package/dist/components/ui/spinner/spinner.js.map +1 -1
  281. package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
  282. package/dist/components/ui/status-chip/status-chip.js +35 -30
  283. package/dist/components/ui/status-chip/status-chip.js.map +1 -1
  284. package/dist/components/ui/switch/switch.d.ts +7 -0
  285. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  286. package/dist/components/ui/switch/switch.js +255 -17
  287. package/dist/components/ui/switch/switch.js.map +1 -1
  288. package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
  289. package/dist/components/ui/textarea/textarea.js +1 -8
  290. package/dist/components/ui/textarea/textarea.js.map +1 -1
  291. package/dist/components/ui/toast/toast.d.ts.map +1 -1
  292. package/dist/components/ui/toast/toast.js +3 -1
  293. package/dist/components/ui/toast/toast.js.map +1 -1
  294. package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -1
  295. package/dist/components/ui/tooltip/deferred-tooltip.js +10 -4
  296. package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
  297. package/dist/components/ui/tooltip/index.d.ts +1 -0
  298. package/dist/components/ui/tooltip/index.d.ts.map +1 -1
  299. package/dist/components/ui/tooltip/index.js +2 -1
  300. package/dist/components/ui/tooltip/lazy-tooltip.d.ts +40 -0
  301. package/dist/components/ui/tooltip/lazy-tooltip.d.ts.map +1 -0
  302. package/dist/components/ui/tooltip/lazy-tooltip.js +61 -0
  303. package/dist/components/ui/tooltip/lazy-tooltip.js.map +1 -0
  304. package/dist/components/ui/trace/trace.d.ts.map +1 -1
  305. package/dist/components/ui/trace/trace.js +82 -68
  306. package/dist/components/ui/trace/trace.js.map +1 -1
  307. package/dist/components/ui/typography/typography.d.ts +1 -1
  308. package/dist/components/ui/typography/typography.d.ts.map +1 -1
  309. package/dist/components/ui/typography/typography.js +5 -6
  310. package/dist/components/ui/typography/typography.js.map +1 -1
  311. package/dist/index.js +3 -2
  312. package/dist/lib/clipboard.d.ts.map +1 -1
  313. package/dist/lib/clipboard.js +3 -0
  314. package/dist/lib/clipboard.js.map +1 -1
  315. package/dist/lib/fast-icon.d.ts +18 -0
  316. package/dist/lib/fast-icon.d.ts.map +1 -0
  317. package/dist/lib/fast-icon.js +75 -0
  318. package/dist/lib/fast-icon.js.map +1 -0
  319. package/dist/lib/form-field.d.ts +1 -1
  320. package/dist/lib/form-field.js +3 -1
  321. package/dist/lib/form-field.js.map +1 -1
  322. package/dist/lib/observe-resize.d.ts +14 -0
  323. package/dist/lib/observe-resize.d.ts.map +1 -0
  324. package/dist/lib/observe-resize.js +19 -0
  325. package/dist/lib/observe-resize.js.map +1 -0
  326. package/dist/lint/index.d.ts +1 -0
  327. package/dist/lint/index.d.ts.map +1 -1
  328. package/dist/lint.js +251 -118
  329. package/dist/lint.js.map +1 -1
  330. package/dist/r/action-button.json +3 -1
  331. package/dist/r/floating-preview.json +2 -1
  332. package/dist/r/icon-picker.json +0 -1
  333. package/dist/r/lib.json +10 -0
  334. package/dist/r/plan.json +2 -1
  335. package/dist/r/queue.json +2 -1
  336. package/dist/r/registry.json +30 -9
  337. package/dist/r/scene-controls.json +2 -1
  338. package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +5 -1
  339. package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +22 -17
  340. package/dist/r/src/components/composites/account-menu/account-menu.tsx +21 -9
  341. package/dist/r/src/components/composites/action-button/action-button.tsx +38 -21
  342. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +7 -1
  343. package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +13 -1
  344. package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +13 -1
  345. package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +13 -1
  346. package/dist/r/src/components/composites/catalog-browser/catalog-browser-group.tsx +11 -1
  347. package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +11 -1
  348. package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +5 -1
  349. package/dist/r/src/components/composites/chat/chat.tsx +11 -1
  350. package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +5 -1
  351. package/dist/r/src/components/composites/confirmation/confirmation.tsx +15 -1
  352. package/dist/r/src/components/composites/context/context.tsx +9 -1
  353. package/dist/r/src/components/composites/file-tree/file-tree.tsx +11 -1
  354. package/dist/r/src/components/composites/help-center/help-center.tsx +5 -1
  355. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +59 -31
  356. package/dist/r/src/components/composites/icon-picker/shell-icons.ts +121 -59
  357. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +6 -1
  358. package/dist/r/src/components/composites/list-row/list-row-control.tsx +7 -5
  359. package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +6 -1
  360. package/dist/r/src/components/composites/model-selector/model-selector.tsx +11 -1
  361. package/dist/r/src/components/composites/plan/plan.tsx +5 -1
  362. package/dist/r/src/components/composites/queue/queue.tsx +15 -1
  363. package/dist/r/src/components/composites/reasoning/reasoning.tsx +5 -1
  364. package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +17 -1
  365. package/dist/r/src/components/composites/settings/settings.tsx +23 -14
  366. package/dist/r/src/components/composites/sources/sources.tsx +27 -20
  367. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +13 -1
  368. package/dist/r/src/components/composites/stat/stat.tsx +9 -1
  369. package/dist/r/src/components/composites/subagent/subagent.tsx +5 -1
  370. package/dist/r/src/components/composites/task/task.tsx +5 -1
  371. package/dist/r/src/components/composites/terminal/ansi.ts +18 -0
  372. package/dist/r/src/components/composites/terminal/terminal.tsx +17 -7
  373. package/dist/r/src/components/composites/test-results/test-results.tsx +17 -7
  374. package/dist/r/src/components/composites/tool/tool.tsx +5 -1
  375. package/dist/r/src/components/composites/tree/tree.tsx +5 -1
  376. package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +35 -15
  377. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +14 -7
  378. package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +6 -1
  379. package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +13 -1
  380. package/dist/r/src/components/conversation/busy-send-button.tsx +11 -1
  381. package/dist/r/src/components/conversation/conversation-avatar.tsx +7 -1
  382. package/dist/r/src/components/conversation/conversation-surface.tsx +5 -1
  383. package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +13 -1
  384. package/dist/r/src/components/conversation/message-composer.tsx +13 -1
  385. package/dist/r/src/components/conversation/message-row.tsx +15 -1
  386. package/dist/r/src/components/conversation/thread-panel.tsx +5 -1
  387. package/dist/r/src/components/conversation/transcript-composition.tsx +5 -1
  388. package/dist/r/src/components/layout/floating-preview/floating-preview.tsx +6 -1
  389. package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +5 -1
  390. package/dist/r/src/components/layout/shell-rail/shell-rail.tsx +5 -1
  391. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +5 -1
  392. package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -1
  393. package/dist/r/src/components/layout/top-bar/top-bar.tsx +5 -1
  394. package/dist/r/src/components/theme/appearance-panel.tsx +6 -1
  395. package/dist/r/src/components/theme/theme-mode-toggle.tsx +7 -1
  396. package/dist/r/src/components/theme/theme-toggle.tsx +7 -1
  397. package/dist/r/src/components/ui/accordion/accordion.tsx +5 -1
  398. package/dist/r/src/components/ui/alert/alert.tsx +20 -3
  399. package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +6 -3
  400. package/dist/r/src/components/ui/attachment/attachment.tsx +19 -8
  401. package/dist/r/src/components/ui/badge/badge.tsx +24 -8
  402. package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +9 -1
  403. package/dist/r/src/components/ui/button/button.tsx +47 -16
  404. package/dist/r/src/components/ui/calendar/calendar.tsx +6 -1
  405. package/dist/r/src/components/ui/carousel/carousel.tsx +15 -5
  406. package/dist/r/src/components/ui/checkbox/checkbox.tsx +260 -22
  407. package/dist/r/src/components/ui/code-block/code-block.tsx +11 -5
  408. package/dist/r/src/components/ui/combobox/combobox.tsx +8 -9
  409. package/dist/r/src/components/ui/command/command.tsx +8 -4
  410. package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -1
  411. package/dist/r/src/components/ui/dialog/dialog.tsx +5 -1
  412. package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +11 -1
  413. package/dist/r/src/components/ui/empty/empty-state.tsx +5 -1
  414. package/dist/r/src/components/ui/field/field.tsx +14 -5
  415. package/dist/r/src/components/ui/input/input-control.tsx +28 -19
  416. package/dist/r/src/components/ui/input/input.tsx +9 -12
  417. package/dist/r/src/components/ui/input-group/input-group.tsx +1 -8
  418. package/dist/r/src/components/ui/message/index.ts +3 -0
  419. package/dist/r/src/components/ui/message/message.tsx +11 -2
  420. package/dist/r/src/components/ui/message/parse-message-text.ts +94 -2
  421. package/dist/r/src/components/ui/native-select/native-select.tsx +6 -9
  422. package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -1
  423. package/dist/r/src/components/ui/pagination/pagination.tsx +11 -1
  424. package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +13 -1
  425. package/dist/r/src/components/ui/radio-group/radio-group.tsx +6 -9
  426. package/dist/r/src/components/ui/resizable/resizable.tsx +5 -1
  427. package/dist/r/src/components/ui/select/select.tsx +11 -1
  428. package/dist/r/src/components/ui/sheet/sheet.tsx +5 -1
  429. package/dist/r/src/components/ui/spinner/spinner.tsx +5 -1
  430. package/dist/r/src/components/ui/status-chip/status-chip.tsx +14 -7
  431. package/dist/r/src/components/ui/switch/switch.tsx +235 -28
  432. package/dist/r/src/components/ui/textarea/textarea.tsx +1 -8
  433. package/dist/r/src/components/ui/toast/toast.tsx +5 -1
  434. package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +14 -8
  435. package/dist/r/src/components/ui/tooltip/index.ts +1 -0
  436. package/dist/r/src/components/ui/tooltip/lazy-tooltip.tsx +73 -0
  437. package/dist/r/src/components/ui/trace/trace.tsx +61 -28
  438. package/dist/r/src/components/ui/typography/typography.tsx +6 -5
  439. package/dist/r/src/lib/clipboard.ts +4 -0
  440. package/dist/r/src/lib/fast-icon.ts +88 -0
  441. package/dist/r/src/lib/form-field.ts +7 -7
  442. package/dist/r/src/lib/observe-resize.ts +28 -0
  443. package/dist/r/subagent.json +2 -1
  444. package/dist/r/tool.json +2 -1
  445. package/dist/r/tooltip.json +5 -0
  446. package/dist/r/trace.json +0 -1
  447. package/package.json +1 -1
  448. package/registry.json +30 -9
  449. package/src/components/composites/about-dialog/about-dialog.tsx +5 -1
  450. package/src/components/composites/accent-picker/accent-picker.tsx +22 -17
  451. package/src/components/composites/account-menu/account-menu.tsx +21 -9
  452. package/src/components/composites/action-button/action-button.tsx +38 -21
  453. package/src/components/composites/appearance-editor/appearance-choices.tsx +7 -1
  454. package/src/components/composites/appearance-editor/appearance-editor.tsx +13 -1
  455. package/src/components/composites/appearance-editor/appearance-rows.tsx +13 -1
  456. package/src/components/composites/appearance-editor/font-settings-group.tsx +13 -1
  457. package/src/components/composites/catalog-browser/catalog-browser-group.tsx +11 -1
  458. package/src/components/composites/catalog-browser/catalog-browser.tsx +11 -1
  459. package/src/components/composites/chain-of-thought/chain-of-thought.tsx +5 -1
  460. package/src/components/composites/chat/chat.tsx +11 -1
  461. package/src/components/composites/checkpoint/checkpoint.tsx +5 -1
  462. package/src/components/composites/confirmation/confirmation.tsx +15 -1
  463. package/src/components/composites/context/context.tsx +9 -1
  464. package/src/components/composites/file-tree/file-tree.tsx +11 -1
  465. package/src/components/composites/help-center/help-center.tsx +5 -1
  466. package/src/components/composites/icon-picker/icon-picker.tsx +59 -31
  467. package/src/components/composites/icon-picker/shell-icons.ts +121 -59
  468. package/src/components/composites/inline-citation/inline-citation.tsx +6 -1
  469. package/src/components/composites/list-row/list-row-control.tsx +7 -5
  470. package/src/components/composites/message-scroller/message-scroller.tsx +6 -1
  471. package/src/components/composites/model-selector/model-selector.tsx +11 -1
  472. package/src/components/composites/plan/plan.tsx +5 -1
  473. package/src/components/composites/queue/queue.tsx +15 -1
  474. package/src/components/composites/reasoning/reasoning.tsx +5 -1
  475. package/src/components/composites/scene-controls/scene-controls.tsx +17 -1
  476. package/src/components/composites/settings/settings.tsx +23 -14
  477. package/src/components/composites/sources/sources.tsx +27 -20
  478. package/src/components/composites/stack-trace/stack-trace.tsx +13 -1
  479. package/src/components/composites/stat/stat.tsx +9 -1
  480. package/src/components/composites/subagent/subagent.tsx +5 -1
  481. package/src/components/composites/task/task.tsx +5 -1
  482. package/src/components/composites/terminal/ansi.ts +18 -0
  483. package/src/components/composites/terminal/terminal.tsx +17 -7
  484. package/src/components/composites/test-results/test-results.tsx +17 -7
  485. package/src/components/composites/tool/tool.tsx +5 -1
  486. package/src/components/composites/tree/tree.tsx +5 -1
  487. package/src/components/composites/update-dialog/update-dialog.tsx +35 -15
  488. package/src/components/composites/workspace-mark/workspace-mark.tsx +14 -7
  489. package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +6 -1
  490. package/src/components/composites/workspace-switcher/workspace-switcher.tsx +13 -1
  491. package/src/components/conversation/busy-send-button.tsx +11 -1
  492. package/src/components/conversation/conversation-avatar.tsx +7 -1
  493. package/src/components/conversation/conversation-surface.tsx +5 -1
  494. package/src/components/conversation/internal/chat-composer-shell.tsx +13 -1
  495. package/src/components/conversation/message-composer.tsx +13 -1
  496. package/src/components/conversation/message-row.tsx +15 -1
  497. package/src/components/conversation/thread-panel.tsx +5 -1
  498. package/src/components/conversation/transcript-composition.tsx +5 -1
  499. package/src/components/layout/floating-preview/floating-preview.tsx +6 -1
  500. package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +5 -1
  501. package/src/components/layout/shell-rail/shell-rail.tsx +5 -1
  502. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +5 -1
  503. package/src/components/layout/split-layout/split-layout.tsx +6 -1
  504. package/src/components/layout/top-bar/top-bar.tsx +5 -1
  505. package/src/components/theme/appearance-panel.tsx +6 -1
  506. package/src/components/theme/theme-mode-toggle.tsx +7 -1
  507. package/src/components/theme/theme-toggle.tsx +7 -1
  508. package/src/components/ui/accordion/accordion.tsx +5 -1
  509. package/src/components/ui/alert/alert.tsx +20 -3
  510. package/src/components/ui/annotation-surface/annotation-surface.tsx +6 -3
  511. package/src/components/ui/attachment/attachment.tsx +19 -8
  512. package/src/components/ui/badge/badge.tsx +24 -8
  513. package/src/components/ui/breadcrumb/breadcrumb.tsx +9 -1
  514. package/src/components/ui/button/button.tsx +47 -16
  515. package/src/components/ui/calendar/calendar.tsx +6 -1
  516. package/src/components/ui/carousel/carousel.tsx +15 -5
  517. package/src/components/ui/checkbox/checkbox.tsx +260 -22
  518. package/src/components/ui/code-block/code-block.tsx +11 -5
  519. package/src/components/ui/combobox/combobox.tsx +8 -9
  520. package/src/components/ui/command/command.tsx +8 -4
  521. package/src/components/ui/detail-panel/detail-panel.tsx +5 -1
  522. package/src/components/ui/dialog/dialog.tsx +5 -1
  523. package/src/components/ui/dropdown-menu/menu-parts.tsx +11 -1
  524. package/src/components/ui/empty/empty-state.tsx +5 -1
  525. package/src/components/ui/field/field.tsx +14 -5
  526. package/src/components/ui/input/input-control.tsx +28 -19
  527. package/src/components/ui/input/input.tsx +9 -12
  528. package/src/components/ui/input-group/input-group.tsx +1 -8
  529. package/src/components/ui/message/index.ts +3 -0
  530. package/src/components/ui/message/message.tsx +11 -2
  531. package/src/components/ui/message/parse-message-text.ts +94 -2
  532. package/src/components/ui/native-select/native-select.tsx +6 -9
  533. package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -1
  534. package/src/components/ui/pagination/pagination.tsx +11 -1
  535. package/src/components/ui/questionnaire/questionnaire.tsx +13 -1
  536. package/src/components/ui/radio-group/radio-group.tsx +6 -9
  537. package/src/components/ui/resizable/resizable.tsx +5 -1
  538. package/src/components/ui/select/select.tsx +11 -1
  539. package/src/components/ui/sheet/sheet.tsx +5 -1
  540. package/src/components/ui/spinner/spinner.tsx +5 -1
  541. package/src/components/ui/status-chip/status-chip.tsx +14 -7
  542. package/src/components/ui/switch/switch.tsx +235 -28
  543. package/src/components/ui/textarea/textarea.tsx +1 -8
  544. package/src/components/ui/toast/toast.tsx +5 -1
  545. package/src/components/ui/tooltip/deferred-tooltip.tsx +14 -8
  546. package/src/components/ui/tooltip/index.ts +1 -0
  547. package/src/components/ui/tooltip/lazy-tooltip.tsx +73 -0
  548. package/src/components/ui/trace/trace.tsx +61 -28
  549. package/src/components/ui/typography/typography.tsx +6 -5
  550. package/src/lib/clipboard.ts +4 -0
  551. package/src/lib/fast-icon.ts +88 -0
  552. package/src/lib/form-field.ts +7 -7
  553. package/src/lib/observe-resize.ts +28 -0
  554. package/src/lint/index.ts +199 -0
@@ -1,4 +1,10 @@
1
- import { CheckCheck, MessageSquareReply, Pencil, RotateCcw, Trash2 } from 'lucide-solid'
1
+ import {
2
+ CheckCheck as LucideCheckCheck,
3
+ MessageSquareReply as LucideMessageSquareReply,
4
+ Pencil as LucidePencil,
5
+ RotateCcw as LucideRotateCcw,
6
+ Trash2 as LucideTrash2,
7
+ } from 'lucide-solid'
2
8
  import type { ComponentProps, JSX } from 'solid-js'
3
9
  import { createMemo, Index, Show, splitProps } from 'solid-js'
4
10
  import { cn } from '#lib/utils'
@@ -6,6 +12,14 @@ import { Button } from '../ui/button'
6
12
  import { CodeBlock, InlineCode } from '../ui/code-block'
7
13
  import { splitCodeFences, type FenceSegment } from '../ui/message/parse-message-text'
8
14
  import { ConversationAvatar, type ConversationAvatarKind } from './conversation-avatar'
15
+ import { fastIcon } from '#lib/fast-icon'
16
+
17
+ // lucide icons drawn from a cloned template (see fastIcon).
18
+ const CheckCheck = fastIcon(LucideCheckCheck)
19
+ const MessageSquareReply = fastIcon(LucideMessageSquareReply)
20
+ const Pencil = fastIcon(LucidePencil)
21
+ const RotateCcw = fastIcon(LucideRotateCcw)
22
+ const Trash2 = fastIcon(LucideTrash2)
9
23
 
10
24
  /**
11
25
  * MessageRow.
@@ -1,9 +1,13 @@
1
- import { X } from 'lucide-solid'
1
+ import { X as LucideX } from 'lucide-solid'
2
2
  import type { ComponentProps, JSX } from 'solid-js'
3
3
  import { Show, splitProps } from 'solid-js'
4
4
  import { cn } from '#lib/utils'
5
5
  import { Button } from '../ui/button'
6
6
  import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'
7
+ import { fastIcon } from '#lib/fast-icon'
8
+
9
+ // lucide icons drawn from a cloned template (see fastIcon).
10
+ const X = fastIcon(LucideX)
7
11
 
8
12
  /**
9
13
  * ThreadPanel.
@@ -8,7 +8,7 @@ import {
8
8
  createUniqueId,
9
9
  splitProps,
10
10
  } from 'solid-js'
11
- import { ChevronDown } from 'lucide-solid'
11
+ import { ChevronDown as LucideChevronDown } from 'lucide-solid'
12
12
  import { cn } from '#lib/utils'
13
13
  import { Button } from '../ui/button'
14
14
  import {
@@ -25,6 +25,10 @@ import {
25
25
  type TranscriptFoldMode,
26
26
  type TranscriptMounting,
27
27
  } from './transcript-folding'
28
+ import { fastIcon } from '#lib/fast-icon'
29
+
30
+ // lucide icons drawn from a cloned template (see fastIcon).
31
+ const ChevronDown = fastIcon(LucideChevronDown)
28
32
 
29
33
  export type TranscriptFoldState = 'default' | 'collapsed' | 'expanded'
30
34
  export type TranscriptDisplayKind = 'single' | 'group' | 'turn'
@@ -1,5 +1,5 @@
1
1
  import { createEffect, createSignal, onCleanup, onMount, on, type JSX } from 'solid-js'
2
- import { Move, X } from 'lucide-solid'
2
+ import { Move as LucideMove, X as LucideX } from 'lucide-solid'
3
3
  import { ActionButton } from '../../composites/action-button'
4
4
  import { ScrollArea } from '../../ui/scroll-area'
5
5
  import {
@@ -9,6 +9,11 @@ import {
9
9
  resolveFloatingPreviewFrame,
10
10
  resizeFloatingPreview,
11
11
  } from './model'
12
+ import { fastIcon } from '#lib/fast-icon'
13
+
14
+ // lucide icons drawn from a cloned template (see fastIcon).
15
+ const Move = fastIcon(LucideMove)
16
+ const X = fastIcon(LucideX)
12
17
 
13
18
  const directions: readonly {
14
19
  direction: FloatingPreviewResizeDirection
@@ -1,7 +1,11 @@
1
- import { GripVertical } from 'lucide-solid'
1
+ import { GripVertical as LucideGripVertical } from 'lucide-solid'
2
2
  import { createSignal, onCleanup } from 'solid-js'
3
3
  import { cn } from '#lib/utils'
4
4
  import { resizeGripClass, resizeGripIconClass, resizeSeparatorClass } from '#lib/resize-separator'
5
+ import { fastIcon } from '#lib/fast-icon'
6
+
7
+ // lucide icons drawn from a cloned template (see fastIcon).
8
+ const GripVertical = fastIcon(LucideGripVertical)
5
9
 
6
10
  export type PixelResizeHandleProps = {
7
11
  /** Which physical edge of the ruler the resizable surface is attached to. */
@@ -1,4 +1,4 @@
1
- import { Search } from 'lucide-solid'
1
+ import { Search as LucideSearch } from 'lucide-solid'
2
2
  import type { ComponentProps, JSX } from 'solid-js'
3
3
  import { children, For, Show, splitProps } from 'solid-js'
4
4
  import { cn } from '#lib/utils'
@@ -11,6 +11,10 @@ import {
11
11
  SideRailHeader,
12
12
  SideRailItem,
13
13
  } from '../side-rail'
14
+ import { fastIcon } from '#lib/fast-icon'
15
+
16
+ // lucide icons drawn from a cloned template (see fastIcon).
17
+ const Search = fastIcon(LucideSearch)
14
18
 
15
19
  /**
16
20
  * ShellRail.
@@ -1,11 +1,15 @@
1
1
  import type { PolymorphicProps } from '@kobalte/core/polymorphic'
2
2
  import { Polymorphic } from '@kobalte/core/polymorphic'
3
- import { ChevronRight } from 'lucide-solid'
3
+ import { ChevronRight as LucideChevronRight } from 'lucide-solid'
4
4
  import type { ComponentProps, JSX, ValidComponent } from 'solid-js'
5
5
  import { Show, createSignal, splitProps } from 'solid-js'
6
6
  import { callHandler } from '#lib/events'
7
7
  import { cn } from '#lib/utils'
8
8
  import { sidebarNavItemClass, sidebarNavItemStateClass } from './sidebar-nav-classes'
9
+ import { fastIcon } from '#lib/fast-icon'
10
+
11
+ // lucide icons drawn from a cloned template (see fastIcon).
12
+ const ChevronRight = fastIcon(LucideChevronRight)
9
13
 
10
14
  /**
11
15
  * SidebarNav.
@@ -13,13 +13,18 @@ import {
13
13
  type JSX,
14
14
  } from 'solid-js'
15
15
  import { Dynamic } from 'solid-js/web'
16
- import { X, GripVertical } from 'lucide-solid'
16
+ import { X as LucideX, GripVertical as LucideGripVertical } from 'lucide-solid'
17
17
  import { ActionButton } from '../../composites/action-button'
18
18
  import { Button } from '../../ui/button'
19
19
  import { resizeSeparatorClass } from '#lib/resize-separator'
20
20
  import { cn } from '#lib/utils'
21
21
  import { computeLayoutFrames, type LayoutRect } from './geometry'
22
22
  import { paneDropIntent, type PaneDropIntent } from './drop'
23
+ import { fastIcon } from '#lib/fast-icon'
24
+
25
+ // lucide icons drawn from a cloned template (see fastIcon).
26
+ const X = fastIcon(LucideX)
27
+ const GripVertical = fastIcon(LucideGripVertical)
23
28
  export type { PaneDropIntent } from './drop'
24
29
  const PANE_DRAG_TYPE = 'application/x-adea-pane-move'
25
30
  const DRAG_PREVIEW_MAX_WIDTH = 384
@@ -1,10 +1,14 @@
1
1
  import type { ComponentProps } from 'solid-js'
2
2
  import { Show, splitProps } from 'solid-js'
3
- import { Search } from 'lucide-solid'
3
+ import { Search as LucideSearch } from 'lucide-solid'
4
4
  import { callHandler } from '#lib/events'
5
5
  import { cn } from '#lib/utils'
6
6
  import { KbdChord } from '../../ui/kbd'
7
7
  import { windowChromeClass, type WindowChromeProps } from './window-chrome'
8
+ import { fastIcon } from '#lib/fast-icon'
9
+
10
+ // lucide icons drawn from a cloned template (see fastIcon).
11
+ const Search = fastIcon(LucideSearch)
8
12
 
9
13
  /**
10
14
  * TopBar.
@@ -125,7 +125,12 @@ export function AppearancePanel(props: AppearancePanelProps) {
125
125
  class="flex flex-col items-start gap-3"
126
126
  >
127
127
  <AccentSwatchGroups
128
- accentOptions={accentPresets}
128
+ // The presets, then the accents the selected theme pair carries: the
129
+ // selection already accepts those ids, so the panel must offer them.
130
+ accentOptions={[
131
+ ...accentPresets,
132
+ ...themeAccents().filter((option) => !isPresetAccentId(option.id)),
133
+ ]}
129
134
  resolvedAppearance={resolvedAppearance()}
130
135
  themeDefaultColor="var(--primary)"
131
136
  />
@@ -1,8 +1,14 @@
1
- import { Monitor, Moon, Sun } from 'lucide-solid'
1
+ import { Monitor as LucideMonitor, Moon as LucideMoon, Sun as LucideSun } from 'lucide-solid'
2
2
  import type { ComponentProps } from 'solid-js'
3
3
  import { For, splitProps } from 'solid-js'
4
4
  import { ToggleGroup, ToggleGroupItem } from '../ui/toggle-group'
5
5
  import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'
6
+ import { fastIcon } from '#lib/fast-icon'
7
+
8
+ // lucide icons drawn from a cloned template (see fastIcon).
9
+ const Monitor = fastIcon(LucideMonitor)
10
+ const Moon = fastIcon(LucideMoon)
11
+ const Sun = fastIcon(LucideSun)
6
12
 
7
13
  const APPEARANCES = [
8
14
  { value: 'light', label: 'Light', icon: Sun },
@@ -1,9 +1,15 @@
1
- import { Monitor, Moon, Sun } from 'lucide-solid'
1
+ import { Monitor as LucideMonitor, Moon as LucideMoon, Sun as LucideSun } from 'lucide-solid'
2
2
  import type { ComponentProps } from 'solid-js'
3
3
  import { For, splitProps } from 'solid-js'
4
4
  import { cn } from '#lib/utils'
5
5
  import { ToggleGroup, ToggleGroupItem } from '../ui/toggle-group'
6
6
  import { useTheme } from './theme-context'
7
+ import { fastIcon } from '#lib/fast-icon'
8
+
9
+ // lucide icons drawn from a cloned template (see fastIcon).
10
+ const Monitor = fastIcon(LucideMonitor)
11
+ const Moon = fastIcon(LucideMoon)
12
+ const Sun = fastIcon(LucideSun)
7
13
 
8
14
  /**
9
15
  * ThemeToggle.
@@ -1,8 +1,12 @@
1
1
  import { Accordion as KobalteAccordion } from '@kobalte/core/accordion'
2
- import { ChevronDown } from 'lucide-solid'
2
+ import { ChevronDown as LucideChevronDown } from 'lucide-solid'
3
3
  import type { ComponentProps } from 'solid-js'
4
4
  import { splitProps } from 'solid-js'
5
5
  import { cn } from '#lib/utils'
6
+ import { fastIcon } from '#lib/fast-icon'
7
+
8
+ // lucide icons drawn from a cloned template (see fastIcon).
9
+ const ChevronDown = fastIcon(LucideChevronDown)
6
10
 
7
11
  /**
8
12
  * Accordion.
@@ -1,9 +1,20 @@
1
- import { AlertCircle, CheckCircle2, Info, TriangleAlert } from 'lucide-solid'
1
+ import {
2
+ AlertCircle as LucideAlertCircle,
3
+ CheckCircle2 as LucideCheckCircle2,
4
+ Info as LucideInfo,
5
+ TriangleAlert as LucideTriangleAlert,
6
+ } from 'lucide-solid'
2
7
  import type { ComponentProps, JSX } from 'solid-js'
3
8
  import { children as resolveChildren, splitProps } from 'solid-js'
4
- import { Dynamic } from 'solid-js/web'
5
9
  import { cva, type VariantProps } from '#lib/variants'
6
10
  import { cn } from '#lib/utils'
11
+ import { fastIcon } from '#lib/fast-icon'
12
+
13
+ // lucide icons drawn from a cloned template (see fastIcon).
14
+ const AlertCircle = fastIcon(LucideAlertCircle)
15
+ const CheckCircle2 = fastIcon(LucideCheckCircle2)
16
+ const Info = fastIcon(LucideInfo)
17
+ const TriangleAlert = fastIcon(LucideTriangleAlert)
7
18
 
8
19
  /**
9
20
  * Alert.
@@ -76,7 +87,13 @@ export function Alert(props: AlertProps) {
76
87
  data-slot="alert-icon"
77
88
  class={cn('row-span-2 pt-0.5 [&_svg]:size-4', alertIconTones[tone()])}
78
89
  >
79
- {icon() ?? <Dynamic component={alertIcons[tone()]} />}
90
+ {icon() ??
91
+ (() => {
92
+ // Called directly rather than through Dynamic: no memo or
93
+ // component wrapper for a glyph that only changes with the tone.
94
+ const Icon = alertIcons[tone()]
95
+ return <Icon />
96
+ })()}
80
97
  </span>
81
98
  )}
82
99
  {local.children}
@@ -1,4 +1,5 @@
1
1
  import {
2
+ children,
2
3
  createEffect,
3
4
  createSignal,
4
5
  createUniqueId,
@@ -111,6 +112,8 @@ export function AnnotationSurface(props: AnnotationSurfaceProps) {
111
112
 
112
113
  const [dragging, setDragging] = createSignal(false)
113
114
  const hintId = createUniqueId()
115
+ // The hint is JSX: read once, or every check of it builds another copy.
116
+ const hint = children(() => local.hint)
114
117
  let activeDrag: ActiveDrag | undefined
115
118
  let previousResetKey = local.resetKey
116
119
  let previousTool = local.tool
@@ -256,7 +259,7 @@ export function AnnotationSurface(props: AnnotationSurfaceProps) {
256
259
  }
257
260
 
258
261
  const describedBy = () =>
259
- [local['aria-describedby'], local.hint && !visibleRegion() ? hintId : undefined]
262
+ [local['aria-describedby'], hint() && !visibleRegion() ? hintId : undefined]
260
263
  .filter(Boolean)
261
264
  .join(' ') || undefined
262
265
 
@@ -303,12 +306,12 @@ export function AnnotationSurface(props: AnnotationSurfaceProps) {
303
306
  </svg>
304
307
  )}
305
308
  </Show>
306
- <Show when={local.hint && !visibleRegion()}>
309
+ <Show when={hint() && !visibleRegion()}>
307
310
  <span
308
311
  id={hintId}
309
312
  class="dev-annotation-surface__hint pointer-events-none absolute inset-0 grid place-items-center p-4 text-center text-xs text-muted-foreground"
310
313
  >
311
- {local.hint}
314
+ {hint()}
312
315
  </span>
313
316
  </Show>
314
317
  </div>
@@ -1,18 +1,29 @@
1
1
  import {
2
- Archive,
3
- File as FileIcon,
4
- FileCode,
5
- FileText,
6
- Image as ImageIcon,
7
- LoaderCircle,
8
- TriangleAlert,
9
- X,
2
+ Archive as LucideArchive,
3
+ File as LucideFileIcon,
4
+ FileCode as LucideFileCode,
5
+ FileText as LucideFileText,
6
+ Image as LucideImageIcon,
7
+ LoaderCircle as LucideLoaderCircle,
8
+ TriangleAlert as LucideTriangleAlert,
9
+ X as LucideX,
10
10
  } from 'lucide-solid'
11
11
  import { Show, splitProps, type ComponentProps, type JSX } from 'solid-js'
12
12
  import { formatByteSize } from '#lib/bytes'
13
13
  import { FETCH_SCHEMES, urlWithScheme } from '#lib/url'
14
14
  import { cn } from '#lib/utils'
15
15
  import { Button } from '../button'
16
+ import { fastIcon } from '#lib/fast-icon'
17
+
18
+ // lucide icons drawn from a cloned template (see fastIcon).
19
+ const Archive = fastIcon(LucideArchive)
20
+ const FileIcon = fastIcon(LucideFileIcon)
21
+ const FileCode = fastIcon(LucideFileCode)
22
+ const FileText = fastIcon(LucideFileText)
23
+ const ImageIcon = fastIcon(LucideImageIcon)
24
+ const LoaderCircle = fastIcon(LucideLoaderCircle)
25
+ const TriangleAlert = fastIcon(LucideTriangleAlert)
26
+ const X = fastIcon(LucideX)
16
27
 
17
28
  /**
18
29
  * Attachment.
@@ -1,5 +1,5 @@
1
1
  import { Polymorphic, type PolymorphicProps } from '@kobalte/core/polymorphic'
2
- import { type ComponentProps, splitProps, type ValidComponent } from 'solid-js'
2
+ import { type ComponentProps, Show, splitProps, type ValidComponent } from 'solid-js'
3
3
  import { cva, type VariantProps } from '#lib/variants'
4
4
  import { cn } from '#lib/utils'
5
5
 
@@ -58,14 +58,30 @@ export type BadgeProps<T extends ValidComponent = 'span'> = PolymorphicProps<
58
58
  >
59
59
 
60
60
  export function Badge<T extends ValidComponent = 'span'>(props: BadgeProps<T>) {
61
- const [local, rest] = splitProps(props as BadgeProps, ['variant', 'size', 'class'])
61
+ const [local, rest] = splitProps(props as BadgeProps & { as?: ValidComponent }, [
62
+ 'as',
63
+ 'variant',
64
+ 'size',
65
+ 'class',
66
+ ])
67
+ const className = () =>
68
+ cn(badgeVariants({ variant: local.variant, size: local.size }), local.class)
62
69
 
70
+ // A plain span, the common case, is written directly: Polymorphic goes
71
+ // through Dynamic, two prop proxies and a memo per badge.
63
72
  return (
64
- <Polymorphic
65
- as="span"
66
- data-slot="badge"
67
- class={cn(badgeVariants({ variant: local.variant, size: local.size }), local.class)}
68
- {...(rest as ComponentProps<'span'>)}
69
- />
73
+ <Show
74
+ when={local.as === undefined || local.as === 'span'}
75
+ fallback={
76
+ <Polymorphic
77
+ as={local.as}
78
+ data-slot="badge"
79
+ class={className()}
80
+ {...(rest as ComponentProps<'span'>)}
81
+ />
82
+ }
83
+ >
84
+ <span data-slot="badge" class={className()} {...(rest as ComponentProps<'span'>)} />
85
+ </Show>
70
86
  )
71
87
  }
@@ -1,7 +1,15 @@
1
- import { ChevronRight, MoreHorizontal } from 'lucide-solid'
1
+ import {
2
+ ChevronRight as LucideChevronRight,
3
+ MoreHorizontal as LucideMoreHorizontal,
4
+ } from 'lucide-solid'
2
5
  import type { ComponentProps } from 'solid-js'
3
6
  import { Show, splitProps } from 'solid-js'
4
7
  import { cn } from '#lib/utils'
8
+ import { fastIcon } from '#lib/fast-icon'
9
+
10
+ // lucide icons drawn from a cloned template (see fastIcon).
11
+ const ChevronRight = fastIcon(LucideChevronRight)
12
+ const MoreHorizontal = fastIcon(LucideMoreHorizontal)
5
13
 
6
14
  /**
7
15
  * Breadcrumb.
@@ -1,5 +1,6 @@
1
1
  import { Polymorphic, type PolymorphicProps } from '@kobalte/core/polymorphic'
2
- import { type ComponentProps, splitProps, type ValidComponent } from 'solid-js'
2
+ import { type ComponentProps, mergeProps, Show, splitProps, type ValidComponent } from 'solid-js'
3
+ import { isServer, spread } from 'solid-js/web'
3
4
  import { cva, controlInteractive, controlSize, type VariantProps } from '#lib/variants'
4
5
  import { cn } from '#lib/utils'
5
6
 
@@ -92,27 +93,57 @@ export type ButtonProps<T extends ValidComponent = 'button'> = PolymorphicProps<
92
93
  >
93
94
 
94
95
  export function Button<T extends ValidComponent = 'button'>(props: ButtonProps<T>) {
95
- const [local, rest] = splitProps(props as ButtonProps, [
96
+ const [local, rest] = splitProps(props as ButtonProps & { as?: ValidComponent }, [
97
+ 'as',
96
98
  'variant',
97
99
  'size',
98
100
  'touchTarget',
99
101
  'class',
100
102
  ])
103
+ const className = () =>
104
+ cn(
105
+ buttonVariants({
106
+ variant: local.variant,
107
+ size: local.size,
108
+ touchTarget: local.touchTarget,
109
+ }),
110
+ local.class
111
+ )
101
112
 
113
+ // A native button, the common case, is written directly: Polymorphic goes
114
+ // through Dynamic, two prop proxies and a memo per button. It is built with
115
+ // createElement and spread, which is what the compiled JSX would do, so the
116
+ // module holds no template: `buttonVariants` stays importable in plain Node
117
+ // (a server renderer reads the class contract from this entry). A server
118
+ // render has no document, so it takes the Polymorphic path.
119
+ const native = () => {
120
+ const element = document.createElement('button')
121
+ spread(
122
+ element,
123
+ mergeProps({ type: 'button', 'data-slot': 'button' }, rest as ComponentProps<'button'>, {
124
+ get class() {
125
+ return className()
126
+ },
127
+ }),
128
+ false,
129
+ false
130
+ )
131
+ return element
132
+ }
102
133
  return (
103
- <Polymorphic
104
- as="button"
105
- type="button"
106
- data-slot="button"
107
- class={cn(
108
- buttonVariants({
109
- variant: local.variant,
110
- size: local.size,
111
- touchTarget: local.touchTarget,
112
- }),
113
- local.class
114
- )}
115
- {...(rest as ComponentProps<'button'>)}
116
- />
134
+ <Show
135
+ when={!isServer && (local.as === undefined || local.as === 'button')}
136
+ fallback={
137
+ <Polymorphic
138
+ as={local.as ?? 'button'}
139
+ type="button"
140
+ data-slot="button"
141
+ class={className()}
142
+ {...(rest as ComponentProps<'button'>)}
143
+ />
144
+ }
145
+ >
146
+ {native()}
147
+ </Show>
117
148
  )
118
149
  }
@@ -3,10 +3,15 @@ import Calendar, {
3
3
  type RootProps as CorvuCalendarProps,
4
4
  type RootSingleProps,
5
5
  } from '@corvu/calendar'
6
+ import { fastIcon } from '#lib/fast-icon'
7
+
8
+ // lucide icons drawn from a cloned template (see fastIcon).
9
+ const ChevronLeft = fastIcon(LucideChevronLeft)
10
+ const ChevronRight = fastIcon(LucideChevronRight)
6
11
 
7
12
  /** The three modes corvu's calendar is a union over. */
8
13
  export type CalendarMode = 'single' | 'multiple' | 'range'
9
- import { ChevronLeft, ChevronRight } from 'lucide-solid'
14
+ import { ChevronLeft as LucideChevronLeft, ChevronRight as LucideChevronRight } from 'lucide-solid'
10
15
  import { cn } from '#lib/utils'
11
16
  import { Button } from '../button'
12
17
 
@@ -1,9 +1,14 @@
1
1
  import { createEffect, createSignal, For, onCleanup, Show, splitProps, type JSX } from 'solid-js'
2
2
  import createEmblaCarousel from 'embla-carousel-solid'
3
3
  import type { EmblaCarouselType } from 'embla-carousel'
4
- import { ChevronLeft, ChevronRight } from 'lucide-solid'
4
+ import { ChevronLeft as LucideChevronLeft, ChevronRight as LucideChevronRight } from 'lucide-solid'
5
5
  import { cn } from '#lib/utils'
6
6
  import { Button } from '../button'
7
+ import { fastIcon } from '#lib/fast-icon'
8
+
9
+ // lucide icons drawn from a cloned template (see fastIcon).
10
+ const ChevronLeft = fastIcon(LucideChevronLeft)
11
+ const ChevronRight = fastIcon(LucideChevronRight)
7
12
 
8
13
  /**
9
14
  * Carousel.
@@ -106,16 +111,21 @@ export function Carousel(props: CarouselProps) {
106
111
  setCanPrev(api.canScrollPrev())
107
112
  setCanNext(api.canScrollNext())
108
113
  }
109
- sync()
110
- setCount(api.scrollSnapList().length)
114
+ // A reInit (slides added or removed, a resize that changes the snaps) can
115
+ // change how many snaps there are, so the dots are recounted with it.
116
+ const remeasure = () => {
117
+ setCount(api.scrollSnapList().length)
118
+ sync()
119
+ }
120
+ remeasure()
111
121
 
112
122
  api.on('select', sync)
113
123
  api.on('scroll', sync)
114
- api.on('reInit', sync)
124
+ api.on('reInit', remeasure)
115
125
  onCleanup(() => {
116
126
  api.off('select', sync)
117
127
  api.off('scroll', sync)
118
- api.off('reInit', sync)
128
+ api.off('reInit', remeasure)
119
129
  })
120
130
  })
121
131