@gv-tech/design-system 2.22.2 → 2.23.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 (378) hide show
  1. package/README.md +20 -0
  2. package/dist/accordion.cjs +1 -1
  3. package/dist/accordion.cjs.map +1 -1
  4. package/dist/accordion.mjs +50 -30
  5. package/dist/accordion.mjs.map +1 -1
  6. package/dist/alert-dialog.cjs +1 -1
  7. package/dist/alert-dialog.cjs.map +1 -1
  8. package/dist/alert-dialog.mjs +98 -52
  9. package/dist/alert-dialog.mjs.map +1 -1
  10. package/dist/alert.cjs +1 -1
  11. package/dist/alert.cjs.map +1 -1
  12. package/dist/alert.mjs +37 -29
  13. package/dist/alert.mjs.map +1 -1
  14. package/dist/aspect-ratio.cjs +1 -1
  15. package/dist/aspect-ratio.cjs.map +1 -1
  16. package/dist/aspect-ratio.mjs +9 -3
  17. package/dist/aspect-ratio.mjs.map +1 -1
  18. package/dist/avatar.cjs +1 -1
  19. package/dist/avatar.cjs.map +1 -1
  20. package/dist/avatar.mjs +48 -23
  21. package/dist/avatar.mjs.map +1 -1
  22. package/dist/badge.cjs +1 -1
  23. package/dist/badge.cjs.map +1 -1
  24. package/dist/badge.mjs +16 -13
  25. package/dist/badge.mjs.map +1 -1
  26. package/dist/breadcrumb.cjs +1 -1
  27. package/dist/breadcrumb.cjs.map +1 -1
  28. package/dist/breadcrumb.mjs +67 -57
  29. package/dist/breadcrumb.mjs.map +1 -1
  30. package/dist/button-group.cjs +2 -0
  31. package/dist/button-group.cjs.map +1 -0
  32. package/dist/button-group.d.ts +2 -0
  33. package/dist/button-group.mjs +39 -0
  34. package/dist/button-group.mjs.map +1 -0
  35. package/dist/button.cjs +1 -1
  36. package/dist/button.cjs.map +1 -1
  37. package/dist/button.mjs +32 -25
  38. package/dist/button.mjs.map +1 -1
  39. package/dist/calendar.cjs +1 -1
  40. package/dist/calendar.cjs.map +1 -1
  41. package/dist/calendar.mjs +54 -51
  42. package/dist/calendar.mjs.map +1 -1
  43. package/dist/card.cjs +1 -1
  44. package/dist/card.cjs.map +1 -1
  45. package/dist/card.mjs +55 -41
  46. package/dist/card.mjs.map +1 -1
  47. package/dist/carousel.cjs +1 -1
  48. package/dist/carousel.cjs.map +1 -1
  49. package/dist/carousel.mjs +58 -64
  50. package/dist/carousel.mjs.map +1 -1
  51. package/dist/chart.cjs +3 -3
  52. package/dist/chart.cjs.map +1 -1
  53. package/dist/chart.mjs +59 -66
  54. package/dist/chart.mjs.map +1 -1
  55. package/dist/checkbox.cjs +1 -1
  56. package/dist/checkbox.cjs.map +1 -1
  57. package/dist/checkbox.mjs +17 -15
  58. package/dist/checkbox.mjs.map +1 -1
  59. package/dist/collapsible.cjs +1 -1
  60. package/dist/collapsible.cjs.map +1 -1
  61. package/dist/collapsible.mjs +21 -3
  62. package/dist/collapsible.mjs.map +1 -1
  63. package/dist/combobox.cjs +2 -0
  64. package/dist/combobox.cjs.map +1 -0
  65. package/dist/combobox.d.ts +2 -0
  66. package/dist/combobox.mjs +164 -0
  67. package/dist/combobox.mjs.map +1 -0
  68. package/dist/command.cjs +1 -1
  69. package/dist/command.cjs.map +1 -1
  70. package/dist/command.mjs +86 -75
  71. package/dist/command.mjs.map +1 -1
  72. package/dist/context-menu.cjs +1 -1
  73. package/dist/context-menu.cjs.map +1 -1
  74. package/dist/context-menu.mjs +121 -68
  75. package/dist/context-menu.mjs.map +1 -1
  76. package/dist/design-system.css +1 -1
  77. package/dist/dialog.cjs +1 -1
  78. package/dist/dialog.cjs.map +1 -1
  79. package/dist/dialog.mjs +90 -43
  80. package/dist/dialog.mjs.map +1 -1
  81. package/dist/direction.cjs +2 -0
  82. package/dist/direction.cjs.map +1 -0
  83. package/dist/direction.d.ts +2 -0
  84. package/dist/direction.mjs +17 -0
  85. package/dist/direction.mjs.map +1 -0
  86. package/dist/drawer.cjs +1 -1
  87. package/dist/drawer.cjs.map +1 -1
  88. package/dist/drawer.mjs +75 -45
  89. package/dist/drawer.mjs.map +1 -1
  90. package/dist/dropdown-menu.cjs +1 -1
  91. package/dist/dropdown-menu.cjs.map +1 -1
  92. package/dist/dropdown-menu.mjs +124 -68
  93. package/dist/dropdown-menu.mjs.map +1 -1
  94. package/dist/empty.cjs +2 -0
  95. package/dist/empty.cjs.map +1 -0
  96. package/dist/empty.d.ts +2 -0
  97. package/dist/empty.mjs +62 -0
  98. package/dist/empty.mjs.map +1 -0
  99. package/dist/field.cjs +2 -0
  100. package/dist/field.cjs.map +1 -0
  101. package/dist/field.d.ts +2 -0
  102. package/dist/field.mjs +111 -0
  103. package/dist/field.mjs.map +1 -0
  104. package/dist/form.cjs +1 -1
  105. package/dist/form.cjs.map +1 -1
  106. package/dist/form.mjs +14 -14
  107. package/dist/hover-card.cjs +1 -1
  108. package/dist/hover-card.cjs.map +1 -1
  109. package/dist/hover-card.mjs +28 -12
  110. package/dist/hover-card.mjs.map +1 -1
  111. package/dist/index.cjs +1 -1
  112. package/dist/index.mjs +52 -41
  113. package/dist/input-group.cjs +2 -0
  114. package/dist/input-group.cjs.map +1 -0
  115. package/dist/input-group.d.ts +2 -0
  116. package/dist/input-group.mjs +80 -0
  117. package/dist/input-group.mjs.map +1 -0
  118. package/dist/input-otp.cjs +2 -0
  119. package/dist/input-otp.cjs.map +1 -0
  120. package/dist/input-otp.d.ts +2 -0
  121. package/dist/input-otp.mjs +49 -0
  122. package/dist/input-otp.mjs.map +1 -0
  123. package/dist/input.cjs +1 -1
  124. package/dist/input.cjs.map +1 -1
  125. package/dist/input.mjs +13 -12
  126. package/dist/input.mjs.map +1 -1
  127. package/dist/item.cjs +2 -0
  128. package/dist/item.cjs.map +1 -0
  129. package/dist/item.d.ts +2 -0
  130. package/dist/item.mjs +119 -0
  131. package/dist/item.mjs.map +1 -0
  132. package/dist/kbd.cjs +2 -0
  133. package/dist/kbd.cjs.map +1 -0
  134. package/dist/kbd.d.ts +2 -0
  135. package/dist/kbd.mjs +23 -0
  136. package/dist/kbd.mjs.map +1 -0
  137. package/dist/label.cjs +1 -1
  138. package/dist/label.cjs.map +1 -1
  139. package/dist/label.mjs +12 -11
  140. package/dist/label.mjs.map +1 -1
  141. package/dist/menubar.cjs +1 -1
  142. package/dist/menubar.cjs.map +1 -1
  143. package/dist/menubar.mjs +120 -90
  144. package/dist/menubar.mjs.map +1 -1
  145. package/dist/native-select.cjs +2 -0
  146. package/dist/native-select.cjs.map +1 -0
  147. package/dist/native-select.d.ts +2 -0
  148. package/dist/native-select.mjs +41 -0
  149. package/dist/native-select.mjs.map +1 -0
  150. package/dist/navigation-menu.cjs +1 -1
  151. package/dist/navigation-menu.cjs.map +1 -1
  152. package/dist/navigation-menu.mjs +74 -52
  153. package/dist/navigation-menu.mjs.map +1 -1
  154. package/dist/packages/design-tokens/src/index.d.ts +16 -0
  155. package/dist/packages/design-tokens/src/theme.d.ts +16 -0
  156. package/dist/packages/ui-core/src/contracts/alert.d.ts +3 -1
  157. package/dist/packages/ui-core/src/contracts/badge.d.ts +3 -1
  158. package/dist/packages/ui-core/src/contracts/button-group.d.ts +17 -0
  159. package/dist/packages/ui-core/src/contracts/checkbox.d.ts +2 -2
  160. package/dist/packages/ui-core/src/contracts/combobox.d.ts +65 -0
  161. package/dist/packages/ui-core/src/contracts/direction.d.ts +7 -0
  162. package/dist/packages/ui-core/src/contracts/empty.d.ts +12 -0
  163. package/dist/packages/ui-core/src/contracts/field.d.ts +47 -0
  164. package/dist/packages/ui-core/src/contracts/input-group.d.ts +29 -0
  165. package/dist/packages/ui-core/src/contracts/input-otp.d.ts +16 -0
  166. package/dist/packages/ui-core/src/contracts/item.d.ts +47 -0
  167. package/dist/packages/ui-core/src/contracts/kbd.d.ts +9 -0
  168. package/dist/packages/ui-core/src/contracts/native-select.d.ts +15 -0
  169. package/dist/packages/ui-core/src/contracts/resizable.d.ts +1 -1
  170. package/dist/packages/ui-core/src/contracts/search.d.ts +1 -0
  171. package/dist/packages/ui-core/src/contracts/sidebar.d.ts +107 -0
  172. package/dist/packages/ui-core/src/contracts/sonner.d.ts +1 -9
  173. package/dist/packages/ui-core/src/contracts/spinner.d.ts +3 -0
  174. package/dist/packages/ui-core/src/contracts/switch.d.ts +1 -1
  175. package/dist/packages/ui-core/src/contracts/textarea.d.ts +2 -2
  176. package/dist/packages/ui-core/src/contracts/toast.d.ts +1 -1
  177. package/dist/packages/ui-core/src/contracts/toggle-group.d.ts +1 -1
  178. package/dist/packages/ui-core/src/contracts/toggle.d.ts +2 -2
  179. package/dist/packages/ui-core/src/index.d.ts +14 -0
  180. package/dist/packages/ui-web/src/accordion.d.ts +5 -7
  181. package/dist/packages/ui-web/src/alert-dialog.d.ts +17 -21
  182. package/dist/packages/ui-web/src/alert.d.ts +8 -8
  183. package/dist/packages/ui-web/src/aspect-ratio.d.ts +2 -5
  184. package/dist/packages/ui-web/src/avatar.d.ts +10 -7
  185. package/dist/packages/ui-web/src/badge.d.ts +4 -5
  186. package/dist/packages/ui-web/src/breadcrumb.d.ts +9 -17
  187. package/dist/packages/ui-web/src/button-group.d.ts +11 -0
  188. package/dist/packages/ui-web/src/button.d.ts +4 -6
  189. package/dist/packages/ui-web/src/calendar.d.ts +5 -5
  190. package/dist/packages/ui-web/src/card.d.ts +10 -10
  191. package/dist/packages/ui-web/src/carousel.d.ts +18 -14
  192. package/dist/packages/ui-web/src/chart.d.ts +35 -7
  193. package/dist/packages/ui-web/src/checkbox.d.ts +2 -5
  194. package/dist/packages/ui-web/src/collapsible.d.ts +4 -7
  195. package/dist/packages/ui-web/src/combobox.d.ts +20 -0
  196. package/dist/packages/ui-web/src/command.d.ts +16 -80
  197. package/dist/packages/ui-web/src/context-menu.d.ts +29 -21
  198. package/dist/packages/ui-web/src/dialog.d.ts +15 -17
  199. package/dist/packages/ui-web/src/direction.d.ts +6 -0
  200. package/dist/packages/ui-web/src/drawer.d.ts +11 -23
  201. package/dist/packages/ui-web/src/dropdown-menu.d.ts +27 -21
  202. package/dist/packages/ui-web/src/empty.d.ts +13 -0
  203. package/dist/packages/ui-web/src/field.d.ts +18 -0
  204. package/dist/packages/ui-web/src/hooks/use-mobile.d.ts +1 -0
  205. package/dist/packages/ui-web/src/hooks/use-theme.d.ts +16 -0
  206. package/dist/packages/ui-web/src/hover-card.d.ts +4 -6
  207. package/dist/packages/ui-web/src/index.d.ts +14 -43
  208. package/dist/packages/ui-web/src/input-group.d.ts +18 -0
  209. package/dist/packages/ui-web/src/input-otp.d.ts +8 -0
  210. package/dist/packages/ui-web/src/input.d.ts +1 -4
  211. package/dist/packages/ui-web/src/item.d.ts +25 -0
  212. package/dist/packages/ui-web/src/kbd.d.ts +4 -0
  213. package/dist/packages/ui-web/src/label.d.ts +2 -6
  214. package/dist/packages/ui-web/src/menubar.d.ts +25 -19
  215. package/dist/packages/ui-web/src/native-select.d.ts +7 -0
  216. package/dist/packages/ui-web/src/navigation-menu.d.ts +11 -11
  217. package/dist/packages/ui-web/src/pagination.d.ts +13 -26
  218. package/dist/packages/ui-web/src/popover.d.ts +9 -8
  219. package/dist/packages/ui-web/src/progress.d.ts +2 -4
  220. package/dist/packages/ui-web/src/radio-group.d.ts +3 -8
  221. package/dist/packages/ui-web/src/resizable.d.ts +6 -7
  222. package/dist/packages/ui-web/src/scroll-area.d.ts +3 -5
  223. package/dist/packages/ui-web/src/search.d.ts +1 -1
  224. package/dist/packages/ui-web/src/select.d.ts +13 -13
  225. package/dist/packages/ui-web/src/separator.d.ts +2 -4
  226. package/dist/packages/ui-web/src/sheet.d.ts +13 -27
  227. package/dist/packages/ui-web/src/sidebar.d.ts +45 -0
  228. package/dist/packages/ui-web/src/skeleton.d.ts +1 -4
  229. package/dist/packages/ui-web/src/slider.d.ts +2 -4
  230. package/dist/packages/ui-web/src/sonner.d.ts +1 -5
  231. package/dist/packages/ui-web/src/spinner.d.ts +3 -0
  232. package/dist/packages/ui-web/src/switch.d.ts +4 -4
  233. package/dist/packages/ui-web/src/table.d.ts +8 -10
  234. package/dist/packages/ui-web/src/tabs.d.ts +11 -8
  235. package/dist/packages/ui-web/src/textarea.d.ts +1 -4
  236. package/dist/packages/ui-web/src/toggle-group.d.ts +7 -10
  237. package/dist/packages/ui-web/src/toggle.d.ts +7 -5
  238. package/dist/packages/ui-web/src/tooltip.d.ts +5 -10
  239. package/dist/pagination.cjs +1 -1
  240. package/dist/pagination.cjs.map +1 -1
  241. package/dist/pagination.mjs +77 -59
  242. package/dist/pagination.mjs.map +1 -1
  243. package/dist/popover.cjs +1 -1
  244. package/dist/popover.cjs.map +1 -1
  245. package/dist/popover.mjs +53 -13
  246. package/dist/popover.mjs.map +1 -1
  247. package/dist/progress.cjs +1 -1
  248. package/dist/progress.cjs.map +1 -1
  249. package/dist/progress.mjs +18 -15
  250. package/dist/progress.mjs.map +1 -1
  251. package/dist/radio-group.cjs +1 -1
  252. package/dist/radio-group.cjs.map +1 -1
  253. package/dist/radio-group.mjs +24 -21
  254. package/dist/radio-group.mjs.map +1 -1
  255. package/dist/resizable.cjs +1 -1
  256. package/dist/resizable.cjs.map +1 -1
  257. package/dist/resizable.mjs +25 -16
  258. package/dist/resizable.mjs.map +1 -1
  259. package/dist/scroll-area.cjs +1 -1
  260. package/dist/scroll-area.cjs.map +1 -1
  261. package/dist/scroll-area.mjs +34 -27
  262. package/dist/scroll-area.mjs.map +1 -1
  263. package/dist/scroll-to-top.cjs +1 -1
  264. package/dist/scroll-to-top.mjs +17 -17
  265. package/dist/search.cjs +1 -1
  266. package/dist/search.cjs.map +1 -1
  267. package/dist/search.mjs +18 -17
  268. package/dist/search.mjs.map +1 -1
  269. package/dist/select.cjs +1 -1
  270. package/dist/select.cjs.map +1 -1
  271. package/dist/select.mjs +96 -65
  272. package/dist/select.mjs.map +1 -1
  273. package/dist/separator.cjs +1 -1
  274. package/dist/separator.cjs.map +1 -1
  275. package/dist/separator.mjs +14 -13
  276. package/dist/separator.mjs.map +1 -1
  277. package/dist/sheet.cjs +1 -1
  278. package/dist/sheet.cjs.map +1 -1
  279. package/dist/sheet.mjs +85 -53
  280. package/dist/sheet.mjs.map +1 -1
  281. package/dist/sidebar-BnEmNYS2.mjs +354 -0
  282. package/dist/sidebar-BnEmNYS2.mjs.map +1 -0
  283. package/dist/sidebar-BnuanaZN.js +2 -0
  284. package/dist/sidebar-BnuanaZN.js.map +1 -0
  285. package/dist/sidebar.cjs +1 -0
  286. package/dist/sidebar.d.ts +2 -0
  287. package/dist/sidebar.mjs +3 -0
  288. package/dist/skeleton.cjs +1 -1
  289. package/dist/skeleton.cjs.map +1 -1
  290. package/dist/skeleton.mjs +4 -5
  291. package/dist/skeleton.mjs.map +1 -1
  292. package/dist/slider.cjs +1 -1
  293. package/dist/slider.cjs.map +1 -1
  294. package/dist/slider.mjs +31 -12
  295. package/dist/slider.mjs.map +1 -1
  296. package/dist/sonner.cjs +1 -1
  297. package/dist/sonner.cjs.map +1 -1
  298. package/dist/sonner.mjs +22 -16
  299. package/dist/sonner.mjs.map +1 -1
  300. package/dist/spinner.cjs +2 -0
  301. package/dist/spinner.cjs.map +1 -0
  302. package/dist/spinner.d.ts +2 -0
  303. package/dist/spinner.mjs +17 -0
  304. package/dist/spinner.mjs.map +1 -0
  305. package/dist/support-fab.cjs +1 -1
  306. package/dist/support-fab.cjs.map +1 -1
  307. package/dist/support-fab.mjs +8 -8
  308. package/dist/support-fab.mjs.map +1 -1
  309. package/dist/switch.cjs +1 -1
  310. package/dist/switch.cjs.map +1 -1
  311. package/dist/switch.mjs +17 -11
  312. package/dist/switch.mjs.map +1 -1
  313. package/dist/table-of-contents.cjs +1 -1
  314. package/dist/table-of-contents.mjs +2 -2
  315. package/dist/table.cjs +1 -1
  316. package/dist/table.cjs.map +1 -1
  317. package/dist/table.mjs +65 -56
  318. package/dist/table.mjs.map +1 -1
  319. package/dist/tabs.cjs +1 -1
  320. package/dist/tabs.cjs.map +1 -1
  321. package/dist/tabs.mjs +42 -22
  322. package/dist/tabs.mjs.map +1 -1
  323. package/dist/text.cjs +1 -1
  324. package/dist/text.cjs.map +1 -1
  325. package/dist/text.mjs +3 -3
  326. package/dist/textarea.cjs +1 -1
  327. package/dist/textarea.cjs.map +1 -1
  328. package/dist/textarea.mjs +12 -11
  329. package/dist/textarea.mjs.map +1 -1
  330. package/dist/theme-provider.cjs +1 -1
  331. package/dist/theme-provider.mjs +1 -1
  332. package/dist/theme-toggle-CNDBFa9t.js +2 -0
  333. package/dist/theme-toggle-CNDBFa9t.js.map +1 -0
  334. package/dist/{theme-toggle-B6QS2aTS.mjs → theme-toggle-CgEJLId-.mjs} +26 -10
  335. package/dist/theme-toggle-CgEJLId-.mjs.map +1 -0
  336. package/dist/theme-toggle.cjs +1 -1
  337. package/dist/theme-toggle.mjs +1 -1
  338. package/dist/toast.cjs +1 -1
  339. package/dist/toast.cjs.map +1 -1
  340. package/dist/toast.mjs +19 -19
  341. package/dist/toast.mjs.map +1 -1
  342. package/dist/{toaster-C-1djNvf.js → toaster-C3UZyPzU.js} +2 -2
  343. package/dist/{toaster-C-1djNvf.js.map → toaster-C3UZyPzU.js.map} +1 -1
  344. package/dist/{toaster-CEa33QUH.mjs → toaster-DH0UX0nD.mjs} +2 -2
  345. package/dist/{toaster-CEa33QUH.mjs.map → toaster-DH0UX0nD.mjs.map} +1 -1
  346. package/dist/toaster.cjs +1 -1
  347. package/dist/toaster.mjs +1 -1
  348. package/dist/toggle-group.cjs +1 -1
  349. package/dist/toggle-group.cjs.map +1 -1
  350. package/dist/toggle-group.mjs +41 -28
  351. package/dist/toggle-group.mjs.map +1 -1
  352. package/dist/toggle.cjs +1 -1
  353. package/dist/toggle.cjs.map +1 -1
  354. package/dist/toggle.mjs +32 -16
  355. package/dist/toggle.mjs.map +1 -1
  356. package/dist/tooltip.cjs +1 -1
  357. package/dist/tooltip.cjs.map +1 -1
  358. package/dist/tooltip.mjs +33 -20
  359. package/dist/tooltip.mjs.map +1 -1
  360. package/dist/{utils-DU-Y_pvO.js → utils-D7tt_q-u.js} +2 -2
  361. package/dist/{utils-DU-Y_pvO.js.map → utils-D7tt_q-u.js.map} +1 -1
  362. package/dist/{utils-BsD1_fYL.mjs → utils-IYJAOUsw.mjs} +2 -2
  363. package/dist/{utils-BsD1_fYL.mjs.map → utils-IYJAOUsw.mjs.map} +1 -1
  364. package/dist/{vendor-ChPUVHXi.mjs → vendor-B6CFfDyk.mjs} +29707 -24351
  365. package/dist/vendor-B6CFfDyk.mjs.map +1 -0
  366. package/dist/vendor-UfQavLF9.js +111 -0
  367. package/dist/vendor-UfQavLF9.js.map +1 -0
  368. package/package.json +4 -3
  369. package/dist/src-D3IDWqE2.js +0 -2
  370. package/dist/src-D3IDWqE2.js.map +0 -1
  371. package/dist/src-N08I3kfW.mjs +0 -23
  372. package/dist/src-N08I3kfW.mjs.map +0 -1
  373. package/dist/theme-toggle-B6QS2aTS.mjs.map +0 -1
  374. package/dist/theme-toggle-CbtfA8aG.js +0 -2
  375. package/dist/theme-toggle-CbtfA8aG.js.map +0 -1
  376. package/dist/vendor-3cr8xz0x.js +0 -92
  377. package/dist/vendor-3cr8xz0x.js.map +0 -1
  378. package/dist/vendor-ChPUVHXi.mjs.map +0 -1
