@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 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAEnD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,eAAO,MAAM,gBAAgB;;;;8EAiC5B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,GAClE,YAAY,CAAC,OAAO,gBAAgB,CAAC,GAAG;IACtC,qFAAqF;IACrF,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAA;CAC/B,CAAA;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,kCAwC5C"}
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAEnD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,eAAO,MAAM,gBAAgB;;;;8EAiC5B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,GAClE,YAAY,CAAC,OAAO,gBAAgB,CAAC,GAAG;IACtC,qFAAqF;IACrF,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAA;CAC/B,CAAA;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,kCAiC5C"}
@@ -65,14 +65,7 @@ function Textarea(props) {
65
65
  "aria-invalid",
66
66
  "aria-errormessage"
67
67
  ]);
68
- const field = useFormFieldControl("control", {
69
- id: local.id,
70
- "aria-label": local["aria-label"],
71
- "aria-labelledby": local["aria-labelledby"],
72
- "aria-describedby": local["aria-describedby"],
73
- "aria-invalid": local["aria-invalid"],
74
- "aria-errormessage": local["aria-errormessage"]
75
- });
68
+ const field = useFormFieldControl("control", local);
76
69
  return (() => {
77
70
  var _el$ = _tmpl$();
78
71
  var _ref$ = local.ref;
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.js","names":["splitProps","cva","useFormFieldControl","cn","textareaVariants","variants","variant","default","composer","code","size","comfortable","resize","vertical","none","both","defaultVariants","ref","Textarea","props","local","rest","field","id","_el$","_tmpl$","_ref$","_$use","_$spread","_$mergeProps","class"],"sources":["../../../../src/components/ui/textarea/textarea.tsx"],"sourcesContent":["import type { ComponentProps, Ref } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { useFormFieldControl } from '#lib/form-field'\nimport { cn } from '#lib/utils'\n\nexport const textareaVariants = cva(\n [\n 'flex field-sizing-content w-full rounded-md border border-input bg-transparent px-control-md py-2 text-sm',\n 'transition-[color,box-shadow,border-color] ease-out outline-none',\n 'placeholder:text-muted-foreground',\n 'selection:bg-primary selection:text-primary-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive-subtle',\n 'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n ],\n {\n variants: {\n variant: {\n default: '',\n composer: 'border-0 bg-transparent p-0 shadow-none focus-visible:ring-0',\n code: 'font-mono',\n },\n size: {\n default: 'min-h-16',\n comfortable: 'min-h-16 max-h-48',\n },\n resize: {\n vertical: 'resize-y',\n none: 'resize-none',\n both: 'resize',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n resize: 'vertical',\n },\n }\n)\n\nexport type TextareaProps = Omit<ComponentProps<'textarea'>, 'size'> &\n VariantProps<typeof textareaVariants> & {\n /** Solid's actual textarea element, rather than its containing component or form. */\n ref?: Ref<HTMLTextAreaElement>\n }\n\n/**\n * Textarea.\n *\n * Shares the Input's border, focus and invalid treatment exactly, the two are\n * the same control at different aspect ratios, and a form that mixes them must\n * not show a seam between them.\n *\n * `field-sizing: content` lets the element grow with its content where the\n * engine supports it, which is the behaviour a chat composer wants; `rows`\n * remains the fallback so an unsupported engine still gets a usable height.\n * `variant=\"composer\"` removes the standalone field surface when nested in a\n * composer shell. `variant=\"code\"` keeps the field surface and sets the\n * monospace face, for commands, snippets and other literal text. `size=\"comfortable\"` caps growth at the shared 12rem rung, and\n * the finite `resize` variants keep browser resize behavior explicit.\n */\nexport function Textarea(props: TextareaProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'variant',\n 'size',\n 'resize',\n 'ref',\n 'id',\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-invalid',\n 'aria-errormessage',\n ])\n const field = useFormFieldControl('control', {\n id: local.id,\n 'aria-label': local['aria-label'],\n 'aria-labelledby': local['aria-labelledby'],\n 'aria-describedby': local['aria-describedby'],\n 'aria-invalid': local['aria-invalid'],\n 'aria-errormessage': local['aria-errormessage'],\n })\n\n return (\n <textarea\n data-slot=\"textarea\"\n id={field?.id ?? local.id}\n aria-label={local['aria-label']}\n aria-labelledby={field?.['aria-labelledby'] ?? local['aria-labelledby']}\n aria-describedby={field?.['aria-describedby'] ?? local['aria-describedby']}\n aria-invalid={field?.['aria-invalid'] ?? local['aria-invalid']}\n aria-errormessage={field?.['aria-errormessage'] ?? local['aria-errormessage']}\n ref={local.ref}\n class={cn(\n textareaVariants({ variant: local.variant, size: local.size, resize: local.resize }),\n local.class\n )}\n {...rest}\n />\n )\n}\n"],"mappings":";;;;;;;AAMA,IAAaI,mBAAmBH,IAC9B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AQQ,MAAMR;IAAO,CAAC,GACnFQ,MAAMU,KACR;GAAC;EAAA,GACGT,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAG;CAAA,EAAA,CAAA;AAGd"}
1
+ {"version":3,"file":"textarea.js","names":["splitProps","cva","useFormFieldControl","cn","textareaVariants","variants","variant","default","composer","code","size","comfortable","resize","vertical","none","both","defaultVariants","ref","Textarea","props","local","rest","field","_el$","_tmpl$","_ref$","_$use","_$spread","_$mergeProps","id","class"],"sources":["../../../../src/components/ui/textarea/textarea.tsx"],"sourcesContent":["import type { ComponentProps, Ref } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { useFormFieldControl } from '#lib/form-field'\nimport { cn } from '#lib/utils'\n\nexport const textareaVariants = cva(\n [\n 'flex field-sizing-content w-full rounded-md border border-input bg-transparent px-control-md py-2 text-sm',\n 'transition-[color,box-shadow,border-color] ease-out outline-none',\n 'placeholder:text-muted-foreground',\n 'selection:bg-primary selection:text-primary-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive-subtle',\n 'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n ],\n {\n variants: {\n variant: {\n default: '',\n composer: 'border-0 bg-transparent p-0 shadow-none focus-visible:ring-0',\n code: 'font-mono',\n },\n size: {\n default: 'min-h-16',\n comfortable: 'min-h-16 max-h-48',\n },\n resize: {\n vertical: 'resize-y',\n none: 'resize-none',\n both: 'resize',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n resize: 'vertical',\n },\n }\n)\n\nexport type TextareaProps = Omit<ComponentProps<'textarea'>, 'size'> &\n VariantProps<typeof textareaVariants> & {\n /** Solid's actual textarea element, rather than its containing component or form. */\n ref?: Ref<HTMLTextAreaElement>\n }\n\n/**\n * Textarea.\n *\n * Shares the Input's border, focus and invalid treatment exactly, the two are\n * the same control at different aspect ratios, and a form that mixes them must\n * not show a seam between them.\n *\n * `field-sizing: content` lets the element grow with its content where the\n * engine supports it, which is the behaviour a chat composer wants; `rows`\n * remains the fallback so an unsupported engine still gets a usable height.\n * `variant=\"composer\"` removes the standalone field surface when nested in a\n * composer shell. `variant=\"code\"` keeps the field surface and sets the\n * monospace face, for commands, snippets and other literal text. `size=\"comfortable\"` caps growth at the shared 12rem rung, and\n * the finite `resize` variants keep browser resize behavior explicit.\n */\nexport function Textarea(props: TextareaProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'variant',\n 'size',\n 'resize',\n 'ref',\n 'id',\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-invalid',\n 'aria-errormessage',\n ])\n const field = useFormFieldControl('control', local)\n\n return (\n <textarea\n data-slot=\"textarea\"\n id={field?.id ?? local.id}\n aria-label={local['aria-label']}\n aria-labelledby={field?.['aria-labelledby'] ?? local['aria-labelledby']}\n aria-describedby={field?.['aria-describedby'] ?? local['aria-describedby']}\n aria-invalid={field?.['aria-invalid'] ?? local['aria-invalid']}\n aria-errormessage={field?.['aria-errormessage'] ?? local['aria-errormessage']}\n ref={local.ref}\n class={cn(\n textareaVariants({ variant: local.variant, size: local.size, resize: local.resize }),\n local.class\n )}\n {...rest}\n />\n )\n}\n"],"mappings":";;;;;;;AAMA,IAAaI,mBAAmBH,IAC9B;CACE;CACA;CACA;CACA;CACA;CACA;CACA;AAA8E,GAEhF;CACEI,UAAU;EACRC,SAAS;GACPC,SAAS;GACTC,UAAU;GACVC,MAAM;EACR;EACAC,MAAM;GACJH,SAAS;GACTI,aAAa;EACf;EACAC,QAAQ;GACNC,UAAU;GACVC,MAAM;GACNC,MAAM;EACR;CACF;CACAC,iBAAiB;EACfV,SAAS;EACTI,MAAM;EACNE,QAAQ;CACV;AACF,CACF;;;;;;;;;;;;;;;;AAuBA,SAAgBM,SAASC,OAAsB;CAC7C,MAAM,CAACC,OAAOC,QAAQrB,WAAWmB,OAAO;EAC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
@@ -1,4 +1,5 @@
1
1
  import { cn } from "../../../lib/utils.js";
2
+ import { fastIcon } from "../../../lib/fast-icon.js";
2
3
  import { createComponent, insert, mergeProps, template } from "solid-js/web";
3
4
  import { X } from "lucide-solid";
4
5
  import { Show, splitProps } from "solid-js";
@@ -7,6 +8,7 @@ import { Toast, toaster } from "@kobalte/core/toast";
7
8
  var _tmpl$ = /*#__PURE__*/ template(`<span aria-hidden=true class="mt-1.5 size-1.5 shrink-0 rounded-full"style=background-color:var(--toast-tone)>`);
8
9
  var _tmpl$2 = /*#__PURE__*/ template(`<div class="flex min-w-0 flex-1 flex-col gap-0.5">`);
9
10
  var _tmpl$3 = /*#__PURE__*/ template(`<div class="mt-1.5 flex items-center gap-2">`);
11
+ var X$1 = fastIcon(X);
10
12
  /**
11
13
  * The tone dot's colour. A custom property rather than five colour utilities
12
14
  * because the value is applied inline (the tone is data, not markup) and a
@@ -79,7 +81,7 @@ function ToastCard(props) {
79
81
  "aria-label": "Dismiss notification",
80
82
  "class": "text-muted-foreground shrink-0 rounded-sm p-0.5 transition-colors ease-out outline-none hover:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle",
81
83
  get children() {
82
- return createComponent(X, { "class": "size-3.5" });
84
+ return createComponent(X$1, { "class": "size-3.5" });
83
85
  }
84
86
  })
85
87
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"toast.js","names":["KobalteToast","toaster","X","Show","splitProps","cn","toastTones","default","success","warning","destructive","info","title","description","tone","action","persistent","duration","region","ToastCard","props","_$createComponent","toastId","priority","class","style","children","_tmpl$","_el$2","_tmpl$2","_$insert","Title","when","descriptionSlot","Description","actionSlot","_el$3","_tmpl$3","CloseButton","errorToastOptions","options","toast","show","_$mergeProps","error","promise","messages","pending","data","resolved","state","dismiss","clear","Region","position","toasterPosition","toasterAlignment","Toaster","local","rest","regionId","limit","swipeDirection","pauseOnInteraction","pauseOnPageIdle","List"],"sources":["../../../../src/components/ui/toast/toast.tsx"],"sourcesContent":["import { Toast as KobalteToast, type ToastComponentProps, toaster } from '@kobalte/core/toast'\nimport { X } from 'lucide-solid'\nimport type { ComponentProps, JSX } from 'solid-js'\nimport { Show, splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\n\n/**\n * Toast.\n *\n * A short, self-dismissing message about something that already happened.\n *\n * The rules that make toasts helpful rather than hostile are built into this\n * API rather than left to callers:\n *\n * - A toast never carries the only route to an action. Anything important\n * enough to need doing belongs in the interface, not in a message that\n * disappears. `action` exists, but it is a convenience, not a flow.\n * - Errors from user-initiated work get `priority=\"high\"` so a screen reader\n * interrupts to announce them; background progress uses the default low\n * priority so it is not read over whatever the user is doing.\n * - A toast with a way to undo is preferred to a confirmation dialog for a\n * reversible action. Undo after the fact costs the user nothing; a modal\n * before it costs everyone a click.\n *\n * `Toaster` is mounted once, near the root of the app.\n */\n\ntype ToastTone = 'default' | 'success' | 'warning' | 'destructive' | 'info'\n\n/**\n * The tone dot's colour. A custom property rather than five colour utilities\n * because the value is applied inline (the tone is data, not markup) and a\n * Tailwind colour class cannot be built from a runtime value without becoming\n * invisible to the linter.\n */\nconst toastTones: Record<ToastTone, string> = {\n default: 'var(--foreground)',\n success: 'var(--success)',\n warning: 'var(--warning)',\n destructive: 'var(--destructive)',\n info: 'var(--info)',\n}\n\nexport type ToastOptions = {\n title: string\n description?: string\n tone?: ToastTone\n /** A control rendered inside the toast, usually an Undo. */\n action?: JSX.Element\n /** Keep the toast until it is dismissed. Use for a failure the user must see. */\n persistent?: boolean\n /** Milliseconds before auto-dismiss. Overrides the region's setting. */\n duration?: number\n /** Which Toaster region to render into. */\n region?: string\n}\n\nfunction ToastCard(props: ToastComponentProps & ToastOptions) {\n const tone = () => props.tone ?? 'default'\n\n return (\n <KobalteToast\n toastId={props.toastId}\n /**\n * A user-initiated outcome is announced; a background one waits its turn.\n * A failure the user caused is worth interrupting for; a sync finishing\n * quietly is not.\n */\n priority={tone() === 'destructive' ? 'high' : 'low'}\n duration={props.duration}\n persistent={props.persistent}\n class={cn(\n 'pointer-events-auto flex w-full items-start gap-3 rounded-xl border border-border bg-popover p-3 shadow-lg',\n 'data-[opened]:animate-in data-[opened]:slide-in-from-right-full data-[opened]:fade-in-0',\n 'data-[closed]:animate-out data-[closed]:slide-out-to-right-full data-[closed]:fade-out-0',\n 'data-[swipe=move]:translate-x-(--kb-toast-swipe-move-x) data-[swipe=move]:transition-none',\n 'data-[swipe=cancel]:translate-x-0 data-[swipe=cancel]:transition-transform',\n 'data-[swipe=end]:animate-out data-[swipe=end]:slide-out-to-right-full'\n )}\n style={{ '--toast-tone': toastTones[tone()] }}\n >\n <span\n aria-hidden=\"true\"\n class=\"mt-1.5 size-1.5 shrink-0 rounded-full\"\n style={{ 'background-color': 'var(--toast-tone)' }}\n />\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <KobalteToast.Title class=\"text-sm font-medium\">{props.title}</KobalteToast.Title>\n <Show when={props.description}>\n {(descriptionSlot) => (\n <KobalteToast.Description class=\"text-sm text-muted-foreground\">\n {descriptionSlot()}\n </KobalteToast.Description>\n )}\n </Show>\n <Show when={props.action}>\n {(actionSlot) => <div class=\"mt-1.5 flex items-center gap-2\">{actionSlot()}</div>}\n </Show>\n </div>\n <KobalteToast.CloseButton\n aria-label=\"Dismiss notification\"\n class=\"text-muted-foreground shrink-0 rounded-sm p-0.5 transition-colors ease-out outline-none hover:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle\"\n >\n <X class=\"size-3.5\" />\n </KobalteToast.CloseButton>\n </KobalteToast>\n )\n}\n\n/**\n * The error contract, resolved: destructive tone, persistent unless the caller\n * says otherwise. Exported because this decision is the part a caller depends\n * on and the part testable without a browser — the card render itself needs one.\n */\nexport function errorToastOptions(\n title: string,\n options?: Omit<ToastOptions, 'title' | 'tone'>\n): ToastOptions {\n return { ...options, title, tone: 'destructive', persistent: options?.persistent ?? true }\n}\n\n/**\n * The toast API. `show` is the general form; the tone helpers are shorthand for\n * the four cases that come up constantly.\n */\nexport const toast = {\n show(options: ToastOptions): number {\n return toaster.show((props) => <ToastCard {...props} {...options} />, {\n region: options.region,\n })\n },\n success(title: string, options?: Omit<ToastOptions, 'title' | 'tone'>): number {\n return toast.show({ ...options, title, tone: 'success' })\n },\n /**\n * A failure the user caused. Persistent by default — an error that times out\n * while its reader is mid-sentence has not been reported — but `persistent`\n * stays caller-owned: a failure inside a retry loop (a failed \"check again\",\n * a background poll) passes `persistent: false` and a `duration`, because a\n * dismiss-only toast there is one more thing to close by hand.\n */\n error(title: string, options?: Omit<ToastOptions, 'title' | 'tone'>): number {\n return toast.show(errorToastOptions(title, options))\n },\n warning(title: string, options?: Omit<ToastOptions, 'title' | 'tone'>): number {\n return toast.show({ ...options, title, tone: 'warning' })\n },\n info(title: string, options?: Omit<ToastOptions, 'title' | 'tone'>): number {\n return toast.show({ ...options, title, tone: 'info' })\n },\n /**\n * A toast that resolves with a promise: pending, then success or failure.\n * The right shape for an operation with a visible duration, because the user\n * gets one message instead of three.\n */\n promise<T>(\n promise: Promise<T> | (() => Promise<T>),\n messages: {\n pending: string\n success: string | ((data: T) => string)\n error: string | ((error: unknown) => string)\n }\n ): Promise<T> {\n const resolved = typeof promise === 'function' ? promise() : promise\n toaster.promise(resolved, (props) => {\n const tone: ToastTone =\n props.state === 'fulfilled'\n ? 'success'\n : props.state === 'rejected'\n ? 'destructive'\n : 'default'\n const title =\n props.state === 'pending'\n ? messages.pending\n : props.state === 'fulfilled'\n ? typeof messages.success === 'function'\n ? messages.success(props.data as T)\n : messages.success\n : typeof messages.error === 'function'\n ? messages.error(props.error)\n : messages.error\n return (\n <ToastCard\n toastId={props.toastId}\n title={title}\n tone={tone}\n persistent={props.state === 'rejected'}\n />\n )\n })\n return resolved\n },\n dismiss: toaster.dismiss,\n clear: toaster.clear,\n}\n\nexport type ToasterProps = ComponentProps<typeof KobalteToast.Region> & {\n /** Where the stack sits. Defaults to the bottom-right, clear of the shell. */\n position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'\n region?: string\n}\n\n/**\n * `class` lands on the region too: the props describe the region, and the\n * region is the element a caller lays out (an inset clear of a status bar, a\n * narrower stack). The list inside it is an implementation detail.\n *\n * The corner is set on the region, not the list. The region is the `fixed`\n * element: an inset on the list inside it positions nothing, and the region falls\n * back to wherever it happens to sit in the document flow.\n */\nconst toasterPosition = {\n 'top-left': 'top-0 left-0',\n 'top-right': 'top-0 right-0',\n 'bottom-left': 'bottom-0 left-0',\n 'bottom-right': 'bottom-0 right-0',\n}\n\nconst toasterAlignment = {\n 'top-left': 'items-start',\n 'top-right': 'items-end',\n 'bottom-left': 'items-start',\n 'bottom-right': 'items-end',\n}\n\n/** Mount once, near the root. Renders the stack and owns its timing defaults. */\nexport function Toaster(props: ToasterProps) {\n const [local, rest] = splitProps(props, ['position', 'region', 'class'])\n\n return (\n <KobalteToast.Region\n regionId={local.region}\n duration={5000}\n limit={3}\n swipeDirection=\"right\"\n pauseOnInteraction\n pauseOnPageIdle\n /**\n * The toast region is a top layer: opening a dialog must not hide an\n * in-flight notification, and clicking a toast must not dismiss the\n * dialog behind it.\n */\n class={cn(\n 'pointer-events-none fixed z-(--z-toast) flex max-h-screen w-full flex-col gap-2 p-4 sm:max-w-sm',\n toasterPosition[local.position ?? 'bottom-right'],\n local.class\n )}\n {...rest}\n >\n <KobalteToast.List\n class={cn('flex flex-col gap-2', toasterAlignment[local.position ?? 'bottom-right'])}\n />\n </KobalteToast.Region>\n )\n}\n\nexport { toaster }\n"],"mappings":";;;;;;;;;;;;;;;AAmCA,IAAMM,aAAwC;CAC5CC,SAAS;CACTC,SAAS;CACTC,SAAS;CACTC,aAAa;CACbC,MAAM;AACR;AAgBA,SAASQ,UAAUC,OAA2C;CAC5D,MAAMN,aAAaM,MAAMN,QAAQ;CAEjC,OAAAO,gBACGrB,OAAY;EAAA,IACXsB,UAAO;GAAA,OAAEF,MAAME;EAAO;EAAA,IAMtBC,WAAQ;GAAA,OAAET,KAAK,MAAM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EACD,OAAOD;CACT;CACAE,SAASlD,QAAQkD;CACjBC,OAAOnD,QAAQmD;AACjB;;;;;;;;;;AAiBA,IAAMG,kBAAkB;CACtB,YAAY;CACZ,aAAa;CACb,eAAe;CACf,gBAAgB;AAClB;AAEA,IAAMC,mBAAmB;CACvB,YAAY;CACZ,aAAa;CACb,eAAe;CACf,gBAAgB;AAClB;;AAGA,SAAgBC,QAAQrC,OAAqB;CAC3C,MAAM,CAACsC,OAAOC,QAAQvD,WAAWgB,OAAO;EAAC;EAAY;EAAU;CAAO,CAAC;CAEvE,OAAAC,gBACGrB,MAAaqD,QAAMV,WAAA;EAAA,IAClBiB,WAAQ;GAAA,OAAEF,MAAMxC;EAAM;EACtBD,UAAU;EACV4C,OAAO;EACPC,gBAAc;EACdC,oBAAkB;EAClBC,iBAAe;EAAA,KAAA,WAAA;GAAA,OAMR3D,GACL,mGACAkD,gBAAgBG,MAAMJ,YAAY,iBAClCI,MAAMlC,KACR;EAAC;CAAA,GACGmC,MAAI,EAAA,IAAAjC,WAAA;EAAA,OAAAL,gBAEPrB,MAAaiE,MAAI,EAAA,KAAA,WAAA;GAAA,OACT5D,GAAG,uBAAuBmD,iBAAiBE,MAAMJ,YAAY,eAAe;EAAC,EAAA,CAAA;CAAA,EAAA,CAAA,CAAA;AAI5F"}
1
+ {"version":3,"file":"toast.js","names":["KobalteToast","toaster","X","LucideX","Show","splitProps","cn","fastIcon","toastTones","default","success","warning","destructive","info","title","description","tone","action","persistent","duration","region","ToastCard","props","_$createComponent","toastId","priority","class","style","children","_tmpl$","_el$2","_tmpl$2","_$insert","Title","when","descriptionSlot","Description","actionSlot","_el$3","_tmpl$3","CloseButton","errorToastOptions","options","toast","show","_$mergeProps","error","promise","messages","pending","data","resolved","state","dismiss","clear","Region","position","toasterPosition","toasterAlignment","Toaster","local","rest","regionId","limit","swipeDirection","pauseOnInteraction","pauseOnPageIdle","List"],"sources":["../../../../src/components/ui/toast/toast.tsx"],"sourcesContent":["import { Toast as KobalteToast, type ToastComponentProps, toaster } from '@kobalte/core/toast'\nimport { X as LucideX } from 'lucide-solid'\nimport type { ComponentProps, JSX } from 'solid-js'\nimport { Show, splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst X = fastIcon(LucideX)\n\n/**\n * Toast.\n *\n * A short, self-dismissing message about something that already happened.\n *\n * The rules that make toasts helpful rather than hostile are built into this\n * API rather than left to callers:\n *\n * - A toast never carries the only route to an action. Anything important\n * enough to need doing belongs in the interface, not in a message that\n * disappears. `action` exists, but it is a convenience, not a flow.\n * - Errors from user-initiated work get `priority=\"high\"` so a screen reader\n * interrupts to announce them; background progress uses the default low\n * priority so it is not read over whatever the user is doing.\n * - A toast with a way to undo is preferred to a confirmation dialog for a\n * reversible action. Undo after the fact costs the user nothing; a modal\n * before it costs everyone a click.\n *\n * `Toaster` is mounted once, near the root of the app.\n */\n\ntype ToastTone = 'default' | 'success' | 'warning' | 'destructive' | 'info'\n\n/**\n * The tone dot's colour. A custom property rather than five colour utilities\n * because the value is applied inline (the tone is data, not markup) and a\n * Tailwind colour class cannot be built from a runtime value without becoming\n * invisible to the linter.\n */\nconst toastTones: Record<ToastTone, string> = {\n default: 'var(--foreground)',\n success: 'var(--success)',\n warning: 'var(--warning)',\n destructive: 'var(--destructive)',\n info: 'var(--info)',\n}\n\nexport type ToastOptions = {\n title: string\n description?: string\n tone?: ToastTone\n /** A control rendered inside the toast, usually an Undo. */\n action?: JSX.Element\n /** Keep the toast until it is dismissed. Use for a failure the user must see. */\n persistent?: boolean\n /** Milliseconds before auto-dismiss. Overrides the region's setting. */\n duration?: number\n /** Which Toaster region to render into. */\n region?: string\n}\n\nfunction ToastCard(props: ToastComponentProps & ToastOptions) {\n const tone = () => props.tone ?? 'default'\n\n return (\n <KobalteToast\n toastId={props.toastId}\n /**\n * A user-initiated outcome is announced; a background one waits its turn.\n * A failure the user caused is worth interrupting for; a sync finishing\n * quietly is not.\n */\n priority={tone() === 'destructive' ? 'high' : 'low'}\n duration={props.duration}\n persistent={props.persistent}\n class={cn(\n 'pointer-events-auto flex w-full items-start gap-3 rounded-xl border border-border bg-popover p-3 shadow-lg',\n 'data-[opened]:animate-in data-[opened]:slide-in-from-right-full data-[opened]:fade-in-0',\n 'data-[closed]:animate-out data-[closed]:slide-out-to-right-full data-[closed]:fade-out-0',\n 'data-[swipe=move]:translate-x-(--kb-toast-swipe-move-x) data-[swipe=move]:transition-none',\n 'data-[swipe=cancel]:translate-x-0 data-[swipe=cancel]:transition-transform',\n 'data-[swipe=end]:animate-out data-[swipe=end]:slide-out-to-right-full'\n )}\n style={{ '--toast-tone': toastTones[tone()] }}\n >\n <span\n aria-hidden=\"true\"\n class=\"mt-1.5 size-1.5 shrink-0 rounded-full\"\n style={{ 'background-color': 'var(--toast-tone)' }}\n />\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <KobalteToast.Title class=\"text-sm font-medium\">{props.title}</KobalteToast.Title>\n <Show when={props.description}>\n {(descriptionSlot) => (\n <KobalteToast.Description class=\"text-sm text-muted-foreground\">\n {descriptionSlot()}\n </KobalteToast.Description>\n )}\n </Show>\n <Show when={props.action}>\n {(actionSlot) => <div class=\"mt-1.5 flex items-center gap-2\">{actionSlot()}</div>}\n </Show>\n </div>\n <KobalteToast.CloseButton\n aria-label=\"Dismiss notification\"\n class=\"text-muted-foreground shrink-0 rounded-sm p-0.5 transition-colors ease-out outline-none hover:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle\"\n >\n <X class=\"size-3.5\" />\n </KobalteToast.CloseButton>\n </KobalteToast>\n )\n}\n\n/**\n * The error contract, resolved: destructive tone, persistent unless the caller\n * says otherwise. Exported because this decision is the part a caller depends\n * on and the part testable without a browser — the card render itself needs one.\n */\nexport function errorToastOptions(\n title: string,\n options?: Omit<ToastOptions, 'title' | 'tone'>\n): ToastOptions {\n return { ...options, title, tone: 'destructive', persistent: options?.persistent ?? true }\n}\n\n/**\n * The toast API. `show` is the general form; the tone helpers are shorthand for\n * the four cases that come up constantly.\n */\nexport const toast = {\n show(options: ToastOptions): number {\n return toaster.show((props) => <ToastCard {...props} {...options} />, {\n region: options.region,\n })\n },\n success(title: string, options?: Omit<ToastOptions, 'title' | 'tone'>): number {\n return toast.show({ ...options, title, tone: 'success' })\n },\n /**\n * A failure the user caused. Persistent by default — an error that times out\n * while its reader is mid-sentence has not been reported — but `persistent`\n * stays caller-owned: a failure inside a retry loop (a failed \"check again\",\n * a background poll) passes `persistent: false` and a `duration`, because a\n * dismiss-only toast there is one more thing to close by hand.\n */\n error(title: string, options?: Omit<ToastOptions, 'title' | 'tone'>): number {\n return toast.show(errorToastOptions(title, options))\n },\n warning(title: string, options?: Omit<ToastOptions, 'title' | 'tone'>): number {\n return toast.show({ ...options, title, tone: 'warning' })\n },\n info(title: string, options?: Omit<ToastOptions, 'title' | 'tone'>): number {\n return toast.show({ ...options, title, tone: 'info' })\n },\n /**\n * A toast that resolves with a promise: pending, then success or failure.\n * The right shape for an operation with a visible duration, because the user\n * gets one message instead of three.\n */\n promise<T>(\n promise: Promise<T> | (() => Promise<T>),\n messages: {\n pending: string\n success: string | ((data: T) => string)\n error: string | ((error: unknown) => string)\n }\n ): Promise<T> {\n const resolved = typeof promise === 'function' ? promise() : promise\n toaster.promise(resolved, (props) => {\n const tone: ToastTone =\n props.state === 'fulfilled'\n ? 'success'\n : props.state === 'rejected'\n ? 'destructive'\n : 'default'\n const title =\n props.state === 'pending'\n ? messages.pending\n : props.state === 'fulfilled'\n ? typeof messages.success === 'function'\n ? messages.success(props.data as T)\n : messages.success\n : typeof messages.error === 'function'\n ? messages.error(props.error)\n : messages.error\n return (\n <ToastCard\n toastId={props.toastId}\n title={title}\n tone={tone}\n persistent={props.state === 'rejected'}\n />\n )\n })\n return resolved\n },\n dismiss: toaster.dismiss,\n clear: toaster.clear,\n}\n\nexport type ToasterProps = ComponentProps<typeof KobalteToast.Region> & {\n /** Where the stack sits. Defaults to the bottom-right, clear of the shell. */\n position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'\n region?: string\n}\n\n/**\n * `class` lands on the region too: the props describe the region, and the\n * region is the element a caller lays out (an inset clear of a status bar, a\n * narrower stack). The list inside it is an implementation detail.\n *\n * The corner is set on the region, not the list. The region is the `fixed`\n * element: an inset on the list inside it positions nothing, and the region falls\n * back to wherever it happens to sit in the document flow.\n */\nconst toasterPosition = {\n 'top-left': 'top-0 left-0',\n 'top-right': 'top-0 right-0',\n 'bottom-left': 'bottom-0 left-0',\n 'bottom-right': 'bottom-0 right-0',\n}\n\nconst toasterAlignment = {\n 'top-left': 'items-start',\n 'top-right': 'items-end',\n 'bottom-left': 'items-start',\n 'bottom-right': 'items-end',\n}\n\n/** Mount once, near the root. Renders the stack and owns its timing defaults. */\nexport function Toaster(props: ToasterProps) {\n const [local, rest] = splitProps(props, ['position', 'region', 'class'])\n\n return (\n <KobalteToast.Region\n regionId={local.region}\n duration={5000}\n limit={3}\n swipeDirection=\"right\"\n pauseOnInteraction\n pauseOnPageIdle\n /**\n * The toast region is a top layer: opening a dialog must not hide an\n * in-flight notification, and clicking a toast must not dismiss the\n * dialog behind it.\n */\n class={cn(\n 'pointer-events-none fixed z-(--z-toast) flex max-h-screen w-full flex-col gap-2 p-4 sm:max-w-sm',\n toasterPosition[local.position ?? 'bottom-right'],\n local.class\n )}\n {...rest}\n >\n <KobalteToast.List\n class={cn('flex flex-col gap-2', toasterAlignment[local.position ?? 'bottom-right'])}\n />\n </KobalteToast.Region>\n )\n}\n\nexport { toaster }\n"],"mappings":";;;;;;;;;;AAQA,IAAME,MAAIK,SAASJ,CAAO;;;;;;;AA+B1B,IAAMK,aAAwC;CAC5CC,SAAS;CACTC,SAAS;CACTC,SAAS;CACTC,aAAa;CACbC,MAAM;AACR;AAgBA,SAASQ,UAAUC,OAA2C;CAC5D,MAAMN,aAAaM,MAAMN,QAAQ;CAEjC,OAAAO,gB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EF,MAAME;IAAO;IACfV;IACDE;IAAI,IACVE,aAAU;KAAA,OAAEI,MAAM8B,UAAU;IAAU;GAAA,CAAA;EAG5C,CAAC;EACD,OAAOD;CACT;CACAE,SAASpD,QAAQoD;CACjBC,OAAOrD,QAAQqD;AACjB;;;;;;;;;;AAiBA,IAAMG,kBAAkB;CACtB,YAAY;CACZ,aAAa;CACb,eAAe;CACf,gBAAgB;AAClB;AAEA,IAAMC,mBAAmB;CACvB,YAAY;CACZ,aAAa;CACb,eAAe;CACf,gBAAgB;AAClB;;AAGA,SAAgBC,QAAQrC,OAAqB;CAC3C,MAAM,CAACsC,OAAOC,QAAQxD,WAAWiB,OAAO;EAAC;EAAY;EAAU;CAAO,CAAC;CAEvE,OAAAC,gBACGvB,MAAauD,QAAMV,WAAA;EAAA,IAClBiB,WAAQ;GAAA,OAAEF,MAAMxC;EAAM;EACtBD,UAAU;EACV4C,OAAO;EACPC,gBAAc;EACdC,oBAAkB;EAClBC,iBAAe;EAAA,KAAA,WAAA;GAAA,OAMR5D,GACL,mGACAmD,gBAAgBG,MAAMJ,YAAY,iBAClCI,MAAMlC,KACR;EAAC;CAAA,GACGmC,MAAI,EAAA,IAAAjC,WAAA;EAAA,OAAAL,gBAEPvB,MAAamE,MAAI,EAAA,KAAA,WAAA;GAAA,OACT7D,GAAG,uBAAuBoD,iBAAiBE,MAAMJ,YAAY,eAAe;EAAC,EAAA,CAAA;CAAA,EAAA,CAAA,CAAA;AAI5F"}
@@ -1 +1 @@
1
- {"version":3,"file":"deferred-tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tooltip/deferred-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAM7C,KAAK,YAAY,GAAG;IAClB,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAA;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;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,EAAE,YAAY,KAAK,IAAI,CAAA;IAC7C,uCAAuC;IACvC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACpC;;;OAGG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,GAAG,CAAC,OAAO,CAAA;CAC7C,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAC7C,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC1B,cAAc,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAClC,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC5B,GAAG,eAAe,CAiFlB"}
@@ -1,7 +1,7 @@
1
1
  import { callHandler } from "../../../lib/events.js";
2
2
  import { acquireTooltipFocusGate, releaseTooltipFocusGate } from "../../../lib/tooltip-focus-gate.js";
3
3
  import { isServer, spread } from "solid-js/web";
4
- import { createEffect, createSignal, onCleanup, splitProps } from "solid-js";
4
+ import { createSignal, onCleanup, splitProps, untrack } from "solid-js";
5
5
  // src/components/ui/tooltip/deferred-tooltip.tsx
6
6
  /**
7
7
  * A tooltip that costs nothing until it is wanted.
@@ -31,13 +31,19 @@ function createDeferredTooltip(options) {
31
31
  const [element, setElement] = createSignal();
32
32
  const [armed, setArmed] = createSignal(false);
33
33
  let replaying = false;
34
- if (!isServer) createEffect(() => {
35
- if (!options.enabled()) return;
34
+ let holdsGate = false;
35
+ const holdGate = () => {
36
+ if (holdsGate || isServer) return;
37
+ holdsGate = true;
36
38
  acquireTooltipFocusGate();
37
- onCleanup(releaseTooltipFocusGate);
39
+ };
40
+ if (untrack(options.enabled)) holdGate();
41
+ onCleanup(() => {
42
+ if (holdsGate) releaseTooltipFocusGate();
38
43
  });
39
44
  const arm = (replay) => {
40
45
  if (armed() || !options.enabled()) return;
46
+ holdGate();
41
47
  setArmed(true);
42
48
  replaying = true;
43
49
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"deferred-tooltip.js","names":["createEffect","createSignal","onCleanup","splitProps","isServer","spread","callHandler","acquireTooltipFocusGate","releaseTooltipFocusGate","ref","element","key","armed","onPointerEnter","event","PointerEvent","onFocus","FocusEvent","Target","props","createDeferredTooltip","options","enabled","setElement","setArmed","replaying","arm","replay","control","local","rest","attributes","Object","keys","value","test","type","slice","toLowerCase","listener","addEventListener","removeEventListener","defineProperty","enumerable","get","pointerType","defaultPrevented","target","currentTarget","dispatchEvent","pointerId","clientX","clientY","relatedTarget"],"sources":["../../../../src/components/ui/tooltip/deferred-tooltip.tsx"],"sourcesContent":["import type { Accessor, JSX } from 'solid-js'\nimport { createEffect, createSignal, onCleanup, splitProps } from 'solid-js'\nimport { isServer, spread } from 'solid-js/web'\nimport { callHandler } from '#lib/events'\nimport { acquireTooltipFocusGate, releaseTooltipFocusGate } from '#lib/tooltip-focus-gate'\n\ntype TriggerProps = {\n ref?: (element: HTMLElement) => void\n [key: string]: unknown\n}\n\nexport type DeferredTooltip = {\n /** True once the control has been hovered or focused: render the tooltip then. */\n armed: Accessor<boolean>\n /** Pass as the control's `ref`. */\n ref: (element: HTMLElement) => void\n /** Pass as the control's `onPointerEnter`. */\n onPointerEnter: (event: PointerEvent) => void\n /** Pass as the control's `onFocus`. */\n onFocus: (event: FocusEvent) => void\n /**\n * Pass to `TooltipTrigger as={...}`. It renders nothing: it hands the trigger's\n * handlers, state attributes and ref to the control that is already on screen.\n */\n Target: (props: TriggerProps) => JSX.Element\n}\n\n/**\n * A tooltip that costs nothing until it is wanted.\n *\n * Every tooltip trigger builds a Kobalte tooltip root, its popper wiring and a\n * focus-gate registration when it mounts, and almost none of them are ever\n * shown: a list or toolbar of tooltip controls paid for all of them up front.\n * With this, the control renders plain and the tooltip mounts the first time a\n * pointer enters it or keyboard focus reaches it.\n *\n * The control is never replaced. The trigger adopts the element already on\n * screen (its handlers go on as native listeners next to the control's own;\n * spreading them would take Solid's delegated slot and replace the control's\n * `onClick`), so mounting late moves no focus and drops no hover. The event\n * that armed the tooltip is replayed to the new trigger, so the tip opens on\n * the same timing as an eagerly mounted one; the control's own handlers do not\n * see the replay.\n *\n * The trigger never sets `type`, `aria-describedby` or children: the control\n * owns those, and points `aria-describedby` at the content's id while the tip\n * is open.\n *\n * The keyboard-focus gate is held for the control's lifetime, not from the\n * moment its tooltip mounts, so it sees the Tab that precedes a first focus.\n */\nexport function createDeferredTooltip(options: {\n enabled: Accessor<boolean>\n onPointerEnter?: Accessor<unknown>\n onFocus?: Accessor<unknown>\n}): DeferredTooltip {\n const [element, setElement] = createSignal<HTMLElement>()\n const [armed, setArmed] = createSignal(false)\n let replaying = false\n\n // Held only while the control has a tooltip: a control without one needs no gate.\n if (!isServer)\n createEffect(() => {\n if (!options.enabled()) return\n acquireTooltipFocusGate()\n onCleanup(releaseTooltipFocusGate)\n })\n\n const arm = (replay: () => void) => {\n if (armed() || !options.enabled()) return\n setArmed(true)\n replaying = true\n try {\n replay()\n } finally {\n replaying = false\n }\n }\n\n const Target = (props: TriggerProps) => {\n const control = element()\n if (!control) return null\n const [local, rest] = splitProps(props, ['ref', 'type', 'aria-describedby', 'children', 'as'])\n local.ref?.(control)\n const attributes: Record<string, unknown> = {}\n for (const key of Object.keys(rest)) {\n const value = rest[key]\n if (/^on[A-Z]/.test(key) && typeof value === 'function') {\n const type = key.slice(2).toLowerCase()\n const listener = value as EventListener\n control.addEventListener(type, listener)\n onCleanup(() => control.removeEventListener(type, listener))\n } else {\n Object.defineProperty(attributes, key, { enumerable: true, get: () => rest[key] })\n }\n }\n spread(control, attributes, false, true)\n return null\n }\n\n return {\n armed,\n ref: setElement,\n onPointerEnter(event) {\n if (replaying) return\n callHandler(options.onPointerEnter?.() as never, event as never)\n if (event.pointerType === 'touch' || event.defaultPrevented) return\n const target = event.currentTarget as HTMLElement\n arm(() =>\n target.dispatchEvent(\n new PointerEvent('pointerenter', {\n pointerId: event.pointerId,\n pointerType: event.pointerType,\n clientX: event.clientX,\n clientY: event.clientY,\n })\n )\n )\n },\n onFocus(event) {\n if (replaying) return\n callHandler(options.onFocus?.() as never, event as never)\n if (event.defaultPrevented) return\n const target = event.currentTarget as HTMLElement\n arm(() =>\n target.dispatchEvent(new FocusEvent('focus', { relatedTarget: event.relatedTarget }))\n )\n },\n Target,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAgBoB,sBAAsBC,SAIlB;CAClB,MAAM,CAACX,SAASa,cAActB,aAA0B;CACxD,MAAM,CAACW,OAAOY,YAAYvB,aAAa,KAAK;CAC5C,IAAIwB,YAAY;CAGhB,IAAI,CAACrB,UACHJ,mBAAmB;EACjB,IAAI,CAACqB,QAAQC,QAAQ,GAAG;EACxBf,wBAAwB;EACxBL,UAAUM,uBAAuB;CACnC,CAAC;CAEH,MAAMkB,OAAOC,WAAuB;EAClC,IAAIf,MAAM,KAAK,CAACS,QAAQC,QAAQ,GAAG;EACnCE,SAAS,IAAI;EACbC,YAAY;EACZ,IAAI;GACFE,OAAO;EACT,UAAU;GACRF,YAAY;EACd;CACF;CAEA,MAAMP,UAAUC,UAAwB;EACtC,MAAMS,UAAUlB,QAAQ;EACxB,IAAI,CAACkB,SAAS,OAAO;EACrB,MAAM,CAACC,OAAOC,QAAQ3B,WAAWgB,OAAO;GAAC;GAAO;GAAQ;GAAoB;GAAY;EAAI,CAAC;EAC7FU,MAAMpB,MAAMmB,OAAO;EACnB,MAAMG,aAAsC,CAAC;EAC7C,KAAK,MAAMpB,OAAOqB,OAAOC,KAAKH,IAAI,GAAG;GACnC,MAAMI,QAAQJ,KAAKnB;GACnB,IAAI,WAAWwB,KAAKxB,GAAG,KAAK,OAAOuB,UAAU,YAAY;IACvD,MAAME,OAAOzB,IAAI0B,MAAM,CAAC,CAAC,CAACC,YAAY;IACtC,MAAMC,WAAWL;IACjBN,QAAQY,iBAAiBJ,MAAMG,QAAQ;IACvCrC,gBAAgB0B,QAAQa,oBAAoBL,MAAMG,QAAQ,CAAC;GAC7D,OACEP,OAAOU,eAAeX,YAAYpB,KAAK;IAAEgC,YAAY;IAAMC,WAAWd,KAAKnB;GAAK,CAAC;EAErF;EACAN,OAAOuB,SAASG,YAAY,OAAO,IAAI;EACvC,OAAO;CACT;CAEA,OAAO;EACLnB;EACAH,KAAKc;EACLV,eAAeC,OAAO;GACpB,IAAIW,WAAW;GACfnB,YAAYe,QAAQR,iBAAiB,GAAYC,KAAc;GAC/D,IAAIA,MAAM+B,gBAAgB,WAAW/B,MAAMgC,kBAAkB;GAC7D,MAAMC,SAASjC,MAAMkC;GACrBtB,UACEqB,OAAOE,cACL,IAAIlC,aAAa,gBAAgB;IAC/BmC,WAAWpC,MAAMoC;IACjBL,aAAa/B,MAAM+B;IACnBM,SAASrC,MAAMqC;IACfC,SAAStC,MAAMsC;GACjB,CAAC,CACH,CACF;EACF;EACApC,QAAQF,OAAO;GACb,IAAIW,WAAW;GACfnB,YAAYe,QAAQL,UAAU,GAAYF,KAAc;GACxD,IAAIA,MAAMgC,kBAAkB;GAC5B,MAAMC,SAASjC,MAAMkC;GACrBtB,UACEqB,OAAOE,cAAc,IAAIhC,WAAW,SAAS,EAAEoC,eAAevC,MAAMuC,cAAc,CAAC,CAAC,CACtF;EACF;EACAnC;CACF;AACF"}
1
+ {"version":3,"file":"deferred-tooltip.js","names":["createSignal","onCleanup","splitProps","untrack","isServer","spread","callHandler","acquireTooltipFocusGate","releaseTooltipFocusGate","ref","element","key","armed","onPointerEnter","event","PointerEvent","onFocus","FocusEvent","Target","props","createDeferredTooltip","options","enabled","setElement","setArmed","replaying","holdsGate","holdGate","arm","replay","control","local","rest","attributes","Object","keys","value","test","type","slice","toLowerCase","listener","addEventListener","removeEventListener","defineProperty","enumerable","get","pointerType","defaultPrevented","target","currentTarget","dispatchEvent","pointerId","clientX","clientY","relatedTarget"],"sources":["../../../../src/components/ui/tooltip/deferred-tooltip.tsx"],"sourcesContent":["import type { Accessor, JSX } from 'solid-js'\nimport { createSignal, onCleanup, splitProps, untrack } from 'solid-js'\nimport { isServer, spread } from 'solid-js/web'\nimport { callHandler } from '#lib/events'\nimport { acquireTooltipFocusGate, releaseTooltipFocusGate } from '#lib/tooltip-focus-gate'\n\ntype TriggerProps = {\n ref?: (element: HTMLElement) => void\n [key: string]: unknown\n}\n\nexport type DeferredTooltip = {\n /** True once the control has been hovered or focused: render the tooltip then. */\n armed: Accessor<boolean>\n /** Pass as the control's `ref`. */\n ref: (element: HTMLElement) => void\n /** Pass as the control's `onPointerEnter`. */\n onPointerEnter: (event: PointerEvent) => void\n /** Pass as the control's `onFocus`. */\n onFocus: (event: FocusEvent) => void\n /**\n * Pass to `TooltipTrigger as={...}`. It renders nothing: it hands the trigger's\n * handlers, state attributes and ref to the control that is already on screen.\n */\n Target: (props: TriggerProps) => JSX.Element\n}\n\n/**\n * A tooltip that costs nothing until it is wanted.\n *\n * Every tooltip trigger builds a Kobalte tooltip root, its popper wiring and a\n * focus-gate registration when it mounts, and almost none of them are ever\n * shown: a list or toolbar of tooltip controls paid for all of them up front.\n * With this, the control renders plain and the tooltip mounts the first time a\n * pointer enters it or keyboard focus reaches it.\n *\n * The control is never replaced. The trigger adopts the element already on\n * screen (its handlers go on as native listeners next to the control's own;\n * spreading them would take Solid's delegated slot and replace the control's\n * `onClick`), so mounting late moves no focus and drops no hover. The event\n * that armed the tooltip is replayed to the new trigger, so the tip opens on\n * the same timing as an eagerly mounted one; the control's own handlers do not\n * see the replay.\n *\n * The trigger never sets `type`, `aria-describedby` or children: the control\n * owns those, and points `aria-describedby` at the content's id while the tip\n * is open.\n *\n * The keyboard-focus gate is held for the control's lifetime, not from the\n * moment its tooltip mounts, so it sees the Tab that precedes a first focus.\n */\nexport function createDeferredTooltip(options: {\n enabled: Accessor<boolean>\n onPointerEnter?: Accessor<unknown>\n onFocus?: Accessor<unknown>\n}): DeferredTooltip {\n const [element, setElement] = createSignal<HTMLElement>()\n const [armed, setArmed] = createSignal(false)\n let replaying = false\n\n // Held only by a control that has a tooltip: a control without one needs no gate\n // and no effect. A tooltip added later takes the gate when it first arms.\n let holdsGate = false\n const holdGate = () => {\n if (holdsGate || isServer) return\n holdsGate = true\n acquireTooltipFocusGate()\n }\n if (untrack(options.enabled)) holdGate()\n onCleanup(() => {\n if (holdsGate) releaseTooltipFocusGate()\n })\n\n const arm = (replay: () => void) => {\n if (armed() || !options.enabled()) return\n holdGate()\n setArmed(true)\n replaying = true\n try {\n replay()\n } finally {\n replaying = false\n }\n }\n\n const Target = (props: TriggerProps) => {\n const control = element()\n if (!control) return null\n const [local, rest] = splitProps(props, ['ref', 'type', 'aria-describedby', 'children', 'as'])\n local.ref?.(control)\n const attributes: Record<string, unknown> = {}\n for (const key of Object.keys(rest)) {\n const value = rest[key]\n if (/^on[A-Z]/.test(key) && typeof value === 'function') {\n const type = key.slice(2).toLowerCase()\n const listener = value as EventListener\n control.addEventListener(type, listener)\n onCleanup(() => control.removeEventListener(type, listener))\n } else {\n Object.defineProperty(attributes, key, { enumerable: true, get: () => rest[key] })\n }\n }\n spread(control, attributes, false, true)\n return null\n }\n\n return {\n armed,\n ref: setElement,\n onPointerEnter(event) {\n if (replaying) return\n callHandler(options.onPointerEnter?.() as never, event as never)\n if (event.pointerType === 'touch' || event.defaultPrevented) return\n const target = event.currentTarget as HTMLElement\n arm(() =>\n target.dispatchEvent(\n new PointerEvent('pointerenter', {\n pointerId: event.pointerId,\n pointerType: event.pointerType,\n clientX: event.clientX,\n clientY: event.clientY,\n })\n )\n )\n },\n onFocus(event) {\n if (replaying) return\n callHandler(options.onFocus?.() as never, event as never)\n if (event.defaultPrevented) return\n const target = event.currentTarget as HTMLElement\n arm(() =>\n target.dispatchEvent(new FocusEvent('focus', { relatedTarget: event.relatedTarget }))\n )\n },\n Target,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAgBoB,sBAAsBC,SAIlB;CAClB,MAAM,CAACX,SAASa,cAAcvB,aAA0B;CAC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,IAAIW,WAAW;GACfnB,YAAYe,QAAQR,iBAAiB,GAAYC,KAAc;GAC/D,IAAIA,MAAMiC,gBAAgB,WAAWjC,MAAMkC,kBAAkB;GAC7D,MAAMC,SAASnC,MAAMoC;GACrBtB,UACEqB,OAAOE,cACL,IAAIpC,aAAa,gBAAgB;IAC/BqC,WAAWtC,MAAMsC;IACjBL,aAAajC,MAAMiC;IACnBM,SAASvC,MAAMuC;IACfC,SAASxC,MAAMwC;GACjB,CAAC,CACH,CACF;EACF;EACAtC,QAAQF,OAAO;GACb,IAAIW,WAAW;GACfnB,YAAYe,QAAQL,UAAU,GAAYF,KAAc;GACxD,IAAIA,MAAMkC,kBAAkB;GAC5B,MAAMC,SAASnC,MAAMoC;GACrBtB,UACEqB,OAAOE,cAAc,IAAIlC,WAAW,SAAS,EAAEsC,eAAezC,MAAMyC,cAAc,CAAC,CAAC,CACtF;EACF;EACArC;CACF;AACF"}
@@ -1,3 +1,4 @@
1
1
  export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TooltipContentProps, type TooltipProviderProps, type TooltipRootProps, } from './tooltip';
2
2
  export { createDeferredTooltip, type DeferredTooltip } from './deferred-tooltip';
3
+ export { LazyTooltip, type LazyTooltipProps, type LazyTooltipTrigger } from './lazy-tooltip';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,3 +1,4 @@
1
1
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
2
2
  import { createDeferredTooltip } from "./deferred-tooltip.js";
3
- export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, createDeferredTooltip };
3
+ import { LazyTooltip } from "./lazy-tooltip.js";
4
+ export { LazyTooltip, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, createDeferredTooltip };
@@ -0,0 +1,40 @@
1
+ import type { JSX } from 'solid-js';
2
+ import { type TooltipContentProps, type TooltipRootProps } from './tooltip';
3
+ export type LazyTooltipTrigger = {
4
+ /** Pass as the control's `ref`. */
5
+ ref: (element: HTMLElement) => void;
6
+ /** Pass as the control's `onPointerEnter`. */
7
+ onPointerEnter: (event: PointerEvent) => void;
8
+ /** Pass as the control's `onFocus`. */
9
+ onFocus: (event: FocusEvent) => void;
10
+ /** Pass as the control's `aria-describedby`: the tip's id while it is open. */
11
+ describedBy: () => string | undefined;
12
+ };
13
+ export type LazyTooltipProps = {
14
+ /** The tip. */
15
+ content: JSX.Element;
16
+ placement?: TooltipRootProps['placement'];
17
+ /** Extra props for the tooltip content (an icon, a class). */
18
+ contentProps?: Omit<TooltipContentProps, 'id' | 'children'>;
19
+ /** Renders the control once, wired to the trigger handlers it is given. */
20
+ children: (trigger: LazyTooltipTrigger) => JSX.Element;
21
+ };
22
+ /**
23
+ * A tooltip around a control that mounts on the control's first hover or focus.
24
+ *
25
+ * The packaged form of `createDeferredTooltip` for a control that always has a
26
+ * tip: a settings help button, a status chip, a rail mark. A page of them
27
+ * renders plain controls and builds a Kobalte tooltip only for the ones a
28
+ * pointer or keyboard actually reaches.
29
+ *
30
+ * ```tsx
31
+ * <LazyTooltip content="Saved locally">
32
+ * {(tip) => (
33
+ * <button ref={tip.ref} onPointerEnter={tip.onPointerEnter} onFocus={tip.onFocus}
34
+ * aria-describedby={tip.describedBy()}>…</button>
35
+ * )}
36
+ * </LazyTooltip>
37
+ * ```
38
+ */
39
+ export declare function LazyTooltip(props: LazyTooltipProps): JSX.Element;
40
+ //# sourceMappingURL=lazy-tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tooltip/lazy-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAGnC,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,WAAW,CAAA;AAElB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mCAAmC;IACnC,GAAG,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAA;IACnC,8CAA8C;IAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IAC7C,uCAAuC;IACvC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACpC,+EAA+E;IAC/E,WAAW,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe;IACf,OAAO,EAAE,GAAG,CAAC,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,8DAA8D;IAC9D,YAAY,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,UAAU,CAAC,CAAA;IAC3D,2EAA2E;IAC3E,QAAQ,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,GAAG,CAAC,OAAO,CAAA;CACvD,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAuBlD"}
@@ -0,0 +1,61 @@
1
+ import { createDeferredTooltip } from "./deferred-tooltip.js";
2
+ import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.js";
3
+ import { createComponent, mergeProps } from "solid-js/web";
4
+ import { Show, createSignal, createUniqueId } from "solid-js";
5
+ // src/components/ui/tooltip/lazy-tooltip.tsx
6
+ /**
7
+ * A tooltip around a control that mounts on the control's first hover or focus.
8
+ *
9
+ * The packaged form of `createDeferredTooltip` for a control that always has a
10
+ * tip: a settings help button, a status chip, a rail mark. A page of them
11
+ * renders plain controls and builds a Kobalte tooltip only for the ones a
12
+ * pointer or keyboard actually reaches.
13
+ *
14
+ * ```tsx
15
+ * <LazyTooltip content="Saved locally">
16
+ * {(tip) => (
17
+ * <button ref={tip.ref} onPointerEnter={tip.onPointerEnter} onFocus={tip.onFocus}
18
+ * aria-describedby={tip.describedBy()}>…</button>
19
+ * )}
20
+ * </LazyTooltip>
21
+ * ```
22
+ */
23
+ function LazyTooltip(props) {
24
+ const [open, setOpen] = createSignal(false);
25
+ const id = `lazy-tooltip-${createUniqueId()}`;
26
+ const deferred = createDeferredTooltip({ enabled: () => true });
27
+ return [props.children({
28
+ ref: deferred.ref,
29
+ onPointerEnter: deferred.onPointerEnter,
30
+ onFocus: deferred.onFocus,
31
+ describedBy: () => open() ? id : void 0
32
+ }), createComponent(Show, {
33
+ get when() {
34
+ return deferred.armed();
35
+ },
36
+ get children() {
37
+ return createComponent(Tooltip, {
38
+ get placement() {
39
+ return props.placement;
40
+ },
41
+ get open() {
42
+ return open();
43
+ },
44
+ onOpenChange: setOpen,
45
+ get children() {
46
+ return [createComponent(TooltipTrigger, { get as() {
47
+ return deferred.Target;
48
+ } }), createComponent(TooltipContent, mergeProps(() => props.contentProps, {
49
+ id,
50
+ get children() {
51
+ return props.content;
52
+ }
53
+ }))];
54
+ }
55
+ });
56
+ }
57
+ })];
58
+ }
59
+ export { LazyTooltip };
60
+
61
+ //# sourceMappingURL=lazy-tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-tooltip.js","names":["createSignal","createUniqueId","Show","createDeferredTooltip","Tooltip","TooltipContent","TooltipTrigger","ref","onPointerEnter","onFocus","describedBy","content","placement","contentProps","children","LazyTooltip","props","open","setOpen","id","deferred","enabled","control","undefined","_$createComponent","when","armed","onOpenChange","as","Target","_$mergeProps"],"sources":["../../../../src/components/ui/tooltip/lazy-tooltip.tsx"],"sourcesContent":["import type { JSX } from 'solid-js'\nimport { createSignal, createUniqueId, Show } from 'solid-js'\nimport { createDeferredTooltip } from './deferred-tooltip'\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n type TooltipContentProps,\n type TooltipRootProps,\n} from './tooltip'\n\nexport type LazyTooltipTrigger = {\n /** Pass as the control's `ref`. */\n ref: (element: HTMLElement) => void\n /** Pass as the control's `onPointerEnter`. */\n onPointerEnter: (event: PointerEvent) => void\n /** Pass as the control's `onFocus`. */\n onFocus: (event: FocusEvent) => void\n /** Pass as the control's `aria-describedby`: the tip's id while it is open. */\n describedBy: () => string | undefined\n}\n\nexport type LazyTooltipProps = {\n /** The tip. */\n content: JSX.Element\n placement?: TooltipRootProps['placement']\n /** Extra props for the tooltip content (an icon, a class). */\n contentProps?: Omit<TooltipContentProps, 'id' | 'children'>\n /** Renders the control once, wired to the trigger handlers it is given. */\n children: (trigger: LazyTooltipTrigger) => JSX.Element\n}\n\n/**\n * A tooltip around a control that mounts on the control's first hover or focus.\n *\n * The packaged form of `createDeferredTooltip` for a control that always has a\n * tip: a settings help button, a status chip, a rail mark. A page of them\n * renders plain controls and builds a Kobalte tooltip only for the ones a\n * pointer or keyboard actually reaches.\n *\n * ```tsx\n * <LazyTooltip content=\"Saved locally\">\n * {(tip) => (\n * <button ref={tip.ref} onPointerEnter={tip.onPointerEnter} onFocus={tip.onFocus}\n * aria-describedby={tip.describedBy()}>…</button>\n * )}\n * </LazyTooltip>\n * ```\n */\nexport function LazyTooltip(props: LazyTooltipProps) {\n const [open, setOpen] = createSignal(false)\n const id = `lazy-tooltip-${createUniqueId()}`\n const deferred = createDeferredTooltip({ enabled: () => true })\n const control = props.children({\n ref: deferred.ref,\n onPointerEnter: deferred.onPointerEnter,\n onFocus: deferred.onFocus,\n describedBy: () => (open() ? id : undefined),\n })\n return (\n <>\n {control}\n <Show when={deferred.armed()}>\n <Tooltip placement={props.placement} open={open()} onOpenChange={setOpen}>\n <TooltipTrigger as={deferred.Target} />\n <TooltipContent {...props.contentProps} id={id}>\n {props.content}\n </TooltipContent>\n </Tooltip>\n </Show>\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiDA,SAAgBe,YAAYC,OAAyB;CACnD,MAAM,CAACC,MAAMC,WAAWlB,aAAa,KAAK;CAC1C,MAAMmB,KAAK,gBAAgBlB,eAAe;CAC1C,MAAMmB,WAAWjB,sBAAsB,EAAEkB,eAAe,KAAK,CAAC;CAO9D,OAAA,CANgBL,MAAMF,SAAS;EAC7BP,KAAKa,SAASb;EACdC,gBAAgBY,SAASZ;EACzBC,SAASW,SAASX;EAClBC,mBAAoBO,KAAK,IAAIE,KAAKI,KAAAA;CACpC,CAGKD,GAAOE,gBACPtB,MAAI;EAAA,IAACuB,OAAI;GAAA,OAAEL,SAASM,MAAM;EAAC;EAAA,IAAAZ,WAAA;GAAA,OAAAU,gBACzBpB,SAAO;IAAA,IAACQ,YAAS;KAAA,OAAEI,MAAMJ;IAAS;IAAA,IAAEK,OAAI;KAAA,OAAEA,KAAK;IAAC;IAAEU,cAAcT;IAAO,IAAAJ,WAAA;KAAA,OAAA,CAAAU,gBACrElB,gBAAc,EAAA,IAACsB,KAAE;MAAA,OAAER,SAASS;KAAM,EAAA,CAAA,GAAAL,gBAClCnB,gBAAcyB,iBAAKd,M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