@gv-tech/design-system 2.5.3 → 2.9.0

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 (753) hide show
  1. package/README.md +11 -8
  2. package/dist/accordion.cjs.js +1 -1
  3. package/dist/accordion.cjs.js.map +1 -1
  4. package/dist/accordion.d.ts +34 -0
  5. package/dist/accordion.es.js +6 -6
  6. package/dist/accordion.es.js.map +1 -1
  7. package/dist/alert-dialog.cjs.js +1 -1
  8. package/dist/alert-dialog.cjs.js.map +1 -1
  9. package/dist/alert-dialog.d.ts +74 -0
  10. package/dist/alert-dialog.es.js +5 -5
  11. package/dist/alert-dialog.es.js.map +1 -1
  12. package/dist/alert.cjs.js +1 -1
  13. package/dist/alert.cjs.js.map +1 -1
  14. package/dist/alert.d.ts +29 -0
  15. package/dist/alert.es.js +3 -3
  16. package/dist/alert.es.js.map +1 -1
  17. package/dist/aspect-ratio.cjs.js +1 -1
  18. package/dist/aspect-ratio.d.ts +14 -0
  19. package/dist/aspect-ratio.es.js +1 -1
  20. package/dist/avatar.cjs.js +1 -1
  21. package/dist/avatar.cjs.js.map +1 -1
  22. package/dist/avatar.d.ts +26 -0
  23. package/dist/avatar.es.js +3 -3
  24. package/dist/avatar.es.js.map +1 -1
  25. package/dist/badge.cjs.js +1 -1
  26. package/dist/badge.d.ts +21 -0
  27. package/dist/badge.es.js +2 -2
  28. package/dist/breadcrumb.cjs.js +1 -1
  29. package/dist/breadcrumb.cjs.js.map +1 -1
  30. package/dist/breadcrumb.d.ts +62 -0
  31. package/dist/breadcrumb.es.js +6 -6
  32. package/dist/breadcrumb.es.js.map +1 -1
  33. package/dist/button.cjs.js +1 -1
  34. package/dist/button.d.ts +22 -0
  35. package/dist/button.es.js +2 -2
  36. package/dist/calendar.cjs.js +1 -1
  37. package/dist/calendar.cjs.js.map +1 -1
  38. package/dist/calendar.d.ts +36 -0
  39. package/dist/calendar.es.js +3 -3
  40. package/dist/calendar.es.js.map +1 -1
  41. package/dist/card.cjs.js +1 -1
  42. package/dist/card.cjs.js.map +1 -1
  43. package/dist/card.d.ts +23 -0
  44. package/dist/card.es.js +5 -5
  45. package/dist/card.es.js.map +1 -1
  46. package/dist/carousel.cjs.js +1 -1
  47. package/dist/carousel.cjs.js.map +1 -1
  48. package/dist/carousel.d.ts +78 -0
  49. package/dist/carousel.es.js +5 -5
  50. package/dist/carousel.es.js.map +1 -1
  51. package/dist/chart.cjs.js +2 -2
  52. package/dist/chart.cjs.js.map +1 -1
  53. package/dist/chart.d.ts +90 -0
  54. package/dist/chart.es.js +7 -7
  55. package/dist/chart.es.js.map +1 -1
  56. package/dist/checkbox.cjs.js +1 -1
  57. package/dist/checkbox.cjs.js.map +1 -1
  58. package/dist/checkbox.d.ts +17 -0
  59. package/dist/checkbox.es.js +3 -3
  60. package/dist/checkbox.es.js.map +1 -1
  61. package/dist/collapsible.cjs.js +1 -1
  62. package/dist/collapsible.d.ts +32 -0
  63. package/dist/collapsible.es.js +1 -1
  64. package/dist/command.cjs.js +1 -1
  65. package/dist/command.cjs.js.map +1 -1
  66. package/dist/command.d.ts +133 -0
  67. package/dist/command.es.js +10 -10
  68. package/dist/command.es.js.map +1 -1
  69. package/dist/context-menu.cjs.js +1 -1
  70. package/dist/context-menu.cjs.js.map +1 -1
  71. package/dist/context-menu.d.ts +115 -0
  72. package/dist/context-menu.es.js +11 -11
  73. package/dist/context-menu.es.js.map +1 -1
  74. package/dist/dialog.cjs.js +1 -1
  75. package/dist/dialog.cjs.js.map +1 -1
  76. package/dist/dialog.d.ts +31 -0
  77. package/dist/dialog.es.js +7 -7
  78. package/dist/dialog.es.js.map +1 -1
  79. package/dist/drawer.cjs.js +1 -1
  80. package/dist/drawer.cjs.js.map +1 -1
  81. package/dist/drawer.d.ts +79 -0
  82. package/dist/drawer.es.js +6 -6
  83. package/dist/drawer.es.js.map +1 -1
  84. package/dist/dropdown-menu.cjs.js +1 -1
  85. package/dist/dropdown-menu.cjs.js.map +1 -1
  86. package/dist/dropdown-menu.d.ts +124 -0
  87. package/dist/dropdown-menu.es.js +9 -9
  88. package/dist/dropdown-menu.es.js.map +1 -1
  89. package/dist/form.cjs.js +1 -1
  90. package/dist/form.cjs.js.map +1 -1
  91. package/dist/form.d.ts +62 -0
  92. package/dist/form.es.js +4 -4
  93. package/dist/form.es.js.map +1 -1
  94. package/dist/hover-card.cjs.js +1 -1
  95. package/dist/hover-card.cjs.js.map +1 -1
  96. package/dist/hover-card.d.ts +30 -0
  97. package/dist/hover-card.es.js +3 -3
  98. package/dist/hover-card.es.js.map +1 -1
  99. package/dist/index.cjs.js +1 -1
  100. package/dist/index.d.ts +2276 -0
  101. package/dist/index.es.js +5 -5
  102. package/dist/input.cjs.js +1 -1
  103. package/dist/input.cjs.js.map +1 -1
  104. package/dist/input.d.ts +14 -0
  105. package/dist/input.es.js +3 -3
  106. package/dist/input.es.js.map +1 -1
  107. package/dist/label.cjs.js +1 -1
  108. package/dist/label.d.ts +14 -0
  109. package/dist/label.es.js +2 -2
  110. package/dist/menubar.cjs.js +1 -1
  111. package/dist/menubar.cjs.js.map +1 -1
  112. package/dist/menubar.d.ts +125 -0
  113. package/dist/menubar.es.js +12 -12
  114. package/dist/menubar.es.js.map +1 -1
  115. package/dist/navigation-menu.cjs.js +1 -1
  116. package/dist/navigation-menu.cjs.js.map +1 -1
  117. package/dist/navigation-menu.d.ts +77 -0
  118. package/dist/navigation-menu.es.js +7 -7
  119. package/dist/navigation-menu.es.js.map +1 -1
  120. package/dist/pagination.cjs.js +1 -1
  121. package/dist/pagination.d.ts +94 -0
  122. package/dist/pagination.es.js +2 -2
  123. package/dist/popover.cjs.js +1 -1
  124. package/dist/popover.cjs.js.map +1 -1
  125. package/dist/popover.d.ts +39 -0
  126. package/dist/popover.es.js +3 -3
  127. package/dist/popover.es.js.map +1 -1
  128. package/dist/progress.cjs.js +1 -1
  129. package/dist/progress.cjs.js.map +1 -1
  130. package/dist/progress.d.ts +11 -0
  131. package/dist/progress.es.js +4 -4
  132. package/dist/progress.es.js.map +1 -1
  133. package/dist/radio-group.cjs.js +1 -1
  134. package/dist/radio-group.cjs.js.map +1 -1
  135. package/dist/radio-group.d.ts +25 -0
  136. package/dist/radio-group.es.js +4 -4
  137. package/dist/radio-group.es.js.map +1 -1
  138. package/dist/resizable.cjs.js +1 -1
  139. package/dist/resizable.cjs.js.map +1 -1
  140. package/dist/resizable.d.ts +53 -0
  141. package/dist/resizable.es.js +4 -4
  142. package/dist/resizable.es.js.map +1 -1
  143. package/dist/scroll-area.cjs.js +1 -1
  144. package/dist/scroll-area.cjs.js.map +1 -1
  145. package/dist/scroll-area.d.ts +22 -0
  146. package/dist/scroll-area.es.js +4 -4
  147. package/dist/scroll-area.es.js.map +1 -1
  148. package/dist/search.cjs.js +1 -1
  149. package/dist/search.cjs.js.map +1 -1
  150. package/dist/search.d.ts +25 -0
  151. package/dist/search.es.js +4 -4
  152. package/dist/search.es.js.map +1 -1
  153. package/dist/select.cjs.js +1 -1
  154. package/dist/select.cjs.js.map +1 -1
  155. package/dist/select.d.ts +87 -0
  156. package/dist/select.es.js +6 -6
  157. package/dist/select.es.js.map +1 -1
  158. package/dist/separator.cjs.js +1 -1
  159. package/dist/separator.cjs.js.map +1 -1
  160. package/dist/separator.d.ts +12 -0
  161. package/dist/separator.es.js +3 -3
  162. package/dist/separator.es.js.map +1 -1
  163. package/dist/sheet.cjs.js +1 -1
  164. package/dist/sheet.cjs.js.map +1 -1
  165. package/dist/sheet.d.ts +97 -0
  166. package/dist/sheet.es.js +6 -6
  167. package/dist/sheet.es.js.map +1 -1
  168. package/dist/skeleton.cjs.js +1 -1
  169. package/dist/skeleton.cjs.js.map +1 -1
  170. package/dist/skeleton.d.ts +11 -0
  171. package/dist/skeleton.es.js +3 -3
  172. package/dist/skeleton.es.js.map +1 -1
  173. package/dist/slider.cjs.js +1 -1
  174. package/dist/slider.cjs.js.map +1 -1
  175. package/dist/slider.d.ts +22 -0
  176. package/dist/slider.es.js +5 -5
  177. package/dist/slider.es.js.map +1 -1
  178. package/dist/sonner.cjs.js +1 -1
  179. package/dist/{packages/ui-core/src/contracts/sonner.d.ts → sonner.d.ts} +25 -16
  180. package/dist/sonner.es.js +1 -1
  181. package/dist/switch.cjs.js +1 -1
  182. package/dist/switch.cjs.js.map +1 -1
  183. package/dist/switch.d.ts +18 -0
  184. package/dist/switch.es.js +4 -4
  185. package/dist/switch.es.js.map +1 -1
  186. package/dist/table.cjs.js +1 -1
  187. package/dist/table.cjs.js.map +1 -1
  188. package/dist/table.d.ts +59 -0
  189. package/dist/table.es.js +6 -6
  190. package/dist/table.es.js.map +1 -1
  191. package/dist/tabs.cjs.js +1 -1
  192. package/dist/tabs.cjs.js.map +1 -1
  193. package/dist/tabs.d.ts +42 -0
  194. package/dist/tabs.es.js +5 -5
  195. package/dist/tabs.es.js.map +1 -1
  196. package/dist/text.cjs.js +1 -1
  197. package/dist/text.d.ts +21 -0
  198. package/dist/text.es.js +2 -2
  199. package/dist/textarea.cjs.js +1 -1
  200. package/dist/textarea.cjs.js.map +1 -1
  201. package/dist/textarea.d.ts +16 -0
  202. package/dist/textarea.es.js +3 -3
  203. package/dist/textarea.es.js.map +1 -1
  204. package/dist/theme-provider.cjs.js +1 -1
  205. package/dist/theme-provider.d.ts +22 -0
  206. package/dist/theme-provider.es.js +1 -1
  207. package/dist/{theme-toggle-BTT5z37-.js → theme-toggle-CsOzHnq2.js} +2 -2
  208. package/dist/{theme-toggle-BTT5z37-.js.map → theme-toggle-CsOzHnq2.js.map} +1 -1
  209. package/dist/{theme-toggle-Dhc53hqa.mjs → theme-toggle-YTiXA-Ib.mjs} +6 -6
  210. package/dist/{theme-toggle-Dhc53hqa.mjs.map → theme-toggle-YTiXA-Ib.mjs.map} +1 -1
  211. package/dist/theme-toggle.cjs.js +1 -1
  212. package/dist/{packages/ui-core/src/contracts/theme-toggle.d.ts → theme-toggle.d.ts} +23 -16
  213. package/dist/theme-toggle.es.js +3 -3
  214. package/dist/toast.cjs.js +1 -1
  215. package/dist/toast.cjs.js.map +1 -1
  216. package/dist/toast.d.ts +26 -0
  217. package/dist/toast.es.js +5 -5
  218. package/dist/toast.es.js.map +1 -1
  219. package/dist/{toaster-BOqCGbZ6.js → toaster-CjkfZJj0.js} +2 -2
  220. package/dist/toaster-CjkfZJj0.js.map +1 -0
  221. package/dist/{toaster-CmNmQ6jI.mjs → toaster-D0gt0m_V.mjs} +2 -2
  222. package/dist/toaster-D0gt0m_V.mjs.map +1 -0
  223. package/dist/toaster.cjs.js +1 -1
  224. package/dist/toaster.d.ts +9 -0
  225. package/dist/toaster.es.js +2 -2
  226. package/dist/{toggle-Dmzk_m4r.js → toggle-BAzsZDaN.js} +2 -2
  227. package/dist/{toggle-Dmzk_m4r.js.map → toggle-BAzsZDaN.js.map} +1 -1
  228. package/dist/{toggle-CYawMoye.mjs → toggle-Dmzr60z6.mjs} +2 -2
  229. package/dist/{toggle-CYawMoye.mjs.map → toggle-Dmzr60z6.mjs.map} +1 -1
  230. package/dist/toggle-group.cjs.js +1 -1
  231. package/dist/toggle-group.d.ts +22 -0
  232. package/dist/toggle-group.es.js +3 -3
  233. package/dist/toggle.cjs.js +1 -1
  234. package/dist/toggle.d.ts +43 -0
  235. package/dist/toggle.es.js +3 -3
  236. package/dist/tooltip.cjs.js +1 -1
  237. package/dist/tooltip.cjs.js.map +1 -1
  238. package/dist/tooltip.d.ts +48 -0
  239. package/dist/tooltip.es.js +3 -3
  240. package/dist/tooltip.es.js.map +1 -1
  241. package/dist/utils-DKStzUzN.js +2 -0
  242. package/dist/{utils-5NfNUIaP.js.map → utils-DKStzUzN.js.map} +1 -1
  243. package/dist/utils-Dk-Gx69q.mjs +8 -0
  244. package/dist/{utils-BfGqxkzX.mjs.map → utils-Dk-Gx69q.mjs.map} +1 -1
  245. package/dist/vendor-DQFuDa7q.js +68 -0
  246. package/dist/vendor-DQFuDa7q.js.map +1 -0
  247. package/dist/{vendor-B8N-rYkV.mjs → vendor-DxBXMLEx.mjs} +5807 -6045
  248. package/dist/vendor-DxBXMLEx.mjs.map +1 -0
  249. package/package.json +23 -13
  250. package/CHANGELOG.md +0 -701
  251. package/dist/packages/design-tokens/src/index.d.ts +0 -91
  252. package/dist/packages/design-tokens/src/index.d.ts.map +0 -1
  253. package/dist/packages/design-tokens/src/index.js +0 -21
  254. package/dist/packages/design-tokens/src/palette.d.ts +0 -32
  255. package/dist/packages/design-tokens/src/palette.d.ts.map +0 -1
  256. package/dist/packages/design-tokens/src/palette.js +0 -33
  257. package/dist/packages/design-tokens/src/radii.d.ts +0 -21
  258. package/dist/packages/design-tokens/src/radii.d.ts.map +0 -1
  259. package/dist/packages/design-tokens/src/radii.js +0 -21
  260. package/dist/packages/design-tokens/src/shadows.d.ts +0 -12
  261. package/dist/packages/design-tokens/src/shadows.d.ts.map +0 -1
  262. package/dist/packages/design-tokens/src/shadows.js +0 -13
  263. package/dist/packages/design-tokens/src/spacing.d.ts +0 -30
  264. package/dist/packages/design-tokens/src/spacing.d.ts.map +0 -1
  265. package/dist/packages/design-tokens/src/spacing.js +0 -30
  266. package/dist/packages/design-tokens/src/theme.d.ts +0 -48
  267. package/dist/packages/design-tokens/src/theme.d.ts.map +0 -1
  268. package/dist/packages/design-tokens/src/theme.js +0 -50
  269. package/dist/packages/design-tokens/src/typography.d.ts +0 -33
  270. package/dist/packages/design-tokens/src/typography.d.ts.map +0 -1
  271. package/dist/packages/design-tokens/src/typography.js +0 -33
  272. package/dist/packages/ui-core/src/contracts/accordion.d.ts +0 -20
  273. package/dist/packages/ui-core/src/contracts/accordion.d.ts.map +0 -1
  274. package/dist/packages/ui-core/src/contracts/accordion.js +0 -1
  275. package/dist/packages/ui-core/src/contracts/alert-dialog.d.ts +0 -40
  276. package/dist/packages/ui-core/src/contracts/alert-dialog.d.ts.map +0 -1
  277. package/dist/packages/ui-core/src/contracts/alert-dialog.js +0 -1
  278. package/dist/packages/ui-core/src/contracts/alert.d.ts +0 -15
  279. package/dist/packages/ui-core/src/contracts/alert.d.ts.map +0 -1
  280. package/dist/packages/ui-core/src/contracts/alert.js +0 -1
  281. package/dist/packages/ui-core/src/contracts/aspect-ratio.d.ts +0 -7
  282. package/dist/packages/ui-core/src/contracts/aspect-ratio.d.ts.map +0 -1
  283. package/dist/packages/ui-core/src/contracts/aspect-ratio.js +0 -1
  284. package/dist/packages/ui-core/src/contracts/avatar.d.ts +0 -15
  285. package/dist/packages/ui-core/src/contracts/avatar.d.ts.map +0 -1
  286. package/dist/packages/ui-core/src/contracts/avatar.js +0 -1
  287. package/dist/packages/ui-core/src/contracts/badge.d.ts +0 -7
  288. package/dist/packages/ui-core/src/contracts/badge.d.ts.map +0 -1
  289. package/dist/packages/ui-core/src/contracts/badge.js +0 -1
  290. package/dist/packages/ui-core/src/contracts/breadcrumb.d.ts +0 -31
  291. package/dist/packages/ui-core/src/contracts/breadcrumb.d.ts.map +0 -1
  292. package/dist/packages/ui-core/src/contracts/breadcrumb.js +0 -1
  293. package/dist/packages/ui-core/src/contracts/button.d.ts +0 -10
  294. package/dist/packages/ui-core/src/contracts/button.d.ts.map +0 -1
  295. package/dist/packages/ui-core/src/contracts/button.js +0 -4
  296. package/dist/packages/ui-core/src/contracts/calendar.d.ts +0 -5
  297. package/dist/packages/ui-core/src/contracts/calendar.d.ts.map +0 -1
  298. package/dist/packages/ui-core/src/contracts/calendar.js +0 -1
  299. package/dist/packages/ui-core/src/contracts/card.d.ts +0 -6
  300. package/dist/packages/ui-core/src/contracts/card.d.ts.map +0 -1
  301. package/dist/packages/ui-core/src/contracts/card.js +0 -3
  302. package/dist/packages/ui-core/src/contracts/carousel.d.ts +0 -25
  303. package/dist/packages/ui-core/src/contracts/carousel.d.ts.map +0 -1
  304. package/dist/packages/ui-core/src/contracts/carousel.js +0 -1
  305. package/dist/packages/ui-core/src/contracts/chart.d.ts +0 -34
  306. package/dist/packages/ui-core/src/contracts/chart.d.ts.map +0 -1
  307. package/dist/packages/ui-core/src/contracts/chart.js +0 -1
  308. package/dist/packages/ui-core/src/contracts/checkbox.d.ts +0 -8
  309. package/dist/packages/ui-core/src/contracts/checkbox.d.ts.map +0 -1
  310. package/dist/packages/ui-core/src/contracts/checkbox.js +0 -3
  311. package/dist/packages/ui-core/src/contracts/collapsible.d.ts +0 -19
  312. package/dist/packages/ui-core/src/contracts/collapsible.d.ts.map +0 -1
  313. package/dist/packages/ui-core/src/contracts/collapsible.js +0 -1
  314. package/dist/packages/ui-core/src/contracts/command.d.ts +0 -36
  315. package/dist/packages/ui-core/src/contracts/command.d.ts.map +0 -1
  316. package/dist/packages/ui-core/src/contracts/command.js +0 -1
  317. package/dist/packages/ui-core/src/contracts/context-menu.d.ts +0 -65
  318. package/dist/packages/ui-core/src/contracts/context-menu.d.ts.map +0 -1
  319. package/dist/packages/ui-core/src/contracts/context-menu.js +0 -1
  320. package/dist/packages/ui-core/src/contracts/dialog.d.ts +0 -14
  321. package/dist/packages/ui-core/src/contracts/dialog.d.ts.map +0 -1
  322. package/dist/packages/ui-core/src/contracts/dialog.js +0 -3
  323. package/dist/packages/ui-core/src/contracts/drawer.d.ts +0 -32
  324. package/dist/packages/ui-core/src/contracts/drawer.d.ts.map +0 -1
  325. package/dist/packages/ui-core/src/contracts/drawer.js +0 -1
  326. package/dist/packages/ui-core/src/contracts/dropdown-menu.d.ts +0 -74
  327. package/dist/packages/ui-core/src/contracts/dropdown-menu.d.ts.map +0 -1
  328. package/dist/packages/ui-core/src/contracts/dropdown-menu.js +0 -1
  329. package/dist/packages/ui-core/src/contracts/form.d.ts +0 -24
  330. package/dist/packages/ui-core/src/contracts/form.d.ts.map +0 -1
  331. package/dist/packages/ui-core/src/contracts/form.js +0 -1
  332. package/dist/packages/ui-core/src/contracts/hover-card.d.ts +0 -19
  333. package/dist/packages/ui-core/src/contracts/hover-card.d.ts.map +0 -1
  334. package/dist/packages/ui-core/src/contracts/hover-card.js +0 -1
  335. package/dist/packages/ui-core/src/contracts/input.d.ts +0 -6
  336. package/dist/packages/ui-core/src/contracts/input.d.ts.map +0 -1
  337. package/dist/packages/ui-core/src/contracts/input.js +0 -3
  338. package/dist/packages/ui-core/src/contracts/label.d.ts +0 -7
  339. package/dist/packages/ui-core/src/contracts/label.d.ts.map +0 -1
  340. package/dist/packages/ui-core/src/contracts/label.js +0 -1
  341. package/dist/packages/ui-core/src/contracts/menubar.d.ts +0 -74
  342. package/dist/packages/ui-core/src/contracts/menubar.d.ts.map +0 -1
  343. package/dist/packages/ui-core/src/contracts/menubar.js +0 -1
  344. package/dist/packages/ui-core/src/contracts/navigation-menu.d.ts +0 -48
  345. package/dist/packages/ui-core/src/contracts/navigation-menu.d.ts.map +0 -1
  346. package/dist/packages/ui-core/src/contracts/navigation-menu.js +0 -1
  347. package/dist/packages/ui-core/src/contracts/pagination.d.ts +0 -32
  348. package/dist/packages/ui-core/src/contracts/pagination.d.ts.map +0 -1
  349. package/dist/packages/ui-core/src/contracts/pagination.js +0 -1
  350. package/dist/packages/ui-core/src/contracts/popover.d.ts +0 -25
  351. package/dist/packages/ui-core/src/contracts/popover.d.ts.map +0 -1
  352. package/dist/packages/ui-core/src/contracts/popover.js +0 -1
  353. package/dist/packages/ui-core/src/contracts/progress.d.ts +0 -5
  354. package/dist/packages/ui-core/src/contracts/progress.d.ts.map +0 -1
  355. package/dist/packages/ui-core/src/contracts/progress.js +0 -1
  356. package/dist/packages/ui-core/src/contracts/radio.d.ts +0 -10
  357. package/dist/packages/ui-core/src/contracts/radio.d.ts.map +0 -1
  358. package/dist/packages/ui-core/src/contracts/radio.js +0 -3
  359. package/dist/packages/ui-core/src/contracts/resizable.d.ts +0 -39
  360. package/dist/packages/ui-core/src/contracts/resizable.d.ts.map +0 -1
  361. package/dist/packages/ui-core/src/contracts/resizable.js +0 -1
  362. package/dist/packages/ui-core/src/contracts/scroll-area.d.ts +0 -14
  363. package/dist/packages/ui-core/src/contracts/scroll-area.d.ts.map +0 -1
  364. package/dist/packages/ui-core/src/contracts/scroll-area.js +0 -1
  365. package/dist/packages/ui-core/src/contracts/search.d.ts +0 -12
  366. package/dist/packages/ui-core/src/contracts/search.d.ts.map +0 -1
  367. package/dist/packages/ui-core/src/contracts/search.js +0 -1
  368. package/dist/packages/ui-core/src/contracts/select.d.ts +0 -55
  369. package/dist/packages/ui-core/src/contracts/select.d.ts.map +0 -1
  370. package/dist/packages/ui-core/src/contracts/select.js +0 -1
  371. package/dist/packages/ui-core/src/contracts/separator.d.ts +0 -6
  372. package/dist/packages/ui-core/src/contracts/separator.d.ts.map +0 -1
  373. package/dist/packages/ui-core/src/contracts/separator.js +0 -1
  374. package/dist/packages/ui-core/src/contracts/sheet.d.ts +0 -49
  375. package/dist/packages/ui-core/src/contracts/sheet.d.ts.map +0 -1
  376. package/dist/packages/ui-core/src/contracts/sheet.js +0 -1
  377. package/dist/packages/ui-core/src/contracts/skeleton.d.ts +0 -6
  378. package/dist/packages/ui-core/src/contracts/skeleton.d.ts.map +0 -1
  379. package/dist/packages/ui-core/src/contracts/skeleton.js +0 -1
  380. package/dist/packages/ui-core/src/contracts/slider.d.ts +0 -16
  381. package/dist/packages/ui-core/src/contracts/slider.d.ts.map +0 -1
  382. package/dist/packages/ui-core/src/contracts/slider.js +0 -1
  383. package/dist/packages/ui-core/src/contracts/sonner.d.ts.map +0 -1
  384. package/dist/packages/ui-core/src/contracts/sonner.js +0 -1
  385. package/dist/packages/ui-core/src/contracts/switch.d.ts +0 -12
  386. package/dist/packages/ui-core/src/contracts/switch.d.ts.map +0 -1
  387. package/dist/packages/ui-core/src/contracts/switch.js +0 -1
  388. package/dist/packages/ui-core/src/contracts/table.d.ts +0 -34
  389. package/dist/packages/ui-core/src/contracts/table.d.ts.map +0 -1
  390. package/dist/packages/ui-core/src/contracts/table.js +0 -1
  391. package/dist/packages/ui-core/src/contracts/tabs.d.ts +0 -28
  392. package/dist/packages/ui-core/src/contracts/tabs.d.ts.map +0 -1
  393. package/dist/packages/ui-core/src/contracts/tabs.js +0 -1
  394. package/dist/packages/ui-core/src/contracts/text.d.ts +0 -7
  395. package/dist/packages/ui-core/src/contracts/text.d.ts.map +0 -1
  396. package/dist/packages/ui-core/src/contracts/text.js +0 -3
  397. package/dist/packages/ui-core/src/contracts/textarea.d.ts +0 -8
  398. package/dist/packages/ui-core/src/contracts/textarea.d.ts.map +0 -1
  399. package/dist/packages/ui-core/src/contracts/textarea.js +0 -1
  400. package/dist/packages/ui-core/src/contracts/theme-provider.d.ts +0 -14
  401. package/dist/packages/ui-core/src/contracts/theme-provider.d.ts.map +0 -1
  402. package/dist/packages/ui-core/src/contracts/theme-provider.js +0 -1
  403. package/dist/packages/ui-core/src/contracts/theme-toggle.d.ts.map +0 -1
  404. package/dist/packages/ui-core/src/contracts/theme-toggle.js +0 -1
  405. package/dist/packages/ui-core/src/contracts/toast.d.ts +0 -11
  406. package/dist/packages/ui-core/src/contracts/toast.d.ts.map +0 -1
  407. package/dist/packages/ui-core/src/contracts/toast.js +0 -3
  408. package/dist/packages/ui-core/src/contracts/toaster.d.ts +0 -4
  409. package/dist/packages/ui-core/src/contracts/toaster.d.ts.map +0 -1
  410. package/dist/packages/ui-core/src/contracts/toaster.js +0 -1
  411. package/dist/packages/ui-core/src/contracts/toggle-group.d.ts +0 -22
  412. package/dist/packages/ui-core/src/contracts/toggle-group.d.ts.map +0 -1
  413. package/dist/packages/ui-core/src/contracts/toggle-group.js +0 -1
  414. package/dist/packages/ui-core/src/contracts/toggle.d.ts +0 -29
  415. package/dist/packages/ui-core/src/contracts/toggle.d.ts.map +0 -1
  416. package/dist/packages/ui-core/src/contracts/toggle.js +0 -29
  417. package/dist/packages/ui-core/src/contracts/tooltip.d.ts +0 -25
  418. package/dist/packages/ui-core/src/contracts/tooltip.d.ts.map +0 -1
  419. package/dist/packages/ui-core/src/contracts/tooltip.js +0 -1
  420. package/dist/packages/ui-core/src/index.d.ts +0 -55
  421. package/dist/packages/ui-core/src/index.d.ts.map +0 -1
  422. package/dist/packages/ui-core/src/index.js +0 -12
  423. package/dist/packages/ui-native/src/accordion.d.ts +0 -46
  424. package/dist/packages/ui-native/src/accordion.d.ts.map +0 -1
  425. package/dist/packages/ui-native/src/accordion.js +0 -34
  426. package/dist/packages/ui-native/src/alert-dialog.d.ts +0 -59
  427. package/dist/packages/ui-native/src/alert-dialog.d.ts.map +0 -1
  428. package/dist/packages/ui-native/src/alert-dialog.js +0 -31
  429. package/dist/packages/ui-native/src/alert.d.ts +0 -10
  430. package/dist/packages/ui-native/src/alert.d.ts.map +0 -1
  431. package/dist/packages/ui-native/src/alert.js +0 -26
  432. package/dist/packages/ui-native/src/aspect-ratio.d.ts +0 -2
  433. package/dist/packages/ui-native/src/aspect-ratio.d.ts.map +0 -1
  434. package/dist/packages/ui-native/src/aspect-ratio.js +0 -5
  435. package/dist/packages/ui-native/src/avatar.d.ts +0 -15
  436. package/dist/packages/ui-native/src/avatar.d.ts.map +0 -1
  437. package/dist/packages/ui-native/src/avatar.js +0 -11
  438. package/dist/packages/ui-native/src/badge.d.ts +0 -12
  439. package/dist/packages/ui-native/src/badge.d.ts.map +0 -1
  440. package/dist/packages/ui-native/src/badge.js +0 -37
  441. package/dist/packages/ui-native/src/breadcrumb.d.ts +0 -2
  442. package/dist/packages/ui-native/src/breadcrumb.d.ts.map +0 -1
  443. package/dist/packages/ui-native/src/breadcrumb.js +0 -5
  444. package/dist/packages/ui-native/src/button.d.ts +0 -14
  445. package/dist/packages/ui-native/src/button.d.ts.map +0 -1
  446. package/dist/packages/ui-native/src/button.js +0 -50
  447. package/dist/packages/ui-native/src/calendar.d.ts +0 -2
  448. package/dist/packages/ui-native/src/calendar.d.ts.map +0 -1
  449. package/dist/packages/ui-native/src/calendar.js +0 -5
  450. package/dist/packages/ui-native/src/card.d.ts +0 -13
  451. package/dist/packages/ui-native/src/card.d.ts.map +0 -1
  452. package/dist/packages/ui-native/src/card.js +0 -18
  453. package/dist/packages/ui-native/src/carousel.d.ts +0 -2
  454. package/dist/packages/ui-native/src/carousel.d.ts.map +0 -1
  455. package/dist/packages/ui-native/src/carousel.js +0 -5
  456. package/dist/packages/ui-native/src/chart.d.ts +0 -2
  457. package/dist/packages/ui-native/src/chart.d.ts.map +0 -1
  458. package/dist/packages/ui-native/src/chart.js +0 -5
  459. package/dist/packages/ui-native/src/checkbox.d.ts +0 -15
  460. package/dist/packages/ui-native/src/checkbox.d.ts.map +0 -1
  461. package/dist/packages/ui-native/src/checkbox.js +0 -11
  462. package/dist/packages/ui-native/src/collapsible.d.ts +0 -21
  463. package/dist/packages/ui-native/src/collapsible.d.ts.map +0 -1
  464. package/dist/packages/ui-native/src/collapsible.js +0 -5
  465. package/dist/packages/ui-native/src/command.d.ts +0 -2
  466. package/dist/packages/ui-native/src/command.d.ts.map +0 -1
  467. package/dist/packages/ui-native/src/command.js +0 -5
  468. package/dist/packages/ui-native/src/context-menu.d.ts +0 -2
  469. package/dist/packages/ui-native/src/context-menu.d.ts.map +0 -1
  470. package/dist/packages/ui-native/src/context-menu.js +0 -5
  471. package/dist/packages/ui-native/src/dialog.d.ts +0 -56
  472. package/dist/packages/ui-native/src/dialog.d.ts.map +0 -1
  473. package/dist/packages/ui-native/src/dialog.js +0 -28
  474. package/dist/packages/ui-native/src/drawer.d.ts +0 -2
  475. package/dist/packages/ui-native/src/drawer.d.ts.map +0 -1
  476. package/dist/packages/ui-native/src/drawer.js +0 -5
  477. package/dist/packages/ui-native/src/dropdown-menu.d.ts +0 -2
  478. package/dist/packages/ui-native/src/dropdown-menu.d.ts.map +0 -1
  479. package/dist/packages/ui-native/src/dropdown-menu.js +0 -5
  480. package/dist/packages/ui-native/src/form.d.ts +0 -2
  481. package/dist/packages/ui-native/src/form.d.ts.map +0 -1
  482. package/dist/packages/ui-native/src/form.js +0 -5
  483. package/dist/packages/ui-native/src/hover-card.d.ts +0 -2
  484. package/dist/packages/ui-native/src/hover-card.d.ts.map +0 -1
  485. package/dist/packages/ui-native/src/hover-card.js +0 -5
  486. package/dist/packages/ui-native/src/index.d.ts +0 -61
  487. package/dist/packages/ui-native/src/index.d.ts.map +0 -1
  488. package/dist/packages/ui-native/src/index.js +0 -107
  489. package/dist/packages/ui-native/src/input.d.ts +0 -8
  490. package/dist/packages/ui-native/src/input.d.ts.map +0 -1
  491. package/dist/packages/ui-native/src/input.js +0 -9
  492. package/dist/packages/ui-native/src/label.d.ts +0 -9
  493. package/dist/packages/ui-native/src/label.d.ts.map +0 -1
  494. package/dist/packages/ui-native/src/label.js +0 -7
  495. package/dist/packages/ui-native/src/lib/render-native.d.ts +0 -4
  496. package/dist/packages/ui-native/src/lib/render-native.d.ts.map +0 -1
  497. package/dist/packages/ui-native/src/lib/render-native.js +0 -13
  498. package/dist/packages/ui-native/src/lib/utils.d.ts +0 -3
  499. package/dist/packages/ui-native/src/lib/utils.d.ts.map +0 -1
  500. package/dist/packages/ui-native/src/lib/utils.js +0 -5
  501. package/dist/packages/ui-native/src/menubar.d.ts +0 -2
  502. package/dist/packages/ui-native/src/menubar.d.ts.map +0 -1
  503. package/dist/packages/ui-native/src/menubar.js +0 -5
  504. package/dist/packages/ui-native/src/navigation-menu.d.ts +0 -2
  505. package/dist/packages/ui-native/src/navigation-menu.d.ts.map +0 -1
  506. package/dist/packages/ui-native/src/navigation-menu.js +0 -5
  507. package/dist/packages/ui-native/src/pagination.d.ts +0 -2
  508. package/dist/packages/ui-native/src/pagination.d.ts.map +0 -1
  509. package/dist/packages/ui-native/src/pagination.js +0 -5
  510. package/dist/packages/ui-native/src/popover.d.ts +0 -2
  511. package/dist/packages/ui-native/src/popover.d.ts.map +0 -1
  512. package/dist/packages/ui-native/src/popover.js +0 -5
  513. package/dist/packages/ui-native/src/progress.d.ts +0 -2
  514. package/dist/packages/ui-native/src/progress.d.ts.map +0 -1
  515. package/dist/packages/ui-native/src/progress.js +0 -5
  516. package/dist/packages/ui-native/src/radio-group.d.ts +0 -11
  517. package/dist/packages/ui-native/src/radio-group.d.ts.map +0 -1
  518. package/dist/packages/ui-native/src/radio-group.js +0 -14
  519. package/dist/packages/ui-native/src/resizable.d.ts +0 -4
  520. package/dist/packages/ui-native/src/resizable.d.ts.map +0 -1
  521. package/dist/packages/ui-native/src/resizable.js +0 -11
  522. package/dist/packages/ui-native/src/scroll-area.d.ts +0 -2
  523. package/dist/packages/ui-native/src/scroll-area.d.ts.map +0 -1
  524. package/dist/packages/ui-native/src/scroll-area.js +0 -5
  525. package/dist/packages/ui-native/src/search.d.ts +0 -3
  526. package/dist/packages/ui-native/src/search.d.ts.map +0 -1
  527. package/dist/packages/ui-native/src/search.js +0 -8
  528. package/dist/packages/ui-native/src/select.d.ts +0 -57
  529. package/dist/packages/ui-native/src/select.d.ts.map +0 -1
  530. package/dist/packages/ui-native/src/select.js +0 -45
  531. package/dist/packages/ui-native/src/separator.d.ts +0 -9
  532. package/dist/packages/ui-native/src/separator.d.ts.map +0 -1
  533. package/dist/packages/ui-native/src/separator.js +0 -7
  534. package/dist/packages/ui-native/src/sheet.d.ts +0 -53
  535. package/dist/packages/ui-native/src/sheet.d.ts.map +0 -1
  536. package/dist/packages/ui-native/src/sheet.js +0 -37
  537. package/dist/packages/ui-native/src/skeleton.d.ts +0 -5
  538. package/dist/packages/ui-native/src/skeleton.d.ts.map +0 -1
  539. package/dist/packages/ui-native/src/skeleton.js +0 -15
  540. package/dist/packages/ui-native/src/slider.d.ts +0 -2
  541. package/dist/packages/ui-native/src/slider.d.ts.map +0 -1
  542. package/dist/packages/ui-native/src/slider.js +0 -5
  543. package/dist/packages/ui-native/src/sonner.d.ts +0 -2
  544. package/dist/packages/ui-native/src/sonner.d.ts.map +0 -1
  545. package/dist/packages/ui-native/src/sonner.js +0 -5
  546. package/dist/packages/ui-native/src/switch.d.ts +0 -8
  547. package/dist/packages/ui-native/src/switch.d.ts.map +0 -1
  548. package/dist/packages/ui-native/src/switch.js +0 -7
  549. package/dist/packages/ui-native/src/table.d.ts +0 -12
  550. package/dist/packages/ui-native/src/table.d.ts.map +0 -1
  551. package/dist/packages/ui-native/src/table.js +0 -22
  552. package/dist/packages/ui-native/src/tabs.d.ts +0 -25
  553. package/dist/packages/ui-native/src/tabs.d.ts.map +0 -1
  554. package/dist/packages/ui-native/src/tabs.js +0 -16
  555. package/dist/packages/ui-native/src/text.d.ts +0 -13
  556. package/dist/packages/ui-native/src/text.d.ts.map +0 -1
  557. package/dist/packages/ui-native/src/text.js +0 -29
  558. package/dist/packages/ui-native/src/textarea.d.ts +0 -6
  559. package/dist/packages/ui-native/src/textarea.d.ts.map +0 -1
  560. package/dist/packages/ui-native/src/textarea.js +0 -9
  561. package/dist/packages/ui-native/src/theme-provider.d.ts +0 -5
  562. package/dist/packages/ui-native/src/theme-provider.d.ts.map +0 -1
  563. package/dist/packages/ui-native/src/theme-provider.js +0 -5
  564. package/dist/packages/ui-native/src/theme-toggle.d.ts +0 -2
  565. package/dist/packages/ui-native/src/theme-toggle.d.ts.map +0 -1
  566. package/dist/packages/ui-native/src/theme-toggle.js +0 -5
  567. package/dist/packages/ui-native/src/toast.d.ts +0 -35
  568. package/dist/packages/ui-native/src/toast.d.ts.map +0 -1
  569. package/dist/packages/ui-native/src/toast.js +0 -23
  570. package/dist/packages/ui-native/src/toaster.d.ts +0 -2
  571. package/dist/packages/ui-native/src/toaster.d.ts.map +0 -1
  572. package/dist/packages/ui-native/src/toaster.js +0 -5
  573. package/dist/packages/ui-native/src/toggle-group.d.ts +0 -11
  574. package/dist/packages/ui-native/src/toggle-group.d.ts.map +0 -1
  575. package/dist/packages/ui-native/src/toggle-group.js +0 -25
  576. package/dist/packages/ui-native/src/toggle.d.ts +0 -8
  577. package/dist/packages/ui-native/src/toggle.d.ts.map +0 -1
  578. package/dist/packages/ui-native/src/toggle.js +0 -9
  579. package/dist/packages/ui-native/src/tooltip.d.ts +0 -27
  580. package/dist/packages/ui-native/src/tooltip.d.ts.map +0 -1
  581. package/dist/packages/ui-native/src/tooltip.js +0 -15
  582. package/dist/packages/ui-web/src/accordion.d.ts +0 -10
  583. package/dist/packages/ui-web/src/accordion.d.ts.map +0 -1
  584. package/dist/packages/ui-web/src/accordion.js +0 -13
  585. package/dist/packages/ui-web/src/alert-dialog.d.ts +0 -23
  586. package/dist/packages/ui-web/src/alert-dialog.d.ts.map +0 -1
  587. package/dist/packages/ui-web/src/alert-dialog.js +0 -25
  588. package/dist/packages/ui-web/src/alert.d.ts +0 -11
  589. package/dist/packages/ui-web/src/alert.d.ts.map +0 -1
  590. package/dist/packages/ui-web/src/alert.js +0 -24
  591. package/dist/packages/ui-web/src/aspect-ratio.d.ts +0 -6
  592. package/dist/packages/ui-web/src/aspect-ratio.d.ts.map +0 -1
  593. package/dist/packages/ui-web/src/aspect-ratio.js +0 -3
  594. package/dist/packages/ui-web/src/avatar.d.ts +0 -9
  595. package/dist/packages/ui-web/src/avatar.d.ts.map +0 -1
  596. package/dist/packages/ui-web/src/avatar.js +0 -11
  597. package/dist/packages/ui-web/src/badge.d.ts +0 -11
  598. package/dist/packages/ui-web/src/badge.d.ts.map +0 -1
  599. package/dist/packages/ui-web/src/badge.js +0 -20
  600. package/dist/packages/ui-web/src/breadcrumb.d.ts +0 -20
  601. package/dist/packages/ui-web/src/breadcrumb.d.ts.map +0 -1
  602. package/dist/packages/ui-web/src/breadcrumb.js +0 -23
  603. package/dist/packages/ui-web/src/button.d.ts +0 -13
  604. package/dist/packages/ui-web/src/button.d.ts.map +0 -1
  605. package/dist/packages/ui-web/src/button.js +0 -33
  606. package/dist/packages/ui-web/src/calendar.d.ts +0 -11
  607. package/dist/packages/ui-web/src/calendar.d.ts.map +0 -1
  608. package/dist/packages/ui-web/src/calendar.js +0 -70
  609. package/dist/packages/ui-web/src/card.d.ts +0 -12
  610. package/dist/packages/ui-web/src/card.d.ts.map +0 -1
  611. package/dist/packages/ui-web/src/card.js +0 -16
  612. package/dist/packages/ui-web/src/carousel.d.ts +0 -24
  613. package/dist/packages/ui-web/src/carousel.d.ts.map +0 -1
  614. package/dist/packages/ui-web/src/carousel.js +0 -98
  615. package/dist/packages/ui-web/src/chart.d.ts +0 -39
  616. package/dist/packages/ui-web/src/chart.d.ts.map +0 -1
  617. package/dist/packages/ui-web/src/chart.js +0 -120
  618. package/dist/packages/ui-web/src/checkbox.d.ts +0 -8
  619. package/dist/packages/ui-web/src/checkbox.d.ts.map +0 -1
  620. package/dist/packages/ui-web/src/checkbox.js +0 -8
  621. package/dist/packages/ui-web/src/collapsible.d.ts +0 -8
  622. package/dist/packages/ui-web/src/collapsible.d.ts.map +0 -1
  623. package/dist/packages/ui-web/src/collapsible.js +0 -5
  624. package/dist/packages/ui-web/src/command.d.ts +0 -83
  625. package/dist/packages/ui-web/src/command.d.ts.map +0 -1
  626. package/dist/packages/ui-web/src/command.js +0 -29
  627. package/dist/packages/ui-web/src/context-menu.d.ts +0 -24
  628. package/dist/packages/ui-web/src/context-menu.d.ts.map +0 -1
  629. package/dist/packages/ui-web/src/context-menu.js +0 -32
  630. package/dist/packages/ui-web/src/dialog.d.ts +0 -20
  631. package/dist/packages/ui-web/src/dialog.d.ts.map +0 -1
  632. package/dist/packages/ui-web/src/dialog.js +0 -22
  633. package/dist/packages/ui-web/src/drawer.d.ts +0 -25
  634. package/dist/packages/ui-web/src/drawer.d.ts.map +0 -1
  635. package/dist/packages/ui-web/src/drawer.js +0 -23
  636. package/dist/packages/ui-web/src/dropdown-menu.d.ts +0 -24
  637. package/dist/packages/ui-web/src/dropdown-menu.d.ts.map +0 -1
  638. package/dist/packages/ui-web/src/dropdown-menu.js +0 -33
  639. package/dist/packages/ui-web/src/form.d.ts +0 -26
  640. package/dist/packages/ui-web/src/form.d.ts.map +0 -1
  641. package/dist/packages/ui-web/src/form.js +0 -64
  642. package/dist/packages/ui-web/src/hooks/use-theme.d.ts +0 -52
  643. package/dist/packages/ui-web/src/hooks/use-theme.d.ts.map +0 -1
  644. package/dist/packages/ui-web/src/hooks/use-theme.js +0 -12
  645. package/dist/packages/ui-web/src/hooks/use-toast.d.ts +0 -45
  646. package/dist/packages/ui-web/src/hooks/use-toast.d.ts.map +0 -1
  647. package/dist/packages/ui-web/src/hooks/use-toast.js +0 -128
  648. package/dist/packages/ui-web/src/hover-card.d.ts +0 -9
  649. package/dist/packages/ui-web/src/hover-card.d.ts.map +0 -1
  650. package/dist/packages/ui-web/src/hover-card.js +0 -10
  651. package/dist/packages/ui-web/src/index.d.ts +0 -101
  652. package/dist/packages/ui-web/src/index.d.ts.map +0 -1
  653. package/dist/packages/ui-web/src/index.js +0 -106
  654. package/dist/packages/ui-web/src/input.d.ts +0 -7
  655. package/dist/packages/ui-web/src/input.d.ts.map +0 -1
  656. package/dist/packages/ui-web/src/input.js +0 -8
  657. package/dist/packages/ui-web/src/label.d.ts +0 -8
  658. package/dist/packages/ui-web/src/label.d.ts.map +0 -1
  659. package/dist/packages/ui-web/src/label.js +0 -10
  660. package/dist/packages/ui-web/src/lib/utils.d.ts +0 -3
  661. package/dist/packages/ui-web/src/lib/utils.d.ts.map +0 -1
  662. package/dist/packages/ui-web/src/lib/utils.js +0 -5
  663. package/dist/packages/ui-web/src/menubar.d.ts +0 -25
  664. package/dist/packages/ui-web/src/menubar.d.ts.map +0 -1
  665. package/dist/packages/ui-web/src/menubar.js +0 -46
  666. package/dist/packages/ui-web/src/navigation-menu.d.ts +0 -15
  667. package/dist/packages/ui-web/src/navigation-menu.d.ts.map +0 -1
  668. package/dist/packages/ui-web/src/navigation-menu.js +0 -23
  669. package/dist/packages/ui-web/src/pagination.d.ts +0 -31
  670. package/dist/packages/ui-web/src/pagination.d.ts.map +0 -1
  671. package/dist/packages/ui-web/src/pagination.js +0 -23
  672. package/dist/packages/ui-web/src/popover.d.ts +0 -10
  673. package/dist/packages/ui-web/src/popover.d.ts.map +0 -1
  674. package/dist/packages/ui-web/src/popover.js +0 -11
  675. package/dist/packages/ui-web/src/progress.d.ts +0 -7
  676. package/dist/packages/ui-web/src/progress.d.ts.map +0 -1
  677. package/dist/packages/ui-web/src/progress.js +0 -8
  678. package/dist/packages/ui-web/src/radio-group.d.ts +0 -11
  679. package/dist/packages/ui-web/src/radio-group.d.ts.map +0 -1
  680. package/dist/packages/ui-web/src/radio-group.js +0 -14
  681. package/dist/packages/ui-web/src/resizable.d.ts +0 -9
  682. package/dist/packages/ui-web/src/resizable.d.ts.map +0 -1
  683. package/dist/packages/ui-web/src/resizable.js +0 -17
  684. package/dist/packages/ui-web/src/scroll-area.d.ts +0 -8
  685. package/dist/packages/ui-web/src/scroll-area.d.ts.map +0 -1
  686. package/dist/packages/ui-web/src/scroll-area.js +0 -10
  687. package/dist/packages/ui-web/src/search.d.ts +0 -8
  688. package/dist/packages/ui-web/src/search.d.ts.map +0 -1
  689. package/dist/packages/ui-web/src/search.js +0 -48
  690. package/dist/packages/ui-web/src/select.d.ts +0 -16
  691. package/dist/packages/ui-web/src/select.d.ts.map +0 -1
  692. package/dist/packages/ui-web/src/select.js +0 -26
  693. package/dist/packages/ui-web/src/separator.d.ts +0 -7
  694. package/dist/packages/ui-web/src/separator.d.ts.map +0 -1
  695. package/dist/packages/ui-web/src/separator.js +0 -8
  696. package/dist/packages/ui-web/src/sheet.d.ts +0 -28
  697. package/dist/packages/ui-web/src/sheet.d.ts.map +0 -1
  698. package/dist/packages/ui-web/src/sheet.js +0 -37
  699. package/dist/packages/ui-web/src/skeleton.d.ts +0 -6
  700. package/dist/packages/ui-web/src/skeleton.d.ts.map +0 -1
  701. package/dist/packages/ui-web/src/skeleton.js +0 -6
  702. package/dist/packages/ui-web/src/slider.d.ts +0 -7
  703. package/dist/packages/ui-web/src/slider.d.ts.map +0 -1
  704. package/dist/packages/ui-web/src/slider.js +0 -8
  705. package/dist/packages/ui-web/src/sonner.d.ts +0 -8
  706. package/dist/packages/ui-web/src/sonner.d.ts.map +0 -1
  707. package/dist/packages/ui-web/src/sonner.js +0 -16
  708. package/dist/packages/ui-web/src/switch.d.ts +0 -7
  709. package/dist/packages/ui-web/src/switch.d.ts.map +0 -1
  710. package/dist/packages/ui-web/src/switch.js +0 -8
  711. package/dist/packages/ui-web/src/table.d.ts +0 -13
  712. package/dist/packages/ui-web/src/table.d.ts.map +0 -1
  713. package/dist/packages/ui-web/src/table.js +0 -21
  714. package/dist/packages/ui-web/src/tabs.d.ts +0 -10
  715. package/dist/packages/ui-web/src/tabs.d.ts.map +0 -1
  716. package/dist/packages/ui-web/src/tabs.js +0 -13
  717. package/dist/packages/ui-web/src/text.d.ts +0 -12
  718. package/dist/packages/ui-web/src/text.d.ts.map +0 -1
  719. package/dist/packages/ui-web/src/text.js +0 -40
  720. package/dist/packages/ui-web/src/textarea.d.ts +0 -7
  721. package/dist/packages/ui-web/src/textarea.d.ts.map +0 -1
  722. package/dist/packages/ui-web/src/textarea.js +0 -9
  723. package/dist/packages/ui-web/src/theme-provider.d.ts +0 -5
  724. package/dist/packages/ui-web/src/theme-provider.d.ts.map +0 -1
  725. package/dist/packages/ui-web/src/theme-provider.js +0 -6
  726. package/dist/packages/ui-web/src/theme-toggle.d.ts +0 -4
  727. package/dist/packages/ui-web/src/theme-toggle.d.ts.map +0 -1
  728. package/dist/packages/ui-web/src/theme-toggle.js +0 -29
  729. package/dist/packages/ui-web/src/toast.d.ts +0 -16
  730. package/dist/packages/ui-web/src/toast.d.ts.map +0 -1
  731. package/dist/packages/ui-web/src/toast.js +0 -33
  732. package/dist/packages/ui-web/src/toaster.d.ts +0 -3
  733. package/dist/packages/ui-web/src/toaster.d.ts.map +0 -1
  734. package/dist/packages/ui-web/src/toaster.js +0 -10
  735. package/dist/packages/ui-web/src/toggle-group.d.ts +0 -13
  736. package/dist/packages/ui-web/src/toggle-group.d.ts.map +0 -1
  737. package/dist/packages/ui-web/src/toggle-group.js +0 -21
  738. package/dist/packages/ui-web/src/toggle.d.ts +0 -9
  739. package/dist/packages/ui-web/src/toggle.d.ts.map +0 -1
  740. package/dist/packages/ui-web/src/toggle.js +0 -9
  741. package/dist/packages/ui-web/src/tooltip.d.ts +0 -13
  742. package/dist/packages/ui-web/src/tooltip.d.ts.map +0 -1
  743. package/dist/packages/ui-web/src/tooltip.js +0 -12
  744. package/dist/src/index.d.ts +0 -4
  745. package/dist/src/index.d.ts.map +0 -1
  746. package/dist/src/index.js +0 -3
  747. package/dist/toaster-BOqCGbZ6.js.map +0 -1
  748. package/dist/toaster-CmNmQ6jI.mjs.map +0 -1
  749. package/dist/utils-5NfNUIaP.js +0 -2
  750. package/dist/utils-BfGqxkzX.mjs +0 -8
  751. package/dist/vendor-B8N-rYkV.mjs.map +0 -1
  752. package/dist/vendor-D51Wvbw-.js +0 -68
  753. package/dist/vendor-D51Wvbw-.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.es.js","sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & DrawerContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background',\n className,\n )}\n {...props}\n >\n <div className=\"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerHeaderBaseProps) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerFooterBaseProps) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & DrawerTitleBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName;\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & DrawerDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName;\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n\nexport type {\n DrawerCloseBaseProps as DrawerCloseProps,\n DrawerContentBaseProps as DrawerContentProps,\n DrawerDescriptionBaseProps as DrawerDescriptionProps,\n DrawerFooterBaseProps as DrawerFooterProps,\n DrawerHeaderBaseProps as DrawerHeaderProps,\n DrawerBaseProps as DrawerProps,\n DrawerTitleBaseProps as DrawerTitleProps,\n DrawerTriggerBaseProps as DrawerTriggerProps,\n};\n"],"names":["Drawer","shouldScaleBackground","props","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","React","className","ref","cn","DrawerContent","children","jsxs","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":";;;AAiBA,MAAMA,IAAS,CAAC,EAAE,uBAAAC,IAAwB,IAAM,GAAGC,EAAA,MACjDC,gBAAAA,EAAAA,IAACC,EAAgB,MAAhB,EAAqB,uBAAAH,GAA+C,GAAGC,EAAA,CAAO;AAEjFF,EAAO,cAAc;AAErB,MAAMK,IAAgBD,EAAgB,SAEhCE,IAAeF,EAAgB,QAE/BG,IAAcH,EAAgB,OAE9BI,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA,IAACC,EAAgB,SAAhB,EAAwB,KAAAO,GAAU,WAAWC,EAAG,kCAAkCF,CAAS,GAAI,GAAGR,GAAO,CAC3G;AACDM,EAAc,cAAcJ,EAAgB,QAAQ;AAEpD,MAAMS,IAAgBJ,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAI,GAAU,GAAGZ,EAAA,GAASS,MACpCI,gBAAAA,EAAAA,KAACT,GAAA,EACC,UAAA;AAAA,EAAAH,gBAAAA,EAAAA,IAACK,GAAA,EAAc;AAAA,EACfO,gBAAAA,EAAAA;AAAAA,IAACX,EAAgB;AAAA,IAAhB;AAAA,MACC,KAAAO;AAAA,MACA,WAAWC;AAAA,QACT;AAAA,QACAF;AAAA,MAAA;AAAA,MAED,GAAGR;AAAA,MAEJ,UAAA;AAAA,QAAAC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,mDAAA,CAAmD;AAAA,QACjEW;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AACH,GACF,CACD;AACDD,EAAc,cAAc;AAE5B,MAAMG,IAAe,CAAC,EAAE,WAAAN,GAAW,GAAGR,EAAA,MACpCC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWS,EAAG,6CAA6CF,CAAS,GAAI,GAAGR,EAAA,CAAO;AAEzFc,EAAa,cAAc;AAE3B,MAAMC,IAAe,CAAC,EAAE,WAAAP,GAAW,GAAGR,EAAA,MACpCC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWS,EAAG,mCAAmCF,CAAS,GAAI,GAAGR,EAAA,CAAO;AAE/Ee,EAAa,cAAc;AAE3B,MAAMC,IAAcT,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA;AAAAA,EAACC,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAO;AAAA,IACA,WAAWC,EAAG,qDAAqDF,CAAS;AAAA,IAC3E,GAAGR;AAAA,EAAA;AACN,CACD;AACDgB,EAAY,cAAcd,EAAgB,MAAM;AAEhD,MAAMe,IAAoBV,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA,IAACC,EAAgB,aAAhB,EAA4B,KAAAO,GAAU,WAAWC,EAAG,iCAAiCF,CAAS,GAAI,GAAGR,GAAO,CAC9G;AACDiB,EAAkB,cAAcf,EAAgB,YAAY;"}
