@hexclave/ui 1.0.41 → 1.0.43

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 (599) hide show
  1. package/dist/accordion-1LxYtcF-.d.ts +17 -0
  2. package/dist/accordion-1LxYtcF-.d.ts.map +1 -0
  3. package/dist/action-dialog-DjRuope_.d.ts +32 -0
  4. package/dist/action-dialog-DjRuope_.d.ts.map +1 -0
  5. package/dist/alert-BQa8jVOm.d.ts +18 -0
  6. package/dist/alert-BQa8jVOm.d.ts.map +1 -0
  7. package/dist/aspect-ratio-CwMSZ5Lk.d.ts +7 -0
  8. package/dist/aspect-ratio-CwMSZ5Lk.d.ts.map +1 -0
  9. package/dist/avatar-COsl9aaA.d.ts +16 -0
  10. package/dist/avatar-COsl9aaA.d.ts.map +1 -0
  11. package/dist/badge-B0KrSxYn.d.ts +16 -0
  12. package/dist/badge-B0KrSxYn.d.ts.map +1 -0
  13. package/dist/brand-icons-Bjvj9pgI.d.ts +75 -0
  14. package/dist/brand-icons-Bjvj9pgI.d.ts.map +1 -0
  15. package/dist/breadcrumb-xoLPVWeD.d.ts +40 -0
  16. package/dist/breadcrumb-xoLPVWeD.d.ts.map +1 -0
  17. package/dist/button-DqvToJ0R.d.ts +31 -0
  18. package/dist/button-DqvToJ0R.d.ts.map +1 -0
  19. package/dist/calendar-Cm6dI-sl.d.ts +17 -0
  20. package/dist/calendar-Cm6dI-sl.d.ts.map +1 -0
  21. package/dist/card-zNadDkms.d.ts +25 -0
  22. package/dist/card-zNadDkms.d.ts.map +1 -0
  23. package/dist/cells-C2kaNfav.d.ts +34 -0
  24. package/dist/cells-C2kaNfav.d.ts.map +1 -0
  25. package/dist/checkbox-CZveCMkD.d.ts +10 -0
  26. package/dist/checkbox-CZveCMkD.d.ts.map +1 -0
  27. package/dist/collapsible-BGCYUDWQ.d.ts +9 -0
  28. package/dist/collapsible-BGCYUDWQ.d.ts.map +1 -0
  29. package/dist/column-header-U53XE9Tp.d.ts +15 -0
  30. package/dist/column-header-U53XE9Tp.d.ts.map +1 -0
  31. package/dist/command-Cyfe0FJ4.d.ts +27 -0
  32. package/dist/command-Cyfe0FJ4.d.ts.map +1 -0
  33. package/dist/components/action-dialog.d.ts +2 -33
  34. package/dist/components/action-dialog.js +5 -7
  35. package/dist/components/action-dialog.js.map +1 -1
  36. package/dist/components/brand-icons.d.ts +2 -78
  37. package/dist/components/brand-icons.js +3 -5
  38. package/dist/components/brand-icons.js.map +1 -1
  39. package/dist/components/browser-frame/index.d.ts +2 -21
  40. package/dist/components/browser-frame/index.js +4 -5
  41. package/dist/components/browser-frame/index.js.map +1 -1
  42. package/dist/components/copy-button.d.ts +2 -22
  43. package/dist/components/copy-button.js +5 -8
  44. package/dist/components/copy-button.js.map +1 -1
  45. package/dist/components/copy-field.d.ts +2 -18
  46. package/dist/components/copy-field.js +2 -4
  47. package/dist/components/copy-field.js.map +1 -1
  48. package/dist/components/data-table/cells.d.ts +2 -35
  49. package/dist/components/data-table/cells.js +5 -7
  50. package/dist/components/data-table/cells.js.map +1 -1
  51. package/dist/components/data-table/column-header.d.ts +2 -16
  52. package/dist/components/data-table/column-header.js +2 -4
  53. package/dist/components/data-table/column-header.js.map +1 -1
  54. package/dist/components/data-table/data-table.d.ts +2 -59
  55. package/dist/components/data-table/data-table.js +4 -6
  56. package/dist/components/data-table/data-table.js.map +1 -1
  57. package/dist/components/data-table/faceted-filter.d.ts +2 -24
  58. package/dist/components/data-table/faceted-filter.js +4 -5
  59. package/dist/components/data-table/faceted-filter.js.map +1 -1
  60. package/dist/components/data-table/index.d.ts +9 -9
  61. package/dist/components/data-table/index.js +63 -55
  62. package/dist/components/data-table/pagination.d.ts +2 -13
  63. package/dist/components/data-table/pagination.js +2 -4
  64. package/dist/components/data-table/pagination.js.map +1 -1
  65. package/dist/components/data-table/toolbar-items.d.ts +2 -13
  66. package/dist/components/data-table/toolbar-items.js +2 -4
  67. package/dist/components/data-table/toolbar-items.js.map +1 -1
  68. package/dist/components/data-table/toolbar.d.ts +2 -23
  69. package/dist/components/data-table/toolbar.js +2 -5
  70. package/dist/components/data-table/toolbar.js.map +1 -1
  71. package/dist/components/data-table/utils.d.ts +2 -6
  72. package/dist/components/data-table/utils.js +2 -3
  73. package/dist/components/data-table/utils.js.map +1 -1
  74. package/dist/components/data-table/view-options.d.ts +2 -19
  75. package/dist/components/data-table/view-options.js +2 -5
  76. package/dist/components/data-table/view-options.js.map +1 -1
  77. package/dist/components/simple-tooltip.d.ts +2 -14
  78. package/dist/components/simple-tooltip.js +2 -4
  79. package/dist/components/simple-tooltip.js.map +1 -1
  80. package/dist/components/ui/accordion.d.ts +2 -17
  81. package/dist/components/ui/accordion.js +5 -7
  82. package/dist/components/ui/accordion.js.map +1 -1
  83. package/dist/components/ui/alert.d.ts +2 -19
  84. package/dist/components/ui/alert.js +5 -7
  85. package/dist/components/ui/alert.js.map +1 -1
  86. package/dist/components/ui/aspect-ratio.d.ts +2 -8
  87. package/dist/components/ui/aspect-ratio.js +4 -6
  88. package/dist/components/ui/aspect-ratio.js.map +1 -1
  89. package/dist/components/ui/avatar.d.ts +2 -16
  90. package/dist/components/ui/avatar.js +5 -7
  91. package/dist/components/ui/avatar.js.map +1 -1
  92. package/dist/components/ui/badge.d.ts +2 -17
  93. package/dist/components/ui/badge.js +5 -7
  94. package/dist/components/ui/badge.js.map +1 -1
  95. package/dist/components/ui/breadcrumb.d.ts +2 -41
  96. package/dist/components/ui/breadcrumb.js +4 -5
  97. package/dist/components/ui/breadcrumb.js.map +1 -1
  98. package/dist/components/ui/button.d.ts +2 -32
  99. package/dist/components/ui/button.js +4 -5
  100. package/dist/components/ui/button.js.map +1 -1
  101. package/dist/components/ui/calendar.d.ts +2 -18
  102. package/dist/components/ui/calendar.js +4 -6
  103. package/dist/components/ui/calendar.js.map +1 -1
  104. package/dist/components/ui/card.d.ts +2 -27
  105. package/dist/components/ui/card.js +2 -4
  106. package/dist/components/ui/card.js.map +1 -1
  107. package/dist/components/ui/checkbox.d.ts +2 -10
  108. package/dist/components/ui/checkbox.js +5 -7
  109. package/dist/components/ui/checkbox.js.map +1 -1
  110. package/dist/components/ui/collapsible.d.ts +2 -10
  111. package/dist/components/ui/collapsible.js +4 -6
  112. package/dist/components/ui/collapsible.js.map +1 -1
  113. package/dist/components/ui/command.d.ts +2 -28
  114. package/dist/components/ui/command.js +5 -7
  115. package/dist/components/ui/command.js.map +1 -1
  116. package/dist/components/ui/context-menu.d.ts +2 -51
  117. package/dist/components/ui/context-menu.js +7 -9
  118. package/dist/components/ui/context-menu.js.map +1 -1
  119. package/dist/components/ui/dialog.d.ts +2 -45
  120. package/dist/components/ui/dialog.js +6 -8
  121. package/dist/components/ui/dialog.js.map +1 -1
  122. package/dist/components/ui/dropdown-menu.d.ts +2 -54
  123. package/dist/components/ui/dropdown-menu.js +7 -9
  124. package/dist/components/ui/dropdown-menu.js.map +1 -1
  125. package/dist/components/ui/form.d.ts +2 -42
  126. package/dist/components/ui/form.js +5 -7
  127. package/dist/components/ui/form.js.map +1 -1
  128. package/dist/components/ui/hover-card.d.ts +2 -12
  129. package/dist/components/ui/hover-card.js +6 -8
  130. package/dist/components/ui/hover-card.js.map +1 -1
  131. package/dist/components/ui/inline-code.d.ts +2 -9
  132. package/dist/components/ui/inline-code.js +4 -6
  133. package/dist/components/ui/inline-code.js.map +1 -1
  134. package/dist/components/ui/input-otp.d.ts +2 -20
  135. package/dist/components/ui/input-otp.js +4 -6
  136. package/dist/components/ui/input-otp.js.map +1 -1
  137. package/dist/components/ui/input.d.ts +2 -24
  138. package/dist/components/ui/input.js +4 -5
  139. package/dist/components/ui/input.js.map +1 -1
  140. package/dist/components/ui/label.d.ts +2 -15
  141. package/dist/components/ui/label.js +5 -7
  142. package/dist/components/ui/label.js.map +1 -1
  143. package/dist/components/ui/menubar.d.ts +2 -38
  144. package/dist/components/ui/menubar.js +7 -9
  145. package/dist/components/ui/menubar.js.map +1 -1
  146. package/dist/components/ui/navigation-menu.d.ts +2 -29
  147. package/dist/components/ui/navigation-menu.js +6 -8
  148. package/dist/components/ui/navigation-menu.js.map +1 -1
  149. package/dist/components/ui/password-input.d.ts +2 -11
  150. package/dist/components/ui/password-input.js +2 -5
  151. package/dist/components/ui/password-input.js.map +1 -1
  152. package/dist/components/ui/popover.d.ts +2 -13
  153. package/dist/components/ui/popover.js +6 -8
  154. package/dist/components/ui/popover.js.map +1 -1
  155. package/dist/components/ui/progress.d.ts +2 -10
  156. package/dist/components/ui/progress.js +5 -7
  157. package/dist/components/ui/progress.js.map +1 -1
  158. package/dist/components/ui/radio-group.d.ts +2 -13
  159. package/dist/components/ui/radio-group.js +5 -7
  160. package/dist/components/ui/radio-group.js.map +1 -1
  161. package/dist/components/ui/resizable.d.ts +2 -36
  162. package/dist/components/ui/resizable.js +4 -6
  163. package/dist/components/ui/resizable.js.map +1 -1
  164. package/dist/components/ui/scroll-area.d.ts +2 -13
  165. package/dist/components/ui/scroll-area.js +5 -7
  166. package/dist/components/ui/scroll-area.js.map +1 -1
  167. package/dist/components/ui/select.d.ts +2 -33
  168. package/dist/components/ui/select.js +6 -8
  169. package/dist/components/ui/select.js.map +1 -1
  170. package/dist/components/ui/separator.d.ts +2 -10
  171. package/dist/components/ui/separator.js +5 -7
  172. package/dist/components/ui/separator.js.map +1 -1
  173. package/dist/components/ui/sheet.d.ts +2 -44
  174. package/dist/components/ui/sheet.js +6 -8
  175. package/dist/components/ui/sheet.js.map +1 -1
  176. package/dist/components/ui/skeleton.d.ts +2 -12
  177. package/dist/components/ui/skeleton.js +4 -6
  178. package/dist/components/ui/skeleton.js.map +1 -1
  179. package/dist/components/ui/slider.d.ts +2 -10
  180. package/dist/components/ui/slider.js +5 -7
  181. package/dist/components/ui/slider.js.map +1 -1
  182. package/dist/components/ui/spinner.d.ts +2 -11
  183. package/dist/components/ui/spinner.js +4 -5
  184. package/dist/components/ui/spinner.js.map +1 -1
  185. package/dist/components/ui/switch.d.ts +2 -14
  186. package/dist/components/ui/switch.js +5 -7
  187. package/dist/components/ui/switch.js.map +1 -1
  188. package/dist/components/ui/table.d.ts +2 -30
  189. package/dist/components/ui/table.js +4 -5
  190. package/dist/components/ui/table.js.map +1 -1
  191. package/dist/components/ui/tabs.d.ts +2 -17
  192. package/dist/components/ui/tabs.js +5 -7
  193. package/dist/components/ui/tabs.js.map +1 -1
  194. package/dist/components/ui/textarea.d.ts +2 -10
  195. package/dist/components/ui/textarea.js +4 -5
  196. package/dist/components/ui/textarea.js.map +1 -1
  197. package/dist/components/ui/toast.d.ts +2 -32
  198. package/dist/components/ui/toast.js +6 -8
  199. package/dist/components/ui/toast.js.map +1 -1
  200. package/dist/components/ui/toaster.d.ts +2 -7
  201. package/dist/components/ui/toaster.js +2 -5
  202. package/dist/components/ui/toaster.js.map +1 -1
  203. package/dist/components/ui/toggle-group.d.ts +2 -21
  204. package/dist/components/ui/toggle-group.js +5 -7
  205. package/dist/components/ui/toggle-group.js.map +1 -1
  206. package/dist/components/ui/toggle.d.ts +2 -3
  207. package/dist/components/ui/toggle.d.ts.map +1 -1
  208. package/dist/components/ui/toggle.js +5 -7
  209. package/dist/components/ui/toggle.js.map +1 -1
  210. package/dist/components/ui/tooltip.d.ts +2 -16
  211. package/dist/components/ui/tooltip.js +6 -8
  212. package/dist/components/ui/tooltip.js.map +1 -1
  213. package/dist/components/ui/typography.d.ts +2 -14
  214. package/dist/components/ui/typography.js +5 -7
  215. package/dist/components/ui/typography.js.map +1 -1
  216. package/dist/components/ui/use-toast.d.ts +2 -50
  217. package/dist/components/ui/use-toast.js +4 -6
  218. package/dist/components/ui/use-toast.js.map +1 -1
  219. package/dist/context-menu-D5-FvPFJ.d.ts +50 -0
  220. package/dist/context-menu-D5-FvPFJ.d.ts.map +1 -0
  221. package/dist/copy-button-ClCNLwvl.d.ts +20 -0
  222. package/dist/copy-button-ClCNLwvl.d.ts.map +1 -0
  223. package/dist/copy-field-Cf7eTpio.d.ts +16 -0
  224. package/dist/copy-field-Cf7eTpio.d.ts.map +1 -0
  225. package/dist/data-table-xbTf50By.d.ts +58 -0
  226. package/dist/data-table-xbTf50By.d.ts.map +1 -0
  227. package/dist/dialog-Dple6cLo.d.ts +44 -0
  228. package/dist/dialog-Dple6cLo.d.ts.map +1 -0
  229. package/dist/dropdown-menu-T3VfUZNR.d.ts +53 -0
  230. package/dist/dropdown-menu-T3VfUZNR.d.ts.map +1 -0
  231. package/dist/esm/components/action-dialog.d.ts +2 -3
  232. package/dist/esm/components/action-dialog.d.ts.map +1 -1
  233. package/dist/esm/components/action-dialog.js +2 -4
  234. package/dist/esm/components/action-dialog.js.map +1 -1
  235. package/dist/esm/components/brand-icons.d.ts +13 -15
  236. package/dist/esm/components/brand-icons.d.ts.map +1 -1
  237. package/dist/esm/components/brand-icons.js +2 -3
  238. package/dist/esm/components/brand-icons.js.map +1 -1
  239. package/dist/esm/components/browser-frame/index.d.ts +1 -2
  240. package/dist/esm/components/browser-frame/index.d.ts.map +1 -1
  241. package/dist/esm/components/browser-frame/index.js +2 -3
  242. package/dist/esm/components/browser-frame/index.js.map +1 -1
  243. package/dist/esm/components/copy-button.d.ts +3 -5
  244. package/dist/esm/components/copy-button.d.ts.map +1 -1
  245. package/dist/esm/components/copy-button.js +2 -4
  246. package/dist/esm/components/copy-button.js.map +1 -1
  247. package/dist/esm/components/copy-field.d.ts +1 -3
  248. package/dist/esm/components/copy-field.d.ts.map +1 -1
  249. package/dist/esm/components/copy-field.js +1 -2
  250. package/dist/esm/components/copy-field.js.map +1 -1
  251. package/dist/esm/components/data-table/cells.d.ts +5 -6
  252. package/dist/esm/components/data-table/cells.d.ts.map +1 -1
  253. package/dist/esm/components/data-table/cells.js +2 -4
  254. package/dist/esm/components/data-table/cells.js.map +1 -1
  255. package/dist/esm/components/data-table/column-header.d.ts +1 -2
  256. package/dist/esm/components/data-table/column-header.d.ts.map +1 -1
  257. package/dist/esm/components/data-table/column-header.js +1 -2
  258. package/dist/esm/components/data-table/column-header.js.map +1 -1
  259. package/dist/esm/components/data-table/data-table.d.ts +3 -4
  260. package/dist/esm/components/data-table/data-table.d.ts.map +1 -1
  261. package/dist/esm/components/data-table/data-table.js +1 -3
  262. package/dist/esm/components/data-table/data-table.js.map +1 -1
  263. package/dist/esm/components/data-table/faceted-filter.d.ts +1 -2
  264. package/dist/esm/components/data-table/faceted-filter.d.ts.map +1 -1
  265. package/dist/esm/components/data-table/faceted-filter.js +2 -3
  266. package/dist/esm/components/data-table/faceted-filter.js.map +1 -1
  267. package/dist/esm/components/data-table/index.d.ts +9 -9
  268. package/dist/esm/components/data-table/index.js +10 -19
  269. package/dist/esm/components/data-table/pagination.d.ts +1 -2
  270. package/dist/esm/components/data-table/pagination.d.ts.map +1 -1
  271. package/dist/esm/components/data-table/pagination.js +1 -2
  272. package/dist/esm/components/data-table/pagination.js.map +1 -1
  273. package/dist/esm/components/data-table/toolbar-items.d.ts +1 -2
  274. package/dist/esm/components/data-table/toolbar-items.d.ts.map +1 -1
  275. package/dist/esm/components/data-table/toolbar-items.js +1 -2
  276. package/dist/esm/components/data-table/toolbar-items.js.map +1 -1
  277. package/dist/esm/components/data-table/toolbar.d.ts +1 -2
  278. package/dist/esm/components/data-table/toolbar.d.ts.map +1 -1
  279. package/dist/esm/components/data-table/toolbar.js +1 -3
  280. package/dist/esm/components/data-table/toolbar.js.map +1 -1
  281. package/dist/esm/components/data-table/utils.js +1 -1
  282. package/dist/esm/components/data-table/utils.js.map +1 -1
  283. package/dist/esm/components/data-table/view-options.d.ts +1 -2
  284. package/dist/esm/components/data-table/view-options.d.ts.map +1 -1
  285. package/dist/esm/components/data-table/view-options.js +1 -3
  286. package/dist/esm/components/data-table/view-options.js.map +1 -1
  287. package/dist/esm/components/simple-tooltip.d.ts +1 -3
  288. package/dist/esm/components/simple-tooltip.d.ts.map +1 -1
  289. package/dist/esm/components/simple-tooltip.js +1 -2
  290. package/dist/esm/components/simple-tooltip.js.map +1 -1
  291. package/dist/esm/components/ui/accordion.js +2 -4
  292. package/dist/esm/components/ui/accordion.js.map +1 -1
  293. package/dist/esm/components/ui/alert.d.ts +1 -2
  294. package/dist/esm/components/ui/alert.d.ts.map +1 -1
  295. package/dist/esm/components/ui/alert.js +2 -3
  296. package/dist/esm/components/ui/alert.js.map +1 -1
  297. package/dist/esm/components/ui/aspect-ratio.d.ts +1 -2
  298. package/dist/esm/components/ui/aspect-ratio.d.ts.map +1 -1
  299. package/dist/esm/components/ui/aspect-ratio.js +1 -3
  300. package/dist/esm/components/ui/aspect-ratio.js.map +1 -1
  301. package/dist/esm/components/ui/avatar.js +2 -4
  302. package/dist/esm/components/ui/avatar.js.map +1 -1
  303. package/dist/esm/components/ui/badge.d.ts +2 -3
  304. package/dist/esm/components/ui/badge.d.ts.map +1 -1
  305. package/dist/esm/components/ui/badge.js +2 -3
  306. package/dist/esm/components/ui/badge.js.map +1 -1
  307. package/dist/esm/components/ui/breadcrumb.d.ts +2 -3
  308. package/dist/esm/components/ui/breadcrumb.d.ts.map +1 -1
  309. package/dist/esm/components/ui/breadcrumb.js +2 -3
  310. package/dist/esm/components/ui/breadcrumb.js.map +1 -1
  311. package/dist/esm/components/ui/button.d.ts +4 -5
  312. package/dist/esm/components/ui/button.d.ts.map +1 -1
  313. package/dist/esm/components/ui/button.js +2 -3
  314. package/dist/esm/components/ui/button.js.map +1 -1
  315. package/dist/esm/components/ui/calendar.d.ts +1 -2
  316. package/dist/esm/components/ui/calendar.d.ts.map +1 -1
  317. package/dist/esm/components/ui/calendar.js +2 -4
  318. package/dist/esm/components/ui/calendar.js.map +1 -1
  319. package/dist/esm/components/ui/card.d.ts +14 -16
  320. package/dist/esm/components/ui/card.d.ts.map +1 -1
  321. package/dist/esm/components/ui/card.js +1 -2
  322. package/dist/esm/components/ui/card.js.map +1 -1
  323. package/dist/esm/components/ui/checkbox.js +2 -4
  324. package/dist/esm/components/ui/checkbox.js.map +1 -1
  325. package/dist/esm/components/ui/collapsible.d.ts +3 -4
  326. package/dist/esm/components/ui/collapsible.d.ts.map +1 -1
  327. package/dist/esm/components/ui/collapsible.js +1 -3
  328. package/dist/esm/components/ui/collapsible.js.map +1 -1
  329. package/dist/esm/components/ui/command.d.ts +2 -3
  330. package/dist/esm/components/ui/command.d.ts.map +1 -1
  331. package/dist/esm/components/ui/command.js +3 -5
  332. package/dist/esm/components/ui/command.js.map +1 -1
  333. package/dist/esm/components/ui/context-menu.d.ts +1 -2
  334. package/dist/esm/components/ui/context-menu.d.ts.map +1 -1
  335. package/dist/esm/components/ui/context-menu.js +4 -6
  336. package/dist/esm/components/ui/context-menu.js.map +1 -1
  337. package/dist/esm/components/ui/dialog.d.ts +3 -4
  338. package/dist/esm/components/ui/dialog.d.ts.map +1 -1
  339. package/dist/esm/components/ui/dialog.js +3 -5
  340. package/dist/esm/components/ui/dialog.js.map +1 -1
  341. package/dist/esm/components/ui/dropdown-menu.d.ts +1 -2
  342. package/dist/esm/components/ui/dropdown-menu.d.ts.map +1 -1
  343. package/dist/esm/components/ui/dropdown-menu.js +3 -5
  344. package/dist/esm/components/ui/dropdown-menu.js.map +1 -1
  345. package/dist/esm/components/ui/form.d.ts +4 -7
  346. package/dist/esm/components/ui/form.d.ts.map +1 -1
  347. package/dist/esm/components/ui/form.js +2 -4
  348. package/dist/esm/components/ui/form.js.map +1 -1
  349. package/dist/esm/components/ui/hover-card.js +3 -5
  350. package/dist/esm/components/ui/hover-card.js.map +1 -1
  351. package/dist/esm/components/ui/inline-code.js +2 -4
  352. package/dist/esm/components/ui/inline-code.js.map +1 -1
  353. package/dist/esm/components/ui/input-otp.js +1 -3
  354. package/dist/esm/components/ui/input-otp.js.map +1 -1
  355. package/dist/esm/components/ui/input.d.ts.map +1 -1
  356. package/dist/esm/components/ui/input.js +1 -2
  357. package/dist/esm/components/ui/input.js.map +1 -1
  358. package/dist/esm/components/ui/label.d.ts +2 -3
  359. package/dist/esm/components/ui/label.d.ts.map +1 -1
  360. package/dist/esm/components/ui/label.js +2 -4
  361. package/dist/esm/components/ui/label.js.map +1 -1
  362. package/dist/esm/components/ui/menubar.d.ts +1 -2
  363. package/dist/esm/components/ui/menubar.d.ts.map +1 -1
  364. package/dist/esm/components/ui/menubar.js +3 -5
  365. package/dist/esm/components/ui/menubar.js.map +1 -1
  366. package/dist/esm/components/ui/navigation-menu.d.ts +1 -2
  367. package/dist/esm/components/ui/navigation-menu.d.ts.map +1 -1
  368. package/dist/esm/components/ui/navigation-menu.js +3 -5
  369. package/dist/esm/components/ui/navigation-menu.js.map +1 -1
  370. package/dist/esm/components/ui/password-input.d.ts +3 -5
  371. package/dist/esm/components/ui/password-input.d.ts.map +1 -1
  372. package/dist/esm/components/ui/password-input.js +1 -3
  373. package/dist/esm/components/ui/password-input.js.map +1 -1
  374. package/dist/esm/components/ui/popover.js +3 -5
  375. package/dist/esm/components/ui/popover.js.map +1 -1
  376. package/dist/esm/components/ui/progress.js +2 -4
  377. package/dist/esm/components/ui/progress.js.map +1 -1
  378. package/dist/esm/components/ui/radio-group.js +2 -4
  379. package/dist/esm/components/ui/radio-group.js.map +1 -1
  380. package/dist/esm/components/ui/resizable.d.ts +5 -7
  381. package/dist/esm/components/ui/resizable.d.ts.map +1 -1
  382. package/dist/esm/components/ui/resizable.js +1 -3
  383. package/dist/esm/components/ui/resizable.js.map +1 -1
  384. package/dist/esm/components/ui/scroll-area.js +2 -4
  385. package/dist/esm/components/ui/scroll-area.js.map +1 -1
  386. package/dist/esm/components/ui/select.js +3 -5
  387. package/dist/esm/components/ui/select.js.map +1 -1
  388. package/dist/esm/components/ui/separator.js +2 -4
  389. package/dist/esm/components/ui/separator.js.map +1 -1
  390. package/dist/esm/components/ui/sheet.d.ts +3 -5
  391. package/dist/esm/components/ui/sheet.d.ts.map +1 -1
  392. package/dist/esm/components/ui/sheet.js +3 -5
  393. package/dist/esm/components/ui/sheet.js.map +1 -1
  394. package/dist/esm/components/ui/skeleton.d.ts +1 -2
  395. package/dist/esm/components/ui/skeleton.d.ts.map +1 -1
  396. package/dist/esm/components/ui/skeleton.js +2 -4
  397. package/dist/esm/components/ui/skeleton.js.map +1 -1
  398. package/dist/esm/components/ui/slider.js +2 -4
  399. package/dist/esm/components/ui/slider.js.map +1 -1
  400. package/dist/esm/components/ui/spinner.js +2 -3
  401. package/dist/esm/components/ui/spinner.js.map +1 -1
  402. package/dist/esm/components/ui/switch.js +2 -4
  403. package/dist/esm/components/ui/switch.js.map +1 -1
  404. package/dist/esm/components/ui/table.js +2 -3
  405. package/dist/esm/components/ui/table.js.map +1 -1
  406. package/dist/esm/components/ui/tabs.js +2 -4
  407. package/dist/esm/components/ui/tabs.js.map +1 -1
  408. package/dist/esm/components/ui/textarea.d.ts.map +1 -1
  409. package/dist/esm/components/ui/textarea.js +2 -3
  410. package/dist/esm/components/ui/textarea.js.map +1 -1
  411. package/dist/esm/components/ui/toast.d.ts +1 -2
  412. package/dist/esm/components/ui/toast.d.ts.map +1 -1
  413. package/dist/esm/components/ui/toast.js +3 -5
  414. package/dist/esm/components/ui/toast.js.map +1 -1
  415. package/dist/esm/components/ui/toaster.d.ts +1 -3
  416. package/dist/esm/components/ui/toaster.d.ts.map +1 -1
  417. package/dist/esm/components/ui/toaster.js +1 -3
  418. package/dist/esm/components/ui/toaster.js.map +1 -1
  419. package/dist/esm/components/ui/toggle-group.d.ts +2 -3
  420. package/dist/esm/components/ui/toggle-group.d.ts.map +1 -1
  421. package/dist/esm/components/ui/toggle-group.js +1 -3
  422. package/dist/esm/components/ui/toggle-group.js.map +1 -1
  423. package/dist/esm/components/ui/toggle.d.ts +2 -3
  424. package/dist/esm/components/ui/toggle.d.ts.map +1 -1
  425. package/dist/esm/components/ui/toggle.js +2 -4
  426. package/dist/esm/components/ui/toggle.js.map +1 -1
  427. package/dist/esm/components/ui/tooltip.js +3 -5
  428. package/dist/esm/components/ui/tooltip.js.map +1 -1
  429. package/dist/esm/components/ui/typography.d.ts +2 -3
  430. package/dist/esm/components/ui/typography.d.ts.map +1 -1
  431. package/dist/esm/components/ui/typography.js +2 -3
  432. package/dist/esm/components/ui/typography.js.map +1 -1
  433. package/dist/esm/components/ui/use-toast.d.ts +3 -3
  434. package/dist/esm/components/ui/use-toast.d.ts.map +1 -1
  435. package/dist/esm/components/ui/use-toast.js +1 -3
  436. package/dist/esm/components/ui/use-toast.js.map +1 -1
  437. package/dist/esm/index.d.ts +53 -53
  438. package/dist/esm/index.js +52 -104
  439. package/dist/esm/lib/utils.d.ts.map +1 -1
  440. package/dist/esm/lib/utils.js +1 -2
  441. package/dist/esm/lib/utils.js.map +1 -1
  442. package/dist/faceted-filter-D7lzC-jQ.d.ts +23 -0
  443. package/dist/faceted-filter-D7lzC-jQ.d.ts.map +1 -0
  444. package/dist/form-tbb6TTzR.d.ts +39 -0
  445. package/dist/form-tbb6TTzR.d.ts.map +1 -0
  446. package/dist/hover-card-Db1Z51JY.d.ts +12 -0
  447. package/dist/hover-card-Db1Z51JY.d.ts.map +1 -0
  448. package/dist/index-BVVgDSdq.d.ts +1 -0
  449. package/dist/index-CExKVq1L.d.ts +20 -0
  450. package/dist/index-CExKVq1L.d.ts.map +1 -0
  451. package/dist/index.d.ts +62 -62
  452. package/dist/index.js +371 -320
  453. package/dist/inline-code-AXm9EHRp.d.ts +9 -0
  454. package/dist/inline-code-AXm9EHRp.d.ts.map +1 -0
  455. package/dist/input-D57fCXWj.d.ts +24 -0
  456. package/dist/input-D57fCXWj.d.ts.map +1 -0
  457. package/dist/input-otp-DQyimdZZ.d.ts +20 -0
  458. package/dist/input-otp-DQyimdZZ.d.ts.map +1 -0
  459. package/dist/label-D1hxJj6E.d.ts +14 -0
  460. package/dist/label-D1hxJj6E.d.ts.map +1 -0
  461. package/dist/lib/utils.d.ts +2 -7
  462. package/dist/lib/utils.js +2 -4
  463. package/dist/lib/utils.js.map +1 -1
  464. package/dist/menubar-C4IR0XyE.d.ts +37 -0
  465. package/dist/menubar-C4IR0XyE.d.ts.map +1 -0
  466. package/dist/navigation-menu-B0mRDLJl.d.ts +28 -0
  467. package/dist/navigation-menu-B0mRDLJl.d.ts.map +1 -0
  468. package/dist/pagination-CM_S9U09.d.ts +12 -0
  469. package/dist/pagination-CM_S9U09.d.ts.map +1 -0
  470. package/dist/password-input-dDKI5XMl.d.ts +9 -0
  471. package/dist/password-input-dDKI5XMl.d.ts.map +1 -0
  472. package/dist/popover-f6eyU589.d.ts +13 -0
  473. package/dist/popover-f6eyU589.d.ts.map +1 -0
  474. package/dist/progress-CA-6BN6M.d.ts +10 -0
  475. package/dist/progress-CA-6BN6M.d.ts.map +1 -0
  476. package/dist/radio-group-DVGseXHe.d.ts +13 -0
  477. package/dist/radio-group-DVGseXHe.d.ts.map +1 -0
  478. package/dist/resizable-CnLiOnBh.d.ts +34 -0
  479. package/dist/resizable-CnLiOnBh.d.ts.map +1 -0
  480. package/dist/{chunk-BE-pF4vm.js → rolldown-runtime-D6vf50IK.js} +12 -18
  481. package/dist/scroll-area-4m-KlrLi.d.ts +13 -0
  482. package/dist/scroll-area-4m-KlrLi.d.ts.map +1 -0
  483. package/dist/select-CjuKJZCz.d.ts +33 -0
  484. package/dist/select-CjuKJZCz.d.ts.map +1 -0
  485. package/dist/separator-Cjk8CDfK.d.ts +10 -0
  486. package/dist/separator-Cjk8CDfK.d.ts.map +1 -0
  487. package/dist/sheet-zQxyw3Gk.d.ts +42 -0
  488. package/dist/sheet-zQxyw3Gk.d.ts.map +1 -0
  489. package/dist/simple-tooltip-DUT6gJoc.d.ts +12 -0
  490. package/dist/simple-tooltip-DUT6gJoc.d.ts.map +1 -0
  491. package/dist/skeleton-Cyj6UxcU.d.ts +11 -0
  492. package/dist/skeleton-Cyj6UxcU.d.ts.map +1 -0
  493. package/dist/slider-D8BSwczz.d.ts +10 -0
  494. package/dist/slider-D8BSwczz.d.ts.map +1 -0
  495. package/dist/spinner-BV3t_oJC.d.ts +11 -0
  496. package/dist/spinner-BV3t_oJC.d.ts.map +1 -0
  497. package/dist/switch-D58EsVj5.d.ts +14 -0
  498. package/dist/switch-D58EsVj5.d.ts.map +1 -0
  499. package/dist/table-CN5qY3kG.d.ts +30 -0
  500. package/dist/table-CN5qY3kG.d.ts.map +1 -0
  501. package/dist/tabs-DLqjVLtJ.d.ts +17 -0
  502. package/dist/tabs-DLqjVLtJ.d.ts.map +1 -0
  503. package/dist/textarea-BbfG-NR-.d.ts +10 -0
  504. package/dist/textarea-BbfG-NR-.d.ts.map +1 -0
  505. package/dist/toast-CYNoBddH.d.ts +31 -0
  506. package/dist/toast-CYNoBddH.d.ts.map +1 -0
  507. package/dist/toaster-D1hq_EiX.d.ts +5 -0
  508. package/dist/toaster-D1hq_EiX.d.ts.map +1 -0
  509. package/dist/toggle-group-DViDiVTV.d.ts +20 -0
  510. package/dist/toggle-group-DViDiVTV.d.ts.map +1 -0
  511. package/dist/toolbar-HaHcbLXl.d.ts +22 -0
  512. package/dist/toolbar-HaHcbLXl.d.ts.map +1 -0
  513. package/dist/toolbar-items-C7xWp9cs.d.ts +12 -0
  514. package/dist/toolbar-items-C7xWp9cs.d.ts.map +1 -0
  515. package/dist/tooltip-Earz1C6g.d.ts +16 -0
  516. package/dist/tooltip-Earz1C6g.d.ts.map +1 -0
  517. package/dist/typography-DCVZg-AC.d.ts +13 -0
  518. package/dist/typography-DCVZg-AC.d.ts.map +1 -0
  519. package/dist/use-toast-vZWO0yi1.d.ts +50 -0
  520. package/dist/use-toast-vZWO0yi1.d.ts.map +1 -0
  521. package/dist/utils-BVWSvBld.d.ts +7 -0
  522. package/dist/utils-BVWSvBld.d.ts.map +1 -0
  523. package/dist/utils-f0RNcD81.d.ts +6 -0
  524. package/dist/utils-f0RNcD81.d.ts.map +1 -0
  525. package/dist/view-options-drlEs3Xp.d.ts +18 -0
  526. package/dist/view-options-drlEs3Xp.d.ts.map +1 -0
  527. package/package.json +2 -5
  528. package/src/components/ui/command.tsx +1 -2
  529. package/src/components/ui/context-menu.tsx +2 -2
  530. package/src/components/ui/dialog.tsx +1 -2
  531. package/src/components/ui/dropdown-menu.tsx +2 -2
  532. package/src/components/ui/hover-card.tsx +1 -1
  533. package/src/components/ui/menubar.tsx +2 -2
  534. package/src/components/ui/navigation-menu.tsx +1 -1
  535. package/src/components/ui/popover.tsx +1 -1
  536. package/src/components/ui/select.tsx +1 -2
  537. package/src/components/ui/sheet.tsx +1 -1
  538. package/src/components/ui/tooltip.tsx +1 -1
  539. package/dist/components/action-dialog.d.ts.map +0 -1
  540. package/dist/components/brand-icons.d.ts.map +0 -1
  541. package/dist/components/browser-frame/index.d.ts.map +0 -1
  542. package/dist/components/copy-button.d.ts.map +0 -1
  543. package/dist/components/copy-field.d.ts.map +0 -1
  544. package/dist/components/data-table/cells.d.ts.map +0 -1
  545. package/dist/components/data-table/column-header.d.ts.map +0 -1
  546. package/dist/components/data-table/data-table.d.ts.map +0 -1
  547. package/dist/components/data-table/faceted-filter.d.ts.map +0 -1
  548. package/dist/components/data-table/pagination.d.ts.map +0 -1
  549. package/dist/components/data-table/toolbar-items.d.ts.map +0 -1
  550. package/dist/components/data-table/toolbar.d.ts.map +0 -1
  551. package/dist/components/data-table/utils.d.ts.map +0 -1
  552. package/dist/components/data-table/view-options.d.ts.map +0 -1
  553. package/dist/components/simple-tooltip.d.ts.map +0 -1
  554. package/dist/components/ui/accordion.d.ts.map +0 -1
  555. package/dist/components/ui/alert.d.ts.map +0 -1
  556. package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
  557. package/dist/components/ui/avatar.d.ts.map +0 -1
  558. package/dist/components/ui/badge.d.ts.map +0 -1
  559. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  560. package/dist/components/ui/button.d.ts.map +0 -1
  561. package/dist/components/ui/calendar.d.ts.map +0 -1
  562. package/dist/components/ui/card.d.ts.map +0 -1
  563. package/dist/components/ui/checkbox.d.ts.map +0 -1
  564. package/dist/components/ui/collapsible.d.ts.map +0 -1
  565. package/dist/components/ui/command.d.ts.map +0 -1
  566. package/dist/components/ui/context-menu.d.ts.map +0 -1
  567. package/dist/components/ui/dialog.d.ts.map +0 -1
  568. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  569. package/dist/components/ui/form.d.ts.map +0 -1
  570. package/dist/components/ui/hover-card.d.ts.map +0 -1
  571. package/dist/components/ui/inline-code.d.ts.map +0 -1
  572. package/dist/components/ui/input-otp.d.ts.map +0 -1
  573. package/dist/components/ui/input.d.ts.map +0 -1
  574. package/dist/components/ui/label.d.ts.map +0 -1
  575. package/dist/components/ui/menubar.d.ts.map +0 -1
  576. package/dist/components/ui/navigation-menu.d.ts.map +0 -1
  577. package/dist/components/ui/password-input.d.ts.map +0 -1
  578. package/dist/components/ui/popover.d.ts.map +0 -1
  579. package/dist/components/ui/progress.d.ts.map +0 -1
  580. package/dist/components/ui/radio-group.d.ts.map +0 -1
  581. package/dist/components/ui/resizable.d.ts.map +0 -1
  582. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  583. package/dist/components/ui/select.d.ts.map +0 -1
  584. package/dist/components/ui/separator.d.ts.map +0 -1
  585. package/dist/components/ui/sheet.d.ts.map +0 -1
  586. package/dist/components/ui/skeleton.d.ts.map +0 -1
  587. package/dist/components/ui/slider.d.ts.map +0 -1
  588. package/dist/components/ui/spinner.d.ts.map +0 -1
  589. package/dist/components/ui/switch.d.ts.map +0 -1
  590. package/dist/components/ui/table.d.ts.map +0 -1
  591. package/dist/components/ui/tabs.d.ts.map +0 -1
  592. package/dist/components/ui/textarea.d.ts.map +0 -1
  593. package/dist/components/ui/toast.d.ts.map +0 -1
  594. package/dist/components/ui/toaster.d.ts.map +0 -1
  595. package/dist/components/ui/toggle-group.d.ts.map +0 -1
  596. package/dist/components/ui/tooltip.d.ts.map +0 -1
  597. package/dist/components/ui/typography.d.ts.map +0 -1
  598. package/dist/components/ui/use-toast.d.ts.map +0 -1
  599. package/dist/lib/utils.d.ts.map +0 -1
