@gv-tech/design-system 2.19.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (484) hide show
  1. package/dist/accordion.cjs +2 -2
  2. package/dist/accordion.cjs.map +1 -1
  3. package/dist/accordion.d.ts +2 -34
  4. package/dist/accordion.mjs +35 -38
  5. package/dist/accordion.mjs.map +1 -1
  6. package/dist/alert-dialog.cjs +2 -2
  7. package/dist/alert-dialog.cjs.map +1 -1
  8. package/dist/alert-dialog.d.ts +2 -74
  9. package/dist/alert-dialog.mjs +55 -69
  10. package/dist/alert-dialog.mjs.map +1 -1
  11. package/dist/alert.cjs +2 -2
  12. package/dist/alert.cjs.map +1 -1
  13. package/dist/alert.d.ts +2 -29
  14. package/dist/alert.mjs +36 -32
  15. package/dist/alert.mjs.map +1 -1
  16. package/dist/aspect-ratio.cjs +2 -2
  17. package/dist/aspect-ratio.cjs.map +1 -1
  18. package/dist/aspect-ratio.d.ts +2 -14
  19. package/dist/aspect-ratio.mjs +8 -6
  20. package/dist/aspect-ratio.mjs.map +1 -1
  21. package/dist/avatar.cjs +2 -2
  22. package/dist/avatar.cjs.map +1 -1
  23. package/dist/avatar.d.ts +2 -26
  24. package/dist/avatar.mjs +27 -29
  25. package/dist/avatar.mjs.map +1 -1
  26. package/dist/badge.cjs +2 -2
  27. package/dist/badge.cjs.map +1 -1
  28. package/dist/badge.d.ts +2 -21
  29. package/dist/badge.mjs +23 -25
  30. package/dist/badge.mjs.map +1 -1
  31. package/dist/breadcrumb.cjs +2 -2
  32. package/dist/breadcrumb.cjs.map +1 -1
  33. package/dist/breadcrumb.d.ts +2 -62
  34. package/dist/breadcrumb.mjs +60 -67
  35. package/dist/breadcrumb.mjs.map +1 -1
  36. package/dist/button.cjs +2 -2
  37. package/dist/button.cjs.map +1 -1
  38. package/dist/button.d.ts +2 -22
  39. package/dist/button.mjs +40 -39
  40. package/dist/button.mjs.map +1 -1
  41. package/dist/calendar.cjs +2 -2
  42. package/dist/calendar.cjs.map +1 -1
  43. package/dist/calendar.d.ts +2 -36
  44. package/dist/calendar.mjs +94 -130
  45. package/dist/calendar.mjs.map +1 -1
  46. package/dist/card.cjs +2 -2
  47. package/dist/card.cjs.map +1 -1
  48. package/dist/card.d.ts +2 -23
  49. package/dist/card.mjs +44 -33
  50. package/dist/card.mjs.map +1 -1
  51. package/dist/carousel.cjs +2 -2
  52. package/dist/carousel.cjs.map +1 -1
  53. package/dist/carousel.d.ts +2 -78
  54. package/dist/carousel.mjs +113 -151
  55. package/dist/carousel.mjs.map +1 -1
  56. package/dist/chart.cjs +5 -5
  57. package/dist/chart.cjs.map +1 -1
  58. package/dist/chart.d.ts +2 -90
  59. package/dist/chart.mjs +124 -182
  60. package/dist/chart.mjs.map +1 -1
  61. package/dist/checkbox.cjs +2 -2
  62. package/dist/checkbox.cjs.map +1 -1
  63. package/dist/checkbox.d.ts +2 -17
  64. package/dist/checkbox.mjs +19 -22
  65. package/dist/checkbox.mjs.map +1 -1
  66. package/dist/collapsible.cjs +2 -2
  67. package/dist/collapsible.cjs.map +1 -1
  68. package/dist/collapsible.d.ts +2 -32
  69. package/dist/collapsible.mjs +8 -8
  70. package/dist/collapsible.mjs.map +1 -1
  71. package/dist/command.cjs +2 -2
  72. package/dist/command.cjs.map +1 -1
  73. package/dist/command.d.ts +2 -133
  74. package/dist/command.mjs +80 -86
  75. package/dist/command.mjs.map +1 -1
  76. package/dist/context-menu.cjs +2 -2
  77. package/dist/context-menu.cjs.map +1 -1
  78. package/dist/context-menu.d.ts +2 -115
  79. package/dist/context-menu.mjs +72 -124
  80. package/dist/context-menu.mjs.map +1 -1
  81. package/dist/design-system.css +3 -1
  82. package/dist/dialog.cjs +2 -2
  83. package/dist/dialog.cjs.map +1 -1
  84. package/dist/dialog.d.ts +2 -31
  85. package/dist/dialog.mjs +50 -65
  86. package/dist/dialog.mjs.map +1 -1
  87. package/dist/drawer.cjs +2 -2
  88. package/dist/drawer.cjs.map +1 -1
  89. package/dist/drawer.d.ts +2 -79
  90. package/dist/drawer.mjs +49 -54
  91. package/dist/drawer.mjs.map +1 -1
  92. package/dist/dropdown-menu.cjs +2 -2
  93. package/dist/dropdown-menu.cjs.map +1 -1
  94. package/dist/dropdown-menu.d.ts +2 -124
  95. package/dist/dropdown-menu.mjs +73 -126
  96. package/dist/dropdown-menu.mjs.map +1 -1
  97. package/dist/form.cjs +2 -2
  98. package/dist/form.cjs.map +1 -1
  99. package/dist/form.d.ts +2 -62
  100. package/dist/form.mjs +75 -65
  101. package/dist/form.mjs.map +1 -1
  102. package/dist/hover-card.cjs +2 -2
  103. package/dist/hover-card.cjs.map +1 -1
  104. package/dist/hover-card.d.ts +2 -30
  105. package/dist/hover-card.mjs +17 -23
  106. package/dist/hover-card.mjs.map +1 -1
  107. package/dist/index.cjs +1 -2
  108. package/dist/index.d.ts +2 -2442
  109. package/dist/index.mjs +56 -430
  110. package/dist/input.cjs +2 -2
  111. package/dist/input.cjs.map +1 -1
  112. package/dist/input.d.ts +2 -14
  113. package/dist/input.mjs +16 -20
  114. package/dist/input.mjs.map +1 -1
  115. package/dist/label.cjs +2 -2
  116. package/dist/label.cjs.map +1 -1
  117. package/dist/label.d.ts +2 -14
  118. package/dist/label.mjs +14 -8
  119. package/dist/label.mjs.map +1 -1
  120. package/dist/menubar.cjs +2 -2
  121. package/dist/menubar.cjs.map +1 -1
  122. package/dist/menubar.d.ts +2 -125
  123. package/dist/menubar.mjs +101 -156
  124. package/dist/menubar.mjs.map +1 -1
  125. package/dist/navigation-menu.cjs +2 -2
  126. package/dist/navigation-menu.cjs.map +1 -1
  127. package/dist/navigation-menu.d.ts +2 -77
  128. package/dist/navigation-menu.mjs +58 -96
  129. package/dist/navigation-menu.mjs.map +1 -1
  130. package/dist/packages/design-tokens/src/index.d.ts +91 -0
  131. package/dist/packages/design-tokens/src/palette.d.ts +31 -0
  132. package/dist/packages/design-tokens/src/preset.d.ts +107 -0
  133. package/dist/packages/design-tokens/src/radii.d.ts +20 -0
  134. package/dist/packages/design-tokens/src/shadows.d.ts +11 -0
  135. package/dist/packages/design-tokens/src/spacing.d.ts +29 -0
  136. package/dist/packages/design-tokens/src/theme.d.ts +47 -0
  137. package/dist/packages/design-tokens/src/typography.d.ts +32 -0
  138. package/dist/packages/ui-core/src/contracts/accordion.d.ts +19 -0
  139. package/dist/packages/ui-core/src/contracts/alert-dialog.d.ts +39 -0
  140. package/dist/packages/ui-core/src/contracts/alert.d.ts +14 -0
  141. package/dist/packages/ui-core/src/contracts/aspect-ratio.d.ts +6 -0
  142. package/dist/packages/ui-core/src/contracts/avatar.d.ts +14 -0
  143. package/dist/packages/ui-core/src/contracts/badge.d.ts +6 -0
  144. package/dist/packages/ui-core/src/contracts/breadcrumb.d.ts +30 -0
  145. package/dist/packages/ui-core/src/contracts/button.d.ts +9 -0
  146. package/dist/packages/ui-core/src/contracts/calendar.d.ts +4 -0
  147. package/dist/packages/ui-core/src/contracts/card.d.ts +5 -0
  148. package/dist/packages/ui-core/src/contracts/carousel.d.ts +24 -0
  149. package/dist/packages/ui-core/src/contracts/chart.d.ts +33 -0
  150. package/dist/packages/ui-core/src/contracts/checkbox.d.ts +7 -0
  151. package/dist/packages/ui-core/src/contracts/collapsible.d.ts +18 -0
  152. package/dist/packages/ui-core/src/contracts/command.d.ts +35 -0
  153. package/dist/packages/ui-core/src/contracts/context-menu.d.ts +64 -0
  154. package/dist/packages/ui-core/src/contracts/dialog.d.ts +13 -0
  155. package/dist/packages/ui-core/src/contracts/drawer.d.ts +31 -0
  156. package/dist/packages/ui-core/src/contracts/dropdown-menu.d.ts +73 -0
  157. package/dist/packages/ui-core/src/contracts/form.d.ts +23 -0
  158. package/dist/packages/ui-core/src/contracts/hover-card.d.ts +18 -0
  159. package/dist/packages/ui-core/src/contracts/input.d.ts +5 -0
  160. package/dist/packages/ui-core/src/contracts/label.d.ts +6 -0
  161. package/dist/packages/ui-core/src/contracts/menubar.d.ts +73 -0
  162. package/dist/packages/ui-core/src/contracts/navigation-menu.d.ts +47 -0
  163. package/dist/packages/ui-core/src/contracts/pagination.d.ts +31 -0
  164. package/dist/packages/ui-core/src/contracts/popover.d.ts +24 -0
  165. package/dist/packages/ui-core/src/contracts/progress.d.ts +4 -0
  166. package/dist/packages/ui-core/src/contracts/radio.d.ts +9 -0
  167. package/dist/packages/ui-core/src/contracts/resizable.d.ts +38 -0
  168. package/dist/packages/ui-core/src/contracts/scroll-area.d.ts +13 -0
  169. package/dist/packages/ui-core/src/contracts/scroll-to-top.d.ts +25 -0
  170. package/dist/packages/ui-core/src/contracts/search.d.ts +12 -0
  171. package/dist/packages/ui-core/src/contracts/select.d.ts +54 -0
  172. package/dist/packages/ui-core/src/contracts/separator.d.ts +5 -0
  173. package/dist/packages/ui-core/src/contracts/sheet.d.ts +48 -0
  174. package/dist/packages/ui-core/src/contracts/skeleton.d.ts +5 -0
  175. package/dist/packages/ui-core/src/contracts/slider.d.ts +15 -0
  176. package/dist/packages/ui-core/src/contracts/sonner.d.ts +15 -0
  177. package/dist/packages/ui-core/src/contracts/switch.d.ts +11 -0
  178. package/dist/packages/ui-core/src/contracts/table-of-contents.d.ts +41 -0
  179. package/dist/packages/ui-core/src/contracts/table.d.ts +33 -0
  180. package/dist/packages/ui-core/src/contracts/tabs.d.ts +27 -0
  181. package/dist/packages/ui-core/src/contracts/text.d.ts +6 -0
  182. package/dist/packages/ui-core/src/contracts/textarea.d.ts +7 -0
  183. package/dist/packages/ui-core/src/contracts/theme-provider.d.ts +13 -0
  184. package/dist/packages/ui-core/src/contracts/theme-toggle.d.ts +15 -0
  185. package/dist/packages/ui-core/src/contracts/toast.d.ts +10 -0
  186. package/dist/packages/ui-core/src/contracts/toaster.d.ts +3 -0
  187. package/dist/packages/ui-core/src/contracts/toggle-group.d.ts +21 -0
  188. package/dist/packages/ui-core/src/contracts/toggle.d.ts +29 -0
  189. package/dist/packages/ui-core/src/contracts/tooltip.d.ts +24 -0
  190. package/dist/packages/ui-core/src/index.d.ts +56 -0
  191. package/dist/packages/ui-web/src/accordion.d.ts +9 -0
  192. package/dist/packages/ui-web/src/accordion.test.d.ts +1 -0
  193. package/dist/packages/ui-web/src/alert-dialog.d.ts +22 -0
  194. package/dist/packages/ui-web/src/alert-dialog.test.d.ts +1 -0
  195. package/dist/packages/ui-web/src/alert.d.ts +11 -0
  196. package/dist/packages/ui-web/src/alert.test.d.ts +1 -0
  197. package/dist/packages/ui-web/src/aspect-ratio.d.ts +6 -0
  198. package/dist/packages/ui-web/src/aspect-ratio.test.d.ts +1 -0
  199. package/dist/packages/ui-web/src/avatar.d.ts +8 -0
  200. package/dist/packages/ui-web/src/avatar.test.d.ts +1 -0
  201. package/dist/packages/ui-web/src/badge.d.ts +11 -0
  202. package/dist/packages/ui-web/src/badge.test.d.ts +1 -0
  203. package/dist/packages/ui-web/src/breadcrumb.d.ts +19 -0
  204. package/dist/packages/ui-web/src/button.d.ts +13 -0
  205. package/dist/packages/ui-web/src/button.test.d.ts +1 -0
  206. package/dist/packages/ui-web/src/calendar.d.ts +10 -0
  207. package/dist/packages/ui-web/src/calendar.test.d.ts +1 -0
  208. package/dist/packages/ui-web/src/card.d.ts +11 -0
  209. package/dist/packages/ui-web/src/card.test.d.ts +1 -0
  210. package/dist/packages/ui-web/src/carousel.d.ts +24 -0
  211. package/dist/packages/ui-web/src/carousel.test.d.ts +1 -0
  212. package/dist/packages/ui-web/src/chart.d.ts +16 -0
  213. package/dist/packages/ui-web/src/chart.test.d.ts +1 -0
  214. package/dist/packages/ui-web/src/checkbox.d.ts +7 -0
  215. package/dist/packages/ui-web/src/checkbox.test.d.ts +1 -0
  216. package/dist/packages/ui-web/src/collapsible.d.ts +8 -0
  217. package/dist/packages/ui-web/src/collapsible.test.d.ts +1 -0
  218. package/dist/packages/ui-web/src/command.d.ts +82 -0
  219. package/dist/packages/ui-web/src/command.test.d.ts +1 -0
  220. package/dist/packages/ui-web/src/context-menu.d.ts +23 -0
  221. package/dist/packages/ui-web/src/context-menu.test.d.ts +1 -0
  222. package/dist/packages/ui-web/src/dialog.d.ts +19 -0
  223. package/dist/packages/ui-web/src/dialog.test.d.ts +1 -0
  224. package/dist/packages/ui-web/src/drawer.d.ts +25 -0
  225. package/dist/packages/ui-web/src/drawer.test.d.ts +1 -0
  226. package/dist/packages/ui-web/src/dropdown-menu.d.ts +23 -0
  227. package/dist/packages/ui-web/src/dropdown-menu.test.d.ts +1 -0
  228. package/dist/packages/ui-web/src/form.d.ts +26 -0
  229. package/dist/packages/ui-web/src/form.test.d.ts +1 -0
  230. package/dist/packages/ui-web/src/hooks/use-theme.d.ts +51 -0
  231. package/dist/packages/ui-web/src/hooks/use-toast.d.ts +44 -0
  232. package/dist/packages/ui-web/src/hover-card.d.ts +8 -0
  233. package/dist/packages/ui-web/src/hover-card.test.d.ts +1 -0
  234. package/dist/packages/ui-web/src/index.d.ts +107 -0
  235. package/dist/packages/ui-web/src/input.d.ts +6 -0
  236. package/dist/packages/ui-web/src/input.test.d.ts +1 -0
  237. package/dist/packages/ui-web/src/label.d.ts +8 -0
  238. package/dist/packages/ui-web/src/label.test.d.ts +1 -0
  239. package/dist/packages/ui-web/src/lib/utils.d.ts +3 -0
  240. package/dist/packages/ui-web/src/menubar.d.ts +24 -0
  241. package/dist/packages/ui-web/src/menubar.test.d.ts +1 -0
  242. package/dist/packages/ui-web/src/navigation-menu.d.ts +15 -0
  243. package/dist/packages/ui-web/src/navigation-menu.test.d.ts +1 -0
  244. package/dist/packages/ui-web/src/pagination.d.ts +30 -0
  245. package/dist/packages/ui-web/src/pagination.test.d.ts +1 -0
  246. package/dist/packages/ui-web/src/popover.d.ts +9 -0
  247. package/dist/packages/ui-web/src/popover.test.d.ts +1 -0
  248. package/dist/packages/ui-web/src/progress.d.ts +6 -0
  249. package/dist/packages/ui-web/src/progress.test.d.ts +1 -0
  250. package/dist/packages/ui-web/src/radio-group.d.ts +10 -0
  251. package/dist/packages/ui-web/src/radio-group.test.d.ts +1 -0
  252. package/dist/packages/ui-web/src/resizable.d.ts +8 -0
  253. package/dist/packages/ui-web/src/resizable.test.d.ts +1 -0
  254. package/dist/packages/ui-web/src/scroll-area.d.ts +7 -0
  255. package/dist/packages/ui-web/src/scroll-area.test.d.ts +1 -0
  256. package/dist/packages/ui-web/src/scroll-to-top.d.ts +7 -0
  257. package/dist/packages/ui-web/src/scroll-to-top.test.d.ts +1 -0
  258. package/dist/packages/ui-web/src/search.d.ts +7 -0
  259. package/dist/packages/ui-web/src/search.test.d.ts +1 -0
  260. package/dist/packages/ui-web/src/select.d.ts +15 -0
  261. package/dist/packages/ui-web/src/select.test.d.ts +1 -0
  262. package/dist/packages/ui-web/src/separator.d.ts +6 -0
  263. package/dist/packages/ui-web/src/separator.test.d.ts +1 -0
  264. package/dist/packages/ui-web/src/setupTests.d.ts +0 -0
  265. package/dist/packages/ui-web/src/sheet.d.ts +28 -0
  266. package/dist/packages/ui-web/src/sheet.test.d.ts +1 -0
  267. package/dist/packages/ui-web/src/skeleton.d.ts +5 -0
  268. package/dist/packages/ui-web/src/skeleton.test.d.ts +1 -0
  269. package/dist/packages/ui-web/src/slider.d.ts +6 -0
  270. package/dist/packages/ui-web/src/slider.test.d.ts +1 -0
  271. package/dist/packages/ui-web/src/sonner.d.ts +7 -0
  272. package/dist/packages/ui-web/src/sonner.test.d.ts +1 -0
  273. package/dist/packages/ui-web/src/support-fab.d.ts +15 -0
  274. package/dist/packages/ui-web/src/support-fab.test.d.ts +1 -0
  275. package/dist/packages/ui-web/src/switch.d.ts +6 -0
  276. package/dist/packages/ui-web/src/switch.test.d.ts +1 -0
  277. package/dist/packages/ui-web/src/table-of-contents.d.ts +23 -0
  278. package/dist/packages/ui-web/src/table-of-contents.test.d.ts +1 -0
  279. package/dist/packages/ui-web/src/table.d.ts +12 -0
  280. package/dist/packages/ui-web/src/table.test.d.ts +1 -0
  281. package/dist/packages/ui-web/src/tabs.d.ts +9 -0
  282. package/dist/packages/ui-web/src/tabs.test.d.ts +1 -0
  283. package/dist/packages/ui-web/src/text.d.ts +12 -0
  284. package/dist/packages/ui-web/src/text.test.d.ts +1 -0
  285. package/dist/packages/ui-web/src/textarea.d.ts +6 -0
  286. package/dist/packages/ui-web/src/textarea.test.d.ts +1 -0
  287. package/dist/packages/ui-web/src/theme-provider.d.ts +4 -0
  288. package/dist/packages/ui-web/src/theme-toggle.d.ts +3 -0
  289. package/dist/packages/ui-web/src/theme-toggle.test.d.ts +1 -0
  290. package/dist/packages/ui-web/src/toast.d.ts +16 -0
  291. package/dist/packages/ui-web/src/toast.test.d.ts +1 -0
  292. package/dist/packages/ui-web/src/toaster.d.ts +2 -0
  293. package/dist/packages/ui-web/src/toggle-group.d.ts +13 -0
  294. package/dist/packages/ui-web/src/toggle-group.test.d.ts +1 -0
  295. package/dist/packages/ui-web/src/toggle.d.ts +8 -0
  296. package/dist/packages/ui-web/src/toggle.test.d.ts +1 -0
  297. package/dist/packages/ui-web/src/tooltip.d.ts +12 -0
  298. package/dist/pagination.cjs +2 -2
  299. package/dist/pagination.cjs.map +1 -1
  300. package/dist/pagination.d.ts +2 -94
  301. package/dist/pagination.mjs +63 -67
  302. package/dist/pagination.mjs.map +1 -1
  303. package/dist/popover.cjs +2 -2
  304. package/dist/popover.cjs.map +1 -1
  305. package/dist/popover.d.ts +2 -39
  306. package/dist/popover.mjs +17 -24
  307. package/dist/popover.mjs.map +1 -1
  308. package/dist/progress.cjs +2 -2
  309. package/dist/progress.cjs.map +1 -1
  310. package/dist/progress.d.ts +2 -11
  311. package/dist/progress.mjs +19 -23
  312. package/dist/progress.mjs.map +1 -1
  313. package/dist/radio-group.cjs +2 -2
  314. package/dist/radio-group.cjs.map +1 -1
  315. package/dist/radio-group.d.ts +2 -25
  316. package/dist/radio-group.mjs +25 -27
  317. package/dist/radio-group.mjs.map +1 -1
  318. package/dist/resizable.cjs +2 -2
  319. package/dist/resizable.cjs.map +1 -1
  320. package/dist/resizable.d.ts +2 -53
  321. package/dist/resizable.mjs +21 -34
  322. package/dist/resizable.mjs.map +1 -1
  323. package/dist/rolldown-runtime-C0IHAABJ.mjs +23 -0
  324. package/dist/rolldown-runtime-CacfPODE.js +1 -0
  325. package/dist/scroll-area.cjs +2 -2
  326. package/dist/scroll-area.cjs.map +1 -1
  327. package/dist/scroll-area.d.ts +2 -22
  328. package/dist/scroll-area.mjs +31 -30
  329. package/dist/scroll-area.mjs.map +1 -1
  330. package/dist/scroll-to-top.cjs +2 -2
  331. package/dist/scroll-to-top.cjs.map +1 -1
  332. package/dist/scroll-to-top.d.ts +2 -37
  333. package/dist/scroll-to-top.mjs +72 -84
  334. package/dist/scroll-to-top.mjs.map +1 -1
  335. package/dist/search.cjs +2 -2
  336. package/dist/search.cjs.map +1 -1
  337. package/dist/search.d.ts +2 -26
  338. package/dist/search.mjs +54 -63
  339. package/dist/search.mjs.map +1 -1
  340. package/dist/select.cjs +2 -2
  341. package/dist/select.cjs.map +1 -1
  342. package/dist/select.d.ts +2 -87
  343. package/dist/select.mjs +70 -100
  344. package/dist/select.mjs.map +1 -1
  345. package/dist/separator.cjs +2 -2
  346. package/dist/separator.cjs.map +1 -1
  347. package/dist/separator.d.ts +2 -12
  348. package/dist/separator.mjs +17 -18
  349. package/dist/separator.mjs.map +1 -1
  350. package/dist/sheet.cjs +2 -2
  351. package/dist/sheet.cjs.map +1 -1
  352. package/dist/sheet.d.ts +2 -97
  353. package/dist/sheet.mjs +58 -64
  354. package/dist/sheet.mjs.map +1 -1
  355. package/dist/skeleton.cjs +2 -2
  356. package/dist/skeleton.cjs.map +1 -1
  357. package/dist/skeleton.d.ts +2 -11
  358. package/dist/skeleton.mjs +15 -8
  359. package/dist/skeleton.mjs.map +1 -1
  360. package/dist/slider.cjs +2 -2
  361. package/dist/slider.cjs.map +1 -1
  362. package/dist/slider.d.ts +2 -22
  363. package/dist/slider.mjs +19 -20
  364. package/dist/slider.mjs.map +1 -1
  365. package/dist/sonner.cjs +2 -2
  366. package/dist/sonner.cjs.map +1 -1
  367. package/dist/sonner.d.ts +2 -25
  368. package/dist/sonner.mjs +22 -24
  369. package/dist/sonner.mjs.map +1 -1
  370. package/dist/src/index.d.ts +2 -0
  371. package/dist/src/setupTests.d.ts +0 -0
  372. package/dist/src-B8AA-nU4.js +2 -0
  373. package/dist/src-B8AA-nU4.js.map +1 -0
  374. package/dist/src-C65A5RuY.mjs +23 -0
  375. package/dist/src-C65A5RuY.mjs.map +1 -0
  376. package/dist/support-fab.cjs +2 -2
  377. package/dist/support-fab.cjs.map +1 -1
  378. package/dist/support-fab.d.ts +2 -20
  379. package/dist/support-fab.mjs +82 -117
  380. package/dist/support-fab.mjs.map +1 -1
  381. package/dist/switch.cjs +2 -2
  382. package/dist/switch.cjs.map +1 -1
  383. package/dist/switch.d.ts +2 -18
  384. package/dist/switch.mjs +16 -27
  385. package/dist/switch.mjs.map +1 -1
  386. package/dist/table-of-contents.cjs +2 -2
  387. package/dist/table-of-contents.cjs.map +1 -1
  388. package/dist/table-of-contents.d.ts +2 -68
  389. package/dist/table-of-contents.mjs +161 -156
  390. package/dist/table-of-contents.mjs.map +1 -1
  391. package/dist/table.cjs +2 -2
  392. package/dist/table.cjs.map +1 -1
  393. package/dist/table.d.ts +2 -59
  394. package/dist/table.mjs +60 -58
  395. package/dist/table.mjs.map +1 -1
  396. package/dist/tabs.cjs +2 -2
  397. package/dist/tabs.cjs.map +1 -1
  398. package/dist/tabs.d.ts +2 -42
  399. package/dist/tabs.mjs +27 -46
  400. package/dist/tabs.mjs.map +1 -1
  401. package/dist/text.cjs +2 -2
  402. package/dist/text.cjs.map +1 -1
  403. package/dist/text.d.ts +2 -21
  404. package/dist/text.mjs +42 -42
  405. package/dist/text.mjs.map +1 -1
  406. package/dist/textarea.cjs +2 -2
  407. package/dist/textarea.cjs.map +1 -1
  408. package/dist/textarea.d.ts +2 -16
  409. package/dist/textarea.mjs +14 -18
  410. package/dist/textarea.mjs.map +1 -1
  411. package/dist/theme-provider.cjs +2 -2
  412. package/dist/theme-provider.cjs.map +1 -1
  413. package/dist/theme-provider.d.ts +2 -22
  414. package/dist/theme-provider.mjs +17 -8
  415. package/dist/theme-provider.mjs.map +1 -1
  416. package/dist/theme-toggle-B8UiizQB.js +2 -0
  417. package/dist/theme-toggle-B8UiizQB.js.map +1 -0
  418. package/dist/theme-toggle-DoAVRoyO.mjs +321 -0
  419. package/dist/theme-toggle-DoAVRoyO.mjs.map +1 -0
  420. package/dist/theme-toggle.cjs +1 -2
  421. package/dist/theme-toggle.d.ts +2 -23
  422. package/dist/theme-toggle.mjs +3 -9
  423. package/dist/toast.cjs +2 -2
  424. package/dist/toast.cjs.map +1 -1
  425. package/dist/toast.d.ts +2 -26
  426. package/dist/toast.mjs +53 -70
  427. package/dist/toast.mjs.map +1 -1
  428. package/dist/toaster-BgZxvlTL.mjs +128 -0
  429. package/dist/toaster-BgZxvlTL.mjs.map +1 -0
  430. package/dist/toaster-DnZKPR-G.js +2 -0
  431. package/dist/toaster-DnZKPR-G.js.map +1 -0
  432. package/dist/toaster.cjs +1 -2
  433. package/dist/toaster.d.ts +2 -9
  434. package/dist/toaster.mjs +3 -7
  435. package/dist/toggle-group.cjs +2 -2
  436. package/dist/toggle-group.cjs.map +1 -1
  437. package/dist/toggle-group.d.ts +2 -22
  438. package/dist/toggle-group.mjs +39 -37
  439. package/dist/toggle-group.mjs.map +1 -1
  440. package/dist/toggle.cjs +2 -2
  441. package/dist/toggle.cjs.map +1 -1
  442. package/dist/toggle.d.ts +2 -43
  443. package/dist/toggle.mjs +19 -12
  444. package/dist/toggle.mjs.map +1 -1
  445. package/dist/tooltip.cjs +2 -2
  446. package/dist/tooltip.cjs.map +1 -1
  447. package/dist/tooltip.d.ts +2 -48
  448. package/dist/tooltip.mjs +25 -29
  449. package/dist/tooltip.mjs.map +1 -1
  450. package/dist/utils-BtI8Nf6i.mjs +12 -0
  451. package/dist/utils-BtI8Nf6i.mjs.map +1 -0
  452. package/dist/utils-CbSX47LV.js +2 -0
  453. package/dist/utils-CbSX47LV.js.map +1 -0
  454. package/dist/vendor-Cr0eKZrm.mjs +28603 -0
  455. package/dist/vendor-Cr0eKZrm.mjs.map +1 -0
  456. package/dist/vendor-D3ZzLf8D.js +92 -0
  457. package/dist/vendor-D3ZzLf8D.js.map +1 -0
  458. package/package.json +32 -32
  459. package/dist/index.cjs.map +0 -1
  460. package/dist/index.mjs.map +0 -1
  461. package/dist/theme-toggle-BNtYv2Jv.mjs +0 -177
  462. package/dist/theme-toggle-BNtYv2Jv.mjs.map +0 -1
  463. package/dist/theme-toggle-DK_OhDRf.js +0 -2
  464. package/dist/theme-toggle-DK_OhDRf.js.map +0 -1
  465. package/dist/theme-toggle.cjs.map +0 -1
  466. package/dist/theme-toggle.mjs.map +0 -1
  467. package/dist/toaster-Cj_SryBI.mjs +0 -119
  468. package/dist/toaster-Cj_SryBI.mjs.map +0 -1
  469. package/dist/toaster-Q_hzVonm.js +0 -2
  470. package/dist/toaster-Q_hzVonm.js.map +0 -1
  471. package/dist/toaster.cjs.map +0 -1
  472. package/dist/toaster.mjs.map +0 -1
  473. package/dist/toggle-DPMTgo47.mjs +0 -25
  474. package/dist/toggle-DPMTgo47.mjs.map +0 -1
  475. package/dist/toggle-_F_yB_Dj.js +0 -2
  476. package/dist/toggle-_F_yB_Dj.js.map +0 -1
  477. package/dist/utils-Bgpn0CK0.mjs +0 -12
  478. package/dist/utils-Bgpn0CK0.mjs.map +0 -1
  479. package/dist/utils-CBWPs0D7.js +0 -2
  480. package/dist/utils-CBWPs0D7.js.map +0 -1
  481. package/dist/vendor-BQwS7aJt.mjs +0 -25217
  482. package/dist/vendor-BQwS7aJt.mjs.map +0 -1
  483. package/dist/vendor-B_07FHqh.js +0 -68
  484. package/dist/vendor-B_07FHqh.js.map +0 -1