1
+ {"version":3,"file":"drawer.es.js","sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & DrawerContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerHeaderBaseProps) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerFooterBaseProps) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & DrawerTitleBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName;\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & DrawerDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName;\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n\nexport type {\n DrawerCloseBaseProps as DrawerCloseProps,\n DrawerContentBaseProps as DrawerContentProps,\n DrawerDescriptionBaseProps as DrawerDescriptionProps,\n DrawerFooterBaseProps as DrawerFooterProps,\n DrawerHeaderBaseProps as DrawerHeaderProps,\n DrawerBaseProps as DrawerProps,\n DrawerTitleBaseProps as DrawerTitleProps,\n DrawerTriggerBaseProps as DrawerTriggerProps,\n};\n"],"names":["Drawer","shouldScaleBackground","props","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","React","className","ref","cn","DrawerContent","children","jsxs","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":";;;AAiBA,MAAMA,IAAS,CAAC,EAAE,uBAAAC,IAAwB,IAAM,GAAGC,EAAA,MACjDC,gBAAAA,EAAAA,IAACC,EAAgB,MAAhB,EAAqB,uBAAAH,GAA+C,GAAGC,EAAA,CAAO;AAEjFF,EAAO,c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R,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA;AAAAA,EAACC,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAO;AAAA,IACA,WAAWC,EAAG,qDAAqDF,CAAS;AAAA,IAC3E,GAAGR;AAAA,EAAA;AACN,CACD;AACDgB,EAAY,cAAcd,EAAgB,MAAM;AAEhD,MAAMe,IAAoBV,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA,IAACC,EAAgB,aAAhB,EAA4B,KAAAO,GAAU,WAAWC,EAAG,iCAAiCF,CAAS,GAAI,GAAGR,GAAO,CAC9G;AACDiB,EAAkB,cAAcf,EAAgB,YAAY;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-D51Wvbw-.js"),g=require("react"),r=require("./utils-5NfNUIaP.js");function b(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const s=b(g),j=e.Root2$7,h=e.Trigger$6,R=e.Group2$2,y=e.Portal2$3,D=e.Sub2$2,M=e.RadioGroup2$2,i=s.forwardRef(({className:t,inset:o,children:n,...a},d)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2$2,{ref:d,className:r.cn("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",t),...a,children:[n,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto"})]}));i.displayName=e.SubTrigger2$2.displayName;const p=s.forwardRef(({className:t,...o},n)=>e.jsxRuntimeExports.jsx(e.SubContent2$2,{ref:n,className:r.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 origin-[--radix-dropdown-menu-content-transform-origin]",t),...o}));p.displayName=e.SubContent2$2.displayName;const c=s.forwardRef(({className:t,sideOffset:o=4,...n},a)=>e.jsxRuntimeExports.jsx(e.Portal2$3,{children:e.jsxRuntimeExports.jsx(e.Content2$6,{ref:a,sideOffset:o,className:r.cn("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-dropdown-menu-content-transform-origin]",t),...n})}));c.displayName=e.Content2$6.displayName;const u=s.forwardRef(({className:t,inset:o,...n},a)=>e.jsxRuntimeExports.jsx(e.Item2$2,{ref:a,className:r.cn("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",o&&"pl-8",t),...n}));u.displayName=e.Item2$2.displayName;const l=s.forwardRef(({className:t,children:o,checked:n,...a},d)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2$2,{ref:d,className:r.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$2,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),o]}));l.displayName=e.CheckboxItem2$2.displayName;const m=s.forwardRef(({className:t,children:o,...n},a)=>e.jsxRuntimeExports.jsxs(e.RadioItem2$2,{ref:a,className:r.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$2,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-2 w-2 fill-current"})})}),o]}));m.displayName=e.RadioItem2$2.displayName;const x=s.forwardRef(({className:t,inset:o,...n},a)=>e.jsxRuntimeExports.jsx(e.Label2$2,{ref:a,className:r.cn("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",t),...n}));x.displayName=e.Label2$2.displayName;const f=s.forwardRef(({className:t,...o},n)=>e.jsxRuntimeExports.jsx(e.Separator2$2,{ref:n,className:r.cn("-mx-1 my-1 h-px bg-muted",t),...o}));f.displayName=e.Separator2$2.displayName;const w=({className:t,...o})=>e.jsxRuntimeExports.jsx("span",{className:r.cn("ml-auto text-xs tracking-widest opacity-60",t),...o});w.displayName="DropdownMenuShortcut";exports.DropdownMenu=j;exports.DropdownMenuCheckboxItem=l;exports.DropdownMenuContent=c;exports.DropdownMenuGroup=R;exports.DropdownMenuItem=u;exports.DropdownMenuLabel=x;exports.DropdownMenuPortal=y;exports.DropdownMenuRadioGroup=M;exports.DropdownMenuRadioItem=m;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=w;exports.DropdownMenuSub=D;exports.DropdownMenuSubContent=p;exports.DropdownMenuSubTrigger=i;exports.DropdownMenuTrigger=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),g=require("react"),r=require("./utils-DKStzUzN.js");function b(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const s=b(g),j=e.Root2$7,h=e.Trigger$6,R=e.Group2$2,y=e.Portal2$3,D=e.Sub2$2,M=e.RadioGroup2$2,i=s.forwardRef(({className:t,inset:o,children:n,...a},d)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2$2,{ref:d,className:r.cn("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",t),...a,children:[n,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto"})]}));i.displayName=e.SubTrigger2$2.displayName;const p=s.forwardRef(({className:t,...o},n)=>e.jsxRuntimeExports.jsx(e.SubContent2$2,{ref:n,className:r.cn("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",t),...o}));p.displayName=e.SubContent2$2.displayName;const c=s.forwardRef(({className:t,sideOffset:o=4,...n},a)=>e.jsxRuntimeExports.jsx(e.Portal2$3,{children:e.jsxRuntimeExports.jsx(e.Content2$6,{ref:a,sideOffset:o,className:r.cn("bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 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 origin-[--radix-dropdown-menu-content-transform-origin]",t),...n})}));c.displayName=e.Content2$6.displayName;const u=s.forwardRef(({className:t,inset:o,...n},a)=>e.jsxRuntimeExports.jsx(e.Item2$2,{ref:a,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",o&&"pl-8",t),...n}));u.displayName=e.Item2$2.displayName;const l=s.forwardRef(({className:t,children:o,checked:n,...a},d)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2$2,{ref:d,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$2,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),o]}));l.displayName=e.CheckboxItem2$2.displayName;const m=s.forwardRef(({className:t,children:o,...n},a)=>e.jsxRuntimeExports.jsxs(e.RadioItem2$2,{ref:a,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$2,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-2 w-2 fill-current"})})}),o]}));m.displayName=e.RadioItem2$2.displayName;const x=s.forwardRef(({className:t,inset:o,...n},a)=>e.jsxRuntimeExports.jsx(e.Label2$2,{ref:a,className:r.cn("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",t),...n}));x.displayName=e.Label2$2.displayName;const f=s.forwardRef(({className:t,...o},n)=>e.jsxRuntimeExports.jsx(e.Separator2$2,{ref:n,className:r.cn("bg-muted -mx-1 my-1 h-px",t),...o}));f.displayName=e.Separator2$2.displayName;const w=({className:t,...o})=>e.jsxRuntimeExports.jsx("span",{className:r.cn("ml-auto text-xs tracking-widest opacity-60",t),...o});w.displayName="DropdownMenuShortcut";exports.DropdownMenu=j;exports.DropdownMenuCheckboxItem=l;exports.DropdownMenuContent=c;exports.DropdownMenuGroup=R;exports.DropdownMenuItem=u;exports.DropdownMenuLabel=x;exports.DropdownMenuPortal=y;exports.DropdownMenuRadioGroup=M;exports.DropdownMenuRadioItem=m;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=w;exports.DropdownMenuSub=D;exports.DropdownMenuSubContent=p;exports.DropdownMenuSubTrigger=i;exports.DropdownMenuTrigger=h;
2
2
  //# sourceMappingURL=dropdown-menu.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.cjs.js","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\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 = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.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 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\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 transition-colors 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 <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\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 transition-colors 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 <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":"scAwBMA,EAAeC,EAAAA,QAEfC,EAAsBC,EAAAA,UAEtBC,EAAoBC,EAAAA,SAEpBC,EAAqBC,EAAAA,UAEr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AAC,CAAE,UAAAC,EAAW,GAAGG,CAAA,EAASC,IAC1BI,EAAAA,kBAAAA,IAACoB,EAAAA,aAAA,CAAgC,IAAAxB,EAAU,UAAWG,EAAAA,GAAG,2BAA4BP,CAAS,EAAI,GAAGG,EAAO,CAC7G,EACDwB,EAAsB,YAAcC,EAAAA,aAAgC,YAEpE,MAAMC,EAAuB,CAAC,CAC5B,UAAA7B,EACA,GAAGG,CACL,IACSK,EAAAA,kBAAAA,IAAC,QAAK,UAAWD,EAAAA,GAAG,6CAA8CP,CAAS,EAAI,GAAGG,EAAO,EAElG0B,EAAqB,YAAc"}