@@ -1,5 +1,4 @@
1
1
  "use client";
2
-
3
2
  import React from "react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
@@ -10,7 +9,6 @@ import { useAsyncCallback } from "@hexclave/shared/dist/hooks/use-async-callback
10
9
  import { Spinner } from "./spinner.js";
11
10
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
12
11
  import { throwErr } from "@hexclave/shared/dist/utils/errors";
13
-
14
12
  //#region src/components/ui/dropdown-menu.tsx
15
13
  const DropdownMenuContext = React.createContext(void 0);
16
14
  const DropdownMenu = forwardRefIfNeeded(({ ...props }, ref) => {
@@ -48,14 +46,14 @@ const DropdownMenuSubTrigger = forwardRefIfNeeded(({ className, inset, children,
48
46
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
49
47
  const DropdownMenuSubContent = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubContent, {
50
48
  ref,
51
- className: cn("stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
49
+ className: cn("stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border border-black/[0.08] bg-white p-1 text-popover-foreground shadow-lg ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
52
50
  ...props
53
51
  }));
54
52
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
55
53
  const DropdownMenuContent = forwardRefIfNeeded(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.Content, {
56
54
  ref,
57
55
  sideOffset,
58
- className: cn("stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
56
+ className: cn("stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border border-black/[0.08] bg-white p-1 text-popover-foreground shadow-md ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08]", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
59
57
  ...props
60
58
  }) }));
61
59
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
@@ -132,7 +130,7 @@ const DropdownMenuShortcut = ({ className, ...props }) => {
132
130
  });
133
131
  };
134
132
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
135
-
136
133
  //#endregion
137
134
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
135
+
138
136
  //# sourceMappingURL=dropdown-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.js","names":[],"sources":["../../../../src/components/ui/dropdown-menu.tsx"],"sourcesContent":["\"use client\";\n\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from \"@radix-ui/react-icons\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { useAsyncCallback } from \"@hexclave/shared/dist/hooks/use-async-callback\";\nimport { throwErr } from \"@hexclave/shared/dist/utils/errors\";\nimport { runAsynchronouslyWithAlert } from \"@hexclave/shared/dist/utils/promises\";\nimport { cn } from \"../../lib/utils\";\nimport { Spinner } from \"./spinner\";\n\nconst DropdownMenuContext = React.createContext<{\n open: boolean,\n setOpen: (open: boolean) => void,\n} | undefined>(undefined);\n\nconst DropdownMenu = forwardRefIfNeeded<\n never,\n DropdownMenuPrimitive.DropdownMenuProps\n>(({ ...props }, ref) => {\n const [open, setOpen] = React.useState(!!props.open);\n\n return (\n <DropdownMenuContext.Provider value={{\n open,\n setOpen: (o) => {\n props.onOpenChange?.(o);\n setOpen(o);\n }\n }}>\n <DropdownMenuPrimitive.Root\n {...props}\n open={props.open ?? open}\n onOpenChange={o => {\n props.onOpenChange?.(o);\n setOpen(o);\n }}\n />\n </DropdownMenuContext.Provider>\n );\n});\nDropdownMenu.displayName = DropdownMenuPrimitive.Root.displayName;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean,\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n \"stack-scope flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto h-4 w-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n \"stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n Omit<React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>, \"onClick\"> & {\n inset?: boolean,\n onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void | Promise<void>,\n }\n>(({ className, inset, ...props }, ref) => {\n const { setOpen } = React.useContext(DropdownMenuContext) ?? throwErr(\"No DropdownMenuContext found\");\n const [handleClick, isLoading] = useAsyncCallback(async (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {\n await props.onClick?.(e);\n setOpen(false);\n }, [props.onClick]);\n\n return <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n \"stack-scope relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n disabled={isLoading || props.disabled}\n onClick={props.onClick ? (e) => {\n e.preventDefault();\n e.stopPropagation();\n runAsynchronouslyWithAlert(handleClick(e));\n } : undefined}\n >\n <div style={{ visibility: isLoading ? \"visible\" : \"hidden\", position: \"absolute\", inset: 0, display: \"flex\", justifyContent: \"center\", alignItems: \"center\" }}>\n <Spinner />\n </div>\n <div style={{ visibility: isLoading ? \"hidden\" : \"visible\" }}>\n {props.children}\n </div>\n </DropdownMenuPrimitive.Item>;\n});\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"h-4 w-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-sm font-semibold\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\"stack-scope ml-auto text-xs tracking-widest opacity-60\", className)}\n {...props}\n />\n );\n};\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nexport {\n DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator,\n DropdownMenuShortcut, DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger, DropdownMenuTrigger\n};\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAM,sBAAsB,MAAM,cAGnB,OAAU;AAEzB,MAAM,eAAe,oBAGlB,EAAE,GAAG,SAAS,QAAQ;CACvB,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,CAAC,CAAC,MAAM,KAAK;AAEpD,QACE,oBAAC,oBAAoB;EAAS,OAAO;GACnC;GACA,UAAU,MAAM;AACd,UAAM,eAAe,EAAE;AACvB,YAAQ,EAAE;;GAEb;YACC,oBAAC,sBAAsB;GACrB,GAAI;GACJ,MAAM,MAAM,QAAQ;GACpB,eAAc,MAAK;AACjB,UA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F;AACF,sBAAsB,cAAc,sBAAsB,UAAU;AAEpE,MAAM,wBAAwB,EAC5B,WACA,GAAG,YACwC;AAC3C,QACE,oBAAC;EACC,WAAW,GAAG,0DAA0D,UAAU;EAClF,GAAI;GACJ;;AAGN,qBAAqB,cAAc"}
1
+ {"version":3,"file":"dropdown-menu.js","names":[],"sources":["../../../../src/components/ui/dropdown-menu.tsx"],"sourcesContent":["\"use client\";\n\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from \"@radix-ui/react-icons\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { useAsyncCallback } from \"@hexclave/shared/dist/hooks/use-async-callback\";\nimport { throwErr } from \"@hexclave/shared/dist/utils/errors\";\nimport { runAsynchronouslyWithAlert } from \"@hexclave/shared/dist/utils/promises\";\nimport { cn } from \"../../lib/utils\";\nimport { Spinner } from \"./spinner\";\n\nconst DropdownMenuContext = React.createContext<{\n open: boolean,\n setOpen: (open: boolean) => void,\n} | undefined>(undefined);\n\nconst DropdownMenu = forwardRefIfNeeded<\n never,\n DropdownMenuPrimitive.DropdownMenuProps\n>(({ ...props }, ref) => {\n const [open, setOpen] = React.useState(!!props.open);\n\n return (\n <DropdownMenuContext.Provider value={{\n open,\n setOpen: (o) => {\n props.onOpenChange?.(o);\n setOpen(o);\n }\n }}>\n <DropdownMenuPrimitive.Root\n {...props}\n open={props.open ?? open}\n onOpenChange={o => {\n props.onOpenChange?.(o);\n setOpen(o);\n }}\n />\n </DropdownMenuContext.Provider>\n );\n});\nDropdownMenu.displayName = DropdownMenuPrimitive.Root.displayName;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean,\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n \"stack-scope flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto h-4 w-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n \"stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border border-black/[0.08] bg-white p-1 text-popover-foreground shadow-lg ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border border-black/[0.08] bg-white p-1 text-popover-foreground shadow-md ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08]\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n Omit<React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>, \"onClick\"> & {\n inset?: boolean,\n onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void | Promise<void>,\n }\n>(({ className, inset, ...props }, ref) => {\n const { setOpen } = React.useContext(DropdownMenuContext) ?? throwErr(\"No DropdownMenuContext found\");\n const [handleClick, isLoading] = useAsyncCallback(async (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {\n await props.onClick?.(e);\n setOpen(false);\n }, [props.onClick]);\n\n return <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n \"stack-scope relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n disabled={isLoading || props.disabled}\n onClick={props.onClick ? (e) => {\n e.preventDefault();\n e.stopPropagation();\n runAsynchronouslyWithAlert(handleClick(e));\n } : undefined}\n >\n <div style={{ visibility: isLoading ? \"visible\" : \"hidden\", position: \"absolute\", inset: 0, display: \"flex\", justifyContent: \"center\", alignItems: \"center\" }}>\n <Spinner />\n </div>\n <div style={{ visibility: isLoading ? \"hidden\" : \"visible\" }}>\n {props.children}\n </div>\n </DropdownMenuPrimitive.Item>;\n});\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"h-4 w-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-sm font-semibold\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = forwardRefIfNeeded<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\"stack-scope ml-auto text-xs tracking-widest opacity-60\", className)}\n {...props}\n />\n );\n};\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nexport {\n DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator,\n DropdownMenuShortcut, DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger, DropdownMenuTrigger\n};\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,sBAAsB,MAAM,cAGnB,KAAA,CAAS;AAExB,MAAM,e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AC,sBAAsB,WAAvB;CACO;CACL,WAAW,GACT,sNACA,SACF;CACA,GAAI;WANN,CAQE,oBAAC,QAAD;EAAM,WAAU;YACd,oBAAC,sBAAsB,eAAvB,EAAA,UACE,oBAAC,eAAD,EAAe,WAAU,uBAAwB,CAAA,EACd,CAAA;CACjC,CAAA,GACL,QAC8B;EAClC;AACD,sBAAsB,cAAc,sBAAsB,UAAU;AAEpE,MAAM,oBAAoB,oBAKvB,EAAE,WAAW,OAAO,GAAG,SAAS,QACjC,oBAAC,sBAAsB,OAAvB;CACO;CACL,WAAW,GACT,qCACA,SAAS,QACT,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,kBAAkB,cAAc,sBAAsB,MAAM;AAE5D,MAAM,wBAAwB,oBAG3B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,sBAAsB,WAAvB;CACO;CACL,WAAW,GAAG,4BAA4B,SAAS;CACnD,GAAI;AACL,CAAA,CACF;AACD,sBAAsB,cAAc,sBAAsB,UAAU;AAEpE,MAAM,wBAAwB,EAC5B,WACA,GAAG,YACwC;CAC3C,OACE,oBAAC,QAAD;EACE,WAAW,GAAG,0DAA0D,SAAS;EACjF,GAAI;CACL,CAAA;AAEL;AACA,qBAAqB,cAAc"}
@@ -1,21 +1,18 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
- import * as _radix_ui_react_slot0 from "@radix-ui/react-slot";
4
- import * as react_hook_form0 from "react-hook-form";
5
2
  import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
6
3
  import * as LabelPrimitive from "@radix-ui/react-label";
7
4
 
8
5
  //#region src/components/ui/form.d.ts
9
- declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
6
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
10
7
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
11
8
  ...props
12
- }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime0.JSX.Element;
9
+ }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
13
10
  declare const useFormField: () => {
14
11
  invalid: boolean;
15
12
  isDirty: boolean;
16
13
  isTouched: boolean;
17
14
  isValidating: boolean;
18
- error?: react_hook_form0.FieldError;
15
+ error?: import("react-hook-form").FieldError;
19
16
  id: string;
20
17
  name: string;
21
18
  formItemId: string;
@@ -28,7 +25,7 @@ declare const FormItem: React.FC<React.HTMLAttributes<HTMLDivElement> & {
28
25
  declare const FormLabel: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
29
26
  ref?: React.Ref<HTMLLabelElement> | undefined;
30
27
  }>;
31
- declare const FormControl: React.FC<Omit<_radix_ui_react_slot0.SlotProps & React.RefAttributes<HTMLElement>, "ref"> & {
28
+ declare const FormControl: React.FC<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & {
32
29
  ref?: React.Ref<HTMLElement> | undefined;
33
30
  }>;
34
31
  declare const FormDescription: React.FC<React.HTMLAttributes<HTMLParagraphElement> & {
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","names":[],"sources":["../../../../src/components/ui/form.tsx"],"mappings":";;;;;;;;cAmBM,IAAA,wBAAI,WAAA,uCAAA,YAAA,EAAA,KAAA,EAAA,gBAAA,CAAA,iBAAA,CAAA,YAAA,EAAA,QAAA,EAAA,kBAAA,MAAA,KAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAWJ,SAAA,wBACiB,WAAA,GAAc,WAAA,gBACrB,SAAA,CAAU,YAAA,IAAgB,SAAA,CAAU,YAAA;EAAA,GAClD;AAAA,GAEG,eAAA,CAAgB,YAAA,EAAc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A,KAAA,CAAA,aAAA,CAAA,WAAA;;;cAsBX,eAAA,EAAe,KAAA,CAAA,EAAA,CAAA,KAAA,CAAA,cAAA,CAAA,oBAAA;;;cAiBf,WAAA,EAAW,KAAA,CAAA,EAAA,CAAA,KAAA,CAAA,cAAA,CAAA,oBAAA"}
@@ -1,5 +1,4 @@
1
- 'use client';
2
-
1
+ "use client";
3
2
  import React from "react";
4
3
  import { jsx } from "react/jsx-runtime";
5
4
  import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
@@ -8,7 +7,6 @@ import { Slot } from "@radix-ui/react-slot";
8
7
  import { HexclaveAssertionError } from "@hexclave/shared/dist/utils/errors";
9
8
  import { Controller, FormProvider, useFormContext } from "react-hook-form";
10
9
  import { SpanLabel } from "./label.js";
11
-
12
10
  //#region src/components/ui/form.tsx
13
11
  const Form = FormProvider;
14
12
  const FormFieldContext = React.createContext(null);
@@ -91,7 +89,7 @@ const FormMessage = forwardRefIfNeeded(({ className, children, ...props }, ref)
91
89
  });
92
90
  });
93
91
  FormMessage.displayName = "FormMessage";
94
-
95
92
  //#endregion
96
93
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
94
+
97
95
  //# sourceMappingURL=form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","names":[],"sources":["../../../../src/components/ui/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from \"react-hook-form\";\n\nimport { HexclaveAssertionError } from \"@hexclave/shared/dist/utils/errors\";\nimport { cn } from \"../../lib/utils\";\nimport { SpanLabel } from \"./label\";\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName,\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue | null>(null);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n }: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n if (!fieldContext) {\n throw new HexclaveAssertionError(\"useFormField should be used within <FormField>\");\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n const { id } = itemContext;\n const formItemId = React.useId();\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${formItemId}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string,\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n);\n\nconst FormItem = forwardRefIfNeeded<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n );\n});\nFormItem.displayName = \"FormItem\";\n\nconst FormLabel = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error } = useFormField();\n\n return (\n <SpanLabel\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n {...props}\n />\n );\n});\nFormLabel.displayName = \"FormLabel\";\n\nconst FormControl = forwardRefIfNeeded<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n );\n});\nFormControl.displayName = \"FormControl\";\n\nconst FormDescription = forwardRefIfNeeded<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-[0.8rem] text-muted-foreground\", className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = \"FormDescription\";\n\nconst FormMessage = forwardRefIfNeeded<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-[0.8rem] font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nFormMessage.displayName = \"FormMessage\";\n\nexport {\n Form, FormControl,\n FormDescription, FormField, FormItem,\n FormLabel, FormMessage, useFormField\n};\n"],"mappings":";;;;;;;;;;;;AAmBA,MAAM,OAAO;AASb,MAAM,mBAAmB,MAAM,cAA4C,KAAK;AAEhF,MAAM,aAGJ,EACE,GAAG,YACuC;AAC5C,QACE,oBAAC,iBAAiB;EAAS,OAAO,EAAE,MAAM,MAAM,MAAM;YACpD,oBAAC,cAAW,GAAI,QAAS;GACC;;AAIhC,MAAM,qBAAqB;CACzB,MAAM,eAAe,MAAM,WAAW,iBAAiB;CACvD,MAAM,cAAc,MAAM,WAAW,gBAAgB;CACrD,MAAM,EAAE,eAAe,cAAc,gBAAgB;AAErD,KAAI,CAAC,aACH,OAAM,IAAI,uBAAuB,iDAAiD;CAGpF,MAAM,aAAa,c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OAAO,kBAAkB,cAAc;CAC/C,MAAM,OAAO,QAAQ,OAAO,MAAM,QAAQ,GAAG;AAE7C,KAAI,CAAC,KACH,QAAO;AAGT,QACE,oBAAC;EACM;EACL,IAAI;EACJ,WAAW,GAAG,8CAA8C,UAAU;EACtE,GAAI;YAEH;GACC;EAEN;AACF,YAAY,cAAc"}
1
+ {"version":3,"file":"form.js","names":[],"sources":["../../../../src/components/ui/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from \"react-hook-form\";\n\nimport { HexclaveAssertionError } from \"@hexclave/shared/dist/utils/errors\";\nimport { cn } from \"../../lib/utils\";\nimport { SpanLabel } from \"./label\";\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName,\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue | null>(null);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n }: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n if (!fieldContext) {\n throw new HexclaveAssertionError(\"useFormField should be used within <FormField>\");\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n const { id } = itemContext;\n const formItemId = React.useId();\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${formItemId}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string,\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n);\n\nconst FormItem = forwardRefIfNeeded<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n );\n});\nFormItem.displayName = \"FormItem\";\n\nconst FormLabel = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error } = useFormField();\n\n return (\n <SpanLabel\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n {...props}\n />\n );\n});\nFormLabel.displayName = \"FormLabel\";\n\nconst FormControl = forwardRefIfNeeded<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n );\n});\nFormControl.displayName = \"FormControl\";\n\nconst FormDescription = forwardRefIfNeeded<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-[0.8rem] text-muted-foreground\", className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = \"FormDescription\";\n\nconst FormMessage = forwardRefIfNeeded<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-[0.8rem] font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nFormMessage.displayName = \"FormMessage\";\n\nexport {\n Form, FormControl,\n FormDescription, FormField, FormItem,\n FormLabel, FormMessage, useFormField\n};\n"],"mappings":";;;;;;;;;;AAmBA,MAAM,OAAO;AASb,MAAM,mBAAmB,MAAM,cAA4C,IAAI;AAE/E,MAAM,aAGJ,EACE,GAAG,YACuC;CAC5C,OACE,oBAAC,iBAAiB,UAAlB;EAA2B,OAAO,EAAE,MAAM,MAAM,KAAK;YACnD,oBAAC,YAAD,EAAY,GAAI,MAAQ,CAAA;CACC,CAAA;AAE/B;AAEA,MAAM,qBAAqB;CACzB,MAAM,eAAe,MAAM,WAAW,gBAAgB;CACtD,MAAM,cAAc,MAAM,WAAW,eAAe;CACpD,MAAM,EAAE,eAAe,cAAc,eAAe;CAEpD,IAAI,CAAC,cACH,MAAM,IAAI,uBAAuB,gDAAgD;CAGnF,MAAM,aAAa,cAAc,aAAa,MAAM,SAAS;CAE7D,MAAM,EAAE,OAAO;CACf,MAAM,aAAa,MAAM,MAAM;CAE/B,OAAO;EACL;EACA,MAAM,aAAa;EACnB,YAAY,GAAG,WAAW;EAC1B,mBAAmB,GAAG,GAAG;EACzB,eAAe,GAAG,GAAG;EACrB,GAAG;CACL;AACF;AAMA,MAAM,kBAAkB,MAAM,cAC5B,CAAC,CACH;AAEA,MAAM,WAAW,oBAGd,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,MAAM,KAAK,MAAM,MAAM;CAEvB,OACE,oBAAC,gBAAgB,UAAjB;EAA0B,OAAO,EAAE,GAAG;YACpC,oBAAC,OAAD;GAAU;GAAK,WAAW,GAAG,aAAa,SAAS;GAAG,GAAI;EAAQ,CAAA;CAC1C,CAAA;AAE9B,CAAC;AACD,SAAS,cAAc;AAEvB,MAAM,YAAY,oBAGf,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,MAAM,EAAE,UAAU,aAAa;CAE/B,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GAAG,SAAS,oBAAoB,SAAS;EACpD,GAAI;CACL,CAAA;AAEL,CAAC;AACD,UAAU,cAAc;AAExB,MAAM,cAAc,oBAGjB,EAAE,GAAG,SAAS,QAAQ;CACvB,MAAM,EAAE,OAAO,YAAY,mBAAmB,kBAAkB,aAAa;CAE7E,OACE,oBAAC,MAAD;EACO;EACL,IAAI;EACJ,oBACE,CAAC,QACG,GAAG,sBACH,GAAG,kBAAkB,GAAG;EAE9B,gBAAc,CAAC,CAAC;EAChB,GAAI;CACL,CAAA;AAEL,CAAC;AACD,YAAY,cAAc;AAE1B,MAAM,kBAAkB,oBAGrB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,MAAM,EAAE,sBAAsB,aAAa;CAE3C,OACE,oBAAC,KAAD;EACO;EACL,IAAI;EACJ,WAAW,GAAG,uCAAuC,SAAS;EAC9D,GAAI;CACL,CAAA;AAEL,CAAC;AACD,gBAAgB,cAAc;AAE9B,MAAM,cAAc,oBAGjB,EAAE,WAAW,UAAU,GAAG,SAAS,QAAQ;CAC5C,MAAM,EAAE,OAAO,kBAAkB,aAAa;CAC9C,MAAM,OAAO,QAAQ,OAAO,MAAM,OAAO,IAAI;CAE7C,IAAI,CAAC,MACH,OAAO;CAGT,OACE,oBAAC,KAAD;EACO;EACL,IAAI;EACJ,WAAW,GAAG,8CAA8C,SAAS;EACrE,GAAI;YAEH;CACA,CAAA;AAEP,CAAC;AACD,YAAY,cAAc"}
@@ -1,11 +1,9 @@
1
1
  "use client";
2
-
3
- import React from "react";
2
+ import "react";
4
3
  import { jsx } from "react/jsx-runtime";
5
4
  import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
6
5
  import { cn } from "../../lib/utils.js";
7
6
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
8
-
9
7
  //#region src/components/ui/hover-card.tsx
10
8
  const HoverCard = HoverCardPrimitive.Root;
11
9
  const HoverCardTrigger = HoverCardPrimitive.Trigger;
@@ -13,11 +11,11 @@ const HoverCardContent = forwardRefIfNeeded(({ className, align = "center", side
13
11
  ref,
14
12
  align,
15
13
  sideOffset,
16
- className: cn("stack-scope z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
14
+ className: cn("stack-scope z-50 w-64 rounded-md border border-black/[0.08] bg-white p-4 text-popover-foreground shadow-md ring-1 ring-black/[0.06] outline-none dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
17
15
  ...props
18
16
  }));
19
17
  HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
20
-
21
18
  //#endregion
22
19
  export { HoverCard, HoverCardContent, HoverCardTrigger };
20
+
23
21
  //# sourceMappingURL=hover-card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hover-card.js","names":[],"sources":["../../../../src/components/ui/hover-card.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = forwardRefIfNeeded<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"stack-scope z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"],"mappings":";;;;;;;;;AAQA,MAAM,YAAY,mBAAmB;AAErC,MAAM,mBAAmB,mBAAmB;AAE5C,MAAM,mBAAmB,oBAGtB,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAAC,mBAAmB;CACb;CACE;CACK;CACZ,WAAW,GACT,0bACA,UACD;CACD,GAAI;EACJ,CACF;AACF,iBAAiB,cAAc,mBAAmB,QAAQ"}
1
+ {"version":3,"file":"hover-card.js","names":[],"sources":["../../../../src/components/ui/hover-card.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = forwardRefIfNeeded<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"stack-scope z-50 w-64 rounded-md border border-black/[0.08] bg-white p-4 text-popover-foreground shadow-md ring-1 ring-black/[0.06] outline-none dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"],"mappings":";;;;;;;AAQA,MAAM,YAAY,mBAAmB;AAErC,MAAM,mBAAmB,mBAAmB;AAE5C,MAAM,mBAAmB,oBAGtB,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAAC,mBAAmB,SAApB;CACO;CACE;CACK;CACZ,WAAW,GACT,qiBACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,mBAAmB,QAAQ"}
@@ -1,13 +1,11 @@
1
1
  "use client";
2
-
3
- import React from "react";
2
+ import "react";
4
3
  import { jsx } from "react/jsx-runtime";
5
4
  import { forwardRefIfNeeded, getNodeText } from "@hexclave/shared/dist/utils/react";
6
5
  import { cn } from "../../lib/utils.js";
7
6
  import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
8
7
  import { hasClickableParent } from "@hexclave/shared/dist/utils/dom";
9
8
  import { useToast } from "./use-toast.js";
10
-
11
9
  //#region src/components/ui/inline-code.tsx
12
10
  const InlineCode = forwardRefIfNeeded((props, ref) => {
13
11
  const { toast } = useToast();
@@ -39,7 +37,7 @@ const InlineCode = forwardRefIfNeeded((props, ref) => {
39
37
  });
40
38
  });
41
39
  InlineCode.displayName = "Code";
42
-
43
40
  //#endregion
44
41
  export { InlineCode };
42
+
45
43
  //# sourceMappingURL=inline-code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inline-code.js","names":[],"sources":["../../../../src/components/ui/inline-code.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"../../lib/utils\";\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { hasClickableParent } from \"@hexclave/shared/dist/utils/dom\";\nimport { getNodeText } from \"@hexclave/shared/dist/utils/react\";\nimport { runAsynchronously } from \"@hexclave/shared/dist/utils/promises\";\nimport { useToast } from \"./use-toast\";\n\nconst InlineCode = forwardRefIfNeeded<\n React.ElementRef<\"code\">,\n React.ComponentPropsWithoutRef<\"code\">\n>((props, ref) => {\n const { toast } = useToast();\n\n return <code\n ref={ref}\n {...props}\n className={cn(\"stack-scope bg-zinc-200 text-zinc-700 dark:bg-zinc-800 dark:text-zinc-300 rounded-sm px-1 cursor-pointer\", props.className)}\n onClick={(e: React.MouseEvent<HTMLElement>) => {\n props.onClick?.(e);\n if (!hasClickableParent(e.currentTarget)) {\n e.stopPropagation();\n e.preventDefault();\n runAsynchronously(async () => {\n try {\n await navigator.clipboard.writeText(getNodeText(props.children));\n toast({ description: 'Copied to clipboard!', variant: 'success' });\n } catch (e) {\n toast({ description: 'Failed to copy to clipboard', variant: 'destructive' });\n }\n });\n }\n }}\n />;\n});\nInlineCode.displayName = \"Code\";\n\nexport { InlineCode };\n"],"mappings":";;;;;;;;;;;AAUA,MAAM,aAAa,oBAGhB,OAAO,QAAQ;CAChB,MAAM,EAAE,UAAW,UAAU;AAE7B,QAAO,oBAAC;EACD;EACL,GAAI;EACJ,WAAW,GAAG,4GAA4G,MAAM,UAAU;EAC1I,UAAU,MAAqC;AAC7C,SAAM,UAAU,EAAE;AAClB,OAAI,CAAC,mBAAmB,EAAE,cAAc,EAAE;AACxC,MAAE,iBAAiB;AACnB,MAAE,gBAAgB;AAClB,sBAAkB,YAAY;AAC5B,SAAI;AACF,YAAM,UAAU,UAAU,UAAU,YAAY,MAAM,SAAS,CAAC;AAChE,YAAM;OAAE,aAAa;OAAwB,SAAS;OAAW,CAAC;cAC3D,GAAG;AACV,YAAM;OAAE,aAAa;OAA+B,SAAS;OAAe,CAAC;;MAE/E;;;GAGN;EACF;AACF,WAAW,cAAc"}
1
+ {"version":3,"file":"inline-code.js","names":[],"sources":["../../../../src/components/ui/inline-code.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"../../lib/utils\";\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { hasClickableParent } from \"@hexclave/shared/dist/utils/dom\";\nimport { getNodeText } from \"@hexclave/shared/dist/utils/react\";\nimport { runAsynchronously } from \"@hexclave/shared/dist/utils/promises\";\nimport { useToast } from \"./use-toast\";\n\nconst InlineCode = forwardRefIfNeeded<\n React.ElementRef<\"code\">,\n React.ComponentPropsWithoutRef<\"code\">\n>((props, ref) => {\n const { toast } = useToast();\n\n return <code\n ref={ref}\n {...props}\n className={cn(\"stack-scope bg-zinc-200 text-zinc-700 dark:bg-zinc-800 dark:text-zinc-300 rounded-sm px-1 cursor-pointer\", props.className)}\n onClick={(e: React.MouseEvent<HTMLElement>) => {\n props.onClick?.(e);\n if (!hasClickableParent(e.currentTarget)) {\n e.stopPropagation();\n e.preventDefault();\n runAsynchronously(async () => {\n try {\n await navigator.clipboard.writeText(getNodeText(props.children));\n toast({ description: 'Copied to clipboard!', variant: 'success' });\n } catch (e) {\n toast({ description: 'Failed to copy to clipboard', variant: 'destructive' });\n }\n });\n }\n }}\n />;\n});\nInlineCode.displayName = \"Code\";\n\nexport { InlineCode };\n"],"mappings":";;;;;;;;;AAUA,MAAM,aAAa,oBAGhB,OAAO,QAAQ;CAChB,MAAM,EAAE,UAAW,SAAS;CAE5B,OAAO,oBAAC,QAAD;EACA;EACL,GAAI;EACJ,WAAW,GAAG,4GAA4G,MAAM,SAAS;EACzI,UAAU,MAAqC;GAC7C,MAAM,UAAU,CAAC;GACjB,IAAI,CAAC,mBAAmB,EAAE,aAAa,GAAG;IACxC,EAAE,gBAAgB;IAClB,EAAE,eAAe;IACjB,kBAAkB,YAAY;KAC5B,IAAI;MACF,MAAM,UAAU,UAAU,UAAU,YAAY,MAAM,QAAQ,CAAC;MAC/D,MAAM;OAAE,aAAa;OAAwB,SAAS;MAAU,CAAC;KACnE,SAAS,GAAG;MACV,MAAM;OAAE,aAAa;OAA+B,SAAS;MAAc,CAAC;KAC9E;IACF,CAAC;GACH;EACF;CACD,CAAA;AACH,CAAC;AACD,WAAW,cAAc"}
@@ -1,12 +1,10 @@
1
1
  "use client";
2
-
3
2
  import React from "react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
6
5
  import { DashIcon } from "@radix-ui/react-icons";
7
6
  import { cn } from "../../lib/utils.js";
8
7
  import { OTPInput, OTPInputContext } from "input-otp";
9
-
10
8
  //#region src/components/ui/input-otp.tsx
11
9
  const InputOTP = forwardRefIfNeeded(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(OTPInput, {
12
10
  ref,
@@ -41,7 +39,7 @@ const InputOTPSeparator = forwardRefIfNeeded(({ ...props }, ref) => /* @__PURE__
41
39
  children: /* @__PURE__ */ jsx(DashIcon, {})
42
40
  }));
43
41
  InputOTPSeparator.displayName = "InputOTPSeparator";
44
-
45
42
  //#endregion
46
43
  export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
44
+
47
45
  //# sourceMappingURL=input-otp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-otp.js","names":[],"sources":["../../../../src/components/ui/input-otp.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { DashIcon } from \"@radix-ui/react-icons\";\nimport { OTPInput, OTPInputContext } from \"input-otp\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst InputOTP: React.FC<React.ComponentPropsWithoutRef<typeof OTPInput>> = forwardRefIfNeeded<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"stack-scope flex items-center gap-2 has-[:disabled]:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n));\nInputOTP.displayName = \"InputOTP\";\n\nconst InputOTPGroup = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center gap-1\", className)} {...props} />\n));\nInputOTPGroup.displayName = \"InputOTPGroup\";\n\nconst InputOTPSlot = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number, size?: 'default' | 'lg' }\n>(({ index, className, size = 'default', ...props }, ref) => {\n const inputOTPContext = React.useContext(OTPInputContext);\n const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];\n\n return (\n <div\n ref={ref}\n className={cn(\n \"relative flex h-9 w-9 items-center justify-center border border-input text-sm rounded-md\",\n size === 'lg' ? 'h-10 w-10 text-lg font-medium' : '',\n isActive && \"z-10 ring-1 ring-ring\",\n className\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n </div>\n )}\n </div>\n );\n});\nInputOTPSlot.displayName = \"InputOTPSlot\";\n\nconst InputOTPSeparator = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <DashIcon />\n </div>\n));\nInputOTPSeparator.displayName = \"InputOTPSeparator\";\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };\n"],"mappings":";;;;;;;;;;AASA,MAAM,WAAsE,oBAGzE,EAAE,WAAW,oBAAoB,GAAG,SAAS,QAC9C,oBAAC;CACM;CACL,oBAAoB,GAClB,kEACA,mBACD;CACD,WAAW,GAAG,+BAA+B,UAAU;CACvD,GAAI;EACJ,CACF;AACF,SAAS,cAAc;AAEvB,MAAM,gBAAgB,oBAGnB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC;CAAS;CAAK,WAAW,GAAG,2BAA2B,UAAU;CAAE,GAAI;EAAS,CACjF;AACF,cAAc,cAAc;AAE5B,MAAM,eAAe,oBAGlB,EAAE,OAAO,WAAW,OAAO,WAAW,GAAG,SAAS,QAAQ;CAE3D,MAAM,EAAE,MAAM,cAAc,aADJ,MAAM,WAAW,gBAAgB,CACA,MAAM;AAE/D,QACE,qBAAC;EACM;EACL,WAAW,GACT,4FACA,SAAS,OAAO,kCAAkC,IAClD,YAAY,yBACZ,UACD;EACD,GAAI;aAEH,MACA,gBACC,oBAAC;GAAI,WAAU;aACb,oBAAC,SAAI,WAAU,6DAA6D;IACxE;GAEJ;EAER;AACF,aAAa,cAAc;AAE3B,MAAM,oBAAoB,oBAGvB,EAAE,GAAG,SAAS,QACf,oBAAC;CAAS;CAAK,MAAK;CAAY,GAAI;WAClC,oBAAC,aAAW;EACR,CACN;AACF,kBAAkB,cAAc"}
1
+ {"version":3,"file":"input-otp.js","names":[],"sources":["../../../../src/components/ui/input-otp.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { DashIcon } from \"@radix-ui/react-icons\";\nimport { OTPInput, OTPInputContext } from \"input-otp\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst InputOTP: React.FC<React.ComponentPropsWithoutRef<typeof OTPInput>> = forwardRefIfNeeded<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"stack-scope flex items-center gap-2 has-[:disabled]:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n));\nInputOTP.displayName = \"InputOTP\";\n\nconst InputOTPGroup = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center gap-1\", className)} {...props} />\n));\nInputOTPGroup.displayName = \"InputOTPGroup\";\n\nconst InputOTPSlot = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number, size?: 'default' | 'lg' }\n>(({ index, className, size = 'default', ...props }, ref) => {\n const inputOTPContext = React.useContext(OTPInputContext);\n const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];\n\n return (\n <div\n ref={ref}\n className={cn(\n \"relative flex h-9 w-9 items-center justify-center border border-input text-sm rounded-md\",\n size === 'lg' ? 'h-10 w-10 text-lg font-medium' : '',\n isActive && \"z-10 ring-1 ring-ring\",\n className\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n </div>\n )}\n </div>\n );\n});\nInputOTPSlot.displayName = \"InputOTPSlot\";\n\nconst InputOTPSeparator = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <DashIcon />\n </div>\n));\nInputOTPSeparator.displayName = \"InputOTPSeparator\";\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };\n"],"mappings":";;;;;;;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A,CAAA,EAAA;;;eA1CV,KAAA,CAAM,SAAA;AAAA"}
1
+ {"version":3,"file":"input.d.ts","names":[],"sources":["../../../../src/components/ui/input.tsx"],"mappings":";;;KAKY,UAAA;EACV,UAAA,GAAa,KAAA,CAAM,SAAA;AAAA,IACjB,KAAA,CAAM,mBAAA,CAAoB,gBAAA;AAAA,cAEjB,KAAA,EAAK,KAAA,CAAA,EAAA;eAHH,KAAA,CAAM,SAAA;AAAA;;;KAsCT,iBAAA;EACV,KAAA;AAAA,IACE,UAAU;AAAA,cAED,YAAA,EAAY,KAAA,CAAA,EAAA;;;eA1CV,KAAA,CAAM,SAAA;AAAA"}
@@ -2,7 +2,6 @@ import React from "react";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
4
4
  import { cn } from "../../lib/utils.js";
5
-
6
5
  //#region src/components/ui/input.tsx
7
6
  const Input = forwardRefIfNeeded(({ className, type, prefixItem, ...props }, ref) => {
8
7
  const baseClasses = "stack-scope flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50";
@@ -47,7 +46,7 @@ const DelayedInput = forwardRefIfNeeded(({ delay = 500, defaultValue, ...props }
47
46
  });
48
47
  });
49
48
  DelayedInput.displayName = "DelayedInput";
50
-
51
49
  //#endregion
52
50
  export { DelayedInput, Input };
51
+
53
52
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","names":[],"sources":["../../../../src/components/ui/input.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nexport type InputProps = {\n prefixItem?: React.ReactNode,\n} & React.InputHTMLAttributes<HTMLInputElement>\n\nexport const Input = forwardRefIfNeeded<HTMLInputElement, InputProps>(\n ({ className, type, prefixItem, ...props }, ref) => {\n const baseClasses = \"stack-scope flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\";\n\n if (prefixItem) {\n return (\n <div className=\"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1\">\n <div className={'flex self-stretch justify-center items-center text-muted-foreground pl-3 select-none bg-muted/70 pr-3 border-r border-input rounded-l-md'}>\n {prefixItem}\n </div>\n <input\n type={type}\n className={cn(baseClasses, 'rounded-l-none', className)}\n ref={ref}\n {...props}\n />\n </div>\n );\n } else {\n return (\n <div className=\"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1\">\n <input\n type={type}\n className={cn(baseClasses, className)}\n ref={ref}\n {...props}\n />\n </div>\n );\n }\n }\n);\nInput.displayName = \"Input\";\n\n\nexport type DelayedInputProps = {\n delay?: number,\n} & InputProps\n\nexport const DelayedInput = forwardRefIfNeeded<HTMLInputElement, DelayedInputProps>(\n ({ delay = 500, defaultValue, ...props }, ref) => {\n const [value, setValue] = React.useState(defaultValue ?? \"\");\n\n const timeout = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setValue(e.target.value);\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n timeout.current = setTimeout(() => {\n props.onChange?.(e);\n }, delay);\n };\n\n return <Input ref={ref} {...props} value={value} onChange={onChange} />;\n }\n);\nDelayedInput.displayName = \"DelayedInput\";\n"],"mappings":";;;;;;AASA,MAAa,QAAQ,oBAClB,EAAE,WAAW,MAAM,YAAY,GAAG,SAAS,QAAQ;CAClD,MAAM,cAAe;AAErB,KAAI,WACF,QACE,qBAAC;EAAI,WAAU;aACb,oBAAC;GAAI,WAAW;aACb;IACG,EACN,oBAAC;GACO;GACN,WAAW,GAAG,aAAa,kBAAkB,UAAU;GAClD;GACL,GAAI;IACJ;GACE;KAGR,QACE,oBAAC;EAAI,WAAU;YACb,oBAAC;GACO;GACN,WAAW,GAAG,aAAa,UAAU;GAChC;GACL,GAAI;IACJ;GACE;EAIb;AACD,MAAM,cAAc;AAOpB,MAAa,eAAe,oBACzB,EAAE,QAAQ,KAAK,cAAc,GAAG,SAAS,QAAQ;CAChD,MAAM,CAAC,OAAO,YAAY,MAAM,SAAS,gBAAgB,GAAG;CAE5D,MAAM,UAAU,MAAM,OAA6C,KAAK;CAExE,MAAM,YAAY,MAA2C;AAC3D,WAAS,EAAE,OAAO,MAAM;AACxB,MAAI,QAAQ,QACV,cAAa,QAAQ,QAAQ;AAE/B,UAAQ,UAAU,iBAAiB;AACjC,SAAM,WAAW,EAAE;KAClB,MAAM;;AAGX,QAAO,oBAAC;EAAW;EAAK,GAAI;EAAc;EAAiB;GAAY;EAE1E;AACD,aAAa,cAAc"}
1
+ {"version":3,"file":"input.js","names":[],"sources":["../../../../src/components/ui/input.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nexport type InputProps = {\n prefixItem?: React.ReactNode,\n} & React.InputHTMLAttributes<HTMLInputElement>\n\nexport const Input = forwardRefIfNeeded<HTMLInputElement, InputProps>(\n ({ className, type, prefixItem, ...props }, ref) => {\n const baseClasses = \"stack-scope flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\";\n\n if (prefixItem) {\n return (\n <div className=\"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1\">\n <div className={'flex self-stretch justify-center items-center text-muted-foreground pl-3 select-none bg-muted/70 pr-3 border-r border-input rounded-l-md'}>\n {prefixItem}\n </div>\n <input\n type={type}\n className={cn(baseClasses, 'rounded-l-none', className)}\n ref={ref}\n {...props}\n />\n </div>\n );\n } else {\n return (\n <div className=\"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1\">\n <input\n type={type}\n className={cn(baseClasses, className)}\n ref={ref}\n {...props}\n />\n </div>\n );\n }\n }\n);\nInput.displayName = \"Input\";\n\n\nexport type DelayedInputProps = {\n delay?: number,\n} & InputProps\n\nexport const DelayedInput = forwardRefIfNeeded<HTMLInputElement, DelayedInputProps>(\n ({ delay = 500, defaultValue, ...props }, ref) => {\n const [value, setValue] = React.useState(defaultValue ?? \"\");\n\n const timeout = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setValue(e.target.value);\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n timeout.current = setTimeout(() => {\n props.onChange?.(e);\n }, delay);\n };\n\n return <Input ref={ref} {...props} value={value} onChange={onChange} />;\n }\n);\nDelayedInput.displayName = \"DelayedInput\";\n"],"mappings":";;;;;AASA,MAAa,QAAQ,oBAClB,EAAE,WAAW,MAAM,YAAY,GAAG,SAAS,QAAQ;CAClD,MAAM,cAAe;CAErB,IAAI,YACF,OACE,qBAAC,OAAD;EAAK,WAAU;YAAf,CACE,oBAAC,OAAD;GAAK,WAAW;aACb;EACE,CAAA,GACL,oBAAC,SAAD;GACQ;GACN,WAAW,GAAG,aAAa,kBAAkB,SAAS;GACjD;GACL,GAAI;EACL,CAAA,CACE;;MAGP,OACE,oBAAC,OAAD;EAAK,WAAU;YACb,oBAAC,SAAD;GACQ;GACN,WAAW,GAAG,aAAa,SAAS;GAC/B;GACL,GAAI;EACL,CAAA;CACE,CAAA;AAGX,CACF;AACA,MAAM,cAAc;AAOpB,MAAa,eAAe,oBACzB,EAAE,QAAQ,KAAK,cAAc,GAAG,SAAS,QAAQ;CAChD,MAAM,CAAC,OAAO,YAAY,MAAM,SAAS,gBAAgB,EAAE;CAE3D,MAAM,UAAU,MAAM,OAA6C,IAAI;CAEvE,MAAM,YAAY,MAA2C;EAC3D,SAAS,EAAE,OAAO,KAAK;EACvB,IAAI,QAAQ,SACV,aAAa,QAAQ,OAAO;EAE9B,QAAQ,UAAU,iBAAiB;GACjC,MAAM,WAAW,CAAC;EACpB,GAAG,KAAK;CACV;CAEA,OAAO,oBAAC,OAAD;EAAY;EAAK,GAAI;EAAc;EAAiB;CAAW,CAAA;AACxE,CACF;AACA,aAAa,cAAc"}
@@ -1,13 +1,12 @@
1
1
  import React from "react";
2
2
  import { VariantProps } from "class-variance-authority";
3
3
  import * as LabelPrimitive from "@radix-ui/react-label";
4
- import * as class_variance_authority_types0 from "class-variance-authority/types";
5
4
 
6
5
  //#region src/components/ui/label.d.ts
7
- declare const Label: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types0.ClassProp | undefined) => string> & {
6
+ declare const Label: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
8
7
  ref?: React.Ref<HTMLLabelElement> | undefined;
9
8
  }>;
10
- declare const SpanLabel: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types0.ClassProp | undefined) => string> & {
9
+ declare const SpanLabel: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
11
10
  ref?: React.Ref<HTMLLabelElement> | undefined;
12
11
  }>;
13
12
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/ui/label.tsx"],"mappings":";;;;;;cAaM,KAAA,EAAK,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,cAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA,YAAA,YAAA,EAAA,KAAA,GAAA,+BAAA,CAAA,SAAA;;;cAaL,SAAA,EAAS,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,cAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA,YAAA,YAAA,EAAA,KAAA,GAAA,+BAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/ui/label.tsx"],"mappings":";;;;;cAaM,KAAA,EAAK,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,cAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA,YAAA,YAAA,EAAA,KAAA,4CAAA,SAAA;;;cAaL,SAAA,EAAS,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,cAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA,YAAA,YAAA,EAAA,KAAA,4CAAA,SAAA"}
@@ -1,12 +1,10 @@
1
1
  "use client";
2
-
3
- import React from "react";
2
+ import "react";
4
3
  import { jsx } from "react/jsx-runtime";
5
4
  import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
6
5
  import { cn } from "../../lib/utils.js";
7
6
  import { cva } from "class-variance-authority";
8
7
  import * as LabelPrimitive from "@radix-ui/react-label";
9
-
10
8
  //#region src/components/ui/label.tsx
11
9
  const labelVariants = cva("stack-scope text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-600 dark:text-gray-400");
12
10
  const Label = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__PURE__ */ jsx("label", {
@@ -21,7 +19,7 @@ const SpanLabel = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__PUR
21
19
  ...props
22
20
  }));
23
21
  SpanLabel.displayName = LabelPrimitive.Root.displayName;
24
-
25
22
  //#endregion
26
23
  export { Label, SpanLabel };
24
+
27
25
  //# sourceMappingURL=label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/ui/label.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst labelVariants = cva(\n \"stack-scope text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-600 dark:text-gray-400\",\n);\n\nconst Label = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <label\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nconst SpanLabel = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nSpanLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label, SpanLabel };\n"],"mappings":";;;;;;;;;;AASA,MAAM,gBAAgB,IACpB,0IACD;AAED,MAAM,QAAQ,oBAIX,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC;CACM;CACL,WAAW,GAAG,eAAe,EAAE,UAAU;CACzC,GAAI;EACJ,CACF;AACF,MAAM,cAAc,eAAe,KAAK;AAExC,MAAM,YAAY,oBAIf,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC;CACM;CACL,WAAW,GAAG,eAAe,EAAE,UAAU;CACzC,GAAI;EACJ,CACF;AACF,UAAU,cAAc,eAAe,KAAK"}
1
+ {"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/ui/label.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst labelVariants = cva(\n \"stack-scope text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-600 dark:text-gray-400\",\n);\n\nconst Label = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <label\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nconst SpanLabel = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nSpanLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label, SpanLabel };\n"],"mappings":";;;;;;;;AASA,MAAM,gBAAgB,IACpB,yIACF;AAEA,MAAM,QAAQ,oBAIX,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,SAAD;CACO;CACL,WAAW,GAAG,cAAc,GAAG,SAAS;CACxC,GAAI;AACL,CAAA,CACF;AACD,MAAM,cAAc,eAAe,KAAK;AAExC,MAAM,YAAY,oBAIf,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,QAAD;CACO;CACL,WAAW,GAAG,cAAc,GAAG,SAAS;CACxC,GAAI;AACL,CAAA,CACF;AACD,UAAU,cAAc,eAAe,KAAK"}
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
4
3
 
