@codefast/ui 0.2.21 → 0.2.23

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 (882) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/{chunk-CWVNPFGZ.js → chunk-2AZ4MW4T.js} +1 -1
  3. package/dist/chunk-2AZ4MW4T.js.map +1 -0
  4. package/dist/chunk-2G5LO5HZ.js +2 -0
  5. package/dist/chunk-2G5LO5HZ.js.map +1 -0
  6. package/dist/chunk-2HOSDLC4.js +2 -0
  7. package/dist/chunk-2HOSDLC4.js.map +1 -0
  8. package/dist/chunk-2L2HVEIN.cjs +2 -0
  9. package/dist/chunk-2L2HVEIN.cjs.map +1 -0
  10. package/dist/chunk-2L4WHNCG.cjs +2 -0
  11. package/dist/chunk-2L4WHNCG.cjs.map +1 -0
  12. package/dist/chunk-2M5ZCWL6.cjs +2 -0
  13. package/dist/chunk-2M5ZCWL6.cjs.map +1 -0
  14. package/dist/chunk-2XAD6KHW.js +2 -0
  15. package/dist/chunk-2XAD6KHW.js.map +1 -0
  16. package/dist/chunk-2YU62UV7.js +2 -0
  17. package/dist/chunk-2YU62UV7.js.map +1 -0
  18. package/dist/chunk-36TQLSGO.js +2 -0
  19. package/dist/chunk-36TQLSGO.js.map +1 -0
  20. package/dist/chunk-3IBICJA2.js +2 -0
  21. package/dist/chunk-3IBICJA2.js.map +1 -0
  22. package/dist/chunk-3QZMPLT7.js +2 -0
  23. package/dist/chunk-3QZMPLT7.js.map +1 -0
  24. package/dist/chunk-46UZJXKE.js +2 -0
  25. package/dist/{chunk-ONG6FJC3.js.map → chunk-46UZJXKE.js.map} +1 -1
  26. package/dist/chunk-56DZBH54.js +2 -0
  27. package/dist/chunk-56DZBH54.js.map +1 -0
  28. package/dist/chunk-5E2J7DPU.cjs +2 -0
  29. package/dist/chunk-5E2J7DPU.cjs.map +1 -0
  30. package/dist/chunk-5JLQL2Z4.js +2 -0
  31. package/dist/chunk-5JLQL2Z4.js.map +1 -0
  32. package/dist/chunk-5JTCBEIB.js +2 -0
  33. package/dist/chunk-5JTCBEIB.js.map +1 -0
  34. package/dist/chunk-5R3KLICJ.js +2 -0
  35. package/dist/chunk-5R3KLICJ.js.map +1 -0
  36. package/dist/chunk-5RCJ2CA5.js +2 -0
  37. package/dist/chunk-5RCJ2CA5.js.map +1 -0
  38. package/dist/chunk-5W4F5LEY.cjs +2 -0
  39. package/dist/chunk-5W4F5LEY.cjs.map +1 -0
  40. package/dist/chunk-6KZJXMIZ.js +2 -0
  41. package/dist/chunk-6KZJXMIZ.js.map +1 -0
  42. package/dist/chunk-6OYF6KIQ.cjs +2 -0
  43. package/dist/chunk-6OYF6KIQ.cjs.map +1 -0
  44. package/dist/chunk-6R5OYVDT.js +2 -0
  45. package/dist/chunk-6R5OYVDT.js.map +1 -0
  46. package/dist/chunk-6SGFVBG5.js +2 -0
  47. package/dist/chunk-6SGFVBG5.js.map +1 -0
  48. package/dist/{chunk-PGKNHNSZ.cjs → chunk-74METGII.cjs} +1 -1
  49. package/dist/chunk-74METGII.cjs.map +1 -0
  50. package/dist/chunk-7C3GHNUL.js +2 -0
  51. package/dist/chunk-7C3GHNUL.js.map +1 -0
  52. package/dist/chunk-7WKGIK6R.js +2 -0
  53. package/dist/chunk-7WKGIK6R.js.map +1 -0
  54. package/dist/chunk-7XBF7UL3.cjs +2 -0
  55. package/dist/chunk-7XBF7UL3.cjs.map +1 -0
  56. package/dist/chunk-AC4NC5OP.js +2 -0
  57. package/dist/chunk-AC4NC5OP.js.map +1 -0
  58. package/dist/chunk-AH4DF7LA.cjs +2 -0
  59. package/dist/chunk-AH4DF7LA.cjs.map +1 -0
  60. package/dist/chunk-AHV24XXG.js +2 -0
  61. package/dist/chunk-AHV24XXG.js.map +1 -0
  62. package/dist/chunk-AK26BZ5A.cjs +2 -0
  63. package/dist/chunk-AK26BZ5A.cjs.map +1 -0
  64. package/dist/chunk-B4LVESKU.cjs +2 -0
  65. package/dist/chunk-B4LVESKU.cjs.map +1 -0
  66. package/dist/chunk-B5JDIHEQ.js +2 -0
  67. package/dist/chunk-B5JDIHEQ.js.map +1 -0
  68. package/dist/chunk-BRDK6TUD.js +2 -0
  69. package/dist/chunk-BRDK6TUD.js.map +1 -0
  70. package/dist/chunk-CPXZI54X.cjs +2 -0
  71. package/dist/chunk-CPXZI54X.cjs.map +1 -0
  72. package/dist/chunk-DASAFOYJ.cjs +2 -0
  73. package/dist/chunk-DASAFOYJ.cjs.map +1 -0
  74. package/dist/chunk-DF5E3FGQ.js +2 -0
  75. package/dist/chunk-DF5E3FGQ.js.map +1 -0
  76. package/dist/chunk-DGWKCJXU.js +2 -0
  77. package/dist/chunk-DGWKCJXU.js.map +1 -0
  78. package/dist/chunk-DN22IF3R.cjs +2 -0
  79. package/dist/chunk-DN22IF3R.cjs.map +1 -0
  80. package/dist/chunk-DOVVSNGI.js +2 -0
  81. package/dist/chunk-DOVVSNGI.js.map +1 -0
  82. package/dist/chunk-DYS3XHVU.js +2 -0
  83. package/dist/chunk-DYS3XHVU.js.map +1 -0
  84. package/dist/{chunk-JJO7PMEV.cjs → chunk-ED6TP6IF.cjs} +1 -1
  85. package/dist/chunk-ED6TP6IF.cjs.map +1 -0
  86. package/dist/chunk-ELW7VMAT.js +2 -0
  87. package/dist/chunk-ELW7VMAT.js.map +1 -0
  88. package/dist/chunk-EN4252DE.js +2 -0
  89. package/dist/chunk-EN4252DE.js.map +1 -0
  90. package/dist/chunk-EPZA4DFY.cjs +2 -0
  91. package/dist/chunk-EPZA4DFY.cjs.map +1 -0
  92. package/dist/chunk-EXR6BMAW.cjs +2 -0
  93. package/dist/chunk-EXR6BMAW.cjs.map +1 -0
  94. package/dist/chunk-F3G3HO4U.js +2 -0
  95. package/dist/chunk-F3G3HO4U.js.map +1 -0
  96. package/dist/chunk-F7CO7P2X.cjs +2 -0
  97. package/dist/chunk-F7CO7P2X.cjs.map +1 -0
  98. package/dist/chunk-FAA5YNDU.cjs +2 -0
  99. package/dist/chunk-FAA5YNDU.cjs.map +1 -0
  100. package/dist/chunk-FKCCIFVX.cjs +2 -0
  101. package/dist/chunk-FKCCIFVX.cjs.map +1 -0
  102. package/dist/{chunk-O4JEAJHY.js → chunk-FOEXS673.js} +2 -2
  103. package/dist/{chunk-O4JEAJHY.js.map → chunk-FOEXS673.js.map} +1 -1
  104. package/dist/chunk-FPNPXEQ5.cjs +2 -0
  105. package/dist/chunk-FPNPXEQ5.cjs.map +1 -0
  106. package/dist/chunk-FTJBXJJT.cjs +2 -0
  107. package/dist/chunk-FTJBXJJT.cjs.map +1 -0
  108. package/dist/chunk-FUY5BCRG.cjs +2 -0
  109. package/dist/chunk-FUY5BCRG.cjs.map +1 -0
  110. package/dist/chunk-G4Y2RF3B.cjs +2 -0
  111. package/dist/chunk-G4Y2RF3B.cjs.map +1 -0
  112. package/dist/chunk-GHBCDBSI.cjs +2 -0
  113. package/dist/chunk-GHBCDBSI.cjs.map +1 -0
  114. package/dist/chunk-GKSJINOA.js +2 -0
  115. package/dist/chunk-GKSJINOA.js.map +1 -0
  116. package/dist/chunk-GQBROHMX.js +2 -0
  117. package/dist/chunk-GQBROHMX.js.map +1 -0
  118. package/dist/chunk-GQFMACBI.js +2 -0
  119. package/dist/chunk-GQFMACBI.js.map +1 -0
  120. package/dist/chunk-GSTVEJ2B.js +2 -0
  121. package/dist/chunk-GSTVEJ2B.js.map +1 -0
  122. package/dist/chunk-H3RTNMRE.cjs +2 -0
  123. package/dist/chunk-H3RTNMRE.cjs.map +1 -0
  124. package/dist/chunk-HQNFEX24.js +2 -0
  125. package/dist/chunk-HQNFEX24.js.map +1 -0
  126. package/dist/chunk-HTT35LDP.cjs +2 -0
  127. package/dist/chunk-HTT35LDP.cjs.map +1 -0
  128. package/dist/chunk-I3Y2WBDC.js +2 -0
  129. package/dist/chunk-I3Y2WBDC.js.map +1 -0
  130. package/dist/chunk-I7AC332J.js +2 -0
  131. package/dist/chunk-I7AC332J.js.map +1 -0
  132. package/dist/chunk-IPVYUKID.cjs +2 -0
  133. package/dist/chunk-IPVYUKID.cjs.map +1 -0
  134. package/dist/chunk-JGFDKJEO.cjs +2 -0
  135. package/dist/chunk-JGFDKJEO.cjs.map +1 -0
  136. package/dist/chunk-K6AMR7HB.js +4 -0
  137. package/dist/chunk-K6AMR7HB.js.map +1 -0
  138. package/dist/chunk-KFKDTLSE.cjs +2 -0
  139. package/dist/chunk-KFKDTLSE.cjs.map +1 -0
  140. package/dist/{chunk-WINMX24N.js → chunk-KKFMDJPU.js} +1 -1
  141. package/dist/chunk-KKFMDJPU.js.map +1 -0
  142. package/dist/chunk-KPBYWGCA.js +2 -0
  143. package/dist/chunk-KPBYWGCA.js.map +1 -0
  144. package/dist/chunk-KUZZFJ27.js +2 -0
  145. package/dist/chunk-KUZZFJ27.js.map +1 -0
  146. package/dist/chunk-L5EJ25IW.cjs +2 -0
  147. package/dist/chunk-L5EJ25IW.cjs.map +1 -0
  148. package/dist/chunk-L66JVA2T.cjs +2 -0
  149. package/dist/chunk-L66JVA2T.cjs.map +1 -0
  150. package/dist/chunk-LBFHFIWF.cjs +2 -0
  151. package/dist/chunk-LBFHFIWF.cjs.map +1 -0
  152. package/dist/chunk-LBR5P32R.cjs +2 -0
  153. package/dist/chunk-LBR5P32R.cjs.map +1 -0
  154. package/dist/chunk-LCBT7M2G.cjs +2 -0
  155. package/dist/chunk-LCBT7M2G.cjs.map +1 -0
  156. package/dist/chunk-LGRBC237.cjs +2 -0
  157. package/dist/chunk-LGRBC237.cjs.map +1 -0
  158. package/dist/chunk-LL6U4F5L.cjs +2 -0
  159. package/dist/chunk-LL6U4F5L.cjs.map +1 -0
  160. package/dist/chunk-LYC4EOET.js +2 -0
  161. package/dist/chunk-LYC4EOET.js.map +1 -0
  162. package/dist/chunk-M5PELNCO.cjs +2 -0
  163. package/dist/chunk-M5PELNCO.cjs.map +1 -0
  164. package/dist/chunk-MSMFJJJK.js +2 -0
  165. package/dist/chunk-MSMFJJJK.js.map +1 -0
  166. package/dist/chunk-MV76L4ZA.js +2 -0
  167. package/dist/chunk-MV76L4ZA.js.map +1 -0
  168. package/dist/chunk-MXQHUOX4.cjs +2 -0
  169. package/dist/chunk-MXQHUOX4.cjs.map +1 -0
  170. package/dist/chunk-N2CT5IQU.cjs +2 -0
  171. package/dist/chunk-N2CT5IQU.cjs.map +1 -0
  172. package/dist/chunk-NCTOUF4A.js +2 -0
  173. package/dist/chunk-NCTOUF4A.js.map +1 -0
  174. package/dist/chunk-NW3SJJ6F.js +2 -0
  175. package/dist/chunk-NW3SJJ6F.js.map +1 -0
  176. package/dist/chunk-NZQFRV3L.js +2 -0
  177. package/dist/chunk-NZQFRV3L.js.map +1 -0
  178. package/dist/chunk-OMGYMSUC.cjs +2 -0
  179. package/dist/chunk-OMGYMSUC.cjs.map +1 -0
  180. package/dist/chunk-OPFM64WD.js +2 -0
  181. package/dist/chunk-OPFM64WD.js.map +1 -0
  182. package/dist/chunk-P22LSKVX.cjs +2 -0
  183. package/dist/chunk-P22LSKVX.cjs.map +1 -0
  184. package/dist/chunk-PDCYBUPT.cjs +2 -0
  185. package/dist/chunk-PDCYBUPT.cjs.map +1 -0
  186. package/dist/chunk-PRRPNTUI.js +2 -0
  187. package/dist/chunk-PRRPNTUI.js.map +1 -0
  188. package/dist/{chunk-HHIW2OAJ.cjs → chunk-PSMKNPRZ.cjs} +2 -2
  189. package/dist/chunk-PSMKNPRZ.cjs.map +1 -0
  190. package/dist/chunk-PSPEP5YX.cjs +2 -0
  191. package/dist/chunk-PSPEP5YX.cjs.map +1 -0
  192. package/dist/chunk-PUZM4GY5.js +2 -0
  193. package/dist/chunk-PUZM4GY5.js.map +1 -0
  194. package/dist/chunk-PWYE6IXW.js +2 -0
  195. package/dist/chunk-PWYE6IXW.js.map +1 -0
  196. package/dist/chunk-Q42ORKLQ.js +2 -0
  197. package/dist/chunk-Q42ORKLQ.js.map +1 -0
  198. package/dist/chunk-QECIHHCA.js +2 -0
  199. package/dist/chunk-QECIHHCA.js.map +1 -0
  200. package/dist/chunk-QGZBS6HG.cjs +2 -0
  201. package/dist/chunk-QGZBS6HG.cjs.map +1 -0
  202. package/dist/chunk-QJ4H3B5E.cjs +2 -0
  203. package/dist/chunk-QJ4H3B5E.cjs.map +1 -0
  204. package/dist/chunk-QW4LAXTT.js +2 -0
  205. package/dist/chunk-QW4LAXTT.js.map +1 -0
  206. package/dist/{chunk-FUB2H2ZT.cjs → chunk-ROUDG6I5.cjs} +2 -2
  207. package/dist/{chunk-FUB2H2ZT.cjs.map → chunk-ROUDG6I5.cjs.map} +1 -1
  208. package/dist/chunk-RWFLRGFY.js +2 -0
  209. package/dist/chunk-RWFLRGFY.js.map +1 -0
  210. package/dist/chunk-S2AC4OIH.js +2 -0
  211. package/dist/chunk-S2AC4OIH.js.map +1 -0
  212. package/dist/chunk-S5BO3QAZ.cjs +2 -0
  213. package/dist/chunk-S5BO3QAZ.cjs.map +1 -0
  214. package/dist/chunk-SAKEXTVW.cjs +2 -0
  215. package/dist/chunk-SAKEXTVW.cjs.map +1 -0
  216. package/dist/chunk-SLERFKD5.cjs +2 -0
  217. package/dist/chunk-SLERFKD5.cjs.map +1 -0
  218. package/dist/chunk-SSQYBXI5.js +2 -0
  219. package/dist/chunk-SSQYBXI5.js.map +1 -0
  220. package/dist/chunk-SV5GCOQH.js +2 -0
  221. package/dist/chunk-SV5GCOQH.js.map +1 -0
  222. package/dist/chunk-TB5KON56.cjs +2 -0
  223. package/dist/chunk-TB5KON56.cjs.map +1 -0
  224. package/dist/chunk-TKY35TYR.cjs +2 -0
  225. package/dist/chunk-TKY35TYR.cjs.map +1 -0
  226. package/dist/chunk-TMUS6GR6.cjs +2 -0
  227. package/dist/chunk-TMUS6GR6.cjs.map +1 -0
  228. package/dist/chunk-TQOYB7RE.js +2 -0
  229. package/dist/chunk-TQOYB7RE.js.map +1 -0
  230. package/dist/chunk-TQS2T4UF.cjs +2 -0
  231. package/dist/chunk-TQS2T4UF.cjs.map +1 -0
  232. package/dist/chunk-TRE4LNFF.cjs +2 -0
  233. package/dist/chunk-TRE4LNFF.cjs.map +1 -0
  234. package/dist/chunk-UHEK23BA.js +2 -0
  235. package/dist/chunk-UHEK23BA.js.map +1 -0
  236. package/dist/chunk-UMQYGDKC.js +2 -0
  237. package/dist/chunk-UMQYGDKC.js.map +1 -0
  238. package/dist/chunk-UQQOY6LC.cjs +4 -0
  239. package/dist/chunk-UQQOY6LC.cjs.map +1 -0
  240. package/dist/chunk-UVQOZN2C.js +2 -0
  241. package/dist/chunk-UVQOZN2C.js.map +1 -0
  242. package/dist/chunk-UZN2GPZF.cjs +2 -0
  243. package/dist/chunk-UZN2GPZF.cjs.map +1 -0
  244. package/dist/chunk-VAXPVVJM.cjs +2 -0
  245. package/dist/chunk-VAXPVVJM.cjs.map +1 -0
  246. package/dist/chunk-VGH6WZ27.cjs +2 -0
  247. package/dist/chunk-VGH6WZ27.cjs.map +1 -0
  248. package/dist/chunk-VJVQDA2U.cjs +2 -0
  249. package/dist/chunk-VJVQDA2U.cjs.map +1 -0
  250. package/dist/chunk-VKEABMKB.cjs +2 -0
  251. package/dist/chunk-VKEABMKB.cjs.map +1 -0
  252. package/dist/chunk-W37H7BDD.cjs +2 -0
  253. package/dist/chunk-W37H7BDD.cjs.map +1 -0
  254. package/dist/chunk-W4K2HV3N.js +2 -0
  255. package/dist/chunk-W4K2HV3N.js.map +1 -0
  256. package/dist/chunk-W54IWHIP.cjs +2 -0
  257. package/dist/chunk-W54IWHIP.cjs.map +1 -0
  258. package/dist/chunk-WLSDH632.cjs +2 -0
  259. package/dist/chunk-WLSDH632.cjs.map +1 -0
  260. package/dist/chunk-WORVCHTL.js +2 -0
  261. package/dist/chunk-WORVCHTL.js.map +1 -0
  262. package/dist/chunk-XD3TYBKN.cjs +2 -0
  263. package/dist/chunk-XD3TYBKN.cjs.map +1 -0
  264. package/dist/chunk-XRPTNXUT.cjs +2 -0
  265. package/dist/chunk-XRPTNXUT.cjs.map +1 -0
  266. package/dist/chunk-XS5HZGLK.cjs +2 -0
  267. package/dist/chunk-XS5HZGLK.cjs.map +1 -0
  268. package/dist/chunk-Y5CLDL4K.js +2 -0
  269. package/dist/chunk-Y5CLDL4K.js.map +1 -0
  270. package/dist/chunk-YAN5V5Z5.cjs +2 -0
  271. package/dist/chunk-YAN5V5Z5.cjs.map +1 -0
  272. package/dist/{chunk-YTMAEFIO.js → chunk-YNPLLYMG.js} +2 -2
  273. package/dist/chunk-YNPLLYMG.js.map +1 -0
  274. package/dist/chunk-YOKFNKGO.js +2 -0
  275. package/dist/chunk-YOKFNKGO.js.map +1 -0
  276. package/dist/chunk-ZMX5EHEH.cjs +2 -0
  277. package/dist/chunk-ZMX5EHEH.cjs.map +1 -0
  278. package/dist/chunk-ZURHQEH5.js +2 -0
  279. package/dist/chunk-ZURHQEH5.js.map +1 -0
  280. package/dist/chunk-ZVWGYKHD.js +2 -0
  281. package/dist/chunk-ZVWGYKHD.js.map +1 -0
  282. package/dist/components/accordion.cjs +1 -1
  283. package/dist/components/accordion.d.cts +8 -8
  284. package/dist/components/accordion.d.ts +8 -8
  285. package/dist/components/accordion.js +1 -1
  286. package/dist/components/alert-dialog.cjs +1 -1
  287. package/dist/components/alert-dialog.d.cts +15 -15
  288. package/dist/components/alert-dialog.d.ts +15 -15
  289. package/dist/components/alert-dialog.js +1 -1
  290. package/dist/components/alert.cjs +1 -1
  291. package/dist/components/alert.d.cts +35 -8
  292. package/dist/components/alert.d.ts +35 -8
  293. package/dist/components/alert.js +1 -1
  294. package/dist/components/aspect-ratio.cjs +1 -1
  295. package/dist/components/aspect-ratio.d.cts +2 -2
  296. package/dist/components/aspect-ratio.d.ts +2 -2
  297. package/dist/components/aspect-ratio.js +1 -1
  298. package/dist/components/avatar.cjs +1 -1
  299. package/dist/components/avatar.d.cts +7 -8
  300. package/dist/components/avatar.d.ts +7 -8
  301. package/dist/components/avatar.js +1 -1
  302. package/dist/components/badge.cjs +1 -1
  303. package/dist/components/badge.d.cts +2 -2
  304. package/dist/components/badge.d.ts +2 -2
  305. package/dist/components/badge.js +1 -1
  306. package/dist/components/blockquote.cjs +1 -1
  307. package/dist/components/blockquote.d.cts +3 -4
  308. package/dist/components/blockquote.d.ts +3 -4
  309. package/dist/components/blockquote.js +1 -1
  310. package/dist/components/box.cjs +1 -1
  311. package/dist/components/box.d.cts +4 -11
  312. package/dist/components/box.d.ts +4 -11
  313. package/dist/components/box.js +1 -1
  314. package/dist/components/breadcrumb.cjs +1 -1
  315. package/dist/components/breadcrumb.d.cts +13 -14
  316. package/dist/components/breadcrumb.d.ts +13 -14
  317. package/dist/components/breadcrumb.js +1 -1
  318. package/dist/components/button.cjs +1 -1
  319. package/dist/components/button.d.cts +3 -4
  320. package/dist/components/button.d.ts +3 -4
  321. package/dist/components/button.js +1 -1
  322. package/dist/components/calendar.cjs +1 -1
  323. package/dist/components/calendar.d.cts +3 -3
  324. package/dist/components/calendar.d.ts +3 -3
  325. package/dist/components/calendar.js +1 -1
  326. package/dist/components/card.cjs +1 -1
  327. package/dist/components/card.d.cts +13 -14
  328. package/dist/components/card.d.ts +13 -14
  329. package/dist/components/card.js +1 -1
  330. package/dist/components/carousel.cjs +1 -1
  331. package/dist/components/carousel.d.cts +13 -10
  332. package/dist/components/carousel.d.ts +13 -10
  333. package/dist/components/carousel.js +1 -1
  334. package/dist/components/chart.cjs +1 -1
  335. package/dist/components/chart.d.cts +4 -6
  336. package/dist/components/chart.d.ts +4 -6
  337. package/dist/components/chart.js +1 -1
  338. package/dist/components/checkbox-cards.cjs +1 -1
  339. package/dist/components/checkbox-cards.d.cts +5 -6
  340. package/dist/components/checkbox-cards.d.ts +5 -6
  341. package/dist/components/checkbox-cards.js +1 -1
  342. package/dist/components/checkbox-group.cjs +1 -1
  343. package/dist/components/checkbox-group.d.cts +5 -6
  344. package/dist/components/checkbox-group.d.ts +5 -6
  345. package/dist/components/checkbox-group.js +1 -1
  346. package/dist/components/checkbox.cjs +1 -1
  347. package/dist/components/checkbox.d.cts +3 -4
  348. package/dist/components/checkbox.d.ts +3 -4
  349. package/dist/components/checkbox.js +1 -1
  350. package/dist/components/code.cjs +1 -1
  351. package/dist/components/code.d.cts +3 -4
  352. package/dist/components/code.d.ts +3 -4
  353. package/dist/components/code.js +1 -1
  354. package/dist/components/collapsible.cjs +1 -1
  355. package/dist/components/collapsible.d.cts +5 -5
  356. package/dist/components/collapsible.d.ts +5 -5
  357. package/dist/components/collapsible.js +1 -1
  358. package/dist/components/command.cjs +1 -1
  359. package/dist/components/command.d.cts +18 -93
  360. package/dist/components/command.d.ts +18 -93
  361. package/dist/components/command.js +1 -1
  362. package/dist/components/container.cjs +1 -1
  363. package/dist/components/container.d.cts +3 -4
  364. package/dist/components/container.d.ts +3 -4
  365. package/dist/components/container.js +1 -1
  366. package/dist/components/context-menu.cjs +1 -1
  367. package/dist/components/context-menu.d.cts +22 -22
  368. package/dist/components/context-menu.d.ts +22 -22
  369. package/dist/components/context-menu.js +1 -1
  370. package/dist/components/data-table.cjs +1 -1
  371. package/dist/components/data-table.d.cts +2 -2
  372. package/dist/components/data-table.d.ts +2 -2
  373. package/dist/components/data-table.js +1 -1
  374. package/dist/components/dialog.cjs +1 -1
  375. package/dist/components/dialog.d.cts +13 -13
  376. package/dist/components/dialog.d.ts +13 -13
  377. package/dist/components/dialog.js +1 -1
  378. package/dist/components/drawer.cjs +1 -1
  379. package/dist/components/drawer.d.cts +13 -13
  380. package/dist/components/drawer.d.ts +13 -13
  381. package/dist/components/drawer.js +1 -1
  382. package/dist/components/dropdown-menu.cjs +1 -1
  383. package/dist/components/dropdown-menu.d.cts +22 -22
  384. package/dist/components/dropdown-menu.d.ts +22 -22
  385. package/dist/components/dropdown-menu.js +1 -1
  386. package/dist/components/em.cjs +1 -1
  387. package/dist/components/em.d.cts +3 -4
  388. package/dist/components/em.d.ts +3 -4
  389. package/dist/components/em.js +1 -1
  390. package/dist/components/form.cjs +1 -1
  391. package/dist/components/form.d.cts +18 -14
  392. package/dist/components/form.d.ts +18 -14
  393. package/dist/components/form.js +1 -1
  394. package/dist/components/heading.cjs +1 -1
  395. package/dist/components/heading.d.cts +3 -4
  396. package/dist/components/heading.d.ts +3 -4
  397. package/dist/components/heading.js +1 -1
  398. package/dist/components/hover-card.cjs +1 -1
  399. package/dist/components/hover-card.d.cts +6 -6
  400. package/dist/components/hover-card.d.ts +6 -6
  401. package/dist/components/hover-card.js +1 -1
  402. package/dist/components/inline.cjs +2 -0
  403. package/dist/components/inline.cjs.map +1 -0
  404. package/dist/components/inline.d.cts +8 -0
  405. package/dist/components/inline.d.ts +8 -0
  406. package/dist/components/inline.js +2 -0
  407. package/dist/components/input-date.cjs +1 -0
  408. package/dist/components/{date-input.cjs.map → input-date.cjs.map} +1 -1
  409. package/dist/components/input-date.js +1 -0
  410. package/dist/components/input-number.cjs +2 -0
  411. package/dist/components/input-number.cjs.map +1 -0
  412. package/dist/components/input-number.d.cts +23 -0
  413. package/dist/components/input-number.d.ts +23 -0
  414. package/dist/components/input-number.js +2 -0
  415. package/dist/components/input-otp.cjs +1 -1
  416. package/dist/components/input-otp.d.cts +9 -10
  417. package/dist/components/input-otp.d.ts +9 -10
  418. package/dist/components/input-otp.js +1 -1
  419. package/dist/components/input-password.cjs +2 -0
  420. package/dist/components/input-password.cjs.map +1 -0
  421. package/dist/components/input-password.d.cts +23 -0
  422. package/dist/components/input-password.d.ts +23 -0
  423. package/dist/components/input-password.js +2 -0
  424. package/dist/components/input-search.cjs +2 -0
  425. package/dist/components/input-search.cjs.map +1 -0
  426. package/dist/components/input-search.d.cts +26 -0
  427. package/dist/components/input-search.d.ts +26 -0
  428. package/dist/components/input-search.js +2 -0
  429. package/dist/components/input-time.cjs +1 -0
  430. package/dist/components/{time-input.cjs.map → input-time.cjs.map} +1 -1
  431. package/dist/components/input-time.js +1 -0
  432. package/dist/components/input.cjs +2 -0
  433. package/dist/components/input.cjs.map +1 -0
  434. package/dist/components/input.d.cts +24 -0
  435. package/dist/components/input.d.ts +24 -0
  436. package/dist/components/input.js +2 -0
  437. package/dist/components/input.js.map +1 -0
  438. package/dist/components/kbd.cjs +1 -1
  439. package/dist/components/kbd.d.cts +3 -4
  440. package/dist/components/kbd.d.ts +3 -4
  441. package/dist/components/kbd.js +1 -1
  442. package/dist/components/label.cjs +1 -1
  443. package/dist/components/label.d.cts +3 -4
  444. package/dist/components/label.d.ts +3 -4
  445. package/dist/components/label.js +1 -1
  446. package/dist/components/menubar.cjs +1 -1
  447. package/dist/components/menubar.d.cts +26 -26
  448. package/dist/components/menubar.d.ts +26 -26
  449. package/dist/components/menubar.js +1 -1
  450. package/dist/components/navigation-menu.cjs +1 -1
  451. package/dist/components/navigation-menu.d.cts +11 -11
  452. package/dist/components/navigation-menu.d.ts +11 -11
  453. package/dist/components/navigation-menu.js +1 -1
  454. package/dist/components/pagination.cjs +1 -1
  455. package/dist/components/pagination.d.cts +8 -9
  456. package/dist/components/pagination.d.ts +8 -9
  457. package/dist/components/pagination.js +1 -1
  458. package/dist/components/popover.cjs +1 -1
  459. package/dist/components/popover.d.cts +7 -7
  460. package/dist/components/popover.d.ts +7 -7
  461. package/dist/components/popover.js +1 -1
  462. package/dist/components/pre.cjs +1 -1
  463. package/dist/components/pre.d.cts +3 -4
  464. package/dist/components/pre.d.ts +3 -4
  465. package/dist/components/pre.js +1 -1
  466. package/dist/components/progress.cjs +1 -1
  467. package/dist/components/progress.d.cts +3 -4
  468. package/dist/components/progress.d.ts +3 -4
  469. package/dist/components/progress.js +1 -1
  470. package/dist/components/quote.cjs +1 -1
  471. package/dist/components/quote.d.cts +3 -4
  472. package/dist/components/quote.d.ts +3 -4
  473. package/dist/components/quote.js +1 -1
  474. package/dist/components/radio-cards.cjs +1 -1
  475. package/dist/components/radio-cards.d.cts +5 -6
  476. package/dist/components/radio-cards.d.ts +5 -6
  477. package/dist/components/radio-cards.js +1 -1
  478. package/dist/components/radio-group.cjs +1 -1
  479. package/dist/components/radio-group.d.cts +5 -6
  480. package/dist/components/radio-group.d.ts +5 -6
  481. package/dist/components/radio-group.js +1 -1
  482. package/dist/components/radio.cjs +1 -1
  483. package/dist/components/radio.d.cts +3 -4
  484. package/dist/components/radio.d.ts +3 -4
  485. package/dist/components/radio.js +1 -1
  486. package/dist/components/resizable.d.cts +1 -1
  487. package/dist/components/resizable.d.ts +1 -1
  488. package/dist/components/scroll-area.cjs +1 -1
  489. package/dist/components/scroll-area.d.cts +9 -6
  490. package/dist/components/scroll-area.d.ts +9 -6
  491. package/dist/components/scroll-area.js +1 -1
  492. package/dist/components/section.cjs +1 -1
  493. package/dist/components/section.d.cts +3 -4
  494. package/dist/components/section.d.ts +3 -4
  495. package/dist/components/section.js +1 -1
  496. package/dist/components/select.cjs +1 -1
  497. package/dist/components/select.d.cts +17 -17
  498. package/dist/components/select.d.ts +17 -17
  499. package/dist/components/select.js +1 -1
  500. package/dist/components/separator.cjs +1 -1
  501. package/dist/components/separator.d.cts +5 -6
  502. package/dist/components/separator.d.ts +5 -6
  503. package/dist/components/separator.js +1 -1
  504. package/dist/components/sheet.cjs +1 -1
  505. package/dist/components/sheet.d.cts +13 -16
  506. package/dist/components/sheet.d.ts +13 -16
  507. package/dist/components/sheet.js +1 -1
  508. package/dist/components/sidebar.cjs +1 -1
  509. package/dist/components/sidebar.d.cts +46 -31
  510. package/dist/components/sidebar.d.ts +46 -31
  511. package/dist/components/sidebar.js +1 -1
  512. package/dist/components/skeleton.cjs +1 -1
  513. package/dist/components/skeleton.d.cts +2 -2
  514. package/dist/components/skeleton.d.ts +2 -2
  515. package/dist/components/skeleton.js +1 -1
  516. package/dist/components/slider.cjs +1 -1
  517. package/dist/components/slider.d.cts +3 -4
  518. package/dist/components/slider.d.ts +3 -4
  519. package/dist/components/slider.js +1 -1
  520. package/dist/components/spinner.cjs +1 -1
  521. package/dist/components/spinner.d.cts +3 -4
  522. package/dist/components/spinner.d.ts +3 -4
  523. package/dist/components/spinner.js +1 -1
  524. package/dist/components/strong.cjs +1 -1
  525. package/dist/components/strong.d.cts +3 -4
  526. package/dist/components/strong.d.ts +3 -4
  527. package/dist/components/strong.js +1 -1
  528. package/dist/components/switch.cjs +1 -1
  529. package/dist/components/switch.d.cts +3 -4
  530. package/dist/components/switch.d.ts +3 -4
  531. package/dist/components/switch.js +1 -1
  532. package/dist/components/table.cjs +1 -1
  533. package/dist/components/table.d.cts +17 -18
  534. package/dist/components/table.d.ts +17 -18
  535. package/dist/components/table.js +1 -1
  536. package/dist/components/tabs.cjs +1 -1
  537. package/dist/components/tabs.d.cts +8 -8
  538. package/dist/components/tabs.d.ts +8 -8
  539. package/dist/components/tabs.js +1 -1
  540. package/dist/components/text.cjs +1 -1
  541. package/dist/components/text.d.cts +4 -11
  542. package/dist/components/text.d.ts +4 -11
  543. package/dist/components/text.js +1 -1
  544. package/dist/components/textarea.cjs +1 -1
  545. package/dist/components/textarea.d.cts +3 -4
  546. package/dist/components/textarea.d.ts +3 -4
  547. package/dist/components/textarea.js +1 -1
  548. package/dist/components/toggle-group.cjs +1 -1
  549. package/dist/components/toggle-group.d.cts +9 -6
  550. package/dist/components/toggle-group.d.ts +9 -6
  551. package/dist/components/toggle-group.js +1 -1
  552. package/dist/components/toggle.cjs +1 -1
  553. package/dist/components/toggle.d.cts +3 -4
  554. package/dist/components/toggle.d.ts +3 -4
  555. package/dist/components/toggle.js +1 -1
  556. package/dist/components/tooltip.cjs +1 -1
  557. package/dist/components/tooltip.d.cts +6 -6
  558. package/dist/components/tooltip.d.ts +6 -6
  559. package/dist/components/tooltip.js +1 -1
  560. package/dist/index.cjs +1 -1
  561. package/dist/index.cjs.map +1 -1
  562. package/dist/index.css +2 -0
  563. package/dist/index.css.map +1 -0
  564. package/dist/index.d.cts +7 -6
  565. package/dist/index.d.ts +7 -6
  566. package/dist/index.js +1 -1
  567. package/dist/lib/logger.cjs +1 -1
  568. package/dist/lib/logger.js +1 -1
  569. package/dist/variants/button.variants.cjs +1 -1
  570. package/dist/variants/button.variants.js +1 -1
  571. package/dist/variants/input.variants.cjs +1 -1
  572. package/dist/variants/input.variants.js +1 -1
  573. package/dist/variants/toggle.variants.cjs +1 -1
  574. package/dist/variants/toggle.variants.js +1 -1
  575. package/package.json +13 -23
  576. package/dist/chunk-2ZIUMXJL.js +0 -2
  577. package/dist/chunk-2ZIUMXJL.js.map +0 -1
  578. package/dist/chunk-2ZVAHJC5.cjs +0 -2
  579. package/dist/chunk-2ZVAHJC5.cjs.map +0 -1
  580. package/dist/chunk-45RGI67J.js +0 -2
  581. package/dist/chunk-45RGI67J.js.map +0 -1
  582. package/dist/chunk-52FUUUAT.cjs +0 -2
  583. package/dist/chunk-52FUUUAT.cjs.map +0 -1
  584. package/dist/chunk-52I32LFH.js +0 -2
  585. package/dist/chunk-52I32LFH.js.map +0 -1
  586. package/dist/chunk-547HQJXN.js +0 -2
  587. package/dist/chunk-547HQJXN.js.map +0 -1
  588. package/dist/chunk-5KGNKFJO.cjs +0 -2
  589. package/dist/chunk-5KGNKFJO.cjs.map +0 -1
  590. package/dist/chunk-5RVWP7Q4.js +0 -2
  591. package/dist/chunk-5RVWP7Q4.js.map +0 -1
  592. package/dist/chunk-5WX3E22K.cjs +0 -2
  593. package/dist/chunk-5WX3E22K.cjs.map +0 -1
  594. package/dist/chunk-66MO6DAY.cjs +0 -2
  595. package/dist/chunk-66MO6DAY.cjs.map +0 -1
  596. package/dist/chunk-6B3YF3IH.cjs +0 -2
  597. package/dist/chunk-6B3YF3IH.cjs.map +0 -1
  598. package/dist/chunk-6BPCA2UK.js +0 -2
  599. package/dist/chunk-6BPCA2UK.js.map +0 -1
  600. package/dist/chunk-6ZIF4ES2.cjs +0 -2
  601. package/dist/chunk-6ZIF4ES2.cjs.map +0 -1
  602. package/dist/chunk-74A64SI7.cjs +0 -2
  603. package/dist/chunk-74A64SI7.cjs.map +0 -1
  604. package/dist/chunk-764JFU7M.js +0 -2
  605. package/dist/chunk-764JFU7M.js.map +0 -1
  606. package/dist/chunk-76MLSKFL.cjs +0 -2
  607. package/dist/chunk-76MLSKFL.cjs.map +0 -1
  608. package/dist/chunk-7IRLNKRH.js +0 -2
  609. package/dist/chunk-7IRLNKRH.js.map +0 -1
  610. package/dist/chunk-7O7NEEJS.cjs +0 -2
  611. package/dist/chunk-7O7NEEJS.cjs.map +0 -1
  612. package/dist/chunk-7OD7EXHF.cjs +0 -2
  613. package/dist/chunk-7OD7EXHF.cjs.map +0 -1
  614. package/dist/chunk-7OKUSMS6.js +0 -2
  615. package/dist/chunk-7OKUSMS6.js.map +0 -1
  616. package/dist/chunk-7VFYGNMV.cjs +0 -2
  617. package/dist/chunk-7VFYGNMV.cjs.map +0 -1
  618. package/dist/chunk-A4Q3AGQO.js +0 -2
  619. package/dist/chunk-A4Q3AGQO.js.map +0 -1
  620. package/dist/chunk-A5NGUXUY.cjs +0 -2
  621. package/dist/chunk-A5NGUXUY.cjs.map +0 -1
  622. package/dist/chunk-AG65DRUN.cjs +0 -2
  623. package/dist/chunk-AG65DRUN.cjs.map +0 -1
  624. package/dist/chunk-AGEJV2G2.cjs +0 -2
  625. package/dist/chunk-AGEJV2G2.cjs.map +0 -1
  626. package/dist/chunk-AGY7ZINL.js +0 -2
  627. package/dist/chunk-AGY7ZINL.js.map +0 -1
  628. package/dist/chunk-AHBQLOBK.cjs +0 -2
  629. package/dist/chunk-AHBQLOBK.cjs.map +0 -1
  630. package/dist/chunk-AJF4C2PG.js +0 -2
  631. package/dist/chunk-AJF4C2PG.js.map +0 -1
  632. package/dist/chunk-ALGR2QZO.js +0 -2
  633. package/dist/chunk-ALGR2QZO.js.map +0 -1
  634. package/dist/chunk-BTBWKZ7N.js +0 -2
  635. package/dist/chunk-BTBWKZ7N.js.map +0 -1
  636. package/dist/chunk-C63DBBCU.cjs +0 -2
  637. package/dist/chunk-C63DBBCU.cjs.map +0 -1
  638. package/dist/chunk-CFKYPZPV.js +0 -2
  639. package/dist/chunk-CFKYPZPV.js.map +0 -1
  640. package/dist/chunk-CNNZ4CBV.js +0 -2
  641. package/dist/chunk-CNNZ4CBV.js.map +0 -1
  642. package/dist/chunk-CPB4XAH2.cjs +0 -2
  643. package/dist/chunk-CPB4XAH2.cjs.map +0 -1
  644. package/dist/chunk-CWVNPFGZ.js.map +0 -1
  645. package/dist/chunk-DGSAJEDX.js +0 -2
  646. package/dist/chunk-DGSAJEDX.js.map +0 -1
  647. package/dist/chunk-DH2QPMS3.js +0 -4
  648. package/dist/chunk-DH2QPMS3.js.map +0 -1
  649. package/dist/chunk-DSTWRI26.js +0 -2
  650. package/dist/chunk-DSTWRI26.js.map +0 -1
  651. package/dist/chunk-E2AUOQNL.js +0 -2
  652. package/dist/chunk-E2AUOQNL.js.map +0 -1
  653. package/dist/chunk-EE45TSID.js +0 -2
  654. package/dist/chunk-EE45TSID.js.map +0 -1
  655. package/dist/chunk-EGUXWW4L.js +0 -2
  656. package/dist/chunk-EGUXWW4L.js.map +0 -1
  657. package/dist/chunk-EHCHG3Q5.js +0 -2
  658. package/dist/chunk-EHCHG3Q5.js.map +0 -1
  659. package/dist/chunk-EOQH4ICW.cjs +0 -2
  660. package/dist/chunk-EOQH4ICW.cjs.map +0 -1
  661. package/dist/chunk-ETTCZZHO.cjs +0 -2
  662. package/dist/chunk-ETTCZZHO.cjs.map +0 -1
  663. package/dist/chunk-EXXVHJRK.cjs +0 -2
  664. package/dist/chunk-EXXVHJRK.cjs.map +0 -1
  665. package/dist/chunk-F2ZWRHNK.js +0 -2
  666. package/dist/chunk-F2ZWRHNK.js.map +0 -1
  667. package/dist/chunk-FGNXNSKE.cjs +0 -2
  668. package/dist/chunk-FGNXNSKE.cjs.map +0 -1
  669. package/dist/chunk-FJE4N26U.js +0 -2
  670. package/dist/chunk-FJE4N26U.js.map +0 -1
  671. package/dist/chunk-FKSF4GPI.js +0 -2
  672. package/dist/chunk-FKSF4GPI.js.map +0 -1
  673. package/dist/chunk-FWHPH2M5.js +0 -2
  674. package/dist/chunk-FWHPH2M5.js.map +0 -1
  675. package/dist/chunk-GCAPRTP7.cjs +0 -2
  676. package/dist/chunk-GCAPRTP7.cjs.map +0 -1
  677. package/dist/chunk-GFCGQ4ND.js +0 -2
  678. package/dist/chunk-GFCGQ4ND.js.map +0 -1
  679. package/dist/chunk-GKF3IDHP.cjs +0 -2
  680. package/dist/chunk-GKF3IDHP.cjs.map +0 -1
  681. package/dist/chunk-GLLIVC35.cjs +0 -2
  682. package/dist/chunk-GLLIVC35.cjs.map +0 -1
  683. package/dist/chunk-GOQDMY5Y.cjs +0 -2
  684. package/dist/chunk-GOQDMY5Y.cjs.map +0 -1
  685. package/dist/chunk-GT6OIAOB.js +0 -2
  686. package/dist/chunk-GT6OIAOB.js.map +0 -1
  687. package/dist/chunk-H6P6RMC5.js +0 -2
  688. package/dist/chunk-H6P6RMC5.js.map +0 -1
  689. package/dist/chunk-HHIW2OAJ.cjs.map +0 -1
  690. package/dist/chunk-HI4ANH7X.cjs +0 -2
  691. package/dist/chunk-HI4ANH7X.cjs.map +0 -1
  692. package/dist/chunk-HTUQ65FG.js +0 -2
  693. package/dist/chunk-HTUQ65FG.js.map +0 -1
  694. package/dist/chunk-I7KTSEJR.js +0 -2
  695. package/dist/chunk-I7KTSEJR.js.map +0 -1
  696. package/dist/chunk-IK7CZCWU.js +0 -2
  697. package/dist/chunk-IK7CZCWU.js.map +0 -1
  698. package/dist/chunk-IMDKR6GJ.js +0 -2
  699. package/dist/chunk-IMDKR6GJ.js.map +0 -1
  700. package/dist/chunk-IT6IB4GR.js +0 -2
  701. package/dist/chunk-IT6IB4GR.js.map +0 -1
  702. package/dist/chunk-JAULRUKW.cjs +0 -2
  703. package/dist/chunk-JAULRUKW.cjs.map +0 -1
  704. package/dist/chunk-JJO7PMEV.cjs.map +0 -1
  705. package/dist/chunk-JPNMRIPZ.js +0 -2
  706. package/dist/chunk-JPNMRIPZ.js.map +0 -1
  707. package/dist/chunk-K2G4WYMD.js +0 -2
  708. package/dist/chunk-K2G4WYMD.js.map +0 -1
  709. package/dist/chunk-K4WVVBAT.cjs +0 -2
  710. package/dist/chunk-K4WVVBAT.cjs.map +0 -1
  711. package/dist/chunk-KEODO3YB.cjs +0 -2
  712. package/dist/chunk-KEODO3YB.cjs.map +0 -1
  713. package/dist/chunk-KERIJTUO.cjs +0 -2
  714. package/dist/chunk-KERIJTUO.cjs.map +0 -1
  715. package/dist/chunk-KJ52RDFA.js +0 -2
  716. package/dist/chunk-KJ52RDFA.js.map +0 -1
  717. package/dist/chunk-L3GQJHCA.cjs +0 -2
  718. package/dist/chunk-L3GQJHCA.cjs.map +0 -1
  719. package/dist/chunk-L42HYJEK.cjs +0 -2
  720. package/dist/chunk-L42HYJEK.cjs.map +0 -1
  721. package/dist/chunk-LBFEL57L.cjs +0 -2
  722. package/dist/chunk-LBFEL57L.cjs.map +0 -1
  723. package/dist/chunk-LDBFYJH3.js +0 -2
  724. package/dist/chunk-LDBFYJH3.js.map +0 -1
  725. package/dist/chunk-LJNJME4L.js +0 -2
  726. package/dist/chunk-LJNJME4L.js.map +0 -1
  727. package/dist/chunk-LTVOTU54.cjs +0 -2
  728. package/dist/chunk-LTVOTU54.cjs.map +0 -1
  729. package/dist/chunk-LYBDSZEI.cjs +0 -4
  730. package/dist/chunk-LYBDSZEI.cjs.map +0 -1
  731. package/dist/chunk-LYGY4L3M.js +0 -2
  732. package/dist/chunk-LYGY4L3M.js.map +0 -1
  733. package/dist/chunk-MUSDK42D.cjs +0 -2
  734. package/dist/chunk-MUSDK42D.cjs.map +0 -1
  735. package/dist/chunk-NQ3TA2GC.cjs +0 -2
  736. package/dist/chunk-NQ3TA2GC.cjs.map +0 -1
  737. package/dist/chunk-NQMWEFBJ.js +0 -2
  738. package/dist/chunk-NQMWEFBJ.js.map +0 -1
  739. package/dist/chunk-NTRVK7LZ.js +0 -2
  740. package/dist/chunk-NTRVK7LZ.js.map +0 -1
  741. package/dist/chunk-NWDI7PFQ.cjs +0 -2
  742. package/dist/chunk-NWDI7PFQ.cjs.map +0 -1
  743. package/dist/chunk-OGAQB3MB.cjs +0 -2
  744. package/dist/chunk-OGAQB3MB.cjs.map +0 -1
  745. package/dist/chunk-OH6FSJEG.cjs +0 -2
  746. package/dist/chunk-OH6FSJEG.cjs.map +0 -1
  747. package/dist/chunk-ONG6FJC3.js +0 -2
  748. package/dist/chunk-OYZGBYLR.js +0 -2
  749. package/dist/chunk-OYZGBYLR.js.map +0 -1
  750. package/dist/chunk-P7SINFO3.js +0 -2
  751. package/dist/chunk-P7SINFO3.js.map +0 -1
  752. package/dist/chunk-PERABVV2.cjs +0 -2
  753. package/dist/chunk-PERABVV2.cjs.map +0 -1
  754. package/dist/chunk-PGD5STRH.cjs +0 -2
  755. package/dist/chunk-PGD5STRH.cjs.map +0 -1
  756. package/dist/chunk-PGKNHNSZ.cjs.map +0 -1
  757. package/dist/chunk-PITIW2YN.cjs +0 -2
  758. package/dist/chunk-PITIW2YN.cjs.map +0 -1
  759. package/dist/chunk-PKQIUI7A.cjs +0 -2
  760. package/dist/chunk-PKQIUI7A.cjs.map +0 -1
  761. package/dist/chunk-PLQBTKTS.js +0 -2
  762. package/dist/chunk-PLQBTKTS.js.map +0 -1
  763. package/dist/chunk-PMX22OMN.js +0 -2
  764. package/dist/chunk-PMX22OMN.js.map +0 -1
  765. package/dist/chunk-PZMAOOIS.cjs +0 -2
  766. package/dist/chunk-PZMAOOIS.cjs.map +0 -1
  767. package/dist/chunk-PZVDMLGG.cjs +0 -2
  768. package/dist/chunk-PZVDMLGG.cjs.map +0 -1
  769. package/dist/chunk-Q6MSEHGB.js +0 -2
  770. package/dist/chunk-Q6MSEHGB.js.map +0 -1
  771. package/dist/chunk-QFQWBHOD.js +0 -2
  772. package/dist/chunk-QFQWBHOD.js.map +0 -1
  773. package/dist/chunk-QHIW6FRI.js +0 -2
  774. package/dist/chunk-QHIW6FRI.js.map +0 -1
  775. package/dist/chunk-QW7WXOKC.cjs +0 -2
  776. package/dist/chunk-QW7WXOKC.cjs.map +0 -1
  777. package/dist/chunk-R2MLZOZC.cjs +0 -2
  778. package/dist/chunk-R2MLZOZC.cjs.map +0 -1
  779. package/dist/chunk-R3I2UDOJ.cjs +0 -2
  780. package/dist/chunk-R3I2UDOJ.cjs.map +0 -1
  781. package/dist/chunk-R5YZWXIB.cjs +0 -2
  782. package/dist/chunk-R5YZWXIB.cjs.map +0 -1
  783. package/dist/chunk-R7Q7MZNH.js +0 -2
  784. package/dist/chunk-R7Q7MZNH.js.map +0 -1
  785. package/dist/chunk-RJ4T74HR.cjs +0 -2
  786. package/dist/chunk-RJ4T74HR.cjs.map +0 -1
  787. package/dist/chunk-RVK5U3KF.js +0 -2
  788. package/dist/chunk-RVK5U3KF.js.map +0 -1
  789. package/dist/chunk-SL3TFYQN.cjs +0 -2
  790. package/dist/chunk-SL3TFYQN.cjs.map +0 -1
  791. package/dist/chunk-TBXU3Q76.cjs +0 -2
  792. package/dist/chunk-TBXU3Q76.cjs.map +0 -1
  793. package/dist/chunk-UBSKLBS7.js +0 -2
  794. package/dist/chunk-UBSKLBS7.js.map +0 -1
  795. package/dist/chunk-UG6FW2BX.js +0 -2
  796. package/dist/chunk-UG6FW2BX.js.map +0 -1
  797. package/dist/chunk-UJBT2KTB.js +0 -2
  798. package/dist/chunk-UJBT2KTB.js.map +0 -1
  799. package/dist/chunk-UK3DZ4J2.cjs +0 -2
  800. package/dist/chunk-UK3DZ4J2.cjs.map +0 -1
  801. package/dist/chunk-UPNCXCY4.cjs +0 -2
  802. package/dist/chunk-UPNCXCY4.cjs.map +0 -1
  803. package/dist/chunk-VLSUAOTJ.js +0 -2
  804. package/dist/chunk-VLSUAOTJ.js.map +0 -1
  805. package/dist/chunk-VOEO3FKM.js +0 -2
  806. package/dist/chunk-VOEO3FKM.js.map +0 -1
  807. package/dist/chunk-W5E7SOIE.cjs +0 -2
  808. package/dist/chunk-W5E7SOIE.cjs.map +0 -1
  809. package/dist/chunk-WINMX24N.js.map +0 -1
  810. package/dist/chunk-WOHMRDBV.cjs +0 -2
  811. package/dist/chunk-WOHMRDBV.cjs.map +0 -1
  812. package/dist/chunk-WR5XV5RL.cjs +0 -2
  813. package/dist/chunk-WR5XV5RL.cjs.map +0 -1
  814. package/dist/chunk-WTQ27U3M.js +0 -2
  815. package/dist/chunk-WTQ27U3M.js.map +0 -1
  816. package/dist/chunk-X7EPPEV6.js +0 -2
  817. package/dist/chunk-X7EPPEV6.js.map +0 -1
  818. package/dist/chunk-XB4LERGG.js +0 -2
  819. package/dist/chunk-XB4LERGG.js.map +0 -1
  820. package/dist/chunk-XBQ47SA3.cjs +0 -2
  821. package/dist/chunk-XBQ47SA3.cjs.map +0 -1
  822. package/dist/chunk-XJ2CBAIR.js +0 -2
  823. package/dist/chunk-XJ2CBAIR.js.map +0 -1
  824. package/dist/chunk-XN252TLC.cjs +0 -2
  825. package/dist/chunk-XN252TLC.cjs.map +0 -1
  826. package/dist/chunk-XNQMYEHN.cjs +0 -2
  827. package/dist/chunk-XNQMYEHN.cjs.map +0 -1
  828. package/dist/chunk-XQCNB3CJ.cjs +0 -2
  829. package/dist/chunk-XQCNB3CJ.cjs.map +0 -1
  830. package/dist/chunk-YC3C5IDH.js +0 -2
  831. package/dist/chunk-YC3C5IDH.js.map +0 -1
  832. package/dist/chunk-YTMAEFIO.js.map +0 -1
  833. package/dist/chunk-YYH3T4UA.js +0 -2
  834. package/dist/chunk-YYH3T4UA.js.map +0 -1
  835. package/dist/chunk-YZDAMLP7.cjs +0 -2
  836. package/dist/chunk-YZDAMLP7.cjs.map +0 -1
  837. package/dist/chunk-ZDNPOOQS.js +0 -2
  838. package/dist/chunk-ZDNPOOQS.js.map +0 -1
  839. package/dist/chunk-ZI4IYAXI.cjs +0 -2
  840. package/dist/chunk-ZI4IYAXI.cjs.map +0 -1
  841. package/dist/components/date-input.cjs +0 -1
  842. package/dist/components/date-input.js +0 -1
  843. package/dist/components/number-input.cjs +0 -2
  844. package/dist/components/number-input.cjs.map +0 -1
  845. package/dist/components/number-input.d.cts +0 -12
  846. package/dist/components/number-input.d.ts +0 -12
  847. package/dist/components/number-input.js +0 -2
  848. package/dist/components/password-input.cjs +0 -2
  849. package/dist/components/password-input.cjs.map +0 -1
  850. package/dist/components/password-input.d.cts +0 -12
  851. package/dist/components/password-input.d.ts +0 -12
  852. package/dist/components/password-input.js +0 -2
  853. package/dist/components/search-input.cjs +0 -2
  854. package/dist/components/search-input.cjs.map +0 -1
  855. package/dist/components/search-input.d.cts +0 -15
  856. package/dist/components/search-input.d.ts +0 -15
  857. package/dist/components/search-input.js +0 -2
  858. package/dist/components/text-input.cjs +0 -2
  859. package/dist/components/text-input.cjs.map +0 -1
  860. package/dist/components/text-input.d.cts +0 -13
  861. package/dist/components/text-input.d.ts +0 -13
  862. package/dist/components/text-input.js +0 -2
  863. package/dist/components/time-input.cjs +0 -1
  864. package/dist/components/time-input.js +0 -1
  865. package/dist/styles.css +0 -2
  866. package/dist/styles.css.map +0 -1
  867. package/dist/tailwindcss/animate.cjs +0 -2
  868. package/dist/tailwindcss/animate.cjs.map +0 -1
  869. package/dist/tailwindcss/animate.d.cts +0 -5
  870. package/dist/tailwindcss/animate.d.ts +0 -5
  871. package/dist/tailwindcss/animate.js +0 -2
  872. package/dist/tailwindcss/animate.js.map +0 -1
  873. /package/dist/components/{date-input.js.map → inline.js.map} +0 -0
  874. /package/dist/components/{date-input.d.cts → input-date.d.cts} +0 -0
  875. /package/dist/components/{date-input.d.ts → input-date.d.ts} +0 -0
  876. /package/dist/components/{number-input.js.map → input-date.js.map} +0 -0
  877. /package/dist/components/{password-input.js.map → input-number.js.map} +0 -0
  878. /package/dist/components/{search-input.js.map → input-password.js.map} +0 -0
  879. /package/dist/components/{text-input.js.map → input-search.js.map} +0 -0
  880. /package/dist/components/{time-input.d.cts → input-time.d.cts} +0 -0
  881. /package/dist/components/{time-input.d.ts → input-time.d.ts} +0 -0
  882. /package/dist/components/{time-input.js.map → input-time.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{a as i}from"./chunk-KJ52RDFA.js";import{a as p}from"./chunk-WTQ27U3M.js";import*as t from"@codefast-ui/input";import{forwardRef as P}from"react";import{jsx as e}from"react/jsx-runtime";var{input:l,root:x}=i(),y=P(({className:n,inputSize:o,loaderPosition:r,loading:m,prefix:s,spinner:a,suffix:f,...u},I)=>e(t.Root,{className:x({className:n,inputSize:o}),loaderPosition:r,loading:m,prefix:s,spinner:a||e(p,{}),suffix:f,children:e(t.Item,{ref:I,className:l({inputSize:o}),...u})}));y.displayName="TextInput";export{y as a};
2
- //# sourceMappingURL=chunk-R7Q7MZNH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/text-input.tsx"],"names":["InputPrimitive","forwardRef","jsx","input","root","inputVariants","TextInput","className","inputSize","loaderPosition","loading","prefix","spinner","suffix","props","forwardedRef","Spinner"],"mappings":"gFAEA,UAAYA,MAAoB,qBAChC,OAAS,cAAAC,MAAkB,QAgDD,cAAAC,MAAA,oBArC1B,GAAM,CAAE,MAAAC,EAAO,KAAAC,CAAK,EAAIC,EAAc,EA2BhCC,EAAYL,EAChB,CACE,CAAE,UAAAM,EAAW,UAAAC,EAAW,eAAAC,EAAgB,QAAAC,EAAS,OAAAC,EAAQ,QAAAC,EAAS,OAAAC,EAAQ,GAAGC,CAAM,EACnFC,IAEAb,EAAgB,OAAf,CACC,UAAWE,EAAK,CAAE,UAAAG,EAAW,UAAAC,CAAU,CAAC,EACxC,eAAgBC,EAChB,QAASC,EACT,OAAQC,EACR,QAASC,GAAWV,EAACc,EAAA,EAAQ,EAC7B,OAAQH,EAER,SAAAX,EAAgB,OAAf,CAAoB,IAAKa,EAAc,UAAWZ,EAAM,CAAE,UAAAK,CAAU,CAAC,EAAI,GAAGM,EAAO,EACtF,CAEJ,EAEAR,EAAU,YAAc","sourcesContent":["import type { ComponentProps, ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as InputPrimitive from '@codefast-ui/input';\nimport { forwardRef } from 'react';\n\nimport type { InputVariantsProps } from '@/variants/input.variants';\n\nimport { Spinner } from '@/components/spinner';\nimport { inputVariants } from '@/variants/input.variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst { input, root } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = ComponentRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n ComponentProps<typeof InputPrimitive.Root>,\n Omit<ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix' | 'type'> {\n type?:\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'file'\n | 'month'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'\n | 'week';\n}\n\nconst TextInput = forwardRef<TextInputElement, TextInputProps>(\n (\n { className, inputSize, loaderPosition, loading, prefix, spinner, suffix, ...props },\n forwardedRef,\n ) => (\n <InputPrimitive.Root\n className={root({ className, inputSize })}\n loaderPosition={loaderPosition}\n loading={loading}\n prefix={prefix}\n spinner={spinner || <Spinner />}\n suffix={suffix}\n >\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n </InputPrimitive.Root>\n ),\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { TextInputProps };\nexport { TextInput };\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _reactslot = require('@radix-ui/react-slot');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var s=_react.forwardRef.call(void 0, ({as:o="div",asChild:e,...t},r)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:o,{ref:r,...t}));s.displayName="Box";exports.a = s;
2
- //# sourceMappingURL=chunk-RJ4T74HR.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/box.tsx"],"names":["Box","forwardRef","Tag","asChild","props","forwardedRef","jsx","Slot"],"mappings":"AAEA,0HAAqB,8BACM,+CAuBhB,IAJLA,CAAAA,CAAMC,+BAAAA,CACT,CAAE,EAAA,CAAIC,CAAAA,CAAM,KAAA,CAAO,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAGhCC,6BAAAA,CAFWH,CAAUI,eAAAA,CAAOL,CAAAA,CAE3B,CAAU,GAAA,CAAKG,CAAAA,CAAe,GAAGD,CAAAA,CAAO,CAEpD,CAAA,CAEAJ,CAAAA,CAAI,WAAA,CAAc,KAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-RJ4T74HR.cjs","sourcesContent":["import type { HTMLAttributes } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { forwardRef } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\ntype BoxElement = HTMLDivElement;\ninterface BoxDivProps extends HTMLAttributes<HTMLDivElement> {\n as?: 'div';\n}\n\ninterface BoxSpanProps extends HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype BoxProps = (BoxDivProps | BoxSpanProps) & {\n asChild?: boolean;\n};\n\nconst Box = forwardRef<BoxElement, BoxProps>(\n ({ as: Tag = 'div', asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={forwardedRef} {...props} />;\n },\n);\n\nBox.displayName = 'Box';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { BoxProps };\nexport { Box };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-HTUQ65FG.js";import*as e from"@radix-ui/react-toggle";import{forwardRef as l}from"react";import{jsx as T,jsxs as P}from"react/jsx-runtime";var n=l(({children:o,className:i,icon:r,prefix:g,size:p,suffix:a,variant:m,...s},f)=>P(e.Root,{ref:f,className:t({className:i,icon:r,size:p,variant:m}),...s,children:[g,typeof o=="string"?T("span",{className:"truncate",children:o}):o,a]}));n.displayName=e.Root.displayName;export{n as a};
2
- //# sourceMappingURL=chunk-RVK5U3KF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/toggle.tsx"],"names":["TogglePrimitive","forwardRef","jsx","jsxs","Toggle","children","className","icon","prefix","size","suffix","variant","props","forwardedRef","toggleVariants"],"mappings":"wCAEA,UAAYA,MAAqB,yBACjC,OAAS,cAAAC,MAAkB,QAoBvB,OAMkC,OAAAC,EANlC,QAAAC,MAAA,oBAFJ,IAAMC,EAASH,EACb,CAAC,CAAE,SAAAI,EAAU,UAAAC,EAAW,KAAAC,EAAM,OAAAC,EAAQ,KAAAC,EAAM,OAAAC,EAAQ,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IACvEV,EAAiB,OAAhB,CACC,IAAKU,EACL,UAAWC,EAAe,CAAE,UAAAR,EAAW,KAAAC,EAAM,KAAAE,EAAM,QAAAE,CAAQ,CAAC,EAC3D,GAAGC,EAEH,UAAAJ,EACA,OAAOH,GAAa,SAAWH,EAAC,QAAK,UAAU,WAAY,SAAAG,EAAS,EAAUA,EAC9EK,GACH,CAEJ,EAEAN,EAAO,YAA8B,OAAK","sourcesContent":["import type { ComponentPropsWithoutRef, ComponentRef, ReactNode } from 'react';\n\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { forwardRef } from 'react';\n\nimport type { ToggleVariantsProps } from '@/variants/toggle.variants';\n\nimport { toggleVariants } from '@/variants/toggle.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Toggle\n * -------------------------------------------------------------------------- */\n\ntype ToggleElement = ComponentRef<typeof TogglePrimitive.Root>;\ninterface ToggleProps\n extends Omit<ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, 'prefix'>,\n ToggleVariantsProps {\n prefix?: ReactNode;\n suffix?: ReactNode;\n}\n\nconst Toggle = forwardRef<ToggleElement, ToggleProps>(\n ({ children, className, icon, prefix, size, suffix, variant, ...props }, forwardedRef) => (\n <TogglePrimitive.Root\n ref={forwardedRef}\n className={toggleVariants({ className, icon, size, variant })}\n {...props}\n >\n {prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </TogglePrimitive.Root>\n ),\n);\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ToggleProps };\nexport { Toggle };\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkQW7WXOKCcjs = require('./chunk-QW7WXOKC.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactcontext = require('@radix-ui/react-context');var _reactslot = require('@radix-ui/react-slot');var _lodashes = require('lodash-es');var _react = require('react');var _reacthookform = require('react-hook-form');var _jsxruntime = require('react/jsx-runtime');var w=_reacthookform.FormProvider,M="FormField",[I,q]=_reactcontext.createContextScope.call(void 0, M),[S,T]=I(M);function F(o,r){let{id:e}=R(o,r);return{id:e,formDescriptionId:`form-item-description-${e}`,formItemId:`form-item-${e}`,formMessageId:`form-item-message-${e}`}}function z(o){let{__scopeFormField:r,...e}=o;return _jsxruntime.jsx.call(void 0, S,{name:e.name,scope:r,children:_jsxruntime.jsx.call(void 0, _reacthookform.Controller,{...e})})}var g="FormItem",[b,R]=I(g),h= exports.d =_react.forwardRef.call(void 0, ({__scopeFormField:o,className:r,...e},t)=>{let s=_react.useId.call(void 0, );return _jsxruntime.jsx.call(void 0, b,{id:s,scope:o,children:_jsxruntime.jsx.call(void 0, "div",{ref:t,className:_chunkSMJEDCFPcjs.a.call(void 0, "grid gap-2",r),...e})})});h.displayName=g;var D="FormLabel",v= exports.e =_react.forwardRef.call(void 0, ({__scopeFormField:o,...r},e)=>{let{formItemId:t}=F(n,o);return _jsxruntime.jsx.call(void 0, _chunkQW7WXOKCcjs.a,{ref:e,htmlFor:t,...r})});v.displayName=D;var E="FormControl",A= exports.f =_react.forwardRef.call(void 0, ({__scopeFormField:o,...r},e)=>{let{formDescriptionId:t,formItemId:s,formMessageId:d}=F(n,o),{name:i}=T(E,o),{errors:p}=_reacthookform.useFormState.call(void 0, {name:i});return _jsxruntime.jsx.call(void 0, _reactslot.Slot,{ref:e,"aria-describedby":p[i]?`${t} ${d}`:t,"aria-invalid":!!p[i],id:s,...r})});A.displayName=E;var _="FormDescription",H= exports.g =_react.forwardRef.call(void 0, ({__scopeFormField:o,className:r,...e},t)=>{let{formDescriptionId:s}=F(n,o);return _jsxruntime.jsx.call(void 0, "p",{ref:t,className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-xs",r),id:s,...e})});H.displayName=_;var n="FormMessage",O= exports.h =_react.forwardRef.call(void 0, ({__scopeFormField:o,children:r,className:e,...t},s)=>{let{formMessageId:d}=F(n,o),{name:i}=T(n,o),{errors:p}=_reacthookform.useFormState.call(void 0, {name:i}),c=_lodashes.result.call(void 0, p,i),P=_optionalChain([c, 'optionalAccess', _2 => _2.message])?String(c.message):r;return P?_jsxruntime.jsx.call(void 0, "p",{ref:s,className:_chunkSMJEDCFPcjs.a.call(void 0, "text-xs",_optionalChain([c, 'optionalAccess', _3 => _3.message])?"text-destructive font-medium":"text-muted-foreground",e),id:d,...t,children:P}):null});O.displayName=n;exports.a = w; exports.b = q; exports.c = z; exports.d = h; exports.e = v; exports.f = A; exports.g = H; exports.h = O;
2
- //# sourceMappingURL=chunk-SL3TFYQN.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-SL3TFYQN.cjs","../src/components/form.tsx"],"names":["createFormFieldContext","FormFieldProvider","useFormFieldContext","FORM_FIELD_NAME","useFormItem","consumerName","scope","id","useFormItemContext"],"mappings":"AAAA,ylBAAY,CAAC,wDAAwC,wDCa5C,uDACA,iDACA,qCACA,8BACA,gDAkEH,+CAlDkB,IAAA,CAAA,CAAA,2BAAA,CAAA,CAIlB,CAACA,WASAC,CAAAA,CAAmBC,CAAmB,CAAA,CAC3CF,CAAAA,CAA8CG,8CAAe,CAE/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASC,CAAAA,CACPC,CAAAA,CACAC,SAOQ,CAAAC,CAAG,CAAA,CAAIC,CAAAA,CAAmBH,CAAAA,GAAmB,CAErD,EAAA,CAAA,CAAA,CAAA,CAAO,CACL,CAAA,CAAA,CAAAE,CAAAA,CACA,CAAA,MAAA,CAAA,EAAA,CAAA,CAAA,CAAA,iBAAmB,CAAA,CAAA,sBACnB,EAAA,CAAA,CAAY,CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-SL3TFYQN.cjs","sourcesContent":[null,"'use client';\n\nimport type { Scope } from '@radix-ui/react-context';\nimport type * as LabelPrimitive from '@radix-ui/react-label';\nimport type {\n ComponentProps,\n ComponentPropsWithoutRef,\n ComponentRef,\n HTMLAttributes,\n JSX,\n} from 'react';\nimport type { ControllerProps, FieldPath, FieldValues, GlobalError } from 'react-hook-form';\n\nimport { createContextScope } from '@radix-ui/react-context';\nimport { Slot } from '@radix-ui/react-slot';\nimport { result } from 'lodash-es';\nimport { forwardRef, useId } from 'react';\nimport { Controller, FormProvider, useFormState } from 'react-hook-form';\n\nimport { Label } from '@/components/label';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Form\n * -------------------------------------------------------------------------- */\n\ntype FormProps = ComponentProps<typeof FormProvider>;\nconst Form = FormProvider;\n\n/* -----------------------------------------------------------------------------\n * Component: FormField\n * -------------------------------------------------------------------------- */\n\nconst FORM_FIELD_NAME = 'FormField';\n\ntype ScopedProps<P> = P & { __scopeFormField?: Scope };\n\nconst [createFormFieldContext, createFormFieldScope] = createContextScope(FORM_FIELD_NAME);\n\ninterface FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> {\n name: TName;\n}\n\nconst [FormFieldProvider, useFormFieldContext] =\n createFormFieldContext<FormFieldContextValue>(FORM_FIELD_NAME);\n\nfunction useFormItem(\n consumerName: string,\n scope: Scope,\n): {\n formDescriptionId: string;\n formItemId: string;\n formMessageId: string;\n id: string;\n} {\n const { id } = useFormItemContext(consumerName, scope);\n\n return {\n id,\n formDescriptionId: `form-item-description-${id}`,\n formItemId: `form-item-${id}`,\n formMessageId: `form-item-message-${id}`,\n };\n}\n\ntype FormFieldProps<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = ControllerProps<TFieldValues, TName>;\n\nfunction FormField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>(formFieldProps: FormFieldProps<TFieldValues, TName>): JSX.Element {\n const { __scopeFormField, ...props } = formFieldProps as ScopedProps<\n FormFieldProps<TFieldValues, TName>\n >;\n\n return (\n <FormFieldProvider name={props.name} scope={__scopeFormField}>\n <Controller {...props} />\n </FormFieldProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormItem\n * -------------------------------------------------------------------------- */\n\nconst FORM_ITEM_NAME = 'FormItem';\n\ninterface FormItemContextValue {\n id: string;\n}\n\nconst [FormItemProvider, useFormItemContext] =\n createFormFieldContext<FormItemContextValue>(FORM_ITEM_NAME);\n\ntype FormItemElement = HTMLDivElement;\ntype FormItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst FormItem = forwardRef<FormItemElement, FormItemProps>(\n ({ __scopeFormField, className, ...props }: ScopedProps<FormItemProps>, forwardedRef) => {\n const id = useId();\n\n return (\n <FormItemProvider id={id} scope={__scopeFormField}>\n <div ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />\n </FormItemProvider>\n );\n },\n);\n\nFormItem.displayName = FORM_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormLabel\n * -------------------------------------------------------------------------- */\n\nconst FORM_LABEL_NAME = 'FormLabel';\n\ntype FormFieldElement = ComponentRef<typeof LabelPrimitive.Root>;\ntype FormLabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst FormLabel = forwardRef<FormFieldElement, FormLabelProps>(\n ({ __scopeFormField, ...props }: ScopedProps<FormLabelProps>, forwardedRef) => {\n const { formItemId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return <Label ref={forwardedRef} htmlFor={formItemId} {...props} />;\n },\n);\n\nFormLabel.displayName = FORM_LABEL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormControl\n * -------------------------------------------------------------------------- */\n\nconst FORM_CONTROL_NAME = 'FormControl';\n\ntype FormControlElement = ComponentRef<typeof Slot>;\ntype FormControlProps = ComponentPropsWithoutRef<typeof Slot>;\n\nconst FormControl = forwardRef<FormControlElement, FormControlProps>(\n ({ __scopeFormField, ...props }: ScopedProps<FormControlProps>, forwardedRef) => {\n const { formDescriptionId, formItemId, formMessageId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n const { name } = useFormFieldContext(FORM_CONTROL_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n\n return (\n <Slot\n ref={forwardedRef}\n aria-describedby={\n errors[name] ? `${formDescriptionId} ${formMessageId}` : formDescriptionId\n }\n aria-invalid={Boolean(errors[name])}\n id={formItemId}\n {...props}\n />\n );\n },\n);\n\nFormControl.displayName = FORM_CONTROL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormDescription\n * -------------------------------------------------------------------------- */\n\nconst FORM_DESCRIPTION_NAME = 'FormDescription';\n\ntype FormDescriptionElement = HTMLParagraphElement;\ntype FormDescriptionProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormDescription = forwardRef<FormDescriptionElement, FormDescriptionProps>(\n ({ __scopeFormField, className, ...props }: ScopedProps<FormDescriptionProps>, forwardedRef) => {\n const { formDescriptionId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return (\n <p\n ref={forwardedRef}\n className={cn('text-muted-foreground text-xs', className)}\n id={formDescriptionId}\n {...props}\n />\n );\n },\n);\n\nFormDescription.displayName = FORM_DESCRIPTION_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormMessage\n * -------------------------------------------------------------------------- */\n\nconst FORM_MESSAGE_NAME = 'FormMessage';\n\ntype FormMessageElement = HTMLParagraphElement;\ntype FormMessageProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormMessage = forwardRef<FormMessageElement, FormMessageProps>(\n (\n { __scopeFormField, children, className, ...props }: ScopedProps<FormMessageProps>,\n forwardedRef,\n ) => {\n const { formMessageId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n const { name } = useFormFieldContext(FORM_MESSAGE_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n const error = result<GlobalError | null>(errors, name);\n const body = error?.message ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={forwardedRef}\n className={cn(\n 'text-xs',\n error?.message ? 'text-destructive font-medium' : 'text-muted-foreground',\n className,\n )}\n id={formMessageId}\n {...props}\n >\n {body}\n </p>\n );\n },\n);\n\nFormMessage.displayName = FORM_MESSAGE_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n FormControlProps,\n FormDescriptionProps,\n FormFieldProps,\n FormItemProps,\n FormLabelProps,\n FormMessageProps,\n FormProps,\n};\nexport {\n createFormFieldScope,\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\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 _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactseparator = require('@radix-ui/react-separator'); var a = _interopRequireWildcard(_reactseparator);var _react = require('react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var l=_tailwindvariants.tv.call(void 0, {base:"bg-muted relative flex shrink-0 items-center",defaultVariants:{align:"center",orientation:"horizontal"},variants:{align:{center:"justify-center",end:"justify-end",start:"justify-start"},orientation:{horizontal:"h-px w-full",vertical:"h-full w-px flex-col"}}}),S= exports.a =_react.forwardRef.call(void 0, ({align:t,className:e,decorative:r=!0,orientation:o,...m},s)=>_jsxruntime.jsx.call(void 0, a.Root,{ref:s,className:l({align:t,className:e,orientation:o}),decorative:r,orientation:o,...m}));S.displayName=a.Root.displayName;var y=_react.forwardRef.call(void 0, ({className:t,...e},r)=>_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-background text-muted-foreground absolute mx-2 px-2 text-sm",t),...e}));y.displayName="SeparatorItem";exports.a = S; exports.b = y;
2
- //# sourceMappingURL=chunk-TBXU3Q76.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-TBXU3Q76.cjs","../src/components/separator.tsx"],"names":["separatorVariants","tv","Separator","forwardRef","align","className","decorative","orientation","props","forwardedRef","jsx","SeparatorItem","cn"],"mappings":"AAAA,mZAAwC,6GCGJ,8BACT,qDACR,+CAwCf,IAhCEA,CAAAA,CAAoBC,kCAAAA,CACxB,IAAA,CAAM,8CAAA,CACN,eAAA,CAAiB,CACf,KAAA,CAAO,QAAA,CACP,WAAA,CAAa,YACf,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,MAAA,CAAQ,gBAAA,CACR,GAAA,CAAK,aAAA,CACL,KAAA,CAAO,eACT,CAAA,CACA,WAAA,CAAa,CACX,UAAA,CAAY,aAAA,CACZ,QAAA,CAAU,sBACZ,CACF,CACF,CAAC,CAAA,CAaKC,CAAAA,aAAYC,+BAAAA,CACf,CAAE,KAAA,CAAAC,CAAAA,CAAO,SAAA,CAAAC,CAAAA,CAAW,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAA,CAAM,WAAA,CAAAC,CAAAA,CAAa,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC/DC,6BAAAA,CAAoB,CAAA,IAAA,CAAnB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWT,CAAAA,CAAkB,CAAE,KAAA,CAAAI,CAAAA,CAAO,SAAA,CAAAC,CAAAA,CAAW,WAAA,CAAAE,CAAY,CAAC,CAAA,CAC9D,UAAA,CAAYD,CAAAA,CACZ,WAAA,CAAaC,CAAAA,CACZ,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAN,CAAAA,CAAU,WAAA,CAAiC,CAAA,CAAA,IAAA,CAAK,WAAA,CAShD,IAAMS,CAAAA,CAAgBR,+BAAAA,CACnB,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGG,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,KAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWG,iCAAAA,gEAAG,CAAkEP,CAAS,CAAA,CACxF,GAAGG,CAAAA,CACN,CAEJ,CAAA,CAEAG,CAAAA,CAAc,WAAA,CAAc,eAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-TBXU3Q76.cjs","sourcesContent":[null,"import type { ComponentPropsWithoutRef, ComponentRef, HTMLAttributes } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { forwardRef } from 'react';\nimport { tv } from 'tailwind-variants';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: Separator\n * -------------------------------------------------------------------------- */\n\nconst separatorVariants = tv({\n base: 'bg-muted relative flex shrink-0 items-center',\n defaultVariants: {\n align: 'center',\n orientation: 'horizontal',\n },\n variants: {\n align: {\n center: 'justify-center',\n end: 'justify-end',\n start: 'justify-start',\n },\n orientation: {\n horizontal: 'h-px w-full',\n vertical: 'h-full w-px flex-col',\n },\n },\n});\n\ntype SeparatorVariantsProps = VariantProps<typeof separatorVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Separator\n * -------------------------------------------------------------------------- */\n\ntype SeparatorElement = ComponentRef<typeof SeparatorPrimitive.Root>;\ninterface SeparatorProps\n extends ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>,\n Omit<SeparatorVariantsProps, 'orientation'> {}\n\nconst Separator = forwardRef<SeparatorElement, SeparatorProps>(\n ({ align, className, decorative = true, orientation, ...props }, forwardedRef) => (\n <SeparatorPrimitive.Root\n ref={forwardedRef}\n className={separatorVariants({ align, className, orientation })}\n decorative={decorative}\n orientation={orientation}\n {...props}\n />\n ),\n);\n\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SeparatorItem\n * -------------------------------------------------------------------------- */\n\ntype SeparatorItemElement = HTMLDivElement;\ntype SeparatorItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst SeparatorItem = forwardRef<SeparatorItemElement, SeparatorItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <div\n ref={forwardedRef}\n className={cn('bg-background text-muted-foreground absolute mx-2 px-2 text-sm', className)}\n {...props}\n />\n ),\n);\n\nSeparatorItem.displayName = 'SeparatorItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { SeparatorProps };\nexport { Separator, SeparatorItem };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-label";import{forwardRef as r}from"react";import{jsx as a}from"react/jsx-runtime";var m=r(({className:t,...i},p)=>a(e.Root,{ref:p,className:o("text-sm font-medium leading-none peer-disabled:pointer-events-none peer-disabled:opacity-70",t),...i}));m.displayName=e.Root.displayName;export{m as a};
2
- //# sourceMappingURL=chunk-UBSKLBS7.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/label.tsx"],"names":["LabelPrimitive","forwardRef","jsx","Label","className","props","forwardedRef","cn"],"mappings":"wCAEA,UAAYA,MAAoB,wBAChC,OAAS,cAAAC,MAAkB,QAYzB,cAAAC,MAAA,oBADF,IAAMC,EAAQF,EAAqC,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IAC3EJ,EAAgB,OAAf,CACC,IAAKI,EACL,UAAWC,EACT,8FACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDF,EAAM,YAA6B,OAAK","sourcesContent":["import type { ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Label\n * -------------------------------------------------------------------------- */\n\ntype LabelElement = ComponentRef<typeof LabelPrimitive.Root>;\ntype LabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst Label = forwardRef<LabelElement, LabelProps>(({ className, ...props }, forwardedRef) => (\n <LabelPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'text-sm font-medium leading-none peer-disabled:pointer-events-none peer-disabled:opacity-70',\n className,\n )}\n {...props}\n />\n));\n\nLabel.displayName = LabelPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { LabelProps };\nexport { Label };\n"]}
@@ -1,2 +0,0 @@
1
- "use client";import{a as r,c as d}from"./chunk-GT6OIAOB.js";import{a}from"./chunk-OKUFCFYT.js";import{Command as m}from"cmdk";import{SearchIcon as s}from"lucide-react";import{forwardRef as p}from"react";import{jsx as n,jsxs as g}from"react/jsx-runtime";var i=p(({className:o,...e},t)=>n(m,{ref:t,className:a("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...e}));i.displayName=m.displayName;function L({children:o,...e}){return n(r,{...e,children:n(d,{className:"p-0",children:n(i,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:o})})})}var C=p(({className:o,...e},t)=>g("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[n(s,{className:"size-5 shrink-0 opacity-50"}),n(m.Input,{ref:t,className:a("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",o),...e})]}));C.displayName=m.Input.displayName;var l=p(({className:o,...e},t)=>n(m.List,{ref:t,className:a("max-h-72 overflow-y-auto overflow-x-hidden",o),...e}));l.displayName=m.List.displayName;var u=p((o,e)=>n(m.Empty,{ref:e,className:"py-6 text-center text-sm",...o}));u.displayName=m.Empty.displayName;var f=p(({className:o,...e},t)=>n(m.Group,{ref:t,className:a("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...e}));f.displayName=m.Group.displayName;var y=p(({className:o,...e},t)=>n(m.Separator,{ref:t,className:a("bg-border -mx-1 h-px",o),...e}));y.displayName=m.Separator.displayName;var c=p(({className:o,...e},t)=>n(m.Item,{ref:t,className:a("gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded-sm text-sm","aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none",o),...e}));c.displayName=m.Item.displayName;var P=p(({className:o,...e},t)=>n(m.Loading,{ref:t,className:a("flex justify-center p-2",o),...e}));P.displayName=m.Loading.displayName;function I({className:o,...e}){return n("span",{className:a("text-muted-foreground ml-auto text-xs tracking-widest",o),...e})}export{i as a,L as b,C as c,l as d,u as e,f,y as g,c as h,P as i,I as j};
2
- //# sourceMappingURL=chunk-UG6FW2BX.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/command.tsx"],"names":["CommandPrimitive","SearchIcon","forwardRef","jsx","jsxs","Command","className","props","forwardedRef","cn","CommandDialog","children","Dialog","DialogContent","CommandInput","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandLoading","CommandShortcut"],"mappings":"kFAUA,OAAS,WAAWA,MAAwB,OAC5C,OAAS,cAAAC,MAAkB,eAC3B,OAAS,cAAAC,MAAkB,QAcvB,cAAAC,EAwCA,QAAAC,MAxCA,oBAFJ,IAAMC,EAAUH,EACd,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAACH,EAAA,CACC,IAAKQ,EACL,UAAWC,EACT,4FACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAF,EAAQ,YAAcL,EAAiB,YAQvC,SAASU,EAAc,CAAE,SAAAC,EAAU,GAAGJ,CAAM,EAAoC,CAC9E,OACEJ,EAACS,EAAA,CAAQ,GAAGL,EACV,SAAAJ,EAACU,EAAA,CAAc,UAAU,MACvB,SAAAV,EAACE,EAAA,CAAQ,UAAU,2TAChB,SAAAM,EACH,EACF,EACF,CAEJ,CASA,IAAMG,EAAeZ,EACnB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,OAAI,UAAU,wCAAwC,qBAAmB,GACxE,UAAAD,EAACF,EAAA,CAAW,UAAU,6BAA6B,EACnDE,EAACH,EAAiB,MAAjB,CACC,IAAKQ,EACL,UAAWC,EACT,gJACAH,CACF,EACC,GAAGC,EACN,GACF,CAEJ,EAEAO,EAAa,YAAcd,EAAiB,MAAM,YASlD,IAAMe,EAAcb,EAClB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAACH,EAAiB,KAAjB,CACC,IAAKQ,EACL,UAAWC,EAAG,6CAA8CH,CAAS,EACpE,GAAGC,EACN,CAEJ,EAEAQ,EAAY,YAAcf,EAAiB,KAAK,YAShD,IAAMgB,EAAed,EAAmD,CAACK,EAAOC,IAC9EL,EAACH,EAAiB,MAAjB,CAAuB,IAAKQ,EAAc,UAAU,2BAA4B,GAAGD,EAAO,CAC5F,EAEDS,EAAa,YAAchB,EAAiB,MAAM,YASlD,IAAMiB,EAAef,EACnB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAACH,EAAiB,MAAjB,CACC,IAAKQ,EACL,UAAWC,EACT,yNACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAU,EAAa,YAAcjB,EAAiB,MAAM,YASlD,IAAMkB,EAAmBhB,EACvB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAACH,EAAiB,UAAjB,CACC,IAAKQ,EACL,UAAWC,EAAG,uBAAwBH,CAAS,EAC9C,GAAGC,EACN,CAEJ,EAEAW,EAAiB,YAAclB,EAAiB,UAAU,YAS1D,IAAMmB,EAAcjB,EAClB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAACH,EAAiB,KAAjB,CACC,IAAKQ,EACL,UAAWC,EACT,sBACA,2EACA,6DACA,0FACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAY,EAAY,YAAcnB,EAAiB,KAAK,YAShD,IAAMoB,EAAiBlB,EACrB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAACH,EAAiB,QAAjB,CACC,IAAKQ,EACL,UAAWC,EAAG,0BAA2BH,CAAS,EACjD,GAAGC,EACN,CAEJ,EAEAa,EAAe,YAAcpB,EAAiB,QAAQ,YAQtD,SAASqB,EAAgB,CAAE,UAAAf,EAAW,GAAGC,CAAM,EAAsC,CACnF,OACEJ,EAAC,QACC,UAAWM,EAAG,wDAAyDH,CAAS,EAC/E,GAAGC,EACN,CAEJ","sourcesContent":["'use client';\n\nimport type {\n ComponentProps,\n ComponentPropsWithoutRef,\n ComponentRef,\n HTMLAttributes,\n JSX,\n} from 'react';\n\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { SearchIcon } from 'lucide-react';\nimport { forwardRef } from 'react';\n\nimport { Dialog, DialogContent } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\ntype CommandElement = ComponentRef<typeof CommandPrimitive>;\ntype CommandProps = ComponentPropsWithoutRef<typeof CommandPrimitive>;\n\nconst Command = forwardRef<CommandElement, CommandProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommand.displayName = CommandPrimitive.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\ntype CommandDialogProps = ComponentProps<typeof Dialog>;\n\nfunction CommandDialog({ children, ...props }: CommandDialogProps): JSX.Element {\n return (\n <Dialog {...props}>\n <DialogContent className=\"p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\ntype CommandInputElement = ComponentRef<typeof CommandPrimitive.Input>;\ntype CommandInputProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Input>;\n\nconst CommandInput = forwardRef<CommandInputElement, CommandInputProps>(\n ({ className, ...props }, forwardedRef) => (\n <div className=\"flex items-center gap-2 border-b px-3\" cmdk-input-wrapper=\"\">\n <SearchIcon className=\"size-5 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={forwardedRef}\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\ntype CommandListElement = ComponentRef<typeof CommandPrimitive.List>;\ntype CommandListProps = ComponentPropsWithoutRef<typeof CommandPrimitive.List>;\n\nconst CommandList = forwardRef<CommandListElement, CommandListProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.List\n ref={forwardedRef}\n className={cn('max-h-72 overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n ),\n);\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\ntype CommandEmptyElement = ComponentRef<typeof CommandPrimitive.Empty>;\ntype CommandEmptyProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>;\n\nconst CommandEmpty = forwardRef<CommandEmptyElement, CommandEmptyProps>((props, forwardedRef) => (\n <CommandPrimitive.Empty ref={forwardedRef} className=\"py-6 text-center text-sm\" {...props} />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\ntype CommandGroupElement = ComponentRef<typeof CommandPrimitive.Group>;\ntype CommandGroupProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Group>;\n\nconst CommandGroup = forwardRef<CommandGroupElement, CommandGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Group\n ref={forwardedRef}\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\ntype CommandSeparatorElement = ComponentRef<typeof CommandPrimitive.Separator>;\ntype CommandSeparatorProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>;\n\nconst CommandSeparator = forwardRef<CommandSeparatorElement, CommandSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-border -mx-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\ntype CommandItemElement = ComponentRef<typeof CommandPrimitive.Item>;\ntype CommandItemProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Item>;\n\nconst CommandItem = forwardRef<CommandItemElement, CommandItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n 'aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\ntype CommandLoadingElement = ComponentRef<typeof CommandPrimitive.Loading>;\ntype CommandLoadingProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Loading>;\n\nconst CommandLoading = forwardRef<CommandLoadingElement, CommandLoadingProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Loading\n ref={forwardedRef}\n className={cn('flex justify-center p-2', className)}\n {...props}\n />\n ),\n);\n\nCommandLoading.displayName = CommandPrimitive.Loading.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\ntype CommandShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction CommandShortcut({ className, ...props }: CommandShortcutProps): JSX.Element {\n return (\n <span\n className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n CommandDialogProps,\n CommandEmptyProps,\n CommandGroupProps,\n CommandInputProps,\n CommandItemProps,\n CommandListProps,\n CommandLoadingProps,\n CommandProps,\n CommandSeparatorProps,\n CommandShortcutProps,\n};\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n CommandShortcut,\n};\n"]}
@@ -1,2 +0,0 @@
1
- import{Slot as r}from"@radix-ui/react-slot";import{forwardRef as a}from"react";import{jsx as p}from"react/jsx-runtime";var i=a(({as:e="h1",asChild:t,...n},o)=>p(t?r:e,{ref:o,...n}));i.displayName="Heading";export{i as a};
2
- //# sourceMappingURL=chunk-UJBT2KTB.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/heading.tsx"],"names":["Slot","forwardRef","jsx","Heading","Tag","asChild","props","forwardedRef"],"mappings":"AAEA,OAAS,QAAAA,MAAY,uBACrB,OAAS,cAAAC,MAAkB,QAiBhB,cAAAC,MAAA,oBAJX,IAAMC,EAAUF,EACd,CAAC,CAAE,GAAIG,EAAM,KAAM,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG/BL,EAFWG,EAAUL,EAAOI,EAE3B,CAAU,IAAKG,EAAe,GAAGD,EAAO,CAEpD,EAEAH,EAAQ,YAAc","sourcesContent":["import type { HTMLAttributes } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { forwardRef } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Heading\n * -------------------------------------------------------------------------- */\n\ntype HeadingElement = HTMLHeadingElement;\n\ninterface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n asChild?: boolean;\n}\n\nconst Heading = forwardRef<HeadingElement, HeadingProps>(\n ({ as: Tag = 'h1', asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={forwardedRef} {...props} />;\n },\n);\n\nHeading.displayName = 'Heading';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { HeadingProps };\nexport { Heading };\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 _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactcollapsible = require('@radix-ui/react-collapsible'); var e = _interopRequireWildcard(_reactcollapsible);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var n=e.Root,b= exports.b =e.CollapsibleTrigger,s= exports.c =_react.forwardRef.call(void 0, ({className:o,...i},t)=>_jsxruntime.jsx.call(void 0, e.CollapsibleContent,{ref:t,className:_chunkSMJEDCFPcjs.a.call(void 0, "overflow-hidden","data-[state=open]:animate-collapsible-open","data-[state=closed]:animate-collapsible-closed",o),...i}));s.displayName=e.CollapsibleContent.displayName;exports.a = n; exports.b = b; exports.c = s;
2
- //# sourceMappingURL=chunk-UK3DZ4J2.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UK3DZ4J2.cjs","../src/components/collapsible.tsx"],"names":["Collapsible","CollapsibleTrigger","CollapsibleContent","forwardRef","className","props","forwardedRef","jsx","cn"],"mappings":"AAAA,mZAAwC,mHCEF,8BACX,+CA+BvB,IAtBEA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CASnCC,CAAAA,aAA0C,CAAA,CAAA,kBAAA,CAW1CC,CAAAA,aAAqBC,+BAAAA,CACxB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAsB,CAAA,kBAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,iBACT,CACA,4CAAA,CACA,gDAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAH,CAAAA,CAAmB,WAAA,CAAmC,CAAA,CAAA,kBAAA,CAAmB,WAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UK3DZ4J2.cjs","sourcesContent":[null,"import type { ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as CollapsiblePrimitive from '@radix-ui/react-collapsible';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Collapsible\n * -------------------------------------------------------------------------- */\n\ntype CollapsibleProps = ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>;\nconst Collapsible = CollapsiblePrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: CollapsibleTrigger\n * -------------------------------------------------------------------------- */\n\ntype CollapsibleTriggerProps = ComponentPropsWithoutRef<\n typeof CollapsiblePrimitive.CollapsibleTrigger\n>;\nconst CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;\n\n/* -----------------------------------------------------------------------------\n * Component: CollapsibleContent\n * -------------------------------------------------------------------------- */\n\ntype CollapsibleContentElement = ComponentRef<typeof CollapsiblePrimitive.CollapsibleContent>;\ntype CollapsibleContentProps = ComponentPropsWithoutRef<\n typeof CollapsiblePrimitive.CollapsibleContent\n>;\n\nconst CollapsibleContent = forwardRef<CollapsibleContentElement, CollapsibleContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <CollapsiblePrimitive.CollapsibleContent\n ref={forwardedRef}\n className={cn(\n 'overflow-hidden',\n 'data-[state=open]:animate-collapsible-open',\n 'data-[state=closed]:animate-collapsible-closed',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCollapsibleContent.displayName = CollapsiblePrimitive.CollapsibleContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps };\nexport { Collapsible, CollapsibleContent, CollapsibleTrigger };\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 _chunk5WX3E22Kcjs = require('./chunk-5WX3E22K.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactcontext = require('@radix-ui/react-context');var _reacttogglegroup = require('@radix-ui/react-toggle-group'); var t = _interopRequireWildcard(_reacttogglegroup);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var u="ToggleGroup",[R]=_reactcontext.createContextScope.call(void 0, u,[_reacttogglegroup.createToggleGroupScope]),P=_reacttogglegroup.createToggleGroupScope.call(void 0, ),[v,I]=R(u),x= exports.a =_react.forwardRef.call(void 0, ({__scopeToggleGroup:o,children:e,className:r,icon:p,size:g,variant:i,...m},s)=>{let n=P(o);return _jsxruntime.jsx.call(void 0, v,{icon:p,scope:o,size:g,variant:i,children:_jsxruntime.jsx.call(void 0, t.Root,{ref:s,className:_chunkSMJEDCFPcjs.a.call(void 0, "flex items-center justify-center gap-1.5",r),...n,...m,children:e})})});x.displayName=u;var f="ToggleGroupItem",d= exports.b =_react.forwardRef.call(void 0, ({__scopeToggleGroup:o,children:e,className:r,prefix:p,suffix:g,...i},m)=>{let s=I(f,o),n=P(o);return _jsxruntime.jsxs.call(void 0, t.Item,{ref:m,className:_chunk5WX3E22Kcjs.a.call(void 0, {...s,className:r}),...n,...i,children:[p,typeof e=="string"?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:e}):e,g]})});d.displayName=f;exports.a = x; exports.b = d;
2
- //# sourceMappingURL=chunk-UPNCXCY4.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UPNCXCY4.cjs","../src/components/toggle-group.tsx"],"names":["ToggleGroupPrimitive","useToggleGroupScope","createToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","createToggleGroupContext","TOGGLE_GROUP_NAME","ToggleGroup","forwardRef","children","className","size","props","toggleGroupScope","__scopeToggleGroup","jsx","forwardedRef","cn","context","TOGGLE_GROUP_ITEM_NAME","jsxs","toggleVariants","prefix","ToggleGroupItem"],"mappings":"AAAA,uWAAY,CAAC,wDAAwC,wDCK5C,uDACGA,oHACH,8BA4CD,+CAhCkB,IAAA,CAAA,CAAA,aAIuE,CAE3FC,CAAAA,CAAsBC,CAAAA,CAAuB,8CAAA,CAE5CC,CAAAA,CAAqBC,wCAAqB,CAAA,CAC/CC,CAAAA,CAA8CC,CAAiB,sDAAA,CAM3DC,CAAcC,CAAAA,CAClB,CACE,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,aAAA,+BAAA,CAAA,CAAA,kBACAC,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAAC,CAAAA,IACA,CAAA,CAAA,CAAA,IACA,CAAA,CAAA,CAAGC,OAGF,CACH,CAAA,CAAA,GAAMC,CAAmBZ,CAAAA,CAAoBa,CAAkB,CAAA,EAE/D,CAAA,IAAA,CACEC,CAAAA,CAACZ,CAAAA,CAAA,CAAoB,CAAA,OAAY,6BAAA,CAAA,CAAA,CAAOW,IAAoB,CAAA,CAAA,CAAMH,KAAM,CAAA,CAAA,CAAA,IACtE,CAAA,CAAA,CAAA,OAAAI,CAAsB,CAAA,CAAA,QACpB,CAAA,6BAAKC,CACL,CAAA,IAAA,CAAA,CAAA,GAAWC,CAAAA,CAAG,CAAA,SAAA,CAAA,iCAAA,0CAEVL,CAEH,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,GACH,CAAA,CACF,QAKM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAcN,CAAAA,WAMK,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,iBAYzB,CAAA,CAAA,aAAA,+BAAA,CAAA,CAAA,kBACAG,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAA,CAAA,MACA,CAAA,CAAGE,CACL,MAEG,CACH,CAAA,CAAA,GAAMM,CAAUd,CAAAA,CAAsBe,CAAAA,CAAwBL,EAAkB,CAC1ED,IAAuCC,CAAkB,CAAA,CAE/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACEM,CAAAA,CAAsB,CAAA,CAAA,CAAA,CAAA,OACpB,8BAAKJ,CACL,CAAA,IAAA,CAAA,CAAA,GAAWK,CAAAA,CAAe,CAAE,SAAY,CAAA,iCAAA,CAAA,GAAU,CAAC,CAAA,SAE/CT,CAAAA,CAEH,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,GAAAU,CACA,CAAA,QAAOb,CAAa,CAAA,CAAA,CAAA,OAAWM,CAAC,EAAA,QAAK,CAAA,6BAAA,MAAU,CAAA,CAAA,SAAY,CAAA,UAAS,CAAUN,QAKvF,CAEAc,CAAAA,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAcJ,CAAAA,WAAAA,CAAAA,CAAAA,CAAAA,6BAAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UPNCXCY4.cjs","sourcesContent":[null,"'use client';\n\nimport type { Scope } from '@radix-ui/react-context';\nimport type { ComponentPropsWithoutRef, ComponentRef, ReactNode } from 'react';\n\nimport { createContextScope } from '@radix-ui/react-context';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { createToggleGroupScope } from '@radix-ui/react-toggle-group';\nimport { forwardRef } from 'react';\n\nimport type { ToggleVariantsProps } from '@/variants/toggle.variants';\n\nimport { cn } from '@/lib/utils';\nimport { toggleVariants } from '@/variants/toggle.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope };\n\nconst [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [createToggleGroupScope]);\n\nconst useToggleGroupScope = createToggleGroupScope();\n\nconst [ToggleGroupProvider, useToggleGroupContext] =\n createToggleGroupContext<ToggleVariantsProps>(TOGGLE_GROUP_NAME);\n\ntype ToggleGroupElement = ComponentRef<typeof ToggleGroupPrimitive.Root>;\ntype ToggleGroupProps = ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n ToggleVariantsProps;\n\nconst ToggleGroup = forwardRef<ToggleGroupElement, ToggleGroupProps>(\n (\n {\n __scopeToggleGroup,\n children,\n className,\n icon,\n size,\n variant,\n ...props\n }: ScopedProps<ToggleGroupProps>,\n forwardedRef,\n ) => {\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupProvider icon={icon} scope={__scopeToggleGroup} size={size} variant={variant}>\n <ToggleGroupPrimitive.Root\n ref={forwardedRef}\n className={cn('flex items-center justify-center gap-1.5', className)}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </ToggleGroupProvider>\n );\n },\n);\n\nToggleGroup.displayName = TOGGLE_GROUP_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroupItem\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';\n\ntype ToggleGroupItemElement = ComponentRef<typeof ToggleGroupPrimitive.Item>;\ninterface ToggleGroupItemProps\n extends Omit<ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>, 'prefix'> {\n prefix?: ReactNode;\n suffix?: ReactNode;\n}\n\nconst ToggleGroupItem = forwardRef<ToggleGroupItemElement, ToggleGroupItemProps>(\n (\n {\n __scopeToggleGroup,\n children,\n className,\n prefix,\n suffix,\n ...props\n }: ScopedProps<ToggleGroupItemProps>,\n forwardedRef,\n ) => {\n const context = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={forwardedRef}\n className={toggleVariants({ ...context, className })}\n {...toggleGroupScope}\n {...props}\n >\n {prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </ToggleGroupPrimitive.Item>\n );\n },\n);\n\nToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ToggleGroupItemProps, ToggleGroupProps };\nexport { ToggleGroup, ToggleGroupItem };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as n}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-menubar";import{CheckIcon as b,ChevronRightIcon as d,DotIcon as M}from"lucide-react";import{forwardRef as s}from"react";import{jsx as a,jsxs as p}from"react/jsx-runtime";var E=e.Menu,T=e.Group,w=e.Sub,k=e.RadioGroup,l=s(({className:t,...r},o)=>a(e.Root,{ref:o,className:n("bg-background flex h-10 items-center space-x-1 rounded-md border p-1",t),...r}));l.displayName=e.Root.displayName;var c=s(({className:t,...r},o)=>a(e.Trigger,{ref:o,className:n("gap-x-2 px-3 py-1.5","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}));c.displayName=e.Trigger.displayName;var f=s(({children:t,className:r,inset:o,...i},u)=>p(e.SubTrigger,{ref:u,className:n("gap-x-2 px-3 py-1.5","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",o&&"pl-8",r),...i,children:[t,a(d,{className:"ml-auto size-4"})]}));f.displayName=e.SubTrigger.displayName;var P=s(({className:t,...r},o)=>a(e.Portal,{children:a(e.SubContent,{ref:o,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 y=s(({align:t="start",alignOffset:r=-4,className:o,sideOffset:i=8,...u},m)=>a(e.Portal,{children:a(e.Content,{ref:m,align:t,alignOffset:r,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",o),sideOffset:i,...u})}));y.displayName=e.Content.displayName;var g=s(({className:t,inset:r,...o},i)=>a(e.Item,{ref:i,className:n("gap-x-2 px-3 py-1.5","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),...o}));g.displayName=e.Item.displayName;var v=s(({checked:t,children:r,className:o,...i},u)=>p(e.CheckboxItem,{ref:u,checked:t,className:n("gap-x-2 px-3 py-1.5","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),...i,children:[a("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:a(e.ItemIndicator,{children:a(b,{className:"size-4"})})}),r]}));v.displayName=e.CheckboxItem.displayName;var C=s(({children:t,className:r,...o},i)=>p(e.RadioItem,{ref:i,className:n("gap-x-2 px-3 py-1.5","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),...o,children:[a("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:a(e.ItemIndicator,{children:a(M,{className:"size-4 fill-current"})})}),t]}));C.displayName=e.RadioItem.displayName;var x=s(({className:t,inset:r,...o},i)=>a(e.Label,{ref:i,className:n("gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",r&&"pl-8",t),...o}));x.displayName=e.Label.displayName;var R=s(({className:t,...r},o)=>a(e.Separator,{ref:o,className:n("bg-muted mx-2 my-1 h-px",t),...r}));R.displayName=e.Separator.displayName;function W({className:t,...r}){return a("span",{className:n("text-muted-foreground ml-auto text-xs tracking-widest",t),...r})}var h=s(({className:t,...r},o)=>a(e.Arrow,{ref:o,className:n("fill-popover",t),...r}));h.displayName=e.Arrow.displayName;export{E as a,T as b,w as c,k as d,l as e,c as f,f as g,P as h,y as i,g as j,v as k,C as l,x as m,R as n,W as o,h as p};
2
- //# sourceMappingURL=chunk-VLSUAOTJ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/menubar.tsx"],"names":["MenubarPrimitive","CheckIcon","ChevronRightIcon","DotIcon","forwardRef","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":"wCAQA,UAAYA,MAAsB,0BAClC,OAAS,aAAAC,EAAW,oBAAAC,EAAkB,WAAAC,MAAe,eACrD,OAAS,cAAAC,MAAkB,QAyCvB,cAAAC,EAmDA,QAAAC,MAnDA,oBAhCJ,IAAMC,EAA+B,OAO/BC,EAAgC,QAOhCC,EAA8B,MAO9BC,EAAqC,aASrCC,EAAUP,EACd,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,OAAjB,CACC,IAAKS,EACL,UAAWC,EACT,uEACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAF,EAAQ,YAA+B,OAAK,YAS5C,IAAMK,EAAiBZ,EACrB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,UAAjB,CACC,IAAKS,EACL,UAAWC,EACT,sBACA,8EACA,kEACA,uEACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAG,EAAe,YAA+B,UAAQ,YAatD,IAAMC,EAAoBb,EACxB,CAAC,CAAE,SAAAc,EAAU,UAAAN,EAAW,MAAAO,EAAO,GAAGN,CAAM,EAAGC,IACzCR,EAAkB,aAAjB,CACC,IAAKQ,EACL,UAAWC,EACT,sBACA,kEACA,kEACA,uEACAI,GAAS,OACTP,CACF,EACC,GAAGC,EAEH,UAAAK,EACDb,EAACH,EAAA,CAAiB,UAAU,iBAAiB,GAC/C,CAEJ,EAEAe,EAAkB,YAA+B,aAAW,YAS5D,IAAMG,EAAoBhB,EACxB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,SAAjB,CACC,SAAAA,EAAkB,aAAjB,CACC,IAAKS,EACL,UAAWC,EACT,mFACA,sFACA,2DACA,2DACA,2DACA,2DACA,+FACA,4DACA,4DACA,4DACA,4DACAH,CACF,EACC,GAAGC,EACN,EACF,CAEJ,EAEAO,EAAkB,YAA+B,aAAW,YAS5D,IAAMC,EAAiBjB,EACrB,CAAC,CAAE,MAAAkB,EAAQ,QAAS,YAAAC,EAAc,GAAI,UAAAX,EAAW,WAAAY,EAAa,EAAG,GAAGX,CAAM,EAAGC,IAC3ET,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKS,EACL,MAAOQ,EACP,YAAaC,EACb,UAAWR,EACT,mFACA,0TACAH,CACF,EACA,WAAYY,EACX,GAAGX,EACN,EACF,CAEJ,EAEAQ,EAAe,YAA+B,UAAQ,YAYtD,IAAMI,EAAcrB,EAClB,CAAC,CAAE,UAAAQ,EAAW,MAAAO,EAAO,GAAGN,CAAM,EAAGC,IAC/BT,EAAkB,OAAjB,CACC,IAAKS,EACL,UAAWC,EACT,sBACA,2EACA,kEACA,6DACAI,GAAS,OACTP,CACF,EACC,GAAGC,EACN,CAEJ,EAEAY,EAAY,YAA+B,OAAK,YAShD,IAAMC,EAAsBtB,EAC1B,CAAC,CAAE,QAAAuB,EAAS,SAAAT,EAAU,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IAC3CR,EAAkB,eAAjB,CACC,IAAKQ,EACL,QAASa,EACT,UAAWZ,EACT,sBACA,OACA,2EACA,kEACA,6DACAH,CACF,EACC,GAAGC,EAEJ,UAAAR,EAAC,QAAK,UAAU,4DACd,SAAAA,EAAkB,gBAAjB,CACC,SAAAA,EAACJ,EAAA,CAAU,UAAU,SAAS,EAChC,EACF,EACCiB,GACH,CAEJ,EAEAQ,EAAoB,YAA+B,eAAa,YAShE,IAAME,EAAmBxB,EACvB,CAAC,CAAE,SAAAc,EAAU,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IAClCR,EAAkB,YAAjB,CACC,IAAKQ,EACL,UAAWC,EACT,sBACA,OACA,2EACA,kEACA,6DACAH,CACF,EACC,GAAGC,EAEJ,UAAAR,EAAC,QAAK,UAAU,4DACd,SAAAA,EAAkB,gBAAjB,CACC,SAAAA,EAACF,EAAA,CAAQ,UAAU,sBAAsB,EAC3C,EACF,EACCe,GACH,CAEJ,EAEAU,EAAiB,YAA+B,YAAU,YAY1D,IAAMC,EAAezB,EACnB,CAAC,CAAE,UAAAQ,EAAW,MAAAO,EAAO,GAAGN,CAAM,EAAGC,IAC/BT,EAAkB,QAAjB,CACC,IAAKS,EACL,UAAWC,EACT,sBACA,0CACAI,GAAS,OACTP,CACF,EACC,GAAGC,EACN,CAEJ,EAEAgB,EAAa,YAA+B,QAAM,YASlD,IAAMC,EAAmB1B,EACvB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,YAAjB,CACC,IAAKS,EACL,UAAWC,EAAG,0BAA2BH,CAAS,EACjD,GAAGC,EACN,CAEJ,EAEAiB,EAAiB,YAA+B,YAAU,YAQ1D,SAASC,EAAgB,CAAE,UAAAnB,EAAW,GAAGC,CAAM,EAAsC,CACnF,OACER,EAAC,QACC,UAAWU,EAAG,wDAAyDH,CAAS,EAC/E,GAAGC,EACN,CAEJ,CASA,IAAMmB,EAAe5B,EACnB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,QAAjB,CACC,IAAKS,EACL,UAAWC,EAAG,eAAgBH,CAAS,EACtC,GAAGC,EACN,CAEJ,EAEAmB,EAAa,YAA+B,QAAM","sourcesContent":["import type {\n ComponentProps,\n ComponentPropsWithoutRef,\n ComponentRef,\n HTMLAttributes,\n JSX,\n} from 'react';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { CheckIcon, ChevronRightIcon, DotIcon } from 'lucide-react';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarMenu\n * -------------------------------------------------------------------------- */\n\ntype MenubarMenuProps = ComponentProps<typeof MenubarPrimitive.Menu>;\nconst MenubarMenu = MenubarPrimitive.Menu;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarGroupProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Group>;\nconst MenubarGroup = MenubarPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSub\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Sub>;\nconst MenubarSub = MenubarPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioGroupProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioGroup>;\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\ntype MenubarElement = ComponentRef<typeof MenubarPrimitive.Root>;\ntype MenubarProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>;\n\nconst Menubar = forwardRef<MenubarElement, MenubarProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'bg-background flex h-10 items-center space-x-1 rounded-md border p-1',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarTriggerElement = ComponentRef<typeof MenubarPrimitive.Trigger>;\ntype MenubarTriggerProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>;\n\nconst MenubarTrigger = forwardRef<MenubarTriggerElement, MenubarTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\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 = ComponentRef<typeof MenubarPrimitive.SubTrigger>;\n\ninterface MenubarSubTriggerProps\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst MenubarSubTrigger = forwardRef<MenubarSubTriggerElement, MenubarSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\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 = ComponentRef<typeof MenubarPrimitive.SubContent>;\ntype MenubarSubContentProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>;\n\nconst MenubarSubContent = 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 = ComponentRef<typeof MenubarPrimitive.Content>;\ntype MenubarContentProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>;\n\nconst MenubarContent = forwardRef<MenubarContentElement, MenubarContentProps>(\n ({ align = 'start', alignOffset = -4, className, 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 = ComponentRef<typeof MenubarPrimitive.Item>;\n\ninterface MenubarItemProps extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> {\n inset?: boolean;\n}\n\nconst MenubarItem = forwardRef<MenubarItemElement, MenubarItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\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 = ComponentRef<typeof MenubarPrimitive.CheckboxItem>;\ntype MenubarCheckboxItemProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>;\n\nconst MenubarCheckboxItem = forwardRef<MenubarCheckboxItemElement, MenubarCheckboxItemProps>(\n ({ checked, children, className, ...props }, forwardedRef) => (\n <MenubarPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\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 = ComponentRef<typeof MenubarPrimitive.RadioItem>;\ntype MenubarRadioItemProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>;\n\nconst MenubarRadioItem = forwardRef<MenubarRadioItemElement, MenubarRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <MenubarPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\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 <DotIcon 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 = ComponentRef<typeof MenubarPrimitive.Label>;\n\ninterface MenubarLabelProps extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> {\n inset?: boolean;\n}\n\nconst MenubarLabel = forwardRef<MenubarLabelElement, MenubarLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Label\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex items-center text-sm font-semibold',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\ntype MenubarSeparatorElement = ComponentRef<typeof MenubarPrimitive.Separator>;\ntype MenubarSeparatorProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>;\n\nconst MenubarSeparator = forwardRef<MenubarSeparatorElement, MenubarSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\ntype MenubarShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction MenubarShortcut({ className, ...props }: MenubarShortcutProps): JSX.Element {\n return (\n <span\n className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\ntype MenubarArrowElement = ComponentRef<typeof MenubarPrimitive.Arrow>;\ntype MenubarArrowProps = MenubarPrimitive.MenubarArrowProps;\n\nconst MenubarArrow = forwardRef<MenubarArrowElement, MenubarArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Arrow\n ref={forwardedRef}\n className={cn('fill-popover', className)}\n {...props}\n />\n ),\n);\n\nMenubarArrow.displayName = MenubarPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n MenubarArrowProps,\n MenubarCheckboxItemProps,\n MenubarContentProps,\n MenubarGroupProps,\n MenubarItemProps,\n MenubarLabelProps,\n MenubarMenuProps,\n MenubarProps,\n MenubarRadioGroupProps,\n MenubarRadioItemProps,\n MenubarSeparatorProps,\n MenubarShortcutProps,\n MenubarSubContentProps,\n MenubarSubProps,\n MenubarSubTriggerProps,\n MenubarTriggerProps,\n};\nexport {\n Menubar,\n MenubarArrow,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"]}
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-OKUFCFYT.js";import*as o from"@radix-ui/react-radio-group";import{forwardRef as a}from"react";import{jsx as d}from"react/jsx-runtime";var p=a(({className:e,...r},i)=>d(o.Root,{className:t("grid gap-2",e),...r,ref:i}));p.displayName=o.Root.displayName;var s=a(({className:e,...r},i)=>d(o.Item,{ref:i,className:t("shadow-xs group peer flex cursor-pointer items-center justify-center rounded-md border p-4 transition","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-ring/40 focus-visible:border-ring focus-visible:ring-3 focus-visible:outline-none","disabled:cursor-default disabled:opacity-50","aria-checked:border-primary",e),...r}));s.displayName=o.Item.displayName;export{p as a,s as b};
2
- //# sourceMappingURL=chunk-VOEO3FKM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/radio-cards.tsx"],"names":["RadioGroupPrimitive","forwardRef","jsx","RadioCards","className","props","forwardedRef","cn","RadioCardsItem"],"mappings":"wCAEA,UAAYA,MAAyB,8BACrC,OAAS,cAAAC,MAAkB,QAcrB,cAAAC,MAAA,oBAHN,IAAMC,EAAaF,EACjB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,UAAWK,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAGN,EAEAH,EAAW,YAAkC,OAAK,YASlD,IAAMK,EAAiBP,EACrB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,wGACA,+CACA,uGACA,8CACA,8BACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAG,EAAe,YAAkC,OAAK","sourcesContent":["import type { ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCards\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsElement = ComponentRef<typeof RadioGroupPrimitive.Root>;\ntype RadioCardsProps = ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;\n\nconst RadioCards = forwardRef<RadioCardsElement, RadioCardsProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={forwardedRef}\n />\n );\n },\n);\n\nRadioCards.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCardsItem\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsItemElement = ComponentRef<typeof RadioGroupPrimitive.Item>;\ntype RadioCardsItemProps = ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;\n\nconst RadioCardsItem = forwardRef<RadioCardsItemElement, RadioCardsItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <RadioGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'shadow-xs group peer flex cursor-pointer items-center justify-center rounded-md border p-4 transition',\n 'hover:bg-accent hover:text-accent-foreground',\n 'focus-visible:ring-ring/40 focus-visible:border-ring focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:cursor-default disabled:opacity-50',\n 'aria-checked:border-primary',\n className,\n )}\n {...props}\n />\n ),\n);\n\nRadioCardsItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { RadioCardsItemProps, RadioCardsProps };\nexport { RadioCards, RadioCardsItem };\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 _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _checkboxgroup = require('@codefast-ui/checkbox-group'); var e = _interopRequireWildcard(_checkboxgroup);var _lucidereact = require('lucide-react');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var C=_react.forwardRef.call(void 0, ({className:i,...t},p)=>_jsxruntime.jsx.call(void 0, e.Root,{className:_chunkSMJEDCFPcjs.a.call(void 0, "grid gap-2",i),...t,ref:p}));C.displayName=e.Root.displayName;var b=_react.forwardRef.call(void 0, ({checkboxClassName:i,children:t,className:p,...s},a)=>_jsxruntime.jsxs.call(void 0, "label",{className:_chunkSMJEDCFPcjs.a.call(void 0, "group flex items-center justify-center gap-4 rounded-md border p-4",p),children:[t,_jsxruntime.jsx.call(void 0, e.Item,{ref:a,className:_chunkSMJEDCFPcjs.a.call(void 0, "border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 cursor-pointer rounded-sm border transition","group-hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","disabled:cursor-default disabled:opacity-50",i),...s,children:_jsxruntime.jsx.call(void 0, e.CheckboxGroupIndicator,{children:_jsxruntime.jsx.call(void 0, _lucidereact.CheckIcon,{className:"size-3.5"})})})]}));b.displayName=e.Item.displayName;exports.a = C; exports.b = b;
2
- //# sourceMappingURL=chunk-W5E7SOIE.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-W5E7SOIE.cjs","../src/components/checkbox-cards.tsx"],"names":["CheckboxCards","forwardRef","className","props","forwardedRef","jsx","cn","CheckboxCardsItem","checkboxClassName","children","jsxs","CheckIcon"],"mappings":"AAAA,mZAAwC,6GCEA,2CACd,8BACC,+CAavB,IAFEA,CAAAA,CAAgBC,+BAAAA,CACnB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,SAAA,CAAWC,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CACpC,GAAGC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACP,CAEJ,CAAA,CAEAJ,CAAAA,CAAc,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAaxD,IAAMO,CAAAA,CAAoBN,+BAAAA,CACvB,CAAE,iBAAA,CAAAO,CAAAA,CAAmB,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAP,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACrDM,8BAAAA,OAAC,CAAA,CACC,SAAA,CAAWJ,iCAAAA,oEACT,CACAJ,CACF,CAAA,CAEC,QAAA,CAAA,CAAAO,CAAAA,CACDJ,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,sHACT,CACA,4BAAA,CACA,qDAAA,CACA,4EAAA,CACA,6CAAA,CACAE,CACF,CAAA,CACC,GAAGL,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CACC,QAAA,CAAAA,6BAAAA,sBAACM,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEAJ,CAAAA,CAAkB,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-W5E7SOIE.cjs","sourcesContent":[null,"import type { ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from 'lucide-react';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={forwardedRef}\n />\n ),\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = ComponentRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps\n extends ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ checkboxClassName, children, className, ...props }, forwardedRef) => (\n <label\n className={cn(\n 'group flex items-center justify-center gap-4 rounded-md border p-4',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 cursor-pointer rounded-sm border transition',\n 'group-hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n ),\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { CheckboxCardsItemProps, CheckboxCardsProps };\nexport { CheckboxCards, CheckboxCardsItem };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/aspect-ratio.tsx"],"names":["AspectRatioPrimitive","AspectRatio"],"mappings":"AAEA,UAAYA,MAA0B,+BAOtC,IAAMC,EAAmC","sourcesContent":["import type { ComponentPropsWithoutRef } from 'react';\n\nimport * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';\n\n/* -----------------------------------------------------------------------------\n * Component: AspectRatio\n * -------------------------------------------------------------------------- */\n\ntype AspectRatioProps = ComponentPropsWithoutRef<typeof AspectRatioPrimitive.Root>;\nconst AspectRatio = AspectRatioPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { AspectRatioProps };\nexport { AspectRatio };\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 _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reacttooltip = require('@radix-ui/react-tooltip'); var o = _interopRequireWildcard(_reacttooltip);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var P=o.Provider,T= exports.b =o.Root,f= exports.c =o.Trigger,d= exports.d =_react.forwardRef.call(void 0, ({className:t,sideOffset:e=6,...i},l)=>_jsxruntime.jsx.call(void 0, o.Portal,{children:_jsxruntime.jsx.call(void 0, o.Content,{ref:l,className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground","z-50 rounded-md border px-3 py-1.5 text-xs","data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95","data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2","data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2","data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2","data-[state=delayed-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),sideOffset:e,...i})}));d.displayName=o.Content.displayName;var s=_react.forwardRef.call(void 0, ({className:t,...e},i)=>_jsxruntime.jsx.call(void 0, o.Arrow,{ref:i,className:_chunkSMJEDCFPcjs.a.call(void 0, "fill-popover",t),...e}));s.displayName=o.Arrow.displayName;exports.a = P; exports.b = T; exports.c = f; exports.d = d; exports.e = s;
2
- //# sourceMappingURL=chunk-WOHMRDBV.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-WOHMRDBV.cjs","../src/components/tooltip.tsx"],"names":["TooltipProvider","Tooltip","TooltipTrigger","TooltipContent","forwardRef","className","sideOffset","props","forwardedRef","jsx","cn","TooltipArrow"],"mappings":"AAAA,mZAAwC,uGCEN,8BACP,+CAmCrB,IA1BAA,CAAAA,CAAmC,CAAA,CAAA,QAAA,CAOnCC,CAAAA,aAA2B,CAAA,CAAA,IAAA,CAO3BC,CAAAA,aAAkC,CAAA,CAAA,OAAA,CASlCC,CAAAA,aAAiBC,+BAAAA,CACpB,CAAE,SAAA,CAAAC,CAAAA,CAAW,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAG,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxCC,6BAAAA,CAAkB,CAAA,MAAA,CAAjB,CACC,QAAA,CAAAA,6BAAAA,CAAkB,CAAA,OAAA,CAAjB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,oCACT,CACA,4CAAA,CACA,6GAAA,CACA,kEAAA,CACA,kEAAA,CACA,kEAAA,CACA,kEAAA,CACA,8FAAA,CACA,2DAAA,CACA,2DAAA,CACA,2DAAA,CACA,2DAAA,CACAL,CACF,CAAA,CACA,UAAA,CAAYC,CAAAA,CACX,GAAGC,CAAAA,CACN,CAAA,CACF,CAEJ,CAAA,CAEAJ,CAAAA,CAAe,WAAA,CAA+B,CAAA,CAAA,OAAA,CAAQ,WAAA,CAStD,IAAMQ,CAAAA,CAAeP,+BAAAA,CAClB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAkB,CAAA,KAAA,CAAjB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,cAAG,CAAgBL,CAAS,CAAA,CACtC,GAAGE,CAAAA,CACN,CAEJ,CAAA,CAEAI,CAAAA,CAAa,WAAA,CAA+B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,0EAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-WOHMRDBV.cjs","sourcesContent":[null,"import type { ComponentProps, ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\ntype TooltipProviderProps = ComponentProps<typeof TooltipPrimitive.Provider>;\nconst TooltipProvider = TooltipPrimitive.Provider;\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\ntype TooltipProps = ComponentProps<typeof TooltipPrimitive.Root>;\nconst Tooltip = TooltipPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\ntype TooltipTriggerProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>;\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\ntype TooltipContentElement = ComponentRef<typeof TooltipPrimitive.Content>;\ntype TooltipContentProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>;\n\nconst TooltipContent = forwardRef<TooltipContentElement, TooltipContentProps>(\n ({ className, sideOffset = 6, ...props }, forwardedRef) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground',\n 'z-50 rounded-md border px-3 py-1.5 text-xs',\n 'data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95',\n 'data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=delayed-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 </TooltipPrimitive.Portal>\n ),\n);\n\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipArrow\n * -------------------------------------------------------------------------- */\n\ntype TooltipArrowElement = ComponentRef<typeof TooltipPrimitive.Arrow>;\ntype TooltipArrowProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Arrow>;\n\nconst TooltipArrow = forwardRef<TooltipArrowElement, TooltipArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <TooltipPrimitive.Arrow\n ref={forwardedRef}\n className={cn('fill-popover', className)}\n {...props}\n />\n ),\n);\n\nTooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n TooltipArrowProps,\n TooltipContentProps,\n TooltipProps,\n TooltipProviderProps,\n TooltipTriggerProps,\n};\nexport { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };\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 _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _checkboxgroup = require('@codefast-ui/checkbox-group'); var o = _interopRequireWildcard(_checkboxgroup);var _lucidereact = require('lucide-react');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var n=_react.forwardRef.call(void 0, ({className:r,...p},t)=>_jsxruntime.jsx.call(void 0, o.Root,{ref:t,className:_chunkSMJEDCFPcjs.a.call(void 0, "grid gap-2",r),...p}));n.displayName="CheckboxGroup";var b=_react.forwardRef.call(void 0, ({className:r,...p},t)=>_jsxruntime.jsx.call(void 0, o.Item,{ref:t,className:_chunkSMJEDCFPcjs.a.call(void 0, ["border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 rounded-sm border transition","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50"],r),...p,children:_jsxruntime.jsx.call(void 0, o.CheckboxGroupIndicator,{children:_jsxruntime.jsx.call(void 0, _lucidereact.CheckIcon,{className:"size-3.5"})})}));b.displayName="CheckboxGroupItem";exports.a = n; exports.b = b;
2
- //# sourceMappingURL=chunk-WR5XV5RL.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-WR5XV5RL.cjs","../src/components/checkbox-group.tsx"],"names":["CheckboxGroup","forwardRef","className","props","forwardedRef","jsx","cn","CheckboxGroupItem","CheckIcon"],"mappings":"AAAA,mZAAwC,6GCEA,2CACd,8BACC,+CAavB,IAFEA,CAAAA,CAAgBC,+BAAAA,CACnB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CACpC,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAH,CAAAA,CAAc,WAAA,CAAc,eAAA,CAS5B,IAAMO,CAAAA,CAAoBN,+BAAAA,CACvB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CAEP,uGAAA,CACA,sBAAA,CACA,qDAAA,CACA,4EAAA,CACA,kDACF,CAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CACC,QAAA,CAAAA,6BAAAA,sBAACG,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAEJ,CAAA,CAEAD,CAAAA,CAAkB,WAAA,CAAc,mBAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-WR5XV5RL.cjs","sourcesContent":[null,"import type { ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from 'lucide-react';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root\n ref={forwardedRef}\n className={cn('grid gap-2', className)}\n {...props}\n />\n ),\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = ComponentRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 rounded-sm border transition',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n ),\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { CheckboxGroupItemProps, CheckboxGroupProps };\nexport { CheckboxGroup, CheckboxGroupItem };\n"]}
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-OKUFCFYT.js";import{VisuallyHidden as f}from"@radix-ui/react-visually-hidden";import{forwardRef as m}from"react";import{jsx as n,jsxs as d}from"react/jsx-runtime";var e=8,u=m(({children:r,className:o,loading:s=!0,...p},l)=>{if(!s)return r;let i=n("span",{ref:l,className:a("relative flex size-4 items-center justify-center opacity-60",o),...p,children:Array.from({length:e},(b,t)=>n("span",{className:"before:fade-out-25 before:animate-out before:animation-repeat-infinite before:animation-delay-(--spinner-delay) before:animation-duration-(--spinner-duration) rotate-(--spinner-rotate) absolute h-full before:block before:h-1/3 before:w-full before:rounded-full before:bg-current",style:{"--spinner-delay":`-${((e-t)*100).toString()}ms`,"--spinner-duration":`${(e*100).toString()}ms`,"--spinner-rotate":`${(360/e*t).toString()}deg`,width:`${(100/e).toString()}%`}},t))});return r===void 0?i:d("span",{className:"relative",children:[n("span",{"aria-hidden":!0,className:"invisible contents",children:r}),n(f,{children:r}),n("span",{className:"absolute inset-0 flex items-center justify-center",children:i})]})});u.displayName="Spinner";export{u as a};
2
- //# sourceMappingURL=chunk-WTQ27U3M.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/spinner.tsx"],"names":["VisuallyHidden","forwardRef","jsx","jsxs","spinnerCount","Spinner","children","className","loading","props","forwardedRef","spinner","cn","_","i"],"mappings":"mCAEA,OAAS,kBAAAA,MAAsB,kCAC/B,OAAS,cAAAC,MAAkB,QA4BjB,cAAAC,EAqBJ,QAAAC,MArBI,oBApBV,IAAMC,EAAe,EAOfC,EAAUJ,EACd,CAAC,CAAE,SAAAK,EAAU,UAAAC,EAAW,QAAAC,EAAU,GAAM,GAAGC,CAAM,EAAGC,IAAiB,CACnE,GAAI,CAACF,EACH,OAAOF,EAGT,IAAMK,EACJT,EAAC,QACC,IAAKQ,EACL,UAAWE,EAAG,8DAA+DL,CAAS,EACrF,GAAGE,EAEH,eAAM,KAAK,CAAE,OAAQL,CAAa,EAAG,CAACS,EAAGC,IACxCZ,EAAC,QAEC,UAAU,yRACV,MACE,CACE,kBAAmB,MAAME,EAAeU,GAAK,KAAK,SAAS,CAAC,KAC5D,qBAAsB,IAAIV,EAAe,KAAK,SAAS,CAAC,KACxD,mBAAoB,IAAK,IAAMA,EAAgBU,GAAG,SAAS,CAAC,MAC5D,MAAO,IAAI,IAAMV,GAAc,SAAS,CAAC,GAC3C,GARGU,CAUP,CACD,EACH,EAGF,OAAIR,IAAa,OACRK,EAIPR,EAAC,QAAK,UAAU,WACd,UAAAD,EAAC,QAAK,cAAW,GAAC,UAAU,qBACzB,SAAAI,EACH,EACAJ,EAACF,EAAA,CAAgB,SAAAM,EAAS,EAC1BJ,EAAC,QAAK,UAAU,oDAAqD,SAAAS,EAAQ,GAC/E,CAEJ,CACF,EAEAN,EAAQ,YAAc","sourcesContent":["import type { CSSProperties, HTMLAttributes } from 'react';\n\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Spinner\n * -------------------------------------------------------------------------- */\n\nconst spinnerCount = 8;\n\ntype SpinnerElement = HTMLSpanElement;\ninterface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {\n loading?: boolean;\n}\n\nconst Spinner = forwardRef<SpinnerElement, SpinnerProps>(\n ({ children, className, loading = true, ...props }, forwardedRef) => {\n if (!loading) {\n return children;\n }\n\n const spinner = (\n <span\n ref={forwardedRef}\n className={cn('relative flex size-4 items-center justify-center opacity-60', className)}\n {...props}\n >\n {Array.from({ length: spinnerCount }, (_, i) => (\n <span\n key={i}\n className=\"before:fade-out-25 before:animate-out before:animation-repeat-infinite before:animation-delay-(--spinner-delay) before:animation-duration-(--spinner-duration) rotate-(--spinner-rotate) absolute h-full before:block before:h-1/3 before:w-full before:rounded-full before:bg-current\"\n style={\n {\n '--spinner-delay': `-${((spinnerCount - i) * 100).toString()}ms`,\n '--spinner-duration': `${(spinnerCount * 100).toString()}ms`,\n '--spinner-rotate': `${((360 / spinnerCount) * i).toString()}deg`,\n width: `${(100 / spinnerCount).toString()}%`,\n } as CSSProperties\n }\n />\n ))}\n </span>\n );\n\n if (children === undefined) {\n return spinner;\n }\n\n return (\n <span className=\"relative\">\n <span aria-hidden className=\"invisible contents\">\n {children}\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n <span className=\"absolute inset-0 flex items-center justify-center\">{spinner}</span>\n </span>\n );\n },\n);\n\nSpinner.displayName = 'Spinner';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { SpinnerProps };\nexport { Spinner };\n"]}
@@ -1,2 +0,0 @@
1
- "use client";import{a as D,c as T,d as w,g as C,i as v}from"./chunk-547HQJXN.js";import{a as c,b as g,h as d,i,j as f,l as x,m as p}from"./chunk-CFKYPZPV.js";import{a as o}from"./chunk-ALGR2QZO.js";import{a as m}from"./chunk-AGY7ZINL.js";import{a as l}from"./chunk-OKUFCFYT.js";import{ChevronDownIcon as b,ChevronLeftIcon as N,ChevronRightIcon as P,ChevronsLeftIcon as h,ChevronsRightIcon as I,ChevronsUpDownIcon as M,ChevronUpIcon as S,EyeOffIcon as y,Settings2Icon as z}from"lucide-react";import{Fragment as k,jsx as e,jsxs as a}from"react/jsx-runtime";function O({table:n}){return a(c,{children:[a(g,{className:m({size:"xs",variant:"outline"}),children:[e(z,{className:"size-4"}),"View"]}),a(d,{align:"end",className:"w-36",children:[e(x,{children:"Toggle columns"}),e(p,{}),n.getAllColumns().filter(t=>t.accessorFn!==void 0&&t.getCanHide()).map(t=>e(f,{checked:t.getIsVisible(),className:"capitalize",onCheckedChange:r=>{t.toggleVisibility(!!r)},children:t.id},t.id))]})]})}function X({className:n,table:t,...r}){let u=t.getState().pagination.pageSize;return a("div",{className:l("flex flex-wrap items-center justify-between gap-4 px-2",n),...r,children:[a("div",{className:"text-muted-foreground min-w-max flex-1 text-sm",children:[t.getFilteredSelectedRowModel().rows.length," of"," ",t.getFilteredRowModel().rows.length," row(s) selected."]}),a("div",{className:"flex grow flex-wrap items-center justify-between gap-4 md:justify-end md:gap-x-6 lg:gap-x-8",children:[a("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-4",children:[e("p",{className:"text-sm font-medium",children:"Rows per page"}),a(D,{value:u.toString(),onValueChange:s=>{t.setPageSize(Number(s))},children:[e(w,{className:"w-18 h-8",children:e(T,{placeholder:u})}),e(C,{side:"top",children:[10,20,30,40,50].map(s=>e(v,{value:String(s),children:s},s))})]})]}),a("div",{className:"flex flex-wrap items-center justify-center text-sm font-medium",children:["Page ",t.getState().pagination.pageIndex+1," of ",t.getPageCount()]}),a("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-4",children:[a(o,{icon:!0,className:"max-md:hidden",disabled:!t.getCanPreviousPage(),size:"xs",variant:"outline",onClick:()=>{t.setPageIndex(0)},children:[e("span",{className:"sr-only",children:"Go to first page"}),e(h,{className:"size-4"})]}),a(o,{icon:!0,disabled:!t.getCanPreviousPage(),size:"xs",variant:"outline",onClick:()=>{t.previousPage()},children:[e("span",{className:"sr-only",children:"Go to previous page"}),e(N,{className:"size-4"})]}),a(o,{icon:!0,disabled:!t.getCanNextPage(),size:"xs",variant:"outline",onClick:()=>{t.nextPage()},children:[e("span",{className:"sr-only",children:"Go to next page"}),e(P,{className:"size-4"})]}),a(o,{icon:!0,className:"max-md:hidden",disabled:!t.getCanNextPage(),size:"xs",variant:"outline",onClick:()=>{t.setPageIndex(t.getPageCount()-1)},children:[e("span",{className:"sr-only",children:"Go to last page"}),e(I,{className:"size-4"})]})]})]})]})}function A({column:n,title:t}){return n.getCanSort()?a(c,{children:[e(g,{asChild:!0,children:e(o,{className:l("text-muted-foreground p-0","hover:bg-transparent","data-[state=open]:text-accent-foreground","focus-visible:text-accent-foreground focus-visible:bg-transparent focus-visible:outline-0"),size:"xs",suffix:e(V,{sorted:n.getIsSorted()}),variant:"ghost",children:t})}),a(d,{align:"start",children:[a(i,{onClick:()=>{n.toggleSorting(!1)},children:[e(S,{className:"text-muted-foreground size-4"}),"Asc"]}),a(i,{onClick:()=>{n.toggleSorting(!0)},children:[e(b,{className:"text-muted-foreground size-4"}),"Desc"]}),e(p,{}),a(i,{onClick:()=>{n.toggleVisibility(!1)},children:[e(y,{className:"text-muted-foreground size-4"}),"Hide"]})]})]}):e(k,{children:t})}function V({sorted:n}){switch(n){case"desc":return e(b,{});case"asc":return e(S,{});default:return e(M,{})}}export{O as a,X as b,A as c};
2
- //# sourceMappingURL=chunk-X7EPPEV6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/data-table.tsx"],"names":["ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronsLeftIcon","ChevronsRightIcon","ChevronsUpDownIcon","ChevronUpIcon","EyeOffIcon","Settings2Icon","Fragment","jsx","jsxs","DataTableViewOptions","table","DropdownMenu","DropdownMenuTrigger","buttonVariants","DropdownMenuContent","DropdownMenuLabel","DropdownMenuSeparator","column","DropdownMenuCheckboxItem","value","DataTablePagination","className","props","pageSize","cn","Select","SelectTrigger","SelectValue","SelectContent","size","SelectItem","Button","DataTableColumnHeader","title","SortIcon","DropdownMenuItem","sorted"],"mappings":"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","sourcesContent":["'use client';\n\nimport type * as ReactTable from '@tanstack/react-table';\nimport type { HTMLAttributes, JSX } from 'react';\n\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronsLeftIcon,\n ChevronsRightIcon,\n ChevronsUpDownIcon,\n ChevronUpIcon,\n EyeOffIcon,\n Settings2Icon,\n} from 'lucide-react';\n\nimport { Button } from '@/components/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/dropdown-menu';\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/select';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/variants/button.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: DataTableViewOptions\n * -------------------------------------------------------------------------- */\n\ninterface DataTableViewOptionsProps<TData> {\n table: ReactTable.Table<TData>;\n}\n\nfunction DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): JSX.Element {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger className={buttonVariants({ size: 'xs', variant: 'outline' })}>\n <Settings2Icon className=\"size-4\" />\n View\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" className=\"w-36\">\n <DropdownMenuLabel>Toggle columns</DropdownMenuLabel>\n <DropdownMenuSeparator />\n {table\n .getAllColumns()\n .filter((column) => column.accessorFn !== undefined && column.getCanHide())\n .map((column) => (\n <DropdownMenuCheckboxItem\n key={column.id}\n checked={column.getIsVisible()}\n className=\"capitalize\"\n onCheckedChange={(value) => {\n column.toggleVisibility(Boolean(value));\n }}\n >\n {column.id}\n </DropdownMenuCheckboxItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DataTablePagination\n * -------------------------------------------------------------------------- */\n\ninterface DataTablePaginationProps<TData> extends HTMLAttributes<HTMLDivElement> {\n table: ReactTable.Table<TData>;\n}\n\nfunction DataTablePagination<TData>({\n className,\n table,\n ...props\n}: DataTablePaginationProps<TData>): JSX.Element {\n const pageSize = table.getState().pagination.pageSize;\n\n return (\n <div\n className={cn('flex flex-wrap items-center justify-between gap-4 px-2', className)}\n {...props}\n >\n <div className=\"text-muted-foreground min-w-max flex-1 text-sm\">\n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected.\n </div>\n\n <div className=\"flex grow flex-wrap items-center justify-between gap-4 md:justify-end md:gap-x-6 lg:gap-x-8\">\n <div className=\"flex flex-wrap items-center gap-x-2 gap-y-4\">\n <p className=\"text-sm font-medium\">Rows per page</p>\n <Select\n value={pageSize.toString()}\n onValueChange={(value) => {\n table.setPageSize(Number(value));\n }}\n >\n <SelectTrigger className=\"w-18 h-8\">\n <SelectValue placeholder={pageSize} />\n </SelectTrigger>\n <SelectContent side=\"top\">\n {[10, 20, 30, 40, 50].map((size) => (\n <SelectItem key={size} value={String(size)}>\n {size}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n <div className=\"flex flex-wrap items-center justify-center text-sm font-medium\">\n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n </div>\n <div className=\"flex flex-wrap items-center gap-x-2 gap-y-4\">\n <Button\n icon\n className=\"max-md:hidden\"\n disabled={!table.getCanPreviousPage()}\n size=\"xs\"\n variant=\"outline\"\n onClick={() => {\n table.setPageIndex(0);\n }}\n >\n <span className=\"sr-only\">Go to first page</span>\n <ChevronsLeftIcon className=\"size-4\" />\n </Button>\n <Button\n icon\n disabled={!table.getCanPreviousPage()}\n size=\"xs\"\n variant=\"outline\"\n onClick={() => {\n table.previousPage();\n }}\n >\n <span className=\"sr-only\">Go to previous page</span>\n <ChevronLeftIcon className=\"size-4\" />\n </Button>\n <Button\n icon\n disabled={!table.getCanNextPage()}\n size=\"xs\"\n variant=\"outline\"\n onClick={() => {\n table.nextPage();\n }}\n >\n <span className=\"sr-only\">Go to next page</span>\n <ChevronRightIcon className=\"size-4\" />\n </Button>\n <Button\n icon\n className=\"max-md:hidden\"\n disabled={!table.getCanNextPage()}\n size=\"xs\"\n variant=\"outline\"\n onClick={() => {\n table.setPageIndex(table.getPageCount() - 1);\n }}\n >\n <span className=\"sr-only\">Go to last page</span>\n <ChevronsRightIcon className=\"size-4\" />\n </Button>\n </div>\n </div>\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DataTableColumnHeader\n * -------------------------------------------------------------------------- */\n\ninterface DataTableColumnHeaderProps<TData, TValue> {\n column: ReactTable.Column<TData, TValue>;\n title: string;\n}\n\nfunction DataTableColumnHeader<TData, TValue>({\n column,\n title,\n}: DataTableColumnHeaderProps<TData, TValue>): JSX.Element {\n if (!column.getCanSort()) {\n return <>{title}</>;\n }\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n className={cn(\n 'text-muted-foreground p-0',\n 'hover:bg-transparent',\n 'data-[state=open]:text-accent-foreground',\n 'focus-visible:text-accent-foreground focus-visible:bg-transparent focus-visible:outline-0',\n )}\n size=\"xs\"\n suffix={<SortIcon sorted={column.getIsSorted()} />}\n variant=\"ghost\"\n >\n {title}\n </Button>\n </DropdownMenuTrigger>\n\n <DropdownMenuContent align=\"start\">\n <DropdownMenuItem\n onClick={() => {\n column.toggleSorting(false);\n }}\n >\n <ChevronUpIcon className=\"text-muted-foreground size-4\" />\n Asc\n </DropdownMenuItem>\n <DropdownMenuItem\n onClick={() => {\n column.toggleSorting(true);\n }}\n >\n <ChevronDownIcon className=\"text-muted-foreground size-4\" />\n Desc\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem\n onClick={() => {\n column.toggleVisibility(false);\n }}\n >\n <EyeOffIcon className=\"text-muted-foreground size-4\" />\n Hide\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nfunction SortIcon({ sorted }: { sorted: false | ReactTable.SortDirection }): JSX.Element {\n switch (sorted) {\n case 'desc': {\n return <ChevronDownIcon />;\n }\n\n case 'asc': {\n return <ChevronUpIcon />;\n }\n\n default: {\n return <ChevronsUpDownIcon />;\n }\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { DataTableColumnHeaderProps, DataTablePaginationProps, DataTableViewOptionsProps };\nexport { DataTableColumnHeader, DataTablePagination, DataTableViewOptions };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-OKUFCFYT.js";import*as r from"@radix-ui/react-progress";import{forwardRef as p}from"react";import{jsx as e}from"react/jsx-runtime";var P=p(({className:s,value:t,...i},m)=>e(r.Root,{ref:m,className:o("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",s),...i,children:e(r.Indicator,{className:"bg-primary size-full flex-1 transition",style:{transform:`translateX(-${String(100-(t??0))}%)`}})}));P.displayName=r.Root.displayName;export{P as a};
2
- //# sourceMappingURL=chunk-XB4LERGG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/progress.tsx"],"names":["ProgressPrimitive","forwardRef","jsx","Progress","className","value","props","forwardedRef","cn"],"mappings":"wCAEA,UAAYA,MAAuB,2BACnC,OAAS,cAAAC,MAAkB,QAkBrB,cAAAC,MAAA,oBAPN,IAAMC,EAAWF,EACf,CAAC,CAAE,UAAAG,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAC/BL,EAAmB,OAAlB,CACC,IAAKK,EACL,UAAWC,EAAG,iEAAkEJ,CAAS,EACxF,GAAGE,EAEJ,SAAAJ,EAAmB,YAAlB,CACC,UAAU,yCACV,MAAO,CACL,UAAW,eAAe,OAAO,KAAOG,GAAS,EAAE,CAAC,IACtD,EACF,EACF,CAEJ,EAEAF,EAAS,YAAgC,OAAK","sourcesContent":["import type { ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Progress\n * -------------------------------------------------------------------------- */\n\ntype ProgressElement = ComponentRef<typeof ProgressPrimitive.Root>;\ntype ProgressProps = ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>;\n\nconst Progress = forwardRef<ProgressElement, ProgressProps>(\n ({ className, value, ...props }, forwardedRef) => (\n <ProgressPrimitive.Root\n ref={forwardedRef}\n className={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"bg-primary size-full flex-1 transition\"\n style={{\n transform: `translateX(-${String(100 - (value ?? 0))}%)`,\n }}\n />\n </ProgressPrimitive.Root>\n ),\n);\n\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ProgressProps };\nexport { Progress };\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactslot = require('@radix-ui/react-slot');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var m=_react.forwardRef.call(void 0, ({asChild:t,className:o,...n},r)=>_jsxruntime.jsx.call(void 0, t?_reactslot.Slot:"div",{ref:r,className:_chunkSMJEDCFPcjs.a.call(void 0, "container",o),...n}));m.displayName="Container";exports.a = m;
2
- //# sourceMappingURL=chunk-XBQ47SA3.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XBQ47SA3.cjs","../src/components/container.tsx"],"names":["Container","forwardRef","asChild","className","props","forwardedRef","jsx","Slot","cn"],"mappings":"AAAA,iIAAwC,iDCEnB,8BACM,+CAiBhB,IAJLA,CAAAA,CAAYC,+BAAAA,CACf,CAAE,OAAA,CAAAC,CAAAA,CAAS,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAG1BC,6BAAAA,CAFWJ,CAAUK,eAAAA,CAAO,KAAA,CAE3B,CAAU,GAAA,CAAKF,CAAAA,CAAc,SAAA,CAAWG,iCAAAA,WAAG,CAAaL,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE3F,CAAA,CAEAJ,CAAAA,CAAU,WAAA,CAAc,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XBQ47SA3.cjs","sourcesContent":[null,"import type { HTMLAttributes } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Container\n * -------------------------------------------------------------------------- */\n\ntype ContainerElement = HTMLDivElement;\ninterface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n asChild?: boolean;\n}\n\nconst Container = forwardRef<ContainerElement, ContainerProps>(\n ({ asChild, className, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'div';\n\n return <Component ref={forwardedRef} className={cn('container', className)} {...props} />;\n },\n);\n\nContainer.displayName = 'Container';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ContainerProps };\nexport { Container };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-OKUFCFYT.js";import{forwardRef as o}from"react";import{jsx as s}from"react/jsx-runtime";var i=o(({className:r,...t},a)=>s("textarea",{ref:a,className:e(["border-input shadow-xs flex min-h-16 w-full grow rounded-md border bg-transparent px-3 py-2 text-sm transition","focus-visible:border-ring focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","placeholder:text-muted-foreground","disabled:cursor-default disabled:opacity-50"],r),...t}));i.displayName="Textarea";export{i as a};
2
- //# sourceMappingURL=chunk-XJ2CBAIR.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/textarea.tsx"],"names":["forwardRef","jsx","Textarea","className","props","forwardedRef","cn"],"mappings":"wCAEA,OAAS,cAAAA,MAAkB,QAavB,cAAAC,MAAA,oBAFJ,IAAMC,EAAWF,EACf,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,YACC,IAAKI,EACL,UAAWC,EACT,CACE,iHACA,uGACA,oCACA,6CACF,EACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAF,EAAS,YAAc","sourcesContent":["import type { TextareaHTMLAttributes } from 'react';\n\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ntype TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = forwardRef<TextareaElement, TextareaProps>(\n ({ className, ...props }, forwardedRef) => (\n <textarea\n ref={forwardedRef}\n className={cn(\n [\n 'border-input shadow-xs flex min-h-16 w-full grow rounded-md border bg-transparent px-3 py-2 text-sm transition',\n 'focus-visible:border-ring focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'placeholder:text-muted-foreground',\n 'disabled:cursor-default disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n />\n ),\n);\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { TextareaProps };\nexport { Textarea };\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkPZVDMLGGcjs = require('./chunk-PZVDMLGG.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactcontext = require('@radix-ui/react-context');var _emblacarouselreact = require('embla-carousel-react'); var _emblacarouselreact2 = _interopRequireDefault(_emblacarouselreact);var _lucidereact = require('lucide-react');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var x="Carousel",[_,Y]=_reactcontext.createContextScope.call(void 0, x),[O,y]=_(x),z= exports.b =_react.forwardRef.call(void 0, ({__scopeCarousel:l,children:a,className:t,opts:o,orientation:s,plugins:i,setApi:n,...c},C)=>{let[m,e]=_emblacarouselreact2.default.call(void 0, {...o,axis:s==="vertical"?"y":"x"},i),[R,H]=_react.useState.call(void 0, !1),[I,h]=_react.useState.call(void 0, !1),P=_react.useCallback.call(void 0, u=>{u&&(H(u.canScrollPrev()),h(u.canScrollNext()))},[]),E=_react.useCallback.call(void 0, ()=>{_optionalChain([e, 'optionalAccess', _2 => _2.scrollPrev, 'call', _3 => _3()])},[e]),N=_react.useCallback.call(void 0, ()=>{_optionalChain([e, 'optionalAccess', _4 => _4.scrollNext, 'call', _5 => _5()])},[e]),w=_react.useCallback.call(void 0, u=>{u.key==="ArrowLeft"?(u.preventDefault(),E()):u.key==="ArrowRight"&&(u.preventDefault(),N())},[E,N]);return _react.useEffect.call(void 0, ()=>{!e||!n||n(e)},[e,n]),_react.useEffect.call(void 0, ()=>{if(e)return P(e),e.on("reInit",P),e.on("select",P),()=>{e.off("select",P)}},[e,P]),_jsxruntime.jsx.call(void 0, O,{api:e,canScrollNext:I,canScrollPrev:R,carouselRef:m,opts:o,orientation:_nullishCoalesce(s, () => ((_optionalChain([o, 'optionalAccess', _6 => _6.axis])==="y"?"vertical":"horizontal"))),scope:l,scrollNext:N,scrollPrev:E,children:_jsxruntime.jsx.call(void 0, "div",{ref:C,"aria-roledescription":"carousel",className:_chunkSMJEDCFPcjs.a.call(void 0, "relative",t),role:"region",onKeyDownCapture:w,...c,children:a})})});z.displayName=x;var T="CarouselContent",k= exports.c =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,classNames:t,...o},s)=>{let{carouselRef:i,orientation:n}=y(T,l);return _jsxruntime.jsx.call(void 0, "div",{ref:i,className:_chunkSMJEDCFPcjs.a.call(void 0, "overflow-hidden",_optionalChain([t, 'optionalAccess', _7 => _7.wrapper])),children:_jsxruntime.jsx.call(void 0, "div",{ref:s,className:_chunkSMJEDCFPcjs.a.call(void 0, "flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",_optionalChain([t, 'optionalAccess', _8 => _8.content]),a),...o})})});k.displayName=T;var L="CarouselItem",K= exports.d =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,...t},o)=>{let{orientation:s}=y(L,l);return _jsxruntime.jsx.call(void 0, "div",{ref:o,"aria-roledescription":"slide",className:_chunkSMJEDCFPcjs.a.call(void 0, "min-w-0 shrink-0 grow-0 basis-full",s==="horizontal"?"pl-4":"pt-4",a),role:"group",...t})});K.displayName=L;var A="CarouselPrevious",V= exports.e =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,icon:t=!0,size:o="sm",variant:s="outline",...i},n)=>{let{canScrollPrev:c,orientation:C,scrollPrev:m}=y(A,l);return _jsxruntime.jsx.call(void 0, _chunkPZVDMLGGcjs.a,{ref:n,className:_chunkSMJEDCFPcjs.a.call(void 0, "absolute",C==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!c,icon:t,prefix:_jsxruntime.jsx.call(void 0, _lucidereact.ArrowLeftIcon,{}),size:o,variant:s,onClick:m,...i,children:_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Previous slide"})})});V.displayName=A;var M="CarouselNext",X= exports.f =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,icon:t=!0,size:o="sm",variant:s="outline",...i},n)=>{let{canScrollNext:c,orientation:C,scrollNext:m}=y(M,l);return _jsxruntime.jsx.call(void 0, _chunkPZVDMLGGcjs.a,{ref:n,className:_chunkSMJEDCFPcjs.a.call(void 0, "absolute",C==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!c,icon:t,prefix:_jsxruntime.jsx.call(void 0, _lucidereact.ArrowRightIcon,{}),size:o,variant:s,onClick:m,...i,children:_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Next slide"})})});X.displayName=M;exports.a = Y; exports.b = z; exports.c = k; exports.d = K; exports.e = V; exports.f = X;
2
- //# sourceMappingURL=chunk-XN252TLC.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XN252TLC.cjs","../src/components/carousel.tsx"],"names":["useEmblaCarousel","createCarouselContext","CarouselProvider","useCarouselContext","CAROUSEL_NAME","Carousel","forwardRef","children","className","orientation","props","carouselRef","api","opts","canScrollPrev","canScrollNext","setCanScrollNext","useState","onSelect","useCallback","carouselApi","setCanScrollPrev","event","useEffect","setApi","jsx","scrollNext","scrollPrev","forwardedRef","classNames","cn","CarouselContent","CAROUSEL_CONTENT_NAME","CAROUSEL_ITEM_NAME","variant","Button","ArrowLeftIcon","size","CAROUSEL_PREVIOUS_NAME","ArrowRightIcon","CAROUSEL_NEXT_NAME"],"mappings":"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","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XN252TLC.cjs","sourcesContent":[null,"'use client';\n\nimport type { Scope } from '@radix-ui/react-context';\nimport type { HTMLAttributes, KeyboardEvent } from 'react';\n\nimport { createContextScope } from '@radix-ui/react-context';\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';\nimport { ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\n\nimport type { ButtonProps } from '@/components/button';\n\nimport { Button } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Carousel\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_NAME = 'Carousel';\n\ntype ScopedProps<P> = P & { __scopeCarousel?: Scope };\n\nconst [createCarouselContext, createCarouselScope] = createContextScope(CAROUSEL_NAME);\n\ntype CarouselApi = UseEmblaCarouselType[1];\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\ntype CarouselOptions = UseCarouselParameters[0];\ntype CarouselPlugin = UseCarouselParameters[1];\n\ninterface BaseCarouselProps {\n opts?: CarouselOptions;\n orientation?: 'horizontal' | 'vertical';\n plugins?: CarouselPlugin;\n setApi?: (api: CarouselApi) => void;\n}\n\ntype CarouselContextValue = BaseCarouselProps & {\n api: ReturnType<typeof useEmblaCarousel>[1];\n canScrollNext: boolean;\n canScrollPrev: boolean;\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\n scrollNext: () => void;\n scrollPrev: () => void;\n};\n\nconst [CarouselProvider, useCarouselContext] =\n createCarouselContext<CarouselContextValue>(CAROUSEL_NAME);\n\ntype CarouselElement = HTMLDivElement;\ntype CarouselProps = BaseCarouselProps & HTMLAttributes<HTMLDivElement>;\n\nconst Carousel = forwardRef<CarouselElement, CarouselProps>(\n (\n {\n __scopeCarousel,\n children,\n className,\n opts,\n orientation,\n plugins,\n setApi,\n ...props\n }: ScopedProps<CarouselProps>,\n forwardedRef,\n ) => {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'vertical' ? 'y' : 'x',\n },\n plugins,\n );\n\n const [canScrollPrev, setCanScrollPrev] = useState(false);\n const [canScrollNext, setCanScrollNext] = useState(false);\n\n const onSelect = useCallback((carouselApi: CarouselApi) => {\n if (!carouselApi) {\n return;\n }\n\n setCanScrollPrev(carouselApi.canScrollPrev());\n setCanScrollNext(carouselApi.canScrollNext());\n }, []);\n\n const scrollPrev = useCallback(() => {\n api?.scrollPrev();\n }, [api]);\n\n const scrollNext = useCallback(() => {\n api?.scrollNext();\n }, [api]);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n scrollPrev();\n } else if (event.key === 'ArrowRight') {\n event.preventDefault();\n scrollNext();\n }\n },\n [scrollPrev, scrollNext],\n );\n\n useEffect(() => {\n if (!api || !setApi) {\n return;\n }\n\n setApi(api);\n }, [api, setApi]);\n\n useEffect(() => {\n if (!api) {\n return;\n }\n\n onSelect(api);\n api.on('reInit', onSelect);\n api.on('select', onSelect);\n\n return () => {\n api.off('select', onSelect);\n };\n }, [api, onSelect]);\n\n return (\n <CarouselProvider\n api={api}\n canScrollNext={canScrollNext}\n canScrollPrev={canScrollPrev}\n carouselRef={carouselRef}\n opts={opts}\n orientation={orientation ?? (opts?.axis === 'y' ? 'vertical' : 'horizontal')}\n scope={__scopeCarousel}\n scrollNext={scrollNext}\n scrollPrev={scrollPrev}\n >\n <div\n ref={forwardedRef}\n aria-roledescription=\"carousel\"\n className={cn('relative', className)}\n role=\"region\"\n onKeyDownCapture={handleKeyDown}\n {...props}\n >\n {children}\n </div>\n </CarouselProvider>\n );\n },\n);\n\nCarousel.displayName = CAROUSEL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: CarouselContent\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_CONTENT_NAME = 'CarouselContent';\n\ntype CarouselContentElement = HTMLDivElement;\ninterface CarouselContentProps extends HTMLAttributes<HTMLDivElement> {\n classNames?: {\n content?: string;\n wrapper?: string;\n };\n}\n\nconst CarouselContent = forwardRef<CarouselContentElement, CarouselContentProps>(\n (\n { __scopeCarousel, className, classNames, ...props }: ScopedProps<CarouselContentProps>,\n forwardedRef,\n ) => {\n const { carouselRef, orientation } = useCarouselContext(CAROUSEL_CONTENT_NAME, __scopeCarousel);\n\n return (\n <div ref={carouselRef} className={cn('overflow-hidden', classNames?.wrapper)}>\n <div\n ref={forwardedRef}\n className={cn(\n 'flex',\n orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col',\n classNames?.content,\n className,\n )}\n {...props}\n />\n </div>\n );\n },\n);\n\nCarouselContent.displayName = CAROUSEL_CONTENT_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: CarouselItem\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_ITEM_NAME = 'CarouselItem';\n\ntype CarouselItemElement = HTMLDivElement;\ntype CarouselItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst CarouselItem = forwardRef<CarouselItemElement, CarouselItemProps>(\n ({ __scopeCarousel, className, ...props }: ScopedProps<CarouselItemProps>, forwardedRef) => {\n const { orientation } = useCarouselContext(CAROUSEL_ITEM_NAME, __scopeCarousel);\n\n return (\n <div\n ref={forwardedRef}\n aria-roledescription=\"slide\"\n className={cn(\n 'min-w-0 shrink-0 grow-0 basis-full',\n orientation === 'horizontal' ? 'pl-4' : 'pt-4',\n className,\n )}\n role=\"group\"\n {...props}\n />\n );\n },\n);\n\nCarouselItem.displayName = CAROUSEL_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: CarouselPrevious\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_PREVIOUS_NAME = 'CarouselPrevious';\n\ntype CarouselPreviousElement = HTMLButtonElement;\ntype CarouselPreviousProps = ButtonProps;\n\nconst CarouselPrevious = forwardRef<CarouselPreviousElement, CarouselPreviousProps>(\n (\n {\n __scopeCarousel,\n className,\n icon = true,\n size = 'sm',\n variant = 'outline',\n ...props\n }: ScopedProps<CarouselPreviousProps>,\n forwardedRef,\n ) => {\n const { canScrollPrev, orientation, scrollPrev } = useCarouselContext(\n CAROUSEL_PREVIOUS_NAME,\n __scopeCarousel,\n );\n\n return (\n <Button\n ref={forwardedRef}\n className={cn(\n 'absolute',\n orientation === 'horizontal'\n ? '-left-12 top-1/2 -translate-y-1/2'\n : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollPrev}\n icon={icon}\n prefix={<ArrowLeftIcon />}\n size={size}\n variant={variant}\n onClick={scrollPrev}\n {...props}\n >\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n );\n },\n);\n\nCarouselPrevious.displayName = CAROUSEL_PREVIOUS_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: CarouselNext\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_NEXT_NAME = 'CarouselNext';\n\ntype CarouselNextElement = HTMLButtonElement;\ntype CarouselNextProps = ButtonProps;\n\nconst CarouselNext = forwardRef<CarouselNextElement, CarouselNextProps>(\n (\n {\n __scopeCarousel,\n className,\n icon = true,\n size = 'sm',\n variant = 'outline',\n ...props\n }: ScopedProps<CarouselNextProps>,\n forwardedRef,\n ) => {\n const { canScrollNext, orientation, scrollNext } = useCarouselContext(\n CAROUSEL_NEXT_NAME,\n __scopeCarousel,\n );\n\n return (\n <Button\n ref={forwardedRef}\n className={cn(\n 'absolute',\n orientation === 'horizontal'\n ? '-right-12 top-1/2 -translate-y-1/2'\n : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollNext}\n icon={icon}\n prefix={<ArrowRightIcon />}\n size={size}\n variant={variant}\n onClick={scrollNext}\n {...props}\n >\n <span className=\"sr-only\">Next slide</span>\n </Button>\n );\n },\n);\n\nCarouselNext.displayName = CAROUSEL_NEXT_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n CarouselApi,\n CarouselContentProps,\n CarouselItemProps,\n CarouselNextProps,\n CarouselPreviousProps,\n CarouselProps,\n};\nexport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n createCarouselScope,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _reactslot = require('@radix-ui/react-slot');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var i=_react.forwardRef.call(void 0, ({as:e="h1",asChild:t,...n},o)=>_jsxruntime.jsx.call(void 0, t?_reactslot.Slot:e,{ref:o,...n}));i.displayName="Heading";exports.a = i;
2
- //# sourceMappingURL=chunk-XNQMYEHN.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/heading.tsx"],"names":["Heading","forwardRef","Tag","asChild","props","forwardedRef","jsx","Slot"],"mappings":"AAEA,0HAAqB,8BACM,+CAiBhB,IAJLA,CAAAA,CAAUC,+BAAAA,CACb,CAAE,EAAA,CAAIC,CAAAA,CAAM,IAAA,CAAM,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAG/BC,6BAAAA,CAFWH,CAAUI,eAAAA,CAAOL,CAAAA,CAE3B,CAAU,GAAA,CAAKG,CAAAA,CAAe,GAAGD,CAAAA,CAAO,CAEpD,CAAA,CAEAJ,CAAAA,CAAQ,WAAA,CAAc,SAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XNQMYEHN.cjs","sourcesContent":["import type { HTMLAttributes } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { forwardRef } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Heading\n * -------------------------------------------------------------------------- */\n\ntype HeadingElement = HTMLHeadingElement;\n\ninterface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n asChild?: boolean;\n}\n\nconst Heading = forwardRef<HeadingElement, HeadingProps>(\n ({ as: Tag = 'h1', asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={forwardedRef} {...props} />;\n },\n);\n\nHeading.displayName = 'Heading';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { HeadingProps };\nexport { Heading };\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 _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reacthovercard = require('@radix-ui/react-hover-card'); var e = _interopRequireWildcard(_reacthovercard);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var f=e.Root,l= exports.b =e.Trigger,p= exports.c =_react.forwardRef.call(void 0, ({align:o="center",className:t,sideOffset:r=6,...s},n)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Content,{ref:n,align:o,className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-4 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=left]:slide-in-from-right-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=right]:slide-in-from-left-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),sideOffset:r,...s})}));p.displayName=e.Content.displayName;var m=_react.forwardRef.call(void 0, ({className:o,...t},r)=>_jsxruntime.jsx.call(void 0, e.Arrow,{ref:r,className:_chunkSMJEDCFPcjs.a.call(void 0, "fill-popover",o),...t}));m.displayName=e.Arrow.displayName;exports.a = f; exports.b = l; exports.c = p; exports.d = m;
2
- //# sourceMappingURL=chunk-XQCNB3CJ.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XQCNB3CJ.cjs","../src/components/hover-card.tsx"],"names":["HoverCard","HoverCardTrigger","HoverCardContent","forwardRef","align","className","sideOffset","props","forwardedRef","jsx","cn","HoverCardArrow"],"mappings":"AAAA,mZAAmC,8GCEC,8BACT,+CA4BrB,IAnBAA,CAAAA,CAA+B,CAAA,CAAA,IAAA,CAO/BC,CAAAA,aAAsC,CAAA,CAAA,OAAA,CAStCC,CAAAA,aAAmBC,+BAAAA,CACtB,CAAE,KAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAG,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1DC,6BAAAA,CAAoB,CAAA,MAAA,CAAnB,CACC,QAAA,CAAAA,6BAAAA,CAAoB,CAAA,OAAA,CAAnB,CACC,GAAA,CAAKD,CAAAA,CACL,KAAA,CAAOJ,CAAAA,CACP,SAAA,CAAWM,iCAAAA,kFACT,CACA,qFAAA,CACA,0DAAA,CACA,0DAAA,CACA,0DAAA,CACA,0DAAA,CACA,8FAAA,CACA,2DAAA,CACA,2DAAA,CACA,2DAAA,CACA,2DAAA,CACAL,CACF,CAAA,CACA,UAAA,CAAYC,CAAAA,CACX,GAAGC,CAAAA,CACN,CAAA,CACF,CAEJ,CAAA,CAEAL,CAAAA,CAAiB,WAAA,CAAiC,CAAA,CAAA,OAAA,CAAQ,WAAA,CAS1D,IAAMS,CAAAA,CAAiBR,+BAAAA,CACpB,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAoB,CAAA,KAAA,CAAnB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,cAAG,CAAgBL,CAAS,CAAA,CACtC,GAAGE,CAAAA,CACN,CAEJ,CAAA,CAEAI,CAAAA,CAAe,WAAA,CAAiC,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,2DAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XQCNB3CJ.cjs","sourcesContent":[null,"import type { ComponentProps, ComponentPropsWithoutRef, ComponentRef } from 'react';\n\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport { forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: HoverCard\n * -------------------------------------------------------------------------- */\n\ntype HoverCardProps = ComponentProps<typeof HoverCardPrimitive.Root>;\nconst HoverCard = HoverCardPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: HoverCardTrigger\n * -------------------------------------------------------------------------- */\n\ntype HoverCardTriggerProps = ComponentPropsWithoutRef<typeof HoverCardPrimitive.Trigger>;\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: HoverCardContent\n * -------------------------------------------------------------------------- */\n\ntype HoverCardContentElement = ComponentRef<typeof HoverCardPrimitive.Content>;\ntype HoverCardContentProps = ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>;\n\nconst HoverCardContent = forwardRef<HoverCardContentElement, HoverCardContentProps>(\n ({ align = 'center', className, sideOffset = 6, ...props }, forwardedRef) => (\n <HoverCardPrimitive.Portal>\n <HoverCardPrimitive.Content\n ref={forwardedRef}\n align={align}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-4 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=left]:slide-in-from-right-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-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 sideOffset={sideOffset}\n {...props}\n />\n </HoverCardPrimitive.Portal>\n ),\n);\n\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: HoverCardArrow\n * -------------------------------------------------------------------------- */\n\ntype HoverCardArrowElement = ComponentRef<typeof HoverCardPrimitive.Arrow>;\ntype HoverCardArrowProps = ComponentPropsWithoutRef<typeof HoverCardPrimitive.Arrow>;\n\nconst HoverCardArrow = forwardRef<HoverCardArrowElement, HoverCardArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <HoverCardPrimitive.Arrow\n ref={forwardedRef}\n className={cn('fill-popover', className)}\n {...props}\n />\n ),\n);\n\nHoverCardArrow.displayName = HoverCardPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { HoverCardArrowProps, HoverCardContentProps, HoverCardProps, HoverCardTriggerProps };\nexport { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger };\n"]}