1
+ {"version":3,"file":"dropdown-menu.cjs.js","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\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 = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 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 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none 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 <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none 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 <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":"scAwBMA,EAAeC,EAAAA,QAEfC,EAAsBC,EAAAA,UAEtBC,EAAoBC,EAAAA,SAEpBC,EAAqBC,EAAAA,UAErBC,EAAkBC,EAAAA,OAElBC,EAAyBC,EAAAA,cAEzBC,EAAyBC,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC3CC,EAAAA,kBAAAA,KAACC,EAAAA,cAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,yMACAN,GAAS,OACTD,CAAA,EAED,GAAGG,EAEH,SAAA,CAAAD,EACDM,EAAAA,kBAAAA,IAACC,EAAAA,aAAA,CAAa,UAAU,SAAA,CAAU,CAAA,CAAA,CACpC,CACD,EACDX,EAAuB,YAAcQ,EAAAA,cAAiC,YAEtE,MAAMI,EAAyBX,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAA,EAASC,IAC1BI,EAAAA,kBAAAA,IAACG,EAAAA,cAAA,CACC,IAAAP,EACA,UAAWG,EAAAA,GACT,gfACAP,CAAA,EAED,GAAGG,CAAA,CACN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aAAA,CACC,IAAAnB,EACA,UAAWG,EAAAA,GACT,uOACAP,CAAA,EAED,GAAGG,EAEJ,SAAA,CAAAK,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,+DACd,SAAAA,EAAAA,kBAAAA,IAACY,EAAAA,iBAAA,CACC,SAAAZ,EAAAA,kBAAAA,IAACgB,EAAAA,OAAA,CAAO,UAAU,sBAAA,CAAuB,CAAA,CAC3C,EACF,EACCtB,CAAA,CAAA,CACH,CACD,EACDoB,EAAsB,YAAcC,EAAAA,aAAgC,YAEpE,MAAME,EAAoB1B,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGE,GAASC,IACjCI,EAAAA,kBAAAA,IAACkB,EAAAA,SAAA,CACC,IAAAtB,EACA,UAAWG,EAAAA,GAAG,oCAAqCN,GAAS,OAAQD,CAAS,EAC5E,GAAGG,CAAA,CACN,CACD,EACDsB,EAAkB,YAAcC,EAAAA,SAA4B,YAE5D,MAAMC,EAAwB5B,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAA,EAASC,IAC1BI,EAAAA,kBAAAA,IAACoB,EAAAA,aAAA,CAAgC,IAAAxB,EAAU,UAAWG,EAAAA,GAAG,2BAA4BP,CAAS,EAAI,GAAGG,EAAO,CAC7G,EACDwB,EAAsB,YAAcC,EAAAA,aAAgC,YAEpE,MAAMC,EAAuB,CAAC,CAC5B,UAAA7B,EACA,GAAGG,CACL,IACSK,EAAAA,kBAAAA,IAAC,QAAK,UAAWD,EAAAA,GAAG,6CAA8CP,CAAS,EAAI,GAAGG,EAAO,EAElG0B,EAAqB,YAAc"}
@@ -0,0 +1,124 @@
1
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
6
+
7
+ export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>>;
8
+
9
+ export declare interface DropdownMenuCheckboxItemProps {
10
+ className?: string;
11
+ children?: React_2.ReactNode;
12
+ checked?: boolean | 'indeterminate';
13
+ onCheckedChange?: (checked: boolean) => void;
14
+ disabled?: boolean;
15
+ }
16
+
17
+ export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>>;
18
+
19
+ export declare interface DropdownMenuContentProps {
20
+ className?: string;
21
+ children?: React_2.ReactNode;
22
+ side?: 'top' | 'right' | 'bottom' | 'left';
23
+ align?: 'start' | 'center' | 'end';
24
+ sideOffset?: number;
25
+ alignOffset?: number;
26
+ }
27
+
28
+ export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
29
+
30
+ export declare interface DropdownMenuGroupProps {
31
+ children?: React_2.ReactNode;
32
+ }
33
+
34
+ export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>>;
35
+
36
+ export declare interface DropdownMenuItemProps {
37
+ className?: string;
38
+ children?: React_2.ReactNode;
39
+ inset?: boolean;
40
+ disabled?: boolean;
41
+ onSelect?: (event: Event) => void;
42
+ }
43
+
44
+ export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>>;
45
+
46
+ export declare interface DropdownMenuLabelProps {
47
+ className?: string;
48
+ children?: React_2.ReactNode;
49
+ inset?: boolean;
50
+ }
51
+
52
+ export declare const DropdownMenuPortal: React_2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
53
+
54
+ export declare interface DropdownMenuProps {
55
+ children?: React_2.ReactNode;
56
+ open?: boolean;
57
+ onOpenChange?: (open: boolean) => void;
58
+ modal?: boolean;
59
+ }
60
+
61
+ export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
62
+
63
+ export declare interface DropdownMenuRadioGroupProps {
64
+ children?: React_2.ReactNode;
65
+ value?: string;
66
+ onValueChange?: (value: string) => void;
67
+ }
68
+
69
+ export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
70
+
71
+ export declare interface DropdownMenuRadioItemProps {
72
+ className?: string;
73
+ children?: React_2.ReactNode;
74
+ value: string;
75
+ disabled?: boolean;
76
+ }
77
+
78
+ export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
79
+
80
+ export declare interface DropdownMenuSeparatorProps {
81
+ className?: string;
82
+ }
83
+
84
+ export declare const DropdownMenuShortcut: {
85
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutProps): JSX.Element;
86
+ displayName: string;
87
+ };
88
+
89
+ export declare interface DropdownMenuShortcutProps {
90
+ className?: string;
91
+ children?: React_2.ReactNode;
92
+ }
93
+
94
+ export declare const DropdownMenuSub: React_2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
95
+
96
+ export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>>;
97
+
98
+ export declare interface DropdownMenuSubContentProps {
99
+ className?: string;
100
+ children?: React_2.ReactNode;
101
+ }
102
+
103
+ export declare interface DropdownMenuSubProps {
104
+ children?: React_2.ReactNode;
105
+ open?: boolean;
106
+ onOpenChange?: (open: boolean) => void;
107
+ }
108
+
109
+ export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>>;
110
+
111
+ export declare interface DropdownMenuSubTriggerProps {
112
+ className?: string;
113
+ children?: React_2.ReactNode;
114
+ inset?: boolean;
115
+ }
116
+
117
+ export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
118
+
119
+ export declare interface DropdownMenuTriggerProps {
120
+ children: React_2.ReactNode;
121
+ asChild?: boolean;
122
+ }
123
+
124
+ export { }
@@ -1,12 +1,12 @@
1
- import { j as o, b1 as i, l as w, b2 as l, b3 as c, b4 as m, b5 as p, b6 as u, b7 as f, w as h, b8 as b, V as N, b9 as x, ba as g, bb as y, bc as v, bd as j, be as D, bf as M } from "./vendor-B8N-rYkV.mjs";
1
+ import { j as o, b1 as i, l as w, b2 as l, b3 as c, b4 as m, b5 as p, b6 as u, b7 as f, w as h, b8 as b, V as N, b9 as x, ba as g, bb as y, bc as v, bd as j, be as D, bf as M } from "./vendor-DxBXMLEx.mjs";
2
2
  import * as r from "react";