5
4
  //#region src/components/ui/menubar.d.ts
@@ -30,7 +29,7 @@ declare const MenubarShortcut: {
30
29
  ({
31
30
  className,
32
31
  ...props
33
- }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime0.JSX.Element;
32
+ }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
34
33
  displayname: string;
35
34
  };
36
35
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"menubar.d.ts","names":[],"sources":["../../../../src/components/ui/menubar.tsx"],"mappings":";;;;;cAaM,WAAA;AAAA,cAEA,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,iBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAEZ,aAAA,EAAa,KAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,kBAAA;AAAA,cAEb,UAAA,EAAU,KAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,eAAA;AAAA,cAEV,iBAAA,EAAiB,KAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,sBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAEjB,OAAA,EAAO,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,YAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAeP,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,mBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA,YAAA,KAAA,CAAA,aAAA,CAAA,iBAAA;AAAA,cAed,iBAAA,EAAiB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,sBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAqBjB,iBAAA,EAAiB,KAAA,CAAA,yBAAA,CAAA,IAA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AAA,cAAA;AAAA,cAuBnB,gBAAA,EAAgB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,qBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAsBhB,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,iBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAkBZ,gBAAA,EAAgB,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,qBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAYhB,eAAA;EAAA;;;KAGH,KAAA,CAAM,cAAA,CAAe,eAAA,gCAAgB,GAAA,CAAA,OAAA"}
@@ -1,12 +1,10 @@
1
1
  "use client";
