@adea-ai/ui 0.162.6 → 0.162.7

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 (364) hide show
  1. package/dist/components/composites/about-dialog/about-dialog.js +5 -5
  2. package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
  3. package/dist/components/composites/accent-picker/accent-picker.js +3 -3
  4. package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
  5. package/dist/components/composites/accent-picker/custom-color-popover.js +2 -2
  6. package/dist/components/composites/accent-picker/custom-color-popover.js.map +1 -1
  7. package/dist/components/composites/account-menu/account-menu.js +22 -22
  8. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  9. package/dist/components/composites/action-button/action-button.js +2 -2
  10. package/dist/components/composites/action-button/action-button.js.map +1 -1
  11. package/dist/components/composites/appearance-editor/accent-swatch-groups.js +3 -3
  12. package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
  13. package/dist/components/composites/appearance-editor/appearance-choices.js +10 -10
  14. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  15. package/dist/components/composites/appearance-editor/appearance-editor.js +13 -13
  16. package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
  17. package/dist/components/composites/appearance-editor/appearance-rows.js +12 -12
  18. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  19. package/dist/components/composites/appearance-editor/font-settings-group.js +13 -13
  20. package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
  21. package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
  22. package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
  23. package/dist/components/composites/catalog-browser/catalog-browser-group.js +9 -9
  24. package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
  25. package/dist/components/composites/catalog-browser/catalog-browser.js +10 -10
  26. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  27. package/dist/components/composites/catalog-browser/catalog-detail.js +1 -1
  28. package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
  29. package/dist/components/composites/chain-of-thought/chain-of-thought.js +5 -5
  30. package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
  31. package/dist/components/composites/chat/chat.js +7 -7
  32. package/dist/components/composites/chat/chat.js.map +1 -1
  33. package/dist/components/composites/checkpoint/checkpoint.js +5 -5
  34. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  35. package/dist/components/composites/confirmation/confirmation.js +13 -13
  36. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  37. package/dist/components/composites/context/context.js +7 -7
  38. package/dist/components/composites/context/context.js.map +1 -1
  39. package/dist/components/composites/file-tree/build-file-tree.js +1 -1
  40. package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
  41. package/dist/components/composites/file-tree/file-tree.js +9 -9
  42. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  43. package/dist/components/composites/help-center/help-center.js +5 -5
  44. package/dist/components/composites/help-center/help-center.js.map +1 -1
  45. package/dist/components/composites/icon-picker/icon-picker.js +10 -10
  46. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  47. package/dist/components/composites/icon-picker/image-data-url.js.map +1 -1
  48. package/dist/components/composites/icon-picker/shell-icons.js +117 -117
  49. package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
  50. package/dist/components/composites/inline-citation/inline-citation.js +7 -7
  51. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  52. package/dist/components/composites/list-row/list-row-control.js +1 -1
  53. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  54. package/dist/components/composites/list-row/list-row.js +2 -2
  55. package/dist/components/composites/list-row/list-row.js.map +1 -1
  56. package/dist/components/composites/message-scroller/message-scroller.js +7 -7
  57. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  58. package/dist/components/composites/message-scroller/scroll-anchor.js +1 -1
  59. package/dist/components/composites/message-scroller/scroll-anchor.js.map +1 -1
  60. package/dist/components/composites/model-selector/model-selector.js +12 -12
  61. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  62. package/dist/components/composites/plan/plan.js +5 -5
  63. package/dist/components/composites/plan/plan.js.map +1 -1
  64. package/dist/components/composites/prompt-input/prompt-input.js +3 -3
  65. package/dist/components/composites/prompt-input/prompt-input.js.map +1 -1
  66. package/dist/components/composites/queue/queue.js +13 -13
  67. package/dist/components/composites/queue/queue.js.map +1 -1
  68. package/dist/components/composites/reasoning/reasoning.js +5 -5
  69. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  70. package/dist/components/composites/scene-controls/scene-controls.js +16 -16
  71. package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
  72. package/dist/components/composites/settings/settings-layout.js +2 -2
  73. package/dist/components/composites/settings/settings-layout.js.map +1 -1
  74. package/dist/components/composites/settings/settings-navigation.js +2 -2
  75. package/dist/components/composites/settings/settings-navigation.js.map +1 -1
  76. package/dist/components/composites/settings/settings.js +5 -5
  77. package/dist/components/composites/settings/settings.js.map +1 -1
  78. package/dist/components/composites/sources/sources.js +5 -5
  79. package/dist/components/composites/sources/sources.js.map +1 -1
  80. package/dist/components/composites/stack-trace/parse-stack-trace.js +2 -2
  81. package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
  82. package/dist/components/composites/stack-trace/stack-trace.js +10 -10
  83. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  84. package/dist/components/composites/stat/stat.js +6 -6
  85. package/dist/components/composites/stat/stat.js.map +1 -1
  86. package/dist/components/composites/subagent/subagent.js +5 -5
  87. package/dist/components/composites/subagent/subagent.js.map +1 -1
  88. package/dist/components/composites/suggestion/suggestion.js +2 -2
  89. package/dist/components/composites/suggestion/suggestion.js.map +1 -1
  90. package/dist/components/composites/task/task.js +5 -5
  91. package/dist/components/composites/task/task.js.map +1 -1
  92. package/dist/components/composites/terminal/ansi.js +1 -1
  93. package/dist/components/composites/terminal/ansi.js.map +1 -1
  94. package/dist/components/composites/terminal/terminal.js +18 -18
  95. package/dist/components/composites/terminal/terminal.js.map +1 -1
  96. package/dist/components/composites/test-results/test-results.js +17 -17
  97. package/dist/components/composites/test-results/test-results.js.map +1 -1
  98. package/dist/components/composites/tool/tool.js +5 -5
  99. package/dist/components/composites/tool/tool.js.map +1 -1
  100. package/dist/components/composites/tree/tree.js +6 -6
  101. package/dist/components/composites/tree/tree.js.map +1 -1
  102. package/dist/components/composites/update-dialog/channel-control.js +1 -1
  103. package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
  104. package/dist/components/composites/update-dialog/update-dialog.js +23 -23
  105. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  106. package/dist/components/composites/workspace-mark/workspace-mark.js +2 -2
  107. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  108. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +6 -6
  109. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
  110. package/dist/components/composites/workspace-switcher/workspace-switcher.js +11 -11
  111. package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
  112. package/dist/components/conversation/atomic/chat-composer.js +1 -1
  113. package/dist/components/conversation/busy-send-button.js +10 -10
  114. package/dist/components/conversation/busy-send-button.js.map +1 -1
  115. package/dist/components/conversation/chat-composer.js +1 -1
  116. package/dist/components/conversation/composer-core.js +1 -1
  117. package/dist/components/conversation/composer-menu.js +2 -2
  118. package/dist/components/conversation/composer-menu.js.map +1 -1
  119. package/dist/components/conversation/conversation-avatar.js +7 -7
  120. package/dist/components/conversation/conversation-avatar.js.map +1 -1
  121. package/dist/components/conversation/conversation-pane.js +1 -1
  122. package/dist/components/conversation/conversation-pane.js.map +1 -1
  123. package/dist/components/conversation/conversation-surface.js +5 -5
  124. package/dist/components/conversation/conversation-surface.js.map +1 -1
  125. package/dist/components/conversation/internal/chat-composer-shell.js +9 -9
  126. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  127. package/dist/components/conversation/message-composer.js +9 -9
  128. package/dist/components/conversation/message-composer.js.map +1 -1
  129. package/dist/components/conversation/message-row.js +13 -13
  130. package/dist/components/conversation/message-row.js.map +1 -1
  131. package/dist/components/conversation/paste-token-editor.js +1 -1
  132. package/dist/components/conversation/paste-token-editor.js.map +1 -1
  133. package/dist/components/conversation/scroll-follow.js +1 -1
  134. package/dist/components/conversation/thread-panel.js +5 -5
  135. package/dist/components/conversation/thread-panel.js.map +1 -1
  136. package/dist/components/conversation/transcript-composition.js +5 -5
  137. package/dist/components/conversation/transcript-composition.js.map +1 -1
  138. package/dist/components/layout/app-shell/app-shell.js +1 -1
  139. package/dist/components/layout/app-shell/app-shell.js.map +1 -1
  140. package/dist/components/layout/app-shell/skip-link.js +1 -1
  141. package/dist/components/layout/app-shell/skip-link.js.map +1 -1
  142. package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +2 -2
  143. package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -1
  144. package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +1 -1
  145. package/dist/components/layout/floating-preview/floating-preview.js +7 -7
  146. package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
  147. package/dist/components/layout/orbit-layout/orbit-layout.js +1 -1
  148. package/dist/components/layout/orbit-layout/orbit-layout.js.map +1 -1
  149. package/dist/components/layout/page/page.js +2 -2
  150. package/dist/components/layout/page/page.js.map +1 -1
  151. package/dist/components/layout/panel/panel.js +1 -1
  152. package/dist/components/layout/panel/panel.js.map +1 -1
  153. package/dist/components/layout/pixel-pane/pixel-pane.js +1 -1
  154. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +5 -5
  155. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  156. package/dist/components/layout/shell-rail/shell-rail.js +5 -5
  157. package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
  158. package/dist/components/layout/shell-top-bar/shell-top-bar.js +2 -2
  159. package/dist/components/layout/shell-top-bar/shell-top-bar.js.map +1 -1
  160. package/dist/components/layout/side-rail/side-rail.js +2 -2
  161. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  162. package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +1 -1
  163. package/dist/components/layout/sidebar-nav/sidebar-nav.js +5 -5
  164. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  165. package/dist/components/layout/split-layout/pane-focus.js.map +1 -1
  166. package/dist/components/layout/split-layout/resize-controller-core-retry.js +1 -1
  167. package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
  168. package/dist/components/layout/split-layout/resize-controller-core.js +1 -1
  169. package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
  170. package/dist/components/layout/split-layout/split-layout.js +7 -7
  171. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  172. package/dist/components/layout/status-bar/status-bar.js +1 -1
  173. package/dist/components/layout/status-bar/status-bar.js.map +1 -1
  174. package/dist/components/layout/top-bar/top-bar.js +5 -5
  175. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  176. package/dist/components/layout/virtual-window/virtual-window.js +1 -1
  177. package/dist/components/layout/virtual-window/virtual-window.js.map +1 -1
  178. package/dist/components/motion/presence.js +1 -1
  179. package/dist/components/theme/appearance-panel.js +3 -3
  180. package/dist/components/theme/appearance-panel.js.map +1 -1
  181. package/dist/components/theme/lazy.js +3 -3
  182. package/dist/components/theme/lazy.js.map +1 -1
  183. package/dist/components/theme/script-projection.js +1 -1
  184. package/dist/components/theme/theme-catalogue-source.js +1 -1
  185. package/dist/components/theme/theme-document.js.map +1 -1
  186. package/dist/components/theme/theme-mode-toggle.js +7 -7
  187. package/dist/components/theme/theme-mode-toggle.js.map +1 -1
  188. package/dist/components/theme/theme-picker.js +2 -2
  189. package/dist/components/theme/theme-picker.js.map +1 -1
  190. package/dist/components/theme/theme-provider-value.js +1 -1
  191. package/dist/components/theme/theme-provider-value.js.map +1 -1
  192. package/dist/components/theme/theme-provider.js +1 -1
  193. package/dist/components/theme/theme-toggle.js +7 -7
  194. package/dist/components/theme/theme-toggle.js.map +1 -1
  195. package/dist/components/ui/accordion/accordion.js +13 -13
  196. package/dist/components/ui/accordion/accordion.js.map +1 -1
  197. package/dist/components/ui/alert/alert.js +12 -12
  198. package/dist/components/ui/alert/alert.js.map +1 -1
  199. package/dist/components/ui/alert-dialog/alert-dialog.js +14 -14
  200. package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
  201. package/dist/components/ui/annotation-surface/annotation-surface.js +2 -2
  202. package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
  203. package/dist/components/ui/aspect-ratio/aspect-ratio.js +1 -1
  204. package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -1
  205. package/dist/components/ui/attachment/attachment.js +16 -16
  206. package/dist/components/ui/attachment/attachment.js.map +1 -1
  207. package/dist/components/ui/avatar/avatar.js +1 -1
  208. package/dist/components/ui/avatar/avatar.js.map +1 -1
  209. package/dist/components/ui/badge/badge.js +2 -2
  210. package/dist/components/ui/badge/badge.js.map +1 -1
  211. package/dist/components/ui/board/board.js +2 -2
  212. package/dist/components/ui/board/board.js.map +1 -1
  213. package/dist/components/ui/breadcrumb/breadcrumb.js +7 -7
  214. package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
  215. package/dist/components/ui/bubble/bubble.js +2 -2
  216. package/dist/components/ui/bubble/bubble.js.map +1 -1
  217. package/dist/components/ui/button/button.js +2 -2
  218. package/dist/components/ui/button-group/button-group.js +2 -2
  219. package/dist/components/ui/button-group/button-group.js.map +1 -1
  220. package/dist/components/ui/calendar/calendar.js +8 -8
  221. package/dist/components/ui/calendar/calendar.js.map +1 -1
  222. package/dist/components/ui/callout/callout.js +2 -2
  223. package/dist/components/ui/callout/callout.js.map +1 -1
  224. package/dist/components/ui/card/card.js +2 -2
  225. package/dist/components/ui/card/card.js.map +1 -1
  226. package/dist/components/ui/carousel/carousel.js +8 -8
  227. package/dist/components/ui/carousel/carousel.js.map +1 -1
  228. package/dist/components/ui/chart/chart.js +2 -2
  229. package/dist/components/ui/chart/chart.js.map +1 -1
  230. package/dist/components/ui/checkbox/checkbox.js +6 -6
  231. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  232. package/dist/components/ui/code-block/code-block.js +6 -6
  233. package/dist/components/ui/code-block/code-block.js.map +1 -1
  234. package/dist/components/ui/collapsible/collapsible.js +7 -7
  235. package/dist/components/ui/collapsible/collapsible.js.map +1 -1
  236. package/dist/components/ui/combobox/combobox.js +21 -21
  237. package/dist/components/ui/combobox/combobox.js.map +1 -1
  238. package/dist/components/ui/combobox/value-combobox.js +1 -1
  239. package/dist/components/ui/command/command.js +23 -23
  240. package/dist/components/ui/command/command.js.map +1 -1
  241. package/dist/components/ui/context-menu/context-menu.js +2 -2
  242. package/dist/components/ui/detail-panel/detail-panel.js +5 -5
  243. package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
  244. package/dist/components/ui/dialog/dialog-layer.js +2 -2
  245. package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
  246. package/dist/components/ui/dialog/dialog.js +21 -21
  247. package/dist/components/ui/dialog/dialog.js.map +1 -1
  248. package/dist/components/ui/diff-block/diff-block.js +2 -2
  249. package/dist/components/ui/diff-block/diff-block.js.map +1 -1
  250. package/dist/components/ui/drawer/drawer.js +14 -14
  251. package/dist/components/ui/drawer/drawer.js.map +1 -1
  252. package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
  253. package/dist/components/ui/dropdown-menu/menu-parts.js +10 -10
  254. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
  255. package/dist/components/ui/empty/empty-state.js +5 -5
  256. package/dist/components/ui/empty/empty-state.js.map +1 -1
  257. package/dist/components/ui/empty/empty.js +1 -1
  258. package/dist/components/ui/empty/empty.js.map +1 -1
  259. package/dist/components/ui/entity-icon/entity-icon.js +2 -2
  260. package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
  261. package/dist/components/ui/field/field.js +14 -14
  262. package/dist/components/ui/field/field.js.map +1 -1
  263. package/dist/components/ui/field/number-field.js +2 -2
  264. package/dist/components/ui/field/number-field.js.map +1 -1
  265. package/dist/components/ui/hover-card/hover-card.js +10 -10
  266. package/dist/components/ui/hover-card/hover-card.js.map +1 -1
  267. package/dist/components/ui/input/input-control.js +1 -1
  268. package/dist/components/ui/input/input-control.js.map +1 -1
  269. package/dist/components/ui/input/input.js +2 -2
  270. package/dist/components/ui/input/input.js.map +1 -1
  271. package/dist/components/ui/input-group/input-group.js +2 -2
  272. package/dist/components/ui/input-group/input-group.js.map +1 -1
  273. package/dist/components/ui/input-group/secret-input-group.js +2 -2
  274. package/dist/components/ui/input-otp/input-otp.js +2 -2
  275. package/dist/components/ui/input-otp/input-otp.js.map +1 -1
  276. package/dist/components/ui/item/item.js +2 -2
  277. package/dist/components/ui/item/item.js.map +1 -1
  278. package/dist/components/ui/kbd/kbd.js +2 -2
  279. package/dist/components/ui/kbd/kbd.js.map +1 -1
  280. package/dist/components/ui/label/label.js +1 -1
  281. package/dist/components/ui/label/label.js.map +1 -1
  282. package/dist/components/ui/marker/marker.js +2 -2
  283. package/dist/components/ui/marker/marker.js.map +1 -1
  284. package/dist/components/ui/menubar/menubar.js +7 -7
  285. package/dist/components/ui/menubar/menubar.js.map +1 -1
  286. package/dist/components/ui/message/message.js +3 -3
  287. package/dist/components/ui/message/message.js.map +1 -1
  288. package/dist/components/ui/modal-dialog/modal-dialog.js +2 -2
  289. package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
  290. package/dist/components/ui/native-select/native-select.js +5 -5
  291. package/dist/components/ui/native-select/native-select.js.map +1 -1
  292. package/dist/components/ui/navigation-menu/navigation-menu.js +18 -18
  293. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  294. package/dist/components/ui/pagination/pagination.js +28 -28
  295. package/dist/components/ui/pagination/pagination.js.map +1 -1
  296. package/dist/components/ui/popover/popover.js +15 -15
  297. package/dist/components/ui/popover/popover.js.map +1 -1
  298. package/dist/components/ui/progress/progress.js +5 -5
  299. package/dist/components/ui/progress/progress.js.map +1 -1
  300. package/dist/components/ui/questionnaire/questionnaire.js +10 -10
  301. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  302. package/dist/components/ui/radio-group/radio-group.js +9 -9
  303. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  304. package/dist/components/ui/resizable/resizable.js +11 -11
  305. package/dist/components/ui/resizable/resizable.js.map +1 -1
  306. package/dist/components/ui/scroll-area/scroll-area.js +1 -1
  307. package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
  308. package/dist/components/ui/select/select.js +21 -21
  309. package/dist/components/ui/select/select.js.map +1 -1
  310. package/dist/components/ui/separator/separator.js +5 -5
  311. package/dist/components/ui/separator/separator.js.map +1 -1
  312. package/dist/components/ui/sheet/sheet.js +6 -6
  313. package/dist/components/ui/sheet/sheet.js.map +1 -1
  314. package/dist/components/ui/skeleton/skeleton.js +1 -1
  315. package/dist/components/ui/skeleton/skeleton.js.map +1 -1
  316. package/dist/components/ui/slider/slider.js +5 -5
  317. package/dist/components/ui/slider/slider.js.map +1 -1
  318. package/dist/components/ui/spinner/spinner.js +5 -5
  319. package/dist/components/ui/spinner/spinner.js.map +1 -1
  320. package/dist/components/ui/status-chip/status-chip.js +2 -2
  321. package/dist/components/ui/status-chip/status-chip.js.map +1 -1
  322. package/dist/components/ui/switch/switch.js +4 -4
  323. package/dist/components/ui/switch/switch.js.map +1 -1
  324. package/dist/components/ui/table/table.js +1 -1
  325. package/dist/components/ui/table/table.js.map +1 -1
  326. package/dist/components/ui/tabs/tabs.js +7 -7
  327. package/dist/components/ui/tabs/tabs.js.map +1 -1
  328. package/dist/components/ui/text-link/text-link.js +1 -1
  329. package/dist/components/ui/text-link/text-link.js.map +1 -1
  330. package/dist/components/ui/textarea/textarea.js +2 -2
  331. package/dist/components/ui/textarea/textarea.js.map +1 -1
  332. package/dist/components/ui/toast/toast.js +7 -7
  333. package/dist/components/ui/toast/toast.js.map +1 -1
  334. package/dist/components/ui/toggle/toggle.js +6 -6
  335. package/dist/components/ui/toggle/toggle.js.map +1 -1
  336. package/dist/components/ui/toggle-group/toggle-group.js +7 -8
  337. package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
  338. package/dist/components/ui/tooltip/deferred-tooltip.js +6 -6
  339. package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
  340. package/dist/components/ui/tooltip/lazy-tooltip.js +2 -2
  341. package/dist/components/ui/tooltip/tooltip.js +10 -10
  342. package/dist/components/ui/tooltip/tooltip.js.map +1 -1
  343. package/dist/components/ui/trace/trace.js +19 -19
  344. package/dist/components/ui/trace/trace.js.map +1 -1
  345. package/dist/components/ui/typography/typography.js +2 -2
  346. package/dist/lib/accent-presets.js +1 -1
  347. package/dist/lib/accent-roles.js +2 -2
  348. package/dist/lib/async-action.js +1 -1
  349. package/dist/lib/create-poll.js +1 -1
  350. package/dist/lib/create-poll.js.map +1 -1
  351. package/dist/lib/external-link.js +1 -1
  352. package/dist/lib/external-link.js.map +1 -1
  353. package/dist/lib/fast-icon.js +1 -1
  354. package/dist/lib/theme-css.js +1 -1
  355. package/dist/lib/theme-engine-light.js +1 -1
  356. package/dist/lib/theme-projection.js +2 -2
  357. package/dist/lib/theme-records.js +1 -1
  358. package/dist/lib/themes.js +1 -1
  359. package/dist/lib/themes.js.map +1 -1
  360. package/dist/lib/tooltip-focus-gate.js.map +1 -1
  361. package/dist/lib/utils.js +1 -1
  362. package/dist/vite/source-parser.js +1 -1
  363. package/dist/vite/tailwind-sources.js +1 -1
  364. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.js","names":["<ComboboxScopeContext value={scope}>\n <ComboboxPrimitive<unknown, boolean>\n multiple={props.multiple}\n value={props.value as unknown}\n defaultValue={props.defaultValue as unknown}\n onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }\n query={props.inputValue}\n defaultQuery={props.defaultInputValue}\n onQueryChange={(query: string) => props.onInputChange?.(query)}\n itemToValue={keyOf}\n itemToLabel={labelOf}\n isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}\n filter={filter}\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={(open: boolean) => props.onOpenChange?.(open)}\n disabled={props.disabled}\n required={props.required}\n readOnly={props.readOnly}\n name={props.name}\n modal={false}\n >\n {props.children}\n </ComboboxPrimitive>\n </ComboboxScopeContext>","value={scope}","<ComboboxPrimitive<unknown, boolean>\n multiple={props.multiple}\n value={props.value as unknown}\n defaultValue={props.defaultValue as unknown}\n onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }\n query={props.inputValue}\n defaultQuery={props.defaultInputValue}\n onQueryChange={(query: string) => props.onInputChange?.(query)}\n itemToValue={keyOf}\n itemToLabel={labelOf}\n isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}\n filter={filter}\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={(open: boolean) => props.onOpenChange?.(open)}\n disabled={props.disabled}\n required={props.required}\n readOnly={props.readOnly}\n name={props.name}\n modal={false}\n >\n {props.children}\n </ComboboxPrimitive>","onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }","onQueryChange={(query: string) => props.onInputChange?.(query)}","itemToValue={keyOf}","itemToLabel={labelOf}","isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}","onOpenChange={(open: boolean) => props.onOpenChange?.(open)}","modal={false}","<div {...rest}>\n <ComboboxScopeContext value={scope}>\n <ComboboxPrimitive<unknown, boolean>\n multiple={props.multiple}\n value={props.value as unknown}\n defaultValue={props.defaultValue as unknown}\n onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }\n query={props.inputValue}\n defaultQuery={props.defaultInputValue}\n onQueryChange={(query: string) => props.onInputChange?.(query)}\n itemToValue={keyOf}\n itemToLabel={labelOf}\n isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}\n filter={filter}\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={(open: boolean) => props.onOpenChange?.(open)}\n disabled={props.disabled}\n required={props.required}\n readOnly={props.readOnly}\n name={props.name}\n modal={false}\n >\n {props.children}\n </ComboboxPrimitive>\n </ComboboxScopeContext>\n </div>","ref={(element: HTMLDivElement) => {\n if (scope) scope.control.current = element\n callRef(props.ref, element)\n }}","<div\n ref={(element: HTMLDivElement) => {\n if (scope) scope.control.current = element\n callRef(props.ref, element)\n }}\n data-invalid={scope?.invalid() ? '' : undefined}\n data-disabled={scope?.disabled() ? '' : undefined}\n class={cn(\n 'border-input bg-transparent flex h-control-md w-full items-center gap-1.5 rounded-md border px-control-sm',\n 'transition-[color,box-shadow,border-color] ease-out',\n 'focus-within:border-ring focus-within:ring-3 focus-within:ring-primary-subtle',\n 'data-[invalid]:border-destructive data-[invalid]:ring-3 data-[invalid]:ring-destructive-subtle',\n 'data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50',\n props.class\n )}\n {...rest}\n />","<ComboboxInputPrimitive\n {...(rest as Record<string, unknown>)}\n id={field?.id ?? props.id}\n placeholder={props.placeholder ?? scope?.placeholder()}\n aria-label={props['aria-label']}\n aria-labelledby={field?.['aria-labelledby'] ?? props['aria-labelledby']}\n aria-describedby={field?.['aria-describedby'] ?? props['aria-describedby']}\n aria-invalid={\n field?.['aria-invalid'] ?? props['aria-invalid'] ?? (scope?.invalid() ? 'true' : undefined)\n }\n aria-errormessage={field?.['aria-errormessage'] ?? props['aria-errormessage']}\n class={cn(\n 'h-full flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed',\n props.class\n )}\n />","<ComboboxTriggerPrimitive\n {...(rest as Record<string, unknown>)}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n 'text-muted-foreground flex shrink-0 items-center justify-center rounded-sm outline-none',\n 'transition-colors ease-out hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'disabled:pointer-events-none disabled:opacity-50',\n props.class\n )}\n >\n {props.children}\n <span aria-hidden=\"true\">\n <ChevronDown class=\"size-4\" />\n </span>\n </ComboboxTriggerPrimitive>","render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button {...part} data-expanded={state.open ? '' : undefined} />\n )}","props.children","<ChevronDown class=\"size-4\" />","class=\"size-4\"","<ComboboxContentPrimitive\n {...(rest as Record<string, unknown>)}\n // Anchored to the whole control, as Kobalte did, so the list lines up\n // with the bordered row rather than the bare input inside it.\n anchor={{\n getBoundingClientRect: () =>\n (scope?.control.current ?? document.body).getBoundingClientRect(),\n }}\n // Kobalte's listbox popper gap (8 by default) plus half its arrow's box:\n // the Solid 1 content carried a popper arrow, which drew nothing visible\n // but pushed the list 15px further from the control. Kept for parity.\n sideOffset={(scope?.gutter() ?? 8) + 15}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n 'bg-popover text-popover-foreground rounded-xl border border-border shadow-lg',\n 'z-(--z-menu) max-h-72 min-w-(--anchor-width) origin-(--transform-origin) overflow-hidden',\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 'data-expanded:duration-150 data-closed:duration-100',\n props.class\n )}\n >\n <ComboboxList class={cn('max-h-72 overflow-y-auto', menuContentPadding)}>\n <For each={scope?.nodes() ?? []}>\n {(node) => {\n if (node.type === 'section') {\n const Section = dynamic(() => scope?.sectionComponent())\n return <Section section={node} />\n }\n const Item = dynamic(() => scope?.itemComponent())\n return <Item item={node} />\n }}\n </For>\n </ComboboxList>\n {props.children}\n </ComboboxContentPrimitive>","anchor={{\n getBoundingClientRect: () =>\n (scope?.control.current ?? document.body).getBoundingClientRect(),\n }}","render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}","<ComboboxList class={cn('max-h-72 overflow-y-auto', menuContentPadding)}>\n <For each={scope?.nodes() ?? []}>\n {(node) => {\n if (node.type === 'section') {\n const Section = dynamic(() => scope?.sectionComponent())\n return <Section section={node} />\n }\n const Item = dynamic(() => scope?.itemComponent())\n return <Item item={node} />\n }}\n </For>\n </ComboboxList>","<For each={scope?.nodes() ?? []}>\n {(node) => {\n if (node.type === 'section') {\n const Section = dynamic(() => scope?.sectionComponent())\n return <Section section={node} />\n }\n const Item = dynamic(() => scope?.itemComponent())\n return <Item item={node} />\n }}\n </For>","<Section section={node} />","section={node}","<Item item={node} />","item={node}","<ComboboxItemPrimitive\n {...(rest as Record<string, unknown>)}\n value={props.item.rawValue}\n label={props.item.textValue}\n disabled={props.item.disabled}\n class={cn(menuItem, 'pe-8', props.class)}\n >\n {(state: { selected: boolean }) => (\n <>\n <div>{props.children}</div>\n {/* The indicator reads in the accent, like every other selected\n state in the system. Drawn from the row's `selected` state. */}\n <Show when={state.selected}>\n <span\n data-slot=\"combobox-indicator\"\n aria-hidden=\"true\"\n class=\"absolute end-2 flex size-4 items-center justify-center text-primary\"\n >\n <Check class=\"size-4\" />\n </span>\n </Show>\n </>\n )}\n </ComboboxItemPrimitive>","<Show when={state.selected}>\n <span\n data-slot=\"combobox-indicator\"\n aria-hidden=\"true\"\n class=\"absolute end-2 flex size-4 items-center justify-center text-primary\"\n >\n <Check class=\"size-4\" />\n </span>\n </Show>","<Check class=\"size-4\" />","role=\"presentation\"","<div role=\"presentation\" class={cn('flex flex-col', props.class)} {...rest} />","<Show when={props.onClear}>\n <button\n type=\"button\"\n aria-label=\"Clear selection\"\n onClick={() => props.onClear()}\n class={cn(\n 'text-muted-foreground flex size-4 shrink-0 items-center justify-center rounded-sm',\n 'transition-colors ease-out outline-none hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n props.class\n )}\n >\n <X class=\"size-3.5\" />\n </button>\n </Show>","<X class=\"size-3.5\" />","class=\"size-3.5\"","Check","LucideCheck","ChevronDown","LucideChevronDown","X","LucideX","Combobox","ComboboxInput","ComboboxTrigger","ComboboxContent","ComboboxItem","_$readShallow"],"sources":["../../../../src/components/ui/combobox/combobox.tsx"],"sourcesContent":["import {\n Combobox as ComboboxPrimitive,\n ComboboxContent as ComboboxContentPrimitive,\n ComboboxInput as ComboboxInputPrimitive,\n ComboboxItem as ComboboxItemPrimitive,\n ComboboxList,\n ComboboxTrigger as ComboboxTriggerPrimitive,\n} from '@ui-sdk/solid/combobox'\nimport { Check as LucideCheck, ChevronDown as LucideChevronDown, X as LucideX } from '@lucide/solid'\nimport { dynamic, type ComponentProps, type JSX } from '@solidjs/web'\nimport { For, Show, createContext, createMemo, omit, useContext, type Component } from 'solid-js'\nimport { menuContentPadding, menuItem } from '#lib/overlay'\nimport { useFormFieldControl } from '#lib/form-field'\nimport { cn } from '#lib/utils'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Check = fastIcon(LucideCheck)\nconst ChevronDown = fastIcon(LucideChevronDown)\nconst X = fastIcon(LucideX)\n\n/**\n * One entry of the list the root builds from `options`: an option, or the\n * section heading of a group, with the Kobalte-era `CollectionNode` fields a\n * caller's `itemComponent` reads (`rawValue`, `key`, `textValue`).\n */\nexport type ComboboxCollectionNode<T> = {\n type: 'item' | 'section'\n key: string\n rawValue: T\n textValue: string\n disabled: boolean\n index: number\n}\n\ntype Accessor<T, R> = keyof T | ((option: T) => R)\n\ntype Selection<Option, Multiple extends boolean> = Multiple extends true ? Option[] : Option | null\n\nexport type ComboboxProps<Option, OptGroup = never, Multiple extends boolean = false> = Omit<\n ComponentProps<'div'>,\n 'onChange' | 'children'\n> & {\n options: ReadonlyArray<Option | OptGroup>\n /** The option's identity: a field name or a function. Defaults to the option itself. */\n optionValue?: Accessor<Option, string | number>\n /** The text the input filters by. */\n optionTextValue?: Accessor<Option, string>\n /** The text the input shows once the option is chosen. Defaults to `optionTextValue`. */\n optionLabel?: Accessor<Option, string>\n optionDisabled?: Accessor<Option, boolean>\n /** The field of a group that holds its options. */\n optionGroupChildren?: keyof OptGroup\n /** Draws one option; render a `ComboboxItem` with the `item` it receives. */\n itemComponent?: Component<{ item: ComboboxCollectionNode<Option> }>\n /** Draws a group's heading, before its options. */\n sectionComponent?: Component<{ section: ComboboxCollectionNode<OptGroup> }>\n /** The input's placeholder. */\n placeholder?: string\n multiple?: Multiple\n value?: Selection<Option, Multiple>\n defaultValue?: Selection<Option, Multiple>\n /** The chosen option, `null` for none, or the list with `multiple`. */\n onChange?: (value: Selection<Option, Multiple>) => void\n /** The input's text, which filters the list. Pass it to control the text. */\n inputValue?: string\n /** The input's text at first, when uncontrolled. */\n defaultInputValue?: string\n /** Runs as the input's text changes. */\n onInputChange?: (value: string) => void\n /**\n * How typing narrows the list: `startsWith` (the default, as before),\n * `endsWith`, `contains`, or a function of an option's text and the input.\n */\n defaultFilter?:\n | 'startsWith'\n | 'endsWith'\n | 'contains'\n | ((textValue: string, inputValue: string) => boolean)\n /**\n * Kept from the Kobalte-era API. ui-sdk opens the list with no match too,\n * so the content's own message (or a `ComboboxContent` child) shows.\n */\n allowsEmptyCollection?: boolean\n open?: boolean\n defaultOpen?: boolean\n onOpenChange?: (open: boolean) => void\n disabled?: boolean\n required?: boolean\n readOnly?: boolean\n name?: string\n /** `invalid` marks the control and the input. */\n validationState?: 'valid' | 'invalid'\n /** The gap between the control and the list, in pixels. */\n gutter?: number\n children?: JSX.Element\n}\n\ntype ComboboxScope = {\n nodes: () => ComboboxCollectionNode<unknown>[]\n itemComponent: () => Component<{ item: ComboboxCollectionNode<unknown> }> | undefined\n sectionComponent: () => Component<{ section: ComboboxCollectionNode<unknown> }> | undefined\n placeholder: () => string | undefined\n gutter: () => number | undefined\n invalid: () => boolean\n disabled: () => boolean\n /** The control the list is anchored to, the whole input row. */\n control: { current?: HTMLElement }\n}\n\n/**\n * Calls a caller's `ref`, which Solid 2 hands over as a function or, once\n * merged with another (a tooltip trigger around a menu trigger), an array.\n */\nfunction callRef<T>(ref: unknown, element: T): void {\n if (typeof ref === 'function') ref(element)\n else if (Array.isArray(ref)) for (const each of ref) callRef(each, element)\n}\n\nconst ComboboxScopeContext = createContext<ComboboxScope | null>(null)\n\nfunction read<T, R>(accessor: Accessor<T, R> | undefined, option: T, fallback: R): R {\n if (accessor === undefined) return fallback\n if (typeof accessor === 'function') return accessor(option)\n if (option !== null && typeof option === 'object') return option[accessor] as R\n return fallback\n}\n\n/**\n * Combobox.\n *\n * A Select whose list is filterable by typing. The difference from Select is\n * not cosmetic: a Combobox has a text input, so the user can narrow forty\n * options to one without reading the list. Above roughly ten options the\n * search is the feature; below it, a Select is quieter and a RadioGroup is\n * better still.\n *\n * ui-sdk's Combobox supplies the filtering, the `aria-activedescendant`\n * wiring, the keyboard selection and the multiple-selection mode, which is the\n * part a hand-rolled version reliably gets wrong. This keeps the Kobalte-era\n * collection API on top of it: `options` drawn through `itemComponent`, with\n * the caller's option object as the value.\n */\nexport function Combobox<Option, OptGroup = never, Multiple extends boolean = false>(\n props: ComboboxProps<Option, OptGroup, Multiple>\n) {\n const rest = omit(\n props,\n 'options',\n 'optionValue',\n 'optionTextValue',\n 'optionLabel',\n 'optionDisabled',\n 'optionGroupChildren',\n 'itemComponent',\n 'sectionComponent',\n 'placeholder',\n 'multiple',\n 'value',\n 'defaultValue',\n 'onChange',\n 'inputValue',\n 'defaultInputValue',\n 'onInputChange',\n 'defaultFilter',\n 'allowsEmptyCollection',\n 'open',\n 'defaultOpen',\n 'onOpenChange',\n 'disabled',\n 'required',\n 'readOnly',\n 'name',\n 'validationState',\n 'gutter',\n 'children'\n )\n const keyOf = (option: unknown) =>\n String(read(props.optionValue as Accessor<unknown, string | number>, option, option as string))\n const textOf = (option: unknown) =>\n read(props.optionTextValue as Accessor<unknown, string>, option, keyOf(option))\n const labelOf = (option: unknown) =>\n read(props.optionLabel as Accessor<unknown, string>, option, textOf(option))\n\n // One node per option, reused while the option object is, so the `<For>`\n // over them keeps its rows when `options` is replaced by an equal list.\n const cache = new WeakMap<object, ComboboxCollectionNode<unknown>>()\n const nodeOf = (rawValue: unknown, type: 'item' | 'section', index: number) => {\n const disabled =\n type === 'item' && !!read(props.optionDisabled as Accessor<unknown, boolean>, rawValue, false)\n const key = type === 'item' ? keyOf(rawValue) : `section-${index}`\n const textValue = type === 'item' ? labelOf(rawValue) : ''\n const cached =\n rawValue !== null && typeof rawValue === 'object' ? cache.get(rawValue) : undefined\n if (\n cached &&\n cached.type === type &&\n cached.key === key &&\n cached.textValue === textValue &&\n cached.disabled === disabled &&\n cached.index === index\n ) {\n return cached\n }\n const node = { type, key, rawValue, textValue, disabled, index }\n if (rawValue !== null && typeof rawValue === 'object') cache.set(rawValue, node)\n return node\n }\n\n const nodes = createMemo(() => {\n const children = props.optionGroupChildren\n const list: ComboboxCollectionNode<unknown>[] = []\n let index = 0\n for (const entry of props.options) {\n const groupItems =\n children && entry !== null && typeof entry === 'object'\n ? (entry as Record<PropertyKey, unknown>)[children as PropertyKey]\n : undefined\n if (Array.isArray(groupItems)) {\n list.push(nodeOf(entry, 'section', index++))\n for (const option of groupItems) list.push(nodeOf(option, 'item', index++))\n } else {\n list.push(nodeOf(entry, 'item', index++))\n }\n }\n return list\n })\n\n // Kobalte matched `optionTextValue`; ui-sdk matches an item's label, which\n // here is the chosen text, so a function filter reads the option again.\n const filter = (item: { value: unknown }, query: string) => {\n const text = textOf(item.value)\n const mode = props.defaultFilter ?? 'startsWith'\n if (typeof mode === 'function') return mode(text, query)\n const haystack = text.toLocaleLowerCase()\n const needle = query.toLocaleLowerCase()\n if (mode === 'contains') return haystack.includes(needle)\n if (mode === 'endsWith') return haystack.endsWith(needle)\n return haystack.startsWith(needle)\n }\n\n const scope: ComboboxScope = {\n nodes,\n itemComponent: () =>\n props.itemComponent as Component<{ item: ComboboxCollectionNode<unknown> }> | undefined,\n sectionComponent: () =>\n props.sectionComponent as Component<{ section: ComboboxCollectionNode<unknown> }> | undefined,\n placeholder: () => props.placeholder,\n gutter: () => props.gutter,\n invalid: () => props.validationState === 'invalid',\n disabled: () => !!props.disabled,\n control: {},\n }\n\n // Kobalte's root was an element; the wrapper keeps that box and its props.\n return (\n <div {...rest}>\n <ComboboxScopeContext value={scope}>\n <ComboboxPrimitive<unknown, boolean>\n multiple={props.multiple}\n value={props.value as unknown}\n defaultValue={props.defaultValue as unknown}\n onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }\n query={props.inputValue}\n defaultQuery={props.defaultInputValue}\n onQueryChange={(query: string) => props.onInputChange?.(query)}\n itemToValue={keyOf}\n itemToLabel={labelOf}\n isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}\n filter={filter}\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={(open: boolean) => props.onOpenChange?.(open)}\n disabled={props.disabled}\n required={props.required}\n readOnly={props.readOnly}\n name={props.name}\n modal={false}\n >\n {props.children}\n </ComboboxPrimitive>\n </ComboboxScopeContext>\n </div>\n )\n}\n\n/** The input row: the input, its trigger and any clear button, as one bordered control. */\nexport function ComboboxControl(props: ComponentProps<'div'>) {\n const scope = useContext(ComboboxScopeContext)\n const rest = omit(props, 'class', 'ref')\n\n return (\n <div\n ref={(element: HTMLDivElement) => {\n if (scope) scope.control.current = element\n callRef(props.ref, element)\n }}\n data-invalid={scope?.invalid() ? '' : undefined}\n data-disabled={scope?.disabled() ? '' : undefined}\n class={cn(\n 'border-input bg-transparent flex h-control-md w-full items-center gap-1.5 rounded-md border px-control-sm',\n 'transition-[color,box-shadow,border-color] ease-out',\n 'focus-within:border-ring focus-within:ring-3 focus-within:ring-primary-subtle',\n 'data-[invalid]:border-destructive data-[invalid]:ring-3 data-[invalid]:ring-destructive-subtle',\n 'data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50',\n props.class\n )}\n {...rest}\n />\n )\n}\n\nexport type ComboboxInputProps = Omit<\n ComponentProps<'input'>,\n 'value' | 'defaultValue' | 'children'\n>\n\nexport function ComboboxInput(props: ComboboxInputProps) {\n const scope = useContext(ComboboxScopeContext)\n const rest = omit(\n props,\n 'class',\n 'id',\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-invalid',\n 'aria-errormessage',\n 'placeholder'\n )\n const field = useFormFieldControl('control', props)\n\n return (\n <ComboboxInputPrimitive\n {...(rest as Record<string, unknown>)}\n id={field?.id ?? props.id}\n placeholder={props.placeholder ?? scope?.placeholder()}\n aria-label={props['aria-label']}\n aria-labelledby={field?.['aria-labelledby'] ?? props['aria-labelledby']}\n aria-describedby={field?.['aria-describedby'] ?? props['aria-describedby']}\n aria-invalid={\n field?.['aria-invalid'] ?? props['aria-invalid'] ?? (scope?.invalid() ? 'true' : undefined)\n }\n aria-errormessage={field?.['aria-errormessage'] ?? props['aria-errormessage']}\n class={cn(\n 'h-full flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed',\n props.class\n )}\n />\n )\n}\n\nexport function ComboboxTrigger(props: ComponentProps<'button'>) {\n const rest = omit(props, 'class', 'children')\n\n return (\n <ComboboxTriggerPrimitive\n {...(rest as Record<string, unknown>)}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n 'text-muted-foreground flex shrink-0 items-center justify-center rounded-sm outline-none',\n 'transition-colors ease-out hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'disabled:pointer-events-none disabled:opacity-50',\n props.class\n )}\n >\n {props.children}\n <span aria-hidden=\"true\">\n <ChevronDown class=\"size-4\" />\n </span>\n </ComboboxTriggerPrimitive>\n )\n}\n\nexport type ComboboxContentProps = Omit<ComponentProps<'div'>, 'children'> & {\n /** Shown under the list, such as an empty-state message. */\n children?: JSX.Element\n}\n\nexport function ComboboxContent(props: ComboboxContentProps) {\n const scope = useContext(ComboboxScopeContext)\n const rest = omit(props, 'class', 'children')\n\n return (\n <ComboboxContentPrimitive\n {...(rest as Record<string, unknown>)}\n // Anchored to the whole control, as Kobalte did, so the list lines up\n // with the bordered row rather than the bare input inside it.\n anchor={{\n getBoundingClientRect: () =>\n (scope?.control.current ?? document.body).getBoundingClientRect(),\n }}\n // Kobalte's listbox popper gap (8 by default) plus half its arrow's box:\n // the Solid 1 content carried a popper arrow, which drew nothing visible\n // but pushed the list 15px further from the control. Kept for parity.\n sideOffset={(scope?.gutter() ?? 8) + 15}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n 'bg-popover text-popover-foreground rounded-xl border border-border shadow-lg',\n 'z-(--z-menu) max-h-72 min-w-(--anchor-width) origin-(--transform-origin) overflow-hidden',\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 'data-expanded:duration-150 data-closed:duration-100',\n props.class\n )}\n >\n <ComboboxList class={cn('max-h-72 overflow-y-auto', menuContentPadding)}>\n <For each={scope?.nodes() ?? []}>\n {(node) => {\n if (node.type === 'section') {\n const Section = dynamic(() => scope?.sectionComponent())\n return <Section section={node} />\n }\n const Item = dynamic(() => scope?.itemComponent())\n return <Item item={node} />\n }}\n </For>\n </ComboboxList>\n {props.children}\n </ComboboxContentPrimitive>\n )\n}\n\nexport type ComboboxItemProps = Omit<ComponentProps<'div'>, 'onSelect' | 'onChange'> & {\n /** The node the root's `itemComponent` received. */\n item: ComboboxCollectionNode<any>\n}\n\nexport function ComboboxItem(props: ComboboxItemProps) {\n const rest = omit(props, 'class', 'children', 'item')\n\n return (\n <ComboboxItemPrimitive\n {...(rest as Record<string, unknown>)}\n value={props.item.rawValue}\n label={props.item.textValue}\n disabled={props.item.disabled}\n class={cn(menuItem, 'pe-8', props.class)}\n >\n {(state: { selected: boolean }) => (\n <>\n <div>{props.children}</div>\n {/* The indicator reads in the accent, like every other selected\n state in the system. Drawn from the row's `selected` state. */}\n <Show when={state.selected}>\n <span\n data-slot=\"combobox-indicator\"\n aria-hidden=\"true\"\n class=\"absolute end-2 flex size-4 items-center justify-center text-primary\"\n >\n <Check class=\"size-4\" />\n </span>\n </Show>\n </>\n )}\n </ComboboxItemPrimitive>\n )\n}\n\n/** A group's wrapper inside the list, for a `sectionComponent`. */\nexport function ComboboxSection(props: ComponentProps<'div'>) {\n const rest = omit(props, 'class')\n return <div role=\"presentation\" class={cn('flex flex-col', props.class)} {...rest} />\n}\n\n/** The clear affordance for a single-select Combobox with a value. */\nexport function ComboboxClear(props: { class?: string; onClear: () => void }) {\n return (\n <Show when={props.onClear}>\n <button\n type=\"button\"\n aria-label=\"Clear selection\"\n onClick={() => props.onClear()}\n class={cn(\n 'text-muted-foreground flex size-4 shrink-0 items-center justify-center rounded-sm',\n 'transition-colors ease-out outline-none hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n props.class\n )}\n >\n <X class=\"size-3.5\" />\n </button>\n </Show>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAiBA,IAAMoC,UAAQ,SAASC,KAAW;AAClC,IAAMC,gBAAc,SAASC,WAAiB;AAC9C,IAAMC,MAAI,SAASC,CAAO;;;;;AA+F1B,SAAS,QAAW,KAAc,SAAkB;CAClD,IAAI,OAAO,QAAQ,YAAY,IAAI,OAAO;MACrC,IAAI,MAAM,QAAQ,GAAG,GAAG,KAAK,MAAM,QAAQ,KAAK,QAAQ,MAAM,OAAO;AAC5E;AAEA,IAAM,uBAAuB,cAAoC,IAAI;AAErE,SAAS,KAAW,UAAsC,QAAW,UAAgB;CACnF,IAAI,aAAa,KAAA,GAAW,OAAO;CACnC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A,QAAA;IAKC,UAAA,OAAA,KAAA,GAAA;;GATH,OAAA;EAYQ,EAAA,CAAA,IAbV,KAAA;CAcM,CAAA;AAEV"}