3
- import { c as n } from "./utils-BfGqxkzX.mjs";
3
+ import { c as n } from "./utils-Dk-Gx69q.mjs";
4
4
  const E = y, V = M, q = v, A = c, B = D, F = j, R = r.forwardRef(({ className: e, inset: a, children: t, ...s }, d) => /* @__PURE__ */ o.jsxs(
5
5
  i,
6
6
  {
7
7
  ref: d,
8
8
  className: n(
9
- "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
9
+ "focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
10
10
  a && "pl-8",
11
11
  e
12
12
  ),
@@ -23,7 +23,7 @@ const S = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
23
23
  {
24
24
  ref: t,
25
25
  className: n(
26
- "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 origin-[--radix-dropdown-menu-content-transform-origin]",
26
+ "bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
27
27
  e
28
28
  ),
29
29
  ...a
@@ -36,7 +36,7 @@ const C = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, s) => /* @__P
36
36
  ref: s,
37
37
  sideOffset: a,
38
38
  className: n(
39
- "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
39
+ "bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
40
40
  "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 origin-[--radix-dropdown-menu-content-transform-origin]",
41
41
  e
42
42
  ),
@@ -49,7 +49,7 @@ const z = r.forwardRef(({ className: e, inset: a, ...t }, s) => /* @__PURE__ */
49
49
  {
50
50
  ref: s,
51
51
  className: n(
52
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
52
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
53
53
  a && "pl-8",
54
54
  e
55
55
  ),
@@ -62,7 +62,7 @@ const I = r.forwardRef(({ className: e, children: a, checked: t, ...s }, d) => /
62
62
  {
63
63
  ref: d,
64
64
  className: n(
65
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
65
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
66
66
  e
67
67
  ),
68
68
  checked: t,
@@ -79,7 +79,7 @@ const k = r.forwardRef(({ className: e, children: a, ...t }, s) => /* @__PURE__
79
79
  {
80
80
  ref: s,
81
81
  className: n(
82
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
82
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
83
83
  e
84
84
  ),
85
85
  ...t,
@@ -99,7 +99,7 @@ const G = r.forwardRef(({ className: e, inset: a, ...t }, s) => /* @__PURE__ */
99
99
  }
100
100
  ));
101
101
  G.displayName = x.displayName;
102
- const T = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(g, { ref: t, className: n("-mx-1 my-1 h-px bg-muted", e), ...a }));
102
+ const T = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(g, { ref: t, className: n("bg-muted -mx-1 my-1 h-px", e), ...a }));
103
103
  T.displayName = g.displayName;
104
104
  const _ = ({
105
105
  className: e,
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.es.js","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\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 = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.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 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\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 transition-colors 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 <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\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 transition-colors 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 <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":";;;AAwBA,MAAMA,IAAeC,GAEfC,IAAsBC,GAEtBC,IAAoBC,GAEpBC,IAAqBC,GAErBC,IAAkBC,GAElBC,IAAyBC,GAEzBC,IAAyBC,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,GAAGC,KAASC,MAC3CC,gBAAAA,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D,CAAS;AAAA,IAC5E,GAAGG;AAAA,EAAA;AACN,CACD;AACDsB,EAAkB,cAAcC,EAA4B;AAE5D,MAAMC,IAAwB5B,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGG,EAAA,GAASC,MAC1BI,gBAAAA,EAAAA,IAACoB,GAAA,EAAgC,KAAAxB,GAAU,WAAWG,EAAG,4BAA4BP,CAAS,GAAI,GAAGG,GAAO,CAC7G;AACDwB,EAAsB,cAAcC,EAAgC;AAEpE,MAAMC,IAAuB,CAAC;AAAA,EAC5B,WAAA7B;AAAA,EACA,GAAGG;AACL,MACSK,gBAAAA,EAAAA,IAAC,UAAK,WAAWD,EAAG,8CAA8CP,CAAS,GAAI,GAAGG,GAAO;AAElG0B,EAAqB,cAAc;"}
1
+ {"version":3,"file":"dropdown-menu.es.js","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\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 = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 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 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none 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 <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none 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 <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":";;;AAwBA,MAAMA,IAAeC,GAEfC,IAAsBC,GAEtBC,IAAoBC,GAEpBC,IAAqBC,GAErBC,IAAkBC,GAElBC,IAAyBC,GAEzBC,IAAyBC,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,GAAGC,KAASC,MAC3CC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN,KAAS;AAAA,MACTD;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACDM,gBAAAA,EAAAA,IAACC,GAAA,EAAa,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACpC,CACD;AACDX,EAAuB,cAAcQ,EAAiC;AAEtE,MAAMI,IAAyBX,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGG,EAAA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ACL,MACSK,gBAAAA,EAAAA,IAAC,UAAK,WAAWD,EAAG,8CAA8CP,CAAS,GAAI,GAAGG,GAAO;AAElG0B,EAAqB,cAAc;"}
package/dist/form.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./vendor-D51Wvbw-.js"),b=require("react"),g=require("./label.cjs.js"),c=require("./utils-5NfNUIaP.js");function I(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=I(b),R=s.FormProvider,l=n.createContext(null),y=({...e})=>s.jsxRuntimeExports.jsx(l.Provider,{value:{name:e.name},children:s.jsxRuntimeExports.jsx(s.Controller,{...e})}),a=()=>{const e=n.useContext(l),r=n.useContext(u),{getFieldState:t,formState:o}=s.useFormContext();if(!e)throw new Error("useFormField should be used within <FormField>");if(!r)throw new Error("useFormField should be used within <FormItem>");const m=t(e.name,o),{id:i}=r;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...m}},u=n.createContext(null),f=n.forwardRef(({className:e,...r},t)=>{const o=n.useId();return s.jsxRuntimeExports.jsx(u.Provider,{value:{id:o},children:s.jsxRuntimeExports.jsx("div",{ref:t,className:c.cn("space-y-2",e),...r})})});f.displayName="FormItem";const F=n.forwardRef(({className:e,...r},t)=>{const{error:o,formItemId:m}=a();return s.jsxRuntimeExports.jsx(g.Label,{ref:t,className:c.cn(o&&"text-destructive",e),htmlFor:m,...r})});F.displayName="FormLabel";const x=n.forwardRef(({...e},r)=>{const{error:t,formItemId:o,formDescriptionId:m,formMessageId:i}=a();return s.jsxRuntimeExports.jsx(s.Slot,{ref:r,id:o,"aria-describedby":t?`${m} ${i}`:`${m}`,"aria-invalid":!!t,...e})});x.displayName="FormControl";const p=n.forwardRef(({className:e,...r},t)=>{const{formDescriptionId:o}=a();return s.jsxRuntimeExports.jsx("p",{ref:t,id:o,className:c.cn("text-[0.8rem] text-muted-foreground",e),...r})});p.displayName="FormDescription";const j=n.forwardRef(({className:e,children:r,...t},o)=>{const{error:m,formMessageId:i}=a(),d=m?String(m?.message??""):r;return d?s.jsxRuntimeExports.jsx("p",{ref:o,id:i,className:c.cn("text-[0.8rem] font-medium text-destructive",e),...t,children:d}):null});j.displayName="FormMessage";exports.Form=R;exports.FormControl=x;exports.FormDescription=p;exports.FormField=y;exports.FormItem=f;exports.FormLabel=F;exports.FormMessage=j;exports.useFormField=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./vendor-DQFuDa7q.js"),b=require("react"),g=require("./label.cjs.js"),c=require("./utils-DKStzUzN.js");function I(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=I(b),R=s.FormProvider,l=n.createContext(null),y=({...e})=>s.jsxRuntimeExports.jsx(l.Provider,{value:{name:e.name},children:s.jsxRuntimeExports.jsx(s.Controller,{...e})}),a=()=>{const e=n.useContext(l),r=n.useContext(u),{getFieldState:t,formState:o}=s.useFormContext();if(!e)throw new Error("useFormField should be used within <FormField>");if(!r)throw new Error("useFormField should be used within <FormItem>");const m=t(e.name,o),{id:i}=r;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...m}},u=n.createContext(null),f=n.forwardRef(({className:e,...r},t)=>{const o=n.useId();return s.jsxRuntimeExports.jsx(u.Provider,{value:{id:o},children:s.jsxRuntimeExports.jsx("div",{ref:t,className:c.cn("space-y-2",e),...r})})});f.displayName="FormItem";const F=n.forwardRef(({className:e,...r},t)=>{const{error:o,formItemId:m}=a();return s.jsxRuntimeExports.jsx(g.Label,{ref:t,className:c.cn(o&&"text-destructive",e),htmlFor:m,...r})});F.displayName="FormLabel";const x=n.forwardRef(({...e},r)=>{const{error:t,formItemId:o,formDescriptionId:m,formMessageId:i}=a();return s.jsxRuntimeExports.jsx(s.Slot,{ref:r,id:o,"aria-describedby":t?`${m} ${i}`:`${m}`,"aria-invalid":!!t,...e})});x.displayName="FormControl";const p=n.forwardRef(({className:e,...r},t)=>{const{formDescriptionId:o}=a();return s.jsxRuntimeExports.jsx("p",{ref:t,id:o,className:c.cn("text-muted-foreground text-[0.8rem]",e),...r})});p.displayName="FormDescription";const j=n.forwardRef(({className:e,children:r,...t},o)=>{const{error:m,formMessageId:i}=a(),d=m?String(m?.message??""):r;return d?s.jsxRuntimeExports.jsx("p",{ref:o,id:i,className:c.cn("text-destructive text-[0.8rem] font-medium",e),...t,children:d}):null});j.displayName="FormMessage";exports.Form=R;exports.FormControl=x;exports.FormDescription=p;exports.FormField=y;exports.FormItem=f;exports.FormLabel=F;exports.FormMessage=j;exports.useFormField=a;
2
2
  //# sourceMappingURL=form.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.cjs.js","sources":["../packages/ui-web/src/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport * as React from 'react';\nimport {\n Controller,\n FormProvider,\n useFormContext,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n} from 'react-hook-form';\n\nimport {\n FormControlBaseProps,\n FormDescriptionBaseProps,\n FormItemBaseProps,\n FormLabelBaseProps,\n FormMessageBaseProps,\n} from '@gv-tech/ui-core';\nimport { Label } from './label';\nimport { cn } from './lib/utils';\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 Error('useFormField should be used within <FormField>');\n }\n\n if (!itemContext) {\n throw new Error('useFormField should be used within <FormItem>');\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-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 | null>(null);\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & FormItemBaseProps>(\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 },\n);\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & FormLabelBaseProps\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return <Label ref={ref} className={cn(error && 'text-destructive', className)} htmlFor={formItemId} {...props} />;\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<React.ElementRef<typeof Slot>, 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={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n },\n);\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormDescriptionBaseProps\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p ref={ref} id={formDescriptionId} className={cn('text-[0.8rem] text-muted-foreground', className)} {...props} />\n );\n});\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormMessageBaseProps\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 ref={ref} id={formMessageId} className={cn('text-[0.8rem] font-medium text-destructive', className)} {...props}>\n {body}\n </p>\n );\n});\nFormMessage.displayName = 'FormMessage';\n\nexport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };\nexport type {\n FormControlBaseProps as FormControlProps,\n FormDescriptionBaseProps as FormDescriptionProps,\n FormItemBaseProps as FormItemProps,\n FormLabelBaseProps as FormLabelProps,\n FormMessageBaseProps as FormMessageProps,\n};\n"],"names":["Form","FormProvider","FormFieldContext","React","FormField","props","jsx","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body"],"mappings":"keAwBMA,EAAOC,EAAAA,aASPC,EAAmBC,EAAM,cAA4C,IAAI,EAEzEC,EAAY,CAGhB,CACA,GAAGC,CACL,IAEIC,EAAAA,kBAAAA,IAACJ,EAAiB,SAAjB,CAA0B,MAAO,CAAE,KAAMG,EAAM,IAA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AAMI,EAActB,EAAM,WACxB,CAAC,CAAE,GAAGE,CAAA,EAASc,IAAQ,CACrB,KAAM,CAAE,MAAAG,EAAO,WAAAC,EAAY,kBAAAG,EAAmB,cAAAC,CAAA,EAAkBnB,EAAA,EAEhE,OACEF,EAAAA,kBAAAA,IAACsB,EAAAA,KAAA,CACC,IAAAT,EACA,GAAII,EACJ,mBAAmBD,EAAiC,GAAGI,CAAiB,IAAIC,CAAa,GAA9D,GAAGD,CAAiB,GAC/C,eAAc,CAAC,CAACJ,EACf,GAAGjB,CAAA,CAAA,CAGV,CACF,EACAoB,EAAY,YAAc,cAE1B,MAAMI,EAAkB1B,EAAM,WAG5B,CAAC,CAAE,UAAAe,EAAW,GAAGb,CAAA,EAASc,IAAQ,CAClC,KAAM,CAAE,kBAAAO,CAAA,EAAsBlB,EAAA,EAE9B,OACEF,EAAAA,kBAAAA,IAAC,IAAA,CAAE,IAAAa,EAAU,GAAIO,EAAmB,UAAWN,EAAAA,GAAG,sCAAuCF,CAAS,EAAI,GAAGb,CAAA,CAAO,CAEpH,CAAC,EACDwB,EAAgB,YAAc,kBAE9B,MAAMC,EAAc3B,EAAM,WAGxB,CAAC,CAAE,UAAAe,EAAW,SAAAa,EAAU,GAAG1B,CAAA,EAASc,IAAQ,CAC5C,KAAM,CAAE,MAAAG,EAAO,cAAAK,CAAA,EAAkBnB,EAAA,EAC3BwB,EAAOV,EAAQ,OAAOA,GAAO,SAAW,EAAE,EAAIS,EAEpD,OAAKC,EAKH1B,EAAAA,kBAAAA,IAAC,IAAA,CAAE,IAAAa,EAAU,GAAIQ,EAAe,UAAWP,EAAAA,GAAG,6CAA8CF,CAAS,EAAI,GAAGb,EACzG,SAAA2B,CAAA,CACH,EANO,IAQX,CAAC,EACDF,EAAY,YAAc"}
1
+ {"version":3,"file":"form.cjs.js","sources":["../packages/ui-web/src/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport * as React from 'react';\nimport {\n Controller,\n FormProvider,\n useFormContext,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n} from 'react-hook-form';\n\nimport {\n FormControlBaseProps,\n FormDescriptionBaseProps,\n FormItemBaseProps,\n FormLabelBaseProps,\n FormMessageBaseProps,\n} from '@gv-tech/ui-core';\nimport { Label } from './label';\nimport { cn } from './lib/utils';\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 Error('useFormField should be used within <FormField>');\n }\n\n if (!itemContext) {\n throw new Error('useFormField should be used within <FormItem>');\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-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 | null>(null);\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & FormItemBaseProps>(\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 },\n);\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & FormLabelBaseProps\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return <Label ref={ref} className={cn(error && 'text-destructive', className)} htmlFor={formItemId} {...props} />;\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<React.ElementRef<typeof Slot>, 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={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n },\n);\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormDescriptionBaseProps\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p ref={ref} id={formDescriptionId} className={cn('text-muted-foreground text-[0.8rem]', className)} {...props} />\n );\n});\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormMessageBaseProps\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 ref={ref} id={formMessageId} className={cn('text-destructive text-[0.8rem] font-medium', className)} {...props}>\n {body}\n </p>\n );\n});\nFormMessage.displayName = 'FormMessage';\n\nexport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };\nexport type {\n FormControlBaseProps as FormControlProps,\n FormDescriptionBaseProps as FormDescriptionProps,\n FormItemBaseProps as FormItemProps,\n FormLabelBaseProps as FormLabelProps,\n FormMessageBaseProps as FormMessageProps,\n};\n"],"names":["Form","FormProvider","FormFieldContext","React","FormField","props","jsx","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body"],"mappings":"keAwBMA,EAAOC,EAAAA,aASPC,EAAmBC,EAAM,cAA4C,IAAI,EAEzEC,EAAY,CAGhB,CACA,GAAGC,CACL,IAEIC,EAAAA,kBAAAA,IAACJ,EAAiB,SAAjB,CAA0B,MAAO,CAAE,KAAMG,EAAM,IAAA,EAC9C,SAAAC,EAAAA,kBAAAA,IAACC,EAAAA,WAAA,CAAY,GAAGF,EAAO,EACzB,EAIEG,EAAe,IAAM,CACzB,MAAMC,EAAeN,EAAM,WAAWD,CAAgB,EAChDQ,EAAcP,EAAM,WAAWQ,CAAe,EAC9C,CAAE,cAAAC,EAAe,UAAAC,CAAA,EAAcC,iBAAA,EAErC,GAAI,CAACL,EACH,MAAM,IAAI,MAAM,gDAAgD,EAGlE,GAAI,CAACC,EACH,MAAM,IAAI,MAAM,+CAA+C,EAGjE,MAAMK,EAAaH,EAAcH,EAAa,KAAMI,CAAS,EAEvD,CAAE,GAAAG,GAAON,EAEf,MAAO,CACL,GAAAM,EACA,KAAMP,EAAa,KACnB,WAAY,GAAGO,CAAE,aACjB,kBAAmB,GAAGA,CAAE,yBACxB,cAAe,GAAGA,CAAE,qBACpB,GAAGD,CAAA,CAEP,EAMMJ,EAAkBR,EAAM,cAA2C,IAAI,EAEvEc,EAAWd,EAAM,WACrB,CAAC,CAAE,UAAAe,EAAW,GAAGb,CAAA,EAASc,IAAQ,CAChC,MAAMH,EAAKb,EAAM,MAAA,EAEjB,+BACGQ,EAAgB,SAAhB,CAAyB,MAAO,CAAE,GAAAK,GACjC,SAAAV,EAAAA,kBAAAA,IAAC,MAAA,CAAI,IAAAa,EAAU,UAAWC,KAAG,YAAaF,CAAS,EAAI,GAAGb,EAAO,EACnE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,EAAQ,OAAOA,GAAO,SAAW,EAAE,EAAIS,EAEpD,OAAKC,EAKH1B,EAAAA,kBAAAA,IAAC,IAAA,CAAE,IAAAa,EAAU,GAAIQ,EAAe,UAAWP,EAAAA,GAAG,6CAA8CF,CAAS,EAAI,GAAGb,EACzG,SAAA2B,CAAA,CACH,EANO,IAQX,CAAC,EACDF,EAAY,YAAc"}
package/dist/form.d.ts ADDED
@@ -0,0 +1,62 @@
1
+ import { ControllerProps } from 'react-hook-form';
2
+ import { FieldError } from 'react-hook-form';
3
+ import { FieldPath } from 'react-hook-form';
4
+ import { FieldValues } from 'react-hook-form';
5
+ import { FormProviderProps } from 'react-hook-form';
6
+ import { JSX } from 'react/jsx-runtime';
7
+ import * as LabelPrimitive from '@radix-ui/react-label';
8
+ import * as React_2 from 'react';
9
+ import { SlotProps } from '@radix-ui/react-slot';
10
+
11
+ export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
12
+
13
+ export declare const FormControl: React_2.ForwardRefExoticComponent<Omit< SlotProps & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLElement>>;
14
+
15
+ export declare interface FormControlProps {
16
+ children?: React_2.ReactNode;
17
+ }
18
+
19
+ export declare const FormDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLParagraphElement> & FormDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>>;
20
+
21
+ export declare interface FormDescriptionProps {
22
+ className?: string;
23
+ children?: React_2.ReactNode;
24
+ }
25
+
26
+ export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
27
+
28
+ export declare const FormItem: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & FormItemProps & React_2.RefAttributes<HTMLDivElement>>;
29
+
30
+ export declare interface FormItemProps {
31
+ className?: string;
32
+ children?: React_2.ReactNode;
33
+ }
34
+
35
+ export declare const FormLabel: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & FormLabelProps & React_2.RefAttributes<HTMLLabelElement>>;
36
+
37
+ export declare interface FormLabelProps {
38
+ className?: string;
39
+ children?: React_2.ReactNode;
40
+ }
41
+
42
+ export declare const FormMessage: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLParagraphElement> & FormMessageProps & React_2.RefAttributes<HTMLParagraphElement>>;
43
+
44
+ export declare interface FormMessageProps {
45
+ className?: string;
46
+ children?: React_2.ReactNode;
47
+ }
48
+
49
+ export declare const useFormField: () => {
50
+ invalid: boolean;
51
+ isDirty: boolean;
52
+ isTouched: boolean;
53
+ isValidating: boolean;
54
+ error?: FieldError;
55
+ id: string;
56
+ name: string;
57
+ formItemId: string;
58
+ formDescriptionId: string;
59
+ formMessageId: string;
60
+ };
61
+
62
+ export { }
package/dist/form.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { j as i, S as u, a2 as F, a3 as x, a4 as p } from "./vendor-B8N-rYkV.mjs";
1
+ import { j as i, S as u, a2 as F, a3 as x, a4 as p } from "./vendor-DxBXMLEx.mjs";
2
2
  import * as s from "react";
3
3
  import { Label as I } from "./label.es.js";
4
- import { c as a } from "./utils-BfGqxkzX.mjs";
4
+ import { c as a } from "./utils-Dk-Gx69q.mjs";
5
5
  const y = x, l = s.createContext(null), R = ({
6
6
  ...e
7
7
  }) => /* @__PURE__ */ i.jsx(l.Provider, { value: { name: e.name }, children: /* @__PURE__ */ i.jsx(p, { ...e }) }), d = () => {
@@ -49,12 +49,12 @@ const g = s.forwardRef(
49
49
  g.displayName = "FormControl";
50
50
  const h = s.forwardRef(({ className: e, ...r }, o) => {
51
51
  const { formDescriptionId: t } = d();
52
- return /* @__PURE__ */ i.jsx("p", { ref: o, id: t, className: a("text-[0.8rem] text-muted-foreground", e), ...r });
52
+ return /* @__PURE__ */ i.jsx("p", { ref: o, id: t, className: a("text-muted-foreground text-[0.8rem]", e), ...r });
53
53
  });
54
54
  h.displayName = "FormDescription";
55
55
  const j = s.forwardRef(({ className: e, children: r, ...o }, t) => {
56
56
  const { error: m, formMessageId: n } = d(), c = m ? String(m?.message ?? "") : r;
57
- return c ? /* @__PURE__ */ i.jsx("p", { ref: t, id: n, className: a("text-[0.8rem] font-medium text-destructive", e), ...o, children: c }) : null;
57
+ return c ? /* @__PURE__ */ i.jsx("p", { ref: t, id: n, className: a("text-destructive text-[0.8rem] font-medium", e), ...o, children: c }) : null;
58
58
  });
59
59
  j.displayName = "FormMessage";
60
60
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"form.es.js","sources":["../packages/ui-web/src/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport * as React from 'react';\nimport {\n Controller,\n FormProvider,\n useFormContext,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n} from 'react-hook-form';\n\nimport {\n FormControlBaseProps,\n FormDescriptionBaseProps,\n FormItemBaseProps,\n FormLabelBaseProps,\n FormMessageBaseProps,\n} from '@gv-tech/ui-core';\nimport { Label } from './label';\nimport { cn } from './lib/utils';\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 Error('useFormField should be used within <FormField>');\n }\n\n if (!itemContext) {\n throw new Error('useFormField should be used within <FormItem>');\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-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 | null>(null);\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & FormItemBaseProps>(\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 },\n);\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & FormLabelBaseProps\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return <Label ref={ref} className={cn(error && 'text-destructive', className)} htmlFor={formItemId} {...props} />;\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<React.ElementRef<typeof Slot>, 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={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n },\n);\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormDescriptionBaseProps\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p ref={ref} id={formDescriptionId} className={cn('text-[0.8rem] text-muted-foreground', className)} {...props} />\n );\n});\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormMessageBaseProps\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 ref={ref} id={formMessageId} className={cn('text-[0.8rem] font-medium text-destructive', className)} {...props}>\n {body}\n </p>\n );\n});\nFormMessage.displayName = 'FormMessage';\n\nexport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };\nexport type {\n FormControlBaseProps as FormControlProps,\n FormDescriptionBaseProps as FormDescriptionProps,\n FormItemBaseProps as FormItemProps,\n FormLabelBaseProps as FormLabelProps,\n FormMessageBaseProps as FormMessageProps,\n};\n"],"names":["Form","FormProvider","FormFieldContext","React","FormField","props","jsx","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body"],"mappings":";;;;AAwBA,MAAMA,IAAOC,GASPC,IAAmBC,EAAM,cAA4C,IAAI,GAEzEC,IAAY,CAGhB;AAAA,EACA,GAAGC;AACL,MAEIC,gBAAAA,EAAAA,IAACJ,EAAiB,UAAjB,EAA0B,OAAO,EAAE,MAAMG,EAAM,KAAA,GAC9C,UAAAC,gBAAAA,EAAAA,IAACC,GAAA,EAAY,GAAGF,GAAO,GACzB,GAIEG,IAAe,MAAM;AACzB,QAAMC,IAAeN,EAAM,WAAWD,CAAgB,GAChDQ,IAAcP,EAAM,WAAWQ,CAAe,GAC9C,EAAE,eAAAC,GAAe,WAAAC,EAAA,IAAcC,EAAA;AAErC,MAAI,CAACL;AACH,UAAM,IAAI,MAAM,gDAAgD;AAGlE,MAA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AA,QACJ,oBAAmBD,IAAiC,GAAGI,CAAiB,IAAIC,CAAa,KAA9D,GAAGD,CAAiB;AAAA,QAC/C,gBAAc,CAAC,CAACJ;AAAA,QACf,GAAGjB;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AACAoB,EAAY,cAAc;AAE1B,MAAMI,IAAkB1B,EAAM,WAG5B,CAAC,EAAE,WAAAe,GAAW,GAAGb,EAAA,GAASc,MAAQ;AAClC,QAAM,EAAE,mBAAAO,EAAA,IAAsBlB,EAAA;AAE9B,SACEF,gBAAAA,EAAAA,IAAC,KAAA,EAAE,KAAAa,GAAU,IAAIO,GAAmB,WAAWN,EAAG,uCAAuCF,CAAS,GAAI,GAAGb,EAAA,CAAO;AAEpH,CAAC;AACDwB,EAAgB,cAAc;AAE9B,MAAMC,IAAc3B,EAAM,WAGxB,CAAC,EAAE,WAAAe,GAAW,UAAAa,GAAU,GAAG1B,EAAA,GAASc,MAAQ;AAC5C,QAAM,EAAE,OAAAG,GAAO,eAAAK,EAAA,IAAkBnB,EAAA,GAC3BwB,IAAOV,IAAQ,OAAOA,GAAO,WAAW,EAAE,IAAIS;AAEpD,SAAKC,IAKH1B,gBAAAA,EAAAA,IAAC,KAAA,EAAE,KAAAa,GAAU,IAAIQ,GAAe,WAAWP,EAAG,8CAA8CF,CAAS,GAAI,GAAGb,GACzG,UAAA2B,EAAA,CACH,IANO;AAQX,CAAC;AACDF,EAAY,cAAc;"}
1
+ {"version":3,"file":"form.es.js","sources":["../packages/ui-web/src/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport * as React from 'react';\nimport {\n Controller,\n FormProvider,\n useFormContext,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n} from 'react-hook-form';\n\nimport {\n FormControlBaseProps,\n FormDescriptionBaseProps,\n FormItemBaseProps,\n FormLabelBaseProps,\n FormMessageBaseProps,\n} from '@gv-tech/ui-core';\nimport { Label } from './label';\nimport { cn } from './lib/utils';\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 Error('useFormField should be used within <FormField>');\n }\n\n if (!itemContext) {\n throw new Error('useFormField should be used within <FormItem>');\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-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 | null>(null);\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & FormItemBaseProps>(\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 },\n);\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & FormLabelBaseProps\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return <Label ref={ref} className={cn(error && 'text-destructive', className)} htmlFor={formItemId} {...props} />;\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<React.ElementRef<typeof Slot>, 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={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n },\n);\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormDescriptionBaseProps\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p ref={ref} id={formDescriptionId} className={cn('text-muted-foreground text-[0.8rem]', className)} {...props} />\n );\n});\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormMessageBaseProps\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 ref={ref} id={formMessageId} className={cn('text-destructive text-[0.8rem] font-medium', className)} {...props}>\n {body}\n </p>\n );\n});\nFormMessage.displayName = 'FormMessage';\n\nexport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };\nexport type {\n FormControlBaseProps as FormControlProps,\n FormDescriptionBaseProps as FormDescriptionProps,\n FormItemBaseProps as FormItemProps,\n FormLabelBaseProps as FormLabelProps,\n FormMessageBaseProps as FormMessageProps,\n};\n"],"names":["Form","FormProvider","FormFieldContext","React","FormField","props","jsx","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body"],"mappings":";;;;AAwBA,MAA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Q,GAAe,WAAWP,EAAG,8CAA8CF,CAAS,GAAI,GAAGb,GACzG,UAAA2B,EAAA,CACH,IANO;AAQX,CAAC;AACDF,EAAY,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-D51Wvbw-.js"),i=require("react"),s=require("./utils-5NfNUIaP.js");function c(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=c(i),u=r.Root2$3,f=r.Trigger$1,n=l.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},d)=>r.jsxRuntimeExports.jsx(r.Content2$3,{ref:d,align:o,sideOffset:t,className:s.cn("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 origin-[--radix-hover-card-content-transform-origin]",e),...a}));n.displayName=r.Content2$3.displayName;exports.HoverCard=u;exports.HoverCardContent=n;exports.HoverCardTrigger=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),i=require("react"),s=require("./utils-DKStzUzN.js");function c(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=c(i),u=r.Root2$3,f=r.Trigger$1,n=l.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},d)=>r.jsxRuntimeExports.jsx(r.Content2$3,{ref:d,align:o,sideOffset:t,className:s.cn("bg-popover text-popover-foreground 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 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none",e),...a}));n.displayName=r.Content2$3.displayName;exports.HoverCard=u;exports.HoverCardContent=n;exports.HoverCardTrigger=f;
2
2
  //# sourceMappingURL=hover-card.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hover-card.cjs.js","sources":["../packages/ui-web/src/hover-card.tsx"],"sourcesContent":["'use client';\n\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport * as React from 'react';\n\nimport { HoverCardBaseProps, HoverCardContentBaseProps, HoverCardTriggerBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content> & HoverCardContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n '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 origin-[--radix-hover-card-content-transform-origin]',\n className,\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\nexport type {\n HoverCardContentBaseProps as HoverCardContentProps,\n HoverCardBaseProps as HoverCardProps,\n HoverCardTriggerBaseProps as HoverCardTriggerProps,\n};\n"],"names":["HoverCard","HoverCardPrimitive.Root","HoverCardTrigger","HoverCardPrimitive.Trigger","HoverCardContent","React","className","align","sideOffset","props","ref","jsx","HoverCardPrimitive.Content","cn"],"mappings":"scAQMA,EAAYC,EAAAA,QAEZC,EAAmBC,EAAAA,UAEnBC,EAAmBC,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAA,EAASC,IAC5DC,EAAAA,kBAAAA,IAACC,EAAAA,WAAA,CACC,IAAAF,EACA,MAAAH,EACA,WAAAC,EACA,UAAWK,EAAAA,GACT,keACAP,CAAA,EAED,GAAGG,CAAA,CACN,CACD,EACDL,EAAiB,YAAcQ,EAAAA,WAA2B"}