2
-
3
2
  import React from "react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
6
5
  import { CheckIcon, ChevronRightIcon, DotFilledIcon } from "@radix-ui/react-icons";
7
6
  import { cn } from "../../lib/utils.js";
8
7
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
9
-
10
8
  //#region src/components/ui/menubar.tsx
11
9
  const MenubarMenu = MenubarPrimitive.Menu;
12
10
  const MenubarGroup = MenubarPrimitive.Group;
@@ -34,7 +32,7 @@ const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...pro
34
32
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
35
33
  const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(MenubarPrimitive.SubContent, {
36
34
  ref,
37
- className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
35
+ className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border border-black/[0.08] bg-white p-1 text-popover-foreground shadow-lg ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
38
36
  ...props
39
37
  }));
40
38
  MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
@@ -43,7 +41,7 @@ const MenubarContent = React.forwardRef(({ className, align = "start", alignOffs
43
41
  align,
44
42
  alignOffset,
45
43
  sideOffset,
46
- className: cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
44
+ className: cn("z-50 min-w-[12rem] overflow-hidden rounded-md border border-black/[0.08] bg-white p-1 text-popover-foreground shadow-md ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08] data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
47
45
  ...props
48
46
  }) }));
49
47
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
@@ -93,7 +91,7 @@ const MenubarShortcut = ({ className, ...props }) => {
93
91
  });
