@adea-ai/ui 0.153.0 → 0.154.1

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 (581) hide show
  1. package/README.md +10 -10
  2. package/dist/NOTICE +10 -1
  3. package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
  4. package/dist/components/composites/about-dialog/about-dialog.js +3 -1
  5. package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
  6. package/dist/components/composites/accent-picker/accent-picker.js +20 -9
  7. package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
  8. package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
  9. package/dist/components/composites/account-menu/account-menu.js +20 -10
  10. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  11. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  12. package/dist/components/composites/action-button/action-button.js +37 -24
  13. package/dist/components/composites/action-button/action-button.js.map +1 -1
  14. package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
  15. package/dist/components/composites/appearance-editor/appearance-choices.js +7 -3
  16. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  17. package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
  18. package/dist/components/composites/appearance-editor/appearance-editor.js +11 -6
  19. package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
  20. package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
  21. package/dist/components/composites/appearance-editor/appearance-rows.js +8 -3
  22. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  23. package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
  24. package/dist/components/composites/appearance-editor/font-settings-group.js +8 -4
  25. package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
  26. package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts.map +1 -1
  27. package/dist/components/composites/catalog-browser/catalog-browser-group.js +7 -3
  28. package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
  29. package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
  30. package/dist/components/composites/catalog-browser/catalog-browser.js +8 -4
  31. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  32. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts.map +1 -1
  33. package/dist/components/composites/chain-of-thought/chain-of-thought.js +3 -1
  34. package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
  35. package/dist/components/composites/chat/chat.d.ts.map +1 -1
  36. package/dist/components/composites/chat/chat.js +5 -1
  37. package/dist/components/composites/chat/chat.js.map +1 -1
  38. package/dist/components/composites/checkpoint/checkpoint.d.ts.map +1 -1
  39. package/dist/components/composites/checkpoint/checkpoint.js +3 -1
  40. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  41. package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
  42. package/dist/components/composites/confirmation/confirmation.js +11 -5
  43. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  44. package/dist/components/composites/context/context.d.ts.map +1 -1
  45. package/dist/components/composites/context/context.js +7 -4
  46. package/dist/components/composites/context/context.js.map +1 -1
  47. package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
  48. package/dist/components/composites/file-tree/file-tree.js +7 -3
  49. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  50. package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
  51. package/dist/components/composites/help-center/help-center.js +3 -1
  52. package/dist/components/composites/help-center/help-center.js.map +1 -1
  53. package/dist/components/composites/icon-picker/icon-picker.d.ts +2 -2
  54. package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
  55. package/dist/components/composites/icon-picker/icon-picker.js +77 -71
  56. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  57. package/dist/components/composites/icon-picker/shell-icons.d.ts.map +1 -1
  58. package/dist/components/composites/icon-picker/shell-icons.js +119 -59
  59. package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
  60. package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
  61. package/dist/components/composites/inline-citation/inline-citation.js +5 -2
  62. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  63. package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
  64. package/dist/components/composites/list-row/list-row-control.js +3 -4
  65. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  66. package/dist/components/composites/message-scroller/message-scroller.d.ts.map +1 -1
  67. package/dist/components/composites/message-scroller/message-scroller.js +5 -2
  68. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  69. package/dist/components/composites/model-selector/model-selector.d.ts +15 -1
  70. package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
  71. package/dist/components/composites/model-selector/model-selector.js +271 -33
  72. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  73. package/dist/components/composites/plan/plan.d.ts.map +1 -1
  74. package/dist/components/composites/plan/plan.js +3 -1
  75. package/dist/components/composites/plan/plan.js.map +1 -1
  76. package/dist/components/composites/queue/queue.d.ts.map +1 -1
  77. package/dist/components/composites/queue/queue.js +11 -5
  78. package/dist/components/composites/queue/queue.js.map +1 -1
  79. package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
  80. package/dist/components/composites/reasoning/reasoning.js +3 -1
  81. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  82. package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -1
  83. package/dist/components/composites/scene-controls/scene-controls.js +14 -7
  84. package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
  85. package/dist/components/composites/settings/settings.d.ts.map +1 -1
  86. package/dist/components/composites/settings/settings.js +77 -67
  87. package/dist/components/composites/settings/settings.js.map +1 -1
  88. package/dist/components/composites/sources/sources.d.ts.map +1 -1
  89. package/dist/components/composites/sources/sources.js +39 -39
  90. package/dist/components/composites/sources/sources.js.map +1 -1
  91. package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
  92. package/dist/components/composites/stack-trace/stack-trace.js +9 -4
  93. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  94. package/dist/components/composites/stat/stat.d.ts.map +1 -1
  95. package/dist/components/composites/stat/stat.js +4 -1
  96. package/dist/components/composites/stat/stat.js.map +1 -1
  97. package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
  98. package/dist/components/composites/subagent/subagent.js +3 -1
  99. package/dist/components/composites/subagent/subagent.js.map +1 -1
  100. package/dist/components/composites/task/task.d.ts.map +1 -1
  101. package/dist/components/composites/task/task.js +3 -1
  102. package/dist/components/composites/task/task.js.map +1 -1
  103. package/dist/components/composites/terminal/ansi.d.ts.map +1 -1
  104. package/dist/components/composites/terminal/ansi.js +16 -0
  105. package/dist/components/composites/terminal/ansi.js.map +1 -1
  106. package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
  107. package/dist/components/composites/terminal/terminal.js +15 -7
  108. package/dist/components/composites/terminal/terminal.js.map +1 -1
  109. package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
  110. package/dist/components/composites/test-results/test-results.js +15 -7
  111. package/dist/components/composites/test-results/test-results.js.map +1 -1
  112. package/dist/components/composites/tool/tool.d.ts.map +1 -1
  113. package/dist/components/composites/tool/tool.js +3 -1
  114. package/dist/components/composites/tool/tool.js.map +1 -1
  115. package/dist/components/composites/tree/tree.d.ts.map +1 -1
  116. package/dist/components/composites/tree/tree.js +3 -1
  117. package/dist/components/composites/tree/tree.js.map +1 -1
  118. package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
  119. package/dist/components/composites/update-dialog/update-dialog.js +34 -24
  120. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  121. package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
  122. package/dist/components/composites/workspace-mark/workspace-mark.js +17 -12
  123. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  124. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts.map +1 -1
  125. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +5 -2
  126. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
  127. package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
  128. package/dist/components/composites/workspace-switcher/workspace-switcher.js +9 -4
  129. package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
  130. package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
  131. package/dist/components/conversation/busy-send-button.js +9 -5
  132. package/dist/components/conversation/busy-send-button.js.map +1 -1
  133. package/dist/components/conversation/conversation-avatar.d.ts.map +1 -1
  134. package/dist/components/conversation/conversation-avatar.js +6 -3
  135. package/dist/components/conversation/conversation-avatar.js.map +1 -1
  136. package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
  137. package/dist/components/conversation/conversation-surface.js +3 -1
  138. package/dist/components/conversation/conversation-surface.js.map +1 -1
  139. package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
  140. package/dist/components/conversation/internal/chat-composer-shell.js +9 -4
  141. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  142. package/dist/components/conversation/message-composer.d.ts.map +1 -1
  143. package/dist/components/conversation/message-composer.js +9 -4
  144. package/dist/components/conversation/message-composer.js.map +1 -1
  145. package/dist/components/conversation/message-row.d.ts.map +1 -1
  146. package/dist/components/conversation/message-row.js +11 -5
  147. package/dist/components/conversation/message-row.js.map +1 -1
  148. package/dist/components/conversation/thread-panel.d.ts.map +1 -1
  149. package/dist/components/conversation/thread-panel.js +3 -1
  150. package/dist/components/conversation/thread-panel.js.map +1 -1
  151. package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
  152. package/dist/components/conversation/transcript-composition.js +3 -1
  153. package/dist/components/conversation/transcript-composition.js.map +1 -1
  154. package/dist/components/layout/floating-preview/floating-preview.d.ts.map +1 -1
  155. package/dist/components/layout/floating-preview/floating-preview.js +5 -2
  156. package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
  157. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
  158. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +3 -1
  159. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  160. package/dist/components/layout/shell-rail/shell-rail.d.ts.map +1 -1
  161. package/dist/components/layout/shell-rail/shell-rail.js +3 -1
  162. package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
  163. package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
  164. package/dist/components/layout/side-rail/side-rail.js +46 -42
  165. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  166. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
  167. package/dist/components/layout/sidebar-nav/sidebar-nav.js +3 -1
  168. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  169. package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
  170. package/dist/components/layout/split-layout/split-layout.js +5 -2
  171. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  172. package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
  173. package/dist/components/layout/top-bar/top-bar.js +16 -13
  174. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  175. package/dist/components/theme/appearance-panel.d.ts.map +1 -1
  176. package/dist/components/theme/appearance-panel.js +3 -1
  177. package/dist/components/theme/appearance-panel.js.map +1 -1
  178. package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
  179. package/dist/components/theme/theme-mode-toggle.js +6 -3
  180. package/dist/components/theme/theme-mode-toggle.js.map +1 -1
  181. package/dist/components/theme/theme-toggle.d.ts.map +1 -1
  182. package/dist/components/theme/theme-toggle.js +6 -3
  183. package/dist/components/theme/theme-toggle.js.map +1 -1
  184. package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
  185. package/dist/components/ui/accordion/accordion.js +3 -1
  186. package/dist/components/ui/accordion/accordion.js.map +1 -1
  187. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  188. package/dist/components/ui/alert/alert.js +15 -9
  189. package/dist/components/ui/alert/alert.js.map +1 -1
  190. package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -1
  191. package/dist/components/ui/annotation-surface/annotation-surface.js +5 -4
  192. package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
  193. package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
  194. package/dist/components/ui/attachment/attachment.js +18 -9
  195. package/dist/components/ui/attachment/attachment.js.map +1 -1
  196. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  197. package/dist/components/ui/badge/badge.js +30 -11
  198. package/dist/components/ui/badge/badge.js.map +1 -1
  199. package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
  200. package/dist/components/ui/breadcrumb/breadcrumb.js +5 -2
  201. package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
  202. package/dist/components/ui/button/button.d.ts.map +1 -1
  203. package/dist/components/ui/button/button.js +37 -13
  204. package/dist/components/ui/button/button.js.map +1 -1
  205. package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
  206. package/dist/components/ui/calendar/calendar.js +5 -2
  207. package/dist/components/ui/calendar/calendar.js.map +1 -1
  208. package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
  209. package/dist/components/ui/carousel/carousel.js +12 -6
  210. package/dist/components/ui/carousel/carousel.js.map +1 -1
  211. package/dist/components/ui/checkbox/checkbox.d.ts +13 -0
  212. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  213. package/dist/components/ui/checkbox/checkbox.js +296 -21
  214. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  215. package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
  216. package/dist/components/ui/code-block/code-block.js +9 -6
  217. package/dist/components/ui/code-block/code-block.js.map +1 -1
  218. package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
  219. package/dist/components/ui/combobox/combobox.js +8 -11
  220. package/dist/components/ui/combobox/combobox.js.map +1 -1
  221. package/dist/components/ui/command/command.d.ts.map +1 -1
  222. package/dist/components/ui/command/command.js +4 -2
  223. package/dist/components/ui/command/command.js.map +1 -1
  224. package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
  225. package/dist/components/ui/detail-panel/detail-panel.js +3 -1
  226. package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
  227. package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
  228. package/dist/components/ui/dialog/dialog-layer.js +10 -10
  229. package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
  230. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  231. package/dist/components/ui/dialog/dialog.js +3 -1
  232. package/dist/components/ui/dialog/dialog.js.map +1 -1
  233. package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -1
  234. package/dist/components/ui/dropdown-menu/menu-parts.js +7 -3
  235. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
  236. package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
  237. package/dist/components/ui/empty/empty-state.js +3 -1
  238. package/dist/components/ui/empty/empty-state.js.map +1 -1
  239. package/dist/components/ui/field/field.d.ts.map +1 -1
  240. package/dist/components/ui/field/field.js +12 -6
  241. package/dist/components/ui/field/field.js.map +1 -1
  242. package/dist/components/ui/input/input-control.d.ts +2 -0
  243. package/dist/components/ui/input/input-control.d.ts.map +1 -1
  244. package/dist/components/ui/input/input-control.js +24 -6
  245. package/dist/components/ui/input/input-control.js.map +1 -1
  246. package/dist/components/ui/input/input.d.ts.map +1 -1
  247. package/dist/components/ui/input/input.js +47 -48
  248. package/dist/components/ui/input/input.js.map +1 -1
  249. package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
  250. package/dist/components/ui/input-group/input-group.js +1 -8
  251. package/dist/components/ui/input-group/input-group.js.map +1 -1
  252. package/dist/components/ui/kbd/kbd.d.ts +23 -10
  253. package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
  254. package/dist/components/ui/kbd/kbd.js +42 -11
  255. package/dist/components/ui/kbd/kbd.js.map +1 -1
  256. package/dist/components/ui/message/index.d.ts +1 -1
  257. package/dist/components/ui/message/index.d.ts.map +1 -1
  258. package/dist/components/ui/message/index.js +2 -2
  259. package/dist/components/ui/message/message.d.ts.map +1 -1
  260. package/dist/components/ui/message/message.js +5 -3
  261. package/dist/components/ui/message/message.js.map +1 -1
  262. package/dist/components/ui/message/parse-message-text.d.ts +32 -0
  263. package/dist/components/ui/message/parse-message-text.d.ts.map +1 -1
  264. package/dist/components/ui/message/parse-message-text.js +63 -3
  265. package/dist/components/ui/message/parse-message-text.js.map +1 -1
  266. package/dist/components/ui/native-select/native-select.d.ts.map +1 -1
  267. package/dist/components/ui/native-select/native-select.js +4 -9
  268. package/dist/components/ui/native-select/native-select.js.map +1 -1
  269. package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
  270. package/dist/components/ui/navigation-menu/navigation-menu.js +3 -1
  271. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  272. package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
  273. package/dist/components/ui/pagination/pagination.js +7 -3
  274. package/dist/components/ui/pagination/pagination.js.map +1 -1
  275. package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
  276. package/dist/components/ui/questionnaire/questionnaire.js +9 -4
  277. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  278. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  279. package/dist/components/ui/radio-group/radio-group.js +4 -9
  280. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  281. package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
  282. package/dist/components/ui/resizable/resizable.js +3 -1
  283. package/dist/components/ui/resizable/resizable.js.map +1 -1
  284. package/dist/components/ui/select/select.d.ts.map +1 -1
  285. package/dist/components/ui/select/select.js +7 -3
  286. package/dist/components/ui/select/select.js.map +1 -1
  287. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  288. package/dist/components/ui/sheet/sheet.js +3 -1
  289. package/dist/components/ui/sheet/sheet.js.map +1 -1
  290. package/dist/components/ui/spinner/spinner.d.ts.map +1 -1
  291. package/dist/components/ui/spinner/spinner.js +3 -1
  292. package/dist/components/ui/spinner/spinner.js.map +1 -1
  293. package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
  294. package/dist/components/ui/status-chip/status-chip.js +35 -30
  295. package/dist/components/ui/status-chip/status-chip.js.map +1 -1
  296. package/dist/components/ui/switch/switch.d.ts +7 -0
  297. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  298. package/dist/components/ui/switch/switch.js +255 -17
  299. package/dist/components/ui/switch/switch.js.map +1 -1
  300. package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
  301. package/dist/components/ui/textarea/textarea.js +1 -8
  302. package/dist/components/ui/textarea/textarea.js.map +1 -1
  303. package/dist/components/ui/toast/toast.d.ts.map +1 -1
  304. package/dist/components/ui/toast/toast.js +3 -1
  305. package/dist/components/ui/toast/toast.js.map +1 -1
  306. package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -1
  307. package/dist/components/ui/tooltip/deferred-tooltip.js +10 -4
  308. package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
  309. package/dist/components/ui/tooltip/index.d.ts +1 -0
  310. package/dist/components/ui/tooltip/index.d.ts.map +1 -1
  311. package/dist/components/ui/tooltip/index.js +2 -1
  312. package/dist/components/ui/tooltip/lazy-tooltip.d.ts +40 -0
  313. package/dist/components/ui/tooltip/lazy-tooltip.d.ts.map +1 -0
  314. package/dist/components/ui/tooltip/lazy-tooltip.js +61 -0
  315. package/dist/components/ui/tooltip/lazy-tooltip.js.map +1 -0
  316. package/dist/components/ui/trace/trace.d.ts.map +1 -1
  317. package/dist/components/ui/trace/trace.js +82 -68
  318. package/dist/components/ui/trace/trace.js.map +1 -1
  319. package/dist/components/ui/typography/typography.d.ts +1 -1
  320. package/dist/components/ui/typography/typography.d.ts.map +1 -1
  321. package/dist/components/ui/typography/typography.js +5 -6
  322. package/dist/components/ui/typography/typography.js.map +1 -1
  323. package/dist/index.js +3 -2
  324. package/dist/lib/clipboard.d.ts.map +1 -1
  325. package/dist/lib/clipboard.js +3 -0
  326. package/dist/lib/clipboard.js.map +1 -1
  327. package/dist/lib/fast-icon.d.ts +18 -0
  328. package/dist/lib/fast-icon.d.ts.map +1 -0
  329. package/dist/lib/fast-icon.js +75 -0
  330. package/dist/lib/fast-icon.js.map +1 -0
  331. package/dist/lib/form-field.d.ts +1 -1
  332. package/dist/lib/form-field.js +3 -1
  333. package/dist/lib/form-field.js.map +1 -1
  334. package/dist/lib/observe-resize.d.ts +14 -0
  335. package/dist/lib/observe-resize.d.ts.map +1 -0
  336. package/dist/lib/observe-resize.js +19 -0
  337. package/dist/lib/observe-resize.js.map +1 -0
  338. package/dist/lib/overlay.d.ts +1 -1
  339. package/dist/lib/overlay.d.ts.map +1 -1
  340. package/dist/lib/overlay.js +1 -1
  341. package/dist/lib/overlay.js.map +1 -1
  342. package/dist/lint/index.d.ts +1 -0
  343. package/dist/lint/index.d.ts.map +1 -1
  344. package/dist/lint.js +251 -118
  345. package/dist/lint.js.map +1 -1
  346. package/dist/r/action-button.json +3 -1
  347. package/dist/r/floating-preview.json +2 -1
  348. package/dist/r/icon-picker.json +0 -1
  349. package/dist/r/lib.json +10 -0
  350. package/dist/r/model-selector.json +1 -0
  351. package/dist/r/plan.json +2 -1
  352. package/dist/r/queue.json +2 -1
  353. package/dist/r/registry.json +33 -9
  354. package/dist/r/scene-controls.json +2 -1
  355. package/dist/r/side-rail.json +1 -0
  356. package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +5 -1
  357. package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +22 -17
  358. package/dist/r/src/components/composites/account-menu/account-menu.tsx +21 -9
  359. package/dist/r/src/components/composites/action-button/action-button.tsx +38 -21
  360. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +7 -1
  361. package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +13 -1
  362. package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +13 -1
  363. package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +13 -1
  364. package/dist/r/src/components/composites/catalog-browser/catalog-browser-group.tsx +11 -1
  365. package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +11 -1
  366. package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +5 -1
  367. package/dist/r/src/components/composites/chat/chat.tsx +11 -1
  368. package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +5 -1
  369. package/dist/r/src/components/composites/confirmation/confirmation.tsx +15 -1
  370. package/dist/r/src/components/composites/context/context.tsx +9 -1
  371. package/dist/r/src/components/composites/file-tree/file-tree.tsx +11 -1
  372. package/dist/r/src/components/composites/help-center/help-center.tsx +5 -1
  373. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +59 -31
  374. package/dist/r/src/components/composites/icon-picker/shell-icons.ts +121 -59
  375. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +6 -1
  376. package/dist/r/src/components/composites/list-row/list-row-control.tsx +7 -5
  377. package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +6 -1
  378. package/dist/r/src/components/composites/model-selector/model-selector.tsx +197 -11
  379. package/dist/r/src/components/composites/plan/plan.tsx +5 -1
  380. package/dist/r/src/components/composites/queue/queue.tsx +15 -1
  381. package/dist/r/src/components/composites/reasoning/reasoning.tsx +5 -1
  382. package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +17 -1
  383. package/dist/r/src/components/composites/settings/settings.tsx +23 -14
  384. package/dist/r/src/components/composites/sources/sources.tsx +27 -20
  385. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +13 -1
  386. package/dist/r/src/components/composites/stat/stat.tsx +9 -1
  387. package/dist/r/src/components/composites/subagent/subagent.tsx +5 -1
  388. package/dist/r/src/components/composites/task/task.tsx +5 -1
  389. package/dist/r/src/components/composites/terminal/ansi.ts +18 -0
  390. package/dist/r/src/components/composites/terminal/terminal.tsx +17 -7
  391. package/dist/r/src/components/composites/test-results/test-results.tsx +17 -7
  392. package/dist/r/src/components/composites/tool/tool.tsx +5 -1
  393. package/dist/r/src/components/composites/tree/tree.tsx +5 -1
  394. package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +35 -15
  395. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +14 -7
  396. package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +6 -1
  397. package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +13 -1
  398. package/dist/r/src/components/conversation/busy-send-button.tsx +11 -1
  399. package/dist/r/src/components/conversation/conversation-avatar.tsx +7 -1
  400. package/dist/r/src/components/conversation/conversation-surface.tsx +5 -1
  401. package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +13 -1
  402. package/dist/r/src/components/conversation/message-composer.tsx +13 -1
  403. package/dist/r/src/components/conversation/message-row.tsx +15 -1
  404. package/dist/r/src/components/conversation/thread-panel.tsx +5 -1
  405. package/dist/r/src/components/conversation/transcript-composition.tsx +5 -1
  406. package/dist/r/src/components/layout/floating-preview/floating-preview.tsx +6 -1
  407. package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +5 -1
  408. package/dist/r/src/components/layout/shell-rail/shell-rail.tsx +5 -1
  409. package/dist/r/src/components/layout/side-rail/side-rail.tsx +16 -19
  410. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +5 -1
  411. package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -1
  412. package/dist/r/src/components/layout/top-bar/top-bar.tsx +8 -8
  413. package/dist/r/src/components/theme/appearance-panel.tsx +6 -1
  414. package/dist/r/src/components/theme/theme-mode-toggle.tsx +7 -1
  415. package/dist/r/src/components/theme/theme-toggle.tsx +7 -1
  416. package/dist/r/src/components/ui/accordion/accordion.tsx +5 -1
  417. package/dist/r/src/components/ui/alert/alert.tsx +20 -3
  418. package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +6 -3
  419. package/dist/r/src/components/ui/attachment/attachment.tsx +19 -8
  420. package/dist/r/src/components/ui/badge/badge.tsx +24 -8
  421. package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +9 -1
  422. package/dist/r/src/components/ui/button/button.tsx +47 -16
  423. package/dist/r/src/components/ui/calendar/calendar.tsx +6 -1
  424. package/dist/r/src/components/ui/carousel/carousel.tsx +15 -5
  425. package/dist/r/src/components/ui/checkbox/checkbox.tsx +260 -22
  426. package/dist/r/src/components/ui/code-block/code-block.tsx +11 -5
  427. package/dist/r/src/components/ui/combobox/combobox.tsx +8 -9
  428. package/dist/r/src/components/ui/command/command.tsx +8 -4
  429. package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -1
  430. package/dist/r/src/components/ui/dialog/dialog-layer.tsx +16 -18
  431. package/dist/r/src/components/ui/dialog/dialog.tsx +5 -1
  432. package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +11 -1
  433. package/dist/r/src/components/ui/empty/empty-state.tsx +5 -1
  434. package/dist/r/src/components/ui/field/field.tsx +14 -5
  435. package/dist/r/src/components/ui/input/input-control.tsx +28 -19
  436. package/dist/r/src/components/ui/input/input.tsx +9 -12
  437. package/dist/r/src/components/ui/input-group/input-group.tsx +1 -8
  438. package/dist/r/src/components/ui/kbd/kbd.tsx +53 -12
  439. package/dist/r/src/components/ui/message/index.ts +3 -0
  440. package/dist/r/src/components/ui/message/message.tsx +11 -2
  441. package/dist/r/src/components/ui/message/parse-message-text.ts +94 -2
  442. package/dist/r/src/components/ui/native-select/native-select.tsx +6 -9
  443. package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -1
  444. package/dist/r/src/components/ui/pagination/pagination.tsx +11 -1
  445. package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +13 -1
  446. package/dist/r/src/components/ui/radio-group/radio-group.tsx +6 -9
  447. package/dist/r/src/components/ui/resizable/resizable.tsx +5 -1
  448. package/dist/r/src/components/ui/select/select.tsx +11 -1
  449. package/dist/r/src/components/ui/sheet/sheet.tsx +5 -1
  450. package/dist/r/src/components/ui/spinner/spinner.tsx +5 -1
  451. package/dist/r/src/components/ui/status-chip/status-chip.tsx +14 -7
  452. package/dist/r/src/components/ui/switch/switch.tsx +235 -28
  453. package/dist/r/src/components/ui/textarea/textarea.tsx +1 -8
  454. package/dist/r/src/components/ui/toast/toast.tsx +5 -1
  455. package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +14 -8
  456. package/dist/r/src/components/ui/tooltip/index.ts +1 -0
  457. package/dist/r/src/components/ui/tooltip/lazy-tooltip.tsx +73 -0
  458. package/dist/r/src/components/ui/trace/trace.tsx +61 -28
  459. package/dist/r/src/components/ui/typography/typography.tsx +6 -5
  460. package/dist/r/src/lib/clipboard.ts +4 -0
  461. package/dist/r/src/lib/fast-icon.ts +88 -0
  462. package/dist/r/src/lib/form-field.ts +7 -7
  463. package/dist/r/src/lib/observe-resize.ts +28 -0
  464. package/dist/r/src/lib/overlay.ts +1 -1
  465. package/dist/r/subagent.json +2 -1
  466. package/dist/r/tool.json +2 -1
  467. package/dist/r/tooltip.json +5 -0
  468. package/dist/r/top-bar.json +1 -0
  469. package/dist/r/trace.json +0 -1
  470. package/package.json +1 -1
  471. package/registry.json +33 -9
  472. package/src/components/composites/about-dialog/about-dialog.tsx +5 -1
  473. package/src/components/composites/accent-picker/accent-picker.tsx +22 -17
  474. package/src/components/composites/account-menu/account-menu.tsx +21 -9
  475. package/src/components/composites/action-button/action-button.tsx +38 -21
  476. package/src/components/composites/appearance-editor/appearance-choices.tsx +7 -1
  477. package/src/components/composites/appearance-editor/appearance-editor.tsx +13 -1
  478. package/src/components/composites/appearance-editor/appearance-rows.tsx +13 -1
  479. package/src/components/composites/appearance-editor/font-settings-group.tsx +13 -1
  480. package/src/components/composites/catalog-browser/catalog-browser-group.tsx +11 -1
  481. package/src/components/composites/catalog-browser/catalog-browser.tsx +11 -1
  482. package/src/components/composites/chain-of-thought/chain-of-thought.tsx +5 -1
  483. package/src/components/composites/chat/chat.tsx +11 -1
  484. package/src/components/composites/checkpoint/checkpoint.tsx +5 -1
  485. package/src/components/composites/confirmation/confirmation.tsx +15 -1
  486. package/src/components/composites/context/context.tsx +9 -1
  487. package/src/components/composites/file-tree/file-tree.tsx +11 -1
  488. package/src/components/composites/help-center/help-center.tsx +5 -1
  489. package/src/components/composites/icon-picker/icon-picker.tsx +59 -31
  490. package/src/components/composites/icon-picker/shell-icons.ts +121 -59
  491. package/src/components/composites/inline-citation/inline-citation.tsx +6 -1
  492. package/src/components/composites/list-row/list-row-control.tsx +7 -5
  493. package/src/components/composites/message-scroller/message-scroller.tsx +6 -1
  494. package/src/components/composites/model-selector/model-selector.tsx +197 -11
  495. package/src/components/composites/plan/plan.tsx +5 -1
  496. package/src/components/composites/queue/queue.tsx +15 -1
  497. package/src/components/composites/reasoning/reasoning.tsx +5 -1
  498. package/src/components/composites/scene-controls/scene-controls.tsx +17 -1
  499. package/src/components/composites/settings/settings.tsx +23 -14
  500. package/src/components/composites/sources/sources.tsx +27 -20
  501. package/src/components/composites/stack-trace/stack-trace.tsx +13 -1
  502. package/src/components/composites/stat/stat.tsx +9 -1
  503. package/src/components/composites/subagent/subagent.tsx +5 -1
  504. package/src/components/composites/task/task.tsx +5 -1
  505. package/src/components/composites/terminal/ansi.ts +18 -0
  506. package/src/components/composites/terminal/terminal.tsx +17 -7
  507. package/src/components/composites/test-results/test-results.tsx +17 -7
  508. package/src/components/composites/tool/tool.tsx +5 -1
  509. package/src/components/composites/tree/tree.tsx +5 -1
  510. package/src/components/composites/update-dialog/update-dialog.tsx +35 -15
  511. package/src/components/composites/workspace-mark/workspace-mark.tsx +14 -7
  512. package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +6 -1
  513. package/src/components/composites/workspace-switcher/workspace-switcher.tsx +13 -1
  514. package/src/components/conversation/busy-send-button.tsx +11 -1
  515. package/src/components/conversation/conversation-avatar.tsx +7 -1
  516. package/src/components/conversation/conversation-surface.tsx +5 -1
  517. package/src/components/conversation/internal/chat-composer-shell.tsx +13 -1
  518. package/src/components/conversation/message-composer.tsx +13 -1
  519. package/src/components/conversation/message-row.tsx +15 -1
  520. package/src/components/conversation/thread-panel.tsx +5 -1
  521. package/src/components/conversation/transcript-composition.tsx +5 -1
  522. package/src/components/layout/floating-preview/floating-preview.tsx +6 -1
  523. package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +5 -1
  524. package/src/components/layout/shell-rail/shell-rail.tsx +5 -1
  525. package/src/components/layout/side-rail/side-rail.tsx +16 -19
  526. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +5 -1
  527. package/src/components/layout/split-layout/split-layout.tsx +6 -1
  528. package/src/components/layout/top-bar/top-bar.tsx +8 -8
  529. package/src/components/theme/appearance-panel.tsx +6 -1
  530. package/src/components/theme/theme-mode-toggle.tsx +7 -1
  531. package/src/components/theme/theme-toggle.tsx +7 -1
  532. package/src/components/ui/accordion/accordion.tsx +5 -1
  533. package/src/components/ui/alert/alert.tsx +20 -3
  534. package/src/components/ui/annotation-surface/annotation-surface.tsx +6 -3
  535. package/src/components/ui/attachment/attachment.tsx +19 -8
  536. package/src/components/ui/badge/badge.tsx +24 -8
  537. package/src/components/ui/breadcrumb/breadcrumb.tsx +9 -1
  538. package/src/components/ui/button/button.tsx +47 -16
  539. package/src/components/ui/calendar/calendar.tsx +6 -1
  540. package/src/components/ui/carousel/carousel.tsx +15 -5
  541. package/src/components/ui/checkbox/checkbox.tsx +260 -22
  542. package/src/components/ui/code-block/code-block.tsx +11 -5
  543. package/src/components/ui/combobox/combobox.tsx +8 -9
  544. package/src/components/ui/command/command.tsx +8 -4
  545. package/src/components/ui/detail-panel/detail-panel.tsx +5 -1
  546. package/src/components/ui/dialog/dialog-layer.tsx +16 -18
  547. package/src/components/ui/dialog/dialog.tsx +5 -1
  548. package/src/components/ui/dropdown-menu/menu-parts.tsx +11 -1
  549. package/src/components/ui/empty/empty-state.tsx +5 -1
  550. package/src/components/ui/field/field.tsx +14 -5
  551. package/src/components/ui/input/input-control.tsx +28 -19
  552. package/src/components/ui/input/input.tsx +9 -12
  553. package/src/components/ui/input-group/input-group.tsx +1 -8
  554. package/src/components/ui/kbd/kbd.tsx +53 -12
  555. package/src/components/ui/message/index.ts +3 -0
  556. package/src/components/ui/message/message.tsx +11 -2
  557. package/src/components/ui/message/parse-message-text.ts +94 -2
  558. package/src/components/ui/native-select/native-select.tsx +6 -9
  559. package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -1
  560. package/src/components/ui/pagination/pagination.tsx +11 -1
  561. package/src/components/ui/questionnaire/questionnaire.tsx +13 -1
  562. package/src/components/ui/radio-group/radio-group.tsx +6 -9
  563. package/src/components/ui/resizable/resizable.tsx +5 -1
  564. package/src/components/ui/select/select.tsx +11 -1
  565. package/src/components/ui/sheet/sheet.tsx +5 -1
  566. package/src/components/ui/spinner/spinner.tsx +5 -1
  567. package/src/components/ui/status-chip/status-chip.tsx +14 -7
  568. package/src/components/ui/switch/switch.tsx +235 -28
  569. package/src/components/ui/textarea/textarea.tsx +1 -8
  570. package/src/components/ui/toast/toast.tsx +5 -1
  571. package/src/components/ui/tooltip/deferred-tooltip.tsx +14 -8
  572. package/src/components/ui/tooltip/index.ts +1 -0
  573. package/src/components/ui/tooltip/lazy-tooltip.tsx +73 -0
  574. package/src/components/ui/trace/trace.tsx +61 -28
  575. package/src/components/ui/typography/typography.tsx +6 -5
  576. package/src/lib/clipboard.ts +4 -0
  577. package/src/lib/fast-icon.ts +88 -0
  578. package/src/lib/form-field.ts +7 -7
  579. package/src/lib/observe-resize.ts +28 -0
  580. package/src/lib/overlay.ts +1 -1
  581. package/src/lint/index.ts +199 -0
