@gv-tech/design-system 2.14.0 → 2.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/dist/{accordion.cjs.js → accordion.cjs} +1 -1
  2. package/dist/accordion.cjs.map +1 -0
  3. package/dist/{accordion.es.js → accordion.mjs} +1 -1
  4. package/dist/accordion.mjs.map +1 -0
  5. package/dist/alert-dialog.cjs +2 -0
  6. package/dist/alert-dialog.cjs.map +1 -0
  7. package/dist/{alert-dialog.es.js → alert-dialog.mjs} +2 -2
  8. package/dist/alert-dialog.mjs.map +1 -0
  9. package/dist/{alert.cjs.js → alert.cjs} +1 -1
  10. package/dist/alert.cjs.map +1 -0
  11. package/dist/{alert.es.js → alert.mjs} +1 -1
  12. package/dist/alert.mjs.map +1 -0
  13. package/dist/{aspect-ratio.cjs.js → aspect-ratio.cjs} +1 -1
  14. package/dist/aspect-ratio.cjs.map +1 -0
  15. package/dist/{aspect-ratio.es.js → aspect-ratio.mjs} +1 -1
  16. package/dist/aspect-ratio.mjs.map +1 -0
  17. package/dist/{avatar.cjs.js → avatar.cjs} +1 -1
  18. package/dist/avatar.cjs.map +1 -0
  19. package/dist/{avatar.es.js → avatar.mjs} +1 -1
  20. package/dist/avatar.mjs.map +1 -0
  21. package/dist/{badge.cjs.js → badge.cjs} +1 -1
  22. package/dist/badge.cjs.map +1 -0
  23. package/dist/{badge.es.js → badge.mjs} +1 -1
  24. package/dist/badge.mjs.map +1 -0
  25. package/dist/{breadcrumb.cjs.js → breadcrumb.cjs} +1 -1
  26. package/dist/breadcrumb.cjs.map +1 -0
  27. package/dist/{breadcrumb.es.js → breadcrumb.mjs} +1 -1
  28. package/dist/breadcrumb.mjs.map +1 -0
  29. package/dist/{button.cjs.js → button.cjs} +1 -1
  30. package/dist/button.cjs.map +1 -0
  31. package/dist/{button.es.js → button.mjs} +1 -1
  32. package/dist/button.mjs.map +1 -0
  33. package/dist/calendar.cjs +2 -0
  34. package/dist/calendar.cjs.map +1 -0
  35. package/dist/{calendar.es.js → calendar.mjs} +2 -2
  36. package/dist/calendar.mjs.map +1 -0
  37. package/dist/{card.cjs.js → card.cjs} +1 -1
  38. package/dist/card.cjs.map +1 -0
  39. package/dist/{card.es.js → card.mjs} +1 -1
  40. package/dist/card.mjs.map +1 -0
  41. package/dist/carousel.cjs +2 -0
  42. package/dist/carousel.cjs.map +1 -0
  43. package/dist/{carousel.es.js → carousel.mjs} +2 -2
  44. package/dist/carousel.mjs.map +1 -0
  45. package/dist/{chart.cjs.js → chart.cjs} +1 -1
  46. package/dist/chart.cjs.map +1 -0
  47. package/dist/{chart.es.js → chart.mjs} +1 -1
  48. package/dist/chart.mjs.map +1 -0
  49. package/dist/{checkbox.cjs.js → checkbox.cjs} +1 -1
  50. package/dist/checkbox.cjs.map +1 -0
  51. package/dist/{checkbox.es.js → checkbox.mjs} +1 -1
  52. package/dist/checkbox.mjs.map +1 -0
  53. package/dist/{collapsible.cjs.js → collapsible.cjs} +1 -1
  54. package/dist/collapsible.cjs.map +1 -0
  55. package/dist/{collapsible.es.js → collapsible.mjs} +1 -1
  56. package/dist/collapsible.mjs.map +1 -0
  57. package/dist/command.cjs +2 -0
  58. package/dist/command.cjs.map +1 -0
  59. package/dist/{command.es.js → command.mjs} +2 -2
  60. package/dist/command.mjs.map +1 -0
  61. package/dist/{context-menu.cjs.js → context-menu.cjs} +1 -1
  62. package/dist/context-menu.cjs.map +1 -0
  63. package/dist/{context-menu.es.js → context-menu.mjs} +1 -1
  64. package/dist/context-menu.mjs.map +1 -0
  65. package/dist/{dialog.cjs.js → dialog.cjs} +1 -1
  66. package/dist/dialog.cjs.map +1 -0
  67. package/dist/{dialog.es.js → dialog.mjs} +1 -1
  68. package/dist/dialog.mjs.map +1 -0
  69. package/dist/{drawer.cjs.js → drawer.cjs} +1 -1
  70. package/dist/drawer.cjs.map +1 -0
  71. package/dist/{drawer.es.js → drawer.mjs} +1 -1
  72. package/dist/drawer.mjs.map +1 -0
  73. package/dist/{dropdown-menu.cjs.js → dropdown-menu.cjs} +1 -1
  74. package/dist/dropdown-menu.cjs.map +1 -0
  75. package/dist/{dropdown-menu.es.js → dropdown-menu.mjs} +1 -1
  76. package/dist/dropdown-menu.mjs.map +1 -0
  77. package/dist/form.cjs +2 -0
  78. package/dist/form.cjs.map +1 -0
  79. package/dist/{form.es.js → form.mjs} +2 -2
  80. package/dist/form.mjs.map +1 -0
  81. package/dist/{hover-card.cjs.js → hover-card.cjs} +1 -1
  82. package/dist/hover-card.cjs.map +1 -0
  83. package/dist/{hover-card.es.js → hover-card.mjs} +1 -1
  84. package/dist/hover-card.mjs.map +1 -0
  85. package/dist/index.cjs +2 -0
  86. package/dist/index.cjs.map +1 -0
  87. package/dist/index.d.ts +52 -0
  88. package/dist/index.mjs +425 -0
  89. package/dist/index.mjs.map +1 -0
  90. package/dist/{input.cjs.js → input.cjs} +1 -1
  91. package/dist/input.cjs.map +1 -0
  92. package/dist/{input.es.js → input.mjs} +1 -1
  93. package/dist/input.mjs.map +1 -0
  94. package/dist/{label.cjs.js → label.cjs} +1 -1
  95. package/dist/label.cjs.map +1 -0
  96. package/dist/{label.es.js → label.mjs} +1 -1
  97. package/dist/label.mjs.map +1 -0
  98. package/dist/{menubar.cjs.js → menubar.cjs} +1 -1
  99. package/dist/menubar.cjs.map +1 -0
  100. package/dist/{menubar.es.js → menubar.mjs} +1 -1
  101. package/dist/menubar.mjs.map +1 -0
  102. package/dist/{navigation-menu.cjs.js → navigation-menu.cjs} +1 -1
  103. package/dist/navigation-menu.cjs.map +1 -0
  104. package/dist/{navigation-menu.es.js → navigation-menu.mjs} +1 -1
  105. package/dist/navigation-menu.mjs.map +1 -0
  106. package/dist/pagination.cjs +2 -0
  107. package/dist/pagination.cjs.map +1 -0
  108. package/dist/{pagination.es.js → pagination.mjs} +2 -2
  109. package/dist/pagination.mjs.map +1 -0
  110. package/dist/{popover.cjs.js → popover.cjs} +1 -1
  111. package/dist/popover.cjs.map +1 -0
  112. package/dist/{popover.es.js → popover.mjs} +1 -1
  113. package/dist/popover.mjs.map +1 -0
  114. package/dist/{progress.cjs.js → progress.cjs} +1 -1
  115. package/dist/progress.cjs.map +1 -0
  116. package/dist/{progress.es.js → progress.mjs} +1 -1
  117. package/dist/progress.mjs.map +1 -0
  118. package/dist/{radio-group.cjs.js → radio-group.cjs} +1 -1
  119. package/dist/radio-group.cjs.map +1 -0
  120. package/dist/{radio-group.es.js → radio-group.mjs} +1 -1
  121. package/dist/radio-group.mjs.map +1 -0
  122. package/dist/{resizable.cjs.js → resizable.cjs} +1 -1
  123. package/dist/resizable.cjs.map +1 -0
  124. package/dist/{resizable.es.js → resizable.mjs} +1 -1
  125. package/dist/resizable.mjs.map +1 -0
  126. package/dist/{scroll-area.cjs.js → scroll-area.cjs} +1 -1
  127. package/dist/scroll-area.cjs.map +1 -0
  128. package/dist/{scroll-area.es.js → scroll-area.mjs} +1 -1
  129. package/dist/scroll-area.mjs.map +1 -0
  130. package/dist/search.cjs +2 -0
  131. package/dist/search.cjs.map +1 -0
  132. package/dist/{search.es.js → search.mjs} +3 -3
  133. package/dist/search.mjs.map +1 -0
  134. package/dist/{select.cjs.js → select.cjs} +1 -1
  135. package/dist/select.cjs.map +1 -0
  136. package/dist/{select.es.js → select.mjs} +1 -1
  137. package/dist/select.mjs.map +1 -0
  138. package/dist/{separator.cjs.js → separator.cjs} +1 -1
  139. package/dist/separator.cjs.map +1 -0
  140. package/dist/{separator.es.js → separator.mjs} +1 -1
  141. package/dist/separator.mjs.map +1 -0
  142. package/dist/{sheet.cjs.js → sheet.cjs} +1 -1
  143. package/dist/sheet.cjs.map +1 -0
  144. package/dist/{sheet.es.js → sheet.mjs} +1 -1
  145. package/dist/sheet.mjs.map +1 -0
  146. package/dist/{skeleton.cjs.js → skeleton.cjs} +1 -1
  147. package/dist/skeleton.cjs.map +1 -0
  148. package/dist/{skeleton.es.js → skeleton.mjs} +1 -1
  149. package/dist/skeleton.mjs.map +1 -0
  150. package/dist/{slider.cjs.js → slider.cjs} +1 -1
  151. package/dist/slider.cjs.map +1 -0
  152. package/dist/{slider.es.js → slider.mjs} +1 -1
  153. package/dist/slider.mjs.map +1 -0
  154. package/dist/{sonner.cjs.js → sonner.cjs} +1 -1
  155. package/dist/sonner.cjs.map +1 -0
  156. package/dist/{sonner.es.js → sonner.mjs} +1 -1
  157. package/dist/sonner.mjs.map +1 -0
  158. package/dist/{switch.cjs.js → switch.cjs} +1 -1
  159. package/dist/switch.cjs.map +1 -0
  160. package/dist/{switch.es.js → switch.mjs} +1 -1
  161. package/dist/switch.mjs.map +1 -0
  162. package/dist/{table.cjs.js → table.cjs} +1 -1
  163. package/dist/table.cjs.map +1 -0
  164. package/dist/{table.es.js → table.mjs} +1 -1
  165. package/dist/table.mjs.map +1 -0
  166. package/dist/{tabs.cjs.js → tabs.cjs} +1 -1
  167. package/dist/tabs.cjs.map +1 -0
  168. package/dist/{tabs.es.js → tabs.mjs} +1 -1
  169. package/dist/tabs.mjs.map +1 -0
  170. package/dist/{text.cjs.js → text.cjs} +1 -1
  171. package/dist/text.cjs.map +1 -0
  172. package/dist/{text.es.js → text.mjs} +1 -1
  173. package/dist/text.mjs.map +1 -0
  174. package/dist/{textarea.cjs.js → textarea.cjs} +1 -1
  175. package/dist/textarea.cjs.map +1 -0
  176. package/dist/{textarea.es.js → textarea.mjs} +1 -1
  177. package/dist/textarea.mjs.map +1 -0
  178. package/dist/{theme-provider.cjs.js → theme-provider.cjs} +1 -1
  179. package/dist/theme-provider.cjs.map +1 -0
  180. package/dist/{theme-provider.es.js → theme-provider.mjs} +1 -1
  181. package/dist/theme-provider.mjs.map +1 -0
  182. package/dist/{theme-toggle-YTiXA-Ib.mjs → theme-toggle-B1DHy3Aq.mjs} +15 -14
  183. package/dist/{theme-toggle-YTiXA-Ib.mjs.map → theme-toggle-B1DHy3Aq.mjs.map} +1 -1
  184. package/dist/theme-toggle-CEOvAx_E.js +2 -0
  185. package/dist/{theme-toggle-CsOzHnq2.js.map → theme-toggle-CEOvAx_E.js.map} +1 -1
  186. package/dist/theme-toggle.cjs +2 -0
  187. package/dist/theme-toggle.cjs.map +1 -0
  188. package/dist/theme-toggle.mjs +10 -0
  189. package/dist/theme-toggle.mjs.map +1 -0
  190. package/dist/{toast.cjs.js → toast.cjs} +1 -1
  191. package/dist/toast.cjs.map +1 -0
  192. package/dist/{toast.es.js → toast.mjs} +1 -1
  193. package/dist/toast.mjs.map +1 -0
  194. package/dist/{toaster-D0gt0m_V.mjs → toaster-BqX0t2H6.mjs} +2 -2
  195. package/dist/{toaster-D0gt0m_V.mjs.map → toaster-BqX0t2H6.mjs.map} +1 -1
  196. package/dist/toaster-CKwNMV1Z.js +2 -0
  197. package/dist/{toaster-CjkfZJj0.js.map → toaster-CKwNMV1Z.js.map} +1 -1
  198. package/dist/toaster.cjs +2 -0
  199. package/dist/toaster.cjs.map +1 -0
  200. package/dist/toaster.mjs +8 -0
  201. package/dist/toaster.mjs.map +1 -0
  202. package/dist/{toggle-group.cjs.js → toggle-group.cjs} +1 -1
  203. package/dist/toggle-group.cjs.map +1 -0
  204. package/dist/{toggle-group.es.js → toggle-group.mjs} +1 -1
  205. package/dist/toggle-group.mjs.map +1 -0
  206. package/dist/{toggle.cjs.js → toggle.cjs} +1 -1
  207. package/dist/toggle.cjs.map +1 -0
  208. package/dist/{toggle.es.js → toggle.mjs} +1 -1
  209. package/dist/toggle.mjs.map +1 -0
  210. package/dist/{tooltip.cjs.js → tooltip.cjs} +1 -1
  211. package/dist/tooltip.cjs.map +1 -0
  212. package/dist/{tooltip.es.js → tooltip.mjs} +1 -1
  213. package/dist/tooltip.mjs.map +1 -0
  214. package/package.json +22 -22
  215. package/dist/accordion.cjs.js.map +0 -1
  216. package/dist/accordion.es.js.map +0 -1
  217. package/dist/alert-dialog.cjs.js +0 -2
  218. package/dist/alert-dialog.cjs.js.map +0 -1
  219. package/dist/alert-dialog.es.js.map +0 -1
  220. package/dist/alert.cjs.js.map +0 -1
  221. package/dist/alert.es.js.map +0 -1
  222. package/dist/aspect-ratio.cjs.js.map +0 -1
  223. package/dist/aspect-ratio.es.js.map +0 -1
  224. package/dist/avatar.cjs.js.map +0 -1
  225. package/dist/avatar.es.js.map +0 -1
  226. package/dist/badge.cjs.js.map +0 -1
  227. package/dist/badge.es.js.map +0 -1
  228. package/dist/breadcrumb.cjs.js.map +0 -1
  229. package/dist/breadcrumb.es.js.map +0 -1
  230. package/dist/button.cjs.js.map +0 -1
  231. package/dist/button.es.js.map +0 -1
  232. package/dist/calendar.cjs.js +0 -2
  233. package/dist/calendar.cjs.js.map +0 -1
  234. package/dist/calendar.es.js.map +0 -1
  235. package/dist/card.cjs.js.map +0 -1
  236. package/dist/card.es.js.map +0 -1
  237. package/dist/carousel.cjs.js +0 -2
  238. package/dist/carousel.cjs.js.map +0 -1
  239. package/dist/carousel.es.js.map +0 -1
  240. package/dist/chart.cjs.js.map +0 -1
  241. package/dist/chart.es.js.map +0 -1
  242. package/dist/checkbox.cjs.js.map +0 -1
  243. package/dist/checkbox.es.js.map +0 -1
  244. package/dist/collapsible.cjs.js.map +0 -1
  245. package/dist/collapsible.es.js.map +0 -1
  246. package/dist/command.cjs.js +0 -2
  247. package/dist/command.cjs.js.map +0 -1
  248. package/dist/command.es.js.map +0 -1
  249. package/dist/context-menu.cjs.js.map +0 -1
  250. package/dist/context-menu.es.js.map +0 -1
  251. package/dist/dialog.cjs.js.map +0 -1
  252. package/dist/dialog.es.js.map +0 -1
  253. package/dist/drawer.cjs.js.map +0 -1
  254. package/dist/drawer.es.js.map +0 -1
  255. package/dist/dropdown-menu.cjs.js.map +0 -1
  256. package/dist/dropdown-menu.es.js.map +0 -1
  257. package/dist/form.cjs.js +0 -2
  258. package/dist/form.cjs.js.map +0 -1
  259. package/dist/form.es.js.map +0 -1
  260. package/dist/hover-card.cjs.js.map +0 -1
  261. package/dist/hover-card.es.js.map +0 -1
  262. package/dist/index.cjs.js +0 -2
  263. package/dist/index.cjs.js.map +0 -1
  264. package/dist/index.es.js +0 -424
  265. package/dist/index.es.js.map +0 -1
  266. package/dist/input.cjs.js.map +0 -1
  267. package/dist/input.es.js.map +0 -1
  268. package/dist/label.cjs.js.map +0 -1
  269. package/dist/label.es.js.map +0 -1
  270. package/dist/menubar.cjs.js.map +0 -1
  271. package/dist/menubar.es.js.map +0 -1
  272. package/dist/navigation-menu.cjs.js.map +0 -1
  273. package/dist/navigation-menu.es.js.map +0 -1
  274. package/dist/pagination.cjs.js +0 -2
  275. package/dist/pagination.cjs.js.map +0 -1
  276. package/dist/pagination.es.js.map +0 -1
  277. package/dist/popover.cjs.js.map +0 -1
  278. package/dist/popover.es.js.map +0 -1
  279. package/dist/progress.cjs.js.map +0 -1
  280. package/dist/progress.es.js.map +0 -1
  281. package/dist/radio-group.cjs.js.map +0 -1
  282. package/dist/radio-group.es.js.map +0 -1
  283. package/dist/resizable.cjs.js.map +0 -1
  284. package/dist/resizable.es.js.map +0 -1
  285. package/dist/scroll-area.cjs.js.map +0 -1
  286. package/dist/scroll-area.es.js.map +0 -1
  287. package/dist/search.cjs.js +0 -2
  288. package/dist/search.cjs.js.map +0 -1
  289. package/dist/search.es.js.map +0 -1
  290. package/dist/select.cjs.js.map +0 -1
  291. package/dist/select.es.js.map +0 -1
  292. package/dist/separator.cjs.js.map +0 -1
  293. package/dist/separator.es.js.map +0 -1
  294. package/dist/sheet.cjs.js.map +0 -1
  295. package/dist/sheet.es.js.map +0 -1
  296. package/dist/skeleton.cjs.js.map +0 -1
  297. package/dist/skeleton.es.js.map +0 -1
  298. package/dist/slider.cjs.js.map +0 -1
  299. package/dist/slider.es.js.map +0 -1
  300. package/dist/sonner.cjs.js.map +0 -1
  301. package/dist/sonner.es.js.map +0 -1
  302. package/dist/switch.cjs.js.map +0 -1
  303. package/dist/switch.es.js.map +0 -1
  304. package/dist/table.cjs.js.map +0 -1
  305. package/dist/table.es.js.map +0 -1
  306. package/dist/tabs.cjs.js.map +0 -1
  307. package/dist/tabs.es.js.map +0 -1
  308. package/dist/text.cjs.js.map +0 -1
  309. package/dist/text.es.js.map +0 -1
  310. package/dist/textarea.cjs.js.map +0 -1
  311. package/dist/textarea.es.js.map +0 -1
  312. package/dist/theme-provider.cjs.js.map +0 -1
  313. package/dist/theme-provider.es.js.map +0 -1
  314. package/dist/theme-toggle-CsOzHnq2.js +0 -2
  315. package/dist/theme-toggle.cjs.js +0 -2
  316. package/dist/theme-toggle.cjs.js.map +0 -1
  317. package/dist/theme-toggle.es.js +0 -10
  318. package/dist/theme-toggle.es.js.map +0 -1
  319. package/dist/toast.cjs.js.map +0 -1
  320. package/dist/toast.es.js.map +0 -1
  321. package/dist/toaster-CjkfZJj0.js +0 -2
  322. package/dist/toaster.cjs.js +0 -2
  323. package/dist/toaster.cjs.js.map +0 -1
  324. package/dist/toaster.es.js +0 -8
  325. package/dist/toaster.es.js.map +0 -1
  326. package/dist/toggle-group.cjs.js.map +0 -1
  327. package/dist/toggle-group.es.js.map +0 -1
  328. package/dist/toggle.cjs.js.map +0 -1
  329. package/dist/toggle.es.js.map +0 -1
  330. package/dist/tooltip.cjs.js.map +0 -1
  331. package/dist/tooltip.es.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.mjs","sources":["../packages/ui-web/src/label.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { LabelBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants> & LabelBaseProps\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\nexport type { LabelBaseProps as LabelProps };\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive.Root","cn"],"mappings":";;;;AASA,MAAMA,IAAgBC,EAAI,4FAA4F,GAEhHC,IAAQC,EAAM,WAGlB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACC,GAAA,EAAoB,KAAAF,GAAU,WAAWG,EAAGT,EAAA,GAAiBI,CAAS,GAAI,GAAGC,GAAO,CACtF;AACDH,EAAM,cAAcM,EAAoB;"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),y=require("react"),r=require("./utils-DKStzUzN.js");function M(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const s=M(y);function N({...t}){return e.jsxRuntimeExports.jsx(e.Menu,{...t})}function h({...t}){return e.jsxRuntimeExports.jsx(e.Group2$1,{...t})}function w({...t}){return e.jsxRuntimeExports.jsx(e.Portal2$2,{...t})}function E({...t}){return e.jsxRuntimeExports.jsx(e.RadioGroup2$1,{...t})}function $({...t}){return e.jsxRuntimeExports.jsx(e.Sub2$1,{"data-slot":"menubar-sub",...t})}const d=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Root3,{ref:n,className:r.cn("bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm",t),...a}));d.displayName=e.Root3.displayName;const u=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Trigger$2,{ref:n,className:r.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none",t),...a}));u.displayName=e.Trigger$2.displayName;const c=s.forwardRef(({className:t,inset:a,children:n,...o},i)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2$1,{ref:i,className:r.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",a&&"pl-8",t),...o,children:[n,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto h-4 w-4"})]}));c.displayName=e.SubTrigger2$1.displayName;const m=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.SubContent2$1,{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-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",t),...a}));m.displayName=e.SubContent2$1.displayName;const l=s.forwardRef(({className:t,align:a="start",alignOffset:n=-4,sideOffset:o=8,...i},R)=>e.jsxRuntimeExports.jsx(e.Portal2$2,{children:e.jsxRuntimeExports.jsx(e.Content2$4,{ref:R,align:a,alignOffset:n,sideOffset:o,className:r.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md",t),...i})}));l.displayName=e.Content2$4.displayName;const p=s.forwardRef(({className:t,inset:a,...n},o)=>e.jsxRuntimeExports.jsx(e.Item3,{ref:o,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",t),...n}));p.displayName=e.Item3.displayName;const x=s.forwardRef(({className:t,children:a,checked:n,...o},i)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2$1,{ref:i,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 outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...o,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$1,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),a]}));x.displayName=e.CheckboxItem2$1.displayName;const f=s.forwardRef(({className:t,children:a,...n},o)=>e.jsxRuntimeExports.jsxs(e.RadioItem2$1,{ref:o,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 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$1,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-4 w-4 fill-current"})})}),a]}));f.displayName=e.RadioItem2$1.displayName;const b=s.forwardRef(({className:t,inset:a,...n},o)=>e.jsxRuntimeExports.jsx(e.Label2$1,{ref:o,className:r.cn("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",t),...n}));b.displayName=e.Label2$1.displayName;const g=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Separator2$1,{ref:n,className:r.cn("bg-muted -mx-1 my-1 h-px",t),...a}));g.displayName=e.Separator2$1.displayName;const j=({className:t,...a})=>e.jsxRuntimeExports.jsx("span",{className:r.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...a});j.displayname="MenubarShortcut";exports.Menubar=d;exports.MenubarCheckboxItem=x;exports.MenubarContent=l;exports.MenubarGroup=h;exports.MenubarItem=p;exports.MenubarLabel=b;exports.MenubarMenu=N;exports.MenubarPortal=w;exports.MenubarRadioGroup=E;exports.MenubarRadioItem=f;exports.MenubarSeparator=g;exports.MenubarShortcut=j;exports.MenubarSub=$;exports.MenubarSubContent=m;exports.MenubarSubTrigger=c;exports.MenubarTrigger=u;