@@ -1,65 +1,83 @@
1
1
  "use client";
2
- "use client";
3
- import { $n as e, ir as t, rr as n, vr as r } from "./vendor-ChPUVHXi.mjs";
4
- import { t as i } from "./utils-BsD1_fYL.mjs";
5
- import { buttonVariants as a } from "./button.mjs";
6
- import * as o from "react";
2
+ import { Jr as e, Z as t, nt as n, tt as r } from "./vendor-B6CFfDyk.mjs";
3
+ import { t as i } from "./utils-IYJAOUsw.mjs";
4
+ import { Button as a } from "./button.mjs";
5
+ import "react";
7
6
  //#region packages/ui-web/src/pagination.tsx
8
- var s = r(), c = ({ className: e, ...t }) => /* @__PURE__ */ (0, s.jsx)("nav", {
9
- role: "navigation",
10
- "aria-label": "pagination",
11
- className: i("mx-auto flex w-full justify-center", e),
12
- ...t
13
- });
14
- c.displayName = "Pagination";
15
- var l = o.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, s.jsx)("ul", {
16
- ref: n,
17
- className: i("flex flex-row items-center gap-1", e),
18
- ...t
19
- }));
20
- l.displayName = "PaginationContent";
21
- var u = o.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, s.jsx)("li", {
22
- ref: n,
23
- className: i("", e),
24
- ...t
25
- }));
26
- u.displayName = "PaginationItem";
27
- var d = ({ className: e, isActive: t, size: n = "icon", ...r }) => /* @__PURE__ */ (0, s.jsx)("a", {
28
- "aria-current": t ? "page" : void 0,
29
- className: i(a({
7
+ var o = e();
8
+ function s({ className: e, ...t }) {
9
+ return /* @__PURE__ */ (0, o.jsx)("nav", {
10
+ role: "navigation",
11
+ "aria-label": "pagination",
12
+ "data-slot": "pagination",
13
+ className: i("mx-auto flex w-full justify-center", e),
14
+ ...t
15
+ });
16
+ }
17
+ function c({ className: e, ...t }) {
18
+ return /* @__PURE__ */ (0, o.jsx)("ul", {
19
+ "data-slot": "pagination-content",
20
+ className: i("flex items-center gap-0.5", e),
21
+ ...t
22
+ });
23
+ }
24
+ function l({ ...e }) {
25
+ return /* @__PURE__ */ (0, o.jsx)("li", {
26
+ "data-slot": "pagination-item",
27
+ ...e
28
+ });
29
+ }
30
+ function u({ className: e, isActive: t, size: n = "icon", ...r }) {
31
+ return /* @__PURE__ */ (0, o.jsx)(a, {
32
+ asChild: !0,
30
33
  variant: t ? "outline" : "ghost",
31
- size: n
32
- }), e),
33
- ...r
34
- });
35
- d.displayName = "PaginationLink";
36
- var f = ({ className: e, ...n }) => /* @__PURE__ */ (0, s.jsxs)(d, {
37
- "aria-label": "Go to previous page",
38
- size: "default",
39
- className: i("gap-1 pl-2.5", e),
40
- ...n,
41
- children: [/* @__PURE__ */ (0, s.jsx)(t, { className: "h-4 w-4" }), /* @__PURE__ */ (0, s.jsx)("span", { children: "Previous" })]
42
- });
43
- f.displayName = "PaginationPrevious";
44
- var p = ({ className: e, ...t }) => /* @__PURE__ */ (0, s.jsxs)(d, {
45
- "aria-label": "Go to next page",
46
- size: "default",
47
- className: i("gap-1 pr-2.5", e),
48
- ...t,
49
- children: [/* @__PURE__ */ (0, s.jsx)("span", { children: "Next" }), /* @__PURE__ */ (0, s.jsx)(n, { className: "h-4 w-4" })]
50
- });
51
- p.displayName = "PaginationNext";
52
- var m = ({ className: t, ...n }) => /* @__PURE__ */ (0, s.jsxs)("span", {
53
- "aria-hidden": !0,
54
- className: i("flex h-9 w-9 items-center justify-center", t),
55
- ...n,
56
- children: [/* @__PURE__ */ (0, s.jsx)(e, { className: "h-4 w-4" }), /* @__PURE__ */ (0, s.jsx)("span", {
57
- className: "sr-only",
58
- children: "More pages"
59
- })]
60
- });
61
- m.displayName = "PaginationEllipsis";
34
+ size: n,
35
+ className: i(e),
36
+ children: /* @__PURE__ */ (0, o.jsx)("a", {
37
+ "aria-current": t ? "page" : void 0,
38
+ "data-slot": "pagination-link",
39
+ "data-active": t,
40
+ ...r
41
+ })
42
+ });
43
+ }
44
+ function d({ className: e, text: t = "Previous", ...r }) {
45
+ return /* @__PURE__ */ (0, o.jsxs)(u, {
46
+ "aria-label": "Go to previous page",
47
+ size: "default",
48
+ className: i("ps-1.5!", e),
49
+ ...r,
50
+ children: [/* @__PURE__ */ (0, o.jsx)(n, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, o.jsx)("span", {
51
+ className: "hidden sm:block",
52
+ children: t
53
+ })]
54
+ });
55
+ }
56
+ function f({ className: e, text: t = "Next", ...n }) {
57
+ return /* @__PURE__ */ (0, o.jsxs)(u, {
58
+ "aria-label": "Go to next page",
59
+ size: "default",
60
+ className: i("pe-1.5!", e),
61
+ ...n,
62
+ children: [/* @__PURE__ */ (0, o.jsx)("span", {
63
+ className: "hidden sm:block",
64
+ children: t
65
+ }), /* @__PURE__ */ (0, o.jsx)(r, { "data-icon": "inline-end" })]
66
+ });
67
+ }
68
+ function p({ className: e, ...n }) {
69
+ return /* @__PURE__ */ (0, o.jsxs)("span", {
70
+ "aria-hidden": !0,
71
+ "data-slot": "pagination-ellipsis",
72
+ className: i("flex size-8 items-center justify-center [&_svg:not([class*=size-])]:size-4", e),
73
+ ...n,
74
+ children: [/* @__PURE__ */ (0, o.jsx)(t, {}), /* @__PURE__ */ (0, o.jsx)("span", {
75
+ className: "sr-only",
76
+ children: "More pages"
77
+ })]
78
+ });
79
+ }
62
80
  //#endregion