@@ -1,8 +1,7 @@
1
1
  import { cva } from "../../../lib/variants.js";
2
2
  import { cn } from "../../../lib/utils.js";
3
- import { createComponent, mergeProps } from "solid-js/web";
3
+ import { Dynamic, createComponent, mergeProps } from "solid-js/web";
4
4
  import { splitProps } from "solid-js";
5
- import { Polymorphic } from "@kobalte/core/polymorphic";
6
5
  // src/components/ui/typography/typography.tsx
7
6
  /**
8
7
  * Typography.
@@ -84,8 +83,8 @@ function Heading(props) {
84
83
  "tone",
85
84
  "class"
86
85
  ]);
87
- return createComponent(Polymorphic, mergeProps({
88
- get as() {
86
+ return createComponent(Dynamic, mergeProps({
87
+ get component() {
89
88
  return local.as ?? headingElement[local.size ?? "section"];
90
89
  },
91
90
  "data-slot": "heading",
@@ -171,8 +170,8 @@ function Text(props) {
171
170
  "numeric",
172
171
  "class"
173
172
  ]);
174
- return createComponent(Polymorphic, mergeProps({
175
- get as() {
173
+ return createComponent(Dynamic, mergeProps({
174
+ get component() {
176
175
  return local.as ?? textElement[local.variant ?? "body"];
177
176
  },
178
177
  "data-slot": "text",
@@ -1 +1 @@
1
- {"version":3,"file":"typography.js","names":["Polymorphic","splitProps","cva","cn","headingVariants","variants","size","display","title","page","section","card","subsection","leading","rung","none","numeric","true","tone","inherit","foreground","muted","defaultVariants","headingElement","class","Heading","props","local","rest","as","_$createComponent","_$mergeProps","textVariants","variant","body","label","strong","caption","micro","overline","code","textElement","textDefaultTone","undefined","Text"],"sources":["../../../../src/components/ui/typography/typography.tsx"],"sourcesContent":["import { Polymorphic, type PolymorphicProps } from '@kobalte/core/polymorphic'\nimport { type ComponentProps, splitProps, type ValidComponent } from 'solid-js'\nimport { cva, type VariantProps } from '#lib/variants'\nimport { cn } from '#lib/utils'\n\n/**\n * Typography.\n *\n * The type ladder in `theme.css` has eight rungs, each with its own leading. These\n * two components are where a rung is paired with its weight and tracking, so a call\n * site names a *role*, a page title, a section heading, a caption, and never\n * re-decides `text-xl font-semibold tracking-tight` for itself. Twenty call sites\n * that each choose a size and a weight drift; twenty that name a role cannot.\n *\n * **Size is visual; the element is the document outline.** They are separate\n * decisions and the API keeps them separate. Each size has a conventional default\n * element (`display`, `title` and `page` render an `h1`, `section` an `h2`, `card`\n * an `h3`, `subsection` an `h4`) so the common case needs no prop, but the default\n * is a convenience, not a coupling: a card-sized title that is the first heading\n * in a settings section is an `h2`, so it says `as=\"h2\"`. Never pick a `size` to get\n * a heading level, and never pick an element to get a size.\n *\n * Headings are 600, and weights stop at 600, on a dark surface a bold word blooms.\n * Leading comes from the rung; `leading=\"none\"` is for a title whose surrounding\n * stack already sets the rhythm (a card or dialog header), and is the only other\n * option.\n */\n// cva only returns a closure. A heading-only consumer must discard Text's recipe.\nexport const headingVariants = /* @__PURE__ */ cva('font-semibold', {\n variants: {\n size: {\n /** 30px. An app-level headline, a first-run or empty-app screen. Once per app. */\n display: 'text-3xl tracking-tight',\n /** 24px. A landing title or a headline figure larger than a stat's. */\n title: 'text-2xl tracking-tight',\n /** 20px. The title of a page (`PageHeaderTitle`). */\n page: 'text-xl tracking-tight',\n /** 18px. A section heading inside a page (`PageSection`). */\n section: 'text-lg tracking-tight',\n /** 16px. A card, dialog, drawer or settings-section title. */\n card: 'text-base tracking-tight',\n /** 14px. A heading inside a compact surface: a sheet, a chart, a column. */\n subsection: 'text-sm',\n },\n leading: {\n /** The rung's own line-height from `theme.css`. */\n rung: '',\n /** Line-height 1, for a title whose container's gap sets the rhythm. */\n none: 'leading-none',\n },\n /** Tabular figures, so a row of numbers can be compared without digits shifting. */\n numeric: {\n true: 'tabular-nums',\n },\n tone: {\n /** Inherit the surrounding colour, right on every surface by construction. */\n inherit: '',\n foreground: 'text-foreground',\n muted: 'text-muted-foreground',\n },\n },\n defaultVariants: {\n size: 'section',\n leading: 'rung',\n tone: 'inherit',\n },\n})\n\n/**\n * The conventional element for each heading size. Exported so a test (and a\n * reader) can see the whole mapping in one place; pass `as` to depart from it.\n */\nexport const headingElement = {\n display: 'h1',\n title: 'h1',\n page: 'h1',\n section: 'h2',\n card: 'h3',\n subsection: 'h4',\n} as const\n\ntype HeadingVariantProps = VariantProps<typeof headingVariants>\ntype HeadingSize = keyof typeof headingElement\n\nexport type HeadingProps<T extends ValidComponent = 'h2'> = PolymorphicProps<\n T,\n HeadingVariantProps & {\n class?: string\n }\n>\n\nexport function Heading<T extends ValidComponent = 'h2'>(props: HeadingProps<T>) {\n const [local, rest] = splitProps(props as HeadingProps & { as?: ValidComponent }, [\n 'as',\n 'size',\n 'leading',\n 'numeric',\n 'tone',\n 'class',\n ])\n\n return (\n <Polymorphic\n as={local.as ?? headingElement[(local.size ?? 'section') as HeadingSize]}\n data-slot=\"heading\"\n class={cn(\n headingVariants({\n size: local.size,\n leading: local.leading,\n numeric: local.numeric,\n tone: local.tone,\n }),\n local.class\n )}\n {...(rest as ComponentProps<'h2'>)}\n />\n )\n}\n\n/**\n * Text.\n *\n * Everything that is not a heading. Body and strong copy use the content font\n * axis; labels, captions and microcopy inherit the UI face. Code uses its own\n * family and size axis for anything a user compares character by character.\n *\n * `tone` is a separate axis from `variant` because \"secondary\" is a colour\n * decision, not a size: a muted caption and a muted body line are both common.\n * The default inherits, so text on a filled surface picks up that surface's\n * foreground without the caller restating it.\n *\n * Defaults: `body` renders a `p`, `code` a `code`, every other variant a `span`.\n *\n * `overline` is the small uppercase label above a group, a list group's\n * heading, a settings navigation group, an eyebrow over a page title. It is the\n * one variant whose tone defaults to `muted` rather than inheriting, because an\n * overline in the body foreground competes with the heading it introduces. Pass\n * `tone` to override. It labels a group; it is not a heading, so it renders a\n * `span` and stays out of the document outline.\n */\nexport const textVariants = /* @__PURE__ */ cva('', {\n variants: {\n variant: {\n /** 14px / 400. Body copy and descriptions. */\n body: 'font-content text-content',\n /** 14px / 500. Labels, control text, list-row titles. */\n label: 'text-sm font-medium',\n /** 14px / 600. Emphasis inside body copy. */\n strong: 'font-content text-content font-semibold',\n /** 12px / 400. Metadata, secondary rows, units. */\n caption: 'text-xs',\n /** 11px / 500. The floor: keyboard keys, the status bar. */\n micro: 'text-2xs font-medium',\n /** 11px / 500, uppercase and tracked. A group label or eyebrow; muted by default. */\n overline: 'text-2xs font-medium tracking-wide uppercase',\n /** 12px mono. Ids, paths, hashes, inline code. */\n code: 'font-code text-code',\n },\n tone: {\n inherit: '',\n foreground: 'text-foreground',\n muted: 'text-muted-foreground',\n },\n numeric: {\n true: 'tabular-nums',\n },\n },\n defaultVariants: {\n variant: 'body',\n tone: 'inherit',\n },\n})\n\nexport const textElement = {\n body: 'p',\n label: 'span',\n strong: 'span',\n caption: 'span',\n micro: 'span',\n overline: 'span',\n code: 'code',\n} as const\n\n/** The tone a variant takes when the caller names none: muted for `overline`, else inherit. */\nexport function textDefaultTone(variant: TextVariant | null | undefined) {\n return variant === 'overline' ? 'muted' : undefined\n}\n\ntype TextVariantProps = VariantProps<typeof textVariants>\ntype TextVariant = keyof typeof textElement\n\nexport type TextProps<T extends ValidComponent = 'p'> = PolymorphicProps<\n T,\n TextVariantProps & {\n class?: string\n }\n>\n\nexport function Text<T extends ValidComponent = 'p'>(props: TextProps<T>) {\n const [local, rest] = splitProps(props as TextProps & { as?: ValidComponent }, [\n 'as',\n 'variant',\n 'tone',\n 'numeric',\n 'class',\n ])\n\n return (\n <Polymorphic\n as={local.as ?? textElement[(local.variant ?? 'body') as TextVariant]}\n data-slot=\"text\"\n class={cn(\n textVariants({\n variant: local.variant,\n tone: local.tone ?? textDefaultTone(local.variant),\n numeric: local.numeric,\n }),\n local.class\n )}\n {...(rest as ComponentProps<'p'>)}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,IAAaI,kBAAkCF,oBAAI,iBAAiB;CAClEG,UAAU;EACRC,MAAM;;GAEJC,SAAS;;GAETC,OAAO;;GAEPC,MAAM;;GAENC,SAAS;;GAETC,MAAM;;GAENC,YAAY;EACd;EACAC,SAAS;;GAEPC,MAAM;;GAENC,MAAM;EACR;;EAEAC,SAAS,EACPC,MAAM,eACR;EACAC,MAAM;;GAEJC,SAAS;GACTC,YAAY;GACZC,OAAO;EACT;CACF;CACAC,iBAAiB;EACfhB,MAAM;EACNO,SAAS;EACTK,MAAM;CACR;AACF,CAAC;;;;;AAMD,IAAaK,iBAAiB;CAC5BhB,SAAS;CACTC,OAAO;CACPC,MAAM;CACNC,SAAS;CACTC,MAAM;CACNC,YAAY;AACd;AAYA,SAAgBa,QAAyCC,OAAwB;CAC/E,MAAM,CAACC,OAAOC,QAAQ3B,WAAWyB,OAAiD;EAChF;EACA;EACA;EACA;EACA;EACA;CAAO,CACR;CAED,OAAAI,gBACG9B,aAAW+B,WAAA;EAAA,IACVF,KAAE;GAAA,OAAEF,MAAME,MAAMN,eAAgBI,MAAMrB,QAAQ;EAA0B;EAAA,aAAA;EAAA,KAAA,WAAA;GAAA,OAEjEH,GACLC,gBAAgB;IACdE,MAAMqB,MAAMrB;IACZO,SAASc,MAAMd;IACfG,SAASW,MAAMX;IACfE,MAAMS,MAAMT;GACd,CAAC,GACDS,MAAMH,KACR;EAAC;CAAA,GACII,IAA4B,CAAA;AAGvC;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAaI,eAA+B9B,oBAAI,IAAI;CAClDG,UAAU;EACR4B,SAAS;;GAEPC,MAAM;;GAENC,OAAO;;GAEPC,QAAQ;;GAERC,SAAS;;GAETC,OAAO;;GAEPC,UAAU;;GAEVC,MAAM;EACR;EACAtB,MAAM;GACJC,SAAS;GACTC,YAAY;GACZC,OAAO;EACT;EACAL,SAAS,EACPC,MAAM,eACR;CACF;CACAK,iBAAiB;EACfW,SAAS;EACTf,MAAM;CACR;AACF,CAAC;AAED,IAAauB,cAAc;CACzBP,MAAM;CACNC,OAAO;CACPC,QAAQ;CACRC,SAAS;CACTC,OAAO;CACPC,UAAU;CACVC,MAAM;AACR;;AAGA,SAAgBE,gBAAgBT,SAAyC;CACvE,OAAOA,YAAY,aAAa,UAAUU,KAAAA;AAC5C;AAYA,SAAgBC,KAAqClB,OAAqB;CACxE,MAAM,CAACC,OAAOC,QAAQ3B,WAAWyB,OAA8C;EAC7E;EACA;EACA;EACA;EACA;CAAO,CACR;CAED,OAAAI,gBACG9B,aAAW+B,WAAA;EAAA,IACVF,KAAE;GAAA,OAAEF,MAAME,MAAMY,YAAad,MAAMM,WAAW;EAAuB;EAAA,aAAA;EAAA,KAAA,WAAA;GAAA,OAE9D9B,GACL6B,aAAa;IACXC,SAASN,MAAMM;IACff,MAAMS,MAAMT,QAAQwB,gBAAgBf,MAAMM,OAAO;IACjDjB,SAASW,MAAMX;GACjB,CAAC,GACDW,MAAMH,KACR;EAAC;CAAA,GACII,IAA2B,CAAA;AAGtC"}
1
+ {"version":3,"file":"typography.js","names":["splitProps","Dynamic","cva","cn","headingVariants","variants","size","display","title","page","section","card","subsection","leading","rung","none","numeric","true","tone","inherit","foreground","muted","defaultVariants","headingElement","class","Heading","props","local","rest","as","_$createComponent","_$mergeProps","component","textVariants","variant","body","label","strong","caption","micro","overline","code","textElement","textDefaultTone","undefined","Text"],"sources":["../../../../src/components/ui/typography/typography.tsx"],"sourcesContent":["import type { PolymorphicProps } from '@kobalte/core/polymorphic'\nimport { type ComponentProps, splitProps, type ValidComponent } from 'solid-js'\nimport { Dynamic } from 'solid-js/web'\nimport { cva, type VariantProps } from '#lib/variants'\nimport { cn } from '#lib/utils'\n\n/**\n * Typography.\n *\n * The type ladder in `theme.css` has eight rungs, each with its own leading. These\n * two components are where a rung is paired with its weight and tracking, so a call\n * site names a *role*, a page title, a section heading, a caption, and never\n * re-decides `text-xl font-semibold tracking-tight` for itself. Twenty call sites\n * that each choose a size and a weight drift; twenty that name a role cannot.\n *\n * **Size is visual; the element is the document outline.** They are separate\n * decisions and the API keeps them separate. Each size has a conventional default\n * element (`display`, `title` and `page` render an `h1`, `section` an `h2`, `card`\n * an `h3`, `subsection` an `h4`) so the common case needs no prop, but the default\n * is a convenience, not a coupling: a card-sized title that is the first heading\n * in a settings section is an `h2`, so it says `as=\"h2\"`. Never pick a `size` to get\n * a heading level, and never pick an element to get a size.\n *\n * Headings are 600, and weights stop at 600, on a dark surface a bold word blooms.\n * Leading comes from the rung; `leading=\"none\"` is for a title whose surrounding\n * stack already sets the rhythm (a card or dialog header), and is the only other\n * option.\n */\n// cva only returns a closure. A heading-only consumer must discard Text's recipe.\nexport const headingVariants = /* @__PURE__ */ cva('font-semibold', {\n variants: {\n size: {\n /** 30px. An app-level headline, a first-run or empty-app screen. Once per app. */\n display: 'text-3xl tracking-tight',\n /** 24px. A landing title or a headline figure larger than a stat's. */\n title: 'text-2xl tracking-tight',\n /** 20px. The title of a page (`PageHeaderTitle`). */\n page: 'text-xl tracking-tight',\n /** 18px. A section heading inside a page (`PageSection`). */\n section: 'text-lg tracking-tight',\n /** 16px. A card, dialog, drawer or settings-section title. */\n card: 'text-base tracking-tight',\n /** 14px. A heading inside a compact surface: a sheet, a chart, a column. */\n subsection: 'text-sm',\n },\n leading: {\n /** The rung's own line-height from `theme.css`. */\n rung: '',\n /** Line-height 1, for a title whose container's gap sets the rhythm. */\n none: 'leading-none',\n },\n /** Tabular figures, so a row of numbers can be compared without digits shifting. */\n numeric: {\n true: 'tabular-nums',\n },\n tone: {\n /** Inherit the surrounding colour, right on every surface by construction. */\n inherit: '',\n foreground: 'text-foreground',\n muted: 'text-muted-foreground',\n },\n },\n defaultVariants: {\n size: 'section',\n leading: 'rung',\n tone: 'inherit',\n },\n})\n\n/**\n * The conventional element for each heading size. Exported so a test (and a\n * reader) can see the whole mapping in one place; pass `as` to depart from it.\n */\nexport const headingElement = {\n display: 'h1',\n title: 'h1',\n page: 'h1',\n section: 'h2',\n card: 'h3',\n subsection: 'h4',\n} as const\n\ntype HeadingVariantProps = VariantProps<typeof headingVariants>\ntype HeadingSize = keyof typeof headingElement\n\nexport type HeadingProps<T extends ValidComponent = 'h2'> = PolymorphicProps<\n T,\n HeadingVariantProps & {\n class?: string\n }\n>\n\nexport function Heading<T extends ValidComponent = 'h2'>(props: HeadingProps<T>) {\n const [local, rest] = splitProps(props as HeadingProps & { as?: ValidComponent }, [\n 'as',\n 'size',\n 'leading',\n 'numeric',\n 'tone',\n 'class',\n ])\n\n return (\n <Dynamic\n component={local.as ?? headingElement[(local.size ?? 'section') as HeadingSize]}\n data-slot=\"heading\"\n class={cn(\n headingVariants({\n size: local.size,\n leading: local.leading,\n numeric: local.numeric,\n tone: local.tone,\n }),\n local.class\n )}\n {...(rest as ComponentProps<'h2'>)}\n />\n )\n}\n\n/**\n * Text.\n *\n * Everything that is not a heading. Body and strong copy use the content font\n * axis; labels, captions and microcopy inherit the UI face. Code uses its own\n * family and size axis for anything a user compares character by character.\n *\n * `tone` is a separate axis from `variant` because \"secondary\" is a colour\n * decision, not a size: a muted caption and a muted body line are both common.\n * The default inherits, so text on a filled surface picks up that surface's\n * foreground without the caller restating it.\n *\n * Defaults: `body` renders a `p`, `code` a `code`, every other variant a `span`.\n *\n * `overline` is the small uppercase label above a group, a list group's\n * heading, a settings navigation group, an eyebrow over a page title. It is the\n * one variant whose tone defaults to `muted` rather than inheriting, because an\n * overline in the body foreground competes with the heading it introduces. Pass\n * `tone` to override. It labels a group; it is not a heading, so it renders a\n * `span` and stays out of the document outline.\n */\nexport const textVariants = /* @__PURE__ */ cva('', {\n variants: {\n variant: {\n /** 14px / 400. Body copy and descriptions. */\n body: 'font-content text-content',\n /** 14px / 500. Labels, control text, list-row titles. */\n label: 'text-sm font-medium',\n /** 14px / 600. Emphasis inside body copy. */\n strong: 'font-content text-content font-semibold',\n /** 12px / 400. Metadata, secondary rows, units. */\n caption: 'text-xs',\n /** 11px / 500. The floor: keyboard keys, the status bar. */\n micro: 'text-2xs font-medium',\n /** 11px / 500, uppercase and tracked. A group label or eyebrow; muted by default. */\n overline: 'text-2xs font-medium tracking-wide uppercase',\n /** 12px mono. Ids, paths, hashes, inline code. */\n code: 'font-code text-code',\n },\n tone: {\n inherit: '',\n foreground: 'text-foreground',\n muted: 'text-muted-foreground',\n },\n numeric: {\n true: 'tabular-nums',\n },\n },\n defaultVariants: {\n variant: 'body',\n tone: 'inherit',\n },\n})\n\nexport const textElement = {\n body: 'p',\n label: 'span',\n strong: 'span',\n caption: 'span',\n micro: 'span',\n overline: 'span',\n code: 'code',\n} as const\n\n/** The tone a variant takes when the caller names none: muted for `overline`, else inherit. */\nexport function textDefaultTone(variant: TextVariant | null | undefined) {\n return variant === 'overline' ? 'muted' : undefined\n}\n\ntype TextVariantProps = VariantProps<typeof textVariants>\ntype TextVariant = keyof typeof textElement\n\nexport type TextProps<T extends ValidComponent = 'p'> = PolymorphicProps<\n T,\n TextVariantProps & {\n class?: string\n }\n>\n\nexport function Text<T extends ValidComponent = 'p'>(props: TextProps<T>) {\n const [local, rest] = splitProps(props as TextProps & { as?: ValidComponent }, [\n 'as',\n 'variant',\n 'tone',\n 'numeric',\n 'class',\n ])\n\n return (\n <Dynamic\n component={local.as ?? textElement[(local.variant ?? 'body') as TextVariant]}\n data-slot=\"text\"\n class={cn(\n textVariants({\n variant: local.variant,\n tone: local.tone ?? textDefaultTone(local.variant),\n numeric: local.numeric,\n }),\n local.class\n )}\n {...(rest as ComponentProps<'p'>)}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,IAAaI,kBAAkCF,oBAAI,iBAAiB;CAClEG,UAAU;EACRC,MAAM;;GAEJC,SAAS;;GAETC,OAAO;;GAEPC,MAAM;;GAENC,SAAS;;GAETC,MAAM;;GAENC,YAAY;EACd;EACAC,SAAS;;GAEPC,MAAM;;GAENC,MAAM;EACR;;EAEAC,SAAS,EACPC,MAAM,eACR;EACAC,MAAM;;GAEJC,SAAS;GACTC,YAAY;GACZC,OAAO;EACT;CACF;CACAC,iBAAiB;EACfhB,MAAM;EACNO,SAAS;EACTK,MAAM;CACR;AACF,CAAC;;;;;AAMD,IAAaK,iBAAiB;CAC5BhB,SAAS;CACTC,OAAO;CACPC,MAAM;CACNC,SAAS;CACTC,MAAM;CACNC,YAAY;AACd;AAYA,SAAgBa,QAAyCC,OAAwB;CAC/E,MAAM,CAACC,OAAOC,QAAQ5B,WAAW0B,OAAiD;EAChF;EACA;EACA;EACA;EACA;EACA;CAAO,CACR;CAED,OAAAI,gBACG7B,SAAO8B,WAAA;EAAA,IACNC,YAAS;GAAA,OAAEL,MAAME,MAAMN,eAAgBI,MAAMrB,QAAQ;EAA0B;EAAA,aAAA;EAAA,KAAA,WAAA;GAAA,OAExEH,GACLC,gBAAgB;IACdE,MAAMqB,MAAMrB;IACZO,SAASc,MAAMd;IACfG,SAASW,MAAMX;IACfE,MAAMS,MAAMT;GACd,CAAC,GACDS,MAAMH,KACR;EAAC;CAAA,GACII,IAA4B,CAAA;AAGvC;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAaK,eAA+B/B,oBAAI,IAAI;CAClDG,UAAU;EACR6B,SAAS;;GAEPC,MAAM;;GAENC,OAAO;;GAEPC,QAAQ;;GAERC,SAAS;;GAETC,OAAO;;GAEPC,UAAU;;GAEVC,MAAM;EACR;EACAvB,MAAM;GACJC,SAAS;GACTC,YAAY;GACZC,OAAO;EACT;EACAL,SAAS,EACPC,MAAM,eACR;CACF;CACAK,iBAAiB;EACfY,SAAS;EACThB,MAAM;CACR;AACF,CAAC;AAED,IAAawB,cAAc;CACzBP,MAAM;CACNC,OAAO;CACPC,QAAQ;CACRC,SAAS;CACTC,OAAO;CACPC,UAAU;CACVC,MAAM;AACR;;AAGA,SAAgBE,gBAAgBT,SAAyC;CACvE,OAAOA,YAAY,aAAa,UAAUU,KAAAA;AAC5C;AAYA,SAAgBC,KAAqCnB,OAAqB;CACxE,MAAM,CAACC,OAAOC,QAAQ5B,WAAW0B,OAA8C;EAC7E;EACA;EACA;EACA;EACA;CAAO,CACR;CAED,OAAAI,gBACG7B,SAAO8B,WAAA;EAAA,IACNC,YAAS;GAAA,OAAEL,MAAME,MAAMa,YAAaf,MAAMO,WAAW;EAAuB;EAAA,aAAA;EAAA,KAAA,WAAA;GAAA,OAErE/B,GACL8B,aAAa;IACXC,SAASP,MAAMO;IACfhB,MAAMS,MAAMT,QAAQyB,gBAAgBhB,MAAMO,OAAO;IACjDlB,SAASW,MAAMX;GACjB,CAAC,GACDW,MAAMH,KACR;EAAC;CAAA,GACII,IAA2B,CAAA;AAGtC"}
package/dist/index.js CHANGED
@@ -27,6 +27,7 @@ import { ValueCombobox } from "./components/ui/combobox/value-combobox.js";
27
27
  import { isCustomAccent, normalizeCustomAccent, paintAccentRoles, resolveAccentRoles } from "./lib/accent-roles.js";
28
28
  import { Spinner } from "./components/ui/spinner/spinner.js";
29
29
  import { createDeferredTooltip } from "./components/ui/tooltip/deferred-tooltip.js";
30
+ import { LazyTooltip } from "./components/ui/tooltip/lazy-tooltip.js";
30
31
  import { ActionButton } from "./components/composites/action-button/action-button.js";
31
32
  import { CODE_BLOCK_LINE_LIMIT, CodeBlock, InlineCode, TALL_CODE_BLOCK_PX } from "./components/ui/code-block/code-block.js";
32
33
  import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandHint, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, CommandStatus } from "./components/ui/command/command.js";
