@codefast/ui 0.1.20 → 0.1.21

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 (359) hide show
  1. package/dist/chunk-2BOV4A4G.js +2 -0
  2. package/dist/chunk-2BOV4A4G.js.map +1 -0
  3. package/dist/{chunk-RWA3QEPS.cjs → chunk-2IRDKVJU.cjs} +2 -2
  4. package/dist/{chunk-RWA3QEPS.cjs.map → chunk-2IRDKVJU.cjs.map} +1 -1
  5. package/dist/chunk-2KDOL6JK.js +2 -0
  6. package/dist/chunk-2KDOL6JK.js.map +1 -0
  7. package/dist/{chunk-NPEECU2B.js → chunk-2MN6UCGF.js} +2 -2
  8. package/dist/{chunk-BWL3YKWA.js → chunk-2X5GFNCW.js} +2 -2
  9. package/dist/{chunk-BWL3YKWA.js.map → chunk-2X5GFNCW.js.map} +1 -1
  10. package/dist/chunk-2YAO54VP.cjs +2 -0
  11. package/dist/chunk-2YAO54VP.cjs.map +1 -0
  12. package/dist/chunk-3FXWAIIA.js +2 -0
  13. package/dist/chunk-3FXWAIIA.js.map +1 -0
  14. package/dist/chunk-3MVD2CPE.js +2 -0
  15. package/dist/chunk-3MVD2CPE.js.map +1 -0
  16. package/dist/chunk-4HF73HU3.js +2 -0
  17. package/dist/{chunk-RCCVQI3Z.js.map → chunk-4HF73HU3.js.map} +1 -1
  18. package/dist/{chunk-F5F6O3D5.cjs → chunk-5RJ5LTZ6.cjs} +2 -2
  19. package/dist/chunk-5RJ5LTZ6.cjs.map +1 -0
  20. package/dist/chunk-6IEU7POX.js +2 -0
  21. package/dist/chunk-6IEU7POX.js.map +1 -0
  22. package/dist/chunk-6KCWONMD.js +2 -0
  23. package/dist/chunk-6KCWONMD.js.map +1 -0
  24. package/dist/chunk-6Q7HOM76.cjs +2 -0
  25. package/dist/chunk-6Q7HOM76.cjs.map +1 -0
  26. package/dist/{chunk-33V2XGLI.cjs → chunk-6YIWH75Y.cjs} +2 -2
  27. package/dist/{chunk-33V2XGLI.cjs.map → chunk-6YIWH75Y.cjs.map} +1 -1
  28. package/dist/{chunk-5XXQ7RTM.js → chunk-7WYIHAYQ.js} +2 -2
  29. package/dist/chunk-B3VWIEJF.js +2 -0
  30. package/dist/chunk-B3VWIEJF.js.map +1 -0
  31. package/dist/{chunk-MRZB4R6Z.js → chunk-BADGC4CY.js} +2 -2
  32. package/dist/chunk-BZNN4WIL.cjs +2 -0
  33. package/dist/chunk-BZNN4WIL.cjs.map +1 -0
  34. package/dist/chunk-C6E3UVXX.cjs +2 -0
  35. package/dist/chunk-C6E3UVXX.cjs.map +1 -0
  36. package/dist/{chunk-FQPMFTE4.js → chunk-DJDQX4V5.js} +2 -2
  37. package/dist/{chunk-3ZZOML7E.js → chunk-DPD7GJTH.js} +2 -2
  38. package/dist/{chunk-5Y6DUITP.cjs → chunk-DUNZ2Z7H.cjs} +2 -2
  39. package/dist/{chunk-5Y6DUITP.cjs.map → chunk-DUNZ2Z7H.cjs.map} +1 -1
  40. package/dist/chunk-EGLLUNUY.cjs +2 -0
  41. package/dist/chunk-EGLLUNUY.cjs.map +1 -0
  42. package/dist/chunk-EH4A6S3O.cjs +2 -0
  43. package/dist/chunk-EH4A6S3O.cjs.map +1 -0
  44. package/dist/{chunk-4FKRMH2S.js → chunk-EJEWZKPN.js} +2 -2
  45. package/dist/{chunk-4FKRMH2S.js.map → chunk-EJEWZKPN.js.map} +1 -1
  46. package/dist/chunk-FYEPKIMG.js +2 -0
  47. package/dist/chunk-FYEPKIMG.js.map +1 -0
  48. package/dist/chunk-GE674IVK.cjs +2 -0
  49. package/dist/chunk-GE674IVK.cjs.map +1 -0
  50. package/dist/chunk-GIHNJORJ.js +2 -0
  51. package/dist/{chunk-GWEGZ2QH.js.map → chunk-GIHNJORJ.js.map} +1 -1
  52. package/dist/chunk-H7XQ4JYS.cjs +2 -0
  53. package/dist/chunk-H7XQ4JYS.cjs.map +1 -0
  54. package/dist/{chunk-H5SE3KBD.cjs → chunk-IJW7GWXR.cjs} +2 -2
  55. package/dist/{chunk-H5SE3KBD.cjs.map → chunk-IJW7GWXR.cjs.map} +1 -1
  56. package/dist/{chunk-QEOHBJV3.js → chunk-INCSJVVL.js} +2 -2
  57. package/dist/chunk-IRBEERLA.js +2 -0
  58. package/dist/{chunk-JBCEUDLB.js.map → chunk-IRBEERLA.js.map} +1 -1
  59. package/dist/{chunk-TANP5ZDB.js → chunk-IWG6X2SD.js} +2 -2
  60. package/dist/{chunk-ZWEHDD6X.js → chunk-IYZTIFXF.js} +2 -2
  61. package/dist/{chunk-ZWEHDD6X.js.map → chunk-IYZTIFXF.js.map} +1 -1
  62. package/dist/{chunk-3DGNWACF.cjs → chunk-J7FGX6H2.cjs} +2 -2
  63. package/dist/{chunk-3DGNWACF.cjs.map → chunk-J7FGX6H2.cjs.map} +1 -1
  64. package/dist/chunk-KFO65JY6.cjs +2 -0
  65. package/dist/chunk-KFO65JY6.cjs.map +1 -0
  66. package/dist/chunk-KRWI4MAU.js +2 -0
  67. package/dist/chunk-KRWI4MAU.js.map +1 -0
  68. package/dist/chunk-KVTZENFO.cjs +2 -0
  69. package/dist/chunk-KVTZENFO.cjs.map +1 -0
  70. package/dist/chunk-LRWHAPSJ.js +2 -0
  71. package/dist/chunk-LRWHAPSJ.js.map +1 -0
  72. package/dist/chunk-LZFPR2JG.cjs +2 -0
  73. package/dist/chunk-LZFPR2JG.cjs.map +1 -0
  74. package/dist/{chunk-A7FWGD2Z.cjs → chunk-MAEITZCL.cjs} +2 -2
  75. package/dist/{chunk-A7FWGD2Z.cjs.map → chunk-MAEITZCL.cjs.map} +1 -1
  76. package/dist/chunk-MCFDUVT3.cjs +2 -0
  77. package/dist/chunk-MCFDUVT3.cjs.map +1 -0
  78. package/dist/chunk-MWSUDI2A.js +2 -0
  79. package/dist/chunk-MWSUDI2A.js.map +1 -0
  80. package/dist/{chunk-VLFXFW4I.cjs → chunk-MZI4BNIN.cjs} +2 -2
  81. package/dist/{chunk-VLFXFW4I.cjs.map → chunk-MZI4BNIN.cjs.map} +1 -1
  82. package/dist/{chunk-HQOVVTVS.cjs → chunk-N3HBLPLP.cjs} +2 -2
  83. package/dist/chunk-N3HBLPLP.cjs.map +1 -0
  84. package/dist/{chunk-WGG6JMMQ.cjs → chunk-N4HX6TT3.cjs} +2 -2
  85. package/dist/{chunk-WGG6JMMQ.cjs.map → chunk-N4HX6TT3.cjs.map} +1 -1
  86. package/dist/{chunk-ETORSGGH.js → chunk-NGYSBNP2.js} +2 -2
  87. package/dist/chunk-NX7MVV7C.js +2 -0
  88. package/dist/chunk-NX7MVV7C.js.map +1 -0
  89. package/dist/chunk-O7TVS4CD.cjs +2 -0
  90. package/dist/chunk-O7TVS4CD.cjs.map +1 -0
  91. package/dist/chunk-OH6IE6MT.cjs +2 -0
  92. package/dist/chunk-OH6IE6MT.cjs.map +1 -0
  93. package/dist/chunk-P6NXSEID.cjs +2 -0
  94. package/dist/chunk-P6NXSEID.cjs.map +1 -0
  95. package/dist/{chunk-PCOYLJQH.js → chunk-PDE4TOIX.js} +2 -2
  96. package/dist/chunk-Q24IN4S4.cjs +2 -0
  97. package/dist/chunk-Q24IN4S4.cjs.map +1 -0
  98. package/dist/chunk-REACMCOQ.cjs +2 -0
  99. package/dist/chunk-REACMCOQ.cjs.map +1 -0
  100. package/dist/chunk-RJCAVOYF.js +2 -0
  101. package/dist/chunk-RJCAVOYF.js.map +1 -0
  102. package/dist/{chunk-3K2OLOVI.cjs → chunk-RURQVB5B.cjs} +2 -2
  103. package/dist/{chunk-3K2OLOVI.cjs.map → chunk-RURQVB5B.cjs.map} +1 -1
  104. package/dist/{chunk-OK3C6FAV.cjs → chunk-SL3YFV7H.cjs} +2 -2
  105. package/dist/{chunk-OK3C6FAV.cjs.map → chunk-SL3YFV7H.cjs.map} +1 -1
  106. package/dist/{chunk-WJ37XF2O.js → chunk-SPN2HONA.js} +2 -2
  107. package/dist/chunk-TDKU4KVM.js +2 -0
  108. package/dist/chunk-TDKU4KVM.js.map +1 -0
  109. package/dist/{chunk-XQVSJ3PK.cjs → chunk-TIVD7JJS.cjs} +2 -2
  110. package/dist/{chunk-XQVSJ3PK.cjs.map → chunk-TIVD7JJS.cjs.map} +1 -1
  111. package/dist/{chunk-SJ2UJKZ7.cjs → chunk-UIHVYXMG.cjs} +2 -2
  112. package/dist/{chunk-SJ2UJKZ7.cjs.map → chunk-UIHVYXMG.cjs.map} +1 -1
  113. package/dist/{chunk-IIVGEI3E.cjs → chunk-V322CYB6.cjs} +2 -2
  114. package/dist/{chunk-IIVGEI3E.cjs.map → chunk-V322CYB6.cjs.map} +1 -1
  115. package/dist/chunk-VDMU5GJJ.js +2 -0
  116. package/dist/{chunk-WRP3WKCE.js.map → chunk-VDMU5GJJ.js.map} +1 -1
  117. package/dist/{chunk-K7NTUTW6.cjs → chunk-VJ3SFEZD.cjs} +2 -2
  118. package/dist/{chunk-K7NTUTW6.cjs.map → chunk-VJ3SFEZD.cjs.map} +1 -1
  119. package/dist/chunk-VUK4ZNSM.js +2 -0
  120. package/dist/chunk-VUK4ZNSM.js.map +1 -0
  121. package/dist/{chunk-MOZHRREF.cjs → chunk-WOJPCIN5.cjs} +2 -2
  122. package/dist/{chunk-MOZHRREF.cjs.map → chunk-WOJPCIN5.cjs.map} +1 -1
  123. package/dist/{chunk-E2HZJBOZ.cjs → chunk-WY5Z2QWC.cjs} +2 -2
  124. package/dist/{chunk-E2HZJBOZ.cjs.map → chunk-WY5Z2QWC.cjs.map} +1 -1
  125. package/dist/chunk-X3Z5I5W6.cjs +2 -0
  126. package/dist/chunk-X3Z5I5W6.cjs.map +1 -0
  127. package/dist/{chunk-KFCKMAKF.js → chunk-XQHWOIMT.js} +2 -2
  128. package/dist/chunk-Y7RTX3NJ.js +2 -0
  129. package/dist/chunk-Y7RTX3NJ.js.map +1 -0
  130. package/dist/chunk-YRNCHCDC.js +2 -0
  131. package/dist/chunk-YRNCHCDC.js.map +1 -0
  132. package/dist/chunk-YTL2XRYT.js +2 -0
  133. package/dist/chunk-YTL2XRYT.js.map +1 -0
  134. package/dist/{chunk-SCIIFQNU.cjs → chunk-ZHYV5PXF.cjs} +2 -2
  135. package/dist/{chunk-SCIIFQNU.cjs.map → chunk-ZHYV5PXF.cjs.map} +1 -1
  136. package/dist/chunk-ZIHGQQNK.js +2 -0
  137. package/dist/chunk-ZIHGQQNK.js.map +1 -0
  138. package/dist/chunk-ZUZ5HAAS.js +2 -0
  139. package/dist/chunk-ZUZ5HAAS.js.map +1 -0
  140. package/dist/chunk-ZZQZGZIQ.cjs +2 -0
  141. package/dist/{chunk-A7DXIEKG.js.map → chunk-ZZQZGZIQ.cjs.map} +1 -1
  142. package/dist/components/alert-dialog.cjs +1 -1
  143. package/dist/components/alert-dialog.js +1 -1
  144. package/dist/components/badge.cjs +1 -1
  145. package/dist/components/badge.d.cts +35 -35
  146. package/dist/components/badge.d.ts +35 -35
  147. package/dist/components/badge.js +1 -1
  148. package/dist/components/breadcrumb.cjs +1 -1
  149. package/dist/components/breadcrumb.js +1 -1
  150. package/dist/components/button.cjs +1 -1
  151. package/dist/components/button.d.cts +2 -0
  152. package/dist/components/button.d.ts +2 -0
  153. package/dist/components/button.js +1 -1
  154. package/dist/components/calendar.cjs +1 -1
  155. package/dist/components/calendar.js +1 -1
  156. package/dist/components/card.cjs +1 -1
  157. package/dist/components/card.js +1 -1
  158. package/dist/components/carousel.cjs +1 -1
  159. package/dist/components/carousel.js +1 -1
  160. package/dist/components/checkbox-cards.cjs +1 -1
  161. package/dist/components/checkbox-cards.js +1 -1
  162. package/dist/components/checkbox-group.cjs +1 -1
  163. package/dist/components/checkbox-group.js +1 -1
  164. package/dist/components/checkbox.cjs +1 -1
  165. package/dist/components/checkbox.js +1 -1
  166. package/dist/components/command.cjs +1 -1
  167. package/dist/components/command.js +1 -1
  168. package/dist/components/context-menu.cjs +1 -1
  169. package/dist/components/context-menu.js +1 -1
  170. package/dist/components/data-table.cjs +1 -1
  171. package/dist/components/data-table.js +1 -1
  172. package/dist/components/dialog.cjs +1 -1
  173. package/dist/components/dialog.js +1 -1
  174. package/dist/components/drawer.cjs +1 -1
  175. package/dist/components/drawer.js +1 -1
  176. package/dist/components/dropdown-menu.cjs +1 -1
  177. package/dist/components/dropdown-menu.js +1 -1
  178. package/dist/components/form.cjs +1 -1
  179. package/dist/components/form.js +1 -1
  180. package/dist/components/input-otp.cjs +1 -1
  181. package/dist/components/input-otp.js +1 -1
  182. package/dist/components/menubar.cjs +1 -1
  183. package/dist/components/menubar.js +1 -1
  184. package/dist/components/navigation-menu.cjs +1 -1
  185. package/dist/components/navigation-menu.js +1 -1
  186. package/dist/components/number-input.cjs +1 -1
  187. package/dist/components/number-input.cjs.map +1 -1
  188. package/dist/components/number-input.js +1 -1
  189. package/dist/components/pagination.cjs +1 -1
  190. package/dist/components/pagination.js +1 -1
  191. package/dist/components/password-input.cjs +2 -0
  192. package/dist/components/password-input.cjs.map +1 -0
  193. package/dist/components/password-input.d.cts +11 -0
  194. package/dist/components/password-input.d.ts +11 -0
  195. package/dist/components/password-input.js +2 -0
  196. package/dist/components/radio-group.cjs +1 -1
  197. package/dist/components/radio-group.js +1 -1
  198. package/dist/components/radio.cjs +1 -1
  199. package/dist/components/radio.js +1 -1
  200. package/dist/components/resizable.cjs +1 -1
  201. package/dist/components/resizable.js +1 -1
  202. package/dist/components/select.cjs +1 -1
  203. package/dist/components/select.js +1 -1
  204. package/dist/components/sheet.cjs +1 -1
  205. package/dist/components/sheet.js +1 -1
  206. package/dist/components/slider.cjs +1 -1
  207. package/dist/components/slider.js +1 -1
  208. package/dist/components/switch.cjs +1 -1
  209. package/dist/components/switch.js +1 -1
  210. package/dist/components/tabs.cjs +1 -1
  211. package/dist/components/tabs.js +1 -1
  212. package/dist/components/text-input.cjs +1 -1
  213. package/dist/components/text-input.d.cts +0 -4
  214. package/dist/components/text-input.d.ts +0 -4
  215. package/dist/components/text-input.js +1 -1
  216. package/dist/components/textarea.cjs +1 -1
  217. package/dist/components/textarea.d.cts +1 -64
  218. package/dist/components/textarea.d.ts +1 -64
  219. package/dist/components/textarea.js +1 -1
  220. package/dist/components/toggle-group.cjs +1 -1
  221. package/dist/components/toggle-group.js +1 -1
  222. package/dist/components/toggle.cjs +1 -1
  223. package/dist/components/toggle.js +1 -1
  224. package/dist/index.cjs +1 -1
  225. package/dist/index.cjs.map +1 -1
  226. package/dist/index.d.cts +2 -1
  227. package/dist/index.d.ts +2 -1
  228. package/dist/index.js +1 -1
  229. package/dist/styles/button-variants.cjs +1 -1
  230. package/dist/styles/button-variants.d.cts +63 -63
  231. package/dist/styles/button-variants.d.ts +63 -63
  232. package/dist/styles/button-variants.js +1 -1
  233. package/dist/styles/input-variants.cjs +1 -1
  234. package/dist/styles/input-variants.js +1 -1
  235. package/dist/styles/toggle-variants.cjs +1 -1
  236. package/dist/styles/toggle-variants.d.cts +56 -56
  237. package/dist/styles/toggle-variants.d.ts +56 -56
  238. package/dist/styles/toggle-variants.js +1 -1
  239. package/package.json +44 -33
  240. package/dist/chunk-3SIRN755.js +0 -2
  241. package/dist/chunk-3SIRN755.js.map +0 -1
  242. package/dist/chunk-4K3DJLPZ.js +0 -1
  243. package/dist/chunk-4VSWFKPG.js +0 -2
  244. package/dist/chunk-4VSWFKPG.js.map +0 -1
  245. package/dist/chunk-5IH3NQEZ.js +0 -2
  246. package/dist/chunk-5IH3NQEZ.js.map +0 -1
  247. package/dist/chunk-5JIVDHL5.cjs +0 -2
  248. package/dist/chunk-5JIVDHL5.cjs.map +0 -1
  249. package/dist/chunk-5SBCSCS4.js +0 -2
  250. package/dist/chunk-5SBCSCS4.js.map +0 -1
  251. package/dist/chunk-7WITWMOJ.js +0 -2
  252. package/dist/chunk-7WITWMOJ.js.map +0 -1
  253. package/dist/chunk-A7DXIEKG.js +0 -2
  254. package/dist/chunk-AKXCF7X4.js +0 -2
  255. package/dist/chunk-AKXCF7X4.js.map +0 -1
  256. package/dist/chunk-B4OHWSDO.cjs +0 -2
  257. package/dist/chunk-B4OHWSDO.cjs.map +0 -1
  258. package/dist/chunk-B52E7NEF.cjs +0 -2
  259. package/dist/chunk-B52E7NEF.cjs.map +0 -1
  260. package/dist/chunk-CP6FV6U7.cjs +0 -2
  261. package/dist/chunk-CP6FV6U7.cjs.map +0 -1
  262. package/dist/chunk-CSM4BPHK.js +0 -2
  263. package/dist/chunk-CSM4BPHK.js.map +0 -1
  264. package/dist/chunk-DLHI7J72.cjs +0 -2
  265. package/dist/chunk-DLHI7J72.cjs.map +0 -1
  266. package/dist/chunk-DW2IZEQA.js +0 -2
  267. package/dist/chunk-DW2IZEQA.js.map +0 -1
  268. package/dist/chunk-F5F6O3D5.cjs.map +0 -1
  269. package/dist/chunk-FLTWEYQD.js +0 -2
  270. package/dist/chunk-FLTWEYQD.js.map +0 -1
  271. package/dist/chunk-GKOMMZKX.js +0 -2
  272. package/dist/chunk-GKOMMZKX.js.map +0 -1
  273. package/dist/chunk-GWEGZ2QH.js +0 -2
  274. package/dist/chunk-GZWZ3C2B.js +0 -2
  275. package/dist/chunk-GZWZ3C2B.js.map +0 -1
  276. package/dist/chunk-H5VHJLP5.cjs +0 -2
  277. package/dist/chunk-H5VHJLP5.cjs.map +0 -1
  278. package/dist/chunk-HCEUWPKV.js +0 -2
  279. package/dist/chunk-HCEUWPKV.js.map +0 -1
  280. package/dist/chunk-HEAE7KLN.cjs +0 -1
  281. package/dist/chunk-HEAE7KLN.cjs.map +0 -1
  282. package/dist/chunk-HQOVVTVS.cjs.map +0 -1
  283. package/dist/chunk-J6XTK2WS.js +0 -2
  284. package/dist/chunk-J6XTK2WS.js.map +0 -1
  285. package/dist/chunk-JBCEUDLB.js +0 -2
  286. package/dist/chunk-LOSASTV7.js +0 -2
  287. package/dist/chunk-LOSASTV7.js.map +0 -1
  288. package/dist/chunk-LRNJOAZY.cjs +0 -2
  289. package/dist/chunk-LRNJOAZY.cjs.map +0 -1
  290. package/dist/chunk-LYGIOGWR.cjs +0 -2
  291. package/dist/chunk-LYGIOGWR.cjs.map +0 -1
  292. package/dist/chunk-MF35727P.cjs +0 -2
  293. package/dist/chunk-MF35727P.cjs.map +0 -1
  294. package/dist/chunk-NCCK3ADO.js +0 -1
  295. package/dist/chunk-NCCK3ADO.js.map +0 -1
  296. package/dist/chunk-NU7HKH25.cjs +0 -2
  297. package/dist/chunk-NU7HKH25.cjs.map +0 -1
  298. package/dist/chunk-OQOAQWCY.cjs +0 -2
  299. package/dist/chunk-OQOAQWCY.cjs.map +0 -1
  300. package/dist/chunk-OYGDN6OK.js +0 -2
  301. package/dist/chunk-OYGDN6OK.js.map +0 -1
  302. package/dist/chunk-PFD7T33H.js +0 -2
  303. package/dist/chunk-PFD7T33H.js.map +0 -1
  304. package/dist/chunk-PUI3QPHI.js +0 -1
  305. package/dist/chunk-PUI3QPHI.js.map +0 -1
  306. package/dist/chunk-RCCVQI3Z.js +0 -2
  307. package/dist/chunk-SAKZLC4F.cjs +0 -2
  308. package/dist/chunk-SAKZLC4F.cjs.map +0 -1
  309. package/dist/chunk-T7TNKVNH.cjs +0 -2
  310. package/dist/chunk-T7TNKVNH.cjs.map +0 -1
  311. package/dist/chunk-TULN5SP4.cjs +0 -2
  312. package/dist/chunk-TULN5SP4.cjs.map +0 -1
  313. package/dist/chunk-U5IMPLGI.cjs +0 -2
  314. package/dist/chunk-U5IMPLGI.cjs.map +0 -1
  315. package/dist/chunk-VLCXHXEZ.cjs +0 -2
  316. package/dist/chunk-VLCXHXEZ.cjs.map +0 -1
  317. package/dist/chunk-WAEG45LP.cjs +0 -1
  318. package/dist/chunk-WAEG45LP.cjs.map +0 -1
  319. package/dist/chunk-WN3BBM3J.js +0 -2
  320. package/dist/chunk-WN3BBM3J.js.map +0 -1
  321. package/dist/chunk-WRP3WKCE.js +0 -2
  322. package/dist/chunk-Y3RT7JPO.cjs +0 -1
  323. package/dist/chunk-Y3RT7JPO.cjs.map +0 -1
  324. package/dist/chunk-YAXL5WDP.js +0 -2
  325. package/dist/chunk-YAXL5WDP.js.map +0 -1
  326. package/dist/chunk-Z7RLTZPA.cjs +0 -2
  327. package/dist/chunk-Z7RLTZPA.cjs.map +0 -1
  328. package/dist/chunk-ZUTAHYK4.cjs +0 -2
  329. package/dist/chunk-ZUTAHYK4.cjs.map +0 -1
  330. package/dist/components/index.cjs +0 -2
  331. package/dist/components/index.cjs.map +0 -1
  332. package/dist/components/index.d.cts +0 -109
  333. package/dist/components/index.d.ts +0 -109
  334. package/dist/components/index.js +0 -2
  335. package/dist/components/index.js.map +0 -1
  336. package/dist/lib/index.cjs +0 -2
  337. package/dist/lib/index.cjs.map +0 -1
  338. package/dist/lib/index.d.cts +0 -2
  339. package/dist/lib/index.d.ts +0 -2
  340. package/dist/lib/index.js +0 -2
  341. package/dist/lib/index.js.map +0 -1
  342. package/dist/styles/index.cjs +0 -2
  343. package/dist/styles/index.cjs.map +0 -1
  344. package/dist/styles/index.d.cts +0 -5
  345. package/dist/styles/index.d.ts +0 -5
  346. package/dist/styles/index.js +0 -2
  347. package/dist/styles/index.js.map +0 -1
  348. /package/dist/{chunk-NPEECU2B.js.map → chunk-2MN6UCGF.js.map} +0 -0
  349. /package/dist/{chunk-5XXQ7RTM.js.map → chunk-7WYIHAYQ.js.map} +0 -0
  350. /package/dist/{chunk-MRZB4R6Z.js.map → chunk-BADGC4CY.js.map} +0 -0
  351. /package/dist/{chunk-FQPMFTE4.js.map → chunk-DJDQX4V5.js.map} +0 -0
  352. /package/dist/{chunk-3ZZOML7E.js.map → chunk-DPD7GJTH.js.map} +0 -0
  353. /package/dist/{chunk-QEOHBJV3.js.map → chunk-INCSJVVL.js.map} +0 -0
  354. /package/dist/{chunk-TANP5ZDB.js.map → chunk-IWG6X2SD.js.map} +0 -0
  355. /package/dist/{chunk-ETORSGGH.js.map → chunk-NGYSBNP2.js.map} +0 -0
  356. /package/dist/{chunk-PCOYLJQH.js.map → chunk-PDE4TOIX.js.map} +0 -0
  357. /package/dist/{chunk-WJ37XF2O.js.map → chunk-SPN2HONA.js.map} +0 -0
  358. /package/dist/{chunk-KFCKMAKF.js.map → chunk-XQHWOIMT.js.map} +0 -0
  359. /package/dist/{chunk-4K3DJLPZ.js.map → components/password-input.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-PFD7T33H.js";export{a as toggleVariants};
1
+ import{a}from"../chunk-YRNCHCDC.js";export{a as toggleVariants};
2
2
  //# sourceMappingURL=toggle-variants.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefast/ui",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "bugs": {
5
5
  "url": "https://github.com/codefastlabs/codefast/issues"
6
6
  },