package/dist/dialog.mjs CHANGED
@@ -1,66 +1,51 @@
1
1
  "use client";
2
- import { j as t, aT as i, aU as f, aV as n, aW as d, aX as p, aY as r, aZ as c, a_ as x, a$ as u } from "./vendor-BQwS7aJt.mjs";
3
- import * as l from "react";
4
- import { c as o } from "./utils-Bgpn0CK0.mjs";
5
- const R = x, C = u, y = f, T = d, m = l.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ t.jsx(
6
- i,
7
- {
8
- ref: s,
9
- className: o(
10
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
11
- a
12
- ),
13
- ...e
14
- }
15
- ));
16
- m.displayName = i?.displayName || "DialogOverlay";
17
- const D = l.forwardRef(({ className: a, children: e, ...s }, g) => /* @__PURE__ */ t.jsxs(y, { children: [
18
- /* @__PURE__ */ t.jsx(m, {}),
19
- /* @__PURE__ */ t.jsxs(
20
- n,
21
- {
22
- ref: g,
23
- className: o(
24
- "bg-background 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",
25
- a
26
- ),
27
- ...s,
28
- children: [
29
- e,
30
- /* @__PURE__ */ t.jsxs(d, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
31
- /* @__PURE__ */ t.jsx(p, { className: "h-4 w-4" }),
32
- /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Close" })
33
- ] })
34
- ]
35
- }
36
- )
37
- ] }));
38
- D.displayName = n?.displayName || "DialogContent";
39
- const N = ({ className: a, ...e }) => /* @__PURE__ */ t.jsx("div", { className: o("flex flex-col space-y-1.5 text-center sm:text-left", a), ...e });
40
- N.displayName = "DialogHeader";
41
- const j = ({ className: a, ...e }) => /* @__PURE__ */ t.jsx("div", { className: o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
42
- j.displayName = "DialogFooter";
43
- const b = l.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ t.jsx(
44
- r,
45
- {
46
- ref: s,
47
- className: o("text-lg leading-none font-semibold tracking-tight", a),
48
- ...e
49
- }
50
- ));
51
- b.displayName = r?.displayName || "DialogTitle";
52
- const h = l.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ t.jsx(c, { ref: s, className: o("text-muted-foreground text-sm", a), ...e }));
53
- h.displayName = c?.displayName || "DialogDescription";
54
- export {
55
- R as Dialog,
56
- T as DialogClose,
57
- D as DialogContent,
58
- h as DialogDescription,
59
- j as DialogFooter,
60
- N as DialogHeader,
61
- m as DialogOverlay,
62
- y as DialogPortal,
63
- b as DialogTitle,
64
- C as DialogTrigger
65
- };
66
- //# sourceMappingURL=dialog.mjs.map
2
+ "use client";
3
+ import { Bn as e, Hn as t, Kn as n, Ln as r, Rn as i, Un as a, Vn as o, Wn as s, vr as c, zn as l } from "./vendor-Cr0eKZrm.mjs";
4
+ import { t as u } from "./utils-BtI8Nf6i.mjs";
5
+ import * as d from "react";
6
+ //#region packages/ui-web/src/dialog.tsx
7
+ var f = c(), p = t, m = s, h = o, g = r, _ = d.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ (0, f.jsx)(e, {
8
+ ref: r,
9
+ className: u("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80", t),
10
+ ...n
11
+ }));
12
+ _.displayName = e?.displayName || "DialogOverlay";
13
+ var v = d.forwardRef(({ className: e, children: t, ...a }, o) => /* @__PURE__ */ (0, f.jsxs)(h, { children: [/* @__PURE__ */ (0, f.jsx)(_, {}), /* @__PURE__ */ (0, f.jsxs)(i, {
14
+ ref: o,
15
+ className: u("bg-background 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg", e),
16
+ ...a,
17
+ children: [t, /* @__PURE__ */ (0, f.jsxs)(r, {
18
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",
19
+ children: [/* @__PURE__ */ (0, f.jsx)(n, { className: "h-4 w-4" }), /* @__PURE__ */ (0, f.jsx)("span", {
20
+ className: "sr-only",
21
+ children: "Close"
22
+ })]
23
+ })]
24
+ })] }));
25
+ v.displayName = i?.displayName || "DialogContent";
26
+ var y = ({ className: e, ...t }) => /* @__PURE__ */ (0, f.jsx)("div", {
27
+ className: u("flex flex-col space-y-1.5 text-center sm:text-left", e),
28
+ ...t
29
+ });
30
+ y.displayName = "DialogHeader";
31
+ var b = ({ className: e, ...t }) => /* @__PURE__ */ (0, f.jsx)("div", {
32
+ className: u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
33
+ ...t
34
+ });
35
+ b.displayName = "DialogFooter";
36
+ var x = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, f.jsx)(a, {
37
+ ref: n,
38
+ className: u("text-lg leading-none font-semibold tracking-tight", e),
39
+ ...t
40
+ }));
41
+ x.displayName = a?.displayName || "DialogTitle";
42
+ var S = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, f.jsx)(l, {
43
+ ref: n,
44
+ className: u("text-muted-foreground text-sm", e),
45
+ ...t
46
+ }));
47
+ S.displayName = l?.displayName || "DialogDescription";
48
+ //#endregion
49
+ export { p as Dialog, g as DialogClose, v as DialogContent, S as DialogDescription, b as DialogFooter, y as DialogHeader, _ as DialogOverlay, h as DialogPortal, x as DialogTitle, m as DialogTrigger };
50
+
51
+ //# sourceMappingURL=dialog.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.mjs","sources":["../packages/ui-web/src/dialog.tsx"],"sourcesContent":["'use client';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80',\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay?.displayName || 'DialogOverlay';\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content?.displayName || 'DialogContent';\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...props} />\n);\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />\n);\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title?.displayName || 'DialogTitle';\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDialogDescription.displayName = DialogPrimitive.Description?.displayName || 'DialogDescription';\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"names":["Dialog","DialogPrimitive.Root","DialogTrigger","DialogPrimitive.Trigger","DialogPortal","DialogPrimitive.Portal","DialogClose","DialogPrimitive.Close","DialogOverlay","React","className","props","ref","jsx","DialogPrimitive.Overlay","cn","DialogContent","children","jsxs","DialogPrimitive.Content","X","DialogHeader","DialogFooter","DialogTitle","DialogPrimitive.Title","DialogDescription","DialogPrimitive.Description"],"mappings":";;;;AAOA,MAAMA,IAASC,GAETC,IAAgBC,GAEhBC,IAAeC,GAEfC,IAAcC,GAEdC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAcM,GAAyB,eAAe;AAEpE,MAAME,IAAgBP,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAO,GAAU,GAAGN,EAAA,GAASC,MACpCM,gBAAAA,EAAAA,KAACd,GAAA,EACC,UAAA;AAAA,EAAAS,gBAAAA,EAAAA,IAACL,GAAA,EAAc;AAAA,EACfU,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAAP;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEH,UAAA;AAAA,QAAAM;AAAA,QACDC,gBAAAA,EAAAA,KAACX,GAAA,EAAsB,WAAU,iRAC/B,UAAA;AAAA,UAAAM,gBAAAA,EAAAA,IAACO,GAAA,EAAE,WAAU,UAAA,CAAU;AAAA,UACvBP,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,QAAA,CAAK;AAAA,QAAA,EAAA,CACjC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AACF,GACF,CACD;AACDG,EAAc,cAAcG,GAAyB,eAAe;AAEpE,MAAME,IAAe,CAAC,EAAE,WAAAX,GAAW,GAAGC,EAAA,MACpCE,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWE,EAAG,sDAAsDL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAElGU,EAAa,cAAc;AAE3B,MAAMC,IAAe,CAAC,EAAE,WAAAZ,GAAW,GAAGC,EAAA,MACpCE,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWE,EAAG,iEAAiEL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAE7GW,EAAa,cAAc;AAE3B,MAAMC,IAAcd,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACW;AAAAA,EAAA;AAAA,IACC,KAAAZ;AAAA,IACA,WAAWG,EAAG,qDAAqDL,CAAS;AAAA,IAC3E,GAAGC;AAAA,EAAA;AACN,CACD;AACDY,EAAY,cAAcC,GAAuB,eAAe;AAEhE,MAAMC,IAAoBhB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACa,GAAA,EAA4B,KAAAd,GAAU,WAAWG,EAAG,iCAAiCL,CAAS,GAAI,GAAGC,GAAO,CAC9G;AACDc,EAAkB,cAAcC,GAA6B,eAAe;"}
1
+ {"version":3,"file":"dialog.mjs","names":[],"sources":["../packages/ui-web/src/dialog.tsx"],"sourcesContent":["'use client';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80',\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay?.displayName || 'DialogOverlay';\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content?.displayName || 'DialogContent';\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...props} />\n);\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />\n);\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title?.displayName || 'DialogTitle';\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDialogDescription.displayName = DialogPrimitive.Description?.displayName || 'DialogDescription';\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":";;;;;;aAOM,IAAS,GAET,IAAgB,GAEhB,IAAe,GAEf,IAAc,GAEd,IAAgB,EAAM,YAGzB,EAAE,cAAW,GAAG,KAAS,MAC1B,iBAAA,GAAA,EAAA,KAAC,GAAD;CACO;CACL,WAAW,EACT,0JACA,EACD;CACD,GAAI;CACJ,CAAA,CACF;AACF,EAAc,cAAA,GAAuC,eAAe;AAEpE,IAAM,IAAgB,EAAM,YAGzB,EAAE,cAAW,aAAU,GAAG,KAAS,MACpC,iBAAA,GAAA,EAAA,MAAC,GAAD,EAAA,UAAA,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiB,CAAA,EACjB,iBAAA,GAAA,EAAA,MAAC,GAAD;CACO;CACL,WAAW,EACT,+fACA,EACD;CACD,GAAI;WANN,CAQG,GACD,iBAAA,GAAA,EAAA,MAAC,GAAD;EAAuB,WAAU;YAAjC,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAG,WAAU,WAAY,CAAA,EACzB,iBAAA,GAAA,EAAA,KAAC,QAAD;GAAM,WAAU;aAAU;GAAY,CAAA,CAChB;IACA;GACb,EAAA,CAAA,CACf;AACF,EAAc,cAAA,GAAuC,eAAe;AAEpE,IAAM,KAAgB,EAAE,cAAW,GAAG,QACpC,iBAAA,GAAA,EAAA,KAAC,OAAD;CAAK,WAAW,EAAG,sDAAsD,EAAU;CAAE,GAAI;CAAS,CAAA;AAEpG,EAAa,cAAc;AAE3B,IAAM,KAAgB,EAAE,cAAW,GAAG,QACpC,iBAAA,GAAA,EAAA,KAAC,OAAD;CAAK,WAAW,EAAG,iEAAiE,EAAU;CAAE,GAAI;CAAS,CAAA;AAE/G,EAAa,cAAc;AAE3B,IAAM,IAAc,EAAM,YAGvB,EAAE,cAAW,GAAG,KAAS,MAC1B,iBAAA,GAAA,EAAA,KAAC,GAAD;CACO;CACL,WAAW,EAAG,qDAAqD,EAAU;CAC7E,GAAI;CACJ,CAAA,CACF;AACF,EAAY,cAAA,GAAqC,eAAe;AAEhE,IAAM,IAAoB,EAAM,YAG7B,EAAE,cAAW,GAAG,KAAS,MAC1B,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAkC;CAAK,WAAW,EAAG,iCAAiC,EAAU;CAAE,GAAI;CAAS,CAAA,CAC/G;AACF,EAAkB,cAAA,GAA2C,eAAe"}
package/dist/drawer.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-B_07FHqh.js"),u=require("react"),s=require("./utils-CBWPs0D7.js");function p(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}return t.default=r,Object.freeze(t)}const n=p(u),l=({shouldScaleBackground:r=!0,...t})=>e.jsxRuntimeExports.jsx(e.Drawer.Root,{shouldScaleBackground:r,...t});l.displayName="Drawer";const f=e.Drawer.Trigger,c=e.Drawer.Portal,g=e.Drawer.Close,i=n.forwardRef(({className:r,...t},a)=>e.jsxRuntimeExports.jsx(e.Drawer.Overlay,{ref:a,className:s.cn("fixed inset-0 z-50 bg-black/80",r),...t}));i.displayName=e.Drawer.Overlay?.displayName||"DrawerOverlay";const x=n.forwardRef(({className:r,children:t,...a},o)=>e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(i,{}),e.jsxRuntimeExports.jsxs(e.Drawer.Content,{ref:o,className:s.cn("bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",r),...a,children:[e.jsxRuntimeExports.jsx("div",{className:"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full"}),t]})]}));x.displayName="DrawerContent";const D=({className:r,...t})=>e.jsxRuntimeExports.jsx("div",{className:s.cn("grid gap-1.5 p-4 text-center sm:text-left",r),...t});D.displayName="DrawerHeader";const d=({className:r,...t})=>e.jsxRuntimeExports.jsx("div",{className:s.cn("mt-auto flex flex-col gap-2 p-4",r),...t});d.displayName="DrawerFooter";const w=n.forwardRef(({className:r,...t},a)=>e.jsxRuntimeExports.jsx(e.Drawer.Title,{ref:a,className:s.cn("text-lg leading-none font-semibold tracking-tight",r),...t}));w.displayName=e.Drawer.Title?.displayName||"DrawerTitle";const m=n.forwardRef(({className:r,...t},a)=>e.jsxRuntimeExports.jsx(e.Drawer.Description,{ref:a,className:s.cn("text-muted-foreground text-sm",r),...t}));m.displayName=e.Drawer.Description?.displayName||"DrawerDescription";exports.Drawer=l;exports.DrawerClose=g;exports.DrawerContent=x;exports.DrawerDescription=m;exports.DrawerFooter=d;exports.DrawerHeader=D;exports.DrawerOverlay=i;exports.DrawerPortal=c;exports.DrawerTitle=w;exports.DrawerTrigger=f;
2
- //# sourceMappingURL=drawer.cjs.map
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./rolldown-runtime-CacfPODE.js`),t=require(`./vendor-D3ZzLf8D.js`),n=require(`./utils-CbSX47LV.js`);let r=require(`react`);r=e.r(r);var i=t.vr(),a=({shouldScaleBackground:e=!0,...n})=>(0,i.jsx)(t.Qt.Root,{shouldScaleBackground:e,...n});a.displayName=`Drawer`;var o=t.Qt.Trigger,s=t.Qt.Portal,c=t.Qt.Close,l=r.forwardRef(({className:e,...r},a)=>(0,i.jsx)(t.Qt.Overlay,{ref:a,className:n.t(`fixed inset-0 z-50 bg-black/80`,e),...r}));l.displayName=t.Qt.Overlay?.displayName||`DrawerOverlay`;var u=r.forwardRef(({className:e,children:r,...a},o)=>(0,i.jsxs)(s,{children:[(0,i.jsx)(l,{}),(0,i.jsxs)(t.Qt.Content,{ref:o,className:n.t(`bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border`,e),...a,children:[(0,i.jsx)(`div`,{className:`bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full`}),r]})]}));u.displayName=`DrawerContent`;var d=({className:e,...t})=>(0,i.jsx)(`div`,{className:n.t(`grid gap-1.5 p-4 text-center sm:text-left`,e),...t});d.displayName=`DrawerHeader`;var f=({className:e,...t})=>(0,i.jsx)(`div`,{className:n.t(`mt-auto flex flex-col gap-2 p-4`,e),...t});f.displayName=`DrawerFooter`;var p=r.forwardRef(({className:e,...r},a)=>(0,i.jsx)(t.Qt.Title,{ref:a,className:n.t(`text-lg leading-none font-semibold tracking-tight`,e),...r}));p.displayName=t.Qt.Title?.displayName||`DrawerTitle`;var m=r.forwardRef(({className:e,...r},a)=>(0,i.jsx)(t.Qt.Description,{ref:a,className:n.t(`text-muted-foreground text-sm`,e),...r}));m.displayName=t.Qt.Description?.displayName||`DrawerDescription`,exports.Drawer=a,exports.DrawerClose=c,exports.DrawerContent=u,exports.DrawerDescription=m,exports.DrawerFooter=f,exports.DrawerHeader=d,exports.DrawerOverlay=l,exports.DrawerPortal=s,exports.DrawerTitle=p,exports.DrawerTrigger=o;
2
+ //# sourceMappingURL=drawer.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.cjs","sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay?.displayName || 'DrawerOverlay';\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & DrawerContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerHeaderBaseProps) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerFooterBaseProps) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & DrawerTitleBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title?.displayName || 'DrawerTitle';\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & DrawerDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description?.displayName || 'DrawerDescription';\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n\nexport type {\n DrawerCloseBaseProps as DrawerCloseProps,\n DrawerContentBaseProps as DrawerContentProps,\n DrawerDescriptionBaseProps as DrawerDescriptionProps,\n DrawerFooterBaseProps as DrawerFooterProps,\n DrawerHeaderBaseProps as DrawerHeaderProps,\n DrawerBaseProps as DrawerProps,\n DrawerTitleBaseProps as DrawerTitleProps,\n DrawerTriggerBaseProps as DrawerTriggerProps,\n};\n"],"names":["Drawer","shouldScaleBackground","props","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","React","className","ref","cn","DrawerContent","children","jsxs","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":"mdAiBMA,EAAS,CAAC,CAAE,sBAAAC,EAAwB,GAAM,GAAGC,CAAA,IACjDC,EAAAA,kBAAAA,IAACC,EAAAA,OAAgB,KAAhB,CAAqB,sBAAAH,EAA+C,GAAGC,CAAA,CAAO,EAEjFF,EAAO,YAAc,SAErB,MAAMK,EAAgBD,EAAAA,OAAgB,QAEhCE,EAAeF,EAAAA,OAAgB,OAE/BG,EAAcH,EAAAA,OAAgB,MAE9BI,EAAgBC,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGR,CAAA,EAASS,IAC1BR,EAAAA,kBAAAA,IAACC,EAAAA,OAAgB,QAAhB,CAAwB,IAAAO,EAAU,UAAWC,EAAAA,GAAG,iCAAkCF,CAAS,EAAI,GAAGR,EAAO,CAC3G,EACDM,EAAc,YAAcJ,EAAAA,OAAgB,SAAS,aAAe,gBAEpE,MAAMS,EAAgBJ,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,SAAAI,EAAU,GAAGZ,CAAA,EAASS,IACpCI,EAAAA,kBAAAA,KAACT,EAAA,CACC,SAAA,CAAAH,EAAAA,kBAAAA,IAACK,EAAA,EAAc,EACfO,EAAAA,kBAAAA,KAACX,EAAAA,OAAgB,QAAhB,CACC,IAAAO,EACA,UAAWC,EAAAA,GACT,iGACAF,CAAA,EAED,GAAGR,EAEJ,SAAA,CAAAC,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAU,kDAAA,CAAmD,EACjEW,CAAA,CAAA,CAAA,CACH,EACF,CACD,EACDD,EAAc,YAAc,gBAE5B,MAAMG,EAAe,CAAC,CAAE,UAAAN,EAAW,GAAGR,CAAA,IACpCC,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAWS,EAAAA,GAAG,4CAA6CF,CAAS,EAAI,GAAGR,CAAA,CAAO,EAEzFc,EAAa,YAAc,eAE3B,MAAMC,EAAe,CAAC,CAAE,UAAAP,EAAW,GAAGR,CAAA,IACpCC,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAWS,EAAAA,GAAG,kCAAmCF,CAAS,EAAI,GAAGR,CAAA,CAAO,EAE/Ee,EAAa,YAAc,eAE3B,MAAMC,EAAcT,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGR,CAAA,EAASS,IAC1BR,EAAAA,kBAAAA,IAACC,EAAAA,OAAgB,MAAhB,CACC,IAAAO,EACA,UAAWC,EAAAA,GAAG,oDAAqDF,CAAS,EAC3E,GAAGR,CAAA,CACN,CACD,EACDgB,EAAY,YAAcd,EAAAA,OAAgB,OAAO,aAAe,cAEhE,MAAMe,EAAoBV,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,GAAGR,CAAA,EAASS,IAC1BR,EAAAA,kBAAAA,IAACC,EAAAA,OAAgB,YAAhB,CAA4B,IAAAO,EAAU,UAAWC,EAAAA,GAAG,gCAAiCF,CAAS,EAAI,GAAGR,EAAO,CAC9G,EACDiB,EAAkB,YAAcf,EAAAA,OAAgB,aAAa,aAAe"}
1
+ {"version":3,"file":"drawer.cjs","names":[],"sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay?.displayName || 'DrawerOverlay';\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & DrawerContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerHeaderBaseProps) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerFooterBaseProps) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & DrawerTitleBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title?.displayName || 'DrawerTitle';\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & DrawerDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description?.displayName || 'DrawerDescription';\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n\nexport type {\n DrawerCloseBaseProps as DrawerCloseProps,\n DrawerContentBaseProps as DrawerContentProps,\n DrawerDescriptionBaseProps as DrawerDescriptionProps,\n DrawerFooterBaseProps as DrawerFooterProps,\n DrawerHeaderBaseProps as DrawerHeaderProps,\n DrawerBaseProps as DrawerProps,\n DrawerTitleBaseProps as DrawerTitleProps,\n DrawerTriggerBaseProps as DrawerTriggerProps,\n};\n"],"mappings":"+PAiBM,GAAU,CAAE,wBAAwB,GAAM,GAAG,MACjD,EAAA,EAAA,KAAC,EAAA,GAAgB,KAAjB,CAA6C,wBAAuB,GAAI,EAAS,CAAA,CAEnF,EAAO,YAAc,SAErB,IAAM,EAAgB,EAAA,GAAgB,QAEhC,EAAe,EAAA,GAAgB,OAE/B,EAAc,EAAA,GAAgB,MAE9B,EAAgB,EAAM,YAGzB,CAAE,YAAW,GAAG,GAAS,KAC1B,EAAA,EAAA,KAAC,EAAA,GAAgB,QAAjB,CAA8B,MAAK,UAAW,EAAA,EAAG,iCAAkC,EAAU,CAAE,GAAI,EAAS,CAAA,CAC5G,CACF,EAAc,YAAc,EAAA,GAAgB,SAAS,aAAe,gBAEpE,IAAM,EAAgB,EAAM,YAGzB,CAAE,YAAW,WAAU,GAAG,GAAS,KACpC,EAAA,EAAA,MAAC,EAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,EAAD,EAAiB,CAAA,EACjB,EAAA,EAAA,MAAC,EAAA,GAAgB,QAAjB,CACO,MACL,UAAW,EAAA,EACT,iGACA,EACD,CACD,GAAI,WANN,EAQE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,mDAAqD,CAAA,CACnE,EACuB,GACb,CAAA,CAAA,CACf,CACF,EAAc,YAAc,gBAE5B,IAAM,GAAgB,CAAE,YAAW,GAAG,MACpC,EAAA,EAAA,KAAC,MAAD,CAAK,UAAW,EAAA,EAAG,4CAA6C,EAAU,CAAE,GAAI,EAAS,CAAA,CAE3F,EAAa,YAAc,eAE3B,IAAM,GAAgB,CAAE,YAAW,GAAG,MACpC,EAAA,EAAA,KAAC,MAAD,CAAK,UAAW,EAAA,EAAG,kCAAmC,EAAU,CAAE,GAAI,EAAS,CAAA,CAEjF,EAAa,YAAc,eAE3B,IAAM,EAAc,EAAM,YAGvB,CAAE,YAAW,GAAG,GAAS,KAC1B,EAAA,EAAA,KAAC,EAAA,GAAgB,MAAjB,CACO,MACL,UAAW,EAAA,EAAG,oDAAqD,EAAU,CAC7E,GAAI,EACJ,CAAA,CACF,CACF,EAAY,YAAc,EAAA,GAAgB,OAAO,aAAe,cAEhE,IAAM,EAAoB,EAAM,YAG7B,CAAE,YAAW,GAAG,GAAS,KAC1B,EAAA,EAAA,KAAC,EAAA,GAAgB,YAAjB,CAAkC,MAAK,UAAW,EAAA,EAAG,gCAAiC,EAAU,CAAE,GAAI,EAAS,CAAA,CAC/G,CACF,EAAkB,YAAc,EAAA,GAAgB,aAAa,aAAe"}
package/dist/drawer.d.ts CHANGED
@@ -1,79 +1,2 @@
1
- import { DialogCloseProps } from '@radix-ui/react-dialog';
2
- import { DialogContentProps } from '@radix-ui/react-dialog';
3
- import { DialogDescriptionProps } from '@radix-ui/react-dialog';
4
- import { DialogOverlayProps } from '@radix-ui/react-dialog';
5
- import { DialogTitleProps } from '@radix-ui/react-dialog';
6
- import { DialogTriggerProps } from '@radix-ui/react-dialog';
7
- import { Drawer as Drawer_2 } from 'vaul';
8
- import { JSX } from 'react/jsx-runtime';
9
- import { Portal } from 'vaul';
10
- import * as React_2 from 'react';
11
-
12
- export declare const Drawer: {
13
- ({ shouldScaleBackground, ...props }: React_2.ComponentProps<typeof Drawer_2.Root>): JSX.Element;
14
- displayName: string;
15
- };
16
-
17
- export declare const DrawerClose: React_2.ForwardRefExoticComponent< DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
18
-
19
- export declare interface DrawerCloseProps {
20
- children?: React_2.ReactNode;
21
- }
22
-
23
- export declare const DrawerContent: React_2.ForwardRefExoticComponent<Omit<Omit< DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & DrawerContentProps & React_2.RefAttributes<HTMLDivElement>>;
24
-
25
- export declare interface DrawerContentProps {
26
- className?: string;
27
- children?: React_2.ReactNode;
28
- }
29
-
30
- export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Omit< DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & DrawerDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>>;
31
-
32
- export declare interface DrawerDescriptionProps {
33
- className?: string;
34
- children?: React_2.ReactNode;
35
- }
36
-
37
- export declare const DrawerFooter: {
38
- ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement> & DrawerFooterProps): JSX.Element;
39
- displayName: string;
40
- };
41
-
42
- export declare interface DrawerFooterProps {
43
- className?: string;
44
- children?: React_2.ReactNode;
45
- }
46
-
47
- export declare const DrawerHeader: {
48
- ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement> & DrawerHeaderProps): JSX.Element;
49
- displayName: string;
50
- };
51
-
52
- export declare interface DrawerHeaderProps {
53
- className?: string;
54
- children?: React_2.ReactNode;
55
- }
56
-
57
- export declare const DrawerOverlay: React_2.ForwardRefExoticComponent<Omit<Omit< DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
58
-
59
- export declare const DrawerPortal: Portal;
60
-
61
- export declare interface DrawerProps {
62
- children?: React_2.ReactNode;
63
- shouldScaleBackground?: boolean;
64
- }
65
-
66
- export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit< DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & DrawerTitleProps & React_2.RefAttributes<HTMLHeadingElement>>;
67
-
68
- export declare interface DrawerTitleProps {
69
- className?: string;
70
- children?: React_2.ReactNode;
71
- }
72
-
73
- export declare const DrawerTrigger: React_2.ForwardRefExoticComponent< DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
74
-
75
- export declare interface DrawerTriggerProps {
76
- children: React_2.ReactNode;
77
- }
78
-
79
- export { }
1
+ export * from './packages/ui-web/src/drawer'
2
+ export {}
package/dist/drawer.mjs CHANGED
@@ -1,55 +1,50 @@
1
1
  "use client";
2
- import { j as t, b0 as a } from "./vendor-BQwS7aJt.mjs";
3
- import * as l from "react";
4
- import { c as o } from "./utils-Bgpn0CK0.mjs";
5
- const d = ({ shouldScaleBackground: e = !0, ...r }) => /* @__PURE__ */ t.jsx(a.Root, { shouldScaleBackground: e, ...r });
6
- d.displayName = "Drawer";
7
- const g = a.Trigger, m = a.Portal, y = a.Close, i = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(a.Overlay, { ref: s, className: o("fixed inset-0 z-50 bg-black/80", e), ...r }));
8
- i.displayName = a.Overlay?.displayName || "DrawerOverlay";
9
- const c = l.forwardRef(({ className: e, children: r, ...s }, n) => /* @__PURE__ */ t.jsxs(m, { children: [
10
- /* @__PURE__ */ t.jsx(i, {}),
11
- /* @__PURE__ */ t.jsxs(
12
- a.Content,
13
- {
14
- ref: n,
15
- className: o(
16
- "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",
17
- e
18
- ),
19
- ...s,
20
- children: [
21
- /* @__PURE__ */ t.jsx("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }),
22
- r
23
- ]
24
- }
25
- )
26
- ] }));
27
- c.displayName = "DrawerContent";
28
- const x = ({ className: e, ...r }) => /* @__PURE__ */ t.jsx("div", { className: o("grid gap-1.5 p-4 text-center sm:text-left", e), ...r });
29
- x.displayName = "DrawerHeader";
30
- const p = ({ className: e, ...r }) => /* @__PURE__ */ t.jsx("div", { className: o("mt-auto flex flex-col gap-2 p-4", e), ...r });
31
- p.displayName = "DrawerFooter";
32
- const w = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(
33
- a.Title,
34
- {
35
- ref: s,
36
- className: o("text-lg leading-none font-semibold tracking-tight", e),
37
- ...r
38
- }
39
- ));
40
- w.displayName = a.Title?.displayName || "DrawerTitle";
41
- const D = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(a.Description, { ref: s, className: o("text-muted-foreground text-sm", e), ...r }));
42
- D.displayName = a.Description?.displayName || "DrawerDescription";
43
- export {
44
- d as Drawer,
45
- y as DrawerClose,
46
- c as DrawerContent,
47
- D as DrawerDescription,
48
- p as DrawerFooter,
49
- x as DrawerHeader,
50
- i as DrawerOverlay,
51
- m as DrawerPortal,
52
- w as DrawerTitle,
53
- g as DrawerTrigger
54
- };
55
- //# sourceMappingURL=drawer.mjs.map
2
+ "use client";
3
+ import { Qt as e, vr as t } from "./vendor-Cr0eKZrm.mjs";
4
+ import { t as n } from "./utils-BtI8Nf6i.mjs";
5
+ import * as r from "react";
6
+ //#region packages/ui-web/src/drawer.tsx
7
+ var i = t(), a = ({ shouldScaleBackground: t = !0, ...n }) => /* @__PURE__ */ (0, i.jsx)(e.Root, {
8
+ shouldScaleBackground: t,
9
+ ...n
10
+ });
11
+ a.displayName = "Drawer";
12
+ var o = e.Trigger, s = e.Portal, c = e.Close, l = r.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ (0, i.jsx)(e.Overlay, {
13
+ ref: a,
14
+ className: n("fixed inset-0 z-50 bg-black/80", t),
15
+ ...r
16
+ }));
17
+ l.displayName = e.Overlay?.displayName || "DrawerOverlay";
18
+ var u = r.forwardRef(({ className: t, children: r, ...a }, o) => /* @__PURE__ */ (0, i.jsxs)(s, { children: [/* @__PURE__ */ (0, i.jsx)(l, {}), /* @__PURE__ */ (0, i.jsxs)(e.Content, {
19
+ ref: o,
20
+ className: n("bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border", t),
21
+ ...a,
22
+ children: [/* @__PURE__ */ (0, i.jsx)("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }), r]
23
+ })] }));
24
+ u.displayName = "DrawerContent";
25
+ var d = ({ className: e, ...t }) => /* @__PURE__ */ (0, i.jsx)("div", {
26
+ className: n("grid gap-1.5 p-4 text-center sm:text-left", e),
27
+ ...t
28
+ });
29
+ d.displayName = "DrawerHeader";
30
+ var f = ({ className: e, ...t }) => /* @__PURE__ */ (0, i.jsx)("div", {
31
+ className: n("mt-auto flex flex-col gap-2 p-4", e),
32
+ ...t
33
+ });
34
+ f.displayName = "DrawerFooter";
35
+ var p = r.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ (0, i.jsx)(e.Title, {
36
+ ref: a,
37
+ className: n("text-lg leading-none font-semibold tracking-tight", t),
38
+ ...r
39
+ }));
40
+ p.displayName = e.Title?.displayName || "DrawerTitle";
41
+ var m = r.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ (0, i.jsx)(e.Description, {
42
+ ref: a,
43
+ className: n("text-muted-foreground text-sm", t),
44
+ ...r
45
+ }));
46
+ m.displayName = e.Description?.displayName || "DrawerDescription";
47
+ //#endregion
48
+ export { a as Drawer, c as DrawerClose, u as DrawerContent, m as DrawerDescription, f as DrawerFooter, d as DrawerHeader, l as DrawerOverlay, s as DrawerPortal, p as DrawerTitle, o as DrawerTrigger };
49
+
50
+ //# sourceMappingURL=drawer.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.mjs","sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay?.displayName || 'DrawerOverlay';\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & DrawerContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerHeaderBaseProps) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerFooterBaseProps) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & DrawerTitleBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title?.displayName || 'DrawerTitle';\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & DrawerDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description?.displayName || 'DrawerDescription';\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n\nexport type {\n DrawerCloseBaseProps as DrawerCloseProps,\n DrawerContentBaseProps as DrawerContentProps,\n DrawerDescriptionBaseProps as DrawerDescriptionProps,\n DrawerFooterBaseProps as DrawerFooterProps,\n DrawerHeaderBaseProps as DrawerHeaderProps,\n DrawerBaseProps as DrawerProps,\n DrawerTitleBaseProps as DrawerTitleProps,\n DrawerTriggerBaseProps as DrawerTriggerProps,\n};\n"],"names":["Drawer","shouldScaleBackground","props","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","React","className","ref","cn","DrawerContent","children","jsxs","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":";;;;AAiBA,MAAMA,IAAS,CAAC,EAAE,uBAAAC,IAAwB,IAAM,GAAGC,EAAA,MACjDC,gBAAAA,EAAAA,IAACC,EAAgB,MAAhB,EAAqB,uBAAAH,GAA+C,GAAGC,EAAA,CAAO;AAEjFF,EAAO,cAAc;AAErB,MAAMK,IAAgBD,EAAgB,SAEhCE,IAAeF,EAAgB,QAE/BG,IAAcH,EAAgB,OAE9BI,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA,IAACC,EAAgB,SAAhB,EAAwB,KAAAO,GAAU,WAAWC,EAAG,kCAAkCF,CAAS,GAAI,GAAGR,GAAO,CAC3G;AACDM,EAAc,cAAcJ,EAAgB,SAAS,eAAe;AAEpE,MAAMS,IAAgBJ,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAI,GAAU,GAAGZ,EAAA,GAASS,MACpCI,gBAAAA,EAAAA,KAACT,GAAA,EACC,UAAA;AAAA,EAAAH,gBAAAA,EAAAA,IAACK,GAAA,EAAc;AAAA,EACfO,gBAAAA,EAAAA;AAAAA,IAACX,EAAgB;AAAA,IAAhB;AAAA,MACC,KAAAO;AAAA,MACA,WAAWC;AAAA,QACT;AAAA,QACAF;AAAA,MAAA;AAAA,MAED,GAAGR;AAAA,MAEJ,UAAA;AAAA,QAAAC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,mDAAA,CAAmD;AAAA,QACjEW;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AACH,GACF,CACD;AACDD,EAAc,cAAc;AAE5B,MAAMG,IAAe,CAAC,EAAE,WAAAN,GAAW,GAAGR,EAAA,MACpCC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWS,EAAG,6CAA6CF,CAAS,GAAI,GAAGR,EAAA,CAAO;AAEzFc,EAAa,cAAc;AAE3B,MAAMC,IAAe,CAAC,EAAE,WAAAP,GAAW,GAAGR,EAAA,MACpCC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWS,EAAG,mCAAmCF,CAAS,GAAI,GAAGR,EAAA,CAAO;AAE/Ee,EAAa,cAAc;AAE3B,MAAMC,IAAcT,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA;AAAAA,EAACC,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAO;AAAA,IACA,WAAWC,EAAG,qDAAqDF,CAAS;AAAA,IAC3E,GAAGR;AAAA,EAAA;AACN,CACD;AACDgB,EAAY,cAAcd,EAAgB,OAAO,eAAe;AAEhE,MAAMe,IAAoBV,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA,IAACC,EAAgB,aAAhB,EAA4B,KAAAO,GAAU,WAAWC,EAAG,iCAAiCF,CAAS,GAAI,GAAGR,GAAO,CAC9G;AACDiB,EAAkB,cAAcf,EAAgB,aAAa,eAAe;"}
1
+ {"version":3,"file":"drawer.mjs","names":[],"sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay?.displayName || 'DrawerOverlay';\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & DrawerContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerHeaderBaseProps) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerFooterBaseProps) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & DrawerTitleBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title?.displayName || 'DrawerTitle';\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & DrawerDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description?.displayName || 'DrawerDescription';\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n\nexport type {\n DrawerCloseBaseProps as DrawerCloseProps,\n DrawerContentBaseProps as DrawerContentProps,\n DrawerDescriptionBaseProps as DrawerDescriptionProps,\n DrawerFooterBaseProps as DrawerFooterProps,\n DrawerHeaderBaseProps as DrawerHeaderProps,\n DrawerBaseProps as DrawerProps,\n DrawerTitleBaseProps as DrawerTitleProps,\n DrawerTriggerBaseProps as DrawerTriggerProps,\n};\n"],"mappings":";;;;;;aAiBM,KAAU,EAAE,2BAAwB,IAAM,GAAG,QACjD,iBAAA,GAAA,EAAA,KAAC,EAAgB,MAAjB;CAA6C;CAAuB,GAAI;CAAS,CAAA;AAEnF,EAAO,cAAc;AAErB,IAAM,IAAgB,EAAgB,SAEhC,IAAe,EAAgB,QAE/B,IAAc,EAAgB,OAE9B,IAAgB,EAAM,YAGzB,EAAE,cAAW,GAAG,KAAS,MAC1B,iBAAA,GAAA,EAAA,KAAC,EAAgB,SAAjB;CAA8B;CAAK,WAAW,EAAG,kCAAkC,EAAU;CAAE,GAAI;CAAS,CAAA,CAC5G;AACF,EAAc,cAAc,EAAgB,SAAS,eAAe;AAEpE,IAAM,IAAgB,EAAM,YAGzB,EAAE,cAAW,aAAU,GAAG,KAAS,MACpC,iBAAA,GAAA,EAAA,MAAC,GAAD,EAAA,UAAA,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiB,CAAA,EACjB,iBAAA,GAAA,EAAA,MAAC,EAAgB,SAAjB;CACO;CACL,WAAW,EACT,kGACA,EACD;CACD,GAAI;WANN,CAQE,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAK,WAAU,oDAAqD,CAAA,EACnE,EACuB;GACb,EAAA,CAAA,CACf;AACF,EAAc,cAAc;AAE5B,IAAM,KAAgB,EAAE,cAAW,GAAG,QACpC,iBAAA,GAAA,EAAA,KAAC,OAAD;CAAK,WAAW,EAAG,6CAA6C,EAAU;CAAE,GAAI;CAAS,CAAA;AAE3F,EAAa,cAAc;AAE3B,IAAM,KAAgB,EAAE,cAAW,GAAG,QACpC,iBAAA,GAAA,EAAA,KAAC,OAAD;CAAK,WAAW,EAAG,mCAAmC,EAAU;CAAE,GAAI;CAAS,CAAA;AAEjF,EAAa,cAAc;AAE3B,IAAM,IAAc,EAAM,YAGvB,EAAE,cAAW,GAAG,KAAS,MAC1B,iBAAA,GAAA,EAAA,KAAC,EAAgB,OAAjB;CACO;CACL,WAAW,EAAG,qDAAqD,EAAU;CAC7E,GAAI;CACJ,CAAA,CACF;AACF,EAAY,cAAc,EAAgB,OAAO,eAAe;AAEhE,IAAM,IAAoB,EAAM,YAG7B,EAAE,cAAW,GAAG,KAAS,MAC1B,iBAAA,GAAA,EAAA,KAAC,EAAgB,aAAjB;CAAkC;CAAK,WAAW,EAAG,iCAAiC,EAAU;CAAE,GAAI;CAAS,CAAA,CAC/G;AACF,EAAkB,cAAc,EAAgB,aAAa,eAAe"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-B_07FHqh.js"),b=require("react"),r=require("./utils-CBWPs0D7.js");function g(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}return t.default=o,Object.freeze(t)}const s=g(b),j=e.Root2$7,D=e.Trigger$6,M=e.Group2$2,h=e.Portal2$3,R=e.Sub2$2,y=e.RadioGroup2$2,i=s.forwardRef(({className:o,inset:t,children:n,...a},d)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2$2,{ref:d,className:r.cn("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",o),...a,children:[n,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto"})]}));i.displayName=e.SubTrigger2$2?.displayName||"DropdownMenuSubTrigger";const u=s.forwardRef(({className:o,...t},n)=>e.jsxRuntimeExports.jsx(e.SubContent2$2,{ref:n,className:r.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",o),...t}));u.displayName=e.SubContent2$2?.displayName||"DropdownMenuSubContent";const p=s.forwardRef(({className:o,sideOffset:t=4,...n},a)=>e.jsxRuntimeExports.jsx(e.Portal2$3,{children:e.jsxRuntimeExports.jsx(e.Content2$6,{ref:a,sideOffset:t,className:r.cn("bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",o),...n})}));p.displayName=e.Content2$6?.displayName||"DropdownMenuContent";const c=s.forwardRef(({className:o,inset:t,...n},a)=>e.jsxRuntimeExports.jsx(e.Item2$2,{ref:a,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",o),...n}));c.displayName=e.Item2$2?.displayName||"DropdownMenuItem";const l=s.forwardRef(({className:o,children:t,checked:n,...a},d)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2$2,{ref:d,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:n,...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$2,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),t]}));l.displayName=e.CheckboxItem2$2?.displayName||"DropdownMenuCheckboxItem";const m=s.forwardRef(({className:o,children:t,...n},a)=>e.jsxRuntimeExports.jsxs(e.RadioItem2$2,{ref:a,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...n,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$2,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));m.displayName=e.RadioItem2$2?.displayName||"DropdownMenuRadioItem";const x=s.forwardRef(({className:o,inset:t,...n},a)=>e.jsxRuntimeExports.jsx(e.Label2$2,{ref:a,className:r.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",o),...n}));x.displayName=e.Label2$2?.displayName||"DropdownMenuLabel";const f=s.forwardRef(({className:o,...t},n)=>e.jsxRuntimeExports.jsx(e.Separator2$2,{ref:n,className:r.cn("bg-muted -mx-1 my-1 h-px",o),...t}));f.displayName=e.Separator2$2?.displayName||"DropdownMenuSeparator";const w=({className:o,...t})=>e.jsxRuntimeExports.jsx("span",{className:r.cn("ml-auto text-xs tracking-widest opacity-60",o),...t});w.displayName="DropdownMenuShortcut";exports.DropdownMenu=j;exports.DropdownMenuCheckboxItem=l;exports.DropdownMenuContent=p;exports.DropdownMenuGroup=M;exports.DropdownMenuItem=c;exports.DropdownMenuLabel=x;exports.DropdownMenuPortal=h;exports.DropdownMenuRadioGroup=y;exports.DropdownMenuRadioItem=m;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=w;exports.DropdownMenuSub=R;exports.DropdownMenuSubContent=u;exports.DropdownMenuSubTrigger=i;exports.DropdownMenuTrigger=D;
2
- //# sourceMappingURL=dropdown-menu.cjs.map
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./rolldown-runtime-CacfPODE.js`),t=require(`./vendor-D3ZzLf8D.js`),n=require(`./utils-CbSX47LV.js`);let r=require(`react`);r=e.r(r);var i=t.vr(),a=t.Kt,o=t.Zt,s=t.zt,c=t.Ut,l=t.Jt,u=t.Wt,d=r.forwardRef(({className:e,inset:r,children:a,...o},s)=>(0,i.jsxs)(t.Xt,{ref:s,className:n.t(`focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,r&&`pl-8`,e),...o,children:[a,(0,i.jsx)(t.rr,{className:`ml-auto`})]}));d.displayName=t.Xt?.displayName||`DropdownMenuSubTrigger`;var f=r.forwardRef(({className:e,...r},a)=>(0,i.jsx)(t.Yt,{ref: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 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg`,e),...r}));f.displayName=t.Yt?.displayName||`DropdownMenuSubContent`;var p=r.forwardRef(({className:e,sideOffset:r=4,...a},o)=>(0,i.jsx)(t.Ut,{children:(0,i.jsx)(t.Rt,{ref:o,sideOffset:r,className:n.t(`bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]`,e),...a})}));p.displayName=t.Rt?.displayName||`DropdownMenuContent`;var m=r.forwardRef(({className:e,inset:r,...a},o)=>(0,i.jsx)(t.Bt,{ref:o,className:n.t(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0`,r&&`pl-8`,e),...a}));m.displayName=t.Bt?.displayName||`DropdownMenuItem`;var h=r.forwardRef(({className:e,children:r,checked:a,...o},s)=>(0,i.jsxs)(t.Lt,{ref:s,className:n.t(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:a,...o,children:[(0,i.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,i.jsx)(t.Vt,{children:(0,i.jsx)(t.or,{className:`h-4 w-4`})})}),r]}));h.displayName=t.Lt?.displayName||`DropdownMenuCheckboxItem`;var g=r.forwardRef(({className:e,children:r,...a},o)=>(0,i.jsxs)(t.Gt,{ref:o,className:n.t(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...a,children:[(0,i.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,i.jsx)(t.Vt,{children:(0,i.jsx)(t.tr,{className:`h-2 w-2 fill-current`})})}),r]}));g.displayName=t.Gt?.displayName||`DropdownMenuRadioItem`;var _=r.forwardRef(({className:e,inset:r,...a},o)=>(0,i.jsx)(t.Ht,{ref:o,className:n.t(`px-2 py-1.5 text-sm font-semibold`,r&&`pl-8`,e),...a}));_.displayName=t.Ht?.displayName||`DropdownMenuLabel`;var v=r.forwardRef(({className:e,...r},a)=>(0,i.jsx)(t.qt,{ref:a,className:n.t(`bg-muted -mx-1 my-1 h-px`,e),...r}));v.displayName=t.qt?.displayName||`DropdownMenuSeparator`;var y=({className:e,...t})=>(0,i.jsx)(`span`,{className:n.t(`ml-auto text-xs tracking-widest opacity-60`,e),...t});y.displayName=`DropdownMenuShortcut`,exports.DropdownMenu=a,exports.DropdownMenuCheckboxItem=h,exports.DropdownMenuContent=p,exports.DropdownMenuGroup=s,exports.DropdownMenuItem=m,exports.DropdownMenuLabel=_,exports.DropdownMenuPortal=c,exports.DropdownMenuRadioGroup=u,exports.DropdownMenuRadioItem=g,exports.DropdownMenuSeparator=v,exports.DropdownMenuShortcut=y,exports.DropdownMenuSub=l,exports.DropdownMenuSubContent=f,exports.DropdownMenuSubTrigger=d,exports.DropdownMenuTrigger=o;
2
+ //# sourceMappingURL=dropdown-menu.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.cjs","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger?.displayName || 'DropdownMenuSubTrigger';\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent?.displayName || 'DropdownMenuSubContent';\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content?.displayName || 'DropdownMenuContent';\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item?.displayName || 'DropdownMenuItem';\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem?.displayName || 'DropdownMenuCheckboxItem';\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem?.displayName || 'DropdownMenuRadioItem';\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label?.displayName || 'DropdownMenuLabel';\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator?.displayName || 'DropdownMenuSeparator';\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":"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"}
1
+ {"version":3,"file":"dropdown-menu.cjs","names":[],"sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger?.displayName || 'DropdownMenuSubTrigger';\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent?.displayName || 'DropdownMenuSubContent';\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content?.displayName || 'DropdownMenuContent';\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item?.displayName || 'DropdownMenuItem';\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem?.displayName || 'DropdownMenuCheckboxItem';\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem?.displayName || 'DropdownMenuRadioItem';\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label?.displayName || 'DropdownMenuLabel';\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator?.displayName || 'DropdownMenuSeparator';\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"mappings":"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"}