@@ -53,7 +54,7 @@ import { Kbd, KbdChord, KbdGroup, kbdChordKeys, kbdGroupVariants, kbdVariants }
53
54
  import { platformModifierKey, searchShortcutKeyshortcuts, searchShortcutLabel } from "./components/ui/kbd/platform-modifier.js";
54
55
  import { Marker, markerVariants } from "./components/ui/marker/marker.js";
55
56
  import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from "./components/ui/menubar/menubar.js";
56
- import { parseInline, parseMessageText } from "./components/ui/message/parse-message-text.js";
57
+ import { parseInline, parseMessageText, parseMessageTextIncremental } from "./components/ui/message/parse-message-text.js";
57
58
  import { Message, MessageActions, MessageContent, MessageFooter, MessageHeader, MessageText } from "./components/ui/message/message.js";
58
59
  import { placeCitationMarkers } from "./components/ui/message/cite-ranges.js";
59
60
  import { ModalDialog } from "./components/ui/modal-dialog/modal-dialog.js";
@@ -206,4 +207,4 @@ import { isShellIconKey, resolveShellIcon, shellIconEntries, shellIconLabel } fr
206
207
  import { IconPicker, IconPickerDropdown } from "./components/composites/icon-picker/icon-picker.js";
207
208
  import { formatBytes, formatReleaseDate, plainTextFromMarkdown } from "./lib/version-notes.js";