1
+ {"version":3,"file":"hover-card.cjs.js","sources":["../packages/ui-web/src/hover-card.tsx"],"sourcesContent":["'use client';\n\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport * as React from 'react';\n\nimport { HoverCardBaseProps, HoverCardContentBaseProps, HoverCardTriggerBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content> & HoverCardContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\nexport type {\n HoverCardContentBaseProps as HoverCardContentProps,\n HoverCardBaseProps as HoverCardProps,\n HoverCardTriggerBaseProps as HoverCardTriggerProps,\n};\n"],"names":["HoverCard","HoverCardPrimitive.Root","HoverCardTrigger","HoverCardPrimitive.Trigger","HoverCardContent","React","className","align","sideOffset","props","ref","jsx","HoverCardPrimitive.Content","cn"],"mappings":"scAQMA,EAAYC,EAAAA,QAEZC,EAAmBC,EAAAA,UAEnBC,EAAmBC,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAA,EAASC,IAC5DC,EAAAA,kBAAAA,IAACC,EAAAA,WAAA,CACC,IAAAF,EACA,MAAAH,EACA,WAAAC,EACA,UAAWK,EAAAA,GACT,keACAP,CAAA,EAED,GAAGG,CAAA,CACN,CACD,EACDL,EAAiB,YAAcQ,EAAAA,WAA2B"}