@@ -34,35 +34,35 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@radix-ui/primitive": "1.1.0",
37
- "@radix-ui/react-accordion": "1.2.0",
38
- "@radix-ui/react-alert-dialog": "1.1.1",
37
+ "@radix-ui/react-accordion": "1.2.1",
38
+ "@radix-ui/react-alert-dialog": "1.1.2",
39
39
  "@radix-ui/react-aspect-ratio": "1.1.0",
40
- "@radix-ui/react-avatar": "1.1.0",
41
- "@radix-ui/react-checkbox": "1.1.1",
42
- "@radix-ui/react-collapsible": "1.1.0",
43
- "@radix-ui/react-context": "1.1.0",
44
- "@radix-ui/react-context-menu": "2.2.1",
45
- "@radix-ui/react-dialog": "1.1.1",
40
+ "@radix-ui/react-avatar": "1.1.1",
41
+ "@radix-ui/react-checkbox": "1.1.2",
42
+ "@radix-ui/react-collapsible": "1.1.1",
43
+ "@radix-ui/react-context": "1.1.1",
44
+ "@radix-ui/react-context-menu": "2.2.2",
45
+ "@radix-ui/react-dialog": "1.1.2",
46
46
  "@radix-ui/react-direction": "1.1.0",
47
- "@radix-ui/react-dropdown-menu": "2.1.1",
48
- "@radix-ui/react-hover-card": "1.1.1",
47
+ "@radix-ui/react-dropdown-menu": "2.1.2",
48
+ "@radix-ui/react-hover-card": "1.1.2",
49
49
  "@radix-ui/react-icons": "1.3.0",