63
- export { c as Pagination, l as PaginationContent, m as PaginationEllipsis, u as PaginationItem, d as PaginationLink, p as PaginationNext, f as PaginationPrevious };
81
+ export { s as Pagination, c as PaginationContent, p as PaginationEllipsis, l as PaginationItem, u as PaginationLink, f as PaginationNext, d as PaginationPrevious };
64
82
 
65
83
  //# sourceMappingURL=pagination.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.mjs","names":[],"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"],"mappings":";;;;;;;aAgBM,KAAc,EAAE,cAAW,GAAG,QAClC,iBAAA,GAAA,EAAA,KAAC,OAAD;CACE,MAAK;CACL,cAAW;CACX,WAAW,EAAG,sCAAsC,CAAS;CAC7D,GAAI;AACL,CAAA;AAEH,EAAW,cAAc;AAEzB,IAAM,IAAoB,EAAM,YAC7B,EAAE,cAAW,GAAG,KAAS,MACxB,iBAAA,GAAA,EAAA,KAAC,MAAD;CAAS;CAAK,WAAW,EAAG,oCAAoC,CAAS;CAAG,GAAI;AAAQ,CAAA,CAE5F;AACA,EAAkB,cAAc;AAEhC,IAAM,IAAiB,EAAM,YAC1B,EAAE,cAAW,GAAG,KAAS,MAAQ,iBAAA,GAAA,EAAA,KAAC,MAAD;CAAS;CAAK,WAAW,EAAG,IAAI,CAAS;CAAG,GAAI;AAAQ,CAAA,CAC5F;AACA,EAAe,cAAc;AAQ7B,IAAM,KAAkB,EAAE,cAAW,aAAU,UAAO,QAAQ,GAAG,QAC/D,iBAAA,GAAA,EAAA,KAAC,KAAD;CACE,gBAAc,IAAW,SAAS,KAAA;CAClC,WAAW,EACT,EAAe;EACb,SAAS,IAAW,YAAY;EAChC;CACF,CAAC,GACD,CACF;CACA,GAAI;AACL,CAAA;AAEH,EAAe,cAAc;AAE7B,IAAM,KAAsB,EAC1B,cACA,GAAG,QAEH,iBAAA,GAAA,EAAA,MAAC,GAAD;CAAgB,cAAW;CAAsB,MAAK;CAAU,WAAW,EAAG,gBAAgB,CAAS;CAAG,GAAI;WAA9G,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAa,WAAU,UAAW,CAAA,GAClC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAA,UAAM,WAAc,CAAA,CACN;;AAElB,EAAmB,cAAc;AAEjC,IAAM,KAAkB,EACtB,cACA,GAAG,QAEH,iBAAA,GAAA,EAAA,MAAC,GAAD;CAAgB,cAAW;CAAkB,MAAK;CAAU,WAAW,EAAG,gBAAgB,CAAS;CAAG,GAAI;WAA1G,CACE,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAA,UAAM,OAAU,CAAA,GAChB,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAc,WAAU,UAAW,CAAA,CACrB;;AAElB,EAAe,cAAc;AAE7B,IAAM,KAAsB,EAAE,cAAW,GAAG,QAC1C,iBAAA,GAAA,EAAA,MAAC,QAAD;CAAM,eAAA;CAAY,WAAW,EAAG,4CAA4C,CAAS;CAAG,GAAI;WAA5F,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAgB,WAAU,UAAW,CAAA,GACrC,iBAAA,GAAA,EAAA,KAAC,QAAD;EAAM,WAAU;YAAU;CAAgB,CAAA,CACtC;;AAER,EAAmB,cAAc"}