2
- //# sourceMappingURL=menubar.cjs.js.map
2
+ //# sourceMappingURL=menubar.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menubar.cjs","sources":["../packages/ui-web/src/menubar.tsx"],"sourcesContent":["'use client';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n MenubarBaseProps,\n MenubarCheckboxItemBaseProps,\n MenubarContentBaseProps,\n MenubarItemBaseProps,\n MenubarLabelBaseProps,\n MenubarMenuBaseProps,\n MenubarRadioItemBaseProps,\n MenubarSeparatorBaseProps,\n MenubarShortcutBaseProps,\n MenubarSubBaseProps,\n MenubarSubContentBaseProps,\n MenubarSubTriggerBaseProps,\n MenubarTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nfunction MenubarMenu({ ...props }: MenubarPrimitive.MenubarMenuProps & MenubarMenuBaseProps) {\n return <MenubarPrimitive.Menu {...props} />;\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup {...props} />;\n}\n\nfunction MenubarSub({ ...props }: MenubarPrimitive.MenubarSubProps & MenubarSubBaseProps) {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root> & MenubarBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn('bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm', className)}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger> & MenubarTriggerBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none',\n className,\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & MenubarSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent> & MenubarSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.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-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content> & MenubarContentBaseProps\n>(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & MenubarItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem> & MenubarCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.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 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 <MenubarPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem> & MenubarRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.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 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 <MenubarPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & MenubarLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator> & MenubarSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & MenubarShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nMenubarShortcut.displayname = 'MenubarShortcut';\n\nexport {\n Menubar,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n\nexport type {\n MenubarCheckboxItemBaseProps as MenubarCheckboxItemProps,\n MenubarContentBaseProps as MenubarContentProps,\n MenubarItemBaseProps as MenubarItemProps,\n MenubarLabelBaseProps as MenubarLabelProps,\n MenubarMenuBaseProps as MenubarMenuProps,\n MenubarBaseProps as MenubarProps,\n MenubarRadioItemBaseProps as MenubarRadioItemProps,\n MenubarSeparatorBaseProps as MenubarSeparatorProps,\n MenubarShortcutBaseProps as MenubarShortcutProps,\n MenubarSubContentBaseProps as MenubarSubContentProps,\n MenubarSubBaseProps as MenubarSubProps,\n MenubarSubTriggerBaseProps as MenubarSubTriggerProps,\n MenubarTriggerBaseProps as MenubarTriggerProps,\n};\n"],"names":["MenubarMenu","props","jsx","MenubarPrimitive.Menu","MenubarGroup","MenubarPrimitive.Group","MenubarPortal","MenubarPrimitive.Portal","MenubarRadioGroup","MenubarPrimitive.RadioGroup","MenubarSub","MenubarPrimitive.Sub","Menubar","React","className","ref","MenubarPrimitive.Root","cn","MenubarTrigger","MenubarPrimitive.Trigger","MenubarSubTrigger","inset","children","jsxs","MenubarPrimitive.SubTrigger","ChevronRight","MenubarSubContent","MenubarPrimitive.SubContent","MenubarContent","align","alignOffset","sideOffset","MenubarPrimitive.Content","MenubarItem","MenubarPrimitive.Item","MenubarCheckboxItem","checked","MenubarPrimitive.CheckboxItem","MenubarPrimitive.ItemIndicator","Check","MenubarRadioItem","MenubarPrimitive.RadioItem","Circle","MenubarLabel","MenubarPrimitive.Label","MenubarSeparator","MenubarPrimitive.Separator","MenubarShortcut"],"mappings":"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"}
@@ -159,4 +159,4 @@ export {
159
159
  z as MenubarSubTrigger,
160
160
  k as MenubarTrigger
161
161
  };