208
209
  import { allTokens, colorTokens, densityTokens, designTokens, elevationTokens, motionTokens, radiusTokens, typographyTokens, undocumentedTokenAliases, zIndexTokens } from "./lib/tokens.js";
209
- export { ANSI_MAX_LINE_LENGTH, ANSI_RETAIN_LINES, APPEARANCE_EDITOR_FONT_AXES, APPEARANCE_EDITOR_FONT_SIZE_MAX, APPEARANCE_EDITOR_FONT_SIZE_MIN, AboutDialog, AccentPicker, AccentSwatchGroups, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, ActionButton, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnnotationSurface, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearanceEditorActions, AppearanceFontSettingsGroup, AppearancePanel, AppearancePopover, SettingsRow as AppearanceSettingsRow, AspectRatio, Attachment, AttachmentCard, AttachmentList, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, BoardCardTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CHAIN_OF_THOUGHT_STATUS_LABELS, CODE_BLOCK_LINE_LIMIT, CalendarSurface, Callout, CalloutTitle, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CatalogBrowser, CatalogDetail, CatalogDetailSection, ChainOfThought, ChainOfThoughtResult, ChainOfThoughtResults, ChainOfThoughtStep, Chat, ChatComposer, ChatEmpty, ChatHeader, ChatNotice, Checkbox, CheckboxDescription, CheckboxLabel, Checkpoint, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandHint, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, CommandStatus, ComposerAttachmentButton, ComposerHint, ComposerMenu, ComposerMenuItem, Confirmation, Context, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextualSidebar, ConversationAvatar, ConversationPane, ConversationSurface, DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, EntityIcon, FILE_CHANGE_LABELS, FILE_TREE_AUTO_EXPAND_LIMIT, FILE_TREE_MAX_DEPTH, FILE_TREE_MAX_ROWS, FLOATING_PREVIEW_CORNER_RADIUS, FLOATING_PREVIEW_EDGE_GAP, Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FileTree, FloatingPreview, FormField, Heading, HelpCenter, HoverCard, HoverCardContent, HoverCardTrigger, IconPicker, IconPickerDropdown, InlineCitation, InlineCode, Input, InputControl, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdChord, KbdGroup, Label, ListGroup, ListRow, ListRowControl, MARK_IMAGE_MAX_DATA_URL_LENGTH, MARK_IMAGE_MAX_SOURCE_BYTES, MARK_IMAGE_SIZE, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, MODEL_SEARCH_THRESHOLD, MarkImageError, Marker, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageActions, MessageBody, MessageComposer, MessageContent, MessageDayDivider, MessageFooter, MessageGroup, MessageHeader, MessageRow, MessageScroller, MessageText, ModalDialog, ModelSelector, Motion, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, NumberField, OrbitItem, OrbitLayout, PASTE_THRESHOLD_CHARS, PASTE_THRESHOLD_LINES, PASTE_TOKEN_REGEX, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, PixelPane, PixelResizeHandle, Plan, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, Questionnaire, Queue, QueueFollowUps, REDUCED_TRANSPARENCY_QUERY, RadioGroup, RadioGroupItem, Reasoning, ResizableHandle, ResizablePanel, ResizablePanelGroup, SOURCE_SNIPPET_LIMIT, SOURCE_TITLE_LIMIT, STACK_MAX_LINES, STACK_TRACE_MAX_BLOCKS, SceneControls, ScrollArea, SecretInputGroup, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsLayout, SettingsNavigation, SettingsPage, SettingsRow$1 as SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShellRail, ShellTopBar, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavResizeHandle, SidebarNavRow, SidebarNavSection, SidebarNavTitle, Skeleton, SkipLink, Slider, Sources, Spinner, SplitLayout, StackTrace, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Subagent, Suggestion, Suggestions, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, TASK_ITEM_STATUS_LABELS, TERMINAL_MAX_LINES, TEST_RESULTS_LIST_LIMIT, TOOL_STATUS_LABELS, TOOL_VALUE_MAX_CHARS, TRACE_STATUS_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskItemList, TaskItemRow, Terminal, TestResults, Text, TextLink, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemeModeToggle, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tool, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, Trace, TraceDetail, TraceError, TraceLine, TraceMark, TranscriptComposition, Tree, TreeRow, TreeRowActions, UpdateChannelControl, UpdateDialog, ValueCombobox, VirtualWindow, WORK_STATUS_LABELS, WORK_TRACE_STATUS, WorkspaceMark, WorkspaceReorderDialog, WorkspaceSwitcher, accentPresets, alertVariants, allTokens, ansi256ToColor, ansiLineText, appearancePreviewThemes, applyAppearanceFontSettings, badgeVariants, boardCardTitleVariants, boundText, breakdownRows, bubbleVariants, buildFileTree, builtinThemes, buttonVariants, calloutVariants, captureAnchor, cardVariants, centredSquare, chatNoticeVariants, checkMarkImageFile, checkpointLabel, checkpointStatus, citationLabel, citationName, clampFloatingPreviewPosition, clampSplitRatio, clampWindow, classifyFrame, closePane, cn, colorTokens, computeLayoutFrames, confirmationOutcome, contextLabel, contextLevel, contextLevelWord, contextPercent, contextShort, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countChanges, countLeaves, countLines, createAnsiParser, createAppMenuItems, createDeferredTooltip, createLayoutState, createPoll, createVersionedPersistence, cva, decisionReason, dedentLines, defaultDarkThemeId, defaultLightThemeId, defaultPreferenceStorage, defaultThemeSelection, densityTokens, describeChanges, describeCount, describeFrameGroup, designTokens, diffLineVariants, diffStats, diffTargetPath, editorPaletteFor, elevationTokens, entityIconVariants, expandAll, findModel, findTokenRanges, firstFailureKey, flattenFileTree, focusPane, fontOptions, fontSettingsBootstrapScript, fontZoomShortcut, formatAttachmentSize, formatBytes, formatCost, formatDuration, formatExact, formatReleaseDate, formatDuration$1 as formatTestDuration, formatToken, formatTokens, formatToolValue, frameLocation, groupModels, groupStackEntries, hasContextFigures, headingElement, headingVariants, indexFileTree, initialExpanded, initialsFrom, safeScriptStringLiteral as inlineScriptLiteral, isAwaitingAnswer, isCustomAccent, isCustomAccentValue, isFailedExit, isFigure, isMarkImageDataUrl, isPasteBlock, isPlainStyle, isQuestionAnswered, isShellIconKey, isThemeAccentId, itemVariants, kbdChordKeys, kbdGroupVariants, kbdVariants, keyedRows, layoutDepth, listLeaves, listedCounts, localStoragePersistence, markImageFromFile, markImageProblemCopy, markerVariants, messageCitations, modelSearchValue, monogram, motionTokens, movePane, moveTarget, moveWorkspace, nearestAnsiColor, needsSearch, neighborLeaf, nextCitationMode, nextSeq, normalizeAppearanceEditorFontSettings, normalizeAppearanceEditorFontSize, normalizeCustomAccent, normalizeEfforts, normalizeLayout, normalizePath, normalizeSurface, paintAccentRoles, parseAnsi, parseDiff, parseInline, parseMessageText, parseStackTrace, partitionQueue, placeCitationMarkers, plainTextFromMarkdown, platformModifierKey, pruneBlocks, quarantineRecord, radiusTokens, readLegacyValue, readVersionedRecord, reasoningTitle, recollapsePastes, reconcileCounts, recoveryEnvelope, recoveryKeyFor, remapCarriedBlocks, resizeFloatingPreview, resizeSplit, resolveAccentPreset, resolveAccentRoles, resolveColors, resolveEffort, resolveFloatingPreviewFrame, resolveShellIcon, resolveSurface, resolveSurfaceState, resolveVariant, resolvedDensity, restoreAnchor, restoreControl, restoreDialogCopy, revealInWindow, safeHref, safePreviewSrc, safeSourceUrl, searchShortcutKeyshortcuts, searchShortcutLabel, settleDecision, sheetVariants, shellIconEntries, shellIconLabel, shouldCollapse, sidebarNavItemClass, sidebarNavItemStateClass, sourceHost, sourceTitle, sourcesLabel, splitLocation, splitPane, splitPaneBalanced, statusDotVariants, stepAppearanceFontSizes, stepCountLabel, stripTrailingBlankLines, suiteKey, suiteState, surfaceAlpha, surfaceInteractive, swapPanes, taskProgress, taskProgressLabel, terminalCssVariables, terminalStatusLabel, testKey, textElement, textVariants, textareaVariants, themeAccentsFor, themeById, themeCssVariables, themeFamilies, themeRecordById, themeRecords, themeScript, themeSurfaces, themesForAppearance, toast, toaster, toggleVariants, tokenRangeAt, tokensAsHex, transcriptDisclosureKey, typeaheadIndex, typographyTokens, undoClosePane, undocumentedTokenAliases, useOptionalTheme, useSideRail, useTheme, validateTheme, validateThemeRegistry, variantFromRecord, withAccent, wrapIndex, writeClipboardText, writeVersionedRecord, zIndexTokens };
210
+ export { ANSI_MAX_LINE_LENGTH, ANSI_RETAIN_LINES, APPEARANCE_EDITOR_FONT_AXES, APPEARANCE_EDITOR_FONT_SIZE_MAX, APPEARANCE_EDITOR_FONT_SIZE_MIN, AboutDialog, AccentPicker, AccentSwatchGroups, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, ActionButton, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnnotationSurface, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearanceEditorActions, AppearanceFontSettingsGroup, AppearancePanel, AppearancePopover, SettingsRow as AppearanceSettingsRow, AspectRatio, Attachment, AttachmentCard, AttachmentList, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, BoardCardTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CHAIN_OF_THOUGHT_STATUS_LABELS, CODE_BLOCK_LINE_LIMIT, CalendarSurface, Callout, CalloutTitle, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CatalogBrowser, CatalogDetail, CatalogDetailSection, ChainOfThought, ChainOfThoughtResult, ChainOfThoughtResults, ChainOfThoughtStep, Chat, ChatComposer, ChatEmpty, ChatHeader, ChatNotice, Checkbox, CheckboxDescription, CheckboxLabel, Checkpoint, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandHint, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, CommandStatus, ComposerAttachmentButton, ComposerHint, ComposerMenu, ComposerMenuItem, Confirmation, Context, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextualSidebar, ConversationAvatar, ConversationPane, ConversationSurface, DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, EntityIcon, FILE_CHANGE_LABELS, FILE_TREE_AUTO_EXPAND_LIMIT, FILE_TREE_MAX_DEPTH, FILE_TREE_MAX_ROWS, FLOATING_PREVIEW_CORNER_RADIUS, FLOATING_PREVIEW_EDGE_GAP, Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FileTree, FloatingPreview, FormField, Heading, HelpCenter, HoverCard, HoverCardContent, HoverCardTrigger, IconPicker, IconPickerDropdown, InlineCitation, InlineCode, Input, InputControl, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdChord, KbdGroup, Label, LazyTooltip, ListGroup, ListRow, ListRowControl, MARK_IMAGE_MAX_DATA_URL_LENGTH, MARK_IMAGE_MAX_SOURCE_BYTES, MARK_IMAGE_SIZE, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, MODEL_SEARCH_THRESHOLD, MarkImageError, Marker, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageActions, MessageBody, MessageComposer, MessageContent, MessageDayDivider, MessageFooter, MessageGroup, MessageHeader, MessageRow, MessageScroller, MessageText, ModalDialog, ModelSelector, Motion, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, NumberField, OrbitItem, OrbitLayout, PASTE_THRESHOLD_CHARS, PASTE_THRESHOLD_LINES, PASTE_TOKEN_REGEX, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, PixelPane, PixelResizeHandle, Plan, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, Questionnaire, Queue, QueueFollowUps, REDUCED_TRANSPARENCY_QUERY, RadioGroup, RadioGroupItem, Reasoning, ResizableHandle, ResizablePanel, ResizablePanelGroup, SOURCE_SNIPPET_LIMIT, SOURCE_TITLE_LIMIT, STACK_MAX_LINES, STACK_TRACE_MAX_BLOCKS, SceneControls, ScrollArea, SecretInputGroup, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsLayout, SettingsNavigation, SettingsPage, SettingsRow$1 as SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShellRail, ShellTopBar, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavResizeHandle, SidebarNavRow, SidebarNavSection, SidebarNavTitle, Skeleton, SkipLink, Slider, Sources, Spinner, SplitLayout, StackTrace, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Subagent, Suggestion, Suggestions, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, TASK_ITEM_STATUS_LABELS, TERMINAL_MAX_LINES, TEST_RESULTS_LIST_LIMIT, TOOL_STATUS_LABELS, TOOL_VALUE_MAX_CHARS, TRACE_STATUS_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskItemList, TaskItemRow, Terminal, TestResults, Text, TextLink, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemeModeToggle, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tool, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, Trace, TraceDetail, TraceError, TraceLine, TraceMark, TranscriptComposition, Tree, TreeRow, TreeRowActions, UpdateChannelControl, UpdateDialog, ValueCombobox, VirtualWindow, WORK_STATUS_LABELS, WORK_TRACE_STATUS, WorkspaceMark, WorkspaceReorderDialog, WorkspaceSwitcher, accentPresets, alertVariants, allTokens, ansi256ToColor, ansiLineText, appearancePreviewThemes, applyAppearanceFontSettings, badgeVariants, boardCardTitleVariants, boundText, breakdownRows, bubbleVariants, buildFileTree, builtinThemes, buttonVariants, calloutVariants, captureAnchor, cardVariants, centredSquare, chatNoticeVariants, checkMarkImageFile, checkpointLabel, checkpointStatus, citationLabel, citationName, clampFloatingPreviewPosition, clampSplitRatio, clampWindow, classifyFrame, closePane, cn, colorTokens, computeLayoutFrames, confirmationOutcome, contextLabel, contextLevel, contextLevelWord, contextPercent, contextShort, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countChanges, countLeaves, countLines, createAnsiParser, createAppMenuItems, createDeferredTooltip, createLayoutState, createPoll, createVersionedPersistence, cva, decisionReason, dedentLines, defaultDarkThemeId, defaultLightThemeId, defaultPreferenceStorage, defaultThemeSelection, densityTokens, describeChanges, describeCount, describeFrameGroup, designTokens, diffLineVariants, diffStats, diffTargetPath, editorPaletteFor, elevationTokens, entityIconVariants, expandAll, findModel, findTokenRanges, firstFailureKey, flattenFileTree, focusPane, fontOptions, fontSettingsBootstrapScript, fontZoomShortcut, formatAttachmentSize, formatBytes, formatCost, formatDuration, formatExact, formatReleaseDate, formatDuration$1 as formatTestDuration, formatToken, formatTokens, formatToolValue, frameLocation, groupModels, groupStackEntries, hasContextFigures, headingElement, headingVariants, indexFileTree, initialExpanded, initialsFrom, safeScriptStringLiteral as inlineScriptLiteral, isAwaitingAnswer, isCustomAccent, isCustomAccentValue, isFailedExit, isFigure, isMarkImageDataUrl, isPasteBlock, isPlainStyle, isQuestionAnswered, isShellIconKey, isThemeAccentId, itemVariants, kbdChordKeys, kbdGroupVariants, kbdVariants, keyedRows, layoutDepth, listLeaves, listedCounts, localStoragePersistence, markImageFromFile, markImageProblemCopy, markerVariants, messageCitations, modelSearchValue, monogram, motionTokens, movePane, moveTarget, moveWorkspace, nearestAnsiColor, needsSearch, neighborLeaf, nextCitationMode, nextSeq, normalizeAppearanceEditorFontSettings, normalizeAppearanceEditorFontSize, normalizeCustomAccent, normalizeEfforts, normalizeLayout, normalizePath, normalizeSurface, paintAccentRoles, parseAnsi, parseDiff, parseInline, parseMessageText, parseMessageTextIncremental, parseStackTrace, partitionQueue, placeCitationMarkers, plainTextFromMarkdown, platformModifierKey, pruneBlocks, quarantineRecord, radiusTokens, readLegacyValue, readVersionedRecord, reasoningTitle, recollapsePastes, reconcileCounts, recoveryEnvelope, recoveryKeyFor, remapCarriedBlocks, resizeFloatingPreview, resizeSplit, resolveAccentPreset, resolveAccentRoles, resolveColors, resolveEffort, resolveFloatingPreviewFrame, resolveShellIcon, resolveSurface, resolveSurfaceState, resolveVariant, resolvedDensity, restoreAnchor, restoreControl, restoreDialogCopy, revealInWindow, safeHref, safePreviewSrc, safeSourceUrl, searchShortcutKeyshortcuts, searchShortcutLabel, settleDecision, sheetVariants, shellIconEntries, shellIconLabel, shouldCollapse, sidebarNavItemClass, sidebarNavItemStateClass, sourceHost, sourceTitle, sourcesLabel, splitLocation, splitPane, splitPaneBalanced, statusDotVariants, stepAppearanceFontSizes, stepCountLabel, stripTrailingBlankLines, suiteKey, suiteState, surfaceAlpha, surfaceInteractive, swapPanes, taskProgress, taskProgressLabel, terminalCssVariables, terminalStatusLabel, testKey, textElement, textVariants, textareaVariants, themeAccentsFor, themeById, themeCssVariables, themeFamilies, themeRecordById, themeRecords, themeScript, themeSurfaces, themesForAppearance, toast, toaster, toggleVariants, tokenRangeAt, tokensAsHex, transcriptDisclosureKey, typeaheadIndex, typographyTokens, undoClosePane, undocumentedTokenAliases, useOptionalTheme, useSideRail, useTheme, validateTheme, validateThemeRegistry, variantFromRecord, withAccent, wrapIndex, writeClipboardText, writeVersionedRecord, zIndexTokens };
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../src/lib/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAI3E,iFAAiF;AACjF,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqCrE;AAED,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,OAAO,CAAA;AAEtC,MAAM,MAAM,YAAY,GAAG;IACzB,2EAA2E;IAC3E,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACzB,iEAAiE;IACjE,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACzB,uEAAuE;IACvE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACrC,CAAA;AAED,2FAA2F;AAC3F,wBAAgB,kBAAkB,IAAI,YAAY,CA0BjD"}
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../src/lib/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAI3E,iFAAiF;AACjF,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqCrE;AAED,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,OAAO,CAAA;AAEtC,MAAM,MAAM,YAAY,GAAG;IACzB,2EAA2E;IAC3E,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACzB,iEAAiE;IACjE,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACzB,uEAAuE;IACvE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACrC,CAAA;AAED,2FAA2F;AAC3F,wBAAgB,kBAAkB,IAAI,YAAY,CA8BjD"}
@@ -41,17 +41,20 @@ function createCopyFeedback() {
41
41
  if (timer !== void 0) clearTimeout(timer);
42
42
  timer = void 0;
43
43
  };