50
50
  "@radix-ui/react-label": "2.1.0",
51
- "@radix-ui/react-menubar": "1.1.1",
52
- "@radix-ui/react-navigation-menu": "1.2.0",
53
- "@radix-ui/react-popover": "1.1.1",
51
+ "@radix-ui/react-menubar": "1.1.2",
52
+ "@radix-ui/react-navigation-menu": "1.2.1",
53
+ "@radix-ui/react-popover": "1.1.2",
54
54
  "@radix-ui/react-progress": "1.1.0",
55
- "@radix-ui/react-radio-group": "1.2.0",
56
- "@radix-ui/react-scroll-area": "1.1.0",
57
- "@radix-ui/react-select": "2.1.1",
55
+ "@radix-ui/react-radio-group": "1.2.1",
56
+ "@radix-ui/react-scroll-area": "1.2.0",
57
+ "@radix-ui/react-select": "2.1.2",
58
58
  "@radix-ui/react-separator": "1.1.0",
59
- "@radix-ui/react-slider": "1.2.0",
59
+ "@radix-ui/react-slider": "1.2.1",
60
60
  "@radix-ui/react-slot": "1.1.0",
61
- "@radix-ui/react-switch": "1.1.0",
62
- "@radix-ui/react-tabs": "1.1.0",
61
+ "@radix-ui/react-switch": "1.1.1",
62
+ "@radix-ui/react-tabs": "1.1.1",
63
63
  "@radix-ui/react-toggle": "1.1.0",
64
64
  "@radix-ui/react-toggle-group": "1.1.0",
65
- "@radix-ui/react-tooltip": "1.1.2",
65
+ "@radix-ui/react-tooltip": "1.1.3",
66
66
  "@radix-ui/react-visually-hidden": "1.1.0",
67
67
  "clsx": "2.1.1",
68
68
  "cmdk": "1.0.0",
@@ -71,32 +71,43 @@
71
71
  "react-day-picker": "9.1.3",
72
72
  "react-resizable-panels": "2.1.4",
73
73
  "sonner": "1.5.0",
74
- "tailwind-merge": "2.5.2",
74
+ "tailwind-merge": "2.5.3",
75
75
  "tailwind-variants": "0.2.1",
76
76
  "vaul": "1.0.0",
77
- "@codefast-ui/checkbox-group": "0.1.20",
78
- "@codefast-ui/input": "0.1.20",
79
- "@codefast-ui/number-input": "0.1.20"
77
+ "@codefast-ui/input": "0.1.21",
78
+ "@codefast-ui/number-input": "0.1.21",
79
+ "@codefast-ui/checkbox-group": "0.1.21"
80
80
  },
81
81
  "devDependencies": {
82
- "@types/lodash": "4.17.9",
82
+ "@types/node": "22.7.4",
83
83
  "autoprefixer": "10.4.20",
84
- "eslint": "8.57.0",
84
+ "eslint": "8.57.1",
85
85
  "postcss": "8.4.47",
86
86
  "tailwindcss": "3.4.13",
87
87
  "tsup": "8.3.0",
88
88
  "typescript": "5.6.2",
89
- "@codefast/config-tailwind": "0.1.20",
90
- "@codefast/config-typescript": "0.1.20",
91
- "@codefast/eslint-config": "0.1.20"
89
+ "@codefast/config-tailwind": "0.1.21",
90
+ "@codefast/config-typescript": "0.1.21",
91
+ "@codefast/eslint-config": "0.1.21"
92
92
  },
93
93
  "peerDependencies": {
94
- "@tanstack/react-table": "^8.20",
94
+ "@tanstack/react-table": "^8.0",
95
+ "@types/lodash-es": "*",
95
96
  "@types/react": "*",
96
- "lodash": "^4.17",
97
+ "@types/react-dom": "*",
98
+ "lodash-es": "^4.0",
97
99
  "next-themes": "^0.3",
98
100
  "react": "^18.0 || ^19.0",
99
- "react-hook-form": "^7.53"
101
+ "react-dom": "^18.0 || ^19.0",
102
+ "react-hook-form": "^7.0"
103
+ },
104
+ "peerDependenciesMeta": {
105
+ "@types/react": {
106
+ "optional": true
107
+ },
108
+ "@types/react-dom": {
109
+ "optional": true
110
+ }
100
111
  },