162
- //# sourceMappingURL=menubar.es.js.map
162
+ //# sourceMappingURL=menubar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menubar.mjs","sources":["../packages/ui-web/src/menubar.tsx"],"sourcesContent":["'use client';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n MenubarBaseProps,\n MenubarCheckboxItemBaseProps,\n MenubarContentBaseProps,\n MenubarItemBaseProps,\n MenubarLabelBaseProps,\n MenubarMenuBaseProps,\n MenubarRadioItemBaseProps,\n MenubarSeparatorBaseProps,\n MenubarShortcutBaseProps,\n MenubarSubBaseProps,\n MenubarSubContentBaseProps,\n MenubarSubTriggerBaseProps,\n MenubarTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nfunction MenubarMenu({ ...props }: MenubarPrimitive.MenubarMenuProps & MenubarMenuBaseProps) {\n return <MenubarPrimitive.Menu {...props} />;\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup {...props} />;\n}\n\nfunction MenubarSub({ ...props }: MenubarPrimitive.MenubarSubProps & MenubarSubBaseProps) {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root> & MenubarBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn('bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm', className)}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger> & MenubarTriggerBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none',\n className,\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & MenubarSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent> & MenubarSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.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-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content> & MenubarContentBaseProps\n>(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & MenubarItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem> & MenubarCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.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 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 <MenubarPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem> & MenubarRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.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 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 <MenubarPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & MenubarLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator> & MenubarSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & MenubarShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nMenubarShortcut.displayname = 'MenubarShortcut';\n\nexport {\n Menubar,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n\nexport type {\n MenubarCheckboxItemBaseProps as MenubarCheckboxItemProps,\n MenubarContentBaseProps as MenubarContentProps,\n MenubarItemBaseProps as MenubarItemProps,\n MenubarLabelBaseProps as MenubarLabelProps,\n MenubarMenuBaseProps as MenubarMenuProps,\n MenubarBaseProps as MenubarProps,\n MenubarRadioItemBaseProps as MenubarRadioItemProps,\n MenubarSeparatorBaseProps as MenubarSeparatorProps,\n MenubarShortcutBaseProps as MenubarShortcutProps,\n MenubarSubContentBaseProps as MenubarSubContentProps,\n MenubarSubBaseProps as MenubarSubProps,\n MenubarSubTriggerBaseProps as MenubarSubTriggerProps,\n MenubarTriggerBaseProps as MenubarTriggerProps,\n};\n"],"names":["MenubarMenu","props","jsx","MenubarPrimitive.Menu","MenubarGroup","MenubarPrimitive.Group","MenubarPortal","MenubarPrimitive.Portal","MenubarRadioGroup","MenubarPrimitive.RadioGroup","MenubarSub","MenubarPrimitive.Sub","Menubar","React","className","ref","MenubarPrimitive.Root","cn","MenubarTrigger","MenubarPrimitive.Trigger","MenubarSubTrigger","inset","children","jsxs","MenubarPrimitive.SubTrigger","ChevronRight","MenubarSubContent","MenubarPrimitive.SubContent","MenubarContent","align","alignOffset","sideOffset","MenubarPrimitive.Content","MenubarItem","MenubarPrimitive.Item","MenubarCheckboxItem","checked","MenubarPrimitive.CheckboxItem","MenubarPrimitive.ItemIndicator","Check","MenubarRadioItem","MenubarPrimitive.RadioItem","Circle","MenubarLabel","MenubarPrimitive.Label","MenubarSeparator","MenubarPrimitive.Separator","MenubarShortcut"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./vendor-DQFuDa7q.js"),p=require("react"),o=require("./utils-DKStzUzN.js");function g(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const r=g(p),d=r.forwardRef(({className:e,children:n,...a},i)=>t.jsxRuntimeExports.jsxs(t.Root2$4,{ref:i,className:o.cn("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[n,t.jsxRuntimeExports.jsx(s,{})]}));d.displayName=t.Root2$4.displayName;const c=r.forwardRef(({className:e,...n},a)=>t.jsxRuntimeExports.jsx(t.List,{ref:a,className:o.cn("group flex flex-1 list-none items-center justify-center space-x-1",e),...n}));c.displayName=t.List.displayName;const x=t.Item$1,u=t.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),l=r.forwardRef(({className:e,children:n,...a},i)=>t.jsxRuntimeExports.jsxs(t.Trigger$3,{ref:i,className:o.cn(u(),"group",e),...a,children:[n," ",t.jsxRuntimeExports.jsx(t.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));l.displayName=t.Trigger$3.displayName;const m=r.forwardRef(({className:e,...n},a)=>t.jsxRuntimeExports.jsx(t.Content,{ref:a,className:o.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto",e),...n}));m.displayName=t.Content.displayName;const v=t.Link,s=r.forwardRef(({className:e,...n},a)=>t.jsxRuntimeExports.jsx("div",{className:o.cn("absolute top-full left-0 flex justify-center"),children:t.jsxRuntimeExports.jsx(t.Viewport,{className:o.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...n})}));s.displayName=t.Viewport.displayName;const f=r.forwardRef(({className:e,...n},a)=>t.jsxRuntimeExports.jsx(t.Indicator,{ref:a,className:o.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...n,children:t.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})}));f.displayName=t.Indicator.displayName;exports.NavigationMenu=d;exports.NavigationMenuContent=m;exports.NavigationMenuIndicator=f;exports.NavigationMenuItem=x;exports.NavigationMenuLink=v;exports.NavigationMenuList=c;exports.NavigationMenuTrigger=l;exports.NavigationMenuViewport=s;exports.navigationMenuTriggerStyle=u;
2
- //# sourceMappingURL=navigation-menu.cjs.js.map
2
+ //# sourceMappingURL=navigation-menu.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-menu.cjs","sources":["../packages/ui-web/src/navigation-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cva } from 'class-variance-authority';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n NavigationMenuBaseProps,\n NavigationMenuContentBaseProps,\n NavigationMenuIndicatorBaseProps,\n NavigationMenuItemBaseProps,\n NavigationMenuLinkBaseProps,\n NavigationMenuListBaseProps,\n NavigationMenuTriggerBaseProps,\n NavigationMenuViewportBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> & NavigationMenuBaseProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List> & NavigationMenuListBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent',\n);\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger> & NavigationMenuTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), 'group', className)}\n {...props}\n >\n {children}{' '}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content> & NavigationMenuContentBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto',\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport> & NavigationMenuViewportBaseProps\n>(({ className, ...props }, ref) => (\n <div className={cn('absolute top-full left-0 flex justify-center')}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n 'origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]',\n className,\n )}\n ref={ref}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator> & NavigationMenuIndicatorBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden',\n className,\n )}\n {...props}\n >\n <div className=\"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n NavigationMenuViewport,\n};\n\nexport type {\n NavigationMenuContentBaseProps as NavigationMenuContentProps,\n NavigationMenuIndicatorBaseProps as NavigationMenuIndicatorProps,\n NavigationMenuItemBaseProps as NavigationMenuItemProps,\n NavigationMenuLinkBaseProps as NavigationMenuLinkProps,\n NavigationMenuListBaseProps as NavigationMenuListProps,\n NavigationMenuBaseProps as NavigationMenuProps,\n NavigationMenuTriggerBaseProps as NavigationMenuTriggerProps,\n NavigationMenuViewportBaseProps as NavigationMenuViewportProps,\n};\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive.Root","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuPrimitive.List","NavigationMenuItem","NavigationMenuPrimitive.Item","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","NavigationMenuPrimitive.Trigger","ChevronDown","NavigationMenuContent","NavigationMenuPrimitive.Content","NavigationMenuLink","NavigationMenuPrimitive.Link","NavigationMenuPrimitive.Viewport","NavigationMenuIndicator","NavigationMenuPrimitive.Indicator"],"mappings":"mdAmBMA,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAASC,IACpCC,EAAAA,kBAAAA,KAACC,EAAAA,QAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,kEAAmEN,CAAS,EACzF,GAAGE,EAEH,SAAA,CAAAD,0BACAM,EAAA,CAAA,CAAuB,CAAA,CAAA,CAC1B,CACD,EACDT,EAAe,YAAcO,EAAAA,QAA6B,YAE1D,MAAMG,EAAqBT,EAAM,WAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACC,EAAAA,KAAA,CACC,IAAAP,EACA,UAAWG,EAAAA,GAAG,oEAAqEN,CAAS,EAC3F,GAAGE,CAAA,CACN,CACD,EACDM,EAAmB,YAAcE,EAAAA,KAA6B,YAE9D,MAAMC,EAAqBC,EAAAA,OAErBC,EAA6BC,EAAAA,IACjC,4aACF,EAEMC,EAAwBhB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAASC,IACpCC,EAAAA,kBAAAA,KAACY,EAAAA,UAAA,CACC,IAAAb,EACA,UAAWG,EAAAA,GAAGO,IAA8B,QAASb,CAAS,EAC7D,GAAGE,EAEH,SAAA,CAAAD,EAAU,IACXQ,EAAAA,kBAAAA,IAACQ,EAAAA,YAAA,CACC,UAAU,6FACV,cAAY,MAAA,CAAA,CACd,CAAA,CACF,CACD,EACDF,EAAsB,YAAcC,EAAAA,UAAgC,YAEpE,MAAME,EAAwBnB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACU,EAAAA,QAAA,CACC,IAAAhB,EACA,UAAWG,EAAAA,GACT,wVACAN,CAAA,EAED,GAAGE,CAAA,CACN,CACD,EACDgB,EAAsB,YAAcC,EAAAA,QAAgC,YAEpE,MAAMC,EAAqBC,EAAAA,KAErBd,EAAyBR,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGE,GAASC,IAC1BM,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAWH,EAAAA,GAAG,8CAA8C,EAC/D,SAAAG,EAAAA,kBAAAA,IAACa,EAAAA,SAAA,CACC,UAAWhB,EAAAA,GACT,qVACAN,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CACN,EACF,CACD,EACDK,EAAuB,YAAce,EAAAA,SAAiC,YAEtE,MAAMC,EAA0BxB,EAAM,WAGpC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACe,EAAAA,UAAA,CACC,IAAArB,EACA,UAAWG,EAAAA,GACT,+LACAN,CAAA,EAED,GAAGE,EAEJ,SAAAO,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAU,wEAAA,CAAyE,CAAA,CAC1F,CACD,EACDc,EAAwB,YAAcC,EAAAA,UAAkC"}
@@ -94,4 +94,4 @@ export {
94
94
  u as NavigationMenuViewport,
95
95
  w as navigationMenuTriggerStyle
96
96
  };