1
+ {"version":3,"file":"pagination.mjs","names":[],"sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport { Button } from './button';\nimport { cn } from './lib/utils';\n\nimport type { PaginationBaseProps } from '@gv-tech/ui-core';\n\nfunction Pagination({ className, ...props }: React.ComponentProps<'nav'>) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n );\n}\n\nfunction PaginationContent({ className, ...props }: React.ComponentProps<'ul'>) {\n return <ul data-slot=\"pagination-content\" className={cn('flex items-center gap-0.5', className)} {...props} />;\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<'li'>) {\n return <li data-slot=\"pagination-item\" {...props} />;\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<React.ComponentProps<typeof Button>, 'size'> &\n React.ComponentProps<'a'>;\n\nfunction PaginationLink({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) {\n return (\n <Button asChild variant={isActive ? 'outline' : 'ghost'} size={size} className={cn(className)}>\n <a aria-current={isActive ? 'page' : undefined} data-slot=\"pagination-link\" data-active={isActive} {...props} />\n </Button>\n );\n}\n\nfunction PaginationPrevious({\n className,\n text = 'Previous',\n ...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n return (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('ps-1.5!', className)} {...props}>\n <ChevronLeftIcon data-icon=\"inline-start\" />\n <span className=\"hidden sm:block\">{text}</span>\n </PaginationLink>\n );\n}\n\nfunction PaginationNext({\n className,\n text = 'Next',\n ...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n return (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('pe-1.5!', className)} {...props}>\n <span className=\"hidden sm:block\">{text}</span>\n <ChevronRightIcon data-icon=\"inline-end\" />\n </PaginationLink>\n );\n}\n\nfunction PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn('flex size-8 items-center justify-center [&_svg:not([class*=size-])]:size-4', className)}\n {...props}\n >\n <MoreHorizontalIcon />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\n// Verify that the component satisfies the ui-core contract\nconst _verifyPaginationContract: PaginationBaseProps = {} as unknown as React.ComponentProps<typeof Pagination>;\n"],"mappings":";;;;;;;AAQA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,MAAK;EACL,cAAW;EACX,aAAU;EACV,WAAW,EAAG,sCAAsC,CAAS;EAC7D,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAkB,EAAE,cAAW,GAAG,KAAqC;CAC9E,OAAO,iBAAA,GAAA,EAAA,KAAC,MAAD;EAAI,aAAU;EAAqB,WAAW,EAAG,6BAA6B,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC/G;AAEA,SAAS,EAAe,EAAE,GAAG,KAAqC;CAChE,OAAO,iBAAA,GAAA,EAAA,KAAC,MAAD;EAAI,aAAU;EAAkB,GAAI;CAAQ,CAAA;AACrD;AAOA,SAAS,EAAe,EAAE,cAAW,aAAU,UAAO,QAAQ,GAAG,KAA8B;CAC7F,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAQ,SAAA;EAAQ,SAAS,IAAW,YAAY;EAAe;EAAM,WAAW,EAAG,CAAS;YAC1F,iBAAA,GAAA,EAAA,KAAC,KAAD;GAAG,gBAAc,IAAW,SAAS,KAAA;GAAW,aAAU;GAAkB,eAAa;GAAU,GAAI;EAAQ,CAAA;CACzG,CAAA;AAEZ;AAEA,SAAS,EAAmB,EAC1B,cACA,UAAO,YACP,GAAG,KAC+D;CAClE,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EAAgB,cAAW;EAAsB,MAAK;EAAU,WAAW,EAAG,WAAW,CAAS;EAAG,GAAI;YAAzG,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiB,aAAU,eAAgB,CAAA,GAC3C,iBAAA,GAAA,EAAA,KAAC,QAAD;GAAM,WAAU;aAAmB;EAAW,CAAA,CAChC;;AAEpB;AAEA,SAAS,EAAe,EACtB,cACA,UAAO,QACP,GAAG,KAC+D;CAClE,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EAAgB,cAAW;EAAkB,MAAK;EAAU,WAAW,EAAG,WAAW,CAAS;EAAG,GAAI;YAArG,CACE,iBAAA,GAAA,EAAA,KAAC,QAAD;GAAM,WAAU;aAAmB;EAAW,CAAA,GAC9C,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAkB,aAAU,aAAc,CAAA,CAC5B;;AAEpB;AAEA,SAAS,EAAmB,EAAE,cAAW,GAAG,KAAuC;CACjF,OACE,iBAAA,GAAA,EAAA,MAAC,QAAD;EACE,eAAA;EACA,aAAU;EACV,WAAW,EAAG,8EAA8E,CAAS;EACrG,GAAI;YAJN,CAME,iBAAA,GAAA,EAAA,KAAC,GAAD,CAAqB,CAAA,GACrB,iBAAA,GAAA,EAAA,KAAC,QAAD;GAAM,WAAU;aAAU;EAAgB,CAAA,CACtC;;AAEV"}
package/dist/popover.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-3cr8xz0x.js"),n=require("./utils-DU-Y_pvO.js");let r=require("react");r=e.r(r);var i=t.vr(),a=t.it,o=t.at,s=t.tt,c=r.forwardRef(({className:e,align:r=`center`,sideOffset:a=4,...o},s)=>(0,i.jsx)(t.rt,{children:(0,i.jsx)(t.nt,{ref:s,align:r,sideOffset:a,className:n.t(`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`,e),...o})}));c.displayName=t.nt?.displayName||`PopoverContent`,exports.Popover=a,exports.PopoverAnchor=s,exports.PopoverContent=c,exports.PopoverTrigger=o;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-UfQavLF9.js"),n=require("./utils-D7tt_q-u.js");let r=require("react");r=e.r(r);var i=t.Jr();function a({...e}){return(0,i.jsx)(t.sn,{"data-slot":`popover`,...e})}function o({...e}){return(0,i.jsx)(t.cn,{"data-slot":`popover-trigger`,...e})}function s({className:e,align:r=`center`,sideOffset:a=4,...o}){return(0,i.jsx)(t.on,{children:(0,i.jsx)(t.an,{"data-slot":`popover-content`,align:r,sideOffset:a,className:n.t(`bg-popover text-popover-foreground ring-foreground/10 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100`,e),...o})})}function c({...e}){return(0,i.jsx)(t.in,{"data-slot":`popover-anchor`,...e})}function l({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`popover-header`,className:n.t(`flex flex-col gap-0.5 text-sm`,e),...t})}function u({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`popover-title`,className:n.t(`font-medium`,e),...t})}function d({className:e,...t}){return(0,i.jsx)(`p`,{"data-slot":`popover-description`,className:n.t(`text-muted-foreground`,e),...t})}exports.Popover=a,exports.PopoverAnchor=c,exports.PopoverContent=s,exports.PopoverDescription=d,exports.PopoverHeader=l,exports.PopoverTitle=u,exports.PopoverTrigger=o;
2
2
  //# sourceMappingURL=popover.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.cjs","names":[],"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 || 'PopoverContent';\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"],"mappings":"+PAaM,EAAA,EAAA,GAEA,EAAA,EAAA,GAEA,EAAA,EAAA,GAEA,EAAiB,EAAM,YAG1B,CAAE,YAAW,QAAQ,SAAU,aAAa,EAAG,GAAG,GAAS,KAC5D,EAAA,EAAA,KAAA,EAAA,GAAA,CAAA,UACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACO,MACE,QACK,aACZ,UAAW,EAAA,EACT,+dACA,CACF,EACA,GAAI,CACL,CAAA,CACsB,CAAA,CAC1B,EACD,EAAe,YAAA,EAAA,IAAwC,aAAe"}