94
92
  };
95
93
  MenubarShortcut.displayname = "MenubarShortcut";
96
-
97
94
  //#endregion
98
95
  export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
96
+
99
97
  //# sourceMappingURL=menubar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"menubar.js","names":[],"sources":["../../../../src/components/ui/menubar.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport {\n CheckIcon,\n ChevronRightIcon,\n DotFilledIcon,\n} from \"@radix-ui/react-icons\";\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst MenubarMenu = MenubarPrimitive.Menu as any;\n\nconst MenubarGroup = MenubarPrimitive.Group;\n\nconst MenubarPortal = MenubarPrimitive.Portal;\n\nconst MenubarSub = MenubarPrimitive.Sub;\n\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn(\n \"stack-scope flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm\",\n className\n )}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n className\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean,\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(\n \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(\n (\n { className, align = \"start\", alignOffset = -4, sideOffset = 8, ...props },\n ref\n ) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n )\n);\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-sm font-semibold\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = forwardRefIfNeeded<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className\n )}\n {...props}\n />\n );\n};\nMenubarShortcut.displayname = \"MenubarShortcut\";\n\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarPortal,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarGroup,\n MenubarSub,\n MenubarShortcut,\n};\n"],"mappings":";;;;;;;;;;AAaA,MAAM,cAAc,iBAAiB;AAErC,MAAM,eAAe,iBAAiB;AAEtC,MAAM,gBAAgB,iBAAiB;AAEvC,MAAM,aAAa,iBAAiB;AAEpC,MAAM,oBAAoB,iBAAiB;AAE3C,MAAM,UAAU,MAAM,YAGnB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB;CACX;CACL,WAAW,GACT,6FACA,UACD;CACD,GAAI;EACJ,CACF;AACF,QAAQ,cAAc,iBAAiB,KAAK;AAE5C,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB;CACX;CACL,WAAW,GACT,wNACA,UACD;CACD,GAAI;EACJ,CACF;AACF,eAAe,cAAc,iBAAiB,QAAQ;AAEtD,MAAM,oBAAoB,MAAM,YAK7B,EAAE,WAAW,OAAO,UAAU,GAAG,SAAS,QAC3C,qBAAC,iBAAiB;CACX;CACL,WAAW,GACT,8MACA,SAAS,QACT,UACD;CACD,GAAI;YAEH,UACD,oBAAC,oBAAiB,WAAU,oBAAoB;EACpB,CAC9B;AACF,kBAAkB,cAAc,iBAAiB,WAAW;AAE5D,MAAM,oBAAoB,MAAM,YAG7B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB;CACX;CACL,WAAW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BAAiB,MAAM;AAElD,MAAM,mBAAmB,oBAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB;CACX;CACL,WAAW,GAAG,4BAA4B,UAAU;CACpD,GAAI;EACJ,CACF;AACF,iBAAiB,cAAc,iBAAiB,UAAU;AAE1D,MAAM,mBAAmB,EACvB,WACA,GAAG,YACwC;AAC3C,QACE,oBAAC;EACC,WAAW,GACT,yDACA,UACD;EACD,GAAI;GACJ;;AAGN,gBAAgB,cAAc"}