97
- //# sourceMappingURL=navigation-menu.es.js.map
97
+ //# sourceMappingURL=navigation-menu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-menu.mjs","sources":["../packages/ui-web/src/navigation-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cva } from 'class-variance-authority';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n NavigationMenuBaseProps,\n NavigationMenuContentBaseProps,\n NavigationMenuIndicatorBaseProps,\n NavigationMenuItemBaseProps,\n NavigationMenuLinkBaseProps,\n NavigationMenuListBaseProps,\n NavigationMenuTriggerBaseProps,\n NavigationMenuViewportBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> & NavigationMenuBaseProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List> & NavigationMenuListBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent',\n);\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger> & NavigationMenuTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), 'group', className)}\n {...props}\n >\n {children}{' '}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content> & NavigationMenuContentBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto',\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport> & NavigationMenuViewportBaseProps\n>(({ className, ...props }, ref) => (\n <div className={cn('absolute top-full left-0 flex justify-center')}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n 'origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]',\n className,\n )}\n ref={ref}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator> & NavigationMenuIndicatorBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden',\n className,\n )}\n {...props}\n >\n <div className=\"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n NavigationMenuViewport,\n};\n\nexport type {\n NavigationMenuContentBaseProps as NavigationMenuContentProps,\n NavigationMenuIndicatorBaseProps as NavigationMenuIndicatorProps,\n NavigationMenuItemBaseProps as NavigationMenuItemProps,\n NavigationMenuLinkBaseProps as NavigationMenuLinkProps,\n NavigationMenuListBaseProps as NavigationMenuListProps,\n NavigationMenuBaseProps as NavigationMenuProps,\n NavigationMenuTriggerBaseProps as NavigationMenuTriggerProps,\n NavigationMenuViewportBaseProps as NavigationMenuViewportProps,\n};\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive.Root","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuPrimitive.List","NavigationMenuItem","NavigationMenuPrimitive.Item","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","NavigationMenuPrimitive.Trigger","ChevronDown","NavigationMenuContent","NavigationMenuPrimitive.Content","NavigationMenuLink","NavigationMenuPrimitive.Link","NavigationMenuPrimitive.Viewport","NavigationMenuIndicator","NavigationMenuPrimitive.Indicator"],"mappings":";;;;AAmBA,MAAMA,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,mEAAmEN,CAAS;AAAA,IACzF,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,4BACAM,GAAA,CAAA,CAAuB;AAAA,IAAA;AAAA,EAAA;AAC1B,CACD;AACDT,EAAe,cAAcO,EAA6B;AAE1D,MAAMG,IAAqBT,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAP;AAAA,IACA,WAAWG,EAAG,qEAAqEN,CAAS;AAAA,IAC3F,GAAGE;AAAA,EAAA;AACN,CACD;AACDM,EAAmB,cAAcE,EAA6B;AAE9D,MAAMC,IAAqBC,GAErBC,IAA6BC;AAAA,EACjC;AACF,GAEMC,IAAwBhB,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACY;AAAAA,EAAA;AAAA,IACC,KAAAb;AAAA,IACA,WAAWG,EAAGO,KAA8B,SAASb,CAAS;AAAA,IAC7D,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MAAU;AAAA,MACXQ,gBAAAA,EAAAA;AAAAA,QAACQ;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,QAAA;AAAA,MAAA;AAAA,IACd;AAAA,EAAA;AACF,CACD;AACDF,EAAsB,cAAcC,EAAgC;AAEpE,MAAME,IAAwBnB,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACU;AAAAA,EAAA;AAAA,IACC,KAAAhB;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AACN,CACD;AACDgB,EAAsB,cAAcC,EAAgC;AAEpE,MAAMC,IAAqBC,GAErBd,IAAyBR,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGE,KAASC,MAC1BM,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWH,EAAG,8CAA8C,GAC/D,UAAAG,gBAAAA,EAAAA;AAAAA,EAACa;AAAAA,EAAA;AAAA,IACC,WAAWhB;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAEF,KAAAG;AAAA,IACC,GAAGD;AAAA,EAAA;AACN,GACF,CACD;AACDK,EAAuB,cAAce,EAAiC;AAEtE,MAAMC,IAA0BxB,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACe;AAAAA,EAAA;AAAA,IACC,KAAArB;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEJ,UAAAO,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yEAAA,CAAyE;AAAA,EAAA;AAC1F,CACD;AACDc,EAAwB,cAAcC,EAAkC;"}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./vendor-DQFuDa7q.js"),g=require("react"),j=require("./button.cjs"),i=require("./utils-DKStzUzN.js");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=d(g),l=({className:e,...n})=>a.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination",className:i.cn("mx-auto flex w-full justify-center",e),...n});l.displayName="Pagination";const c=r.forwardRef(({className:e,...n},t)=>a.jsxRuntimeExports.jsx("ul",{ref:t,className:i.cn("flex flex-row items-center gap-1",e),...n}));c.displayName="PaginationContent";const u=r.forwardRef(({className:e,...n},t)=>a.jsxRuntimeExports.jsx("li",{ref:t,className:i.cn("",e),...n}));u.displayName="PaginationItem";const o=({className:e,isActive:n,size:t="icon",...s})=>a.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,className:i.cn(j.buttonVariants({variant:n?"outline":"ghost",size:t}),e),...s});o.displayName="PaginationLink";const x=({className:e,...n})=>a.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to previous page",size:"default",className:i.cn("gap-1 pl-2.5",e),...n,children:[a.jsxRuntimeExports.jsx(a.ChevronLeft,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{children:"Previous"})]});x.displayName="PaginationPrevious";const p=({className:e,...n})=>a.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to next page",size:"default",className:i.cn("gap-1 pr-2.5",e),...n,children:[a.jsxRuntimeExports.jsx("span",{children:"Next"}),a.jsxRuntimeExports.jsx(a.ChevronRight,{className:"h-4 w-4"})]});p.displayName="PaginationNext";const m=({className:e,...n})=>a.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,className:i.cn("flex h-9 w-9 items-center justify-center",e),...n,children:[a.jsxRuntimeExports.jsx(a.Ellipsis,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More pages"})]});m.displayName="PaginationEllipsis";exports.Pagination=l;exports.PaginationContent=c;exports.PaginationEllipsis=m;exports.PaginationItem=u;exports.PaginationLink=o;exports.PaginationNext=p;exports.PaginationPrevious=x;
2
+ //# sourceMappingURL=pagination.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.cjs","sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["'use client';\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n PaginationBaseProps,\n PaginationContentBaseProps,\n PaginationEllipsisBaseProps,\n PaginationItemBaseProps,\n PaginationLinkBaseProps,\n PaginationNextBaseProps,\n PaginationPreviousBaseProps,\n} from '@gv-tech/ui-core';\nimport { ButtonProps, buttonVariants } from './button';\nimport { cn } from './lib/utils';\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'> & PaginationBaseProps) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'> & PaginationContentBaseProps>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'> & PaginationItemBaseProps>(\n ({ className, ...props }, ref) => <li ref={ref} className={cn('', className)} {...props} />,\n);\nPaginationItem.displayName = 'PaginationItem';\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'> &\n PaginationLinkBaseProps;\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'outline' : 'ghost',\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink> & PaginationPreviousBaseProps) => (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('gap-1 pl-2.5', className)} {...props}>\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink> & PaginationNextBaseProps) => (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('gap-1 pr-2.5', className)} {...props}>\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = 'PaginationNext';\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'> & PaginationEllipsisBaseProps) => (\n <span aria-hidden className={cn('flex h-9 w-9 items-center justify-center', className)} {...props}>\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\nexport type {\n PaginationContentBaseProps as PaginationContentProps,\n PaginationEllipsisBaseProps as PaginationEllipsisProps,\n PaginationItemBaseProps as PaginationItemProps,\n PaginationLinkProps,\n PaginationNextBaseProps as PaginationNextProps,\n PaginationPreviousBaseProps as PaginationPreviousProps,\n PaginationBaseProps as PaginationProps,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":"6eAgBMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAClCC,EAAAA,kBAAAA,IAAC,MAAA,CACC,KAAK,aACL,aAAW,aACX,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACN,EAEFF,EAAW,YAAc,aAEzB,MAAMK,EAAoBC,EAAM,WAC9B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAA,EAASK,IACxBJ,EAAAA,kBAAAA,IAAC,KAAA,CAAG,IAAAI,EAAU,UAAWH,EAAAA,GAAG,mCAAoCH,CAAS,EAAI,GAAGC,CAAA,CAAO,CAE3F,EACAG,EAAkB,YAAc,oBAEhC,MAAMG,EAAiBF,EAAM,WAC3B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAA,EAASK,IAAQJ,EAAAA,kBAAAA,IAAC,KAAA,CAAG,IAAAI,EAAU,UAAWH,EAAAA,GAAG,GAAIH,CAAS,EAAI,GAAGC,CAAA,CAAO,CAC3F,EACAM,EAAe,YAAc,iBAQ7B,MAAMC,EAAiB,CAAC,CAAE,UAAAR,EAAW,SAAAS,EAAU,KAAAC,EAAO,OAAQ,GAAGT,CAAA,IAC/DC,EAAAA,kBAAAA,IAAC,IAAA,CACC,eAAcO,EAAW,OAAS,OAClC,UAAWN,EAAAA,GACTQ,iBAAe,CACb,QAASF,EAAW,UAAY,QAChC,KAAAC,CAAA,CACD,EACDV,CAAA,EAED,GAAGC,CAAA,CACN,EAEFO,EAAe,YAAc,iBAE7B,MAAMI,EAAqB,CAAC,CAC1B,UAAAZ,EACA,GAAGC,CACL,IACEY,EAAAA,kBAAAA,KAACL,EAAA,CAAe,aAAW,sBAAsB,KAAK,UAAU,UAAWL,EAAAA,GAAG,eAAgBH,CAAS,EAAI,GAAGC,EAC5G,SAAA,CAAAC,EAAAA,kBAAAA,IAACY,EAAAA,YAAA,CAAY,UAAU,SAAA,CAAU,EACjCZ,EAAAA,kBAAAA,IAAC,QAAK,SAAA,UAAA,CAAQ,CAAA,CAAA,CAChB,EAEFU,EAAmB,YAAc,qBAEjC,MAAMG,EAAiB,CAAC,CACtB,UAAAf,EACA,GAAGC,CACL,IACEY,EAAAA,kBAAAA,KAACL,EAAA,CAAe,aAAW,kBAAkB,KAAK,UAAU,UAAWL,EAAAA,GAAG,eAAgBH,CAAS,EAAI,GAAGC,EACxG,SAAA,CAAAC,EAAAA,kBAAAA,IAAC,QAAK,SAAA,MAAA,CAAI,EACVA,EAAAA,kBAAAA,IAACc,EAAAA,aAAA,CAAa,UAAU,SAAA,CAAU,CAAA,CAAA,CACpC,EAEFD,EAAe,YAAc,iBAE7B,MAAME,EAAqB,CAAC,CAAE,UAAAjB,EAAW,GAAGC,KAC1CY,EAAAA,kBAAAA,KAAC,OAAA,CAAK,cAAW,GAAC,UAAWV,EAAAA,GAAG,2CAA4CH,CAAS,EAAI,GAAGC,EAC1F,SAAA,CAAAC,EAAAA,kBAAAA,IAACgB,EAAAA,SAAA,CAAe,UAAU,SAAA,CAAU,EACpChB,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,YAAA,CAAU,CAAA,CAAA,CACtC,EAEFe,EAAmB,YAAc"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as i, E as r, l as c, o as m } from "./vendor-DxBXMLEx.mjs";
3
3
  import * as o from "react";
4
- import { buttonVariants as p } from "./button.es.js";
4
+ import { buttonVariants as p } from "./button.mjs";
5
5
  import { c as e } from "./utils-Dk-Gx69q.mjs";