1
+ {"version":3,"file":"popover.cjs","names":[],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nimport type { PopoverBaseProps } from '@gv-tech/ui-core';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground ring-foreground/10 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n\n// Verify that the component satisfies the ui-core contract\nconst _verifyPopoverContract: PopoverBaseProps = {} as unknown as React.ComponentProps<typeof Popover>;\n"],"mappings":"kPAOA,SAAS,EAAQ,CAAE,GAAG,GAA6D,CACjF,OAAO,EAAA,EAAA,KAAA,EAAA,GAAA,CAAuB,YAAU,UAAU,GAAI,CAAQ,CAAA,CAChE,CAEA,SAAS,EAAe,CAAE,GAAG,GAAgE,CAC3F,OAAO,EAAA,EAAA,KAAA,EAAA,GAAA,CAA0B,YAAU,kBAAkB,GAAI,CAAQ,CAAA,CAC3E,CAEA,SAAS,EAAe,CACtB,YACA,QAAQ,SACR,aAAa,EACb,GAAG,GACqD,CACxD,OACE,EAAA,EAAA,KAAA,EAAA,GAAA,CAAA,UACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,kBACH,QACK,aACZ,UAAW,EAAA,EACT,iiBACA,CACF,EACA,GAAI,CACL,CAAA,CACsB,CAAA,CAE7B,CAEA,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAAA,EAAA,KAAA,EAAA,GAAA,CAAyB,YAAU,iBAAiB,GAAI,CAAQ,CAAA,CACzE,CAEA,SAAS,EAAc,CAAE,YAAW,GAAG,GAAsC,CAC3E,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,YAAU,iBAAiB,UAAW,EAAA,EAAG,gCAAiC,CAAS,EAAG,GAAI,CAAQ,CAAA,CAChH,CAEA,SAAS,EAAa,CAAE,YAAW,GAAG,GAAqC,CACzE,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,YAAU,gBAAgB,UAAW,EAAA,EAAG,cAAe,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC7F,CAEA,SAAS,EAAmB,CAAE,YAAW,GAAG,GAAoC,CAC9E,OAAO,EAAA,EAAA,KAAC,IAAD,CAAG,YAAU,sBAAsB,UAAW,EAAA,EAAG,wBAAyB,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC3G"}
package/dist/popover.mjs CHANGED
@@ -1,18 +1,58 @@
1
1
  "use client";
2
- "use client";
3
- import { at as e, it as t, nt as n, rt as r, tt as i, vr as a } from "./vendor-ChPUVHXi.mjs";
4
- import { t as o } from "./utils-BsD1_fYL.mjs";
5
- import * as s from "react";
2
+ import { Jr as e, an as t, cn as n, in as r, on as i, sn as a } from "./vendor-B6CFfDyk.mjs";
3
+ import { t as o } from "./utils-IYJAOUsw.mjs";
4
+ import "react";
6
5
  //#region packages/ui-web/src/popover.tsx
7
- var c = a(), l = t, u = e, d = i, f = s.forwardRef(({ className: e, align: t = "center", sideOffset: i = 4, ...a }, s) => /* @__PURE__ */ (0, c.jsx)(r, { children: /* @__PURE__ */ (0, c.jsx)(n, {
8
- ref: s,
9
- align: t,
10
- sideOffset: i,
11
- className: o("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", e),
12
- ...a
13
- }) }));
14
- f.displayName = n?.displayName || "PopoverContent";
6
+ var s = e();
7
+ function c({ ...e }) {
8
+ return /* @__PURE__ */ (0, s.jsx)(a, {
9
+ "data-slot": "popover",
10
+ ...e
11
+ });
12
+ }
13
+ function l({ ...e }) {
14
+ return /* @__PURE__ */ (0, s.jsx)(n, {
15
+ "data-slot": "popover-trigger",
16
+ ...e
17
+ });
18
+ }
19
+ function u({ className: e, align: n = "center", sideOffset: r = 4, ...a }) {
20
+ return /* @__PURE__ */ (0, s.jsx)(i, { children: /* @__PURE__ */ (0, s.jsx)(t, {
21
+ "data-slot": "popover-content",
22
+ align: n,
23
+ sideOffset: r,
24
+ className: o("bg-popover text-popover-foreground ring-foreground/10 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100", e),
25
+ ...a
26
+ }) });
27
+ }
28
+ function d({ ...e }) {
29
+ return /* @__PURE__ */ (0, s.jsx)(r, {
30
+ "data-slot": "popover-anchor",
31
+ ...e
32
+ });
33
+ }
34
+ function f({ className: e, ...t }) {
35
+ return /* @__PURE__ */ (0, s.jsx)("div", {
36
+ "data-slot": "popover-header",
37
+ className: o("flex flex-col gap-0.5 text-sm", e),
38
+ ...t
39
+ });
40
+ }
41
+ function p({ className: e, ...t }) {
42
+ return /* @__PURE__ */ (0, s.jsx)("div", {
43
+ "data-slot": "popover-title",
44
+ className: o("font-medium", e),
45
+ ...t
46
+ });
47
+ }
48
+ function m({ className: e, ...t }) {
49
+ return /* @__PURE__ */ (0, s.jsx)("p", {
50
+ "data-slot": "popover-description",
51
+ className: o("text-muted-foreground", e),
52
+ ...t
53
+ });
54
+ }
15
55
  //#endregion
16
- export { l as Popover, d as PopoverAnchor, f as PopoverContent, u as PopoverTrigger };
56
+ export { c as Popover, d as PopoverAnchor, u as PopoverContent, m as PopoverDescription, f as PopoverHeader, p as PopoverTitle, l as PopoverTrigger };
17
57
 
18
58
  //# sourceMappingURL=popover.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.mjs","names":[],"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 || 'PopoverContent';\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"],"mappings":";;;;;;aAaM,IAAU,GAEV,IAAiB,GAEjB,IAAgB,GAEhB,IAAiB,EAAM,YAG1B,EAAE,cAAW,WAAQ,UAAU,gBAAa,GAAG,GAAG,KAAS,MAC5D,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAA,UACE,iBAAA,GAAA,EAAA,KAAC,GAAD;CACO;CACE;CACK;CACZ,WAAW,EACT,geACA,CACF;CACA,GAAI;AACL,CAAA,EACsB,CAAA,CAC1B;AACD,EAAe,cAAA,GAAwC,eAAe"}
1
+ {"version":3,"file":"popover.mjs","names":[],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nimport type { PopoverBaseProps } from '@gv-tech/ui-core';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground ring-foreground/10 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n\n// Verify that the component satisfies the ui-core contract\nconst _verifyPopoverContract: PopoverBaseProps = {} as unknown as React.ComponentProps<typeof Popover>;\n"],"mappings":";;;;;;AAOA,SAAS,EAAQ,EAAE,GAAG,KAA6D;CACjF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAuB,aAAU;EAAU,GAAI;CAAQ,CAAA;AAChE;AAEA,SAAS,EAAe,EAAE,GAAG,KAAgE;CAC3F,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAA0B,aAAU;EAAkB,GAAI;CAAQ,CAAA;AAC3E;AAEA,SAAS,EAAe,EACtB,cACA,WAAQ,UACR,gBAAa,GACb,GAAG,KACqD;CACxD,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAA,UACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACH;EACK;EACZ,WAAW,EACT,kiBACA,CACF;EACA,GAAI;CACL,CAAA,EACsB,CAAA;AAE7B;AAEA,SAAS,EAAc,EAAE,GAAG,KAA+D;CACzF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAyB,aAAU;EAAiB,GAAI;CAAQ,CAAA;AACzE;AAEA,SAAS,EAAc,EAAE,cAAW,GAAG,KAAsC;CAC3E,OAAO,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,aAAU;EAAiB,WAAW,EAAG,iCAAiC,CAAS;EAAG,GAAI;CAAQ,CAAA;AAChH;AAEA,SAAS,EAAa,EAAE,cAAW,GAAG,KAAqC;CACzE,OAAO,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,aAAU;EAAgB,WAAW,EAAG,eAAe,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC7F;AAEA,SAAS,EAAmB,EAAE,cAAW,GAAG,KAAoC;CAC9E,OAAO,iBAAA,GAAA,EAAA,KAAC,KAAD;EAAG,aAAU;EAAsB,WAAW,EAAG,yBAAyB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC3G"}
package/dist/progress.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-3cr8xz0x.js"),n=require("./utils-DU-Y_pvO.js");let r=require("react");r=e.r(r);var i=t.vr(),a=r.forwardRef(({className:e,value:r,...a},o)=>(0,i.jsx)(t.et,{ref:o,className:n.t(`bg-primary/20 relative h-2 w-full overflow-hidden rounded-full`,e),value:r,...a,children:(0,i.jsx)(t.$,{className:`bg-primary h-full w-full flex-1 transition-all`,style:{transform:`translateX(-${100-(r||0)}%)`}})}));a.displayName=t.et?.displayName||`Progress`,exports.Progress=a;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-UfQavLF9.js"),n=require("./utils-D7tt_q-u.js");let r=require("react");r=e.r(r);var i=t.Jr();function a({className:e,value:r,...a}){return(0,i.jsx)(t.rn,{"data-slot":`progress`,value:r,className:n.t(`bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full`,e),...a,children:(0,i.jsx)(t.nn,{"data-slot":`progress-indicator`,className:`bg-primary size-full flex-1 transition-all`,style:{transform:`translateX(-${100-(r||0)}%)`}})})}exports.Progress=a;
2
2
  //# sourceMappingURL=progress.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.cjs","names":[],"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 || 'Progress';\n\nexport { Progress };\nexport type { ProgressBaseProps as ProgressProps };\n"],"mappings":"+PAQM,EAAW,EAAM,YAGpB,CAAE,YAAW,QAAO,GAAG,GAAS,KACjC,EAAA,EAAA,KAAA,EAAA,GAAA,CACO,MACL,UAAW,EAAA,EAAG,iEAAkE,CAAS,EAClF,QACP,GAAI,YAEJ,EAAA,EAAA,KAAA,EAAA,EAAA,CACE,UAAU,iDACV,MAAO,CAAE,UAAW,eAAe,KAAO,GAAS,GAAG,GAAI,CAC3D,CAAA,CACqB,CAAA,CACzB,EACD,EAAS,YAAA,EAAA,IAAsC,aAAe"}
1
+ {"version":3,"file":"progress.cjs","names":[],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nimport type { ProgressBaseProps } from '@gv-tech/ui-core';\n\nfunction Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary size-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n\n// Verify that the component satisfies the ui-core contract\nconst _verifyProgressContract: ProgressBaseProps = {} as unknown as React.ComponentProps<typeof Progress>;\n"],"mappings":"+PASA,SAAS,EAAS,CAAE,YAAW,QAAO,GAAG,GAA8D,CACrG,OACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,WACH,QACP,UAAW,EAAA,EAAG,gFAAiF,CAAS,EACxG,GAAI,YAEJ,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,qBACV,UAAU,6CACV,MAAO,CAAE,UAAW,eAAe,KAAO,GAAS,GAAG,GAAI,CAC3D,CAAA,CACqB,CAAA,CAE5B"}
package/dist/progress.mjs CHANGED
@@ -1,21 +1,24 @@
1
1
  "use client";
2
2
  "use client";
3
- import { $ as e, et as t, vr as n } from "./vendor-ChPUVHXi.mjs";
4
- import { t as r } from "./utils-BsD1_fYL.mjs";
5
- import * as i from "react";
3
+ import { Jr as e, nn as t, rn as n } from "./vendor-B6CFfDyk.mjs";
4
+ import { t as r } from "./utils-IYJAOUsw.mjs";
5
+ import "react";
6
6
  //#region packages/ui-web/src/progress.tsx
7
- var a = n(), o = i.forwardRef(({ className: n, value: i, ...o }, s) => /* @__PURE__ */ (0, a.jsx)(t, {
8
- ref: s,
9
- className: r("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", n),
10
- value: i,
11
- ...o,
12
- children: /* @__PURE__ */ (0, a.jsx)(e, {
13
- className: "bg-primary h-full w-full flex-1 transition-all",
14
- style: { transform: `translateX(-${100 - (i || 0)}%)` }
15
- })
16
- }));
17
- o.displayName = t?.displayName || "Progress";
7
+ var i = e();
8
+ function a({ className: e, value: a, ...o }) {
9
+ return /* @__PURE__ */ (0, i.jsx)(n, {
10
+ "data-slot": "progress",
11
+ value: a,
12
+ className: r("bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full", e),
13
+ ...o,
14
+ children: /* @__PURE__ */ (0, i.jsx)(t, {
15
+ "data-slot": "progress-indicator",
16
+ className: "bg-primary size-full flex-1 transition-all",
17
+ style: { transform: `translateX(-${100 - (a || 0)}%)` }
18
+ })
19
+ });
20
+ }
18
21
  //#endregion
19
- export { o as Progress };
22
+ export { a as Progress };
20
23
 
21
24
  //# sourceMappingURL=progress.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.mjs","names":[],"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 || 'Progress';\n\nexport { Progress };\nexport type { ProgressBaseProps as ProgressProps };\n"],"mappings":";;;;;;aAQM,IAAW,EAAM,YAGpB,EAAE,cAAW,UAAO,GAAG,KAAS,MACjC,iBAAA,GAAA,EAAA,KAAC,GAAD;CACO;CACL,WAAW,EAAG,kEAAkE,CAAS;CAClF;CACP,GAAI;WAEJ,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,WAAU;EACV,OAAO,EAAE,WAAW,eAAe,OAAO,KAAS,GAAG,IAAI;CAC3D,CAAA;AACqB,CAAA,CACzB;AACD,EAAS,cAAA,GAAsC,eAAe"}
1
+ {"version":3,"file":"progress.mjs","names":[],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nimport type { ProgressBaseProps } from '@gv-tech/ui-core';\n\nfunction Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary size-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n\n// Verify that the component satisfies the ui-core contract\nconst _verifyProgressContract: ProgressBaseProps = {} as unknown as React.ComponentProps<typeof Progress>;\n"],"mappings":";;;;;;;AASA,SAAS,EAAS,EAAE,cAAW,UAAO,GAAG,KAA8D;CACrG,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACH;EACP,WAAW,EAAG,iFAAiF,CAAS;EACxG,GAAI;YAEJ,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,aAAU;GACV,WAAU;GACV,OAAO,EAAE,WAAW,eAAe,OAAO,KAAS,GAAG,IAAI;EAC3D,CAAA;CACqB,CAAA;AAE5B"}
@@ -1,2 +1,2 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-3cr8xz0x.js"),n=require("./utils-DU-Y_pvO.js");let r=require("react");r=e.r(r);var i=t.vr(),a=r.forwardRef(({className:e,...r},a)=>(0,i.jsx)(t.Q,{className:n.t(`grid gap-2`,e),...r,ref:a}));a.displayName=t.Q?.displayName||`RadioGroup`;var o=r.forwardRef(({className:e,...r},a)=>(0,i.jsx)(t.Z,{ref:a,className:n.t(`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`,e),...r,children:(0,i.jsx)(t.X,{className:`flex items-center justify-center`,children:(0,i.jsx)(t.tr,{className:`fill-primary h-3.5 w-3.5`})})}));o.displayName=t.Z?.displayName||`RadioGroupItem`,exports.RadioGroup=a,exports.RadioGroupItem=o;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-UfQavLF9.js"),n=require("./utils-D7tt_q-u.js");let r=require("react");r=e.r(r);var i=t.Jr();function a({className:e,...r}){return(0,i.jsx)(t.tn,{"data-slot":`radio-group`,className:n.t(`grid w-full gap-2`,e),...r})}function o({className:e,...r}){return(0,i.jsx)(t.en,{"data-slot":`radio-group-item`,className:n.t(`group/radio-group-item peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3`,e),...r,children:(0,i.jsx)(t.$t,{"data-slot":`radio-group-indicator`,className:`flex size-4 items-center justify-center`,children:(0,i.jsx)(`span`,{className:`bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2`})})})}exports.RadioGroup=a,exports.RadioGroupItem=o;
2
2
  //# sourceMappingURL=radio-group.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.cjs","names":[],"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 || 'RadioGroup';\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 || 'RadioGroupItem';\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":"+PAWM,EAAa,EAAM,YACtB,CAAE,YAAW,GAAG,GAAS,KACjB,EAAA,EAAA,KAAA,EAAA,EAAA,CAA0B,UAAW,EAAA,EAAG,aAAc,CAAS,EAAG,GAAI,EAAY,KAAM,CAAA,CAEnG,EACA,EAAW,YAAA,EAAA,GAAwC,aAAe,aAKlE,IAAM,EAAiB,EAAM,YAC1B,CAAE,YAAW,GAAG,GAAS,KAEtB,EAAA,EAAA,KAAA,EAAA,EAAA,CACO,MACL,UAAW,EAAA,EACT,+LACA,CACF,EACA,GAAI,YAEJ,EAAA,EAAA,KAAA,EAAA,EAAA,CAA+B,UAAU,6CACvC,EAAA,EAAA,KAAC,EAAA,GAAD,CAAQ,UAAU,0BAA4B,CAAA,CACjB,CAAA,CACP,CAAA,CAGhC,EACA,EAAe,YAAA,EAAA,GAAwC,aAAe"}
1
+ {"version":3,"file":"radio-group.cjs","names":[],"sources":["../packages/ui-web/src/radio-group.tsx"],"sourcesContent":["import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nfunction RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return <RadioGroupPrimitive.Root data-slot=\"radio-group\" className={cn('grid w-full gap-2', className)} {...props} />;\n}\n\nfunction RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'group/radio-group-item peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-4 items-center justify-center\"\n >\n <span className=\"bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":"kPAKA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAgE,CAClG,OAAO,EAAA,EAAA,KAAA,EAAA,GAAA,CAA0B,YAAU,cAAc,UAAW,EAAA,EAAG,oBAAqB,CAAS,EAAG,GAAI,CAAQ,CAAA,CACtH,CAEA,SAAS,EAAe,CAAE,YAAW,GAAG,GAAgE,CACtG,OACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,mBACV,UAAW,EAAA,EACT,spBACA,CACF,EACA,GAAI,YAEJ,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,wBACV,UAAU,oDAEV,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,4HAA8H,CAAA,CACjH,CAAA,CACP,CAAA,CAE9B"}
@@ -1,26 +1,29 @@
1
1
  "use client";
2
- "use client";
3
- import { Q as e, X as t, Z as n, tr as r, vr as i } from "./vendor-ChPUVHXi.mjs";
4
- import { t as a } from "./utils-BsD1_fYL.mjs";
5
- import * as o from "react";
2
+ import { $t as e, Jr as t, en as n, tn as r } from "./vendor-B6CFfDyk.mjs";
3
+ import { t as i } from "./utils-IYJAOUsw.mjs";
4
+ import "react";
6
5
  //#region packages/ui-web/src/radio-group.tsx
7
- var s = i(), c = o.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ (0, s.jsx)(e, {
8
- className: a("grid gap-2", t),
9
- ...n,
10
- ref: r
11
- }));
12
- c.displayName = e?.displayName || "RadioGroup";
13
- var l = o.forwardRef(({ className: e, ...i }, o) => /* @__PURE__ */ (0, s.jsx)(n, {
14
- ref: o,
15
- className: a("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", e),
16
- ...i,
17
- children: /* @__PURE__ */ (0, s.jsx)(t, {
18
- className: "flex items-center justify-center",
19
- children: /* @__PURE__ */ (0, s.jsx)(r, { className: "fill-primary h-3.5 w-3.5" })
20
- })
21
- }));
22
- l.displayName = n?.displayName || "RadioGroupItem";
6
+ var a = t();
7
+ function o({ className: e, ...t }) {
8
+ return /* @__PURE__ */ (0, a.jsx)(r, {
9
+ "data-slot": "radio-group",
10
+ className: i("grid w-full gap-2", e),
11
+ ...t
12
+ });
13
+ }
14
+ function s({ className: t, ...r }) {
15
+ return /* @__PURE__ */ (0, a.jsx)(n, {
16
+ "data-slot": "radio-group-item",
17
+ className: i("group/radio-group-item peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3", t),
18
+ ...r,
19
+ children: /* @__PURE__ */ (0, a.jsx)(e, {
20
+ "data-slot": "radio-group-indicator",
21
+ className: "flex size-4 items-center justify-center",
22
+ children: /* @__PURE__ */ (0, a.jsx)("span", { className: "bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2" })
23
+ })
24
+ });
25
+ }
23
26
  //#endregion
24
- export { c as RadioGroup, l as RadioGroupItem };
27
+ export { o as RadioGroup, s as RadioGroupItem };
25
28
 
26
29
  //# sourceMappingURL=radio-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.mjs","names":[],"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 || 'RadioGroup';\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 || 'RadioGroupItem';\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":";;;;;;aAWM,IAAa,EAAM,YACtB,EAAE,cAAW,GAAG,KAAS,MACjB,iBAAA,GAAA,EAAA,KAAC,GAAD;CAA0B,WAAW,EAAG,cAAc,CAAS;CAAG,GAAI;CAAY;AAAM,CAAA,CAEnG;AACA,EAAW,cAAA,GAAwC,eAAe;AAKlE,IAAM,IAAiB,EAAM,YAC1B,EAAE,cAAW,GAAG,KAAS,MAEtB,iBAAA,GAAA,EAAA,KAAC,GAAD;CACO;CACL,WAAW,EACT,gMACA,CACF;CACA,GAAI;WAEJ,iBAAA,GAAA,EAAA,KAAC,GAAD;EAA+B,WAAU;YACvC,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAQ,WAAU,2BAA4B,CAAA;CACjB,CAAA;AACP,CAAA,CAGhC;AACA,EAAe,cAAA,GAAwC,eAAe"}
1
+ {"version":3,"file":"radio-group.mjs","names":[],"sources":["../packages/ui-web/src/radio-group.tsx"],"sourcesContent":["import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nfunction RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return <RadioGroupPrimitive.Root data-slot=\"radio-group\" className={cn('grid w-full gap-2', className)} {...props} />;\n}\n\nfunction RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'group/radio-group-item peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-4 items-center justify-center\"\n >\n <span className=\"bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":";;;;;;AAKA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAgE;CAClG,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAA0B,aAAU;EAAc,WAAW,EAAG,qBAAqB,CAAS;EAAG,GAAI;CAAQ,CAAA;AACtH;AAEA,SAAS,EAAe,EAAE,cAAW,GAAG,KAAgE;CACtG,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACV,WAAW,EACT,upBACA,CACF;EACA,GAAI;YAEJ,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,aAAU;GACV,WAAU;aAEV,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,WAAU,6HAA8H,CAAA;EACjH,CAAA;CACP,CAAA;AAE9B"}
@@ -1,2 +1,2 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-3cr8xz0x.js"),n=require("./utils-DU-Y_pvO.js");let r=require("react");r=e.r(r);var i=t.vr(),a=({className:e,direction:r,...a})=>(0,i.jsx)(t.J,{orientation:r,className:n.t(`flex h-full w-full data-[panel-group-direction=vertical]:flex-col`,e),...a}),o=t.Y,s=({withHandle:e,className:r,...a})=>(0,i.jsx)(t.q,{className:n.t(`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`,r),...a,children:e&&(0,i.jsx)(`div`,{className:`bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border`,children:(0,i.jsx)(t.Zn,{className:`h-2.5 w-2.5`})})});exports.ResizableHandle=s,exports.ResizablePanel=o,exports.ResizablePanelGroup=a;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./vendor-UfQavLF9.js"),t=require("./utils-D7tt_q-u.js");var n=e.Jr();function r({className:r,...i}){return(0,n.jsx)(e.w,{"data-slot":`resizable-panel-group`,className:t.t(`flex h-full w-full aria-[orientation=vertical]:flex-col`,r),...i})}function i({...t}){return(0,n.jsx)(e.T,{"data-slot":`resizable-panel`,...t})}function a({withHandle:r,className:i,...a}){return(0,n.jsx)(e.C,{"data-slot":`resizable-handle`,className:t.t(`bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90`,i),...a,children:r&&(0,n.jsx)(`div`,{className:`bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg`})})}exports.ResizableHandle=a,exports.ResizablePanel=i,exports.ResizablePanelGroup=r;
2
2
  //# sourceMappingURL=resizable.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.cjs","names":[],"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"],"mappings":"+PAmBM,GAAuB,CAC3B,YACA,YACA,GAAG,MAEH,EAAA,EAAA,KAAC,EAAA,EAAD,CACE,YAAa,EACb,UAAW,EAAA,EAAG,oEAAqE,CAAS,EAC5F,GAAI,CACL,CAAA,EAGG,EAAiB,EAAA,EAEjB,GAAmB,CACvB,aACA,YACA,GAAG,MAEH,EAAA,EAAA,KAAC,EAAA,EAAD,CACE,UAAW,EAAA,EACT,0oBACA,CACF,EACA,GAAI,WAEH,IACC,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,sFACb,EAAA,EAAA,KAAC,EAAA,GAAD,CAAc,UAAU,aAAe,CAAA,CACpC,CAAA,CAEE,CAAA"}
1
+ {"version":3,"file":"resizable.cjs","names":[],"sources":["../packages/ui-web/src/resizable.tsx"],"sourcesContent":["'use client';\n\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from './lib/utils';\n\nfunction ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) {\n return (\n <ResizablePrimitive.Group\n data-slot=\"resizable-panel-group\"\n className={cn('flex h-full w-full aria-[orientation=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\nfunction ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {\n return <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ResizablePrimitive.SeparatorProps & {\n withHandle?: boolean;\n}) {\n return (\n <ResizablePrimitive.Separator\n data-slot=\"resizable-handle\"\n className={cn(\n 'bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && <div className=\"bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg\" />}\n </ResizablePrimitive.Separator>\n );\n}\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n\n// The script was manually reverted here\n"],"mappings":"mLAMA,SAAS,EAAoB,CAAE,YAAW,GAAG,GAAwC,CACnF,OACE,EAAA,EAAA,KAAA,EAAA,EAAA,CACE,YAAU,wBACV,UAAW,EAAA,EAAG,0DAA2D,CAAS,EAClF,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAe,CAAE,GAAG,GAAwC,CACnE,OAAO,EAAA,EAAA,KAAA,EAAA,EAAA,CAA0B,YAAU,kBAAkB,GAAI,CAAQ,CAAA,CAC3E,CAEA,SAAS,EAAgB,CACvB,aACA,YACA,GAAG,GAGF,CACD,OACE,EAAA,EAAA,KAAA,EAAA,EAAA,CACE,YAAU,mBACV,UAAW,EAAA,EACT,0pBACA,CACF,EACA,GAAI,WAEH,IAAc,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,iDAAmD,CAAA,CACrD,CAAA,CAElC"}
@@ -1,22 +1,31 @@
1
1
  "use client";
2
2
  "use client";
3
- import { J as e, Y as t, Zn as n, q as r, vr as i } from "./vendor-ChPUVHXi.mjs";
4
- import { t as a } from "./utils-BsD1_fYL.mjs";
5
- import "react";
3
+ import { C as e, Jr as t, T as n, w as r } from "./vendor-B6CFfDyk.mjs";
4
+ import { t as i } from "./utils-IYJAOUsw.mjs";
6
5
  //#region packages/ui-web/src/resizable.tsx
7
- var o = i(), s = ({ className: t, direction: n, ...r }) => /* @__PURE__ */ (0, o.jsx)(e, {
8
- orientation: n,
9
- className: a("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", t),
10
- ...r
11
- }), c = t, l = ({ withHandle: e, className: t, ...i }) => /* @__PURE__ */ (0, o.jsx)(r, {
12
- className: a("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", t),
13
- ...i,
14
- children: e && /* @__PURE__ */ (0, o.jsx)("div", {
15
- className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",
16
- children: /* @__PURE__ */ (0, o.jsx)(n, { className: "h-2.5 w-2.5" })
17
- })
18
- });
6
+ var a = t();
7
+ function o({ className: e, ...t }) {
8
+ return /* @__PURE__ */ (0, a.jsx)(r, {
9
+ "data-slot": "resizable-panel-group",
10
+ className: i("flex h-full w-full aria-[orientation=vertical]:flex-col", e),
11
+ ...t
12
+ });
13
+ }
14
+ function s({ ...e }) {
15
+ return /* @__PURE__ */ (0, a.jsx)(n, {
16
+ "data-slot": "resizable-panel",
17
+ ...e
18
+ });
19
+ }
20
+ function c({ withHandle: t, className: n, ...r }) {
21
+ return /* @__PURE__ */ (0, a.jsx)(e, {
22
+ "data-slot": "resizable-handle",
23
+ className: i("bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90", n),
24
+ ...r,
25
+ children: t && /* @__PURE__ */ (0, a.jsx)("div", { className: "bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg" })
26
+ });
27
+ }
19
28
  //#endregion
20
- export { l as ResizableHandle, c as ResizablePanel, s as ResizablePanelGroup };
29
+ export { c as ResizableHandle, s as ResizablePanel, o as ResizablePanelGroup };
21
30
 
22
31
  //# sourceMappingURL=resizable.mjs.map