44
+ let latest = 0;
44
45
  if (getOwner()) onCleanup(clear);
45
46
  return {
46
47
  copied,
47
48
  failed,
48
49
  async copy(text) {
50
+ const attempt = ++latest;
49
51
  let ok = true;
50
52
  try {
51
53
  await writeClipboardText(text);
52
54
  } catch {
53
55
  ok = false;
54
56
  }
57
+ if (attempt !== latest) return ok;
55
58
  clear();
56
59
  setCopied(ok);
57
60
  setFailed(!ok);
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.js","names":[],"sources":["../../src/lib/clipboard.ts"],"sourcesContent":["import { createSignal, getOwner, onCleanup, type Accessor } from 'solid-js'\n\nconst CLIPBOARD_UNAVAILABLE = 'Clipboard is unavailable in this WebView'\n\n/** Writes text with the async Clipboard API, falling back for older WebViews. */\nexport async function writeClipboardText(value: string): Promise<void> {\n if (typeof navigator !== 'undefined' && typeof navigator.clipboard?.writeText === 'function') {\n await navigator.clipboard.writeText(value)\n return\n }\n\n if (typeof document === 'undefined' || !document.body) {\n throw new Error(CLIPBOARD_UNAVAILABLE)\n }\n\n const previousFocus = document.activeElement\n const textarea = document.createElement('textarea')\n textarea.value = value\n textarea.setAttribute('readonly', '')\n textarea.setAttribute('aria-hidden', 'true')\n textarea.tabIndex = -1\n textarea.style.position = 'fixed'\n textarea.style.opacity = '0'\n document.body.appendChild(textarea)\n\n let copied = false\n try {\n textarea.focus({ preventScroll: true })\n textarea.select()\n copied = typeof document.execCommand === 'function' && document.execCommand('copy')\n } finally {\n textarea.remove()\n if (previousFocus instanceof HTMLElement && previousFocus.isConnected) {\n try {\n previousFocus.focus({ preventScroll: true })\n } catch {\n // A host may revoke focus during the copy; preserve the clipboard outcome.\n }\n }\n }\n\n if (!copied) throw new Error(CLIPBOARD_UNAVAILABLE)\n}\n\n/** How long a control shows its \"Copied\" state after a successful copy. */\nexport const COPIED_FEEDBACK_MS = 1500\n\nexport type CopyFeedback = {\n /** True for {@link COPIED_FEEDBACK_MS} after the latest copy succeeded. */\n copied: Accessor<boolean>\n /** True after the latest copy failed, until the next attempt. */\n failed: Accessor<boolean>\n /** Copies `text` and resolves to whether the clipboard accepted it. */\n copy(text: string): Promise<boolean>\n}\n\n/** A copy control's state: the attempt, its outcome, and a \"Copied\" that resets itself. */\nexport function createCopyFeedback(): CopyFeedback {\n const [copied, setCopied] = createSignal(false)\n const [failed, setFailed] = createSignal(false)\n let timer: ReturnType<typeof setTimeout> | undefined\n const clear = () => {\n if (timer !== undefined) clearTimeout(timer)\n timer = undefined\n }\n if (getOwner()) onCleanup(clear)\n return {\n copied,\n failed,\n async copy(text) {\n let ok = true\n try {\n await writeClipboardText(text)\n } catch {\n ok = false\n }\n clear()\n setCopied(ok)\n setFailed(!ok)\n if (ok) timer = setTimeout(() => setCopied(false), COPIED_FEEDBACK_MS)\n return ok\n },\n }\n}\n"],"mappings":";;AAEA,IAAM,wBAAwB;;AAG9B,eAAsB,mBAAmB,OAA8B;CACrE,IAAI,OAAO,cAAc,eAAe,OAAO,UAAU,WAAW,cAAc,YAAY;EAC5F,MAAM,UAAU,UAAU,UAAU,KAAK;EACzC;CACF;CAEA,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,MAC/C,MAAM,IAAI,MAAM,qBAAqB;CAGvC,MAAM,gBAAgB,SAAS;CAC/B,MAAM,WAAW,SAAS,cAAc,UAAU;CAClD,SAAS,QAAQ;CACjB,SAAS,aAAa,YAAY,EAAE;CACpC,SAAS,aAAa,eAAe,MAAM;CAC3C,SAAS,WAAW;CACpB,SAAS,MAAM,WAAW;CAC1B,SAAS,MAAM,UAAU;CACzB,SAAS,KAAK,YAAY,QAAQ;CAElC,IAAI,SAAS;CACb,IAAI;EACF,SAAS,MAAM,EAAE,eAAe,KAAK,CAAC;EACtC,SAAS,OAAO;EAChB,SAAS,OAAO,SAAS,gBAAgB,cAAc,SAAS,YAAY,MAAM;CACpF,UAAU;EACR,SAAS,OAAO;EAChB,IAAI,yBAAyB,eAAe,cAAc,aACxD,IAAI;GACF,cAAc,MAAM,EAAE,eAAe,KAAK,CAAC;EAC7C,QAAQ,CAER;CAEJ;CAEA,IAAI,CAAC,QAAQ,MAAM,IAAI,MAAM,qBAAqB;AACpD;;AAGA,IAAa,qBAAqB;;AAYlC,SAAgB,qBAAmC;CACjD,MAAM,CAAC,QAAQ,aAAa,aAAa,KAAK;CAC9C,MAAM,CAAC,QAAQ,aAAa,aAAa,KAAK;CAC9C,IAAI;CACJ,MAAM,cAAc;EAClB,IAAI,UAAU,KAAA,GAAW,aAAa,KAAK;EAC3C,QAAQ,KAAA;CACV;CACA,IAAI,SAAS,GAAG,UAAU,KAAK;CAC/B,OAAO;EACL;EACA;EACA,MAAM,KAAK,MAAM;GACf,IAAI,KAAK;GACT,IAAI;IACF,MAAM,mBAAmB,IAAI;GAC/B,QAAQ;IACN,KAAK;GACP;GACA,MAAM;GACN,UAAU,EAAE;GACZ,UAAU,CAAC,EAAE;GACb,IAAI,IAAI,QAAQ,iBAAiB,UAAU,KAAK,GAAG,kBAAkB;GACrE,OAAO;EACT;CACF;AACF"}
1
+ {"version":3,"file":"clipboard.js","names":[],"sources":["../../src/lib/clipboard.ts"],"sourcesContent":["import { createSignal, getOwner, onCleanup, type Accessor } from 'solid-js'\n\nconst CLIPBOARD_UNAVAILABLE = 'Clipboard is unavailable in this WebView'\n\n/** Writes text with the async Clipboard API, falling back for older WebViews. */\nexport async function writeClipboardText(value: string): Promise<void> {\n if (typeof navigator !== 'undefined' && typeof navigator.clipboard?.writeText === 'function') {\n await navigator.clipboard.writeText(value)\n return\n }\n\n if (typeof document === 'undefined' || !document.body) {\n throw new Error(CLIPBOARD_UNAVAILABLE)\n }\n\n const previousFocus = document.activeElement\n const textarea = document.createElement('textarea')\n textarea.value = value\n textarea.setAttribute('readonly', '')\n textarea.setAttribute('aria-hidden', 'true')\n textarea.tabIndex = -1\n textarea.style.position = 'fixed'\n textarea.style.opacity = '0'\n document.body.appendChild(textarea)\n\n let copied = false\n try {\n textarea.focus({ preventScroll: true })\n textarea.select()\n copied = typeof document.execCommand === 'function' && document.execCommand('copy')\n } finally {\n textarea.remove()\n if (previousFocus instanceof HTMLElement && previousFocus.isConnected) {\n try {\n previousFocus.focus({ preventScroll: true })\n } catch {\n // A host may revoke focus during the copy; preserve the clipboard outcome.\n }\n }\n }\n\n if (!copied) throw new Error(CLIPBOARD_UNAVAILABLE)\n}\n\n/** How long a control shows its \"Copied\" state after a successful copy. */\nexport const COPIED_FEEDBACK_MS = 1500\n\nexport type CopyFeedback = {\n /** True for {@link COPIED_FEEDBACK_MS} after the latest copy succeeded. */\n copied: Accessor<boolean>\n /** True after the latest copy failed, until the next attempt. */\n failed: Accessor<boolean>\n /** Copies `text` and resolves to whether the clipboard accepted it. */\n copy(text: string): Promise<boolean>\n}\n\n/** A copy control's state: the attempt, its outcome, and a \"Copied\" that resets itself. */\nexport function createCopyFeedback(): CopyFeedback {\n const [copied, setCopied] = createSignal(false)\n const [failed, setFailed] = createSignal(false)\n let timer: ReturnType<typeof setTimeout> | undefined\n const clear = () => {\n if (timer !== undefined) clearTimeout(timer)\n timer = undefined\n }\n // Copies can finish out of order; only the newest one may set the feedback.\n let latest = 0\n if (getOwner()) onCleanup(clear)\n return {\n copied,\n failed,\n async copy(text) {\n const attempt = ++latest\n let ok = true\n try {\n await writeClipboardText(text)\n } catch {\n ok = false\n }\n if (attempt !== latest) return ok\n clear()\n setCopied(ok)\n setFailed(!ok)\n if (ok) timer = setTimeout(() => setCopied(false), COPIED_FEEDBACK_MS)\n return ok\n },\n }\n}\n"],"mappings":";;AAEA,IAAM,wBAAwB;;AAG9B,eAAsB,mBAAmB,OAA8B;CACrE,IAAI,OAAO,cAAc,eAAe,OAAO,UAAU,WAAW,cAAc,YAAY;EAC5F,MAAM,UAAU,UAAU,UAAU,KAAK;EACzC;CACF;CAEA,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,MAC/C,MAAM,IAAI,MAAM,qBAAqB;CAGvC,MAAM,gBAAgB,SAAS;CAC/B,MAAM,WAAW,SAAS,cAAc,UAAU;CAClD,SAAS,QAAQ;CACjB,SAAS,aAAa,YAAY,EAAE;CACpC,SAAS,aAAa,eAAe,MAAM;CAC3C,SAAS,WAAW;CACpB,SAAS,MAAM,WAAW;CAC1B,SAAS,MAAM,UAAU;CACzB,SAAS,KAAK,YAAY,QAAQ;CAElC,IAAI,SAAS;CACb,IAAI;EACF,SAAS,MAAM,EAAE,eAAe,KAAK,CAAC;EACtC,SAAS,OAAO;EAChB,SAAS,OAAO,SAAS,gBAAgB,cAAc,SAAS,YAAY,MAAM;CACpF,UAAU;EACR,SAAS,OAAO;EAChB,IAAI,yBAAyB,eAAe,cAAc,aACxD,IAAI;GACF,cAAc,MAAM,EAAE,eAAe,KAAK,CAAC;EAC7C,QAAQ,CAER;CAEJ;CAEA,IAAI,CAAC,QAAQ,MAAM,IAAI,MAAM,qBAAqB;AACpD;;AAGA,IAAa,qBAAqB;;AAYlC,SAAgB,qBAAmC;CACjD,MAAM,CAAC,QAAQ,aAAa,aAAa,KAAK;CAC9C,MAAM,CAAC,QAAQ,aAAa,aAAa,KAAK;CAC9C,IAAI;CACJ,MAAM,cAAc;EAClB,IAAI,UAAU,KAAA,GAAW,aAAa,KAAK;EAC3C,QAAQ,KAAA;CACV;CAEA,IAAI,SAAS;CACb,IAAI,SAAS,GAAG,UAAU,KAAK;CAC/B,OAAO;EACL;EACA;EACA,MAAM,KAAK,MAAM;GACf,MAAM,UAAU,EAAE;GAClB,IAAI,KAAK;GACT,IAAI;IACF,MAAM,mBAAmB,IAAI;GAC/B,QAAQ;IACN,KAAK;GACP;GACA,IAAI,YAAY,QAAQ,OAAO;GAC/B,MAAM;GACN,UAAU,EAAE;GACZ,UAAU,CAAC,EAAE;GACb,IAAI,IAAI,QAAQ,iBAAiB,UAAU,KAAK,GAAG,kBAAkB;GACrE,OAAO;EACT;CACF;AACF"}
@@ -0,0 +1,18 @@
1
+ import type { JSX } from 'solid-js';
2
+ /**
3
+ * The same lucide icon, built by cloning a template instead of by components.
4
+ *
5
+ * lucide-solid builds every icon as a `<For>` of `<Dynamic>` children, one
6
+ * component and one spread effect per path. A plain six-path icon cost as much
7
+ * to mount as a Button, and a transcript row spent a quarter of its mount time
8
+ * in its avatar's icon. The paths never change, so they are drawn once per icon
9
+ * and cloned after that; only the outer `<svg>` takes props.
10
+ *
11
+ * The first instance renders the lucide component itself and records what it
12
+ * drew, so the markup (attributes, class names, path keys) stays exactly
13
+ * lucide's. Props that change the drawing (`size`, `color`, `strokeWidth`,
14
+ * `absoluteStrokeWidth`) or a `LucideProvider` are not supported: those callers
15
+ * keep the lucide component. On the server the lucide component renders as is.
16
+ */
17
+ export declare function fastIcon<T extends (props: never) => JSX.Element>(LucideIcon: T): T;
18
+ //# sourceMappingURL=fast-icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fast-icon.d.ts","sourceRoot":"","sources":["../../src/lib/fast-icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAoBnC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,CA+BlF"}
@@ -0,0 +1,75 @@
1
+ import { isServer, spread } from "solid-js/web";
2
+ import { createRoot, mergeProps as mergeProps$1, splitProps } from "solid-js";
3
+ // src/lib/fast-icon.ts
4
+ var DRAWING = [
5
+ "size",
6
+ "color",
7
+ "strokeWidth",
8
+ "absoluteStrokeWidth",
9
+ "nonScalingStroke",
10
+ "width",
11
+ "height"
12
+ ];
13
+ var captured = /* @__PURE__ */ new WeakMap();
14
+ var A11Y = /^(aria-|role$|title$)/;
15
+ /**
16
+ * The same lucide icon, built by cloning a template instead of by components.
17
+ *
18
+ * lucide-solid builds every icon as a `<For>` of `<Dynamic>` children, one
19
+ * component and one spread effect per path. A plain six-path icon cost as much
20
+ * to mount as a Button, and a transcript row spent a quarter of its mount time
21
+ * in its avatar's icon. The paths never change, so they are drawn once per icon
22
+ * and cloned after that; only the outer `<svg>` takes props.
23
+ *
24
+ * The first instance renders the lucide component itself and records what it
25
+ * drew, so the markup (attributes, class names, path keys) stays exactly
26
+ * lucide's. Props that change the drawing (`size`, `color`, `strokeWidth`,
27
+ * `absoluteStrokeWidth`) or a `LucideProvider` are not supported: those callers
28
+ * keep the lucide component. On the server the lucide component renders as is.
29
+ */
30
+ function fastIcon(LucideIcon) {
31
+ const Icon = LucideIcon;
32
+ const Fast = (props) => {
33
+ if (isServer || props.children !== void 0 || DRAWING.some((key) => key in props)) return Icon(props);
34
+ const template = capture(Icon);
35
+ const [local, rest] = splitProps(props, ["class"]);
36
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
37
+ let labelled = false;
38
+ for (const key in rest) if (A11Y.test(key)) labelled = true;
39
+ for (const [name, value] of template.attributes) svg.setAttribute(name, value);
40
+ svg.append(template.body.cloneNode(true));
41
+ spread(svg, mergeProps$1({
42
+ get class() {
43
+ return local.class ? `${template.className} ${local.class}` : template.className;
44
+ },
45
+ ...labelled ? {} : { "aria-hidden": "true" }
46
+ }, rest), true, true);
47
+ return svg;
48
+ };
49
+ return Fast;
50
+ }
51
+ function capture(Icon) {
52
+ const known = captured.get(Icon);
53
+ if (known) return known;
54
+ const svg = createRoot((dispose) => {
55
+ const element = Icon({});
56
+ dispose();
57
+ return element;
58
+ });
59
+ const attributes = [];
60
+ let className = "";
61
+ for (const attribute of Array.from(svg.attributes)) if (attribute.name === "class") className = attribute.value;
62
+ else if (attribute.name !== "aria-hidden") attributes.push([attribute.name, attribute.value]);
63
+ const body = document.createDocumentFragment();
64
+ for (const child of Array.from(svg.childNodes)) body.append(child.cloneNode(true));
65
+ const result = {
66
+ attributes,
67
+ className,
68
+ body
69
+ };
70
+ captured.set(Icon, result);
71
+ return result;
72
+ }
73
+ export { fastIcon };
74
+
75
+ //# sourceMappingURL=fast-icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fast-icon.js","names":["mergeProps"],"sources":["../../src/lib/fast-icon.ts"],"sourcesContent":["import type { JSX } from 'solid-js'\nimport { createRoot, mergeProps, splitProps } from 'solid-js'\nimport { isServer, spread } from 'solid-js/web'\n\ntype IconComponent = (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element\n// lucide's own drawing props: an icon given one keeps lucide's component.\nconst DRAWING = [\n 'size',\n 'color',\n 'strokeWidth',\n 'absoluteStrokeWidth',\n 'nonScalingStroke',\n 'width',\n 'height',\n]\ntype Captured = { attributes: [string, string][]; className: string; body: DocumentFragment }\n\nconst captured = new WeakMap<IconComponent, Captured>()\nconst A11Y = /^(aria-|role$|title$)/\n\n/**\n * The same lucide icon, built by cloning a template instead of by components.\n *\n * lucide-solid builds every icon as a `<For>` of `<Dynamic>` children, one\n * component and one spread effect per path. A plain six-path icon cost as much\n * to mount as a Button, and a transcript row spent a quarter of its mount time\n * in its avatar's icon. The paths never change, so they are drawn once per icon\n * and cloned after that; only the outer `<svg>` takes props.\n *\n * The first instance renders the lucide component itself and records what it\n * drew, so the markup (attributes, class names, path keys) stays exactly\n * lucide's. Props that change the drawing (`size`, `color`, `strokeWidth`,\n * `absoluteStrokeWidth`) or a `LucideProvider` are not supported: those callers\n * keep the lucide component. On the server the lucide component renders as is.\n */\nexport function fastIcon<T extends (props: never) => JSX.Element>(LucideIcon: T): T {\n const Icon = LucideIcon as unknown as IconComponent\n const Fast = (props: JSX.SvgSVGAttributes<SVGSVGElement>) => {\n // Children (a <title>), drawing props and the server keep lucide's component.\n if (isServer || props.children !== undefined || DRAWING.some((key) => key in props))\n return Icon(props)\n const template = capture(Icon)\n const [local, rest] = splitProps(props, ['class'])\n const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg')\n let labelled = false\n for (const key in rest) if (A11Y.test(key)) labelled = true\n for (const [name, value] of template.attributes) svg.setAttribute(name, value)\n svg.append(template.body.cloneNode(true))\n // In lucide's order: its attributes, the class, aria-hidden, then the caller's.\n spread(\n svg,\n mergeProps(\n {\n get class() {\n return local.class ? `${template.className} ${local.class}` : template.className\n },\n ...(labelled ? {} : { 'aria-hidden': 'true' }),\n },\n rest\n ) as never,\n true,\n true\n )\n return svg as unknown as JSX.Element\n }\n return Fast as unknown as T\n}\n\nfunction capture(Icon: IconComponent): Captured {\n const known = captured.get(Icon)\n if (known) return known\n const svg = createRoot((dispose) => {\n const element = Icon({}) as unknown as SVGSVGElement\n dispose()\n return element\n })\n const attributes: [string, string][] = []\n let className = ''\n for (const attribute of Array.from(svg.attributes)) {\n if (attribute.name === 'class') className = attribute.value\n else if (attribute.name !== 'aria-hidden') attributes.push([attribute.name, attribute.value])\n }\n const body = document.createDocumentFragment()\n for (const child of Array.from(svg.childNodes)) body.append(child.cloneNode(true))\n const result = { attributes, className, body }\n captured.set(Icon, result)\n return result\n}\n"],"mappings":";;;AAMA,IAAM,UAAU;CACd;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAGA,IAAM,2BAAW,IAAI,QAAiC;AACtD,IAAM,OAAO;;;;;;;;;;;;;;;;AAiBb,SAAgB,SAAkD,YAAkB;CAClF,MAAM,OAAO;CACb,MAAM,QAAQ,UAA+C;EAE3D,IAAI,YAAY,MAAM,aAAa,KAAA,KAAa,QAAQ,MAAM,QAAQ,OAAO,KAAK,GAChF,OAAO,KAAK,KAAK;EACnB,MAAM,WAAW,QAAQ,IAAI;EAC7B,MAAM,CAAC,OAAO,QAAQ,WAAW,OAAO,CAAC,OAAO,CAAC;EACjD,MAAM,MAAM,SAAS,gBAAgB,8BAA8B,KAAK;EACxE,IAAI,WAAW;EACf,KAAK,MAAM,OAAO,MAAM,IAAI,KAAK,KAAK,GAAG,GAAG,WAAW;EACvD,KAAK,MAAM,CAAC,MAAM,UAAU,SAAS,YAAY,IAAI,aAAa,MAAM,KAAK;EAC7E,IAAI,OAAO,SAAS,KAAK,UAAU,IAAI,CAAC;EAExC,OACE,KACAA,aACE;GACE,IAAI,QAAQ;IACV,OAAO,MAAM,QAAQ,GAAG,SAAS,UAAU,GAAG,MAAM,UAAU,SAAS;GACzE;GACA,GAAI,WAAW,CAAC,IAAI,EAAE,eAAe,OAAO;EAC9C,GACA,IACF,GACA,MACA,IACF;EACA,OAAO;CACT;CACA,OAAO;AACT;AAEA,SAAS,QAAQ,MAA+B;CAC9C,MAAM,QAAQ,SAAS,IAAI,IAAI;CAC/B,IAAI,OAAO,OAAO;CAClB,MAAM,MAAM,YAAY,YAAY;EAClC,MAAM,UAAU,KAAK,CAAC,CAAC;EACvB,QAAQ;EACR,OAAO;CACT,CAAC;CACD,MAAM,aAAiC,CAAC;CACxC,IAAI,YAAY;CAChB,KAAK,MAAM,aAAa,MAAM,KAAK,IAAI,UAAU,GAC/C,IAAI,UAAU,SAAS,SAAS,YAAY,UAAU;MACjD,IAAI,UAAU,SAAS,eAAe,WAAW,KAAK,CAAC,UAAU,MAAM,UAAU,KAAK,CAAC;CAE9F,MAAM,OAAO,SAAS,uBAAuB;CAC7C,KAAK,MAAM,SAAS,MAAM,KAAK,IAAI,UAAU,GAAG,KAAK,OAAO,MAAM,UAAU,IAAI,CAAC;CACjF,MAAM,SAAS;EAAE;EAAY;EAAW;CAAK;CAC7C,SAAS,IAAI,MAAM,MAAM;CACzB,OAAO;AACT"}
@@ -29,7 +29,7 @@ export declare function useFormFieldControl(kind: FormFieldControlKind, props?:
29
29
  'aria-errormessage'?: string;
30
30
  }): {
31
31
  id: string | undefined;
32
- 'aria-labelledby': string | undefined;
32
+ readonly 'aria-labelledby': string | undefined;
33
33
  readonly 'aria-describedby': string | undefined;
34
34
  readonly 'aria-invalid': "false" | "grammar" | "spelling" | "true" | boolean | undefined;
35
35
  readonly 'aria-errormessage': string | undefined;
@@ -29,7 +29,9 @@ function useFormFieldControl(kind, props = {}) {
29
29
  const groupedDescendant = field.group() && kind !== "group";
30
30
  return {
31
31
  id: groupedDescendant ? props.id : field.registerControlId(props.id),
32
- "aria-labelledby": props["aria-label"] || props["aria-labelledby"] ? props["aria-labelledby"] : groupedDescendant ? void 0 : field.labelId,
32
+ get "aria-labelledby"() {
33
+ return props["aria-label"] || props["aria-labelledby"] ? props["aria-labelledby"] : groupedDescendant ? void 0 : field.labelId;
34
+ },
33
35
  get "aria-describedby"() {
34
36
  return mergeIds(props["aria-describedby"], field.describedBy());
35
37
  },
@@ -1 +1 @@
1
- {"version":3,"file":"form-field.js","names":[],"sources":["../../src/lib/form-field.ts"],"sourcesContent":["import type { ComponentProps } from 'solid-js'\nimport { createContext, createSignal, useContext } from 'solid-js'\n\nexport type FormFieldControlKind = 'control' | 'group'\n\nexport type FormFieldContextValue = {\n group: () => boolean\n labelId: string\n controlId: () => string\n registerControlId: (requestedId?: string) => string | undefined\n describedBy: () => string | undefined\n errorId: () => string | undefined\n invalid: () => boolean\n}\n\nexport const FormFieldContext = createContext<FormFieldContextValue>()\n\nfunction mergeIds(...values: Array<string | undefined>) {\n return (\n [...new Set(values.flatMap((value) => value?.split(/\\s+/).filter(Boolean) ?? []))].join(' ') ||\n undefined\n )\n}\n\nexport function createFormFieldContext(props: {\n controlId?: string\n defaultControlId: string\n labelId: string\n descriptionId?: string\n errorId?: string\n hint: () => string | undefined\n error: () => string | undefined\n group: () => boolean\n}): FormFieldContextValue {\n const [controlId, setControlId] = createSignal(props.controlId ?? props.defaultControlId)\n\n return {\n group: props.group,\n labelId: props.labelId,\n controlId,\n registerControlId(requestedId) {\n if (props.group() && !requestedId) return undefined\n if (requestedId) {\n setControlId(requestedId)\n return requestedId\n }\n return props.group() ? undefined : controlId()\n },\n describedBy: () =>\n [props.hint() ? props.descriptionId : undefined, props.error() ? props.errorId : undefined]\n .filter((id): id is string => Boolean(id))\n .join(' ') || undefined,\n errorId: () => (props.error() ? props.errorId : undefined),\n invalid: () => Boolean(props.error()),\n }\n}\n\nexport function useFormFieldControl(\n kind: FormFieldControlKind,\n props: {\n id?: string\n 'aria-label'?: string\n 'aria-labelledby'?: string\n 'aria-describedby'?: string\n 'aria-invalid'?: ComponentProps<'input'>['aria-invalid']\n 'aria-errormessage'?: string\n } = {}\n) {\n const field = useContext(FormFieldContext)\n if (!field) return null\n\n const groupedDescendant = field.group() && kind !== 'group'\n const id = groupedDescendant ? props.id : field.registerControlId(props.id)\n const labelledBy =\n props['aria-label'] || props['aria-labelledby']\n ? props['aria-labelledby']\n : groupedDescendant\n ? undefined\n : field.labelId\n return {\n id,\n 'aria-labelledby': labelledBy,\n get 'aria-describedby'() {\n return mergeIds(props['aria-describedby'], field.describedBy())\n },\n get 'aria-invalid'() {\n return props['aria-invalid'] ?? (field.invalid() || undefined)\n },\n get 'aria-errormessage'() {\n return props['aria-errormessage'] ?? field.errorId()\n },\n }\n}\n"],"mappings":";;AAeA,IAAa,mBAAmB,cAAqC;AAErE,SAAS,SAAS,GAAG,QAAmC;CACtD,OACE,CAAC,GAAG,IAAI,IAAI,OAAO,SAAS,UAAU,OAAO,MAAM,KAAK,CAAC,CAAC,OAAO,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,KAC3F,KAAA;AAEJ;AAEA,SAAgB,uBAAuB,OASb;CACxB,MAAM,CAAC,WAAW,gBAAgB,aAAa,MAAM,aAAa,MAAM,gBAAgB;CAExF,OAAO;EACL,OAAO,MAAM;EACb,SAAS,MAAM;EACf;EACA,kBAAkB,aAAa;GAC7B,IAAI,MAAM,MAAM,KAAK,CAAC,aAAa,OAAO,KAAA;GAC1C,IAAI,aAAa;IACf,aAAa,WAAW;IACxB,OAAO;GACT;GACA,OAAO,MAAM,MAAM,IAAI,KAAA,IAAY,UAAU;EAC/C;EACA,mBACE,CAAC,MAAM,KAAK,IAAI,MAAM,gBAAgB,KAAA,GAAW,MAAM,MAAM,IAAI,MAAM,UAAU,KAAA,CAAS,CAAC,CACxF,QAAQ,OAAqB,QAAQ,EAAE,CAAC,CAAC,CACzC,KAAK,GAAG,KAAK,KAAA;EAClB,eAAgB,MAAM,MAAM,IAAI,MAAM,UAAU,KAAA;EAChD,eAAe,QAAQ,MAAM,MAAM,CAAC;CACtC;AACF;AAEA,SAAgB,oBACd,MACA,QAOI,CAAC,GACL;CACA,MAAM,QAAQ,WAAW,gBAAgB;CACzC,IAAI,CAAC,OAAO,OAAO;CAEnB,MAAM,oBAAoB,MAAM,MAAM,KAAK,SAAS;CAQpD,OAAO;EACL,IARS,oBAAoB,MAAM,KAAK,MAAM,kBAAkB,MAAM,EAAE;EASxE,mBAPA,MAAM,iBAAiB,MAAM,qBACzB,MAAM,qBACN,oBACE,KAAA,IACA,MAAM;EAIZ,IAAI,qBAAqB;GACvB,OAAO,SAAS,MAAM,qBAAqB,MAAM,YAAY,CAAC;EAChE;EACA,IAAI,iBAAiB;GACnB,OAAO,MAAM,oBAAoB,MAAM,QAAQ,KAAK,KAAA;EACtD;EACA,IAAI,sBAAsB;GACxB,OAAO,MAAM,wBAAwB,MAAM,QAAQ;EACrD;CACF;AACF"}
1
+ {"version":3,"file":"form-field.js","names":[],"sources":["../../src/lib/form-field.ts"],"sourcesContent":["import type { ComponentProps } from 'solid-js'\nimport { createContext, createSignal, useContext } from 'solid-js'\n\nexport type FormFieldControlKind = 'control' | 'group'\n\nexport type FormFieldContextValue = {\n group: () => boolean\n labelId: string\n controlId: () => string\n registerControlId: (requestedId?: string) => string | undefined\n describedBy: () => string | undefined\n errorId: () => string | undefined\n invalid: () => boolean\n}\n\nexport const FormFieldContext = createContext<FormFieldContextValue>()\n\nfunction mergeIds(...values: Array<string | undefined>) {\n return (\n [...new Set(values.flatMap((value) => value?.split(/\\s+/).filter(Boolean) ?? []))].join(' ') ||\n undefined\n )\n}\n\nexport function createFormFieldContext(props: {\n controlId?: string\n defaultControlId: string\n labelId: string\n descriptionId?: string\n errorId?: string\n hint: () => string | undefined\n error: () => string | undefined\n group: () => boolean\n}): FormFieldContextValue {\n const [controlId, setControlId] = createSignal(props.controlId ?? props.defaultControlId)\n\n return {\n group: props.group,\n labelId: props.labelId,\n controlId,\n registerControlId(requestedId) {\n if (props.group() && !requestedId) return undefined\n if (requestedId) {\n setControlId(requestedId)\n return requestedId\n }\n return props.group() ? undefined : controlId()\n },\n describedBy: () =>\n [props.hint() ? props.descriptionId : undefined, props.error() ? props.errorId : undefined]\n .filter((id): id is string => Boolean(id))\n .join(' ') || undefined,\n errorId: () => (props.error() ? props.errorId : undefined),\n invalid: () => Boolean(props.error()),\n }\n}\n\nexport function useFormFieldControl(\n kind: FormFieldControlKind,\n props: {\n id?: string\n 'aria-label'?: string\n 'aria-labelledby'?: string\n 'aria-describedby'?: string\n 'aria-invalid'?: ComponentProps<'input'>['aria-invalid']\n 'aria-errormessage'?: string\n } = {}\n) {\n const field = useContext(FormFieldContext)\n if (!field) return null\n\n const groupedDescendant = field.group() && kind !== 'group'\n const id = groupedDescendant ? props.id : field.registerControlId(props.id)\n return {\n id,\n get 'aria-labelledby'() {\n return props['aria-label'] || props['aria-labelledby']\n ? props['aria-labelledby']\n : groupedDescendant\n ? undefined\n : field.labelId\n },\n get 'aria-describedby'() {\n return mergeIds(props['aria-describedby'], field.describedBy())\n },\n get 'aria-invalid'() {\n return props['aria-invalid'] ?? (field.invalid() || undefined)\n },\n get 'aria-errormessage'() {\n return props['aria-errormessage'] ?? field.errorId()\n },\n }\n}\n"],"mappings":";;AAeA,IAAa,mBAAmB,cAAqC;AAErE,SAAS,SAAS,GAAG,QAAmC;CACtD,OACE,CAAC,GAAG,IAAI,IAAI,OAAO,SAAS,UAAU,OAAO,MAAM,KAAK,CAAC,CAAC,OAAO,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,KAC3F,KAAA;AAEJ;AAEA,SAAgB,uBAAuB,OASb;CACxB,MAAM,CAAC,WAAW,gBAAgB,aAAa,MAAM,aAAa,MAAM,gBAAgB;CAExF,OAAO;EACL,OAAO,MAAM;EACb,SAAS,MAAM;EACf;EACA,kBAAkB,aAAa;GAC7B,IAAI,MAAM,MAAM,KAAK,CAAC,aAAa,OAAO,KAAA;GAC1C,IAAI,aAAa;IACf,aAAa,WAAW;IACxB,OAAO;GACT;GACA,OAAO,MAAM,MAAM,IAAI,KAAA,IAAY,UAAU;EAC/C;EACA,mBACE,CAAC,MAAM,KAAK,IAAI,MAAM,gBAAgB,KAAA,GAAW,MAAM,MAAM,IAAI,MAAM,UAAU,KAAA,CAAS,CAAC,CACxF,QAAQ,OAAqB,QAAQ,EAAE,CAAC,CAAC,CACzC,KAAK,GAAG,KAAK,KAAA;EAClB,eAAgB,MAAM,MAAM,IAAI,MAAM,UAAU,KAAA;EAChD,eAAe,QAAQ,MAAM,MAAM,CAAC;CACtC;AACF;AAEA,SAAgB,oBACd,MACA,QAOI,CAAC,GACL;CACA,MAAM,QAAQ,WAAW,gBAAgB;CACzC,IAAI,CAAC,OAAO,OAAO;CAEnB,MAAM,oBAAoB,MAAM,MAAM,KAAK,SAAS;CAEpD,OAAO;EACL,IAFS,oBAAoB,MAAM,KAAK,MAAM,kBAAkB,MAAM,EAAE;EAGxE,IAAI,oBAAoB;GACtB,OAAO,MAAM,iBAAiB,MAAM,qBAChC,MAAM,qBACN,oBACE,KAAA,IACA,MAAM;EACd;EACA,IAAI,qBAAqB;GACvB,OAAO,SAAS,MAAM,qBAAqB,MAAM,YAAY,CAAC;EAChE;EACA,IAAI,iBAAiB;GACnB,OAAO,MAAM,oBAAoB,MAAM,QAAQ,KAAK,KAAA;EACtD;EACA,IAAI,sBAAsB;GACxB,OAAO,MAAM,wBAAwB,MAAM,QAAQ;EACrD;CACF;AACF"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Watch an element's size through one ResizeObserver shared by every caller.
3
+ *
4
+ * A component that creates its own observer per instance pays for one observer
5
+ * object, one browser registration and one delivery callback per mount; a reply
6
+ * with a dozen code blocks made a dozen. The shared observer delivers every
7
+ * changed element in one batch per frame and calls each element's callback.
8
+ *
9
+ * Returns a function that stops watching. Outside a browser it does nothing.
10
+ */
11
+ type ResizeCallback = (entry: ResizeObserverEntry) => void;
12
+ export declare function observeResize(element: Element, callback: ResizeCallback): () => void;
13
+ export {};
14
+ //# sourceMappingURL=observe-resize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observe-resize.d.ts","sourceRoot":"","sources":["../../src/lib/observe-resize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,KAAK,cAAc,GAAG,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;AAK1D,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,GAAG,MAAM,IAAI,CAYpF"}
@@ -0,0 +1,19 @@
1
+ // src/lib/observe-resize.ts
2
+ var shared;
3
+ var callbacks = /* @__PURE__ */ new WeakMap();
4
+ function observeResize(element, callback) {
5
+ if (typeof ResizeObserver === "undefined") return () => {};
6
+ shared ??= new ResizeObserver((entries) => {
7
+ for (const entry of entries) callbacks.get(entry.target)?.(entry);
8
+ });
9
+ callbacks.set(element, callback);
10
+ shared.observe(element);
11
+ return () => {
12
+ if (callbacks.get(element) !== callback) return;
13
+ callbacks.delete(element);
14
+ shared?.unobserve(element);
15
+ };
16
+ }
17
+ export { observeResize };
18
+
19
+ //# sourceMappingURL=observe-resize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observe-resize.js","names":[],"sources":["../../src/lib/observe-resize.ts"],"sourcesContent":["/**\n * Watch an element's size through one ResizeObserver shared by every caller.\n *\n * A component that creates its own observer per instance pays for one observer\n * object, one browser registration and one delivery callback per mount; a reply\n * with a dozen code blocks made a dozen. The shared observer delivers every\n * changed element in one batch per frame and calls each element's callback.\n *\n * Returns a function that stops watching. Outside a browser it does nothing.\n */\ntype ResizeCallback = (entry: ResizeObserverEntry) => void\n\nlet shared: ResizeObserver | undefined\nconst callbacks = new WeakMap<Element, ResizeCallback>()\n\nexport function observeResize(element: Element, callback: ResizeCallback): () => void {\n if (typeof ResizeObserver === 'undefined') return () => {}\n shared ??= new ResizeObserver((entries) => {\n for (const entry of entries) callbacks.get(entry.target)?.(entry)\n })\n callbacks.set(element, callback)\n shared.observe(element)\n return () => {\n if (callbacks.get(element) !== callback) return\n callbacks.delete(element)\n shared?.unobserve(element)\n }\n}\n"],"mappings":";AAYA,IAAI;AACJ,IAAM,4BAAY,IAAI,QAAiC;AAEvD,SAAgB,cAAc,SAAkB,UAAsC;CACpF,IAAI,OAAO,mBAAmB,aAAa,aAAa,CAAC;CACzD,WAAW,IAAI,gBAAgB,YAAY;EACzC,KAAK,MAAM,SAAS,SAAS,UAAU,IAAI,MAAM,MAAM,CAAC,GAAG,KAAK;CAClE,CAAC;CACD,UAAU,IAAI,SAAS,QAAQ;CAC/B,OAAO,QAAQ,OAAO;CACtB,aAAa;EACX,IAAI,UAAU,IAAI,OAAO,MAAM,UAAU;EACzC,UAAU,OAAO,OAAO;EACxB,QAAQ,UAAU,OAAO;CAC3B;AACF"}
@@ -88,7 +88,7 @@ export declare const destructiveMenuItem = "border-s-2 border-destructive ps-1.5
88
88
  /** The label above a group of menu rows. */
89
89
  export declare const menuLabel = "px-2 py-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase";
90
90
  /** The chord drawn at a row's trailing edge: menus and the command palette. */
91
- export declare const menuShortcut = "text-muted-foreground ms-auto font-code text-code tracking-widest";
91
+ export declare const menuShortcut = "text-muted-foreground ms-auto text-xs tracking-widest";
92
92
  /** The rule between menu groups. */
93
93
  export declare const menuSeparator = "bg-border -mx-1 my-1 h-px";
94
94
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/lib/overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAEtD;+EAC+E;AAC/E,eAAO,MAAM,cAAc,iFACqD,CAAA;AAEhF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,4EACiD,CAAA;AAE3E;;;GAGG;AACH,eAAO,MAAM,YAAY,wDAAwD,CAAA;AAEjF,yEAAyE;AACzE,eAAO,MAAM,iBAAiB,6DAA6D,CAAA;AAE3F,gDAAgD;AAChD,eAAO,MAAM,YAAY,yFAC+D,CAAA;AAExF,+DAA+D;AAC/D,eAAO,MAAM,kBAAkB,oGACoE,CAAA;AAEnG,gDAAgD;AAChD,eAAO,MAAM,aAAa,qCAAqC,CAAA;AAE/D,+FAA+F;AAC/F,eAAO,MAAM,aAAa,2DAA2D,CAAA;AAErF,2CAA2C;AAC3C,eAAO,MAAM,kBAAkB,kCAAkC,CAAA;AAEjE,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,QAGkE,CAAA;AAEjG;;;;;GAKG;AACH,eAAO,MAAM,UAAU,+FACuE,CAAA;AAE9F;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,QAEkD,CAAA;AAE1E,yDAAyD;AACzD,eAAO,MAAM,aAAa,yMAAuE,CAAA;AAEjG,sEAAsE;AACtE,eAAO,MAAM,aAAa,yMAAuE,CAAA;AAEjG;qCACqC;AACrC,eAAO,MAAM,aAAa,QAE6B,CAAA;AAEvD,+DAA+D;AAC/D,eAAO,MAAM,YAAY,+BAA+B,CAAA;AAExD;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,QAO+D,CAAA;AAEpF,qFAAqF;AACrF,eAAO,MAAM,mBAAmB,kGACiE,CAAA;AAEjG,4CAA4C;AAC5C,eAAO,MAAM,SAAS,mFAC4D,CAAA;AAElF,+EAA+E;AAC/E,eAAO,MAAM,YAAY,sEAAsE,CAAA;AAE/F,oCAAoC;AACpC,eAAO,MAAM,aAAa,8BAA8B,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;8EAYzB,CAAA;AAEF,8CAA8C;AAC9C,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AAErF,iDAAiD;AACjD,eAAO,MAAM,kBAAkB,QAAQ,CAAA;AAEvC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa;aAAK,mBAAmB,EAAE,EAAE;CAAW,CAAA;AAEjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,8BAA8B,CAAA"}
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/lib/overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAEtD;+EAC+E;AAC/E,eAAO,MAAM,cAAc,iFACqD,CAAA;AAEhF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,4EACiD,CAAA;AAE3E;;;GAGG;AACH,eAAO,MAAM,YAAY,wDAAwD,CAAA;AAEjF,yEAAyE;AACzE,eAAO,MAAM,iBAAiB,6DAA6D,CAAA;AAE3F,gDAAgD;AAChD,eAAO,MAAM,YAAY,yFAC+D,CAAA;AAExF,+DAA+D;AAC/D,eAAO,MAAM,kBAAkB,oGACoE,CAAA;AAEnG,gDAAgD;AAChD,eAAO,MAAM,aAAa,qCAAqC,CAAA;AAE/D,+FAA+F;AAC/F,eAAO,MAAM,aAAa,2DAA2D,CAAA;AAErF,2CAA2C;AAC3C,eAAO,MAAM,kBAAkB,kCAAkC,CAAA;AAEjE,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,QAGkE,CAAA;AAEjG;;;;;GAKG;AACH,eAAO,MAAM,UAAU,+FACuE,CAAA;AAE9F;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,QAEkD,CAAA;AAE1E,yDAAyD;AACzD,eAAO,MAAM,aAAa,yMAAuE,CAAA;AAEjG,sEAAsE;AACtE,eAAO,MAAM,aAAa,yMAAuE,CAAA;AAEjG;qCACqC;AACrC,eAAO,MAAM,aAAa,QAE6B,CAAA;AAEvD,+DAA+D;AAC/D,eAAO,MAAM,YAAY,+BAA+B,CAAA;AAExD;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,QAO+D,CAAA;AAEpF,qFAAqF;AACrF,eAAO,MAAM,mBAAmB,kGACiE,CAAA;AAEjG,4CAA4C;AAC5C,eAAO,MAAM,SAAS,mFAC4D,CAAA;AAElF,+EAA+E;AAC/E,eAAO,MAAM,YAAY,0DAA0D,CAAA;AAEnF,oCAAoC;AACpC,eAAO,MAAM,aAAa,8BAA8B,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;8EAYzB,CAAA;AAEF,8CAA8C;AAC9C,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AAErF,iDAAiD;AACjD,eAAO,MAAM,kBAAkB,QAAQ,CAAA;AAEvC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa;aAAK,mBAAmB,EAAE,EAAE;CAAW,CAAA;AAEjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,8BAA8B,CAAA"}
@@ -89,7 +89,7 @@ var destructiveMenuItem = "border-s-2 border-destructive ps-1.5 text-foreground
89
89
  /** The label above a group of menu rows. */
90
90
  var menuLabel = "px-2 py-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase";
91
91
  /** The chord drawn at a row's trailing edge: menus and the command palette. */
92
- var menuShortcut = "text-muted-foreground ms-auto font-code text-code tracking-widest";
92
+ var menuShortcut = "text-muted-foreground ms-auto text-xs tracking-widest";
93
93
  /** The rule between menu groups. */
94
94
  var menuSeparator = "bg-border -mx-1 my-1 h-px";
95
95
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.js","names":[],"sources":["../../src/lib/overlay.ts"],"sourcesContent":["/**\n * Shared strings for the overlay layer: dialogs, sheets, menus, popovers,\n * tooltips and the command palette.\n *\n * These live here rather than in each component because the overlay family is\n * where consistency is most visible and least likely to survive duplication.\n * A dialog, a sheet and a dropdown that disagree about their border, radius,\n * motion or shadow read as three different apps, and an app that adopts this\n * library would inherit all three. Declaring the surface once is what makes\n * \"an overlay looks like this\" a fact rather than a convention.\n */\n\nimport { cva, type VariantProps } from '#lib/variants'\n\n/** The panel itself: fill, hairline edge, radius, elevation. Menus, popovers\n * and the command palette float on the elevated overlay rung (`--popover`). */\nexport const overlaySurface =\n 'bg-popover text-popover-foreground rounded-xl border border-border shadow-lg'\n\n/**\n * The modal panel: the same hairline edge, radius and elevation, painted on the\n * *neutral* theme surface instead of the elevated overlay rung.\n *\n * `--popover` is the catalogue's `surfaceElevated`, whose derivation amplifies\n * the canvas hue's chroma on the elevated step. On the dark default's violet\n * canvas that makes the dialog the most chromatic surface in the ladder,\n * `oklch(0.2406 0.0088 300.91)`, red above green in sRGB, and on a full dialog\n * panel that cast reads as a warm tint the canvas never has. shadcn's own\n * convention already splits the two: a Dialog paints `bg-background`, menus and\n * popovers paint `bg-popover`. The veil, the hairline and the elevation shadow\n * carry the separation the lighter fill no longer provides.\n */\nexport const dialogSurface =\n 'bg-background text-foreground rounded-xl border border-border shadow-lg'\n\n/**\n * Overlay titles have one fixed typography role. Keep this small recipe shared\n * without loading the configurable Heading component into every dialog.\n */\nexport const overlayTitle = 'font-semibold text-base tracking-tight leading-none'\n\n/** The span of the portal wrapper that centres a dialog-like overlay. */\nexport const overlayPositioner = 'fixed inset-0 z-(--z-dialog) grid place-items-center p-4'\n\n/** The dimming layer behind a modal overlay. */\nexport const overlayScrim =\n 'fixed inset-0 z-(--z-dialog) bg-scrim/50 supports-[backdrop-filter]:backdrop-blur-xs'\n\n/** The scrim fades; it never zooms with the panel above it. */\nexport const overlayScrimMotion =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0'\n\n/** The title block of a dialog-shaped panel. */\nexport const overlayHeader = 'flex flex-col gap-1.5 text-start'\n\n/** The action row of a dialog-shaped panel: stacked on a phone, trailing on a wider window. */\nexport const overlayFooter = 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end'\n\n/** The sentence under an overlay title. */\nexport const overlayDescription = 'text-muted-foreground text-sm'\n\n/** The icon-only close in a dialog or sheet's top-end corner. */\nexport const overlayCornerClose =\n 'absolute top-3.5 end-3.5 rounded-md p-1 text-muted-foreground ' +\n 'transition-colors ease-out hover:bg-surface-hover hover:text-foreground ' +\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle outline-none'\n\n/**\n * The tip: the card-toned bubble an explanation shows in. The side rail draws\n * it flush to a collapsed row and every floating tooltip composes the same\n * fill, edge, and type, so a control never explains itself in two visual\n * languages.\n */\nexport const tooltipTip =\n 'bg-card text-card-foreground rounded-md border border-border text-sm font-medium shadow-lg'\n\n/**\n * Entrance and exit motion, expressed as data-state classes.\n *\n * `data-expanded` / `data-closed` are Kobalte's; `data-side-*` come from its\n * popper positioning and let a menu slide in from the edge it is anchored to,\n * which is what makes a dropdown feel attached to its trigger rather than\n * dropped on the screen. Exit motion is shorter than entry, because a\n * dismissal should feel immediate while an arrival benefits from being seen.\n */\nexport const overlayZoom =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-expanded:zoom-in-95 ' +\n 'data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95'\n\n/** `overlayZoom` at the panel's pace: menus, dialogs. */\nexport const overlayMotion = `${overlayZoom} data-expanded:duration-200 data-closed:duration-150`\n\n/** `overlayZoom` at a hint's pace: the tooltip and the hover card. */\nexport const tooltipMotion = `${overlayZoom} data-expanded:duration-150 data-closed:duration-100`\n\n/** Popover-style motion: no zoom, so a panel anchored to a control does not\n * appear to breathe away from it. */\nexport const popoverMotion =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0 ' +\n 'data-expanded:duration-150 data-closed:duration-100'\n\n/** The popper arrow. Sized in the component; coloured here. */\nexport const popoverArrow = 'fill-popover stroke-border'\n\n/**\n * A menu row: the shared height, radius, hover fill and focus treatment for\n * every item inside a menu, listbox or command list.\n *\n * The row sizes and dims the icons a caller puts in it, but not the glyph of\n * its selection indicator (any `[data-slot$=-indicator]`): a descendant `svg`\n * rule outranks a single utility on the glyph, so without the exclusion a\n * radio item's `size-2` dot drew as a 16px muted disc and every check lost the\n * indicator's accent.\n */\nexport const menuItem =\n 'relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none ' +\n 'transition-colors ease-out ' +\n 'data-[highlighted]:bg-surface-hover data-[highlighted]:text-foreground ' +\n 'data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground ' +\n '[&_svg]:pointer-events-none [&_svg]:shrink-0 ' +\n '[&_svg:not([data-slot$=-indicator]_*)]:size-4 ' +\n '[&_svg:not([class*=text-]):not([data-slot$=-indicator]_*)]:text-muted-foreground'\n\n/** A destructive action keeps readable text and marks its row with a status edge. */\nexport const destructiveMenuItem =\n 'border-s-2 border-destructive ps-1.5 text-foreground data-[highlighted]:bg-destructive-subtle'\n\n/** The label above a group of menu rows. */\nexport const menuLabel =\n 'px-2 py-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase'\n\n/** The chord drawn at a row's trailing edge: menus and the command palette. */\nexport const menuShortcut = 'text-muted-foreground ms-auto font-code text-code tracking-widest'\n\n/** The rule between menu groups. */\nexport const menuSeparator = 'bg-border -mx-1 my-1 h-px'\n\n/**\n * A leading colour swatch on a menu or select row: the sanctioned way to carry\n * a card-tone colour into a list of options. The tones are the system's accent\n * and status roles, the vocabulary a Badge already speaks, so the colour an\n * option shows in a menu is the colour its badge carries on a card, and a\n * caller never passes a raw colour into a list. The dot is `aria-hidden`; the\n * label carries the meaning, so a tone is never the only signal.\n */\nexport const menuSwatchTone = cva('size-2 shrink-0 rounded-full', {\n variants: {\n tone: {\n neutral: 'bg-muted-foreground',\n primary: 'bg-primary',\n success: 'bg-success',\n warning: 'bg-warning',\n destructive: 'bg-destructive',\n info: 'bg-info',\n },\n },\n defaultVariants: { tone: 'neutral' },\n})\n\n/** The tones a menu row's swatch can take. */\nexport type MenuSwatchTone = NonNullable<VariantProps<typeof menuSwatchTone>['tone']>\n\n/** Padding shared by every menu-list surface. */\nexport const menuContentPadding = 'p-1'\n\n/**\n * Marks a floating layer, a menu, a listbox, a popover, as part of the top\n * layer.\n *\n * A modal dialog hides everything outside itself from assistive technology\n * (`aria-hidden` on its siblings) and keeps watching `<body>` for new nodes.\n * A menu or select opened from inside the dialog portals to `<body>`, so the\n * dialog hid it too: the list was on screen, focused, and invisible to a\n * screen reader, and an outside-click check could treat a click on it as a\n * click away from the dialog. Kobalte exempts nodes carrying this attribute\n * from both, so every floating layer carries it.\n */\nexport const topLayerProps = { 'data-kb-top-layer': '' } as const\n\n/**\n * Marks a portal mounted while another modal layer is already open as a layer\n * of its own rather than background.\n *\n * Kobalte's hide-outside observer walks body children added after its layer\n * opened and aria-hides them a frame later, so a non-modal dialog portaled in\n * during that window would land outside the accessibility tree. That observer\n * exempts added nodes carrying the React Aria spelling it ported;\n * `data-kb-top-layer` (`topLayerProps`) is only honoured by a newer layer's\n * initial walk, which must still hide this portal.\n */\nexport const lateLayerAttribute = 'data-react-aria-top-layer'\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,iBACX;;;;;;;;;;;;;;AAeF,IAAa,gBACX;;;;;AAMF,IAAa,eAAe;;AAG5B,IAAa,oBAAoB;;AAGjC,IAAa,eACX;;AAGF,IAAa,qBACX;;AAGF,IAAa,gBAAgB;;AAG7B,IAAa,gBAAgB;;AAG7B,IAAa,qBAAqB;;AAGlC,IAAa,qBACX;;;;;;;AAUF,IAAa,aACX;;;;;;;;;;AAWF,IAAa,cACX;;AAIF,IAAa,gBAAgB,GAAG,YAAY;;AAG5C,IAAa,gBAAgB,GAAG,YAAY;;;AAI5C,IAAa,gBACX;;AAIF,IAAa,eAAe;;;;;;;;;;;AAY5B,IAAa,WACX;;AASF,IAAa,sBACX;;AAGF,IAAa,YACX;;AAGF,IAAa,eAAe;;AAG5B,IAAa,gBAAgB;;;;;;;;;AAU7B,IAAa,iBAAiB,IAAI,gCAAgC;CAChE,UAAU,EACR,MAAM;EACJ,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,aAAa;EACb,MAAM;CACR,EACF;CACA,iBAAiB,EAAE,MAAM,UAAU;AACrC,CAAC;;AAMD,IAAa,qBAAqB;;;;;;;;;;;;;AAclC,IAAa,gBAAgB,EAAE,qBAAqB,GAAG;;;;;;;;;;;;AAavD,IAAa,qBAAqB"}
1
+ {"version":3,"file":"overlay.js","names":[],"sources":["../../src/lib/overlay.ts"],"sourcesContent":["/**\n * Shared strings for the overlay layer: dialogs, sheets, menus, popovers,\n * tooltips and the command palette.\n *\n * These live here rather than in each component because the overlay family is\n * where consistency is most visible and least likely to survive duplication.\n * A dialog, a sheet and a dropdown that disagree about their border, radius,\n * motion or shadow read as three different apps, and an app that adopts this\n * library would inherit all three. Declaring the surface once is what makes\n * \"an overlay looks like this\" a fact rather than a convention.\n */\n\nimport { cva, type VariantProps } from '#lib/variants'\n\n/** The panel itself: fill, hairline edge, radius, elevation. Menus, popovers\n * and the command palette float on the elevated overlay rung (`--popover`). */\nexport const overlaySurface =\n 'bg-popover text-popover-foreground rounded-xl border border-border shadow-lg'\n\n/**\n * The modal panel: the same hairline edge, radius and elevation, painted on the\n * *neutral* theme surface instead of the elevated overlay rung.\n *\n * `--popover` is the catalogue's `surfaceElevated`, whose derivation amplifies\n * the canvas hue's chroma on the elevated step. On the dark default's violet\n * canvas that makes the dialog the most chromatic surface in the ladder,\n * `oklch(0.2406 0.0088 300.91)`, red above green in sRGB, and on a full dialog\n * panel that cast reads as a warm tint the canvas never has. shadcn's own\n * convention already splits the two: a Dialog paints `bg-background`, menus and\n * popovers paint `bg-popover`. The veil, the hairline and the elevation shadow\n * carry the separation the lighter fill no longer provides.\n */\nexport const dialogSurface =\n 'bg-background text-foreground rounded-xl border border-border shadow-lg'\n\n/**\n * Overlay titles have one fixed typography role. Keep this small recipe shared\n * without loading the configurable Heading component into every dialog.\n */\nexport const overlayTitle = 'font-semibold text-base tracking-tight leading-none'\n\n/** The span of the portal wrapper that centres a dialog-like overlay. */\nexport const overlayPositioner = 'fixed inset-0 z-(--z-dialog) grid place-items-center p-4'\n\n/** The dimming layer behind a modal overlay. */\nexport const overlayScrim =\n 'fixed inset-0 z-(--z-dialog) bg-scrim/50 supports-[backdrop-filter]:backdrop-blur-xs'\n\n/** The scrim fades; it never zooms with the panel above it. */\nexport const overlayScrimMotion =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0'\n\n/** The title block of a dialog-shaped panel. */\nexport const overlayHeader = 'flex flex-col gap-1.5 text-start'\n\n/** The action row of a dialog-shaped panel: stacked on a phone, trailing on a wider window. */\nexport const overlayFooter = 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end'\n\n/** The sentence under an overlay title. */\nexport const overlayDescription = 'text-muted-foreground text-sm'\n\n/** The icon-only close in a dialog or sheet's top-end corner. */\nexport const overlayCornerClose =\n 'absolute top-3.5 end-3.5 rounded-md p-1 text-muted-foreground ' +\n 'transition-colors ease-out hover:bg-surface-hover hover:text-foreground ' +\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle outline-none'\n\n/**\n * The tip: the card-toned bubble an explanation shows in. The side rail draws\n * it flush to a collapsed row and every floating tooltip composes the same\n * fill, edge, and type, so a control never explains itself in two visual\n * languages.\n */\nexport const tooltipTip =\n 'bg-card text-card-foreground rounded-md border border-border text-sm font-medium shadow-lg'\n\n/**\n * Entrance and exit motion, expressed as data-state classes.\n *\n * `data-expanded` / `data-closed` are Kobalte's; `data-side-*` come from its\n * popper positioning and let a menu slide in from the edge it is anchored to,\n * which is what makes a dropdown feel attached to its trigger rather than\n * dropped on the screen. Exit motion is shorter than entry, because a\n * dismissal should feel immediate while an arrival benefits from being seen.\n */\nexport const overlayZoom =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-expanded:zoom-in-95 ' +\n 'data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95'\n\n/** `overlayZoom` at the panel's pace: menus, dialogs. */\nexport const overlayMotion = `${overlayZoom} data-expanded:duration-200 data-closed:duration-150`\n\n/** `overlayZoom` at a hint's pace: the tooltip and the hover card. */\nexport const tooltipMotion = `${overlayZoom} data-expanded:duration-150 data-closed:duration-100`\n\n/** Popover-style motion: no zoom, so a panel anchored to a control does not\n * appear to breathe away from it. */\nexport const popoverMotion =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0 ' +\n 'data-expanded:duration-150 data-closed:duration-100'\n\n/** The popper arrow. Sized in the component; coloured here. */\nexport const popoverArrow = 'fill-popover stroke-border'\n\n/**\n * A menu row: the shared height, radius, hover fill and focus treatment for\n * every item inside a menu, listbox or command list.\n *\n * The row sizes and dims the icons a caller puts in it, but not the glyph of\n * its selection indicator (any `[data-slot$=-indicator]`): a descendant `svg`\n * rule outranks a single utility on the glyph, so without the exclusion a\n * radio item's `size-2` dot drew as a 16px muted disc and every check lost the\n * indicator's accent.\n */\nexport const menuItem =\n 'relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none ' +\n 'transition-colors ease-out ' +\n 'data-[highlighted]:bg-surface-hover data-[highlighted]:text-foreground ' +\n 'data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground ' +\n '[&_svg]:pointer-events-none [&_svg]:shrink-0 ' +\n '[&_svg:not([data-slot$=-indicator]_*)]:size-4 ' +\n '[&_svg:not([class*=text-]):not([data-slot$=-indicator]_*)]:text-muted-foreground'\n\n/** A destructive action keeps readable text and marks its row with a status edge. */\nexport const destructiveMenuItem =\n 'border-s-2 border-destructive ps-1.5 text-foreground data-[highlighted]:bg-destructive-subtle'\n\n/** The label above a group of menu rows. */\nexport const menuLabel =\n 'px-2 py-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase'\n\n/** The chord drawn at a row's trailing edge: menus and the command palette. */\nexport const menuShortcut = 'text-muted-foreground ms-auto text-xs tracking-widest'\n\n/** The rule between menu groups. */\nexport const menuSeparator = 'bg-border -mx-1 my-1 h-px'\n\n/**\n * A leading colour swatch on a menu or select row: the sanctioned way to carry\n * a card-tone colour into a list of options. The tones are the system's accent\n * and status roles, the vocabulary a Badge already speaks, so the colour an\n * option shows in a menu is the colour its badge carries on a card, and a\n * caller never passes a raw colour into a list. The dot is `aria-hidden`; the\n * label carries the meaning, so a tone is never the only signal.\n */\nexport const menuSwatchTone = cva('size-2 shrink-0 rounded-full', {\n variants: {\n tone: {\n neutral: 'bg-muted-foreground',\n primary: 'bg-primary',\n success: 'bg-success',\n warning: 'bg-warning',\n destructive: 'bg-destructive',\n info: 'bg-info',\n },\n },\n defaultVariants: { tone: 'neutral' },\n})\n\n/** The tones a menu row's swatch can take. */\nexport type MenuSwatchTone = NonNullable<VariantProps<typeof menuSwatchTone>['tone']>\n\n/** Padding shared by every menu-list surface. */\nexport const menuContentPadding = 'p-1'\n\n/**\n * Marks a floating layer, a menu, a listbox, a popover, as part of the top\n * layer.\n *\n * A modal dialog hides everything outside itself from assistive technology\n * (`aria-hidden` on its siblings) and keeps watching `<body>` for new nodes.\n * A menu or select opened from inside the dialog portals to `<body>`, so the\n * dialog hid it too: the list was on screen, focused, and invisible to a\n * screen reader, and an outside-click check could treat a click on it as a\n * click away from the dialog. Kobalte exempts nodes carrying this attribute\n * from both, so every floating layer carries it.\n */\nexport const topLayerProps = { 'data-kb-top-layer': '' } as const\n\n/**\n * Marks a portal mounted while another modal layer is already open as a layer\n * of its own rather than background.\n *\n * Kobalte's hide-outside observer walks body children added after its layer\n * opened and aria-hides them a frame later, so a non-modal dialog portaled in\n * during that window would land outside the accessibility tree. That observer\n * exempts added nodes carrying the React Aria spelling it ported;\n * `data-kb-top-layer` (`topLayerProps`) is only honoured by a newer layer's\n * initial walk, which must still hide this portal.\n */\nexport const lateLayerAttribute = 'data-react-aria-top-layer'\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,iBACX;;;;;;;;;;;;;;AAeF,IAAa,gBACX;;;;;AAMF,IAAa,eAAe;;AAG5B,IAAa,oBAAoB;;AAGjC,IAAa,eACX;;AAGF,IAAa,qBACX;;AAGF,IAAa,gBAAgB;;AAG7B,IAAa,gBAAgB;;AAG7B,IAAa,qBAAqB;;AAGlC,IAAa,qBACX;;;;;;;AAUF,IAAa,aACX;;;;;;;;;;AAWF,IAAa,cACX;;AAIF,IAAa,gBAAgB,GAAG,YAAY;;AAG5C,IAAa,gBAAgB,GAAG,YAAY;;;AAI5C,IAAa,gBACX;;AAIF,IAAa,eAAe;;;;;;;;;;;AAY5B,IAAa,WACX;;AASF,IAAa,sBACX;;AAGF,IAAa,YACX;;AAGF,IAAa,eAAe;;AAG5B,IAAa,gBAAgB;;;;;;;;;AAU7B,IAAa,iBAAiB,IAAI,gCAAgC;CAChE,UAAU,EACR,MAAM;EACJ,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,aAAa;EACb,MAAM;CACR,EACF;CACA,iBAAiB,EAAE,MAAM,UAAU;AACrC,CAAC;;AAMD,IAAa,qBAAqB;;;;;;;;;;;;;AAclC,IAAa,gBAAgB,EAAE,qBAAqB,GAAG;;;;;;;;;;;;AAavD,IAAa,qBAAqB"}
@@ -39,6 +39,7 @@ declare const plugin: {
39
39
  'no-primitive-library-imports': RuleModule;
40
40
  'no-interactive-wrappers': RuleModule;
41
41
  'require-action-button-tooltip': RuleModule;
42
+ 'single-slot-read': RuleModule;
42
43
  };
43
44
  };
44
45
  export default plugin;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lint/index.ts"],"names":[],"mappings":"AAmBA,KAAK,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAa/E,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS,CAAA;QACf,IAAI,EAAE;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;QAC7B,MAAM,EAAE,IAAI,EAAE,CAAA;QACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACjC,CAAA;IACD,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,CAAA;CACtE,CAAA;AAED,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE;QACX,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,SAAS,GAAG,SAAS,CAAA;KACpD,CAAA;IACD,MAAM,EAAE,CAAC,UAAU,EAAE;QACnB,IAAI,EAAE,OAAO,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;KAC5B,KAAK,IAAI,CAAA;CACX;AAED,UAAU,SAAS;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAkhCD,QAAA,MAAM,MAAM;IACV,IAAI;QAAI,IAAI;;IACZ,KAAK;QACH,kBAAkB;QAClB,eAAe;QACf,6BAA6B;QAC7B,8BAA8B;QAC9B,yBAAyB;QACzB,+BAA+B;;CAElC,CAAA;eAEc,MAAM"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lint/index.ts"],"names":[],"mappings":"AAmBA,KAAK,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAa/E,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS,CAAA;QACf,IAAI,EAAE;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;QAC7B,MAAM,EAAE,IAAI,EAAE,CAAA;QACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACjC,CAAA;IACD,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,CAAA;CACtE,CAAA;AAED,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE;QACX,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,SAAS,GAAG,SAAS,CAAA;KACpD,CAAA;IACD,MAAM,EAAE,CAAC,UAAU,EAAE;QACnB,IAAI,EAAE,OAAO,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;KAC5B,KAAK,IAAI,CAAA;CACX;AAED,UAAU,SAAS;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAwtCD,QAAA,MAAM,MAAM;IACV,IAAI;QAAI,IAAI;;IACZ,KAAK;QACH,kBAAkB;QAClB,eAAe;QACf,6BAA6B;QAC7B,8BAA8B;QAC9B,yBAAyB;QACzB,+BAA+B;QAC/B,kBAAkB;;CAErB,CAAA;eAEc,MAAM"}