101
112
  "publishConfig": {
102
113
  "access": "public"
@@ -1,2 +0,0 @@
1
- import{a as r}from"./chunk-ASPYPA2M.js";import*as a from"react";import*as e from"@radix-ui/react-context-menu";import{CheckIcon as m,ChevronRightIcon as C,DotFilledIcon as x}from"@radix-ui/react-icons";import{jsx as i,jsxs as u}from"react/jsx-runtime";var S=e.Root,N=e.Trigger,w=e.Group,E=e.Sub,T=e.RadioGroup,d=a.forwardRef(({children:t,className:o,inset:n,...p},s)=>u(e.SubTrigger,{ref:s,className:r("px-2.75 gap-2.75 h-8","flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n&&"pl-8",o),...p,children:[t,i(C,{className:"ml-auto size-4"})]}));d.displayName=e.SubTrigger.displayName;var c=a.forwardRef(({className:t,...o},n)=>i(e.Portal,{children:i(e.SubContent,{ref:n,className:r("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",t),...o})}));c.displayName=e.SubContent.displayName;var l=a.forwardRef(({className:t,...o},n)=>i(e.Portal,{children:i(e.Content,{ref:n,className:r("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2",t),...o})}));l.displayName=e.Content.displayName;var M=a.forwardRef(({className:t,inset:o,...n},p)=>i(e.Item,{ref:p,className:r("px-2.75 gap-2.75 h-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o&&"pl-8",t),...n}));M.displayName=e.Item.displayName;var f=a.forwardRef(({children:t,className:o,checked:n,...p},s)=>u(e.CheckboxItem,{ref:s,checked:n,className:r("px-2.75 gap-2.75 h-8","pl-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...p,children:[i("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:i(e.ItemIndicator,{children:i(m,{className:"size-4"})})}),t]}));f.displayName=e.CheckboxItem.displayName;var P=a.forwardRef(({children:t,className:o,...n},p)=>u(e.RadioItem,{ref:p,className:r("px-2.75 gap-2.75 h-8","pl-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...n,children:[i("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:i(e.ItemIndicator,{children:i(x,{className:"size-4 fill-current"})})}),t]}));P.displayName=e.RadioItem.displayName;var y=a.forwardRef(({className:t,inset:o,...n},p)=>i(e.Label,{ref:p,className:r("px-2.75 gap-2.75 h-8","flex items-center text-sm font-semibold",o&&"pl-8",t),...n}));y.displayName=e.Label.displayName;var R=a.forwardRef(({className:t,...o},n)=>i(e.Separator,{ref:n,className:r("bg-muted mx-2 my-1 h-px",t),...o}));R.displayName=e.Separator.displayName;function k({className:t,...o}){return i("span",{className:r("text-muted-foreground ml-auto text-xs tracking-widest",t),...o})}var b=a.forwardRef(({className:t,...o},n)=>i(e.Arrow,{ref:n,className:r("fill-popover",t),...o}));b.displayName=e.Arrow.displayName;export{S as a,N as b,w as c,E as d,T as e,d as f,c as g,l as h,M as i,f as j,P as k,y as l,R as m,k as n,b as o};
2
- //# sourceMappingURL=chunk-3SIRN755.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/context-menu.tsx"],"names":["React","ContextMenuPrimitive","CheckIcon","ChevronRightIcon","DotFilledIcon","jsx","jsxs","ContextMenu","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuSubTrigger","children","className","inset","props","forwardedRef","cn","ContextMenuSubContent","ContextMenuContent","ContextMenuItem","ContextMenuCheckboxItem","checked","ContextMenuRadioItem","ContextMenuLabel","ContextMenuSeparator","ContextMenuShortcut","ContextMenuArrow"],"mappings":"wCAAA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BACtC,OAAS,aAAAC,EAAW,oBAAAC,EAAkB,iBAAAC,MAAqB,wBAkDvD,OAaE,OAAAC,EAbF,QAAAC,MAAA,oBA1CJ,IAAMC,EAAmC,OAOnCC,EAA0C,UAO1CC,EAAwC,QAOxCC,EAAsC,MAOtCC,EAA6C,aAY7CC,EAA8B,aAClC,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IACzCX,EAAsB,aAArB,CACC,IAAKW,EACL,UAAWC,EACT,uBACA,kEACA,kEACA,uEACAH,GAAS,OACTD,CACF,EACC,GAAGE,EAEH,UAAAH,EACDR,EAACF,EAAA,CAAiB,UAAU,iBAAiB,GAC/C,CAEJ,EAEAS,EAAsB,YAAmC,aAAW,YASpE,IAAMO,EAA8B,aAClC,CAAC,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,SAArB,CACC,SAAAA,EAAsB,aAArB,CACC,IAAKY,EACL,UAAWC,EACT,mFACA,sFACA,2DACA,2DACA,2DACA,2DACA,+FACA,4DACA,4DACA,4DACA,4DACAJ,CACF,EACC,GAAGE,EACN,EACF,CAEJ,EAEAG,EAAsB,YAAmC,aAAW,YASpE,IAAMC,EAA2B,aAC/B,CAAC,CAAE,UAAAN,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CACC,IAAKY,EACL,UAAWC,EACT,mFACA,sFACA,2DACA,2DACA,2DACA,2DACAJ,CACF,EACC,GAAGE,EACN,EACF,CAEJ,EAEAI,EAAmB,YAAmC,UAAQ,YAY9D,IAAMC,EAAwB,aAC5B,CAAC,CAAE,UAAAP,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAC/BZ,EAAsB,OAArB,CACC,IAAKY,EACL,UAAWC,EACT,uBACA,2EACA,kEACA,6DACAH,GAAS,OACTD,CACF,EACC,GAAGE,EACN,CAEJ,EAEAK,EAAgB,YAAmC,OAAK,YASxD,IAAMC,EAAgC,aACpC,CAAC,CAAE,SAAAT,EAAU,UAAAC,EAAW,QAAAS,EAAS,GAAGP,CAAM,EAAGC,IAC3CX,EAAsB,eAArB,CACC,IAAKW,EACL,QAASM,EACT,UAAWL,EACT,uBACA,OACA,2EACA,kEACA,6DACAJ,CACF,EACC,GAAGE,EAEJ,UAAAX,EAAC,QAAK,UAAU,4DACd,SAAAA,EAAsB,gBAArB,CACC,SAAAA,EAACH,EAAA,CAAU,UAAU,SAAS,EAChC,EACF,EACCW,GACH,CAEJ,EAEAS,EAAwB,YAAmC,eAAa,YASxE,IAAME,EAA6B,aACjC,CAAC,CAAE,SAAAX,EAAU,UAAAC,EAAW,GAAGE,CAAM,EAAGC,IAClCX,EAAsB,YAArB,CACC,IAAKW,EACL,UAAWC,EACT,uBACA,OACA,2EACA,kEACA,6DACAJ,CACF,EACC,GAAGE,EAEJ,UAAAX,EAAC,QAAK,UAAU,4DACd,SAAAA,EAAsB,gBAArB,CACC,SAAAA,EAACD,EAAA,CAAc,UAAU,sBAAsB,EACjD,EACF,EACCS,GACH,CAEJ,EAEAW,EAAqB,YAAmC,YAAU,YAYlE,IAAMC,EAAyB,aAC7B,CAAC,CAAE,UAAAX,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAC/BZ,EAAsB,QAArB,CACC,IAAKY,EACL,UAAWC,EAAG,uBAAwB,0CAA2CH,GAAS,OAAQD,CAAS,EAC1G,GAAGE,EACN,CAEJ,EAEAS,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA6B,aACjC,CAAC,CAAE,UAAAZ,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,YAArB,CACC,IAAKY,EACL,UAAWC,EAAG,0BAA2BJ,CAAS,EACjD,GAAGE,EACN,CAEJ,EAEAU,EAAqB,YAAmC,YAAU,YAQlE,SAASC,EAAoB,CAAE,UAAAb,EAAW,GAAGE,CAAM,EAAgD,CACjG,OAAOX,EAAC,QAAK,UAAWa,EAAG,wDAAyDJ,CAAS,EAAI,GAAGE,EAAO,CAC7G,CASA,IAAMY,EAAyB,aAC7B,CAAC,CAAE,UAAAd,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,QAArB,CAA2B,IAAKY,EAAc,UAAWC,EAAG,eAAgBJ,CAAS,EAAI,GAAGE,EAAO,CAExG,EAEAY,EAAiB,YAAmC,QAAM","sourcesContent":["import * as React from 'react';\nimport * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenu\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuProps = React.ComponentProps<typeof ContextMenuPrimitive.Root>;\nconst ContextMenu = ContextMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuTriggerProps = React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Trigger>;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuGroupProps = React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Group>;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSub\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubProps = React.ComponentProps<typeof ContextMenuPrimitive.Sub>;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioGroup>;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubTriggerElement = React.ComponentRef<typeof ContextMenuPrimitive.SubTrigger>;\n\ninterface ContextMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst ContextMenuSubTrigger = React.forwardRef<ContextMenuSubTriggerElement, ContextMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </ContextMenuPrimitive.SubTrigger>\n ),\n);\n\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubContentElement = React.ComponentRef<typeof ContextMenuPrimitive.SubContent>;\ntype ContextMenuSubContentProps = React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>;\n\nconst ContextMenuSubContent = React.forwardRef<ContextMenuSubContentElement, ContextMenuSubContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuContentElement = React.ComponentRef<typeof ContextMenuPrimitive.Content>;\ntype ContextMenuContentProps = React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>;\n\nconst ContextMenuContent = React.forwardRef<ContextMenuContentElement, ContextMenuContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuItemElement = React.ComponentRef<typeof ContextMenuPrimitive.Item>;\n\ninterface ContextMenuItemProps extends React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst ContextMenuItem = React.forwardRef<ContextMenuItemElement, ContextMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuCheckboxItemElement = React.ComponentRef<typeof ContextMenuPrimitive.CheckboxItem>;\ntype ContextMenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>;\n\nconst ContextMenuCheckboxItem = React.forwardRef<ContextMenuCheckboxItemElement, ContextMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n ),\n);\n\nContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioItemElement = React.ComponentRef<typeof ContextMenuPrimitive.RadioItem>;\ntype ContextMenuRadioItemProps = React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>;\n\nconst ContextMenuRadioItem = React.forwardRef<ContextMenuRadioItemElement, ContextMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n ),\n);\n\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuLabelElement = React.ComponentRef<typeof ContextMenuPrimitive.Label>;\n\ninterface ContextMenuLabelProps extends React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst ContextMenuLabel = React.forwardRef<ContextMenuLabelElement, ContextMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('px-2.75 gap-2.75 h-8', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSeparatorElement = React.ComponentRef<typeof ContextMenuPrimitive.Separator>;\ntype ContextMenuSeparatorProps = React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>;\n\nconst ContextMenuSeparator = React.forwardRef<ContextMenuSeparatorElement, ContextMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuShortcutProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction ContextMenuShortcut({ className, ...props }: ContextMenuShortcutProps): React.JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuArrowElement = React.ComponentRef<typeof ContextMenuPrimitive.Arrow>;\ntype ContextMenuArrowProps = ContextMenuPrimitive.ContextMenuArrowProps;\n\nconst ContextMenuArrow = React.forwardRef<ContextMenuArrowElement, ContextMenuArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nContextMenuArrow.displayName = ContextMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ContextMenu,\n ContextMenuTrigger,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuCheckboxItem,\n ContextMenuRadioItem,\n ContextMenuLabel,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuGroup,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuRadioGroup,\n ContextMenuArrow,\n type ContextMenuProps,\n type ContextMenuTriggerProps,\n type ContextMenuContentProps,\n type ContextMenuItemProps,\n type ContextMenuCheckboxItemProps,\n type ContextMenuRadioItemProps,\n type ContextMenuLabelProps,\n type ContextMenuSeparatorProps,\n type ContextMenuShortcutProps,\n type ContextMenuGroupProps,\n type ContextMenuSubProps,\n type ContextMenuSubContentProps,\n type ContextMenuSubTriggerProps,\n type ContextMenuRadioGroupProps,\n type ContextMenuArrowProps,\n};\n"]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-4K3DJLPZ.js.map
@@ -1,2 +0,0 @@
1
- import{a as s}from"./chunk-5SBCSCS4.js";import{a as l}from"./chunk-ASPYPA2M.js";import*as a from"react";import{CheckIcon as f,ChevronDownIcon as m,ChevronUpIcon as P}from"@radix-ui/react-icons";import*as e from"@radix-ui/react-select";import{jsx as t,jsxs as n}from"react/jsx-runtime";var B=e.Root,I=e.Group,x=e.Value,u=a.forwardRef(({children:i,className:r,size:o,...c},p)=>n(e.Trigger,{ref:p,className:s({variant:"outline",size:o,className:["w-full justify-between font-normal",r]}),...c,children:[i,t(e.Icon,{asChild:!0,children:t(m,{className:"size-4 shrink-0 opacity-50"})})]}));u.displayName=e.Trigger.displayName;var S=a.forwardRef(({className:i,...r},o)=>t(e.ScrollUpButton,{ref:o,className:l("flex cursor-pointer items-center justify-center py-1",i),...r,children:t(P,{})}));S.displayName=e.ScrollUpButton.displayName;var d=a.forwardRef(({className:i,...r},o)=>t(e.ScrollDownButton,{ref:o,className:l("flex cursor-pointer items-center justify-center py-1",i),...r,children:t(m,{})}));d.displayName=e.ScrollDownButton.displayName;var y=a.forwardRef(({children:i,className:r,position:o="popper",...c},p)=>t(e.Portal,{children:n(e.Content,{ref:p,className:l("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2",o==="popper"&&["data-[side=bottom]:translate-y-1","data-[side=left]:-translate-x-1","data-[side=right]:translate-x-1","data-[side=top]:-translate-y-1"],r),position:o,...c,children:[t(S,{}),t(e.Viewport,{className:l("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),t(d,{})]})}));y.displayName=e.Content.displayName;var v=a.forwardRef(({className:i,...r},o)=>t(e.Label,{ref:o,className:l("px-2.75 gap-2.75 h-8","flex items-center text-sm font-semibold",i),...r}));v.displayName=e.Label.displayName;var R=a.forwardRef(({children:i,className:r,...o},c)=>n(e.Item,{ref:c,className:l("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r),...o,children:[t("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t(e.ItemIndicator,{children:t(f,{className:"size-4"})})}),t(e.ItemText,{children:i})]}));R.displayName=e.Item.displayName;var g=a.forwardRef(({className:i,...r},o)=>t(e.Separator,{ref:o,className:l("bg-muted mx-2 my-1 h-px",i),...r}));g.displayName=e.Separator.displayName;export{B as a,I as b,x as c,u as d,S as e,d as f,y as g,v as h,R as i,g as j};
2
- //# sourceMappingURL=chunk-4VSWFKPG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/select.tsx"],"names":["React","CheckIcon","ChevronDownIcon","ChevronUpIcon","SelectPrimitive","jsx","jsxs","Select","SelectGroup","SelectValue","SelectTrigger","children","className","size","props","forwardedRef","buttonVariants","SelectScrollUpButton","cn","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator"],"mappings":"gFAAA,UAAYA,MAAW,QACvB,OAAS,aAAAC,EAAW,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAC1D,UAAYC,MAAqB,yBAoC7B,OAWI,OAAAC,EAXJ,QAAAC,MAAA,oBA3BJ,IAAMC,EAAyB,OAOzBC,EAA8B,QAO9BC,EAA8B,QAW9BC,EAAsB,aAC1B,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,KAAAC,EAAM,GAAGC,CAAM,EAAGC,IACxCT,EAAiB,UAAhB,CACC,IAAKS,EACL,UAAWC,EAAe,CACxB,QAAS,UACT,KAAAH,EACA,UAAW,CAAC,qCAAsCD,CAAS,CAC7D,CAAC,EACA,GAAGE,EAEH,UAAAH,EACDN,EAAiB,OAAhB,CAAqB,QAAO,GAC3B,SAAAA,EAACH,EAAA,CAAgB,UAAU,6BAA6B,EAC1D,GACF,CAEJ,EAEAQ,EAAc,YAA8B,UAAQ,YASpD,IAAMO,EAA6B,aACjC,CAAC,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IACxBV,EAAiB,iBAAhB,CACC,IAAKU,EACL,UAAWG,EAAG,uDAAwDN,CAAS,EAC9E,GAAGE,EAEJ,SAAAT,EAACF,EAAA,EAAc,EACjB,CAEJ,EAEAc,EAAqB,YAA8B,iBAAe,YASlE,IAAME,EAA+B,aACnC,CAAC,CAAE,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IACxBV,EAAiB,mBAAhB,CACC,IAAKU,EACL,UAAWG,EAAG,uDAAwDN,CAAS,EAC9E,GAAGE,EAEJ,SAAAT,EAACH,EAAA,EAAgB,EACnB,CAEJ,EAEAiB,EAAuB,YAA8B,mBAAiB,YAStE,IAAMC,EAAsB,aAC1B,CAAC,CAAE,SAAAT,EAAU,UAAAC,EAAW,SAAAS,EAAW,SAAU,GAAGP,CAAM,EAAGC,IACvDV,EAAiB,SAAhB,CACC,SAAAC,EAAiB,UAAhB,CACC,IAAKS,EACL,UAAWG,EACT,iHACA,sFACA,2DACA,2DACA,2DACA,2DACA,+FACA,4DACA,4DACA,4DACA,4DACAG,IAAa,UAAY,CACvB,mCACA,kCACA,kCACA,gCACF,EACAT,CACF,EACA,SAAUS,EACT,GAAGP,EAEJ,UAAAT,EAACY,EAAA,EAAqB,EACtBZ,EAAiB,WAAhB,CACC,UAAWa,EACT,MACAG,IAAa,UACX,yFACJ,EAEC,SAAAV,EACH,EACAN,EAACc,EAAA,EAAuB,GAC1B,EACF,CAEJ,EAEAC,EAAc,YAA8B,UAAQ,YASpD,IAAME,EAAoB,aAAiD,CAAC,CAAE,UAAAV,EAAW,GAAGE,CAAM,EAAGC,IACnGV,EAAiB,QAAhB,CACC,IAAKU,EACL,UAAWG,EAAG,uBAAwB,0CAA2CN,CAAS,EACzF,GAAGE,EACN,CACD,EAEDQ,EAAY,YAA8B,QAAM,YAShD,IAAMC,EAAmB,aACvB,CAAC,CAAE,SAAAZ,EAAU,UAAAC,EAAW,GAAGE,CAAM,EAAGC,IAClCT,EAAiB,OAAhB,CACC,IAAKS,EACL,UAAWG,EACT,mGACA,kEACA,6DACAN,CACF,EACC,GAAGE,EAEJ,UAAAT,EAAC,QAAK,UAAU,6DACd,SAAAA,EAAiB,gBAAhB,CACC,SAAAA,EAACJ,EAAA,CAAU,UAAU,SAAS,EAChC,EACF,EACAI,EAAiB,WAAhB,CAA0B,SAAAM,EAAS,GACtC,CAEJ,EAEAY,EAAW,YAA8B,OAAK,YAS9C,IAAMC,EAAwB,aAC5B,CAAC,CAAE,UAAAZ,EAAW,GAAGE,CAAM,EAAGC,IACxBV,EAAiB,YAAhB,CAA0B,IAAKU,EAAc,UAAWG,EAAG,0BAA2BN,CAAS,EAAI,GAAGE,EAAO,CAElH,EAEAU,EAAgB,YAA8B,YAAU","sourcesContent":["import * as React from 'react';\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Select\n * -------------------------------------------------------------------------- */\n\ntype SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;\nconst Select = SelectPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectGroup\n * -------------------------------------------------------------------------- */\n\ntype SelectGroupProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;\nconst SelectGroup = SelectPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectValue\n * -------------------------------------------------------------------------- */\n\ntype SelectValueProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Value>;\nconst SelectValue = SelectPrimitive.Value;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectTrigger\n * -------------------------------------------------------------------------- */\n\ntype SelectTriggerElement = React.ComponentRef<typeof SelectPrimitive.Trigger>;\ninterface SelectTriggerProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {\n size?: ButtonVariantsProps['size'];\n}\n\nconst SelectTrigger = React.forwardRef<SelectTriggerElement, SelectTriggerProps>(\n ({ children, className, size, ...props }, forwardedRef) => (\n <SelectPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'outline',\n size,\n className: ['w-full justify-between font-normal', className],\n })}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-4 shrink-0 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n ),\n);\n\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollUpButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollUpButtonElement = React.ComponentRef<typeof SelectPrimitive.ScrollUpButton>;\ntype SelectScrollUpButtonProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>;\n\nconst SelectScrollUpButton = React.forwardRef<SelectScrollUpButtonElement, SelectScrollUpButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollUpButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n ),\n);\n\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollDownButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollDownButtonElement = React.ComponentRef<typeof SelectPrimitive.ScrollDownButton>;\ntype SelectScrollDownButtonProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>;\n\nconst SelectScrollDownButton = React.forwardRef<SelectScrollDownButtonElement, SelectScrollDownButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollDownButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n ),\n);\n\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectContent\n * -------------------------------------------------------------------------- */\n\ntype SelectContentElement = React.ComponentRef<typeof SelectPrimitive.Content>;\ntype SelectContentProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;\n\nconst SelectContent = React.forwardRef<SelectContentElement, SelectContentProps>(\n ({ children, className, position = 'popper', ...props }, forwardedRef) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n position === 'popper' && [\n 'data-[side=bottom]:translate-y-1',\n 'data-[side=left]:-translate-x-1',\n 'data-[side=right]:translate-x-1',\n 'data-[side=top]:-translate-y-1',\n ],\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n ),\n);\n\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectLabel\n * -------------------------------------------------------------------------- */\n\ntype SelectLabelElement = React.ComponentRef<typeof SelectPrimitive.Label>;\ntype SelectLabelProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>;\n\nconst SelectLabel = React.forwardRef<SelectLabelElement, SelectLabelProps>(({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Label\n ref={forwardedRef}\n className={cn('px-2.75 gap-2.75 h-8', 'flex items-center text-sm font-semibold', className)}\n {...props}\n />\n));\n\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectItem\n * -------------------------------------------------------------------------- */\n\ntype SelectItemElement = React.ComponentRef<typeof SelectPrimitive.Item>;\ntype SelectItemProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>;\n\nconst SelectItem = React.forwardRef<SelectItemElement, SelectItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <SelectPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n ),\n);\n\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectSeparator\n * -------------------------------------------------------------------------- */\n\ntype SelectSeparatorElement = React.ComponentRef<typeof SelectPrimitive.Separator>;\ntype SelectSeparatorProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>;\n\nconst SelectSeparator = React.forwardRef<SelectSeparatorElement, SelectSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Separator ref={forwardedRef} className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />\n ),\n);\n\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n type SelectProps,\n type SelectGroupProps,\n type SelectValueProps,\n type SelectTriggerProps,\n type SelectContentProps,\n type SelectLabelProps,\n type SelectItemProps,\n type SelectSeparatorProps,\n type SelectScrollUpButtonProps,\n type SelectScrollDownButtonProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- import{a as i}from"./chunk-ASPYPA2M.js";import*as a from"react";import*as e from"@radix-ui/react-dropdown-menu";import{CheckIcon as u,ChevronRightIcon as m,DotFilledIcon as c}from"@radix-ui/react-icons";import{jsx as r,jsxs as s}from"react/jsx-runtime";var I=e.Root,x=e.Trigger,S=e.Group,N=e.Sub,E=e.RadioGroup,w=a.forwardRef(({children:o,className:t,inset:n,...p},d)=>s(e.SubTrigger,{ref:d,className:i("px-2.75 gap-2.75 h-8","flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n&&"pl-8",t),...p,children:[o,r(m,{className:"ml-auto size-4"})]}));w.displayName=e.SubTrigger.displayName;var l=a.forwardRef(({className:o,...t},n)=>r(e.Portal,{children:r(e.SubContent,{ref:n,className:i("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",o),...t})}));l.displayName=e.SubContent.displayName;var M=a.forwardRef(({className:o,sideOffset:t=6,...n},p)=>r(e.Portal,{children:r(e.Content,{ref:p,className:i("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",o),sideOffset:t,...n})}));M.displayName=e.Content.displayName;var D=a.forwardRef(({className:o,inset:t,...n},p)=>r(e.Item,{ref:p,className:i("px-2.75 gap-2.75 h-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t&&"pl-8",o),...n}));D.displayName=e.Item.displayName;var f=a.forwardRef(({children:o,className:t,checked:n,...p},d)=>s(e.CheckboxItem,{ref:d,checked:n,className:i("px-2.75 gap-2.75 h-8","pl-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t),...p,children:[r("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:r(e.ItemIndicator,{children:r(u,{className:"size-4"})})}),o]}));f.displayName=e.CheckboxItem.displayName;var P=a.forwardRef(({children:o,className:t,...n},p)=>s(e.RadioItem,{ref:p,className:i("px-2.75 gap-2.75 h-8","pl-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t),...n,children:[r("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:r(e.ItemIndicator,{children:r(c,{className:"size-4 fill-current"})})}),o]}));P.displayName=e.RadioItem.displayName;var y=a.forwardRef(({className:o,inset:t,...n},p)=>r(e.Label,{ref:p,className:i("px-2.75 gap-2.75 h-8","flex items-center text-sm font-semibold",t&&"pl-8",o),...n}));y.displayName=e.Label.displayName;var R=a.forwardRef(({className:o,...t},n)=>r(e.Separator,{ref:n,className:i("bg-muted mx-2 my-1 h-px",o),...t}));R.displayName=e.Separator.displayName;function T({className:o,...t}){return r("span",{className:i("ml-auto text-xs tracking-widest opacity-60",o),...t})}var b=a.forwardRef(({className:o,...t},n)=>r(e.Arrow,{ref:n,className:i("fill-popover",o),...t}));b.displayName=e.Arrow.displayName;export{I as a,x as b,S as c,N as d,E as e,w as f,l as g,M as h,D as i,f as j,P as k,y as l,R as m,T as n,b as o};
2
- //# sourceMappingURL=chunk-5IH3NQEZ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/dropdown-menu.tsx"],"names":["React","DropdownMenuPrimitive","CheckIcon","ChevronRightIcon","DotFilledIcon","jsx","jsxs","DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","children","className","inset","props","forwardedRef","cn","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuArrow"],"mappings":"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","sourcesContent":["import * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenu\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuProps = React.ComponentProps<typeof DropdownMenuPrimitive.Root>;\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuTriggerProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSub\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Sub>;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup>;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubTriggerElement = React.ComponentRef<typeof DropdownMenuPrimitive.SubTrigger>;\n\ninterface DropdownMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst DropdownMenuSubTrigger = React.forwardRef<DropdownMenuSubTriggerElement, DropdownMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n ),\n);\n\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubContentProps = DropdownMenuPrimitive.DropdownMenuSubContentProps;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.SubContent>,\n DropdownMenuSubContentProps\n>(({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\n\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuContentElement = React.ComponentRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;\n\nconst DropdownMenuContent = React.forwardRef<DropdownMenuContentElement, DropdownMenuContentProps>(\n ({ className, sideOffset = 6, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n ),\n);\n\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuItemElement = React.ComponentRef<typeof DropdownMenuPrimitive.Item>;\n\ninterface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<DropdownMenuItemElement, DropdownMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuCheckboxItemElement = React.ComponentRef<typeof DropdownMenuPrimitive.CheckboxItem>;\ntype DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<DropdownMenuCheckboxItemElement, DropdownMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n ),\n);\n\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioItemElement = React.ComponentRef<typeof DropdownMenuPrimitive.RadioItem>;\ntype DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;\n\nconst DropdownMenuRadioItem = React.forwardRef<DropdownMenuRadioItemElement, DropdownMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n ),\n);\n\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuLabelElement = React.ComponentRef<typeof DropdownMenuPrimitive.Label>;\n\ninterface DropdownMenuLabelProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst DropdownMenuLabel = React.forwardRef<DropdownMenuLabelElement, DropdownMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('px-2.75 gap-2.75 h-8', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSeparatorElement = React.ComponentRef<typeof DropdownMenuPrimitive.Separator>;\ntype DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;\n\nconst DropdownMenuSeparator = React.forwardRef<DropdownMenuSeparatorElement, DropdownMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuShortcutProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): React.JSX.Element {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuArrowElement = React.ComponentRef<typeof DropdownMenuPrimitive.Arrow>;\ntype DropdownMenuArrowProps = DropdownMenuPrimitive.DropdownMenuArrowProps;\n\nconst DropdownMenuArrow = React.forwardRef<DropdownMenuArrowElement, DropdownMenuArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nDropdownMenuArrow.displayName = DropdownMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n DropdownMenuArrow,\n type DropdownMenuProps,\n type DropdownMenuTriggerProps,\n type DropdownMenuContentProps,\n type DropdownMenuItemProps,\n type DropdownMenuCheckboxItemProps,\n type DropdownMenuRadioItemProps,\n type DropdownMenuLabelProps,\n type DropdownMenuSeparatorProps,\n type DropdownMenuShortcutProps,\n type DropdownMenuGroupProps,\n type DropdownMenuSubProps,\n type DropdownMenuSubContentProps,\n type DropdownMenuSubTriggerProps,\n type DropdownMenuRadioGroupProps,\n type DropdownMenuArrowProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunk6B5BJVT2cjs = require('./chunk-6B5BJVT2.cjs');var _chunkTULN5SP4cjs = require('./chunk-TULN5SP4.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var b=r.forwardRef(({children:t,className:s,variant:p,size:u,icon:i,disabled:m,loading:e,prefix:f,suffix:B,...c},R)=>_jsxruntime.jsxs.call(void 0, "button",{ref:R,className:_chunkTULN5SP4cjs.a.call(void 0, {className:s,icon:i,size:u,variant:p}),disabled:e||m,type:"button",...c,children:[e?_jsxruntime.jsx.call(void 0, _chunk6B5BJVT2cjs.a,{}):f,typeof t=="string"?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:t}):t,B]}));b.displayName="Button";exports.a = b;
2
- //# sourceMappingURL=chunk-5JIVDHL5.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-5JIVDHL5.cjs","../src/components/button.tsx"],"names":["Button","children","className","variant","size","icon","disabled","loading","prefix","suffix","props","forwardedRef","jsxs","buttonVariants","jsx","Spinner"],"mappings":"AAAA,mZAAwC,wDAAyC,uECA1D,+CAkBnB,IAFEA,CAAAA,CAAe,CAAA,CAAA,UAAA,CACnB,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,IAAA,CAAAC,CAAAA,CAAM,IAAA,CAAAC,CAAAA,CAAM,QAAA,CAAAC,CAAAA,CAAU,OAAA,CAAAC,CAAAA,CAAS,MAAA,CAAAC,CAAAA,CAAQ,MAAA,CAAAC,CAAAA,CAAQ,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1FC,8BAAAA,QAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CAAiB,SAAA,CAAAX,CAAAA,CAAW,IAAA,CAAAG,CAAAA,CAAM,IAAA,CAAAD,CAAAA,CAAM,OAAA,CAAAD,CAAQ,CAAC,CAAA,CAC5D,QAAA,CAAUI,CAAAA,EAAWD,CAAAA,CACrB,IAAA,CAAK,QAAA,CACJ,GAAGI,CAAAA,CAEH,QAAA,CAAA,CAAAH,CAAAA,CAAUO,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKP,CAAAA,CACxB,OAAOP,CAAAA,EAAa,QAAA,CAAWa,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,UAAA,CAAY,QAAA,CAAAb,CAAAA,CAAS,CAAA,CAAUA,CAAAA,CAC9EQ,CAAAA,CAAAA,CACH,CAEJ,CAAA,CAEAT,CAAAA,CAAO,WAAA,CAAc,QAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-5JIVDHL5.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { Spinner } from '@/components/spinner';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Button\n * -------------------------------------------------------------------------- */\n\ntype ButtonElement = HTMLButtonElement;\n\ninterface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>, ButtonVariantsProps {\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst Button = React.forwardRef<ButtonElement, ButtonProps>(\n ({ children, className, variant, size, icon, disabled, loading, prefix, suffix, ...props }, forwardedRef) => (\n <button\n ref={forwardedRef}\n className={buttonVariants({ className, icon, size, variant })}\n disabled={loading || disabled}\n type=\"button\"\n {...props}\n >\n {loading ? <Spinner /> : prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </button>\n ),\n);\n\nButton.displayName = 'Button';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Button, type ButtonProps };\n"]}
@@ -1,2 +0,0 @@
1
- import{tv as e}from"tailwind-variants";var n=e({base:["inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition","[&_svg]:size-4 [&_svg]:shrink-0","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","disabled:pointer-events-none disabled:opacity-50"],variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",info:"bg-info text-info-foreground hover:bg-info/80",success:"bg-success text-success-foreground hover:bg-success/80",warning:"bg-warning text-warning-foreground hover:bg-warning/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"bg-background hover:bg-accent hover:text-accent-foreground border-input border",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{xxs:"h-7 gap-2.5 px-2.5",xs:"px-2.75 gap-2.75 h-8",sm:"h-9 gap-3 px-3",md:"px-3.25 gap-3.25 h-10",lg:"h-11 gap-3.5 px-3.5",xl:"px-3.75 gap-3.75 h-12"},icon:{true:"px-0"}},compoundVariants:[{className:"w-7",icon:!0,size:"xxs"},{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"}],defaultVariants:{icon:!1,size:"md",variant:"default"}});export{n as a};
2
- //# sourceMappingURL=chunk-5SBCSCS4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/styles/button-variants.ts"],"names":["tv","buttonVariants"],"mappings":"AAAA,OAAS,MAAAA,MAA6B,oBAEtC,IAAMC,EAAiBD,EAAG,CACxB,KAAM,CACJ,2HACA,kCACA,+EACA,kDACF,EACA,SAAU,CACR,QAAS,CACP,QAAS,yDACT,UAAW,+DACX,KAAM,gDACN,QAAS,yDACT,QAAS,yDACT,YAAa,qEACb,QAAS,iFACT,MAAO,+CACP,KAAM,iDACR,EACA,KAAM,CACJ,IAAK,qBACL,GAAI,uBACJ,GAAI,iBACJ,GAAI,wBACJ,GAAI,sBACJ,GAAI,uBACN,EACA,KAAM,CACJ,KAAM,MACR,CACF,EACA,iBAAkB,CAChB,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,KAAM,EAC5C,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,CAC9C,EACA,gBAAiB,CACf,KAAM,GACN,KAAM,KACN,QAAS,SACX,CACF,CAAC","sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nconst buttonVariants = tv({\n base: [\n 'inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition',\n '[&_svg]:size-4 [&_svg]:shrink-0',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/80',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n info: 'bg-info text-info-foreground hover:bg-info/80',\n success: 'bg-success text-success-foreground hover:bg-success/80',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/80',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/80',\n outline: 'bg-background hover:bg-accent hover:text-accent-foreground border-input border',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n xxs: 'h-7 gap-2.5 px-2.5', // 28px\n xs: 'px-2.75 gap-2.75 h-8', // 32px\n sm: 'h-9 gap-3 px-3', // 36px\n md: 'px-3.25 gap-3.25 h-10', // 40px\n lg: 'h-11 gap-3.5 px-3.5', // 44px\n xl: 'px-3.75 gap-3.75 h-12', // 48px\n },\n icon: {\n true: 'px-0',\n },\n },\n compoundVariants: [\n { className: 'w-7', icon: true, size: 'xxs' },\n { className: 'w-8', icon: true, size: 'xs' },\n { className: 'w-9', icon: true, size: 'sm' },\n { className: 'w-10', icon: true, size: 'md' },\n { className: 'w-11', icon: true, size: 'lg' },\n { className: 'w-12', icon: true, size: 'xl' },\n ],\n defaultVariants: {\n icon: false,\n size: 'md',\n variant: 'default',\n },\n});\n\ntype ButtonVariantsProps = VariantProps<typeof buttonVariants>;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { buttonVariants, type ButtonVariantsProps };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as n}from"./chunk-ASPYPA2M.js";import*as i from"react";import{CheckIcon as b,ChevronRightIcon as d,DotFilledIcon as c}from"@radix-ui/react-icons";import*as e from"@radix-ui/react-menubar";import{jsx as o,jsxs as u}from"react/jsx-runtime";var E=e.Menu,T=e.Group,k=e.Sub,W=e.RadioGroup,M=i.forwardRef(({className:t,...r},a)=>o(e.Root,{ref:a,className:n("bg-background flex h-10 items-center space-x-1 rounded-md border p-1",t),...r}));M.displayName=e.Root.displayName;var f=i.forwardRef(({className:t,...r},a)=>o(e.Trigger,{ref:a,className:n("px-2.75 gap-2.75 h-8","flex cursor-pointer select-none items-center rounded-sm text-sm font-medium","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...r}));f.displayName=e.Trigger.displayName;var l=i.forwardRef(({children:t,className:r,inset:a,...s},p)=>u(e.SubTrigger,{ref:p,className:n("px-2.75 gap-2.75 h-8","flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",a&&"pl-8",r),...s,children:[t,o(d,{className:"ml-auto size-4"})]}));l.displayName=e.SubTrigger.displayName;var P=i.forwardRef(({className:t,...r},a)=>o(e.Portal,{children:o(e.SubContent,{ref:a,className:n("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2",t),...r})}));P.displayName=e.SubContent.displayName;var R=i.forwardRef(({className:t,align:r="start",alignOffset:a=-4,sideOffset:s=8,...p},m)=>o(e.Portal,{children:o(e.Content,{ref:m,align:r,alignOffset:a,className:n("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2",t),sideOffset:s,...p})}));R.displayName=e.Content.displayName;var y=i.forwardRef(({className:t,inset:r,...a},s)=>o(e.Item,{ref:s,className:n("px-2.75 gap-2.75 h-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r&&"pl-8",t),...a}));y.displayName=e.Item.displayName;var g=i.forwardRef(({children:t,className:r,checked:a,...s},p)=>u(e.CheckboxItem,{ref:p,checked:a,className:n("px-2.75 gap-2.75 h-8","pl-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r),...s,children:[o("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o(e.ItemIndicator,{children:o(b,{className:"size-4"})})}),t]}));g.displayName=e.CheckboxItem.displayName;var v=i.forwardRef(({children:t,className:r,...a},s)=>u(e.RadioItem,{ref:s,className:n("px-2.75 gap-2.75 h-8","pl-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r),...a,children:[o("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o(e.ItemIndicator,{children:o(c,{className:"size-4 fill-current"})})}),t]}));v.displayName=e.RadioItem.displayName;var C=i.forwardRef(({className:t,inset:r,...a},s)=>o(e.Label,{ref:s,className:n("px-2.75 gap-2.75 h-8","flex items-center text-sm font-semibold",r&&"pl-8",t),...a}));C.displayName=e.Label.displayName;var x=i.forwardRef(({className:t,...r},a)=>o(e.Separator,{ref:a,className:n("bg-muted mx-2 my-1 h-px",t),...r}));x.displayName=e.Separator.displayName;function L({className:t,...r}){return o("span",{className:n("text-muted-foreground ml-auto text-xs tracking-widest",t),...r})}var h=i.forwardRef(({className:t,...r},a)=>o(e.Arrow,{ref:a,className:n("fill-popover",t),...r}));h.displayName=e.Arrow.displayName;export{E as a,T as b,k as c,W as d,M as e,f,l as g,P as h,R as i,y as j,g as k,v as l,C as m,x as n,L as o,h as p};
2
- //# sourceMappingURL=chunk-7WITWMOJ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/menubar.tsx"],"names":["React","CheckIcon","ChevronRightIcon","DotFilledIcon","MenubarPrimitive","jsx","jsxs","MenubarMenu","MenubarGroup","MenubarSub","MenubarRadioGroup","Menubar","className","props","forwardedRef","cn","MenubarTrigger","MenubarSubTrigger","children","inset","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","MenubarCheckboxItem","checked","MenubarRadioItem","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarArrow"],"mappings":"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","sourcesContent":["import * as React from 'react';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarMenu\n * -------------------------------------------------------------------------- */\n\ntype MenubarMenuProps = React.ComponentProps<typeof MenubarPrimitive.Menu>;\nconst MenubarMenu = MenubarPrimitive.Menu;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarGroupProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Group>;\nconst MenubarGroup = MenubarPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSub\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Sub>;\nconst MenubarSub = MenubarPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioGroupProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioGroup>;\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\ntype MenubarElement = React.ComponentRef<typeof MenubarPrimitive.Root>;\ntype MenubarProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>;\n\nconst Menubar = React.forwardRef<MenubarElement, MenubarProps>(({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Root\n ref={forwardedRef}\n className={cn('bg-background flex h-10 items-center space-x-1 rounded-md border p-1', className)}\n {...props}\n />\n));\n\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarTriggerElement = React.ComponentRef<typeof MenubarPrimitive.Trigger>;\ntype MenubarTriggerProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>;\n\nconst MenubarTrigger = React.forwardRef<MenubarTriggerElement, MenubarTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm font-medium',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubTriggerElement = React.ComponentRef<typeof MenubarPrimitive.SubTrigger>;\n\ninterface MenubarSubTriggerProps extends React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst MenubarSubTrigger = React.forwardRef<MenubarSubTriggerElement, MenubarSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </MenubarPrimitive.SubTrigger>\n ),\n);\n\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubContentElement = React.ComponentRef<typeof MenubarPrimitive.SubContent>;\ntype MenubarSubContentProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>;\n\nconst MenubarSubContent = React.forwardRef<MenubarSubContentElement, MenubarSubContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n ),\n);\n\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarContentElement = React.ComponentRef<typeof MenubarPrimitive.Content>;\ntype MenubarContentProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>;\n\nconst MenubarContent = React.forwardRef<MenubarContentElement, MenubarContentProps>(\n ({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, forwardedRef) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={forwardedRef}\n align={align}\n alignOffset={alignOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </MenubarPrimitive.Portal>\n ),\n);\n\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarItemElement = React.ComponentRef<typeof MenubarPrimitive.Item>;\n\ninterface MenubarItemProps extends React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> {\n inset?: boolean;\n}\n\nconst MenubarItem = React.forwardRef<MenubarItemElement, MenubarItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarCheckboxItemElement = React.ComponentRef<typeof MenubarPrimitive.CheckboxItem>;\ntype MenubarCheckboxItemProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>;\n\nconst MenubarCheckboxItem = React.forwardRef<MenubarCheckboxItemElement, MenubarCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <MenubarPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n ),\n);\n\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioItemElement = React.ComponentRef<typeof MenubarPrimitive.RadioItem>;\ntype MenubarRadioItemProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>;\n\nconst MenubarRadioItem = React.forwardRef<MenubarRadioItemElement, MenubarRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <MenubarPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'px-2.75 gap-2.75 h-8',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n ),\n);\n\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\ntype MenubarLabelElement = React.ComponentRef<typeof MenubarPrimitive.Label>;\n\ninterface MenubarLabelProps extends React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> {\n inset?: boolean;\n}\n\nconst MenubarLabel = React.forwardRef<MenubarLabelElement, MenubarLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Label\n ref={forwardedRef}\n className={cn('px-2.75 gap-2.75 h-8', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\ntype MenubarSeparatorElement = React.ComponentRef<typeof MenubarPrimitive.Separator>;\ntype MenubarSeparatorProps = React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>;\n\nconst MenubarSeparator = React.forwardRef<MenubarSeparatorElement, MenubarSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Separator ref={forwardedRef} className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />\n ),\n);\n\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\ntype MenubarShortcutProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction MenubarShortcut({ className, ...props }: MenubarShortcutProps): React.JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\ntype MenubarArrowElement = React.ComponentRef<typeof MenubarPrimitive.Arrow>;\ntype MenubarArrowProps = MenubarPrimitive.MenubarArrowProps;\n\nconst MenubarArrow = React.forwardRef<MenubarArrowElement, MenubarArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nMenubarArrow.displayName = MenubarPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarGroup,\n MenubarSub,\n MenubarShortcut,\n MenubarArrow,\n type MenubarProps,\n type MenubarMenuProps,\n type MenubarTriggerProps,\n type MenubarContentProps,\n type MenubarItemProps,\n type MenubarSeparatorProps,\n type MenubarLabelProps,\n type MenubarCheckboxItemProps,\n type MenubarRadioGroupProps,\n type MenubarRadioItemProps,\n type MenubarSubContentProps,\n type MenubarSubTriggerProps,\n type MenubarGroupProps,\n type MenubarSubProps,\n type MenubarShortcutProps,\n type MenubarArrowProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use client";import{a as f}from"./chunk-QNF5EKY3.js";import{a as p}from"./chunk-ASPYPA2M.js";import*as a from"react";import{Slot as T}from"@radix-ui/react-slot";import{Controller as g,FormProvider as C,useFormState as u}from"react-hook-form";import{createContextScope as L}from"@radix-ui/react-context";import{result as N}from"lodash";import{jsx as m}from"react/jsx-runtime";var k=C,y="FormField",[I,q]=L(y),[V,M]=I(y);function F(o,r){let{id:e}=S(o,r);return{formDescriptionId:`form-item-description-${e}`,formItemId:`form-item-${e}`,formMessageId:`form-item-message-${e}`,id:e}}function z(o){let{__scopeFormField:r,...e}=o;return m(V,{name:e.name,scope:r,children:m(g,{...e})})}var R="FormItem",[x,S]=I(R),b=a.forwardRef(({__scopeFormField:o,className:r,...e},t)=>{let s=a.useId();return m(x,{id:s,scope:o,children:m("div",{ref:t,className:p("space-y-2",r),...e})})});b.displayName=R;var D="FormLabel",h=a.forwardRef(({__scopeFormField:o,...r},e)=>{let{formItemId:t}=F(l,o);return m(f,{ref:e,htmlFor:t,...r})});h.displayName=D;var E="FormControl",v=a.forwardRef(({__scopeFormField:o,...r},e)=>{let{formItemId:t,formDescriptionId:s,formMessageId:d}=F(l,o),{name:i}=M(E,o),{errors:n}=u({name:i});return m(T,{ref:e,"aria-describedby":n[i]?`${s} ${d}`:s,"aria-invalid":!!n[i],id:t,...r})});v.displayName=E;var _="FormDescription",A=a.forwardRef(({__scopeFormField:o,className:r,...e},t)=>{let{formDescriptionId:s}=F(l,o);return m("p",{ref:t,className:p("text-muted-foreground text-xs",r),id:s,...e})});A.displayName=_;var l="FormMessage",H=a.forwardRef(({__scopeFormField:o,children:r,className:e,...t},s)=>{let{formMessageId:d}=F(l,o),{name:i}=M(l,o),{errors:n}=u({name:i}),c=N(n,i),P=c?.message?String(c.message):r;return P?m("p",{ref:s,className:p("text-xs",c?.message?"text-destructive font-medium":"text-muted-foreground",e),id:d,...t,children:P}):null});H.displayName=l;export{k as a,q as b,z as c,b as d,h as e,v as f,A as g,H as h};
2
- //# sourceMappingURL=chunk-A7DXIEKG.js.map
@@ -1,2 +0,0 @@
1
- import{a as n}from"./chunk-BFSQCLKM.js";import{a as o}from"./chunk-5SBCSCS4.js";import*as r from"react";import{jsx as a,jsxs as l}from"react/jsx-runtime";var b=r.forwardRef(({children:t,className:s,variant:p,size:u,icon:i,disabled:m,loading:e,prefix:f,suffix:B,...c},R)=>l("button",{ref:R,className:o({className:s,icon:i,size:u,variant:p}),disabled:e||m,type:"button",...c,children:[e?a(n,{}):f,typeof t=="string"?a("span",{className:"truncate",children:t}):t,B]}));b.displayName="Button";export{b as a};
2
- //# sourceMappingURL=chunk-AKXCF7X4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/button.tsx"],"names":["React","jsx","jsxs","Button","children","className","variant","size","icon","disabled","loading","prefix","suffix","props","forwardedRef","buttonVariants","Spinner"],"mappings":"gFAAA,UAAYA,MAAW,QAkBnB,OAOa,OAAAC,EAPb,QAAAC,MAAA,oBAFJ,IAAMC,EAAe,aACnB,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,KAAAC,EAAM,SAAAC,EAAU,QAAAC,EAAS,OAAAC,EAAQ,OAAAC,EAAQ,GAAGC,CAAM,EAAGC,IAC1FZ,EAAC,UACC,IAAKY,EACL,UAAWC,EAAe,CAAE,UAAAV,EAAW,KAAAG,EAAM,KAAAD,EAAM,QAAAD,CAAQ,CAAC,EAC5D,SAAUI,GAAWD,EACrB,KAAK,SACJ,GAAGI,EAEH,UAAAH,EAAUT,EAACe,EAAA,EAAQ,EAAKL,EACxB,OAAOP,GAAa,SAAWH,EAAC,QAAK,UAAU,WAAY,SAAAG,EAAS,EAAUA,EAC9EQ,GACH,CAEJ,EAEAT,EAAO,YAAc","sourcesContent":["import * as React from 'react';\nimport { Spinner } from '@/components/spinner';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Button\n * -------------------------------------------------------------------------- */\n\ntype ButtonElement = HTMLButtonElement;\n\ninterface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>, ButtonVariantsProps {\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst Button = React.forwardRef<ButtonElement, ButtonProps>(\n ({ children, className, variant, size, icon, disabled, loading, prefix, suffix, ...props }, forwardedRef) => (\n <button\n ref={forwardedRef}\n className={buttonVariants({ className, icon, size, variant })}\n disabled={loading || disabled}\n type=\"button\"\n {...props}\n >\n {loading ? <Spinner /> : prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </button>\n ),\n);\n\nButton.displayName = 'Button';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Button, type ButtonProps };\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkCDYYO7ULcjs = require('./chunk-CDYYO7UL.cjs');var _react = require('react'); var p = _interopRequireWildcard(_react);var _reactradiogroup = require('@radix-ui/react-radio-group'); var e = _interopRequireWildcard(_reactradiogroup);var _jsxruntime = require('react/jsx-runtime');var m=p.forwardRef(({className:o,...i},r)=>_jsxruntime.jsx.call(void 0, e.Root,{className:_chunkCDYYO7ULcjs.a.call(void 0, "grid gap-2",o),...i,ref:r}));m.displayName=e.Root.displayName;var d=p.forwardRef(({className:o,...i},r)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:r,className:_chunkCDYYO7ULcjs.a.call(void 0, "border-input text-foreground group peer aspect-square size-4 rounded-full border","hover:border-primary","aria-checked:border-primary","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","disabled:pointer-events-none disabled:opacity-50",o),...i,children:_jsxruntime.jsx.call(void 0, e.Indicator,{className:"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full"})}));d.displayName=e.Item.displayName;exports.a = m; exports.b = d;
2
- //# sourceMappingURL=chunk-B4OHWSDO.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B4OHWSDO.cjs","../src/components/radio-group.tsx"],"names":["RadioGroup","className","props","forwardedRef","jsx","cn","RadioGroupItem"],"mappings":"AAAA,mZAAwC,uECAjB,iHACc,+CAW5B,IADHA,CAAAA,CAAmB,CAAA,CAAA,UAAA,CAA+C,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACzFC,6BAAAA,CAAqB,CAAA,IAAA,CAApB,CAAyB,SAAA,CAAWC,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,GAAA,CAAKC,CAAAA,CAAc,CACxG,CAAA,CAEDH,CAAAA,CAAW,WAAA,CAAkC,CAAA,CAAA,IAAA,CAAK,WAAA,CASlD,IAAMM,CAAAA,CAAuB,CAAA,CAAA,UAAA,CAC3B,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAqB,CAAA,IAAA,CAApB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,kFACT,CACA,sBAAA,CACA,6BAAA,CACA,8EAAA,CACA,kDAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAqB,CAAA,SAAA,CAApB,CAA8B,SAAA,CAAU,oHAAA,CAAqH,CAAA,CAChK,CAEJ,CAAA,CAEAE,CAAAA,CAAe,WAAA,CAAkC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B4OHWSDO.cjs","sourcesContent":[null,"import * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupElement = React.ComponentRef<typeof RadioGroupPrimitive.Root>;\ntype RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(({ className, ...props }, forwardedRef) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />;\n});\n\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupItemElement = React.ComponentRef<typeof RadioGroupPrimitive.Item>;\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;\n\nconst RadioGroupItem = React.forwardRef<RadioGroupItemElement, RadioGroupItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <RadioGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input text-foreground group peer aspect-square size-4 rounded-full border',\n 'hover:border-primary',\n 'aria-checked:border-primary',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full\" />\n </RadioGroupPrimitive.Item>\n ),\n);\n\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioGroupItemProps };\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkCDYYO7ULcjs = require('./chunk-CDYYO7UL.cjs');var _react = require('react'); var d = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var n=d.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkCDYYO7ULcjs.a.call(void 0, "bg-card text-card-foreground rounded-lg border",e),...t}));n.displayName="Card";var s=d.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkCDYYO7ULcjs.a.call(void 0, "flex flex-col space-y-1.5 p-6",e),...t}));s.displayName="CardHeader";var i=d.forwardRef(({children:e,className:t,...r},p)=>_jsxruntime.jsx.call(void 0, "h3",{ref:p,className:_chunkCDYYO7ULcjs.a.call(void 0, "font-semibold leading-none tracking-tight",t),...r,children:e}));i.displayName="CardTitle";var l=d.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, "p",{ref:r,className:_chunkCDYYO7ULcjs.a.call(void 0, "text-muted-foreground text-sm",e),...t}));l.displayName="CardDescription";var C=d.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkCDYYO7ULcjs.a.call(void 0, "p-6 pt-0",e),...t}));C.displayName="CardContent";var m=d.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkCDYYO7ULcjs.a.call(void 0, "flex items-center p-6 pt-0",e),...t}));m.displayName="CardFooter";exports.a = n; exports.b = s; exports.c = i; exports.d = l; exports.e = C; exports.f = m;
2
- //# sourceMappingURL=chunk-B52E7NEF.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B52E7NEF.cjs","../src/components/card.tsx"],"names":["Card","className","props","forwardedRef","jsx","cn","CardHeader","CardTitle","children","CardDescription","CardContent","CardFooter"],"mappings":"AAAA,mZAAmC,uECAZ,+CAWrB,IADIA,CAAAA,CAAa,CAAA,CAAA,UAAA,CAAmC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC9EC,6BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,gDAAG,CAAkDJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAChH,CAAA,CAEDF,CAAAA,CAAK,WAAA,CAAc,MAAA,CASnB,IAAMM,CAAAA,CAAmB,CAAA,CAAA,UAAA,CAA+C,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAChGC,6BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,+BAAG,CAAiCJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAC/F,CAAA,CAEDI,CAAAA,CAAW,WAAA,CAAc,YAAA,CASzB,IAAMC,CAAAA,CAAkB,CAAA,CAAA,UAAA,CACtB,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAP,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,IAAC,CAAA,CAAG,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,2CAAG,CAA6CJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAC/F,QAAA,CAAAM,CAAAA,CACH,CAEJ,CAAA,CAEAD,CAAAA,CAAU,WAAA,CAAc,WAAA,CASxB,IAAME,CAAAA,CAAwB,CAAA,CAAA,UAAA,CAC5B,CAAC,CAAE,SAAA,CAAAR,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,GAAC,CAAA,CAAE,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,+BAAG,CAAiCJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEhG,CAAA,CAEAO,CAAAA,CAAgB,WAAA,CAAc,iBAAA,CAS9B,IAAMC,CAAAA,CAAoB,CAAA,CAAA,UAAA,CAAiD,CAAC,CAAE,SAAA,CAAAT,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnGC,6BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,UAAG,CAAYJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAC1E,CAAA,CAEDQ,CAAAA,CAAY,WAAA,CAAc,aAAA,CAS1B,IAAMC,CAAAA,CAAmB,CAAA,CAAA,UAAA,CAA+C,CAAC,CAAE,SAAA,CAAAV,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAChGC,6BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,4BAAG,CAA8BJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAC5F,CAAA,CAEDS,CAAAA,CAAW,WAAA,CAAc,YAAA,CAAA,yFAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B52E7NEF.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Card\n * -------------------------------------------------------------------------- */\n\ntype CardElement = HTMLDivElement;\ntype CardProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst Card = React.forwardRef<CardElement, CardProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('bg-card text-card-foreground rounded-lg border', className)} {...props} />\n));\n\nCard.displayName = 'Card';\n\n/* -----------------------------------------------------------------------------\n * Component: CardHeader\n * -------------------------------------------------------------------------- */\n\ntype CardHeaderElement = HTMLDivElement;\ntype CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst CardHeader = React.forwardRef<CardHeaderElement, CardHeaderProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('flex flex-col space-y-1.5 p-6', className)} {...props} />\n));\n\nCardHeader.displayName = 'CardHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: CardTitle\n * -------------------------------------------------------------------------- */\n\ntype CardTitleElement = HTMLParagraphElement;\ntype CardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst CardTitle = React.forwardRef<CardTitleElement, CardTitleProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <h3 ref={forwardedRef} className={cn('font-semibold leading-none tracking-tight', className)} {...props}>\n {children}\n </h3>\n ),\n);\n\nCardTitle.displayName = 'CardTitle';\n\n/* -----------------------------------------------------------------------------\n * Component: CardDescription\n * -------------------------------------------------------------------------- */\n\ntype CardDescriptionElement = HTMLParagraphElement;\ntype CardDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;\n\nconst CardDescription = React.forwardRef<CardDescriptionElement, CardDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <p ref={forwardedRef} className={cn('text-muted-foreground text-sm', className)} {...props} />\n ),\n);\n\nCardDescription.displayName = 'CardDescription';\n\n/* -----------------------------------------------------------------------------\n * Component: CardContent\n * -------------------------------------------------------------------------- */\n\ntype CardContentElement = HTMLDivElement;\ntype CardContentProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst CardContent = React.forwardRef<CardContentElement, CardContentProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('p-6 pt-0', className)} {...props} />\n));\n\nCardContent.displayName = 'CardContent';\n\n/* -----------------------------------------------------------------------------\n * Component: CardFooter\n * -------------------------------------------------------------------------- */\n\ntype CardFooterElement = HTMLDivElement;\ntype CardFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst CardFooter = React.forwardRef<CardFooterElement, CardFooterProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('flex items-center p-6 pt-0', className)} {...props} />\n));\n\nCardFooter.displayName = 'CardFooter';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardDescription,\n CardContent,\n type CardProps,\n type CardHeaderProps,\n type CardFooterProps,\n type CardTitleProps,\n type CardDescriptionProps,\n type CardContentProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _react = require('react'); var e = _interopRequireWildcard(_react);var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var i=_tailwindvariants.tv.call(void 0, {base:["border-input flex min-h-16 w-full grow rounded-md border bg-transparent py-2 text-sm","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","placeholder:text-muted-foreground","disabled:cursor-default disabled:opacity-50"],variants:{inputSize:{xxs:"px-2.5",xs:"px-2.75",sm:"px-3",md:"px-3.25",lg:"px-3.5",xl:"px-3.75"}},defaultVariants:{inputSize:"md"}}),p= exports.a =e.forwardRef(({className:t,inputSize:a,...r},s)=>_jsxruntime.jsx.call(void 0, "textarea",{ref:s,className:i({className:t,inputSize:a}),...r}));p.displayName="Textarea";exports.a = p;
2
- //# sourceMappingURL=chunk-CP6FV6U7.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/textarea.tsx"],"names":["textareaVariants","tv","Textarea","className","inputSize","props","forwardedRef","jsx"],"mappings":"AAAA,kaAAuB,qDACe,+CAuClC,IAjCEA,CAAAA,CAAmBC,kCAAAA,CACvB,IAAA,CAAM,CACJ,sFAAA,CACA,8EAAA,CACA,mCAAA,CACA,6CACF,CAAA,CACA,QAAA,CAAU,CACR,SAAA,CAAW,CACT,GAAA,CAAK,QAAA,CACL,EAAA,CAAI,SAAA,CACJ,EAAA,CAAI,MAAA,CACJ,EAAA,CAAI,SAAA,CACJ,EAAA,CAAI,QAAA,CACJ,EAAA,CAAI,SACN,CACF,CAAA,CACA,eAAA,CAAiB,CACf,SAAA,CAAW,IACb,CACF,CAAC,CAAA,CAWKC,CAAAA,aAAiB,CAAA,CAAA,UAAA,CACrB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnCC,6BAAAA,UAAC,CAAA,CAAS,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWN,CAAAA,CAAiB,CAAE,SAAA,CAAAG,CAAAA,CAAW,SAAA,CAAAC,CAAU,CAAC,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEnG,CAAA,CAEAH,CAAAA,CAAS,WAAA,CAAc,UAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CP6FV6U7.cjs","sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Textarea\n * -------------------------------------------------------------------------- */\n\nconst textareaVariants = tv({\n base: [\n 'border-input flex min-h-16 w-full grow rounded-md border bg-transparent py-2 text-sm',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'placeholder:text-muted-foreground',\n 'disabled:cursor-default disabled:opacity-50',\n ],\n variants: {\n inputSize: {\n xxs: 'px-2.5',\n xs: 'px-2.75',\n sm: 'px-3',\n md: 'px-3.25',\n lg: 'px-3.5',\n xl: 'px-3.75',\n },\n },\n defaultVariants: {\n inputSize: 'md',\n },\n});\n\ntype TextareaVariantsProps = VariantProps<typeof textareaVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ninterface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, TextareaVariantsProps {}\n\nconst Textarea = React.forwardRef<TextareaElement, TextareaProps>(\n ({ className, inputSize, ...props }, forwardedRef) => (\n <textarea ref={forwardedRef} className={textareaVariants({ className, inputSize })} {...props} />\n ),\n);\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"]}
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-ASPYPA2M.js";import*as d from"react";import{jsx as o}from"react/jsx-runtime";var n=d.forwardRef(({className:e,...t},r)=>o("div",{ref:r,className:a("bg-card text-card-foreground rounded-lg border",e),...t}));n.displayName="Card";var s=d.forwardRef(({className:e,...t},r)=>o("div",{ref:r,className:a("flex flex-col space-y-1.5 p-6",e),...t}));s.displayName="CardHeader";var i=d.forwardRef(({children:e,className:t,...r},p)=>o("h3",{ref:p,className:a("font-semibold leading-none tracking-tight",t),...r,children:e}));i.displayName="CardTitle";var l=d.forwardRef(({className:e,...t},r)=>o("p",{ref:r,className:a("text-muted-foreground text-sm",e),...t}));l.displayName="CardDescription";var C=d.forwardRef(({className:e,...t},r)=>o("div",{ref:r,className:a("p-6 pt-0",e),...t}));C.displayName="CardContent";var m=d.forwardRef(({className:e,...t},r)=>o("div",{ref:r,className:a("flex items-center p-6 pt-0",e),...t}));m.displayName="CardFooter";export{n as a,s as b,i as c,l as d,C as e,m as f};
2
- //# sourceMappingURL=chunk-CSM4BPHK.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/card.tsx"],"names":["React","jsx","Card","className","props","forwardedRef","cn","CardHeader","CardTitle","children","CardDescription","CardContent","CardFooter"],"mappings":"mCAAA,UAAYA,MAAW,QAWrB,cAAAC,MAAA,oBADF,IAAMC,EAAa,aAAmC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC9EJ,EAAC,OAAI,IAAKI,EAAc,UAAWC,EAAG,iDAAkDH,CAAS,EAAI,GAAGC,EAAO,CAChH,EAEDF,EAAK,YAAc,OASnB,IAAMK,EAAmB,aAA+C,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAChGJ,EAAC,OAAI,IAAKI,EAAc,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,CAC/F,EAEDG,EAAW,YAAc,aASzB,IAAMC,EAAkB,aACtB,CAAC,CAAE,SAAAC,EAAU,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IAClCJ,EAAC,MAAG,IAAKI,EAAc,UAAWC,EAAG,4CAA6CH,CAAS,EAAI,GAAGC,EAC/F,SAAAK,EACH,CAEJ,EAEAD,EAAU,YAAc,YASxB,IAAME,EAAwB,aAC5B,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,KAAE,IAAKI,EAAc,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,CAEhG,EAEAM,EAAgB,YAAc,kBAS9B,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,OAAI,IAAKI,EAAc,UAAWC,EAAG,WAAYH,CAAS,EAAI,GAAGC,EAAO,CAC1E,EAEDO,EAAY,YAAc,cAS1B,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IAChGJ,EAAC,OAAI,IAAKI,EAAc,UAAWC,EAAG,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CAC5F,EAEDQ,EAAW,YAAc","sourcesContent":["import * as React from 'react';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Card\n * -------------------------------------------------------------------------- */\n\ntype CardElement = HTMLDivElement;\ntype CardProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst Card = React.forwardRef<CardElement, CardProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('bg-card text-card-foreground rounded-lg border', className)} {...props} />\n));\n\nCard.displayName = 'Card';\n\n/* -----------------------------------------------------------------------------\n * Component: CardHeader\n * -------------------------------------------------------------------------- */\n\ntype CardHeaderElement = HTMLDivElement;\ntype CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst CardHeader = React.forwardRef<CardHeaderElement, CardHeaderProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('flex flex-col space-y-1.5 p-6', className)} {...props} />\n));\n\nCardHeader.displayName = 'CardHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: CardTitle\n * -------------------------------------------------------------------------- */\n\ntype CardTitleElement = HTMLParagraphElement;\ntype CardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst CardTitle = React.forwardRef<CardTitleElement, CardTitleProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <h3 ref={forwardedRef} className={cn('font-semibold leading-none tracking-tight', className)} {...props}>\n {children}\n </h3>\n ),\n);\n\nCardTitle.displayName = 'CardTitle';\n\n/* -----------------------------------------------------------------------------\n * Component: CardDescription\n * -------------------------------------------------------------------------- */\n\ntype CardDescriptionElement = HTMLParagraphElement;\ntype CardDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;\n\nconst CardDescription = React.forwardRef<CardDescriptionElement, CardDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <p ref={forwardedRef} className={cn('text-muted-foreground text-sm', className)} {...props} />\n ),\n);\n\nCardDescription.displayName = 'CardDescription';\n\n/* -----------------------------------------------------------------------------\n * Component: CardContent\n * -------------------------------------------------------------------------- */\n\ntype CardContentElement = HTMLDivElement;\ntype CardContentProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst CardContent = React.forwardRef<CardContentElement, CardContentProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('p-6 pt-0', className)} {...props} />\n));\n\nCardContent.displayName = 'CardContent';\n\n/* -----------------------------------------------------------------------------\n * Component: CardFooter\n * -------------------------------------------------------------------------- */\n\ntype CardFooterElement = HTMLDivElement;\ntype CardFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst CardFooter = React.forwardRef<CardFooterElement, CardFooterProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('flex items-center p-6 pt-0', className)} {...props} />\n));\n\nCardFooter.displayName = 'CardFooter';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardDescription,\n CardContent,\n type CardProps,\n type CardHeaderProps,\n type CardFooterProps,\n type CardTitleProps,\n type CardDescriptionProps,\n type CardContentProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkCDYYO7ULcjs = require('./chunk-CDYYO7UL.cjs');var _reactresizablepanels = require('react-resizable-panels'); var e = _interopRequireWildcard(_reactresizablepanels);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');function f({className:t,...i}){return _jsxruntime.jsx.call(void 0, e.PanelGroup,{className:_chunkCDYYO7ULcjs.a.call(void 0, "flex size-full","data-[panel-group-direction=vertical]:flex-col",t),...i})}var p=e.Panel;function d({withHandle:t,className:i,...l}){return _jsxruntime.jsx.call(void 0, e.PanelResizeHandle,{className:_chunkCDYYO7ULcjs.a.call(void 0, "bg-border relative flex w-px items-center justify-center","after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","data-[panel-group-direction=vertical]:h-px","data-[panel-group-direction=vertical]:w-full","data-[panel-group-direction=vertical]:after:left-0","data-[panel-group-direction=vertical]:after:h-1","data-[panel-group-direction=vertical]:after:w-full","data-[panel-group-direction=vertical]:after:-translate-y-1/2","data-[panel-group-direction=vertical]:after:translate-x-0","[&[data-panel-group-direction=vertical]>div]:rotate-90",i),...l,children:t?_jsxruntime.jsx.call(void 0, "div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",children:_jsxruntime.jsx.call(void 0, _reacticons.DragHandleDots2Icon,{className:"size-2.5"})}):null})}exports.a = f; exports.b = p; exports.c = d;
2
- //# sourceMappingURL=chunk-DLHI7J72.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DLHI7J72.cjs","../src/components/resizable.tsx"],"names":["ResizablePrimitive","className","cn","ResizablePanel","withHandle","jsx","DragHandleDots2Icon"],"mappings":"AAAA,uWAAY,CAAC,wDCGDA,sHACH,mDAYL,+CAJF,SAAAC,CAAAA,CACA,CAAA,SAEA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAClB,CAAA,UAAWC,CAAG,CAAA,SAAA,CAAA,iCAAA,gBAAkB,CAAA,gDAUtC,CAAA,CAAMC,CAAAA,CAAoC,GAAA,CAAA,CAAA,CAAA,CAAA,IAM1C,CAAA,CAAA,CAAA,CAAA,KACE,CAAA,SAAA,CAAAC,CAAAA,CACA,UAAAH,CAAAA,CACA,CAAA,SAIA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAAA,CAAA,iBACPC,CACT,CAAA,SAAA,CAAA,iCAAA,0DACA,CAAA,gFACA,CAAA,8EACA,CAAA,4CACA,CAAA,8CACA,CAAA,oDACA,CAAA,iDACA,CAAA,oDACA,CAAA,8DACA,CAAA,2DACA,CAAA,wDAKD,CAAA,CAAA,CAAA,CAAA,GACCG,CAAAA,CAAC,QAAI,CAAA,CAAA,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,2EACZC,CAAA,QAAoB,CAAA,6BAAA,+BAAU,CAAA,CAAA,SAAW,CAC5C,UAIR,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DLHI7J72.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\nimport { DragHandleDots2Icon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanelGroup\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>): React.JSX.Element {\n return (\n <ResizablePrimitive.PanelGroup\n className={cn('flex size-full', 'data-[panel-group-direction=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanel\n * -------------------------------------------------------------------------- */\n\nconst ResizablePanel = ResizablePrimitive.Panel;\n\n/* -----------------------------------------------------------------------------\n * Component: ResizableHandle\n * -------------------------------------------------------------------------- */\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n withHandle?: boolean;\n}): React.JSX.Element {\n return (\n <ResizablePrimitive.PanelResizeHandle\n className={cn(\n 'bg-border relative flex w-px items-center justify-center',\n 'after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'data-[panel-group-direction=vertical]:h-px',\n 'data-[panel-group-direction=vertical]:w-full',\n 'data-[panel-group-direction=vertical]:after:left-0',\n 'data-[panel-group-direction=vertical]:after:h-1',\n 'data-[panel-group-direction=vertical]:after:w-full',\n 'data-[panel-group-direction=vertical]:after:-translate-y-1/2',\n 'data-[panel-group-direction=vertical]:after:translate-x-0',\n '[&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle ? (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border\">\n <DragHandleDots2Icon className=\"size-2.5\" />\n </div>\n ) : null}\n </ResizablePrimitive.PanelResizeHandle>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as r}from"./chunk-5SBCSCS4.js";import{a as o}from"./chunk-GZWZ3C2B.js";import*as i from"react";import*as e from"@codefast-ui/number-input";import{ChevronDownIcon as C,ChevronUpIcon as y}from"@radix-ui/react-icons";import{jsx as t,jsxs as m}from"react/jsx-runtime";var{root:V,input:g}=o(),B=i.forwardRef(({ariaDecrementLabel:u,ariaIncrementLabel:a,className:p,inputSize:n,defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,...R},h)=>m(e.Root,{ariaDecrementLabel:u,ariaIncrementLabel:a,className:V({inputSize:n,className:["pr-0",p]}),defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,children:[t(e.Item,{ref:h,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:g({inputSize:n}),inputMode:"numeric",spellCheck:"false",...R}),m("div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[t(e.IncrementButton,{className:r({className:"h-full rounded-none rounded-tr-md",icon:!0,variant:"ghost"}),children:t(y,{})}),t(e.DecrementButton,{className:r({className:"rounded-tb-md h-full rounded-none",icon:!0,variant:"ghost"}),children:t(C,{})})]})]}));B.displayName="NumberInput";export{B as a};
2
- //# sourceMappingURL=chunk-DW2IZEQA.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/number-input.tsx"],"names":["React","NumberInputPrimitive","ChevronDownIcon","ChevronUpIcon","jsx","jsxs","root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","buttonVariants"],"mappings":"gFAAA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,4BACtC,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAoDzC,cAAAC,EAUA,QAAAC,MAVA,oBAhDN,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAYhCC,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACAC,IAEApB,EAAsB,OAArB,CACC,mBAAoBK,EACpB,mBAAoBC,EACpB,UAAWL,EAAK,CAAE,UAAAO,EAAW,UAAW,CAAC,OAAQD,CAAS,CAAE,CAAC,EAC7D,aAAcE,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,IAAKC,EACL,IAAKC,EACL,SAAUC,EACV,KAAMC,EACN,MAAOC,EACP,SAAUC,EAEV,UAAAnB,EAAsB,OAArB,CACC,IAAKqB,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWlB,EAAM,CAAE,UAAAM,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGW,EACN,EACAnB,EAAC,OAAI,UAAU,qDACb,UAAAD,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACD,EAAA,EAAc,EACjB,EACAC,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACF,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEAO,EAAY,YAAc","sourcesContent":["import * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast-ui/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ComponentRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-F5F6O3D5.cjs","../src/components/radio.tsx"],"names":["React","className","onChange","jsx","cn","event","props"],"mappings":"AAAA,22BAAY,CAAC,wDCEDA,uEACH,gDAeL,+CAFgB,IAAA,CAAA,CAClB,CAAC,CAAE,UAAAC,CAAAA,CAAW,CAAA,SAAA,CAAA,CAAA,CAAA,aAAeC,CAAU,CAAA,CAAA,QACrCC,CAAAA,CAAC,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CACC,EAAA,6BAAA,OACA,CAAA,CAAA,GAAWC,CAAAA,CACT,CAAA,SAAA,CAAA,iCAAA,6SACA,CAAA,8EACA,CAAA,kDAGG,CAAA,CAAA,CAAA,CACL,IAAA,CAAA,OAA+BF,CAAWG,QAA0BA,CAAM,6CAAA,CAAA,CAAA,CAAA,kBAAA,CAAA,wBAAA,CAAA,CAAA,CAAA,aACtEC,CACN,KAIE,GAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,WAAA,CAAA,OAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-F5F6O3D5.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Radio\n * -------------------------------------------------------------------------- */\n\ntype RadioElement = HTMLInputElement;\n\ninterface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {\n onValueChange?: (value: string) => void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(\n ({ className, onValueChange, onChange, ...props }, forwardedRef) => (\n <input\n ref={forwardedRef}\n className={cn(\n 'before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n type=\"radio\"\n onChange={composeEventHandlers(onChange, (event) => onValueChange?.(event.currentTarget.value))}\n {...props}\n />\n ),\n);\n\nRadio.displayName = 'Radio';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Radio };\n"]}
@@ -1,2 +0,0 @@
1
- import{tv as o}from"tailwind-variants";import{jsx as d,jsxs as p}from"react/jsx-runtime";var c=o({base:["inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md text-sm font-medium","[&_svg]:size-4 [&_svg]:shrink-0"],variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border-input border"},size:{xs:"h-5 gap-2 px-2",sm:"h-6 gap-2.5 px-2.5",md:"h-7 gap-3 px-3",lg:"h-8 gap-3.5 px-3.5",xl:"h-9 gap-3.5 px-3.5"},icon:{true:"px-0"}},compoundVariants:[{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"}],defaultVariants:{icon:!1,size:"md",variant:"default"}});function m({className:a,variant:t,size:s,prefix:r,suffix:n,children:e,...i}){return p("div",{className:c({variant:t,className:a,size:s}),...i,children:[r,typeof e=="string"?d("span",{className:"truncate",children:e}):e,n]})}export{m as a};
2
- //# sourceMappingURL=chunk-FLTWEYQD.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/badge.tsx"],"names":["tv","jsx","jsxs","badgeVariants","Badge","className","variant","size","prefix","suffix","children","props"],"mappings":"AACA,OAAS,MAAAA,MAA6B,oBA2DlC,OAEkC,OAAAC,EAFlC,QAAAC,MAAA,oBArDJ,IAAMC,EAAgBH,EAAG,CACvB,KAAM,CACJ,oGACA,iCACF,EACA,SAAU,CACR,QAAS,CACP,QAAS,qCACT,UAAW,yCACX,KAAM,+BACN,QAAS,qCACT,QAAS,qCACT,YAAa,6CACb,QAAS,mCACX,EACA,KAAM,CACJ,GAAI,iBACJ,GAAI,qBACJ,GAAI,iBACJ,GAAI,qBACJ,GAAI,oBACN,EACA,KAAM,CACJ,KAAM,MACR,CACF,EACA,iBAAkB,CAChB,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,CAC9C,EACA,gBAAiB,CACf,KAAM,GACN,KAAM,KACN,QAAS,SACX,CACF,CAAC,EAaD,SAASI,EAAM,CAAE,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,OAAAC,EAAQ,OAAAC,EAAQ,SAAAC,EAAU,GAAGC,CAAM,EAAkC,CAC9G,OACET,EAAC,OAAI,UAAWC,EAAc,CAAE,QAAAG,EAAS,UAAAD,EAAW,KAAAE,CAAK,CAAC,EAAI,GAAGI,EAC9D,UAAAH,EACA,OAAOE,GAAa,SAAWT,EAAC,QAAK,UAAU,WAAY,SAAAS,EAAS,EAAUA,EAC9ED,GACH,CAEJ","sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: [\n 'inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md text-sm font-medium',\n '[&_svg]:size-4 [&_svg]:shrink-0',\n ],\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground',\n secondary: 'bg-secondary text-secondary-foreground',\n info: 'bg-info text-info-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n destructive: 'bg-destructive text-destructive-foreground',\n outline: 'bg-background border-input border',\n },\n size: {\n xs: 'h-5 gap-2 px-2', // 20px\n sm: 'h-6 gap-2.5 px-2.5', // 24px\n md: 'h-7 gap-3 px-3', // 28px\n lg: 'h-8 gap-3.5 px-3.5', // 32px\n xl: 'h-9 gap-3.5 px-3.5', // 36px\n },\n icon: {\n true: 'px-0',\n },\n },\n compoundVariants: [\n { className: 'w-8', icon: true, size: 'xs' },\n { className: 'w-9', icon: true, size: 'sm' },\n { className: 'w-10', icon: true, size: 'md' },\n { className: 'w-11', icon: true, size: 'lg' },\n { className: 'w-12', icon: true, size: 'xl' },\n ],\n defaultVariants: {\n icon: false,\n size: 'md',\n variant: 'default',\n },\n});\n\ntype BadgeVariantsProps = VariantProps<typeof badgeVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\ninterface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'prefix'>, BadgeVariantsProps {\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nfunction Badge({ className, variant, size, prefix, suffix, children, ...props }: BadgeProps): React.JSX.Element {\n return (\n <div className={badgeVariants({ variant, className, size })} {...props}>\n {prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, type BadgeProps };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-BFSQCLKM.js";import{a as r}from"./chunk-GZWZ3C2B.js";import*as m from"react";import*as t from"@codefast-ui/input";import{jsx as p,jsxs as c}from"react/jsx-runtime";var{root:x,input:R}=r(),P=m.forwardRef(({inputSize:o,className:a,loading:i,loaderPosition:n,prefix:f,suffix:s,...u},I)=>c(t.Root,{className:x({inputSize:o,className:a}),children:[i&&n==="prefix"?p(e,{}):f,p(t.Item,{ref:I,className:R({inputSize:o}),...u}),i&&n==="suffix"?p(e,{}):s]}));P.displayName="TextInput";export{P as a};
2
- //# sourceMappingURL=chunk-GKOMMZKX.js.map