1
+ {"version":3,"file":"menubar.js","names":[],"sources":["../../../../src/components/ui/menubar.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport {\n CheckIcon,\n ChevronRightIcon,\n DotFilledIcon,\n} from \"@radix-ui/react-icons\";\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst MenubarMenu = MenubarPrimitive.Menu as any;\n\nconst MenubarGroup = MenubarPrimitive.Group;\n\nconst MenubarPortal = MenubarPrimitive.Portal;\n\nconst MenubarSub = MenubarPrimitive.Sub;\n\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn(\n \"stack-scope flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm\",\n className\n )}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n className\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean,\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(\n \"z-50 min-w-[8rem] overflow-hidden rounded-md border border-black/[0.08] bg-white p-1 text-popover-foreground shadow-lg ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(\n (\n { className, align = \"start\", alignOffset = -4, sideOffset = 8, ...props },\n ref\n ) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 min-w-[12rem] overflow-hidden rounded-md border border-black/[0.08] bg-white p-1 text-popover-foreground shadow-md ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-popover dark:ring-white/[0.08] data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n )\n);\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-sm font-semibold\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = forwardRefIfNeeded<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className\n )}\n {...props}\n />\n );\n};\nMenubarShortcut.displayname = \"MenubarShortcut\";\n\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarPortal,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarGroup,\n MenubarSub,\n MenubarShortcut,\n};\n"],"mappings":";;;;;;;;AAaA,MAAM,cAAc,iBAAiB;AAErC,MAAM,eAAe,iBAAiB;AAEtC,MAAM,gBAAgB,iBAAiB;AAEvC,MAAM,aAAa,iBAAiB;AAEpC,MAAM,oBAAoB,iBAAiB;AAE3C,MAAM,UAAU,MAAM,YAGnB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,MAAlB;CACO;CACL,WAAW,GACT,6FACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,QAAQ,cAAc,iBAAiB,KAAK;AAE5C,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,SAAlB;CACO;CACL,WAAW,GACT,wNACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc,iBAAiB,QAAQ;AAEtD,MAAM,oBAAoB,MAAM,YAK7B,EAAE,WAAW,OAAO,UAAU,GAAG,SAAS,QAC3C,qBAAC,iBAAiB,YAAlB;CACO;CACL,WAAW,GACT,8MACA,SAAS,QACT,SACF;CACA,GAAI;WAPN,CASG,UACD,oBAAC,kBAAD,EAAkB,WAAU,kBAAmB,CAAA,CACpB;EAC9B;A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oBAAC,eAAD,EAAe,WAAU,uBAAwB,CAAA,EACnB,CAAA;CAC5B,CAAA,GACL,QACyB;EAC7B;AACD,iBAAiB,cAAc,iBAAiB,UAAU;AAE1D,MAAM,eAAe,MAAM,YAKxB,EAAE,WAAW,OAAO,GAAG,SAAS,QACjC,oBAAC,iBAAiB,OAAlB;CACO;CACL,WAAW,GACT,qCACA,SAAS,QACT,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,aAAa,cAAc,iBAAiB,MAAM;AAElD,MAAM,mBAAmB,oBAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,WAAlB;CACO;CACL,WAAW,GAAG,4BAA4B,SAAS;CACnD,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,iBAAiB,UAAU;AAE1D,MAAM,mBAAmB,EACvB,WACA,GAAG,YACwC;CAC3C,OACE,oBAAC,QAAD;EACE,WAAW,GACT,yDACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;AACA,gBAAgB,cAAc"}
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
3
- import * as class_variance_authority_types0 from "class-variance-authority/types";
4
3
 
5
4
  //#region src/components/ui/navigation-menu.d.ts
6
5
  declare const NavigationMenu: React.FC<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & {
@@ -10,7 +9,7 @@ declare const NavigationMenuList: React.FC<Omit<NavigationMenuPrimitive.Navigati
10
9
  ref?: React.Ref<HTMLUListElement> | undefined;
11
10
  }>;
12
11
  declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
13
- declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types0.ClassProp | undefined) => string;
12
+ declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
14
13
  declare const NavigationMenuTrigger: React.FC<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
15
14
  ref?: React.Ref<HTMLButtonElement> | undefined;
16
15
  }>;