6
6
  const g = ({ className: s, ...a }) => /* @__PURE__ */ i.jsx(
7
7
  "nav",
@@ -66,4 +66,4 @@ export {
66
66
  f as PaginationNext,
67
67
  d as PaginationPrevious
68
68
  };
69
- //# sourceMappingURL=pagination.es.js.map
69
+ //# sourceMappingURL=pagination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.mjs","sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["'use client';\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n PaginationBaseProps,\n PaginationContentBaseProps,\n PaginationEllipsisBaseProps,\n PaginationItemBaseProps,\n PaginationLinkBaseProps,\n PaginationNextBaseProps,\n PaginationPreviousBaseProps,\n} from '@gv-tech/ui-core';\nimport { ButtonProps, buttonVariants } from './button';\nimport { cn } from './lib/utils';\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'> & PaginationBaseProps) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'> & PaginationContentBaseProps>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'> & PaginationItemBaseProps>(\n ({ className, ...props }, ref) => <li ref={ref} className={cn('', className)} {...props} />,\n);\nPaginationItem.displayName = 'PaginationItem';\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'> &\n PaginationLinkBaseProps;\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'outline' : 'ghost',\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink> & PaginationPreviousBaseProps) => (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('gap-1 pl-2.5', className)} {...props}>\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink> & PaginationNextBaseProps) => (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('gap-1 pr-2.5', className)} {...props}>\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = 'PaginationNext';\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'> & PaginationEllipsisBaseProps) => (\n <span aria-hidden className={cn('flex h-9 w-9 items-center justify-center', className)} {...props}>\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\nexport type {\n PaginationContentBaseProps as PaginationContentProps,\n PaginationEllipsisBaseProps as PaginationEllipsisProps,\n PaginationItemBaseProps as PaginationItemProps,\n PaginationLinkProps,\n PaginationNextBaseProps as PaginationNextProps,\n PaginationPreviousBaseProps as PaginationPreviousProps,\n PaginationBaseProps as PaginationProps,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;;AAgBA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAClCC,gBAAAA,EAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAEzB,MAAMK,IAAoBC,EAAM;AAAA,EAC9B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAASK,MACxBJ,gBAAAA,EAAAA,IAAC,MAAA,EAAG,KAAAI,GAAU,WAAWH,EAAG,oCAAoCH,CAAS,GAAI,GAAGC,EAAA,CAAO;AAE3F;AACAG,EAAkB,cAAc;AAEhC,MAAMG,IAAiBF,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAASK,MAAQJ,gBAAAA,EAAAA,IAAC,MAAA,EAAG,KAAAI,GAAU,WAAWH,EAAG,IAAIH,CAAS,GAAI,GAAGC,EAAA,CAAO;AAC3F;AACAM,EAAe,cAAc;AAQ7B,MAAMC,IAAiB,CAAC,EAAE,WAAAR,GAAW,UAAAS,GAAU,MAAAC,IAAO,QAAQ,GAAGT,EAAA,MAC/DC,gBAAAA,EAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,gBAAcO,IAAW,SAAS;AAAA,IAClC,WAAWN;AAAA,MACTQ,EAAe;AAAA,QACb,SAASF,IAAW,YAAY;AAAA,QAChC,MAAAC;AAAA,MAAA,CACD;AAAA,MACDV;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN;AAEFO,EAAe,cAAc;AAE7B,MAAMI,IAAqB,CAAC;AAAA,EAC1B,WAAAZ;AAAA,EACA,GAAGC;AACL,MACEY,gBAAAA,EAAAA,KAACL,GAAA,EAAe,cAAW,uBAAsB,MAAK,WAAU,WAAWL,EAAG,gBAAgBH,CAAS,GAAI,GAAGC,GAC5G,UAAA;AAAA,EAAAC,gBAAAA,EAAAA,IAACY,GAAA,EAAY,WAAU,UAAA,CAAU;AAAA,EACjCZ,gBAAAA,EAAAA,IAAC,UAAK,UAAA,WAAA,CAAQ;AAAA,EAAA,CAChB;AAEFU,EAAmB,cAAc;AAEjC,MAAMG,IAAiB,CAAC;AAAA,EACtB,WAAAf;AAAA,EACA,GAAGC;AACL,MACEY,gBAAAA,EAAAA,KAACL,GAAA,EAAe,cAAW,mBAAkB,MAAK,WAAU,WAAWL,EAAG,gBAAgBH,CAAS,GAAI,GAAGC,GACxG,UAAA;AAAA,EAAAC,gBAAAA,EAAAA,IAAC,UAAK,UAAA,OAAA,CAAI;AAAA,EACVA,gBAAAA,EAAAA,IAACc,GAAA,EAAa,WAAU,UAAA,CAAU;AAAA,EAAA,CACpC;AAEFD,EAAe,cAAc;AAE7B,MAAME,IAAqB,CAAC,EAAE,WAAAjB,GAAW,GAAGC,QAC1CY,gBAAAA,EAAAA,KAAC,QAAA,EAAK,eAAW,IAAC,WAAWV,EAAG,4CAA4CH,CAAS,GAAI,GAAGC,GAC1F,UAAA;AAAA,EAAAC,gBAAAA,EAAAA,IAACgB,GAAA,EAAe,WAAU,UAAA,CAAU;AAAA,EACpChB,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,aAAA,CAAU;AAAA,EAAA,CACtC;AAEFe,EAAmB,cAAc;"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),s=require("react"),d=require("./utils-DKStzUzN.js");function c(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return r.default=t,Object.freeze(r)}const p=c(s),l=e.Root2$5,u=e.Trigger$4,m=e.Anchor2,a=p.forwardRef(({className:t,align:r="center",sideOffset:o=4,...n},i)=>e.jsxRuntimeExports.jsx(e.Portal,{children:e.jsxRuntimeExports.jsx(e.Content2$5,{ref:i,align:r,sideOffset:o,className:d.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-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none",t),...n})}));a.displayName=e.Content2$5.displayName;exports.Popover=l;exports.PopoverAnchor=m;exports.PopoverContent=a;exports.PopoverTrigger=u;
2
- //# sourceMappingURL=popover.cjs.js.map
2
+ //# sourceMappingURL=popover.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.cjs","sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\n\nimport {\n PopoverAnchorBaseProps,\n PopoverBaseProps,\n PopoverContentBaseProps,\n PopoverTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & PopoverContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.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-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };\nexport type {\n PopoverAnchorBaseProps as PopoverAnchorProps,\n PopoverContentBaseProps as PopoverContentProps,\n PopoverBaseProps as PopoverProps,\n PopoverTriggerBaseProps as PopoverTriggerProps,\n};\n"],"names":["Popover","PopoverPrimitive.Root","PopoverTrigger","PopoverPrimitive.Trigger","PopoverAnchor","PopoverPrimitive.Anchor","PopoverContent","React","className","align","sideOffset","props","ref","jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":"mdAaMA,EAAUC,EAAAA,QAEVC,EAAiBC,EAAAA,UAEjBC,EAAgBC,EAAAA,QAEhBC,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAA,EAASC,IAC5DC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,SAAAD,EAAAA,kBAAAA,IAACE,EAAAA,WAAA,CACC,IAAAH,EACA,MAAAH,EACA,WAAAC,EACA,UAAWM,EAAAA,GACT,+dACAR,CAAA,EAED,GAAGG,CAAA,CACN,EACF,CACD,EACDL,EAAe,YAAcS,EAAAA,WAAyB"}
@@ -22,4 +22,4 @@ export {
22
22
  f as PopoverContent,
23
23
  v as PopoverTrigger
24
24
  };
25
- //# sourceMappingURL=popover.es.js.map
25
+ //# sourceMappingURL=popover.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.mjs","sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\n\nimport {\n PopoverAnchorBaseProps,\n PopoverBaseProps,\n PopoverContentBaseProps,\n PopoverTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & PopoverContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.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-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };\nexport type {\n PopoverAnchorBaseProps as PopoverAnchorProps,\n PopoverContentBaseProps as PopoverContentProps,\n PopoverBaseProps as PopoverProps,\n PopoverTriggerBaseProps as PopoverTriggerProps,\n};\n"],"names":["Popover","PopoverPrimitive.Root","PopoverTrigger","PopoverPrimitive.Trigger","PopoverAnchor","PopoverPrimitive.Anchor","PopoverContent","React","className","align","sideOffset","props","ref","jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":";;;;AAaA,MAAMA,IAAUC,GAEVC,IAAiBC,GAEjBC,IAAgBC,GAEhBC,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,EAAA,GAASC,MAC5DC,gBAAAA,EAAAA,IAACC,GAAA,EACC,UAAAD,gBAAAA,EAAAA;AAAAA,EAACE;AAAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWM;AAAA,MACT;AAAA,MACAR;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,GACF,CACD;AACDL,EAAe,cAAcS,EAAyB;"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./vendor-DQFuDa7q.js"),l=require("react"),a=require("./utils-DKStzUzN.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=i(l),s=c.forwardRef(({className:e,value:t,...r},n)=>o.jsxRuntimeExports.jsx(o.Root$4,{ref:n,className:a.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),value:t,...r,children:o.jsxRuntimeExports.jsx(o.Indicator$1,{className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));s.displayName=o.Root$4.displayName;exports.Progress=s;
2
- //# sourceMappingURL=progress.cjs.js.map
2
+ //# sourceMappingURL=progress.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.cjs","sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\nimport * as React from 'react';\n\nimport { ProgressBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> & ProgressBaseProps\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n value={value}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"bg-primary h-full w-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n));\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\nexport { Progress };\nexport type { ProgressBaseProps as ProgressProps };\n"],"names":["Progress","React","className","value","props","ref","jsx","ProgressPrimitive.Root","cn","ProgressPrimitive.Indicator"],"mappings":"mdAQMA,EAAWC,EAAM,WAGrB,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGC,GAASC,IACjCC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,iEAAkEN,CAAS,EACzF,MAAAC,EACC,GAAGC,EAEJ,SAAAE,EAAAA,kBAAAA,IAACG,EAAAA,YAAA,CACC,UAAU,iDACV,MAAO,CAAE,UAAW,eAAe,KAAON,GAAS,EAAE,IAAA,CAAK,CAAA,CAC5D,CACF,CACD,EACDH,EAAS,YAAcO,EAAAA,OAAuB"}
@@ -22,4 +22,4 @@ f.displayName = s.displayName;
22
22
  export {
23
23
  f as Progress
24
24
  };
25
- //# sourceMappingURL=progress.es.js.map
25
+ //# sourceMappingURL=progress.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.mjs","sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\nimport * as React from 'react';\n\nimport { ProgressBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> & ProgressBaseProps\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n value={value}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"bg-primary h-full w-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n));\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\nexport { Progress };\nexport type { ProgressBaseProps as ProgressProps };\n"],"names":["Progress","React","className","value","props","ref","jsx","ProgressPrimitive.Root","cn","ProgressPrimitive.Indicator"],"mappings":";;;;AAQA,MAAMA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGC,KAASC,MACjCC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,kEAAkEN,CAAS;AAAA,IACzF,OAAAC;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAAE,gBAAAA,EAAAA;AAAAA,MAACG;AAAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,OAAO,EAAE,WAAW,eAAe,OAAON,KAAS,EAAE,KAAA;AAAA,MAAK;AAAA,IAAA;AAAA,EAC5D;AACF,CACD;AACDH,EAAS,cAAcO,EAAuB;"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),l=require("react"),i=require("./utils-DKStzUzN.js");function u(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>r[t]})}}return o.default=r,Object.freeze(o)}const a=u(l),n=a.forwardRef(({className:r,...o},t)=>e.jsxRuntimeExports.jsx(e.Root2$6,{className:i.cn("grid gap-2",r),...o,ref:t}));n.displayName=e.Root2$6.displayName;const c=a.forwardRef(({className:r,...o},t)=>e.jsxRuntimeExports.jsx(e.Item2$1,{ref:t,className:i.cn("border-primary text-primary focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",r),...o,children:e.jsxRuntimeExports.jsx(e.Indicator$2,{className:"flex items-center justify-center",children:e.jsxRuntimeExports.jsx(e.Circle,{className:"fill-primary h-3.5 w-3.5"})})}));c.displayName=e.Item2$1.displayName;exports.RadioGroup=n;exports.RadioGroupItem=c;
2
- //# sourceMappingURL=radio-group.cjs.js.map
2
+ //# sourceMappingURL=radio-group.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.cjs","sources":["../packages/ui-web/src/radio-group.tsx"],"sourcesContent":["'use client';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport type { RadioGroupBaseProps, RadioGroupItemBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface RadioGroupProps\n extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, RadioGroupBaseProps {}\n\nconst RadioGroup = React.forwardRef<React.ElementRef<typeof RadioGroupPrimitive.Root>, RadioGroupProps>(\n ({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />;\n },\n);\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nexport interface RadioGroupItemProps\n extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, RadioGroupItemBaseProps {}\n\nconst RadioGroupItem = React.forwardRef<React.ElementRef<typeof RadioGroupPrimitive.Item>, RadioGroupItemProps>(\n ({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-primary text-primary focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"fill-primary h-3.5 w-3.5\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n },\n);\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive.Root","cn","RadioGroupItem","RadioGroupPrimitive.Item","RadioGroupPrimitive.Indicator","Circle"],"mappings":"mdAWMA,EAAaC,EAAM,WACvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IACjBC,wBAACC,EAAAA,QAAA,CAAyB,UAAWC,EAAAA,GAAG,aAAcL,CAAS,EAAI,GAAGC,EAAO,IAAAC,EAAU,CAElG,EACAJ,EAAW,YAAcM,EAAAA,QAAyB,YAKlD,MAAME,EAAiBP,EAAM,WAC3B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAEtBC,EAAAA,kBAAAA,IAACI,EAAAA,QAAA,CACC,IAAAL,EACA,UAAWG,EAAAA,GACT,+LACAL,CAAA,EAED,GAAGC,EAEJ,SAAAE,EAAAA,kBAAAA,IAACK,cAAA,CAA8B,UAAU,mCACvC,SAAAL,EAAAA,kBAAAA,IAACM,EAAAA,OAAA,CAAO,UAAU,0BAAA,CAA2B,CAAA,CAC/C,CAAA,CAAA,CAIR,EACAH,EAAe,YAAcC,EAAAA,QAAyB"}
@@ -25,4 +25,4 @@ export {
25
25
  m as RadioGroup,
26
26
  n as RadioGroupItem
27
27
  };
28
- //# sourceMappingURL=radio-group.es.js.map
28
+ //# sourceMappingURL=radio-group.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.mjs","sources":["../packages/ui-web/src/radio-group.tsx"],"sourcesContent":["'use client';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport type { RadioGroupBaseProps, RadioGroupItemBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface RadioGroupProps\n extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, RadioGroupBaseProps {}\n\nconst RadioGroup = React.forwardRef<React.ElementRef<typeof RadioGroupPrimitive.Root>, RadioGroupProps>(\n ({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />;\n },\n);\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nexport interface RadioGroupItemProps\n extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, RadioGroupItemBaseProps {}\n\nconst RadioGroupItem = React.forwardRef<React.ElementRef<typeof RadioGroupPrimitive.Item>, RadioGroupItemProps>(\n ({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-primary text-primary focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"fill-primary h-3.5 w-3.5\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n },\n);\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive.Root","cn","RadioGroupItem","RadioGroupPrimitive.Item","RadioGroupPrimitive.Indicator","Circle"],"mappings":";;;;AAWA,MAAMA,IAAaC,EAAM;AAAA,EACvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACjBC,gBAAAA,MAACC,GAAA,EAAyB,WAAWC,EAAG,cAAcL,CAAS,GAAI,GAAGC,GAAO,KAAAC,GAAU;AAElG;AACAJ,EAAW,cAAcM,EAAyB;AAKlD,MAAME,IAAiBP,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAEtBC,gBAAAA,EAAAA;AAAAA,IAACI;AAAAA,IAAA;AAAA,MACC,KAAAL;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEJ,UAAAE,gBAAAA,EAAAA,IAACK,GAAA,EAA8B,WAAU,oCACvC,UAAAL,gBAAAA,EAAAA,IAACM,GAAA,EAAO,WAAU,2BAAA,CAA2B,EAAA,CAC/C;AAAA,IAAA;AAAA,EAAA;AAIR;AACAH,EAAe,cAAcC,EAAyB;"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),i=require("./utils-DKStzUzN.js"),l=({className:t,direction:a,...r})=>e.jsxRuntimeExports.jsx(e.Dt,{orientation:a,className:i.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...r}),n=e.At,s=({withHandle:t,className:a,...r})=>e.jsxRuntimeExports.jsx(e.Ft,{className:i.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",a),...r,children:t&&e.jsxRuntimeExports.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",children:e.jsxRuntimeExports.jsx(e.GripVertical,{className:"h-2.5 w-2.5"})})});exports.ResizableHandle=s;exports.ResizablePanel=n;exports.ResizablePanelGroup=l;
2
- //# sourceMappingURL=resizable.cjs.js.map
2
+ //# sourceMappingURL=resizable.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizable.cjs","sources":["../packages/ui-web/src/resizable.tsx"],"sourcesContent":["'use client';\n\nimport { GripVertical } from 'lucide-react';\nimport * as React from 'react';\nimport { Group, Panel, Separator } from 'react-resizable-panels';\n\nimport { ResizableHandleBaseProps, ResizablePanelBaseProps, ResizablePanelGroupBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\n// Assuming newer version uses PanelGroup/PanelResizeHandle, but user code used Group/Separator.\n// Let's check if PanelGroup exists, if not fallback to Group.\n// Actually, I should inspect the user's code again.\n// User code:\n// const ResizablePanelGroup = ({ ... }: React.ComponentProps<typeof Group> ...\n// const ResizableHandle = ({ ... }: React.ComponentProps<typeof Separator> ...\n\n// It seems the user is using an older version or a specific version where Group and Separator are the exports.\n// I will align with user's code.\n\nconst ResizablePanelGroup = ({\n className,\n direction,\n ...props\n}: React.ComponentProps<typeof Group> & ResizablePanelGroupBaseProps) => (\n <Group\n orientation={direction}\n className={cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className)}\n {...props}\n />\n);\n\nconst ResizablePanel = Panel;\n\nconst ResizableHandle = ({\n withHandle,\n className,\n ...props\n}: React.ComponentProps<typeof Separator> & ResizableHandleBaseProps) => (\n <Separator\n className={cn(\n 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border\">\n <GripVertical className=\"h-2.5 w-2.5\" />\n </div>\n )}\n </Separator>\n);\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\nexport type {\n ResizableHandleBaseProps as ResizableHandleProps,\n ResizablePanelGroupBaseProps as ResizablePanelGroupProps,\n ResizablePanelBaseProps as ResizablePanelProps,\n};\n"],"names":["ResizablePanelGroup","className","direction","props","jsx","Group","cn","ResizablePanel","Panel","ResizableHandle","withHandle","Separator","GripVertical"],"mappings":"sKAmBMA,EAAsB,CAAC,CAC3B,UAAAC,EACA,UAAAC,EACA,GAAGC,CACL,IACEC,EAAAA,kBAAAA,IAACC,EAAAA,GAAA,CACC,YAAaH,EACb,UAAWI,EAAAA,GAAG,oEAAqEL,CAAS,EAC3F,GAAGE,CAAA,CACN,EAGII,EAAiBC,EAAAA,GAEjBC,EAAkB,CAAC,CACvB,WAAAC,EACA,UAAAT,EACA,GAAGE,CACL,IACEC,EAAAA,kBAAAA,IAACO,EAAAA,GAAA,CACC,UAAWL,EAAAA,GACT,0oBACAL,CAAA,EAED,GAAGE,EAEH,SAAAO,2BACE,MAAA,CAAI,UAAU,4EACb,SAAAN,EAAAA,kBAAAA,IAACQ,EAAAA,aAAA,CAAa,UAAU,aAAA,CAAc,CAAA,CACxC,CAAA,CAEJ"}
@@ -32,4 +32,4 @@ export {
32
32
  p as ResizablePanel,
33
33
  d as ResizablePanelGroup
34
34
  };
35
- //# sourceMappingURL=resizable.es.js.map
35
+ //# sourceMappingURL=resizable.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizable.mjs","sources":["../packages/ui-web/src/resizable.tsx"],"sourcesContent":["'use client';\n\nimport { GripVertical } from 'lucide-react';\nimport * as React from 'react';\nimport { Group, Panel, Separator } from 'react-resizable-panels';\n\nimport { ResizableHandleBaseProps, ResizablePanelBaseProps, ResizablePanelGroupBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\n// Assuming newer version uses PanelGroup/PanelResizeHandle, but user code used Group/Separator.\n// Let's check if PanelGroup exists, if not fallback to Group.\n// Actually, I should inspect the user's code again.\n// User code:\n// const ResizablePanelGroup = ({ ... }: React.ComponentProps<typeof Group> ...\n// const ResizableHandle = ({ ... }: React.ComponentProps<typeof Separator> ...\n\n// It seems the user is using an older version or a specific version where Group and Separator are the exports.\n// I will align with user's code.\n\nconst ResizablePanelGroup = ({\n className,\n direction,\n ...props\n}: React.ComponentProps<typeof Group> & ResizablePanelGroupBaseProps) => (\n <Group\n orientation={direction}\n className={cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className)}\n {...props}\n />\n);\n\nconst ResizablePanel = Panel;\n\nconst ResizableHandle = ({\n withHandle,\n className,\n ...props\n}: React.ComponentProps<typeof Separator> & ResizableHandleBaseProps) => (\n <Separator\n className={cn(\n 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border\">\n <GripVertical className=\"h-2.5 w-2.5\" />\n </div>\n )}\n </Separator>\n);\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\nexport type {\n ResizableHandleBaseProps as ResizableHandleProps,\n ResizablePanelGroupBaseProps as ResizablePanelGroupProps,\n ResizablePanelBaseProps as ResizablePanelProps,\n};\n"],"names":["ResizablePanelGroup","className","direction","props","jsx","Group","cn","ResizablePanel","Panel","ResizableHandle","withHandle","Separator","GripVertical"],"mappings":";;;AAmBA,MAAMA,IAAsB,CAAC;AAAA,EAC3B,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MACEC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,aAAaH;AAAA,IACb,WAAWI,EAAG,qEAAqEL,CAAS;AAAA,IAC3F,GAAGE;AAAA,EAAA;AACN,GAGII,IAAiBC,GAEjBC,IAAkB,CAAC;AAAA,EACvB,YAAAC;AAAA,EACA,WAAAT;AAAA,EACA,GAAGE;AACL,MACEC,gBAAAA,EAAAA;AAAAA,EAACO;AAAAA,EAAA;AAAA,IACC,WAAWL;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEH,UAAAO,2BACE,OAAA,EAAI,WAAU,6EACb,UAAAN,gBAAAA,EAAAA,IAACQ,GAAA,EAAa,WAAU,cAAA,CAAc,EAAA,CACxC;AAAA,EAAA;AAEJ;"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),i=require("react"),a=require("./utils-DKStzUzN.js");function u(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const l in r)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(t,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}return t.default=r,Object.freeze(t)}const n=u(i),c=n.forwardRef(({className:r,children:t,...l},o)=>e.jsxRuntimeExports.jsxs(e.Root$5,{ref:o,className:a.cn("relative overflow-hidden",r),...l,children:[e.jsxRuntimeExports.jsx(e.Viewport$1,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsxRuntimeExports.jsx(s,{}),e.jsxRuntimeExports.jsx(e.Corner,{})]}));c.displayName=e.Root$5.displayName;const s=n.forwardRef(({className:r,orientation:t="vertical",...l},o)=>e.jsxRuntimeExports.jsx(e.ScrollAreaScrollbar,{ref:o,orientation:t,className:a.cn("flex touch-none transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:e.jsxRuntimeExports.jsx(e.ScrollAreaThumb,{className:"bg-border relative flex-1 rounded-full"})}));s.displayName=e.ScrollAreaScrollbar.displayName;exports.ScrollArea=c;exports.ScrollBar=s;
2
- //# sourceMappingURL=scroll-area.cjs.js.map
2
+ //# sourceMappingURL=scroll-area.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.cjs","sources":["../packages/ui-web/src/scroll-area.tsx"],"sourcesContent":["'use client';\n\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport * as React from 'react';\n\nimport { ScrollAreaBaseProps, ScrollBarBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & ScrollAreaBaseProps\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root ref={ref} className={cn('relative overflow-hidden', className)} {...props}>\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">{children}</ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar> & ScrollBarBaseProps\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n 'flex touch-none transition-colors select-none',\n orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]',\n orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-[1px]',\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"bg-border relative flex-1 rounded-full\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\nexport type { ScrollAreaBaseProps as ScrollAreaProps, ScrollBarBaseProps as ScrollBarProps };\n"],"names":["ScrollArea","React","className","children","props","ref","ScrollAreaPrimitive.Root","cn","jsx","ScrollAreaPrimitive.Viewport","ScrollBar","ScrollAreaPrimitive.Corner","orientation","ScrollAreaPrimitive.ScrollAreaScrollbar","ScrollAreaPrimitive.ScrollAreaThumb"],"mappings":"mdAQMA,EAAaC,EAAM,WAGvB,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAA,EAASC,6BACnCC,EAAAA,OAAA,CAAyB,IAAAD,EAAU,UAAWE,EAAAA,GAAG,2BAA4BL,CAAS,EAAI,GAAGE,EAC5F,SAAA,CAAAI,EAAAA,kBAAAA,IAACC,EAAAA,WAAA,CAA6B,UAAU,kCAAmC,SAAAN,CAAA,CAAS,0BACnFO,EAAA,EAAU,EACXF,EAAAA,kBAAAA,IAACG,EAAAA,OAAA,CAAA,CAA2B,CAAA,EAC9B,CACD,EACDX,EAAW,YAAcM,EAAAA,OAAyB,YAElD,MAAMI,EAAYT,EAAM,WAGtB,CAAC,CAAE,UAAAC,EAAW,YAAAU,EAAc,WAAY,GAAGR,GAASC,IACpDG,EAAAA,kBAAAA,IAACK,EAAAA,oBAAA,CACC,IAAAR,EACA,YAAAO,EACA,UAAWL,EAAAA,GACT,gDACAK,IAAgB,YAAc,qDAC9BA,IAAgB,cAAgB,uDAChCV,CAAA,EAED,GAAGE,EAEJ,SAAAI,EAAAA,kBAAAA,IAACM,EAAAA,gBAAA,CAAoC,UAAU,wCAAA,CAAyC,CAAA,CAC1F,CACD,EACDJ,EAAU,YAAcG,EAAAA,oBAAwC"}
@@ -28,4 +28,4 @@ export {
28
28
  f as ScrollArea,
29
29
  n as ScrollBar
30
30
  };
31
- //# sourceMappingURL=scroll-area.es.js.map
31
+ //# sourceMappingURL=scroll-area.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.mjs","sources":["../packages/ui-web/src/scroll-area.tsx"],"sourcesContent":["'use client';\n\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport * as React from 'react';\n\nimport { ScrollAreaBaseProps, ScrollBarBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & ScrollAreaBaseProps\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root ref={ref} className={cn('relative overflow-hidden', className)} {...props}>\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">{children}</ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar> & ScrollBarBaseProps\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n 'flex touch-none transition-colors select-none',\n orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]',\n orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-[1px]',\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"bg-border relative flex-1 rounded-full\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\nexport type { ScrollAreaBaseProps as ScrollAreaProps, ScrollBarBaseProps as ScrollBarProps };\n"],"names":["ScrollArea","React","className","children","props","ref","ScrollAreaPrimitive.Root","cn","jsx","ScrollAreaPrimitive.Viewport","ScrollBar","ScrollAreaPrimitive.Corner","orientation","ScrollAreaPrimitive.ScrollAreaScrollbar","ScrollAreaPrimitive.ScrollAreaThumb"],"mappings":";;;;AAQA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,6BACnCC,GAAA,EAAyB,KAAAD,GAAU,WAAWE,EAAG,4BAA4BL,CAAS,GAAI,GAAGE,GAC5F,UAAA;AAAA,EAAAI,gBAAAA,EAAAA,IAACC,GAAA,EAA6B,WAAU,mCAAmC,UAAAN,EAAA,CAAS;AAAA,wBACnFO,GAAA,EAAU;AAAA,EACXF,gBAAAA,EAAAA,IAACG,GAAA,CAAA,CAA2B;AAAA,GAC9B,CACD;AACDX,EAAW,cAAcM,EAAyB;AAElD,MAAMI,IAAYT,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAU,IAAc,YAAY,GAAGR,KAASC,MACpDG,gBAAAA,EAAAA;AAAAA,EAACK;AAAAA,EAAA;AAAA,IACC,KAAAR;AAAA,IACA,aAAAO;AAAA,IACA,WAAWL;AAAA,MACT;AAAA,MACAK,MAAgB,cAAc;AAAA,MAC9BA,MAAgB,gBAAgB;AAAA,MAChCV;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEJ,UAAAI,gBAAAA,EAAAA,IAACM,GAAA,EAAoC,WAAU,yCAAA,CAAyC;AAAA,EAAA;AAC1F,CACD;AACDJ,EAAU,cAAcG,EAAwC;"}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),x=require("react"),j=require("./button.cjs"),g=require("./command.cjs"),m=require("./utils-DKStzUzN.js");function h(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return s.default=t,Object.freeze(s)}const c=h(x);function y({children:t,open:s,onOpenChange:e}){const[o,a]=c.useState(!1),l=s!==void 0,u=l?s:o,d=c.useCallback(i=>{let n;typeof i=="function"?n=i(u):n=i,l?e?.(n):a(n)},[l,u,e]);return c.useEffect(()=>{const i=n=>{n.key==="k"&&(n.metaKey||n.ctrlKey)&&(n.preventDefault(),d(f=>!f))};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[d]),r.jsxRuntimeExports.jsx(g.CommandDialog,{open:u,onOpenChange:d,children:t})}const p=c.forwardRef(({className:t,placeholder:s="Search docs...",variant:e="default",...o},a)=>r.jsxRuntimeExports.jsxs(j.Button,{variant:"outline",className:m.cn("text-muted-foreground relative h-9 text-sm transition-all transition-colors",e==="default"?"w-full justify-start pr-12":"w-9 justify-center px-0 md:w-40 md:justify-start md:px-3 md:pr-12 lg:w-64",t),ref:a,...o,children:[r.jsxRuntimeExports.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsxRuntimeExports.jsx(r.Search,{className:"h-4 w-4 shrink-0"}),r.jsxRuntimeExports.jsx("span",{className:m.cn("truncate",e==="compact"&&"hidden md:inline"),children:s})]}),r.jsxRuntimeExports.jsxs("kbd",{className:"bg-muted pointer-events-none absolute top-1.5 right-1.5 hidden h-6 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none sm:flex",children:[r.jsxRuntimeExports.jsx("span",{className:"text-xs",children:"⌘"}),"K"]})]}));p.displayName="SearchTrigger";exports.Search=y;exports.SearchTrigger=p;
2
+ //# sourceMappingURL=search.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.cjs","sources":["../packages/ui-web/src/search.tsx"],"sourcesContent":["'use client';\n\nimport { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';\nimport { Search as SearchIcon } from 'lucide-react';\nimport * as React from 'react';\nimport { Button } from './button';\nimport { CommandDialog } from './command';\nimport { cn } from './lib/utils';\n\nexport type SearchProps = SearchBaseProps;\n\nexport function Search({ children, open: customOpen, onOpenChange }: SearchProps) {\n const [open, setOpen] = React.useState(false);\n\n // If customOpen is provided (controlled), use it. Otherwise use internal state.\n // Note: customOpen can be undefined, so we check explicit undefined check or just rely on contract.\n const isControlled = customOpen !== undefined;\n const isOpen = isControlled ? (customOpen as boolean) : open;\n\n // We need a setter that matches Dispatch<SetStateAction<boolean>> roughly,\n // but handles the controlled callback.\n const setIsOpen = React.useCallback(\n (value: boolean | ((prev: boolean) => boolean)) => {\n let nextValue: boolean;\n if (typeof value === 'function') {\n nextValue = value(isOpen);\n } else {\n nextValue = value;\n }\n\n if (isControlled) {\n onOpenChange?.(nextValue);\n } else {\n setOpen(nextValue);\n }\n },\n [isControlled, isOpen, onOpenChange],\n );\n\n React.useEffect(() => {\n const down = (e: KeyboardEvent) => {\n if (e.key === 'k' && (e.metaKey || e.ctrlKey)) {\n e.preventDefault();\n setIsOpen((prev) => !prev);\n }\n };\n\n document.addEventListener('keydown', down);\n return () => document.removeEventListener('keydown', down);\n }, [setIsOpen]);\n\n return (\n <CommandDialog open={isOpen} onOpenChange={setIsOpen}>\n {children}\n </CommandDialog>\n );\n}\n\nexport interface SearchTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, SearchTriggerBaseProps {}\n\nexport const SearchTrigger = React.forwardRef<HTMLButtonElement, SearchTriggerProps>(\n ({ className, placeholder = 'Search docs...', variant = 'default', ...props }, ref) => {\n return (\n <Button\n variant=\"outline\"\n className={cn(\n 'text-muted-foreground relative h-9 text-sm transition-all transition-colors',\n variant === 'default'\n ? 'w-full justify-start pr-12'\n : 'w-9 justify-center px-0 md:w-40 md:justify-start md:px-3 md:pr-12 lg:w-64',\n className,\n )}\n ref={ref}\n {...props}\n >\n <span className=\"inline-flex items-center gap-2\">\n <SearchIcon className=\"h-4 w-4 shrink-0\" />\n <span className={cn('truncate', variant === 'compact' && 'hidden md:inline')}>{placeholder}</span>\n </span>\n <kbd className=\"bg-muted pointer-events-none absolute top-1.5 right-1.5 hidden h-6 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none sm:flex\">\n <span className=\"text-xs\">⌘</span>K\n </kbd>\n </Button>\n );\n },\n);\nSearchTrigger.displayName = 'SearchTrigger';\n"],"names":["Search","children","customOpen","onOpenChange","open","setOpen","React","isControlled","isOpen","setIsOpen","value","nextValue","down","e","prev","CommandDialog","SearchTrigger","className","placeholder","variant","props","ref","jsxs","Button","cn","jsx","SearchIcon"],"mappings":"wgBAWO,SAASA,EAAO,CAAE,SAAAC,EAAU,KAAMC,EAAY,aAAAC,GAA6B,CAChF,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAM,SAAS,EAAK,EAItCC,EAAeL,IAAe,OAC9BM,EAASD,EAAgBL,EAAyBE,EAIlDK,EAAYH,EAAM,YACrBI,GAAkD,CACjD,IAAIC,EACA,OAAOD,GAAU,WACnBC,EAAYD,EAAMF,CAAM,EAExBG,EAAYD,EAGVH,EACFJ,IAAeQ,CAAS,EAExBN,EAAQM,CAAS,CAErB,EACA,CAACJ,EAAcC,EAAQL,CAAY,CAAA,EAGrCG,OAAAA,EAAM,UAAU,IAAM,CACpB,MAAMM,EAAQC,GAAqB,CAC7BA,EAAE,MAAQ,MAAQA,EAAE,SAAWA,EAAE,WACnCA,EAAE,eAAA,EACFJ,EAAWK,GAAS,CAACA,CAAI,EAE7B,EAEA,gBAAS,iBAAiB,UAAWF,CAAI,EAClC,IAAM,SAAS,oBAAoB,UAAWA,CAAI,CAC3D,EAAG,CAACH,CAAS,CAAC,0BAGXM,EAAAA,cAAA,CAAc,KAAMP,EAAQ,aAAcC,EACxC,SAAAR,EACH,CAEJ,CAIO,MAAMe,EAAgBV,EAAM,WACjC,CAAC,CAAE,UAAAW,EAAW,YAAAC,EAAc,iBAAkB,QAAAC,EAAU,UAAW,GAAGC,CAAA,EAASC,IAE3EC,EAAAA,kBAAAA,KAACC,EAAAA,OAAA,CACC,QAAQ,UACR,UAAWC,EAAAA,GACT,8EACAL,IAAY,UACR,6BACA,4EACJF,CAAA,EAEF,IAAAI,EACC,GAAGD,EAEJ,SAAA,CAAAE,EAAAA,kBAAAA,KAAC,OAAA,CAAK,UAAU,iCACd,SAAA,CAAAG,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CAAW,UAAU,kBAAA,CAAmB,EACzCD,EAAAA,kBAAAA,IAAC,QAAK,UAAWD,KAAG,WAAYL,IAAY,WAAa,kBAAkB,EAAI,SAAAD,CAAA,CAAY,CAAA,EAC7F,EACAI,EAAAA,kBAAAA,KAAC,MAAA,CAAI,UAAU,gLACb,SAAA,CAAAG,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,IAAC,EAAO,GAAA,CAAA,CACpC,CAAA,CAAA,CAAA,CAIR,EACAT,EAAc,YAAc"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { j as t, aT as u } from "./vendor-DxBXMLEx.mjs";
3
3
  import * as o from "react";
4
- import { Button as x } from "./button.es.js";
5
- import { CommandDialog as h } from "./command.es.js";
4
+ import { Button as x } from "./button.mjs";
5
+ import { CommandDialog as h } from "./command.mjs";
6
6
  import { c as p } from "./utils-Dk-Gx69q.mjs";
7
7
  function N({ children: a, open: r, onOpenChange: s }) {
8
8
  const [i, c] = o.useState(!1), l = r !== void 0, m = l ? r : i, d = o.useCallback(
@@ -49,4 +49,4 @@ export {
49
49
  N as Search,
50
50
  j as SearchTrigger
51
51
  };
52
- //# sourceMappingURL=search.es.js.map
52
+ //# sourceMappingURL=search.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.mjs","sources":["../packages/ui-web/src/search.tsx"],"sourcesContent":["'use client';\n\nimport { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';\nimport { Search as SearchIcon } from 'lucide-react';\nimport * as React from 'react';\nimport { Button } from './button';\nimport { CommandDialog } from './command';\nimport { cn } from './lib/utils';\n\nexport type SearchProps = SearchBaseProps;\n\nexport function Search({ children, open: customOpen, onOpenChange }: SearchProps) {\n const [open, setOpen] = React.useState(false);\n\n // If customOpen is provided (controlled), use it. Otherwise use internal state.\n // Note: customOpen can be undefined, so we check explicit undefined check or just rely on contract.\n const isControlled = customOpen !== undefined;\n const isOpen = isControlled ? (customOpen as boolean) : open;\n\n // We need a setter that matches Dispatch<SetStateAction<boolean>> roughly,\n // but handles the controlled callback.\n const setIsOpen = React.useCallback(\n (value: boolean | ((prev: boolean) => boolean)) => {\n let nextValue: boolean;\n if (typeof value === 'function') {\n nextValue = value(isOpen);\n } else {\n nextValue = value;\n }\n\n if (isControlled) {\n onOpenChange?.(nextValue);\n } else {\n setOpen(nextValue);\n }\n },\n [isControlled, isOpen, onOpenChange],\n );\n\n React.useEffect(() => {\n const down = (e: KeyboardEvent) => {\n if (e.key === 'k' && (e.metaKey || e.ctrlKey)) {\n e.preventDefault();\n setIsOpen((prev) => !prev);\n }\n };\n\n document.addEventListener('keydown', down);\n return () => document.removeEventListener('keydown', down);\n }, [setIsOpen]);\n\n return (\n <CommandDialog open={isOpen} onOpenChange={setIsOpen}>\n {children}\n </CommandDialog>\n );\n}\n\nexport interface SearchTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, SearchTriggerBaseProps {}\n\nexport const SearchTrigger = React.forwardRef<HTMLButtonElement, SearchTriggerProps>(\n ({ className, placeholder = 'Search docs...', variant = 'default', ...props }, ref) => {\n return (\n <Button\n variant=\"outline\"\n className={cn(\n 'text-muted-foreground relative h-9 text-sm transition-all transition-colors',\n variant === 'default'\n ? 'w-full justify-start pr-12'\n : 'w-9 justify-center px-0 md:w-40 md:justify-start md:px-3 md:pr-12 lg:w-64',\n className,\n )}\n ref={ref}\n {...props}\n >\n <span className=\"inline-flex items-center gap-2\">\n <SearchIcon className=\"h-4 w-4 shrink-0\" />\n <span className={cn('truncate', variant === 'compact' && 'hidden md:inline')}>{placeholder}</span>\n </span>\n <kbd className=\"bg-muted pointer-events-none absolute top-1.5 right-1.5 hidden h-6 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none sm:flex\">\n <span className=\"text-xs\">⌘</span>K\n </kbd>\n </Button>\n );\n },\n);\nSearchTrigger.displayName = 'SearchTrigger';\n"],"names":["Search","children","customOpen","onOpenChange","open","setOpen","React","isControlled","isOpen","setIsOpen","value","nextValue","down","prev","CommandDialog","SearchTrigger","className","placeholder","variant","props","ref","jsxs","Button","cn","jsx","SearchIcon"],"mappings":";;;;;;AAWO,SAASA,EAAO,EAAE,UAAAC,GAAU,MAAMC,GAAY,cAAAC,KAA6B;AAChF,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,EAAK,GAItCC,IAAeL,MAAe,QAC9BM,IAASD,IAAgBL,IAAyBE,GAIlDK,IAAYH,EAAM;AAAA,IACtB,CAACI,MAAkD;AACjD,UAAIC;AACJ,MAAI,OAAOD,KAAU,aACnBC,IAAYD,EAAMF,CAAM,IAExBG,IAAYD,GAGVH,IACFJ,IAAeQ,CAAS,IAExBN,EAAQM,CAAS;AAAA,IAErB;AAAA,IACA,CAACJ,GAAcC,GAAQL,CAAY;AAAA,EAAA;AAGrC,SAAAG,EAAM,UAAU,MAAM;AACpB,UAAMM,IAAO,CAAC,MAAqB;AACjC,MAAI,EAAE,QAAQ,QAAQ,EAAE,WAAW,EAAE,aACnC,EAAE,eAAA,GACFH,EAAU,CAACI,MAAS,CAACA,CAAI;AAAA,IAE7B;AAEA,oBAAS,iBAAiB,WAAWD,CAAI,GAClC,MAAM,SAAS,oBAAoB,WAAWA,CAAI;AAAA,EAC3D,GAAG,CAACH,CAAS,CAAC,yBAGXK,GAAA,EAAc,MAAMN,GAAQ,cAAcC,GACxC,UAAAR,GACH;AAEJ;AAIO,MAAMc,IAAgBT,EAAM;AAAA,EACjC,CAAC,EAAE,WAAAU,GAAW,aAAAC,IAAc,kBAAkB,SAAAC,IAAU,WAAW,GAAGC,EAAA,GAASC,MAE3EC,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAWC;AAAA,QACT;AAAA,QACAL,MAAY,YACR,+BACA;AAAA,QACJF;AAAA,MAAA;AAAA,MAEF,KAAAI;AAAA,MACC,GAAGD;AAAA,MAEJ,UAAA;AAAA,QAAAE,gBAAAA,EAAAA,KAAC,QAAA,EAAK,WAAU,kCACd,UAAA;AAAA,UAAAG,gBAAAA,EAAAA,IAACC,GAAA,EAAW,WAAU,mBAAA,CAAmB;AAAA,UACzCD,gBAAAA,EAAAA,IAAC,UAAK,WAAWD,EAAG,YAAYL,MAAY,aAAa,kBAAkB,GAAI,UAAAD,EAAA,CAAY;AAAA,QAAA,GAC7F;AAAA,QACAI,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,iLACb,UAAA;AAAA,UAAAG,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,KAAC;AAAA,UAAO;AAAA,QAAA,EAAA,CACpC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AACAT,EAAc,cAAc;"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),f=require("react"),r=require("./utils-DKStzUzN.js");function j(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>s[t]})}}return a.default=s,Object.freeze(a)}const n=j(f),g=e.Root2$8,h=e.Group,S=e.Value,c=n.forwardRef(({className:s,children:a,...t},o)=>e.jsxRuntimeExports.jsxs(e.Trigger$7,{ref:o,className:r.cn("border-input ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-sm focus:ring-1 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...t,children:[a,e.jsxRuntimeExports.jsx(e.Icon,{asChild:!0,children:e.jsxRuntimeExports.jsx(e.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));c.displayName=e.Trigger$7.displayName;const l=n.forwardRef(({className:s,...a},t)=>e.jsxRuntimeExports.jsx(e.ScrollUpButton,{ref:t,className:r.cn("flex cursor-default items-center justify-center py-1",s),...a,children:e.jsxRuntimeExports.jsx(e.ChevronUp,{className:"h-4 w-4"})}));l.displayName=e.ScrollUpButton.displayName;const i=n.forwardRef(({className:s,...a},t)=>e.jsxRuntimeExports.jsx(e.ScrollDownButton,{ref:t,className:r.cn("flex cursor-default items-center justify-center py-1",s),...a,children:e.jsxRuntimeExports.jsx(e.ChevronDown,{className:"h-4 w-4"})}));i.displayName=e.ScrollDownButton.displayName;const d=n.forwardRef(({className:s,children:a,position:t="popper",...o},x)=>e.jsxRuntimeExports.jsx(e.Portal$2,{children:e.jsxRuntimeExports.jsxs(e.Content2$7,{ref:x,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 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:t,...o,children:[e.jsxRuntimeExports.jsx(l,{}),e.jsxRuntimeExports.jsx(e.Viewport$2,{className:r.cn("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsxRuntimeExports.jsx(i,{})]})}));d.displayName=e.Content2$7.displayName;const p=n.forwardRef(({className:s,...a},t)=>e.jsxRuntimeExports.jsx(e.Label,{ref:t,className:r.cn("px-2 py-1.5 text-sm font-semibold",s),...a}));p.displayName=e.Label.displayName;const m=n.forwardRef(({className:s,children:a,...t},o)=>e.jsxRuntimeExports.jsxs(e.Item$2,{ref:o,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),e.jsxRuntimeExports.jsx(e.ItemText,{children:a})]}));m.displayName=e.Item$2.displayName;const u=n.forwardRef(({className:s,...a},t)=>e.jsxRuntimeExports.jsx(e.Separator,{ref:t,className:r.cn("bg-muted -mx-1 my-1 h-px",s),...a}));u.displayName=e.Separator.displayName;exports.Select=g;exports.SelectContent=d;exports.SelectGroup=h;exports.SelectItem=m;exports.SelectLabel=p;exports.SelectScrollDownButton=i;exports.SelectScrollUpButton=l;exports.SelectSeparator=u;exports.SelectTrigger=c;exports.SelectValue=S;
2
- //# sourceMappingURL=select.cjs.js.map
2
+ //# sourceMappingURL=select.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.cjs","sources":["../packages/ui-web/src/select.tsx"],"sourcesContent":["'use client';\n\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n SelectBaseProps,\n SelectContentBaseProps,\n SelectGroupBaseProps,\n SelectItemBaseProps,\n SelectLabelBaseProps,\n SelectScrollDownButtonBaseProps,\n SelectScrollUpButtonBaseProps,\n SelectSeparatorBaseProps,\n SelectTriggerBaseProps,\n SelectValueBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> & SelectTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'border-input ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-sm focus:ring-1 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton> & SelectScrollUpButtonBaseProps\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton> & SelectScrollDownButtonBaseProps\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> & SelectContentBaseProps\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\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 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border shadow-md',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label> & SelectLabelBaseProps\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label ref={ref} className={cn('px-2 py-1.5 text-sm font-semibold', className)} {...props} />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & SelectItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator> & SelectSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n\nexport type {\n SelectContentBaseProps as SelectContentProps,\n SelectGroupBaseProps as SelectGroupProps,\n SelectItemBaseProps as SelectItemProps,\n SelectLabelBaseProps as SelectLabelProps,\n SelectBaseProps as SelectProps,\n SelectScrollDownButtonBaseProps as SelectScrollDownButtonProps,\n SelectScrollUpButtonBaseProps as SelectScrollUpButtonProps,\n SelectSeparatorBaseProps as SelectSeparatorProps,\n SelectTriggerBaseProps as SelectTriggerProps,\n SelectValueBaseProps as SelectValueProps,\n};\n"],"names":["Select","SelectPrimitive.Root","SelectGroup","SelectPrimitive.Group","SelectValue","SelectPrimitive.Value","SelectTrigger","React","className","children","props","ref","jsxs","SelectPrimitive.Trigger","cn","jsx","SelectPrimitive.Icon","ChevronDown","SelectScrollUpButton","SelectPrimitive.ScrollUpButton","ChevronUp","SelectScrollDownButton","SelectPrimitive.ScrollDownButton","SelectContent","position","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Viewport","SelectLabel","SelectPrimitive.Label","SelectItem","SelectPrimitive.Item","SelectPrimitive.ItemIndicator","Check","SelectPrimitive.ItemText","SelectSeparator","SelectPrimitive.Separator"],"mappings":"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"}
@@ -98,4 +98,4 @@ export {
98
98
  B as SelectTrigger,
99
99
  q as SelectValue
100
100
  };
101
- //# sourceMappingURL=select.es.js.map
101
+ //# sourceMappingURL=select.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.mjs","sources":["../packages/ui-web/src/select.tsx"],"sourcesContent":["'use client';\n\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n SelectBaseProps,\n SelectContentBaseProps,\n SelectGroupBaseProps,\n SelectItemBaseProps,\n SelectLabelBaseProps,\n SelectScrollDownButtonBaseProps,\n SelectScrollUpButtonBaseProps,\n SelectSeparatorBaseProps,\n SelectTriggerBaseProps,\n SelectValueBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> & SelectTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'border-input ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-sm focus:ring-1 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton> & SelectScrollUpButtonBaseProps\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton> & SelectScrollDownButtonBaseProps\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> & SelectContentBaseProps\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\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 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border shadow-md',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label> & SelectLabelBaseProps\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label ref={ref} className={cn('px-2 py-1.5 text-sm font-semibold', className)} {...props} />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & SelectItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator> & SelectSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n\nexport type {\n SelectContentBaseProps as SelectContentProps,\n SelectGroupBaseProps as SelectGroupProps,\n SelectItemBaseProps as SelectItemProps,\n SelectLabelBaseProps as SelectLabelProps,\n SelectBaseProps as SelectProps,\n SelectScrollDownButtonBaseProps as SelectScrollDownButtonProps,\n SelectScrollUpButtonBaseProps as SelectScrollUpButtonProps,\n SelectSeparatorBaseProps as SelectSeparatorProps,\n SelectTriggerBaseProps as SelectTriggerProps,\n SelectValueBaseProps as SelectValueProps,\n};\n"],"names":["Select","SelectPrimitive.Root","SelectGroup","SelectPrimitive.Group","SelectValue","SelectPrimitive.Value","SelectTrigger","React","className","children","props","ref","jsxs","SelectPrimitive.Trigger","cn","jsx","SelectPrimitive.Icon","ChevronDown","SelectScrollUpButton","SelectPrimitive.ScrollUpButton","ChevronUp","SelectScrollDownButton","SelectPrimitive.ScrollDownButton","SelectContent","position","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Viewport","SelectLabel","SelectPrimitive.Label","SelectItem","SelectPrimitive.Item","SelectPrimitive.ItemIndicator","Check","SelectPrimitive.ItemText","SelectSeparator","SelectPrimitive.Separator"],"mappings":";;;;AAoBA,MAAMA,IAASC,GAETC,IAAcC,GAEdC,IAAcC,GAEdC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACDM,gBAAAA,EAAAA,IAACC,GAAA,EAAqB,SAAO,IAC3B,UAAAD,gBAAAA,EAAAA,IAACE,GAAA,EAAY,WAAU,qBAAA,CAAqB,EAAA,CAC9C;AAAA,IAAA;AAAA,EAAA;AACF,CACD;AACDX,EAAc,cAAcO,EAAwB;AAEpD,MAAMK,IAAuBX,EAAM,WAGjC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BI,gBAAAA,EAAAA;AAAAA,EAACI;AAAAA,EAAA;AAAA,IACC,KAAAR;AAAA,IACA,WAAWG,EAAG,wDAAwDN,CAAS;AAAA,IAC9E,GAAGE;AAAA,IAEJ,UAAAK,gBAAAA,EAAAA,IAACK,GAAA,EAAU,WAAU,UAAA,CAAU;AAAA,EAAA;AACjC,CACD;AACDF,EAAqB,cAAcC,EAA+B;AAElE,MAAME,IAAyBd,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BI,gBAAAA,EAAAA;AAAAA,EAACO;AAAAA,EAAA;AAAA,IACC,KAAAX;AAAA,IACA,WAAWG,EAAG,wDAAwDN,CAAS;AAAA,IAC9E,GAAGE;AAAA,IAEJ,UAAAK,gBAAAA,EAAAA,IAACE,GAAA,EAAY,WAAU,UAAA,CAAU;AAAA,EAAA;AACnC,CACD;AACDI,EAAuB,cAAcC,EAAiC;AAEtE,MAAMC,IAAgBhB,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,UAAAe,IAAW,UAAU,GAAGd,KAASC,MACzDI,gBAAAA,EAAAA,IAACU,GAAA,EACC,UAAAb,gBAAAA,EAAAA;AAAAA,EAACc;AAAAA,EAAA;AAAA,IACC,KAAAf;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAU,MAAa,YACX;AAAA,MACFhB;AAAA,IAAA;AAAA,IAEF,UAAAgB;AAAA,IACC,GAAGd;AAAA,IAEJ,UAAA;AAAA,MAAAK,gBAAAA,EAAAA,IAACG,GAAA,EAAqB;AAAA,MACtBH,gBAAAA,EAAAA;AAAAA,QAACY;AAAAA,QAAA;AAAA,UACC,WAAWb;AAAA,YACT;AAAA,YACAU,MAAa,YACX;AAAA,UAAA;AAAA,UAGH,UAAAf;AAAA,QAAA;AAAA,MAAA;AAAA,4BAEFY,GAAA,CAAA,CAAuB;AAAA,IAAA;AAAA,EAAA;AAC1B,GACF,CACD;AACDE,EAAc,cAAcG,EAAwB;AAEpD,MAAME,IAAcrB,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BI,gBAAAA,EAAAA,IAACc,GAAA,EAAsB,KAAAlB,GAAU,WAAWG,EAAG,qCAAqCN,CAAS,GAAI,GAAGE,GAAO,CAC5G;AACDkB,EAAY,cAAcC,EAAsB;AAEhD,MAAMC,IAAavB,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACmB;AAAAA,EAAA;AAAA,IACC,KAAApB;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEJ,UAAA;AAAA,MAAAK,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,iEACd,UAAAA,gBAAAA,EAAAA,IAACiB,GAAA,EACC,UAAAjB,gBAAAA,EAAAA,IAACkB,GAAA,EAAM,WAAU,UAAA,CAAU,EAAA,CAC7B,GACF;AAAA,MACAlB,gBAAAA,MAACmB,GAAA,EAA0B,UAAAzB,EAAA,CAAS;AAAA,IAAA;AAAA,EAAA;AACtC,CACD;AACDqB,EAAW,cAAcC,EAAqB;AAE9C,MAAMI,IAAkB5B,EAAM,WAG5B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BI,gBAAAA,EAAAA,IAACqB,GAAA,EAA0B,KAAAzB,GAAU,WAAWG,EAAG,4BAA4BN,CAAS,GAAI,GAAGE,GAAO,CACvG;AACDyB,EAAgB,cAAcC,EAA0B;"}
@@ -1,2 +1,2 @@
1
1
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./vendor-DQFuDa7q.js"),l=require("react"),s=require("./utils-DKStzUzN.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=u(l),n=i.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...o},c)=>a.jsxRuntimeExports.jsx(a.Root$7,{ref:c,decorative:r,orientation:t,className:s.cn("bg-border shrink-0",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));n.displayName=a.Root$7.displayName;exports.Separator=n;
2
- //# sourceMappingURL=separator.cjs.js.map
2
+ //# sourceMappingURL=separator.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.cjs","sources":["../packages/ui-web/src/separator.tsx"],"sourcesContent":["'use client';\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport * as React from 'react';\n\nimport { SeparatorBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & SeparatorBaseProps\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]', className)}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\nexport type { SeparatorBaseProps as SeparatorProps };\n"],"names":["Separator","React","className","orientation","decorative","props","ref","jsx","SeparatorPrimitive.Root","cn"],"mappings":"mdAQMA,EAAYC,EAAM,WAGtB,CAAC,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,CAAA,EAASC,IACzEC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,IAAAF,EACA,WAAAF,EACA,YAAAD,EACA,UAAWM,EAAAA,GAAG,qBAAsBN,IAAgB,aAAe,iBAAmB,iBAAkBD,CAAS,EAChH,GAAGG,CAAA,CACN,CACD,EACDL,EAAU,YAAcQ,EAAAA,OAAwB"}
@@ -16,4 +16,4 @@ i.displayName = o.displayName;
16
16
  export {
17
17
  i as Separator
18
18
  };
19
- //# sourceMappingURL=separator.es.js.map
19
+ //# sourceMappingURL=separator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.mjs","sources":["../packages/ui-web/src/separator.tsx"],"sourcesContent":["'use client';\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport * as React from 'react';\n\nimport { SeparatorBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & SeparatorBaseProps\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]', className)}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\nexport type { SeparatorBaseProps as SeparatorProps };\n"],"names":["Separator","React","className","orientation","decorative","props","ref","jsx","SeparatorPrimitive.Root","cn"],"mappings":";;;;AAQA,MAAMA,IAAYC,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAC,IAAc,cAAc,YAAAC,IAAa,IAAM,GAAGC,EAAA,GAASC,MACzEC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,YAAAF;AAAA,IACA,aAAAD;AAAA,IACA,WAAWM,EAAG,sBAAsBN,MAAgB,eAAe,mBAAmB,kBAAkBD,CAAS;AAAA,IAChH,GAAGG;AAAA,EAAA;AACN,CACD;AACDL,EAAU,cAAcQ,EAAwB;"}