1
+ {"version":3,"file":"combobox.js","names":["<ComboboxScopeContext value={scope}>\n <ComboboxPrimitive<unknown, boolean>\n multiple={props.multiple}\n value={props.value as unknown}\n defaultValue={props.defaultValue as unknown}\n onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }\n query={props.inputValue}\n defaultQuery={props.defaultInputValue}\n onQueryChange={(query: string) => props.onInputChange?.(query)}\n itemToValue={keyOf}\n itemToLabel={labelOf}\n isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}\n filter={filter}\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={(open: boolean) => props.onOpenChange?.(open)}\n disabled={props.disabled}\n required={props.required}\n readOnly={props.readOnly}\n name={props.name}\n modal={false}\n >\n {props.children}\n </ComboboxPrimitive>\n </ComboboxScopeContext>","value={scope}","<ComboboxPrimitive<unknown, boolean>\n multiple={props.multiple}\n value={props.value as unknown}\n defaultValue={props.defaultValue as unknown}\n onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }\n query={props.inputValue}\n defaultQuery={props.defaultInputValue}\n onQueryChange={(query: string) => props.onInputChange?.(query)}\n itemToValue={keyOf}\n itemToLabel={labelOf}\n isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}\n filter={filter}\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={(open: boolean) => props.onOpenChange?.(open)}\n disabled={props.disabled}\n required={props.required}\n readOnly={props.readOnly}\n name={props.name}\n modal={false}\n >\n {props.children}\n </ComboboxPrimitive>","onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }","onQueryChange={(query: string) => props.onInputChange?.(query)}","itemToValue={keyOf}","itemToLabel={labelOf}","isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}","onOpenChange={(open: boolean) => props.onOpenChange?.(open)}","modal={false}","<div {...rest}>\n <ComboboxScopeContext value={scope}>\n <ComboboxPrimitive<unknown, boolean>\n multiple={props.multiple}\n value={props.value as unknown}\n defaultValue={props.defaultValue as unknown}\n onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }\n query={props.inputValue}\n defaultQuery={props.defaultInputValue}\n onQueryChange={(query: string) => props.onInputChange?.(query)}\n itemToValue={keyOf}\n itemToLabel={labelOf}\n isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}\n filter={filter}\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={(open: boolean) => props.onOpenChange?.(open)}\n disabled={props.disabled}\n required={props.required}\n readOnly={props.readOnly}\n name={props.name}\n modal={false}\n >\n {props.children}\n </ComboboxPrimitive>\n </ComboboxScopeContext>\n </div>","ref={(element: HTMLDivElement) => {\n if (scope) scope.control.current = element\n callRef(props.ref, element)\n }}","<div\n ref={(element: HTMLDivElement) => {\n if (scope) scope.control.current = element\n callRef(props.ref, element)\n }}\n data-invalid={scope?.invalid() ? '' : undefined}\n data-disabled={scope?.disabled() ? '' : undefined}\n class={cn(\n 'border-input bg-transparent flex h-control-md w-full items-center gap-1.5 rounded-md border px-control-sm',\n 'transition-[color,box-shadow,border-color] ease-out',\n 'focus-within:border-ring focus-within:ring-3 focus-within:ring-primary-subtle',\n 'data-[invalid]:border-destructive data-[invalid]:ring-3 data-[invalid]:ring-destructive-subtle',\n 'data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50',\n props.class\n )}\n {...rest}\n />","<ComboboxInputPrimitive\n {...(rest as Record<string, unknown>)}\n id={field?.id ?? props.id}\n placeholder={props.placeholder ?? scope?.placeholder()}\n aria-label={props['aria-label']}\n aria-labelledby={field?.['aria-labelledby'] ?? props['aria-labelledby']}\n aria-describedby={field?.['aria-describedby'] ?? props['aria-describedby']}\n aria-invalid={\n field?.['aria-invalid'] ?? props['aria-invalid'] ?? (scope?.invalid() ? 'true' : undefined)\n }\n aria-errormessage={field?.['aria-errormessage'] ?? props['aria-errormessage']}\n class={cn(\n 'h-full flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed',\n props.class\n )}\n />","<ComboboxTriggerPrimitive\n {...(rest as Record<string, unknown>)}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n 'text-muted-foreground flex shrink-0 items-center justify-center rounded-sm outline-none',\n 'transition-colors ease-out hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'disabled:pointer-events-none disabled:opacity-50',\n props.class\n )}\n >\n {props.children}\n <span aria-hidden=\"true\">\n <ChevronDown class=\"size-4\" />\n </span>\n </ComboboxTriggerPrimitive>","render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button {...part} data-expanded={state.open ? '' : undefined} />\n )}","props.children","<ChevronDown class=\"size-4\" />","class=\"size-4\"","<ComboboxContentPrimitive\n {...(rest as Record<string, unknown>)}\n // Anchored to the whole control, as Kobalte did, so the list lines up\n // with the bordered row rather than the bare input inside it.\n anchor={{\n getBoundingClientRect: () =>\n (scope?.control.current ?? document.body).getBoundingClientRect(),\n }}\n // Kobalte's listbox popper gap (8 by default) plus half its arrow's box:\n // the Solid 1 content carried a popper arrow, which drew nothing visible\n // but pushed the list 15px further from the control. Kept for parity.\n sideOffset={(scope?.gutter() ?? 8) + 15}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n 'bg-popover text-popover-foreground rounded-xl border border-border shadow-lg',\n 'z-(--z-menu) max-h-72 min-w-(--anchor-width) origin-(--transform-origin) overflow-hidden',\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 'data-expanded:duration-150 data-closed:duration-100',\n props.class\n )}\n >\n <ComboboxList class={cn('max-h-72 overflow-y-auto', menuContentPadding)}>\n <For each={scope?.nodes() ?? []}>\n {(node) => {\n if (node.type === 'section') {\n const Section = dynamic(() => scope?.sectionComponent())\n return <Section section={node} />\n }\n const Item = dynamic(() => scope?.itemComponent())\n return <Item item={node} />\n }}\n </For>\n </ComboboxList>\n {props.children}\n </ComboboxContentPrimitive>","anchor={{\n getBoundingClientRect: () =>\n (scope?.control.current ?? document.body).getBoundingClientRect(),\n }}","render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}","<ComboboxList class={cn('max-h-72 overflow-y-auto', menuContentPadding)}>\n <For each={scope?.nodes() ?? []}>\n {(node) => {\n if (node.type === 'section') {\n const Section = dynamic(() => scope?.sectionComponent())\n return <Section section={node} />\n }\n const Item = dynamic(() => scope?.itemComponent())\n return <Item item={node} />\n }}\n </For>\n </ComboboxList>","<For each={scope?.nodes() ?? []}>\n {(node) => {\n if (node.type === 'section') {\n const Section = dynamic(() => scope?.sectionComponent())\n return <Section section={node} />\n }\n const Item = dynamic(() => scope?.itemComponent())\n return <Item item={node} />\n }}\n </For>","<Section section={node} />","section={node}","<Item item={node} />","item={node}","<ComboboxItemPrimitive\n {...(rest as Record<string, unknown>)}\n value={props.item.rawValue}\n label={props.item.textValue}\n disabled={props.item.disabled}\n class={cn(menuItem, 'pe-8', props.class)}\n >\n {(state: { selected: boolean }) => (\n <>\n <div>{props.children}</div>\n {/* The indicator reads in the accent, like every other selected\n state in the system. Drawn from the row's `selected` state. */}\n <Show when={state.selected}>\n <span\n data-slot=\"combobox-indicator\"\n aria-hidden=\"true\"\n class=\"absolute end-2 flex size-4 items-center justify-center text-primary\"\n >\n <Check class=\"size-4\" />\n </span>\n </Show>\n </>\n )}\n </ComboboxItemPrimitive>","<Show when={state.selected}>\n <span\n data-slot=\"combobox-indicator\"\n aria-hidden=\"true\"\n class=\"absolute end-2 flex size-4 items-center justify-center text-primary\"\n >\n <Check class=\"size-4\" />\n </span>\n </Show>","<Check class=\"size-4\" />","role=\"presentation\"","<div role=\"presentation\" class={cn('flex flex-col', props.class)} {...rest} />","<Show when={props.onClear}>\n <button\n type=\"button\"\n aria-label=\"Clear selection\"\n onClick={() => props.onClear()}\n class={cn(\n 'text-muted-foreground flex size-4 shrink-0 items-center justify-center rounded-sm',\n 'transition-colors ease-out outline-none hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n props.class\n )}\n >\n <X class=\"size-3.5\" />\n </button>\n </Show>","<X class=\"size-3.5\" />","class=\"size-3.5\"","LucideCheck","LucideChevronDown","LucideX","_$spread","_$insert","_$ref","_$effect","_$readShallow","_$className"],"sources":["../../../../src/components/ui/combobox/combobox.tsx"],"sourcesContent":["import {\n Combobox as ComboboxPrimitive,\n ComboboxContent as ComboboxContentPrimitive,\n ComboboxInput as ComboboxInputPrimitive,\n ComboboxItem as ComboboxItemPrimitive,\n ComboboxList,\n ComboboxTrigger as ComboboxTriggerPrimitive,\n} from '@ui-sdk/solid/combobox'\nimport { Check as LucideCheck, ChevronDown as LucideChevronDown, X as LucideX } from '@lucide/solid'\nimport { dynamic, type ComponentProps, type JSX } from '@solidjs/web'\nimport { For, Show, createContext, createMemo, omit, useContext, type Component } from 'solid-js'\nimport { menuContentPadding, menuItem } from '#lib/overlay'\nimport { useFormFieldControl } from '#lib/form-field'\nimport { cn } from '#lib/utils'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Check = fastIcon(LucideCheck)\nconst ChevronDown = fastIcon(LucideChevronDown)\nconst X = fastIcon(LucideX)\n\n/**\n * One entry of the list the root builds from `options`: an option, or the\n * section heading of a group, with the Kobalte-era `CollectionNode` fields a\n * caller's `itemComponent` reads (`rawValue`, `key`, `textValue`).\n */\nexport type ComboboxCollectionNode<T> = {\n type: 'item' | 'section'\n key: string\n rawValue: T\n textValue: string\n disabled: boolean\n index: number\n}\n\ntype Accessor<T, R> = keyof T | ((option: T) => R)\n\ntype Selection<Option, Multiple extends boolean> = Multiple extends true ? Option[] : Option | null\n\nexport type ComboboxProps<Option, OptGroup = never, Multiple extends boolean = false> = Omit<\n ComponentProps<'div'>,\n 'onChange' | 'children'\n> & {\n options: ReadonlyArray<Option | OptGroup>\n /** The option's identity: a field name or a function. Defaults to the option itself. */\n optionValue?: Accessor<Option, string | number>\n /** The text the input filters by. */\n optionTextValue?: Accessor<Option, string>\n /** The text the input shows once the option is chosen. Defaults to `optionTextValue`. */\n optionLabel?: Accessor<Option, string>\n optionDisabled?: Accessor<Option, boolean>\n /** The field of a group that holds its options. */\n optionGroupChildren?: keyof OptGroup\n /** Draws one option; render a `ComboboxItem` with the `item` it receives. */\n itemComponent?: Component<{ item: ComboboxCollectionNode<Option> }>\n /** Draws a group's heading, before its options. */\n sectionComponent?: Component<{ section: ComboboxCollectionNode<OptGroup> }>\n /** The input's placeholder. */\n placeholder?: string\n multiple?: Multiple\n value?: Selection<Option, Multiple>\n defaultValue?: Selection<Option, Multiple>\n /** The chosen option, `null` for none, or the list with `multiple`. */\n onChange?: (value: Selection<Option, Multiple>) => void\n /** The input's text, which filters the list. Pass it to control the text. */\n inputValue?: string\n /** The input's text at first, when uncontrolled. */\n defaultInputValue?: string\n /** Runs as the input's text changes. */\n onInputChange?: (value: string) => void\n /**\n * How typing narrows the list: `startsWith` (the default, as before),\n * `endsWith`, `contains`, or a function of an option's text and the input.\n */\n defaultFilter?:\n | 'startsWith'\n | 'endsWith'\n | 'contains'\n | ((textValue: string, inputValue: string) => boolean)\n /**\n * Kept from the Kobalte-era API. ui-sdk opens the list with no match too,\n * so the content's own message (or a `ComboboxContent` child) shows.\n */\n allowsEmptyCollection?: boolean\n open?: boolean\n defaultOpen?: boolean\n onOpenChange?: (open: boolean) => void\n disabled?: boolean\n required?: boolean\n readOnly?: boolean\n name?: string\n /** `invalid` marks the control and the input. */\n validationState?: 'valid' | 'invalid'\n /** The gap between the control and the list, in pixels. */\n gutter?: number\n children?: JSX.Element\n}\n\ntype ComboboxScope = {\n nodes: () => ComboboxCollectionNode<unknown>[]\n itemComponent: () => Component<{ item: ComboboxCollectionNode<unknown> }> | undefined\n sectionComponent: () => Component<{ section: ComboboxCollectionNode<unknown> }> | undefined\n placeholder: () => string | undefined\n gutter: () => number | undefined\n invalid: () => boolean\n disabled: () => boolean\n /** The control the list is anchored to, the whole input row. */\n control: { current?: HTMLElement }\n}\n\n/**\n * Calls a caller's `ref`, which Solid 2 hands over as a function or, once\n * merged with another (a tooltip trigger around a menu trigger), an array.\n */\nfunction callRef<T>(ref: unknown, element: T): void {\n if (typeof ref === 'function') ref(element)\n else if (Array.isArray(ref)) for (const each of ref) callRef(each, element)\n}\n\nconst ComboboxScopeContext = createContext<ComboboxScope | null>(null)\n\nfunction read<T, R>(accessor: Accessor<T, R> | undefined, option: T, fallback: R): R {\n if (accessor === undefined) return fallback\n if (typeof accessor === 'function') return accessor(option)\n if (option !== null && typeof option === 'object') return option[accessor] as R\n return fallback\n}\n\n/**\n * Combobox.\n *\n * A Select whose list is filterable by typing. The difference from Select is\n * not cosmetic: a Combobox has a text input, so the user can narrow forty\n * options to one without reading the list. Above roughly ten options the\n * search is the feature; below it, a Select is quieter and a RadioGroup is\n * better still.\n *\n * ui-sdk's Combobox supplies the filtering, the `aria-activedescendant`\n * wiring, the keyboard selection and the multiple-selection mode, which is the\n * part a hand-rolled version reliably gets wrong. This keeps the Kobalte-era\n * collection API on top of it: `options` drawn through `itemComponent`, with\n * the caller's option object as the value.\n */\nexport function Combobox<Option, OptGroup = never, Multiple extends boolean = false>(\n props: ComboboxProps<Option, OptGroup, Multiple>\n) {\n const rest = omit(\n props,\n 'options',\n 'optionValue',\n 'optionTextValue',\n 'optionLabel',\n 'optionDisabled',\n 'optionGroupChildren',\n 'itemComponent',\n 'sectionComponent',\n 'placeholder',\n 'multiple',\n 'value',\n 'defaultValue',\n 'onChange',\n 'inputValue',\n 'defaultInputValue',\n 'onInputChange',\n 'defaultFilter',\n 'allowsEmptyCollection',\n 'open',\n 'defaultOpen',\n 'onOpenChange',\n 'disabled',\n 'required',\n 'readOnly',\n 'name',\n 'validationState',\n 'gutter',\n 'children'\n )\n const keyOf = (option: unknown) =>\n String(read(props.optionValue as Accessor<unknown, string | number>, option, option as string))\n const textOf = (option: unknown) =>\n read(props.optionTextValue as Accessor<unknown, string>, option, keyOf(option))\n const labelOf = (option: unknown) =>\n read(props.optionLabel as Accessor<unknown, string>, option, textOf(option))\n\n // One node per option, reused while the option object is, so the `<For>`\n // over them keeps its rows when `options` is replaced by an equal list.\n const cache = new WeakMap<object, ComboboxCollectionNode<unknown>>()\n const nodeOf = (rawValue: unknown, type: 'item' | 'section', index: number) => {\n const disabled =\n type === 'item' && !!read(props.optionDisabled as Accessor<unknown, boolean>, rawValue, false)\n const key = type === 'item' ? keyOf(rawValue) : `section-${index}`\n const textValue = type === 'item' ? labelOf(rawValue) : ''\n const cached =\n rawValue !== null && typeof rawValue === 'object' ? cache.get(rawValue) : undefined\n if (\n cached &&\n cached.type === type &&\n cached.key === key &&\n cached.textValue === textValue &&\n cached.disabled === disabled &&\n cached.index === index\n ) {\n return cached\n }\n const node = { type, key, rawValue, textValue, disabled, index }\n if (rawValue !== null && typeof rawValue === 'object') cache.set(rawValue, node)\n return node\n }\n\n const nodes = createMemo(() => {\n const children = props.optionGroupChildren\n const list: ComboboxCollectionNode<unknown>[] = []\n let index = 0\n for (const entry of props.options) {\n const groupItems =\n children && entry !== null && typeof entry === 'object'\n ? (entry as Record<PropertyKey, unknown>)[children as PropertyKey]\n : undefined\n if (Array.isArray(groupItems)) {\n list.push(nodeOf(entry, 'section', index++))\n for (const option of groupItems) list.push(nodeOf(option, 'item', index++))\n } else {\n list.push(nodeOf(entry, 'item', index++))\n }\n }\n return list\n })\n\n // Kobalte matched `optionTextValue`; ui-sdk matches an item's label, which\n // here is the chosen text, so a function filter reads the option again.\n const filter = (item: { value: unknown }, query: string) => {\n const text = textOf(item.value)\n const mode = props.defaultFilter ?? 'startsWith'\n if (typeof mode === 'function') return mode(text, query)\n const haystack = text.toLocaleLowerCase()\n const needle = query.toLocaleLowerCase()\n if (mode === 'contains') return haystack.includes(needle)\n if (mode === 'endsWith') return haystack.endsWith(needle)\n return haystack.startsWith(needle)\n }\n\n const scope: ComboboxScope = {\n nodes,\n itemComponent: () =>\n props.itemComponent as Component<{ item: ComboboxCollectionNode<unknown> }> | undefined,\n sectionComponent: () =>\n props.sectionComponent as Component<{ section: ComboboxCollectionNode<unknown> }> | undefined,\n placeholder: () => props.placeholder,\n gutter: () => props.gutter,\n invalid: () => props.validationState === 'invalid',\n disabled: () => !!props.disabled,\n control: {},\n }\n\n // Kobalte's root was an element; the wrapper keeps that box and its props.\n return (\n <div {...rest}>\n <ComboboxScopeContext value={scope}>\n <ComboboxPrimitive<unknown, boolean>\n multiple={props.multiple}\n value={props.value as unknown}\n defaultValue={props.defaultValue as unknown}\n onValueChange={(value: unknown) =>\n (props.onChange as ((value: unknown) => void) | undefined)?.(value ?? null)\n }\n query={props.inputValue}\n defaultQuery={props.defaultInputValue}\n onQueryChange={(query: string) => props.onInputChange?.(query)}\n itemToValue={keyOf}\n itemToLabel={labelOf}\n isItemEqualToValue={(item: unknown, value: unknown) => keyOf(item) === keyOf(value)}\n filter={filter}\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={(open: boolean) => props.onOpenChange?.(open)}\n disabled={props.disabled}\n required={props.required}\n readOnly={props.readOnly}\n name={props.name}\n modal={false}\n >\n {props.children}\n </ComboboxPrimitive>\n </ComboboxScopeContext>\n </div>\n )\n}\n\n/** The input row: the input, its trigger and any clear button, as one bordered control. */\nexport function ComboboxControl(props: ComponentProps<'div'>) {\n const scope = useContext(ComboboxScopeContext)\n const rest = omit(props, 'class', 'ref')\n\n return (\n <div\n ref={(element: HTMLDivElement) => {\n if (scope) scope.control.current = element\n callRef(props.ref, element)\n }}\n data-invalid={scope?.invalid() ? '' : undefined}\n data-disabled={scope?.disabled() ? '' : undefined}\n class={cn(\n 'border-input bg-transparent flex h-control-md w-full items-center gap-1.5 rounded-md border px-control-sm',\n 'transition-[color,box-shadow,border-color] ease-out',\n 'focus-within:border-ring focus-within:ring-3 focus-within:ring-primary-subtle',\n 'data-[invalid]:border-destructive data-[invalid]:ring-3 data-[invalid]:ring-destructive-subtle',\n 'data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50',\n props.class\n )}\n {...rest}\n />\n )\n}\n\nexport type ComboboxInputProps = Omit<\n ComponentProps<'input'>,\n 'value' | 'defaultValue' | 'children'\n>\n\nexport function ComboboxInput(props: ComboboxInputProps) {\n const scope = useContext(ComboboxScopeContext)\n const rest = omit(\n props,\n 'class',\n 'id',\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-invalid',\n 'aria-errormessage',\n 'placeholder'\n )\n const field = useFormFieldControl('control', props)\n\n return (\n <ComboboxInputPrimitive\n {...(rest as Record<string, unknown>)}\n id={field?.id ?? props.id}\n placeholder={props.placeholder ?? scope?.placeholder()}\n aria-label={props['aria-label']}\n aria-labelledby={field?.['aria-labelledby'] ?? props['aria-labelledby']}\n aria-describedby={field?.['aria-describedby'] ?? props['aria-describedby']}\n aria-invalid={\n field?.['aria-invalid'] ?? props['aria-invalid'] ?? (scope?.invalid() ? 'true' : undefined)\n }\n aria-errormessage={field?.['aria-errormessage'] ?? props['aria-errormessage']}\n class={cn(\n 'h-full flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed',\n props.class\n )}\n />\n )\n}\n\nexport function ComboboxTrigger(props: ComponentProps<'button'>) {\n const rest = omit(props, 'class', 'children')\n\n return (\n <ComboboxTriggerPrimitive\n {...(rest as Record<string, unknown>)}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n 'text-muted-foreground flex shrink-0 items-center justify-center rounded-sm outline-none',\n 'transition-colors ease-out hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'disabled:pointer-events-none disabled:opacity-50',\n props.class\n )}\n >\n {props.children}\n <span aria-hidden=\"true\">\n <ChevronDown class=\"size-4\" />\n </span>\n </ComboboxTriggerPrimitive>\n )\n}\n\nexport type ComboboxContentProps = Omit<ComponentProps<'div'>, 'children'> & {\n /** Shown under the list, such as an empty-state message. */\n children?: JSX.Element\n}\n\nexport function ComboboxContent(props: ComboboxContentProps) {\n const scope = useContext(ComboboxScopeContext)\n const rest = omit(props, 'class', 'children')\n\n return (\n <ComboboxContentPrimitive\n {...(rest as Record<string, unknown>)}\n // Anchored to the whole control, as Kobalte did, so the list lines up\n // with the bordered row rather than the bare input inside it.\n anchor={{\n getBoundingClientRect: () =>\n (scope?.control.current ?? document.body).getBoundingClientRect(),\n }}\n // Kobalte's listbox popper gap (8 by default) plus half its arrow's box:\n // the Solid 1 content carried a popper arrow, which drew nothing visible\n // but pushed the list 15px further from the control. Kept for parity.\n sideOffset={(scope?.gutter() ?? 8) + 15}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n 'bg-popover text-popover-foreground rounded-xl border border-border shadow-lg',\n 'z-(--z-menu) max-h-72 min-w-(--anchor-width) origin-(--transform-origin) overflow-hidden',\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 'data-expanded:duration-150 data-closed:duration-100',\n props.class\n )}\n >\n <ComboboxList class={cn('max-h-72 overflow-y-auto', menuContentPadding)}>\n <For each={scope?.nodes() ?? []}>\n {(node) => {\n if (node.type === 'section') {\n const Section = dynamic(() => scope?.sectionComponent())\n return <Section section={node} />\n }\n const Item = dynamic(() => scope?.itemComponent())\n return <Item item={node} />\n }}\n </For>\n </ComboboxList>\n {props.children}\n </ComboboxContentPrimitive>\n )\n}\n\nexport type ComboboxItemProps = Omit<ComponentProps<'div'>, 'onSelect' | 'onChange'> & {\n /** The node the root's `itemComponent` received. */\n item: ComboboxCollectionNode<any>\n}\n\nexport function ComboboxItem(props: ComboboxItemProps) {\n const rest = omit(props, 'class', 'children', 'item')\n\n return (\n <ComboboxItemPrimitive\n {...(rest as Record<string, unknown>)}\n value={props.item.rawValue}\n label={props.item.textValue}\n disabled={props.item.disabled}\n class={cn(menuItem, 'pe-8', props.class)}\n >\n {(state: { selected: boolean }) => (\n <>\n <div>{props.children}</div>\n {/* The indicator reads in the accent, like every other selected\n state in the system. Drawn from the row's `selected` state. */}\n <Show when={state.selected}>\n <span\n data-slot=\"combobox-indicator\"\n aria-hidden=\"true\"\n class=\"absolute end-2 flex size-4 items-center justify-center text-primary\"\n >\n <Check class=\"size-4\" />\n </span>\n </Show>\n </>\n )}\n </ComboboxItemPrimitive>\n )\n}\n\n/** A group's wrapper inside the list, for a `sectionComponent`. */\nexport function ComboboxSection(props: ComponentProps<'div'>) {\n const rest = omit(props, 'class')\n return <div role=\"presentation\" class={cn('flex flex-col', props.class)} {...rest} />\n}\n\n/** The clear affordance for a single-select Combobox with a value. */\nexport function ComboboxClear(props: { class?: string; onClear: () => void }) {\n return (\n <Show when={props.onClear}>\n <button\n type=\"button\"\n aria-label=\"Clear selection\"\n onClick={() => props.onClear()}\n class={cn(\n 'text-muted-foreground flex size-4 shrink-0 items-center justify-center rounded-sm',\n 'transition-colors ease-out outline-none hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n props.class\n )}\n >\n <X class=\"size-3.5\" />\n </button>\n </Show>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAiBA,IAAM,QAAQ,SAASoC,OAAW;AAClC,IAAM,cAAc,SAASC,aAAiB;AAC9C,IAAM,IAAI,SAASC,GAAO;;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B,cAAc,OAAgD;CAC5E,OACEC,WAAAA;;GAAY,OAAA,CAAA,CAAA,MAAM;EAcZ,CAAA,CAAC,CAAD,WAbJ;GAYQ,IAAA,QAAA,QAAA;GATN,MAAA,iBAAe,MAAM,QAAQ;GAH/BO,OAAA,OAWEN,gBAAAA,GAAAA,EAAGC,OAAM,WAAY,CAAA,CACf;GARNO,aAAAC,YAAO,GACL,qFACA,iEACA,oFACA,MAAM,KACR,CAAC,IALD,KAAA,QAAA;IAKCC,UAAA,OAAA,KAAA,GAAA;;GATH,OAAA;EAYQ,EAAA,CAAA,IAbV,KAAA;CAcM,CAAA;AAEV"}
@@ -1,6 +1,6 @@
1
- import { Combobox, ComboboxContent, ComboboxInput, ComboboxItem } from "./combobox.js";
2
1
  import { createComponent } from "@solidjs/web";
3
2
  import { omit } from "solid-js";
3
+ import { Combobox, ComboboxContent, ComboboxInput, ComboboxItem } from "./combobox.js";
4
4
  // src/components/ui/combobox/value-combobox.tsx
5
5
  /** A single-choice combobox for a controlled string value and labelled choices. */
6
6
  function ValueCombobox(props) {
@@ -1,3 +1,8 @@
1
+ import { Portal, className, createComponent, effect, insert, memo, mergeProps, readShallow, setAttribute, spread, template } from "@solidjs/web";
2
+ import { Command as Command$1, CommandEmpty as CommandEmpty$1, CommandGroup as CommandGroup$1, CommandGroupLabel, CommandInput as CommandInput$1, CommandItem as CommandItem$1, CommandList as CommandList$1, CommandSeparator as CommandSeparator$1, createCommandController } from "@ui-sdk/solid/command";
3
+ import { DialogContent } from "@ui-sdk/solid/dialog";
4
+ import { Search as Search$1 } from "@lucide/solid";
5
+ import { Show, children, createContext, createEffect, createSignal, omit, useContext } from "solid-js";
1
6
  import { Dialog as Dialog$1 } from "../dialog/dialog.js";
2
7
  import { LayerEscapeTarget, TopLayerPositioner, useLayerContent } from "../dialog/dialog-layer.js";
3
8
  import { overlayContainer } from "../tooltip/tooltip.js";
@@ -5,11 +10,6 @@ import { menuItem, menuShortcut, overlaySurface, overlayZoom } from "../../../li
5
10
  import { cn } from "../../../lib/utils.js";
6
11
  import { forwardRef } from "../../../lib/refs.js";
7
12
  import { fastIcon } from "../../../lib/fast-icon.js";
8
- import { Portal, className, createComponent, effect, insert, memo, mergeProps, readShallow, setAttribute, spread, template } from "@solidjs/web";
9
- import { Search } from "@lucide/solid";
10
- import { Show, children, createContext, createEffect, createSignal, omit, useContext } from "solid-js";
11
- import { Command, CommandEmpty, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandSeparator, createCommandController } from "@ui-sdk/solid/command";
12
- import { DialogContent } from "@ui-sdk/solid/dialog";
13
13
  // src/components/ui/command/command.tsx
14
14
  var _tmpl$ = /* @__PURE__ */ template(`<div cmdk-overlay aria-hidden=true>`);
15
15
  var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
@@ -17,7 +17,7 @@ var _tmpl$3 = /* @__PURE__ */ template(`<div data-slot=command-input-wrapper cla
17
17
  var _tmpl$4 = /* @__PURE__ */ template(`<div><div aria-hidden=true>`);
18
18
  var _tmpl$5 = /* @__PURE__ */ template(`<span>`);
19
19
  var _tmpl$6 = /* @__PURE__ */ template(`<p>`);
20
- var Search$1 = fastIcon(Search);
20
+ var Search = fastIcon(Search$1);
21
21
  var commandItem = menuItem.replace("data-[highlighted]:bg-surface-hover data-[highlighted]:text-foreground", "").replace("data-[disabled]:pointer-events-none", "").replace("data-[disabled]:text-muted-foreground", "");
22
22
  /**
23
23
  * Calls a caller's `ref`, which Solid 2 hands over as a function or, once
@@ -46,7 +46,7 @@ var CommandScopeContext = createContext(null);
46
46
  * the `cmdk-*` attributes and `data-selected="true"` on the highlighted row,
47
47
  * which the kit's classes and hosts' selectors are written against.
48
48
  */
49
- function Command$1(props) {
49
+ function Command(props) {
50
50
  const controller = createCommandController();
51
51
  const inputListener = {};
52
52
  const [settling, setSettling] = createSignal(true);
@@ -64,7 +64,7 @@ function Command$1(props) {
64
64
  inputListener
65
65
  },
66
66
  get children() {
67
- return createComponent(Command, mergeProps(rest, {
67
+ return createComponent(Command$1, mergeProps(rest, {
68
68
  "cmdk-root": "",
69
69
  get "data-settling"() {
70
70
  return settling() ? "" : void 0;
@@ -151,7 +151,7 @@ function CommandDialog(props) {
151
151
  return props.onCloseAutoFocus;
152
152
  },
153
153
  get children() {
154
- return createComponent(Command$1, commandProps);
154
+ return createComponent(Command, commandProps);
155
155
  }
156
156
  });
157
157
  }
@@ -227,7 +227,7 @@ function CommandDialogContent(props) {
227
227
  }
228
228
  });
229
229
  }
230
- function CommandInput$1(props) {
230
+ function CommandInput(props) {
231
231
  const scope = useContext(CommandScopeContext);
232
232
  const rest = omit(props, "class", "value", "onValueChange", "onKeyDown");
233
233
  if (scope) scope.inputListener.current = (search) => props.onValueChange?.(search);
@@ -246,11 +246,11 @@ function CommandInput$1(props) {
246
246
  var _el$3 = _tmpl$3();
247
247
  var _el$4 = _el$3.firstChild;
248
248
  var _el$5 = _el$4.nextSibling;
249
- insert(_el$3, createComponent(Search$1, {
249
+ insert(_el$3, createComponent(Search, {
250
250
  class: "size-4 shrink-0 text-muted-foreground",
251
251
  "aria-hidden": "true"
252
252
  }), _el$4);
253
- insert(_el$3, createComponent(CommandInput, mergeProps({ get "aria-label"() {
253
+ insert(_el$3, createComponent(CommandInput$1, mergeProps({ get "aria-label"() {
254
254
  return scope?.label();
255
255
  } }, rest, {
256
256
  onKeyDown,
@@ -266,9 +266,9 @@ function CommandInput$1(props) {
266
266
  * keeps an empty search's listbox valid and announces the result count, so the
267
267
  * cmdk-era role corrections are gone with cmdk's sizer.
268
268
  */
269
- function CommandList$1(props) {
269
+ function CommandList(props) {
270
270
  const rest = omit(props, "class");
271
- return createComponent(CommandList, mergeProps(rest, {
271
+ return createComponent(CommandList$1, mergeProps(rest, {
272
272
  "cmdk-list": "",
273
273
  get "class"() {
274
274
  return cn("max-h-80 scroll-py-1 overflow-y-auto overflow-x-hidden p-1", props.class);
@@ -281,19 +281,19 @@ function CommandList$1(props) {
281
281
  * it mounted so the announcement is reliable, and it collapses to no height
282
282
  * while the search has matches (`data-empty` marks a search with none).
283
283
  */
284
- function CommandEmpty$1(props) {
284
+ function CommandEmpty(props) {
285
285
  const rest = omit(props, "class");
286
- return createComponent(CommandEmpty, mergeProps(rest, {
286
+ return createComponent(CommandEmpty$1, mergeProps(rest, {
287
287
  "cmdk-empty": "",
288
288
  get "class"() {
289
289
  return cn("text-muted-foreground py-8 text-center text-sm not-data-[empty]:py-0", props.class);
290
290
  }
291
291
  }));
292
292
  }
293
- function CommandGroup$1(props) {
293
+ function CommandGroup(props) {
294
294
  const rest = omit(props, "class", "children", "heading", "forceMount", "value");
295
295
  const heading = children(() => props.heading);
296
- return createComponent(CommandGroup, mergeProps(rest, {
296
+ return createComponent(CommandGroup$1, mergeProps(rest, {
297
297
  "cmdk-group": "",
298
298
  get "class"() {
299
299
  return cn("text-foreground overflow-hidden p-1", "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-2xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:tracking-wide [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:uppercase", props.class);
@@ -317,11 +317,11 @@ function CommandGroup$1(props) {
317
317
  }
318
318
  }));
319
319
  }
320
- function CommandItem$1(props) {
320
+ function CommandItem(props) {
321
321
  let element;
322
322
  const rest = omit(props, "class", "value", "keywords", "disabled", "onSelect", "forceMount", "ref");
323
323
  const value = () => props.value?.trim();
324
- return createComponent(CommandItem, mergeProps(rest, {
324
+ return createComponent(CommandItem$1, mergeProps(rest, {
325
325
  ref: (node) => {
326
326
  element = node;
327
327
  callRef(props.ref, node);
@@ -360,9 +360,9 @@ function CommandItem$1(props) {
360
360
  }
361
361
  }));
362
362
  }
363
- function CommandSeparator$1(props) {
363
+ function CommandSeparator(props) {
364
364
  const rest = omit(props, "class", "alwaysRender");
365
- return createComponent(CommandSeparator, mergeProps(rest, {
365
+ return createComponent(CommandSeparator$1, mergeProps(rest, {
366
366
  "cmdk-separator": "",
367
367
  render: (part) => (() => {
368
368
  var _el$7 = _tmpl$2();
@@ -446,6 +446,6 @@ function CommandHint(props) {
446
446
  }, rest], false);
447
447
  return _el$12;
448
448
  }
449
- export { Command$1 as Command, CommandDialog, CommandEmpty$1 as CommandEmpty, CommandGroup$1 as CommandGroup, CommandHint, CommandInput$1 as CommandInput, CommandItem$1 as CommandItem, CommandList$1 as CommandList, CommandLoading, CommandSeparator$1 as CommandSeparator, CommandShortcut, CommandStatus };
449
+ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandHint, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, CommandStatus };
450
450
 
451
451
  //# sourceMappingURL=command.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","names":["<CommandScopeContext value={{ controller, label: () => props.label, inputListener }}>\n <CommandPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-root=\"\"\n data-settling={settling() ? '' : undefined}\n ref={(element: HTMLDivElement) => {\n requestAnimationFrame(() => requestAnimationFrame(() => setSettling(false)))\n forwardRef(() => props.ref, element)\n }}\n controller={controller}\n value={props.value}\n defaultValue={props.defaultValue}\n onValueChange={(value: string | null) => props.onValueChange?.(value ?? '')}\n onQueryChange={(search: string) => inputListener.current?.(search)}\n onAction={(value: string) => props.onAction?.(value)}\n filter={filter()}\n loop={props.loop ?? false}\n class={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-xl',\n props.class\n )}\n >\n {props.children}\n </CommandPrimitive>\n </CommandScopeContext>","value={{ controller, label: () => props.label, inputListener }}","<CommandPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-root=\"\"\n data-settling={settling() ? '' : undefined}\n ref={(element: HTMLDivElement) => {\n requestAnimationFrame(() => requestAnimationFrame(() => setSettling(false)))\n forwardRef(() => props.ref, element)\n }}\n controller={controller}\n value={props.value}\n defaultValue={props.defaultValue}\n onValueChange={(value: string | null) => props.onValueChange?.(value ?? '')}\n onQueryChange={(search: string) => inputListener.current?.(search)}\n onAction={(value: string) => props.onAction?.(value)}\n filter={filter()}\n loop={props.loop ?? false}\n class={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-xl',\n props.class\n )}\n >\n {props.children}\n </CommandPrimitive>","ref={(element: HTMLDivElement) => {\n requestAnimationFrame(() => requestAnimationFrame(() => setSettling(false)))\n forwardRef(() => props.ref, element)\n }}","onValueChange={(value: string | null) => props.onValueChange?.(value ?? '')}","onQueryChange={(search: string) => inputListener.current?.(search)}","onAction={(value: string) => props.onAction?.(value)}","<Dialog\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={props.onOpenChange}\n modal={props.modal}\n >\n <CommandDialogContent\n label={props.label}\n class={cn(props.class, props.contentClassName)}\n overlayClassName={props.overlayClassName}\n container={props.container}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n >\n <Command {...commandProps} />\n </CommandDialogContent>\n </Dialog>","<CommandDialogContent\n label={props.label}\n class={cn(props.class, props.contentClassName)}\n overlayClassName={props.overlayClassName}\n container={props.container}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n >\n <Command {...commandProps} />\n </CommandDialogContent>","<Command {...commandProps} />","<Portal mount={props.container ?? overlayContainer()}>\n <UiDialogContent\n // Inline inside a top-layer positioner of its own, as the kit's\n // DialogContent does; the surface keeps its fixed placement.\n inline\n ref={(element: HTMLDivElement) => (panel = element)}\n initialFocus={focus.initialFocus()}\n finalFocus={focus.finalFocus()}\n aria-label={props.label}\n class={cn(\n overlaySurface,\n 'fixed top-1/3 left-1/2 z-(--z-dialog) w-full max-w-lg -translate-x-1/2 -translate-y-1/2 overflow-hidden shadow-xl',\n overlayZoom,\n props.class\n )}\n render={(panelProps: Record<string, unknown>, state: { open: boolean }) => (\n <TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>\n )}\n >\n <LayerEscapeTarget element={() => panel}>{props.children}</LayerEscapeTarget>\n </UiDialogContent>\n </Portal>","<UiDialogContent\n // Inline inside a top-layer positioner of its own, as the kit's\n // DialogContent does; the surface keeps its fixed placement.\n inline\n ref={(element: HTMLDivElement) => (panel = element)}\n initialFocus={focus.initialFocus()}\n finalFocus={focus.finalFocus()}\n aria-label={props.label}\n class={cn(\n overlaySurface,\n 'fixed top-1/3 left-1/2 z-(--z-dialog) w-full max-w-lg -translate-x-1/2 -translate-y-1/2 overflow-hidden shadow-xl',\n overlayZoom,\n props.class\n )}\n render={(panelProps: Record<string, unknown>, state: { open: boolean }) => (\n <TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>\n )}\n >\n <LayerEscapeTarget element={() => panel}>{props.children}</LayerEscapeTarget>\n </UiDialogContent>","ref={(element: HTMLDivElement) => (panel = element)}","render={(panelProps: Record<string, unknown>, state: { open: boolean }) => (\n <TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>\n )}","<TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>","class=\"fixed inset-0 z-(--z-dialog)\"","data-closed={state.open ? undefined : ''}","class={props.overlayClassName}","<LayerEscapeTarget element={() => panel}>{props.children}</LayerEscapeTarget>","element={() => panel}","<Search class=\"size-4 shrink-0 text-muted-foreground\" aria-hidden=\"true\" />","class=\"size-4 shrink-0 text-muted-foreground\"","<div\n data-slot=\"command-input-wrapper\"\n class=\"flex h-11 items-center gap-2 border-b border-border px-3\"\n >\n <Search class=\"size-4 shrink-0 text-muted-foreground\" aria-hidden=\"true\" />\n <CommandInputPrimitive\n aria-label={scope?.label()}\n {...(rest as Record<string, unknown>)}\n onKeyDown={onKeyDown}\n cmdk-input=\"\"\n class={cn(\n 'h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n props.class\n )}\n />\n </div>","<CommandInputPrimitive\n aria-label={scope?.label()}\n {...(rest as Record<string, unknown>)}\n onKeyDown={onKeyDown}\n cmdk-input=\"\"\n class={cn(\n 'h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n props.class\n )}\n />","<CommandListPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-list=\"\"\n class={cn('max-h-80 scroll-py-1 overflow-y-auto overflow-x-hidden p-1', props.class)}\n />","<CommandEmptyPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-empty=\"\"\n class={cn(\n 'text-muted-foreground py-8 text-center text-sm not-data-[empty]:py-0',\n props.class\n )}\n />","<CommandGroupPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-group=\"\"\n class={cn(\n 'text-foreground overflow-hidden p-1',\n '[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-2xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:tracking-wide [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:uppercase',\n props.class\n )}\n >\n <Show when={heading()}>\n <CommandGroupLabelPrimitive cmdk-group-heading=\"\">{heading()}</CommandGroupLabelPrimitive>\n </Show>\n {props.children}\n </CommandGroupPrimitive>","<Show when={heading()}>\n <CommandGroupLabelPrimitive cmdk-group-heading=\"\">{heading()}</CommandGroupLabelPrimitive>\n </Show>","<CommandGroupLabelPrimitive cmdk-group-heading=\"\">{heading()}</CommandGroupLabelPrimitive>","props.children","<CommandItemPrimitive\n {...(rest as Record<string, unknown>)}\n ref={(node: HTMLDivElement) => {\n element = node\n callRef(props.ref, node)\n }}\n value={value()}\n label={value()}\n keywords={props.keywords}\n disabled={props.disabled}\n onSelect={() => props.onSelect?.(value() ?? element?.textContent?.trim() ?? '')}\n render={(\n part: Record<string, unknown>,\n state: { highlighted: boolean; disabled: boolean }\n ) => (\n <div\n {...part}\n cmdk-item=\"\"\n data-selected={state.highlighted ? 'true' : 'false'}\n data-disabled={state.disabled ? 'true' : 'false'}\n data-value={value()}\n />\n )}\n class={cn(\n commandItem,\n 'data-[disabled=true]:pointer-events-none data-[disabled=true]:text-muted-foreground',\n // The selected row sits on the accent rung, the same primary-subtle\n // fill the settings navigation's selected row owns, instead of the\n // popover rung, so what is chosen keeps the accent the checked menus\n // already carry in their indicators.\n 'group/command-item text-popover-foreground data-[selected=true]:bg-primary-subtle data-[selected=true]:text-foreground',\n 'in-data-settling:transition-none',\n props.class\n )}\n />","ref={(node: HTMLDivElement) => {\n element = node\n callRef(props.ref, node)\n }}","onSelect={() => props.onSelect?.(value() ?? element?.textContent?.trim() ?? '')}","render={(\n part: Record<string, unknown>,\n state: { highlighted: boolean; disabled: boolean }\n ) => (\n <div\n {...part}\n cmdk-item=\"\"\n data-selected={state.highlighted ? 'true' : 'false'}\n data-disabled={state.disabled ? 'true' : 'false'}\n data-value={value()}\n />\n )}","<CommandSeparatorPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-separator=\"\"\n // A listbox owns options and groups only; the hairline is presentation.\n render={(part: Record<string, unknown>) => (\n <div {...part} role=\"presentation\" aria-orientation={undefined} />\n )}\n class={cn('bg-border -mx-1 my-1 h-px', props.class)}\n />","render={(part: Record<string, unknown>) => (\n <div {...part} role=\"presentation\" aria-orientation={undefined} />\n )}","role=\"presentation\"","role=\"progressbar\"","<div\n {...rest}\n cmdk-loading=\"\"\n role=\"progressbar\"\n aria-valuenow={props.progress}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-label={props.label ?? 'Loading...'}\n class={cn('text-muted-foreground py-6 text-center text-sm', props.class)}\n >\n <div aria-hidden=\"true\">{props.children}</div>\n </div>","<span\n class={cn(\n menuShortcut,\n 'group-data-[selected=true]/command-item:text-foreground',\n props.class\n )}\n >\n {props.children}\n </span>","<p\n data-slot=\"command-status\"\n class={cn('text-muted-foreground px-4 py-4 text-center text-sm', props.class)}\n {...rest}\n />","<p\n data-slot=\"command-hint\"\n class={cn('text-muted-foreground px-4 pb-1.5 text-right text-xs', props.class)}\n {...rest}\n />","Search","LucideSearch","Command","_$readShallow","_$setAttribute","CommandInput","CommandList","CommandEmpty","CommandGroup","resolveChildren","CommandItem","CommandSeparator"],"sources":["../../../../src/components/ui/command/command.tsx"],"sourcesContent":["import {\n Command as CommandPrimitive,\n CommandEmpty as CommandEmptyPrimitive,\n CommandGroup as CommandGroupPrimitive,\n CommandGroupLabel as CommandGroupLabelPrimitive,\n CommandInput as CommandInputPrimitive,\n CommandItem as CommandItemPrimitive,\n CommandList as CommandListPrimitive,\n CommandSeparator as CommandSeparatorPrimitive,\n createCommandController,\n type CommandController,\n} from '@ui-sdk/solid/command'\nimport { DialogContent as UiDialogContent } from '@ui-sdk/solid/dialog'\nimport { Search as LucideSearch } from '@lucide/solid'\nimport type { ComponentProps, JSX } from '@solidjs/web'\nimport { Portal } from '@solidjs/web'\nimport {\n children as resolveChildren,\n createContext,\n createEffect,\n createSignal,\n omit,\n Show,\n useContext,\n} from 'solid-js'\nimport { Dialog } from '../dialog'\nimport {\n LayerEscapeTarget,\n type LayerHandlers,\n TopLayerPositioner,\n useLayerContent,\n} from '../dialog/dialog-layer'\nimport { overlayContainer } from '../tooltip/tooltip'\nimport { menuItem, menuShortcut, overlaySurface, overlayZoom } from '#lib/overlay'\nimport { cn } from '#lib/utils'\nimport { forwardRef } from '#lib/refs'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Search = fastIcon(LucideSearch)\n\n// The rows write `data-selected` and `data-disabled` as `\"true\"|\"false\"`, the\n// cmdk-era contract the classes below (and hosts' selectors) are written\n// against. The shared row's presence-only disabled styles come off for the\n// `=true` forms, and so does its `data-highlighted` hover fill: ui-sdk marks\n// the highlighted row with it too, and the selected row's accent fill is the\n// palette's one highlight.\nconst commandItem = menuItem\n .replace('data-[highlighted]:bg-surface-hover data-[highlighted]:text-foreground', '')\n .replace('data-[disabled]:pointer-events-none', '')\n .replace('data-[disabled]:text-muted-foreground', '')\n\ntype CommandScope = {\n controller: CommandController\n label: () => string | undefined\n /** The input's `onValueChange`, which the root calls as the search text changes. */\n inputListener: { current?: (search: string) => void }\n}\n\n/**\n * Calls a caller's `ref`, which Solid 2 hands over as a function or, once\n * merged with another (a tooltip trigger around a menu trigger), an array.\n */\nfunction callRef<T>(ref: unknown, element: T): void {\n if (typeof ref === 'function') ref(element)\n else if (Array.isArray(ref)) for (const each of ref) callRef(each, element)\n}\n\nconst CommandScopeContext = createContext<CommandScope | null>(null)\n\n/** The cmdk-era options the root kept. */\ntype CommandOwnProps = {\n /** The input's accessible name. */\n label?: string\n /** `false` keeps every item, for results a server already filtered. */\n shouldFilter?: boolean\n /** A custom ranking: a score above 0 keeps the item, higher first. */\n filter?: (value: string, search: string, keywords?: string[]) => number\n /** The highlighted item's value. */\n value?: string\n /** The item highlighted at first. */\n defaultValue?: string\n /** The highlight moved. */\n onValueChange?: (value: string) => void\n /** Whether arrow keys wrap from the last item to the first. Off by default, as under cmdk. */\n loop?: boolean\n /** Kept for the API; ui-sdk moves the highlight with the arrow keys only. */\n vimBindings?: boolean\n /** Kept for the API; the pointer always moves the highlight. */\n disablePointerSelection?: boolean\n /** Runs when an item runs, with its value, after the item's own `onSelect`. */\n onAction?: (value: string) => void\n children?: JSX.Element\n}\n\nexport type CommandProps = Omit<\n ComponentProps<'div'>,\n keyof CommandOwnProps | 'onChange' | 'onSelect'\n> &\n CommandOwnProps\n\n/**\n * Command.\n *\n * The command palette: a filtered list of everything the user can do, ranked\n * by fuzzy match. It is the one place in an app where a keyboard-first surface\n * is the *primary* one, so it carries rules the rest of the system does not:\n *\n * - Every item must be reachable by typing its name. If a user has to\n * remember which group it lives in, the palette has failed at its job.\n * - Groups exist for reading, not for navigation. The ranking crosses them.\n * - The empty state is not an apology: it should offer the closest thing\n * the app could guess, or say plainly that nothing matched.\n *\n * ui-sdk's Command supplies the filter, the scoring, the\n * `aria-activedescendant` wiring and the arrow-key navigation. The parts keep\n * the `cmdk-*` attributes and `data-selected=\"true\"` on the highlighted row,\n * which the kit's classes and hosts' selectors are written against.\n */\nexport function Command(props: CommandProps) {\n const controller = createCommandController()\n const inputListener: CommandScope['inputListener'] = {}\n // The first highlight paints without the rows' colour transition. ui-sdk\n // measures the list to keep the new row in view as soon as it highlights\n // one, and Solid writes the row's `data-selected` only after that, so the\n // browser has already styled the row unselected and fades the accent in\n // over 120ms when the palette opens; cmdk drew it selected at once. Two\n // frames after mount the initial highlight has painted, and later moves\n // keep their transition (ui-notes/ui-sdk-issue-highlight-reveal.md).\n const [settling, setSettling] = createSignal(true)\n const rest = omit(\n props,\n 'ref',\n 'class',\n 'children',\n 'label',\n 'shouldFilter',\n 'filter',\n 'value',\n 'defaultValue',\n 'onValueChange',\n 'loop',\n 'vimBindings',\n 'disablePointerSelection',\n 'onAction'\n )\n\n const filter = () => {\n if (props.shouldFilter === false) return false as const\n const rank = props.filter\n if (!rank) return undefined\n return (item: { label: string; keywords?: string[] }, search: string) =>\n rank(item.label, search, item.keywords)\n }\n\n return (\n <CommandScopeContext value={{ controller, label: () => props.label, inputListener }}>\n <CommandPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-root=\"\"\n data-settling={settling() ? '' : undefined}\n ref={(element: HTMLDivElement) => {\n requestAnimationFrame(() => requestAnimationFrame(() => setSettling(false)))\n forwardRef(() => props.ref, element)\n }}\n controller={controller}\n value={props.value}\n defaultValue={props.defaultValue}\n onValueChange={(value: string | null) => props.onValueChange?.(value ?? '')}\n onQueryChange={(search: string) => inputListener.current?.(search)}\n onAction={(value: string) => props.onAction?.(value)}\n filter={filter()}\n loop={props.loop ?? false}\n class={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-xl',\n props.class\n )}\n >\n {props.children}\n </CommandPrimitive>\n </CommandScopeContext>\n )\n}\n\ntype CommandDialogProps = CommandProps &\n Pick<LayerHandlers, 'onCloseAutoFocus' | 'onOpenAutoFocus'> &\n Pick<\n ComponentProps<typeof Dialog>,\n 'open' | 'defaultOpen' | 'onOpenChange' | 'modal' | 'preventScroll' | 'forceMount'\n > & {\n /** Adds to `class` on the dialog surface. */\n contentClassName?: string\n /** The layer under the panel, unstyled unless this names a class. */\n overlayClassName?: string\n /** Where the dialog mounts, `<body>` by default. */\n container?: Element\n translations?: unknown\n }\n\n/**\n * The palette in a modal: the kit's Dialog root (focus trap, Escape, an\n * outside press, scroll lock and focus return) around a surface drawn at a\n * third of the window's height, where the eye lands, not the centre.\n * `class` and `contentClassName` land on the surface; the rest of the props\n * are the nested Command's.\n */\nexport function CommandDialog(props: CommandDialogProps) {\n const dialogKeys = [\n 'open',\n 'defaultOpen',\n 'onOpenChange',\n 'id',\n 'modal',\n 'preventScroll',\n 'forceMount',\n 'translations',\n ] as const\n const commandProps = omit(\n props as CommandDialogProps & { id?: string },\n 'class',\n 'contentClassName',\n 'overlayClassName',\n 'container',\n 'onCloseAutoFocus',\n 'onOpenAutoFocus',\n ...dialogKeys\n )\n\n return (\n <Dialog\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={props.onOpenChange}\n modal={props.modal}\n >\n <CommandDialogContent\n label={props.label}\n class={cn(props.class, props.contentClassName)}\n overlayClassName={props.overlayClassName}\n container={props.container}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n >\n <Command {...commandProps} />\n </CommandDialogContent>\n </Dialog>\n )\n}\n\nfunction CommandDialogContent(\n props: Pick<CommandDialogProps, 'onCloseAutoFocus' | 'onOpenAutoFocus' | 'children'> & {\n label?: string\n class?: string\n overlayClassName?: string\n container?: Element\n }\n) {\n let panel: HTMLDivElement | undefined\n const focus = useLayerContent({\n content: () => panel,\n handlers: () => ({\n onOpenAutoFocus: props.onOpenAutoFocus,\n onCloseAutoFocus: props.onCloseAutoFocus,\n }),\n })\n return (\n <Portal mount={props.container ?? overlayContainer()}>\n <UiDialogContent\n // Inline inside a top-layer positioner of its own, as the kit's\n // DialogContent does; the surface keeps its fixed placement.\n inline\n ref={(element: HTMLDivElement) => (panel = element)}\n initialFocus={focus.initialFocus()}\n finalFocus={focus.finalFocus()}\n aria-label={props.label}\n class={cn(\n overlaySurface,\n 'fixed top-1/3 left-1/2 z-(--z-dialog) w-full max-w-lg -translate-x-1/2 -translate-y-1/2 overflow-hidden shadow-xl',\n overlayZoom,\n props.class\n )}\n render={(panelProps: Record<string, unknown>, state: { open: boolean }) => (\n <TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>\n )}\n >\n <LayerEscapeTarget element={() => panel}>{props.children}</LayerEscapeTarget>\n </UiDialogContent>\n </Portal>\n )\n}\n\nexport type CommandInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'> & {\n /** The search text. Pass it to control the search. */\n value?: string\n /** The search text changed. */\n onValueChange?: (search: string) => void\n}\n\nexport function CommandInput(props: CommandInputProps) {\n const scope = useContext(CommandScopeContext)\n const rest = omit(props, 'class', 'value', 'onValueChange', 'onKeyDown')\n if (scope) scope.inputListener.current = (search) => props.onValueChange?.(search)\n\n // Escape closes the layer around the palette (a popover, a dialog) in one press, search text\n // or not, as it did before ui-sdk. ui-sdk's input clears the search first and keeps the event;\n // with the search already cleared here, it leaves Escape to the layer. On a page it still\n // steps back.\n const onKeyDown: JSX.EventHandler<HTMLInputElement, KeyboardEvent> = (event) => {\n const handler = props.onKeyDown\n if (typeof handler === 'function') handler(event)\n else if (Array.isArray(handler)) handler[0](handler[1], event)\n if (event.defaultPrevented || event.key !== 'Escape' || !scope) return\n if (scope.controller.getPages().length > 0) return\n if (scope.controller.getQuery()) scope.controller.setQuery('', { event })\n }\n\n createEffect(\n () => props.value,\n (search) => {\n if (search === undefined || !scope || scope.controller.getQuery() === search) return\n scope.controller.setQuery(search)\n }\n )\n\n return (\n <div\n data-slot=\"command-input-wrapper\"\n class=\"flex h-11 items-center gap-2 border-b border-border px-3\"\n >\n <Search class=\"size-4 shrink-0 text-muted-foreground\" aria-hidden=\"true\" />\n <CommandInputPrimitive\n aria-label={scope?.label()}\n {...(rest as Record<string, unknown>)}\n onKeyDown={onKeyDown}\n cmdk-input=\"\"\n class={cn(\n 'h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n props.class\n )}\n />\n </div>\n )\n}\n\n/**\n * The scrolling list: a listbox that owns the options, always shown. ui-sdk\n * keeps an empty search's listbox valid and announces the result count, so the\n * cmdk-era role corrections are gone with cmdk's sizer.\n */\nexport function CommandList(props: ComponentProps<'div'>) {\n const rest = omit(props, 'class')\n return (\n <CommandListPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-list=\"\"\n class={cn('max-h-80 scroll-py-1 overflow-y-auto overflow-x-hidden p-1', props.class)}\n />\n )\n}\n\n/**\n * The no-match message. Place it beside `CommandList`, before it, not inside:\n * it is a `status` live region, which a listbox may not contain. ui-sdk keeps\n * it mounted so the announcement is reliable, and it collapses to no height\n * while the search has matches (`data-empty` marks a search with none).\n */\nexport function CommandEmpty(props: ComponentProps<'div'>) {\n const rest = omit(props, 'class')\n return (\n <CommandEmptyPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-empty=\"\"\n class={cn(\n 'text-muted-foreground py-8 text-center text-sm not-data-[empty]:py-0',\n props.class\n )}\n />\n )\n}\n\nexport type CommandGroupProps = ComponentProps<'div'> & {\n /** The group's heading, which names it. */\n heading?: JSX.Element\n /** Kept for the API: a group hides while none of its items matches. */\n forceMount?: boolean\n /** Kept for the API. */\n value?: string\n}\n\nexport function CommandGroup(props: CommandGroupProps) {\n const rest = omit(props, 'class', 'children', 'heading', 'forceMount', 'value')\n const heading = resolveChildren(() => props.heading)\n return (\n <CommandGroupPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-group=\"\"\n class={cn(\n 'text-foreground overflow-hidden p-1',\n '[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-2xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:tracking-wide [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:uppercase',\n props.class\n )}\n >\n <Show when={heading()}>\n <CommandGroupLabelPrimitive cmdk-group-heading=\"\">{heading()}</CommandGroupLabelPrimitive>\n </Show>\n {props.children}\n </CommandGroupPrimitive>\n )\n}\n\nexport type CommandItemProps = Omit<ComponentProps<'div'>, 'onSelect' | 'value'> & {\n /** What the search matches and what `onSelect` reports. Defaults to the item's text. */\n value?: string\n /** More words the search matches. */\n keywords?: string[]\n disabled?: boolean\n /** The item ran: a click, or Enter while it is highlighted. */\n onSelect?: (value: string) => void\n /** Kept for the API: an item shows while it matches the search. */\n forceMount?: boolean\n}\n\nexport function CommandItem(props: CommandItemProps) {\n let element: HTMLDivElement | undefined\n const rest = omit(\n props,\n 'class',\n 'value',\n 'keywords',\n 'disabled',\n 'onSelect',\n 'forceMount',\n 'ref'\n )\n const value = () => props.value?.trim()\n return (\n <CommandItemPrimitive\n {...(rest as Record<string, unknown>)}\n ref={(node: HTMLDivElement) => {\n element = node\n callRef(props.ref, node)\n }}\n value={value()}\n label={value()}\n keywords={props.keywords}\n disabled={props.disabled}\n onSelect={() => props.onSelect?.(value() ?? element?.textContent?.trim() ?? '')}\n render={(\n part: Record<string, unknown>,\n state: { highlighted: boolean; disabled: boolean }\n ) => (\n <div\n {...part}\n cmdk-item=\"\"\n data-selected={state.highlighted ? 'true' : 'false'}\n data-disabled={state.disabled ? 'true' : 'false'}\n data-value={value()}\n />\n )}\n class={cn(\n commandItem,\n 'data-[disabled=true]:pointer-events-none data-[disabled=true]:text-muted-foreground',\n // The selected row sits on the accent rung, the same primary-subtle\n // fill the settings navigation's selected row owns, instead of the\n // popover rung, so what is chosen keeps the accent the checked menus\n // already carry in their indicators.\n 'group/command-item text-popover-foreground data-[selected=true]:bg-primary-subtle data-[selected=true]:text-foreground',\n 'in-data-settling:transition-none',\n props.class\n )}\n />\n )\n}\n\nexport function CommandSeparator(props: ComponentProps<'div'> & { alwaysRender?: boolean }) {\n const rest = omit(props, 'class', 'alwaysRender')\n return (\n <CommandSeparatorPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-separator=\"\"\n // A listbox owns options and groups only; the hairline is presentation.\n render={(part: Record<string, unknown>) => (\n <div {...part} role=\"presentation\" aria-orientation={undefined} />\n )}\n class={cn('bg-border -mx-1 my-1 h-px', props.class)}\n />\n )\n}\n\n/** A loading row: a progress bar named \"Loading…\" unless `label` says otherwise. */\nexport function CommandLoading(\n props: ComponentProps<'div'> & { progress?: number; label?: string }\n) {\n const rest = omit(props, 'class', 'children', 'progress', 'label')\n return (\n <div\n {...rest}\n cmdk-loading=\"\"\n role=\"progressbar\"\n aria-valuenow={props.progress}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-label={props.label ?? 'Loading...'}\n class={cn('text-muted-foreground py-6 text-center text-sm', props.class)}\n >\n <div aria-hidden=\"true\">{props.children}</div>\n </div>\n )\n}\n\n/** The keyboard hint a palette item usually carries. */\nexport function CommandShortcut(props: {\n class?: string\n children?: ComponentProps<'span'>['children']\n}) {\n return (\n <span\n class={cn(\n menuShortcut,\n 'group-data-[selected=true]/command-item:text-foreground',\n props.class\n )}\n >\n {props.children}\n </span>\n )\n}\n\n/**\n * The status line a command surface reports under its list: searching, offline,\n * a partial result caveat. The copy and the live-role semantics (`status`,\n * `alert`) are the caller's, a palette's failure modes are app facts, but the\n * line's shape is not something every caller should redraw.\n */\nexport function CommandStatus(props: ComponentProps<'p'>) {\n const rest = omit(props, 'class')\n\n return (\n <p\n data-slot=\"command-status\"\n class={cn('text-muted-foreground px-4 py-4 text-center text-sm', props.class)}\n {...rest}\n />\n )\n}\n\n/**\n * The keyboard hint a palette footer carries, right-aligned under the list so\n * it reads as furniture rather than a result. Muted on purpose: the arrows are\n * what the user has already been doing by the time they read it.\n */\nexport function CommandHint(props: ComponentProps<'p'>) {\n const rest = omit(props, 'class')\n\n return (\n <p\n data-slot=\"command-hint\"\n class={cn('text-muted-foreground px-4 pb-1.5 text-right text-xs', props.class)}\n {...rest}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuCA,IAAM0C,WAAS,SAASC,MAAY;AAQpC,IAAM,cAAc,SACjB,QAAQ,0EAA0E,EAAE,CAAC,CACrF,QAAQ,uCAAuC,EAAE,CAAC,CAClD,QAAQ,yCAAyC,EAAE;;;;;AAatD,SAAS,QAAW,KAAc,SAAkB;CAClD,IAAI,OAAO,QAAQ,YAAY,IAAI,OAAO;MACrC,IAAI,MAAM,QAAQ,GAAG,GAAG,KAAK,MAAM,QAAQ,KAAK,QAAQ,MAAM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,KAAK;EAAC;CACrE,GAAJ,IAAA,GAAA,KAAA;CAJR,OACEC;AAMJ;;;;;;AAOA,SAAgB,YAAY,OAA4B;CACtD,MAAM,OAAO,KAAK,OAAO,OAAO;CAG9B,IAAA,SAAA,QAIC;CADC,OAAA,QAAA,CAAA;EAFA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GAAG,wDAAwD,MAAM,KAAK;EAAC;CACtE,GAAJ,IAAA,GAAA,KAAA;CAJR,OACEC;AAMJ"}
1
+ {"version":3,"file":"command.js","names":["<CommandScopeContext value={{ controller, label: () => props.label, inputListener }}>\n <CommandPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-root=\"\"\n data-settling={settling() ? '' : undefined}\n ref={(element: HTMLDivElement) => {\n requestAnimationFrame(() => requestAnimationFrame(() => setSettling(false)))\n forwardRef(() => props.ref, element)\n }}\n controller={controller}\n value={props.value}\n defaultValue={props.defaultValue}\n onValueChange={(value: string | null) => props.onValueChange?.(value ?? '')}\n onQueryChange={(search: string) => inputListener.current?.(search)}\n onAction={(value: string) => props.onAction?.(value)}\n filter={filter()}\n loop={props.loop ?? false}\n class={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-xl',\n props.class\n )}\n >\n {props.children}\n </CommandPrimitive>\n </CommandScopeContext>","value={{ controller, label: () => props.label, inputListener }}","<CommandPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-root=\"\"\n data-settling={settling() ? '' : undefined}\n ref={(element: HTMLDivElement) => {\n requestAnimationFrame(() => requestAnimationFrame(() => setSettling(false)))\n forwardRef(() => props.ref, element)\n }}\n controller={controller}\n value={props.value}\n defaultValue={props.defaultValue}\n onValueChange={(value: string | null) => props.onValueChange?.(value ?? '')}\n onQueryChange={(search: string) => inputListener.current?.(search)}\n onAction={(value: string) => props.onAction?.(value)}\n filter={filter()}\n loop={props.loop ?? false}\n class={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-xl',\n props.class\n )}\n >\n {props.children}\n </CommandPrimitive>","ref={(element: HTMLDivElement) => {\n requestAnimationFrame(() => requestAnimationFrame(() => setSettling(false)))\n forwardRef(() => props.ref, element)\n }}","onValueChange={(value: string | null) => props.onValueChange?.(value ?? '')}","onQueryChange={(search: string) => inputListener.current?.(search)}","onAction={(value: string) => props.onAction?.(value)}","<Dialog\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={props.onOpenChange}\n modal={props.modal}\n >\n <CommandDialogContent\n label={props.label}\n class={cn(props.class, props.contentClassName)}\n overlayClassName={props.overlayClassName}\n container={props.container}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n >\n <Command {...commandProps} />\n </CommandDialogContent>\n </Dialog>","<CommandDialogContent\n label={props.label}\n class={cn(props.class, props.contentClassName)}\n overlayClassName={props.overlayClassName}\n container={props.container}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n >\n <Command {...commandProps} />\n </CommandDialogContent>","<Command {...commandProps} />","<Portal mount={props.container ?? overlayContainer()}>\n <UiDialogContent\n // Inline inside a top-layer positioner of its own, as the kit's\n // DialogContent does; the surface keeps its fixed placement.\n inline\n ref={(element: HTMLDivElement) => (panel = element)}\n initialFocus={focus.initialFocus()}\n finalFocus={focus.finalFocus()}\n aria-label={props.label}\n class={cn(\n overlaySurface,\n 'fixed top-1/3 left-1/2 z-(--z-dialog) w-full max-w-lg -translate-x-1/2 -translate-y-1/2 overflow-hidden shadow-xl',\n overlayZoom,\n props.class\n )}\n render={(panelProps: Record<string, unknown>, state: { open: boolean }) => (\n <TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>\n )}\n >\n <LayerEscapeTarget element={() => panel}>{props.children}</LayerEscapeTarget>\n </UiDialogContent>\n </Portal>","<UiDialogContent\n // Inline inside a top-layer positioner of its own, as the kit's\n // DialogContent does; the surface keeps its fixed placement.\n inline\n ref={(element: HTMLDivElement) => (panel = element)}\n initialFocus={focus.initialFocus()}\n finalFocus={focus.finalFocus()}\n aria-label={props.label}\n class={cn(\n overlaySurface,\n 'fixed top-1/3 left-1/2 z-(--z-dialog) w-full max-w-lg -translate-x-1/2 -translate-y-1/2 overflow-hidden shadow-xl',\n overlayZoom,\n props.class\n )}\n render={(panelProps: Record<string, unknown>, state: { open: boolean }) => (\n <TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>\n )}\n >\n <LayerEscapeTarget element={() => panel}>{props.children}</LayerEscapeTarget>\n </UiDialogContent>","ref={(element: HTMLDivElement) => (panel = element)}","render={(panelProps: Record<string, unknown>, state: { open: boolean }) => (\n <TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>\n )}","<TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>","class=\"fixed inset-0 z-(--z-dialog)\"","data-closed={state.open ? undefined : ''}","class={props.overlayClassName}","<LayerEscapeTarget element={() => panel}>{props.children}</LayerEscapeTarget>","element={() => panel}","<Search class=\"size-4 shrink-0 text-muted-foreground\" aria-hidden=\"true\" />","class=\"size-4 shrink-0 text-muted-foreground\"","<div\n data-slot=\"command-input-wrapper\"\n class=\"flex h-11 items-center gap-2 border-b border-border px-3\"\n >\n <Search class=\"size-4 shrink-0 text-muted-foreground\" aria-hidden=\"true\" />\n <CommandInputPrimitive\n aria-label={scope?.label()}\n {...(rest as Record<string, unknown>)}\n onKeyDown={onKeyDown}\n cmdk-input=\"\"\n class={cn(\n 'h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n props.class\n )}\n />\n </div>","<CommandInputPrimitive\n aria-label={scope?.label()}\n {...(rest as Record<string, unknown>)}\n onKeyDown={onKeyDown}\n cmdk-input=\"\"\n class={cn(\n 'h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n props.class\n )}\n />","<CommandListPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-list=\"\"\n class={cn('max-h-80 scroll-py-1 overflow-y-auto overflow-x-hidden p-1', props.class)}\n />","<CommandEmptyPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-empty=\"\"\n class={cn(\n 'text-muted-foreground py-8 text-center text-sm not-data-[empty]:py-0',\n props.class\n )}\n />","<CommandGroupPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-group=\"\"\n class={cn(\n 'text-foreground overflow-hidden p-1',\n '[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-2xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:tracking-wide [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:uppercase',\n props.class\n )}\n >\n <Show when={heading()}>\n <CommandGroupLabelPrimitive cmdk-group-heading=\"\">{heading()}</CommandGroupLabelPrimitive>\n </Show>\n {props.children}\n </CommandGroupPrimitive>","<Show when={heading()}>\n <CommandGroupLabelPrimitive cmdk-group-heading=\"\">{heading()}</CommandGroupLabelPrimitive>\n </Show>","<CommandGroupLabelPrimitive cmdk-group-heading=\"\">{heading()}</CommandGroupLabelPrimitive>","props.children","<CommandItemPrimitive\n {...(rest as Record<string, unknown>)}\n ref={(node: HTMLDivElement) => {\n element = node\n callRef(props.ref, node)\n }}\n value={value()}\n label={value()}\n keywords={props.keywords}\n disabled={props.disabled}\n onSelect={() => props.onSelect?.(value() ?? element?.textContent?.trim() ?? '')}\n render={(\n part: Record<string, unknown>,\n state: { highlighted: boolean; disabled: boolean }\n ) => (\n <div\n {...part}\n cmdk-item=\"\"\n data-selected={state.highlighted ? 'true' : 'false'}\n data-disabled={state.disabled ? 'true' : 'false'}\n data-value={value()}\n />\n )}\n class={cn(\n commandItem,\n 'data-[disabled=true]:pointer-events-none data-[disabled=true]:text-muted-foreground',\n // The selected row sits on the accent rung, the same primary-subtle\n // fill the settings navigation's selected row owns, instead of the\n // popover rung, so what is chosen keeps the accent the checked menus\n // already carry in their indicators.\n 'group/command-item text-popover-foreground data-[selected=true]:bg-primary-subtle data-[selected=true]:text-foreground',\n 'in-data-settling:transition-none',\n props.class\n )}\n />","ref={(node: HTMLDivElement) => {\n element = node\n callRef(props.ref, node)\n }}","onSelect={() => props.onSelect?.(value() ?? element?.textContent?.trim() ?? '')}","render={(\n part: Record<string, unknown>,\n state: { highlighted: boolean; disabled: boolean }\n ) => (\n <div\n {...part}\n cmdk-item=\"\"\n data-selected={state.highlighted ? 'true' : 'false'}\n data-disabled={state.disabled ? 'true' : 'false'}\n data-value={value()}\n />\n )}","<CommandSeparatorPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-separator=\"\"\n // A listbox owns options and groups only; the hairline is presentation.\n render={(part: Record<string, unknown>) => (\n <div {...part} role=\"presentation\" aria-orientation={undefined} />\n )}\n class={cn('bg-border -mx-1 my-1 h-px', props.class)}\n />","render={(part: Record<string, unknown>) => (\n <div {...part} role=\"presentation\" aria-orientation={undefined} />\n )}","role=\"presentation\"","role=\"progressbar\"","<div\n {...rest}\n cmdk-loading=\"\"\n role=\"progressbar\"\n aria-valuenow={props.progress}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-label={props.label ?? 'Loading...'}\n class={cn('text-muted-foreground py-6 text-center text-sm', props.class)}\n >\n <div aria-hidden=\"true\">{props.children}</div>\n </div>","<span\n class={cn(\n menuShortcut,\n 'group-data-[selected=true]/command-item:text-foreground',\n props.class\n )}\n >\n {props.children}\n </span>","<p\n data-slot=\"command-status\"\n class={cn('text-muted-foreground px-4 py-4 text-center text-sm', props.class)}\n {...rest}\n />","<p\n data-slot=\"command-hint\"\n class={cn('text-muted-foreground px-4 pb-1.5 text-right text-xs', props.class)}\n {...rest}\n />","LucideSearch","_$effect","_$readShallow","_$setAttribute","_$className","_$spread","_$insert","resolveChildren"],"sources":["../../../../src/components/ui/command/command.tsx"],"sourcesContent":["import {\n Command as CommandPrimitive,\n CommandEmpty as CommandEmptyPrimitive,\n CommandGroup as CommandGroupPrimitive,\n CommandGroupLabel as CommandGroupLabelPrimitive,\n CommandInput as CommandInputPrimitive,\n CommandItem as CommandItemPrimitive,\n CommandList as CommandListPrimitive,\n CommandSeparator as CommandSeparatorPrimitive,\n createCommandController,\n type CommandController,\n} from '@ui-sdk/solid/command'\nimport { DialogContent as UiDialogContent } from '@ui-sdk/solid/dialog'\nimport { Search as LucideSearch } from '@lucide/solid'\nimport type { ComponentProps, JSX } from '@solidjs/web'\nimport { Portal } from '@solidjs/web'\nimport {\n children as resolveChildren,\n createContext,\n createEffect,\n createSignal,\n omit,\n Show,\n useContext,\n} from 'solid-js'\nimport { Dialog } from '../dialog'\nimport {\n LayerEscapeTarget,\n type LayerHandlers,\n TopLayerPositioner,\n useLayerContent,\n} from '../dialog/dialog-layer'\nimport { overlayContainer } from '../tooltip/tooltip'\nimport { menuItem, menuShortcut, overlaySurface, overlayZoom } from '#lib/overlay'\nimport { cn } from '#lib/utils'\nimport { forwardRef } from '#lib/refs'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Search = fastIcon(LucideSearch)\n\n// The rows write `data-selected` and `data-disabled` as `\"true\"|\"false\"`, the\n// cmdk-era contract the classes below (and hosts' selectors) are written\n// against. The shared row's presence-only disabled styles come off for the\n// `=true` forms, and so does its `data-highlighted` hover fill: ui-sdk marks\n// the highlighted row with it too, and the selected row's accent fill is the\n// palette's one highlight.\nconst commandItem = menuItem\n .replace('data-[highlighted]:bg-surface-hover data-[highlighted]:text-foreground', '')\n .replace('data-[disabled]:pointer-events-none', '')\n .replace('data-[disabled]:text-muted-foreground', '')\n\ntype CommandScope = {\n controller: CommandController\n label: () => string | undefined\n /** The input's `onValueChange`, which the root calls as the search text changes. */\n inputListener: { current?: (search: string) => void }\n}\n\n/**\n * Calls a caller's `ref`, which Solid 2 hands over as a function or, once\n * merged with another (a tooltip trigger around a menu trigger), an array.\n */\nfunction callRef<T>(ref: unknown, element: T): void {\n if (typeof ref === 'function') ref(element)\n else if (Array.isArray(ref)) for (const each of ref) callRef(each, element)\n}\n\nconst CommandScopeContext = createContext<CommandScope | null>(null)\n\n/** The cmdk-era options the root kept. */\ntype CommandOwnProps = {\n /** The input's accessible name. */\n label?: string\n /** `false` keeps every item, for results a server already filtered. */\n shouldFilter?: boolean\n /** A custom ranking: a score above 0 keeps the item, higher first. */\n filter?: (value: string, search: string, keywords?: string[]) => number\n /** The highlighted item's value. */\n value?: string\n /** The item highlighted at first. */\n defaultValue?: string\n /** The highlight moved. */\n onValueChange?: (value: string) => void\n /** Whether arrow keys wrap from the last item to the first. Off by default, as under cmdk. */\n loop?: boolean\n /** Kept for the API; ui-sdk moves the highlight with the arrow keys only. */\n vimBindings?: boolean\n /** Kept for the API; the pointer always moves the highlight. */\n disablePointerSelection?: boolean\n /** Runs when an item runs, with its value, after the item's own `onSelect`. */\n onAction?: (value: string) => void\n children?: JSX.Element\n}\n\nexport type CommandProps = Omit<\n ComponentProps<'div'>,\n keyof CommandOwnProps | 'onChange' | 'onSelect'\n> &\n CommandOwnProps\n\n/**\n * Command.\n *\n * The command palette: a filtered list of everything the user can do, ranked\n * by fuzzy match. It is the one place in an app where a keyboard-first surface\n * is the *primary* one, so it carries rules the rest of the system does not:\n *\n * - Every item must be reachable by typing its name. If a user has to\n * remember which group it lives in, the palette has failed at its job.\n * - Groups exist for reading, not for navigation. The ranking crosses them.\n * - The empty state is not an apology: it should offer the closest thing\n * the app could guess, or say plainly that nothing matched.\n *\n * ui-sdk's Command supplies the filter, the scoring, the\n * `aria-activedescendant` wiring and the arrow-key navigation. The parts keep\n * the `cmdk-*` attributes and `data-selected=\"true\"` on the highlighted row,\n * which the kit's classes and hosts' selectors are written against.\n */\nexport function Command(props: CommandProps) {\n const controller = createCommandController()\n const inputListener: CommandScope['inputListener'] = {}\n // The first highlight paints without the rows' colour transition. ui-sdk\n // measures the list to keep the new row in view as soon as it highlights\n // one, and Solid writes the row's `data-selected` only after that, so the\n // browser has already styled the row unselected and fades the accent in\n // over 120ms when the palette opens; cmdk drew it selected at once. Two\n // frames after mount the initial highlight has painted, and later moves\n // keep their transition (ui-notes/ui-sdk-issue-highlight-reveal.md).\n const [settling, setSettling] = createSignal(true)\n const rest = omit(\n props,\n 'ref',\n 'class',\n 'children',\n 'label',\n 'shouldFilter',\n 'filter',\n 'value',\n 'defaultValue',\n 'onValueChange',\n 'loop',\n 'vimBindings',\n 'disablePointerSelection',\n 'onAction'\n )\n\n const filter = () => {\n if (props.shouldFilter === false) return false as const\n const rank = props.filter\n if (!rank) return undefined\n return (item: { label: string; keywords?: string[] }, search: string) =>\n rank(item.label, search, item.keywords)\n }\n\n return (\n <CommandScopeContext value={{ controller, label: () => props.label, inputListener }}>\n <CommandPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-root=\"\"\n data-settling={settling() ? '' : undefined}\n ref={(element: HTMLDivElement) => {\n requestAnimationFrame(() => requestAnimationFrame(() => setSettling(false)))\n forwardRef(() => props.ref, element)\n }}\n controller={controller}\n value={props.value}\n defaultValue={props.defaultValue}\n onValueChange={(value: string | null) => props.onValueChange?.(value ?? '')}\n onQueryChange={(search: string) => inputListener.current?.(search)}\n onAction={(value: string) => props.onAction?.(value)}\n filter={filter()}\n loop={props.loop ?? false}\n class={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-xl',\n props.class\n )}\n >\n {props.children}\n </CommandPrimitive>\n </CommandScopeContext>\n )\n}\n\ntype CommandDialogProps = CommandProps &\n Pick<LayerHandlers, 'onCloseAutoFocus' | 'onOpenAutoFocus'> &\n Pick<\n ComponentProps<typeof Dialog>,\n 'open' | 'defaultOpen' | 'onOpenChange' | 'modal' | 'preventScroll' | 'forceMount'\n > & {\n /** Adds to `class` on the dialog surface. */\n contentClassName?: string\n /** The layer under the panel, unstyled unless this names a class. */\n overlayClassName?: string\n /** Where the dialog mounts, `<body>` by default. */\n container?: Element\n translations?: unknown\n }\n\n/**\n * The palette in a modal: the kit's Dialog root (focus trap, Escape, an\n * outside press, scroll lock and focus return) around a surface drawn at a\n * third of the window's height, where the eye lands, not the centre.\n * `class` and `contentClassName` land on the surface; the rest of the props\n * are the nested Command's.\n */\nexport function CommandDialog(props: CommandDialogProps) {\n const dialogKeys = [\n 'open',\n 'defaultOpen',\n 'onOpenChange',\n 'id',\n 'modal',\n 'preventScroll',\n 'forceMount',\n 'translations',\n ] as const\n const commandProps = omit(\n props as CommandDialogProps & { id?: string },\n 'class',\n 'contentClassName',\n 'overlayClassName',\n 'container',\n 'onCloseAutoFocus',\n 'onOpenAutoFocus',\n ...dialogKeys\n )\n\n return (\n <Dialog\n open={props.open}\n defaultOpen={props.defaultOpen}\n onOpenChange={props.onOpenChange}\n modal={props.modal}\n >\n <CommandDialogContent\n label={props.label}\n class={cn(props.class, props.contentClassName)}\n overlayClassName={props.overlayClassName}\n container={props.container}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n >\n <Command {...commandProps} />\n </CommandDialogContent>\n </Dialog>\n )\n}\n\nfunction CommandDialogContent(\n props: Pick<CommandDialogProps, 'onCloseAutoFocus' | 'onOpenAutoFocus' | 'children'> & {\n label?: string\n class?: string\n overlayClassName?: string\n container?: Element\n }\n) {\n let panel: HTMLDivElement | undefined\n const focus = useLayerContent({\n content: () => panel,\n handlers: () => ({\n onOpenAutoFocus: props.onOpenAutoFocus,\n onCloseAutoFocus: props.onCloseAutoFocus,\n }),\n })\n return (\n <Portal mount={props.container ?? overlayContainer()}>\n <UiDialogContent\n // Inline inside a top-layer positioner of its own, as the kit's\n // DialogContent does; the surface keeps its fixed placement.\n inline\n ref={(element: HTMLDivElement) => (panel = element)}\n initialFocus={focus.initialFocus()}\n finalFocus={focus.finalFocus()}\n aria-label={props.label}\n class={cn(\n overlaySurface,\n 'fixed top-1/3 left-1/2 z-(--z-dialog) w-full max-w-lg -translate-x-1/2 -translate-y-1/2 overflow-hidden shadow-xl',\n overlayZoom,\n props.class\n )}\n render={(panelProps: Record<string, unknown>, state: { open: boolean }) => (\n <TopLayerPositioner class=\"fixed inset-0 z-(--z-dialog)\">\n <div\n cmdk-overlay=\"\"\n aria-hidden=\"true\"\n data-expanded={state.open ? '' : undefined}\n data-closed={state.open ? undefined : ''}\n class={props.overlayClassName}\n />\n <div {...panelProps} cmdk-dialog=\"\" data-expanded={state.open ? '' : undefined} />\n </TopLayerPositioner>\n )}\n >\n <LayerEscapeTarget element={() => panel}>{props.children}</LayerEscapeTarget>\n </UiDialogContent>\n </Portal>\n )\n}\n\nexport type CommandInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'> & {\n /** The search text. Pass it to control the search. */\n value?: string\n /** The search text changed. */\n onValueChange?: (search: string) => void\n}\n\nexport function CommandInput(props: CommandInputProps) {\n const scope = useContext(CommandScopeContext)\n const rest = omit(props, 'class', 'value', 'onValueChange', 'onKeyDown')\n if (scope) scope.inputListener.current = (search) => props.onValueChange?.(search)\n\n // Escape closes the layer around the palette (a popover, a dialog) in one press, search text\n // or not, as it did before ui-sdk. ui-sdk's input clears the search first and keeps the event;\n // with the search already cleared here, it leaves Escape to the layer. On a page it still\n // steps back.\n const onKeyDown: JSX.EventHandler<HTMLInputElement, KeyboardEvent> = (event) => {\n const handler = props.onKeyDown\n if (typeof handler === 'function') handler(event)\n else if (Array.isArray(handler)) handler[0](handler[1], event)\n if (event.defaultPrevented || event.key !== 'Escape' || !scope) return\n if (scope.controller.getPages().length > 0) return\n if (scope.controller.getQuery()) scope.controller.setQuery('', { event })\n }\n\n createEffect(\n () => props.value,\n (search) => {\n if (search === undefined || !scope || scope.controller.getQuery() === search) return\n scope.controller.setQuery(search)\n }\n )\n\n return (\n <div\n data-slot=\"command-input-wrapper\"\n class=\"flex h-11 items-center gap-2 border-b border-border px-3\"\n >\n <Search class=\"size-4 shrink-0 text-muted-foreground\" aria-hidden=\"true\" />\n <CommandInputPrimitive\n aria-label={scope?.label()}\n {...(rest as Record<string, unknown>)}\n onKeyDown={onKeyDown}\n cmdk-input=\"\"\n class={cn(\n 'h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n props.class\n )}\n />\n </div>\n )\n}\n\n/**\n * The scrolling list: a listbox that owns the options, always shown. ui-sdk\n * keeps an empty search's listbox valid and announces the result count, so the\n * cmdk-era role corrections are gone with cmdk's sizer.\n */\nexport function CommandList(props: ComponentProps<'div'>) {\n const rest = omit(props, 'class')\n return (\n <CommandListPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-list=\"\"\n class={cn('max-h-80 scroll-py-1 overflow-y-auto overflow-x-hidden p-1', props.class)}\n />\n )\n}\n\n/**\n * The no-match message. Place it beside `CommandList`, before it, not inside:\n * it is a `status` live region, which a listbox may not contain. ui-sdk keeps\n * it mounted so the announcement is reliable, and it collapses to no height\n * while the search has matches (`data-empty` marks a search with none).\n */\nexport function CommandEmpty(props: ComponentProps<'div'>) {\n const rest = omit(props, 'class')\n return (\n <CommandEmptyPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-empty=\"\"\n class={cn(\n 'text-muted-foreground py-8 text-center text-sm not-data-[empty]:py-0',\n props.class\n )}\n />\n )\n}\n\nexport type CommandGroupProps = ComponentProps<'div'> & {\n /** The group's heading, which names it. */\n heading?: JSX.Element\n /** Kept for the API: a group hides while none of its items matches. */\n forceMount?: boolean\n /** Kept for the API. */\n value?: string\n}\n\nexport function CommandGroup(props: CommandGroupProps) {\n const rest = omit(props, 'class', 'children', 'heading', 'forceMount', 'value')\n const heading = resolveChildren(() => props.heading)\n return (\n <CommandGroupPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-group=\"\"\n class={cn(\n 'text-foreground overflow-hidden p-1',\n '[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-2xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:tracking-wide [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:uppercase',\n props.class\n )}\n >\n <Show when={heading()}>\n <CommandGroupLabelPrimitive cmdk-group-heading=\"\">{heading()}</CommandGroupLabelPrimitive>\n </Show>\n {props.children}\n </CommandGroupPrimitive>\n )\n}\n\nexport type CommandItemProps = Omit<ComponentProps<'div'>, 'onSelect' | 'value'> & {\n /** What the search matches and what `onSelect` reports. Defaults to the item's text. */\n value?: string\n /** More words the search matches. */\n keywords?: string[]\n disabled?: boolean\n /** The item ran: a click, or Enter while it is highlighted. */\n onSelect?: (value: string) => void\n /** Kept for the API: an item shows while it matches the search. */\n forceMount?: boolean\n}\n\nexport function CommandItem(props: CommandItemProps) {\n let element: HTMLDivElement | undefined\n const rest = omit(\n props,\n 'class',\n 'value',\n 'keywords',\n 'disabled',\n 'onSelect',\n 'forceMount',\n 'ref'\n )\n const value = () => props.value?.trim()\n return (\n <CommandItemPrimitive\n {...(rest as Record<string, unknown>)}\n ref={(node: HTMLDivElement) => {\n element = node\n callRef(props.ref, node)\n }}\n value={value()}\n label={value()}\n keywords={props.keywords}\n disabled={props.disabled}\n onSelect={() => props.onSelect?.(value() ?? element?.textContent?.trim() ?? '')}\n render={(\n part: Record<string, unknown>,\n state: { highlighted: boolean; disabled: boolean }\n ) => (\n <div\n {...part}\n cmdk-item=\"\"\n data-selected={state.highlighted ? 'true' : 'false'}\n data-disabled={state.disabled ? 'true' : 'false'}\n data-value={value()}\n />\n )}\n class={cn(\n commandItem,\n 'data-[disabled=true]:pointer-events-none data-[disabled=true]:text-muted-foreground',\n // The selected row sits on the accent rung, the same primary-subtle\n // fill the settings navigation's selected row owns, instead of the\n // popover rung, so what is chosen keeps the accent the checked menus\n // already carry in their indicators.\n 'group/command-item text-popover-foreground data-[selected=true]:bg-primary-subtle data-[selected=true]:text-foreground',\n 'in-data-settling:transition-none',\n props.class\n )}\n />\n )\n}\n\nexport function CommandSeparator(props: ComponentProps<'div'> & { alwaysRender?: boolean }) {\n const rest = omit(props, 'class', 'alwaysRender')\n return (\n <CommandSeparatorPrimitive\n {...(rest as Record<string, unknown>)}\n cmdk-separator=\"\"\n // A listbox owns options and groups only; the hairline is presentation.\n render={(part: Record<string, unknown>) => (\n <div {...part} role=\"presentation\" aria-orientation={undefined} />\n )}\n class={cn('bg-border -mx-1 my-1 h-px', props.class)}\n />\n )\n}\n\n/** A loading row: a progress bar named \"Loading…\" unless `label` says otherwise. */\nexport function CommandLoading(\n props: ComponentProps<'div'> & { progress?: number; label?: string }\n) {\n const rest = omit(props, 'class', 'children', 'progress', 'label')\n return (\n <div\n {...rest}\n cmdk-loading=\"\"\n role=\"progressbar\"\n aria-valuenow={props.progress}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-label={props.label ?? 'Loading...'}\n class={cn('text-muted-foreground py-6 text-center text-sm', props.class)}\n >\n <div aria-hidden=\"true\">{props.children}</div>\n </div>\n )\n}\n\n/** The keyboard hint a palette item usually carries. */\nexport function CommandShortcut(props: {\n class?: string\n children?: ComponentProps<'span'>['children']\n}) {\n return (\n <span\n class={cn(\n menuShortcut,\n 'group-data-[selected=true]/command-item:text-foreground',\n props.class\n )}\n >\n {props.children}\n </span>\n )\n}\n\n/**\n * The status line a command surface reports under its list: searching, offline,\n * a partial result caveat. The copy and the live-role semantics (`status`,\n * `alert`) are the caller's, a palette's failure modes are app facts, but the\n * line's shape is not something every caller should redraw.\n */\nexport function CommandStatus(props: ComponentProps<'p'>) {\n const rest = omit(props, 'class')\n\n return (\n <p\n data-slot=\"command-status\"\n class={cn('text-muted-foreground px-4 py-4 text-center text-sm', props.class)}\n {...rest}\n />\n )\n}\n\n/**\n * The keyboard hint a palette footer carries, right-aligned under the list so\n * it reads as furniture rather than a result. Muted on purpose: the arrows are\n * what the user has already been doing by the time they read it.\n */\nexport function CommandHint(props: ComponentProps<'p'>) {\n const rest = omit(props, 'class')\n\n return (\n <p\n data-slot=\"command-hint\"\n class={cn('text-muted-foreground px-4 pb-1.5 text-right text-xs', props.class)}\n {...rest}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuCA,IAAM,SAAS,SAAS0C,QAAY;AAQpC,IAAM,cAAc,SACjB,QAAQ,0EAA0E,EAAE,CAAC,CACrF,QAAQ,uCAAuC,EAAE,CAAC,CAClD,QAAQ,yCAAyC,EAAE;;;;;AAatD,SAAS,QAAW,KAAc,SAAkB;CAClD,IAAI,OAAO,QAAQ,YAAY,IAAI,OAAO;MACrC,IAAI,MAAM,QAAQ,GAAG,GAAG,KAAK,MAAM,QAAQ,KAAK,QAAQ,MAAM,OAAO;AAC5E;AAEA,IAAM,sBAAsB,cAAmC,IAAI;;;;;;;;;;;;;;;;;;;AAmDnE,SAAgB,QAAQ,OAAqB;CAC3C,MAAM,aAAa,wBAAwB;CAC3C,MAAM,gBAA+C,CAAC;CAQtD,MAAM,CAAC,UAAU,eAAe,aAA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FA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GAAG,wDAAwD,MAAM,KAAK;EAAC;CACtE,GAAJ,IAAA,GAAA,KAAA;CAJR,OACEN;AAMJ"}
@@ -1,7 +1,7 @@
1
- import { MenuPanel, MenuRoot, callRef, createMenuParts, renderExpanded, useMenuScope } from "../dropdown-menu/menu-parts.js";
2
1
  import { createComponent, mergeProps } from "@solidjs/web";
3
- import { omit } from "solid-js";
4
2
  import { MenuContextTrigger } from "@ui-sdk/solid/menu";
3
+ import { omit } from "solid-js";
4
+ import { MenuPanel, MenuRoot, callRef, createMenuParts, renderExpanded, useMenuScope } from "../dropdown-menu/menu-parts.js";
5
5
  // src/components/ui/context-menu/context-menu.tsx
6
6
  /**
7
7
  * ContextMenu.
@@ -1,9 +1,9 @@
1
+ import { className, createComponent, effect, insert, readShallow, setAttribute, spread, template } from "@solidjs/web";
2
+ import { Show, createUniqueId, omit } from "solid-js";
3
+ import { X as X$1 } from "@lucide/solid";
1
4
  import { Button } from "../button/button.js";
2
5
  import { cn } from "../../../lib/utils.js";
3
6
  import { fastIcon } from "../../../lib/fast-icon.js";
4
- import { className, createComponent, effect, insert, readShallow, setAttribute, spread, template } from "@solidjs/web";
5
- import { X } from "@lucide/solid";
6
- import { Show, createUniqueId, omit } from "solid-js";
7
7
  // src/components/ui/detail-panel/detail-panel.tsx
8
8
  var _tmpl$ = /* @__PURE__ */ template(`<aside>`);
9
9
  var _tmpl$2 = /* @__PURE__ */ template(`<header><div class=min-w-0><h2 class="truncate text-sm font-semibold text-foreground"></h2><!></div><div class="flex shrink-0 items-center gap-1"><!><!>`);
@@ -11,7 +11,7 @@ var _tmpl$3 = /* @__PURE__ */ template(`<p class="text-2xs font-semibold trackin
11
11
  var _tmpl$4 = /* @__PURE__ */ template(`<div>`);
12
12
  var _tmpl$5 = /* @__PURE__ */ template(`<div class="grid gap-2"><h3 class="text-2xs font-semibold tracking-wide text-muted-foreground uppercase"></h3><dl>`);
13
13
  var _tmpl$6 = /* @__PURE__ */ template(`<div class="flex items-baseline justify-between gap-4 text-sm"><dt class=text-muted-foreground></dt><dd>`);
14
- var X$1 = fastIcon(X);
14
+ var X = fastIcon(X$1);
15
15
  function DetailPanel(props) {
16
16
  const local = props;
17
17
  const rest = omit(props, "label", "class", "children");
@@ -75,7 +75,7 @@ function DetailPanelHeader(props) {
75
75
  },
76
76
  onClick: () => dismiss()(),
77
77
  get children() {
78
- return createComponent(X$1, { "aria-hidden": "true" });
78
+ return createComponent(X, { "aria-hidden": "true" });
79
79
  }
80
80
  })
81
81
  }), _el$8);