@codefast/ui 0.1.54 → 0.1.56

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 (247) hide show
  1. package/dist/chunk-2D4K3VN5.js +2 -0
  2. package/dist/chunk-2D4K3VN5.js.map +1 -0
  3. package/dist/chunk-2ZV3RRUF.js +2 -0
  4. package/dist/chunk-2ZV3RRUF.js.map +1 -0
  5. package/dist/chunk-36JL64WE.js +2 -0
  6. package/dist/chunk-36JL64WE.js.map +1 -0
  7. package/dist/{chunk-EEDKRHHZ.cjs → chunk-4KP3LG6P.cjs} +2 -2
  8. package/dist/chunk-4KP3LG6P.cjs.map +1 -0
  9. package/dist/chunk-5J3MQRCG.js +2 -0
  10. package/dist/{chunk-OPRULC2F.js.map → chunk-5J3MQRCG.js.map} +1 -1
  11. package/dist/chunk-6AI2HSG6.js +2 -0
  12. package/dist/chunk-6AI2HSG6.js.map +1 -0
  13. package/dist/chunk-6IKJWYUQ.cjs +2 -0
  14. package/dist/chunk-6IKJWYUQ.cjs.map +1 -0
  15. package/dist/chunk-7D25EXRF.cjs +2 -0
  16. package/dist/chunk-7D25EXRF.cjs.map +1 -0
  17. package/dist/chunk-7G7GY6WB.cjs +2 -0
  18. package/dist/chunk-7G7GY6WB.cjs.map +1 -0
  19. package/dist/chunk-7GOKKSQ2.js +2 -0
  20. package/dist/chunk-7GOKKSQ2.js.map +1 -0
  21. package/dist/chunk-7M3I7GAI.cjs +2 -0
  22. package/dist/chunk-7M3I7GAI.cjs.map +1 -0
  23. package/dist/chunk-ANFCBS2Z.cjs +2 -0
  24. package/dist/chunk-ANFCBS2Z.cjs.map +1 -0
  25. package/dist/chunk-BBVYRCKN.cjs +2 -0
  26. package/dist/chunk-BBVYRCKN.cjs.map +1 -0
  27. package/dist/chunk-BP2FRPTA.js +2 -0
  28. package/dist/chunk-BP2FRPTA.js.map +1 -0
  29. package/dist/chunk-CFXQ7IR4.js +2 -0
  30. package/dist/chunk-CFXQ7IR4.js.map +1 -0
  31. package/dist/chunk-DRLZ27WH.cjs +2 -0
  32. package/dist/chunk-DRLZ27WH.cjs.map +1 -0
  33. package/dist/chunk-FVR3LJWM.cjs +4 -0
  34. package/dist/chunk-FVR3LJWM.cjs.map +1 -0
  35. package/dist/chunk-GAIGLFOT.js +2 -0
  36. package/dist/chunk-GAIGLFOT.js.map +1 -0
  37. package/dist/chunk-GBCWWLEX.js +2 -0
  38. package/dist/chunk-GBCWWLEX.js.map +1 -0
  39. package/dist/chunk-GCXQJEFZ.cjs +2 -0
  40. package/dist/chunk-GCXQJEFZ.cjs.map +1 -0
  41. package/dist/chunk-GDEO256Z.js +2 -0
  42. package/dist/chunk-GDEO256Z.js.map +1 -0
  43. package/dist/chunk-HXMLYPF5.js +2 -0
  44. package/dist/chunk-HXMLYPF5.js.map +1 -0
  45. package/dist/chunk-IDSE6FJ7.cjs +2 -0
  46. package/dist/chunk-IDSE6FJ7.cjs.map +1 -0
  47. package/dist/chunk-ITSIGICG.js +2 -0
  48. package/dist/chunk-ITSIGICG.js.map +1 -0
  49. package/dist/chunk-J7QU6N2U.js +2 -0
  50. package/dist/chunk-J7QU6N2U.js.map +1 -0
  51. package/dist/chunk-K32V3MHQ.cjs +2 -0
  52. package/dist/chunk-K32V3MHQ.cjs.map +1 -0
  53. package/dist/chunk-KEAW3ISB.cjs +2 -0
  54. package/dist/chunk-KEAW3ISB.cjs.map +1 -0
  55. package/dist/{chunk-E2QRPDUI.cjs → chunk-KFX5L3AF.cjs} +2 -2
  56. package/dist/{chunk-E2QRPDUI.cjs.map → chunk-KFX5L3AF.cjs.map} +1 -1
  57. package/dist/chunk-KYZ6DEDI.cjs +2 -0
  58. package/dist/chunk-KYZ6DEDI.cjs.map +1 -0
  59. package/dist/chunk-LQRU5KEQ.js +2 -0
  60. package/dist/chunk-LQRU5KEQ.js.map +1 -0
  61. package/dist/chunk-LUQA5J5W.cjs +2 -0
  62. package/dist/chunk-LUQA5J5W.cjs.map +1 -0
  63. package/dist/chunk-M25UFVFW.cjs +2 -0
  64. package/dist/chunk-M25UFVFW.cjs.map +1 -0
  65. package/dist/chunk-OIF6PONX.cjs +2 -0
  66. package/dist/chunk-OIF6PONX.cjs.map +1 -0
  67. package/dist/{chunk-FSXJI6UE.js → chunk-PP6Z3U6S.js} +2 -2
  68. package/dist/chunk-QISUHNKM.cjs +2 -0
  69. package/dist/chunk-QISUHNKM.cjs.map +1 -0
  70. package/dist/chunk-QUMY3I5T.js +2 -0
  71. package/dist/chunk-QUMY3I5T.js.map +1 -0
  72. package/dist/chunk-RNWK4YZ2.js +2 -0
  73. package/dist/chunk-RNWK4YZ2.js.map +1 -0
  74. package/dist/chunk-T2EOHTGR.js +2 -0
  75. package/dist/chunk-T2EOHTGR.js.map +1 -0
  76. package/dist/{chunk-NGEZQP54.cjs → chunk-TQEAAFPM.cjs} +2 -2
  77. package/dist/{chunk-NGEZQP54.cjs.map → chunk-TQEAAFPM.cjs.map} +1 -1
  78. package/dist/chunk-VZSYA6XE.js +4 -0
  79. package/dist/chunk-VZSYA6XE.js.map +1 -0
  80. package/dist/chunk-W3UMO54G.js +2 -0
  81. package/dist/chunk-W3UMO54G.js.map +1 -0
  82. package/dist/chunk-WNEFXTN4.cjs +2 -0
  83. package/dist/chunk-WNEFXTN4.cjs.map +1 -0
  84. package/dist/chunk-WZSVJ7BS.js +2 -0
  85. package/dist/chunk-WZSVJ7BS.js.map +1 -0
  86. package/dist/chunk-XEGQBIJR.cjs +2 -0
  87. package/dist/chunk-XEGQBIJR.cjs.map +1 -0
  88. package/dist/chunk-XRJ3USVN.js +2 -0
  89. package/dist/chunk-XRJ3USVN.js.map +1 -0
  90. package/dist/chunk-YEINLNE5.js +2 -0
  91. package/dist/chunk-YEINLNE5.js.map +1 -0
  92. package/dist/chunk-YMXAFSOU.cjs +2 -0
  93. package/dist/chunk-YMXAFSOU.cjs.map +1 -0
  94. package/dist/chunk-YQWAU4NX.cjs +2 -0
  95. package/dist/chunk-YQWAU4NX.cjs.map +1 -0
  96. package/dist/chunk-YSVRLPUL.js +2 -0
  97. package/dist/chunk-YSVRLPUL.js.map +1 -0
  98. package/dist/chunk-ZK6QHQWT.cjs +2 -0
  99. package/dist/chunk-ZK6QHQWT.cjs.map +1 -0
  100. package/dist/components/accordion.cjs +1 -1
  101. package/dist/components/accordion.js +1 -1
  102. package/dist/components/breadcrumb.cjs +1 -1
  103. package/dist/components/breadcrumb.js +1 -1
  104. package/dist/components/calendar.cjs +1 -1
  105. package/dist/components/calendar.js +1 -1
  106. package/dist/components/carousel.cjs +1 -1
  107. package/dist/components/carousel.js +1 -1
  108. package/dist/components/chart.cjs +1 -1
  109. package/dist/components/chart.d.cts +14 -10
  110. package/dist/components/chart.d.ts +14 -10
  111. package/dist/components/chart.js +1 -1
  112. package/dist/components/checkbox-cards.cjs +1 -1
  113. package/dist/components/checkbox-cards.js +1 -1
  114. package/dist/components/checkbox-group.cjs +1 -1
  115. package/dist/components/checkbox-group.js +1 -1
  116. package/dist/components/checkbox.cjs +1 -1
  117. package/dist/components/checkbox.js +1 -1
  118. package/dist/components/command.cjs +1 -1
  119. package/dist/components/command.js +1 -1
  120. package/dist/components/context-menu.cjs +1 -1
  121. package/dist/components/context-menu.js +1 -1
  122. package/dist/components/data-table.cjs +1 -1
  123. package/dist/components/data-table.js +1 -1
  124. package/dist/components/dialog.cjs +1 -1
  125. package/dist/components/dialog.js +1 -1
  126. package/dist/components/dropdown-menu.cjs +1 -1
  127. package/dist/components/dropdown-menu.js +1 -1
  128. package/dist/components/input-otp.cjs +1 -1
  129. package/dist/components/input-otp.js +1 -1
  130. package/dist/components/menubar.cjs +1 -1
  131. package/dist/components/menubar.js +1 -1
  132. package/dist/components/navigation-menu.cjs +1 -1
  133. package/dist/components/navigation-menu.js +1 -1
  134. package/dist/components/number-input.cjs +1 -1
  135. package/dist/components/number-input.js +1 -1
  136. package/dist/components/pagination.cjs +1 -1
  137. package/dist/components/pagination.js +1 -1
  138. package/dist/components/password-input.cjs +1 -1
  139. package/dist/components/password-input.js +1 -1
  140. package/dist/components/resizable.cjs +1 -1
  141. package/dist/components/resizable.js +1 -1
  142. package/dist/components/search-input.cjs +1 -1
  143. package/dist/components/search-input.js +1 -1
  144. package/dist/components/select.cjs +1 -1
  145. package/dist/components/select.js +1 -1
  146. package/dist/components/sheet.cjs +1 -1
  147. package/dist/components/sheet.js +1 -1
  148. package/dist/components/sidebar.cjs +1 -1
  149. package/dist/components/sidebar.js +1 -1
  150. package/dist/components/tabs.cjs +1 -1
  151. package/dist/components/tabs.js +1 -1
  152. package/dist/index.cjs +1 -1
  153. package/dist/index.js +1 -1
  154. package/package.json +9 -10
  155. package/dist/chunk-4PL3DAT2.cjs +0 -2
  156. package/dist/chunk-4PL3DAT2.cjs.map +0 -1
  157. package/dist/chunk-5I7UA4HT.js +0 -2
  158. package/dist/chunk-5I7UA4HT.js.map +0 -1
  159. package/dist/chunk-5LM6T7Z5.js +0 -2
  160. package/dist/chunk-5LM6T7Z5.js.map +0 -1
  161. package/dist/chunk-B5V32KRW.cjs +0 -2
  162. package/dist/chunk-B5V32KRW.cjs.map +0 -1
  163. package/dist/chunk-BAOFKRE7.cjs +0 -2
  164. package/dist/chunk-BAOFKRE7.cjs.map +0 -1
  165. package/dist/chunk-BHLW3MWI.js +0 -2
  166. package/dist/chunk-BHLW3MWI.js.map +0 -1
  167. package/dist/chunk-C4SXNTCJ.js +0 -2
  168. package/dist/chunk-C4SXNTCJ.js.map +0 -1
  169. package/dist/chunk-CRQ5URNB.js +0 -2
  170. package/dist/chunk-CRQ5URNB.js.map +0 -1
  171. package/dist/chunk-DIYHARQU.cjs +0 -2
  172. package/dist/chunk-DIYHARQU.cjs.map +0 -1
  173. package/dist/chunk-DQBQF25F.cjs +0 -2
  174. package/dist/chunk-DQBQF25F.cjs.map +0 -1
  175. package/dist/chunk-DUDXLCPG.js +0 -2
  176. package/dist/chunk-DUDXLCPG.js.map +0 -1
  177. package/dist/chunk-EEDKRHHZ.cjs.map +0 -1
  178. package/dist/chunk-GUOQM6BL.cjs +0 -2
  179. package/dist/chunk-GUOQM6BL.cjs.map +0 -1
  180. package/dist/chunk-GV5FQF4J.js +0 -2
  181. package/dist/chunk-GV5FQF4J.js.map +0 -1
  182. package/dist/chunk-HO5BFEZO.cjs +0 -4
  183. package/dist/chunk-HO5BFEZO.cjs.map +0 -1
  184. package/dist/chunk-I6LNZ6KP.cjs +0 -2
  185. package/dist/chunk-I6LNZ6KP.cjs.map +0 -1
  186. package/dist/chunk-IPRXHJQ5.cjs +0 -2
  187. package/dist/chunk-IPRXHJQ5.cjs.map +0 -1
  188. package/dist/chunk-JMYWGU6A.js +0 -2
  189. package/dist/chunk-JMYWGU6A.js.map +0 -1
  190. package/dist/chunk-KASTA74M.cjs +0 -2
  191. package/dist/chunk-KASTA74M.cjs.map +0 -1
  192. package/dist/chunk-LGRBBJSZ.js +0 -2
  193. package/dist/chunk-LGRBBJSZ.js.map +0 -1
  194. package/dist/chunk-LJPFJ6NG.js +0 -2
  195. package/dist/chunk-LJPFJ6NG.js.map +0 -1
  196. package/dist/chunk-MHH6QORE.cjs +0 -2
  197. package/dist/chunk-MHH6QORE.cjs.map +0 -1
  198. package/dist/chunk-MO7TQSRR.js +0 -2
  199. package/dist/chunk-MO7TQSRR.js.map +0 -1
  200. package/dist/chunk-MYT23AOL.js +0 -2
  201. package/dist/chunk-MYT23AOL.js.map +0 -1
  202. package/dist/chunk-O632SAUI.js +0 -2
  203. package/dist/chunk-O632SAUI.js.map +0 -1
  204. package/dist/chunk-OH3BXT6D.js +0 -2
  205. package/dist/chunk-OH3BXT6D.js.map +0 -1
  206. package/dist/chunk-OOEZEXWK.cjs +0 -2
  207. package/dist/chunk-OOEZEXWK.cjs.map +0 -1
  208. package/dist/chunk-OPRULC2F.js +0 -2
  209. package/dist/chunk-OUWUINGX.cjs +0 -2
  210. package/dist/chunk-OUWUINGX.cjs.map +0 -1
  211. package/dist/chunk-P3YLZBAU.js +0 -2
  212. package/dist/chunk-P3YLZBAU.js.map +0 -1
  213. package/dist/chunk-PCKCN7MO.js +0 -2
  214. package/dist/chunk-PCKCN7MO.js.map +0 -1
  215. package/dist/chunk-PYKB3C2F.cjs +0 -2
  216. package/dist/chunk-PYKB3C2F.cjs.map +0 -1
  217. package/dist/chunk-Q7IH47TY.js +0 -2
  218. package/dist/chunk-Q7IH47TY.js.map +0 -1
  219. package/dist/chunk-QEIZTAWS.js +0 -2
  220. package/dist/chunk-QEIZTAWS.js.map +0 -1
  221. package/dist/chunk-R5235IUC.cjs +0 -2
  222. package/dist/chunk-R5235IUC.cjs.map +0 -1
  223. package/dist/chunk-RAOQ5OMD.cjs +0 -2
  224. package/dist/chunk-RAOQ5OMD.cjs.map +0 -1
  225. package/dist/chunk-SDGFNHJP.cjs +0 -2
  226. package/dist/chunk-SDGFNHJP.cjs.map +0 -1
  227. package/dist/chunk-TTKMKXCU.js +0 -2
  228. package/dist/chunk-TTKMKXCU.js.map +0 -1
  229. package/dist/chunk-UHHMORLE.js +0 -2
  230. package/dist/chunk-UHHMORLE.js.map +0 -1
  231. package/dist/chunk-UIVPC5TQ.cjs +0 -2
  232. package/dist/chunk-UIVPC5TQ.cjs.map +0 -1
  233. package/dist/chunk-UQWSMTYF.js +0 -2
  234. package/dist/chunk-UQWSMTYF.js.map +0 -1
  235. package/dist/chunk-VBE6D4FZ.cjs +0 -2
  236. package/dist/chunk-VBE6D4FZ.cjs.map +0 -1
  237. package/dist/chunk-VFOMCFSG.cjs +0 -2
  238. package/dist/chunk-VFOMCFSG.cjs.map +0 -1
  239. package/dist/chunk-WNXJ2WHS.js +0 -4
  240. package/dist/chunk-WNXJ2WHS.js.map +0 -1
  241. package/dist/chunk-YORY32TX.cjs +0 -2
  242. package/dist/chunk-YORY32TX.cjs.map +0 -1
  243. package/dist/chunk-YTSBANYY.js +0 -2
  244. package/dist/chunk-YTSBANYY.js.map +0 -1
  245. package/dist/chunk-Z7U5IONC.cjs +0 -2
  246. package/dist/chunk-Z7U5IONC.cjs.map +0 -1
  247. /package/dist/{chunk-FSXJI6UE.js.map → chunk-PP6Z3U6S.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as pm}from"./chunk-7KTCYDVV.js";import{a as tm}from"./chunk-CWUEQ5HD.js";import"./chunk-U2JQOYDM.js";import{a as am,b as bm}from"./chunk-LO2FS7FR.js";import{a as xm}from"./chunk-HYWI7FDY.js";import{a as f}from"./chunk-A3QTZPKF.js";import{a as Qf}from"./chunk-TOWAHUGD.js";import{a as Rf,b as Sf}from"./chunk-2EYLJJP4.js";import{a as Tf}from"./chunk-I5K76QCG.js";import{a as Uf}from"./chunk-MON2QHOT.js";import{a as Vf,b as Wf,c as Xf,d as Yf,e as Zf,f as _f,g as $f,h as om}from"./chunk-UDX3IEKM.js";import{a as rm,b as em,c as fm,d as mm}from"./chunk-OPRULC2F.js";import{a as Xe,b as Ye}from"./chunk-IGCAV4VX.js";import{a as Ze}from"./chunk-QEIZTAWS.js";import{a as _e}from"./chunk-VRXT6PRC.js";import{a as nf,b as qf,c as sf,d as uf,e as vf,f as wf,g as yf,h as zf,i as Af,j as Bf,k as Cf,l as Df,m as Ef,n as Ff,o as Gf,p as Hf,q as If,r as Jf,s as Kf,t as Lf,u as Mf,v as Nf,w as Of,x as Pf}from"./chunk-FSXJI6UE.js";import{a as gf,b as hf,c as jf,d as kf,e as lf}from"./chunk-CTKVRKDK.js";import{a as df}from"./chunk-NPOAOTIH.js";import{a as $e,b as of}from"./chunk-432ZMHFM.js";import{a as rf,b as ef,c as ff,d as mf,e as pf,f as tf,g as xf,h as af,i as bf}from"./chunk-MO7TQSRR.js";import{a as cf}from"./chunk-NSTXYMJD.js";import{a as He,b as Ie,c as Je,d as Ke,e as Le}from"./chunk-G7UUQVY6.js";import{a as Me}from"./chunk-VPA4U2FS.js";import{a as Ne}from"./chunk-WZZJWFQP.js";import{a as Oe}from"./chunk-GND6Q575.js";import{a as Qe,b as Re}from"./chunk-3KBPDNGS.js";import{a as Se,b as Te}from"./chunk-2ZQDYMUR.js";import{a as Pe}from"./chunk-P5ZHKPJ3.js";import{a as Ue,b as Ve,c as We}from"./chunk-C4SXNTCJ.js";import{a as Wr,b as Xr,c as Yr,d as Zr,e as _r,f as $r,g as oe}from"./chunk-BHLW3MWI.js";import{a as re}from"./chunk-HFMP27AD.js";import{a as ee,b as fe,c as me,d as pe,e as te,f as xe,g as ae,h as be,i as ce,j as de,k as ge,l as he,m as ie,n as je,o as ke,p as le}from"./chunk-P3YLZBAU.js";import{a as ne,b as qe,c as se,d as ue,e as ve,f as we}from"./chunk-DUDXLCPG.js";import{a as ye}from"./chunk-5I7UA4HT.js";import{a as ze,b as Ae,c as Be,d as Ce,e as De,f as Ee,g as Fe}from"./chunk-CRQ5URNB.js";import{a as Ge}from"./chunk-MYT23AOL.js";import{a as e}from"./chunk-7MCTR55I.js";import"./chunk-C46H5E6H.js";import{a as yr,b as zr,c as Ar,d as Br,e as Cr,f as Dr,g as Er,h as Fr,i as Gr}from"./chunk-VSK5MMW2.js";import{a as Hr}from"./chunk-2ETHQRHT.js";import{a as Jr,b as Kr,c as Lr,d as Mr,e as Nr,f as Or,g as Pr,h as Qr}from"./chunk-UHSBASIV.js";import{a as Ir}from"./chunk-762VAWTL.js";import{a as Rr}from"./chunk-KTOV7L3M.js";import{a as Sr,b as Tr,c as Ur,d as Vr}from"./chunk-V4SVGR7Z.js";import{a as ao,b as bo}from"./chunk-LJPFJ6NG.js";import{a as po}from"./chunk-Q7IH47TY.js";import{a as co}from"./chunk-WLRNKE5B.js";import{a as go,b as ho,c as io}from"./chunk-XDP3WMTM.js";import{a as yo,b as zo,c as Ao,d as Bo,e as Co,f as Do,g as Eo,h as Fo,i as Go,j as Ho}from"./chunk-PCKCN7MO.js";import{a as jo,b as ko,c as lo,d as no,e as qo,f as so,g as uo,h as vo,i as wo}from"./chunk-LGRBBJSZ.js";import{a as Io}from"./chunk-L75DLRYU.js";import{a as Jo,b as Ko,c as Lo,d as Mo,e as No,f as Oo,g as Po,h as Qo,i as Ro,j as So,k as To,l as Uo,m as Vo,n as Wo,o as Xo}from"./chunk-YTSBANYY.js";import{a as ur,b as vr,c as wr}from"./chunk-UHHMORLE.js";import{a as dr,b as gr,c as hr,d as ir,e as jr,f as kr,g as lr,h as nr,i as qr,j as sr}from"./chunk-TTKMKXCU.js";import{a as Yo,b as Zo,c as _o,d as $o,e as or,f as rr,g as er,h as fr,i as mr,j as pr,k as tr,l as xr,m as ar,n as br,o as cr}from"./chunk-OH3BXT6D.js";import{a as C}from"./chunk-XVSKGP3O.js";import{a as D,b as E,c as F,d as G,e as H,f as I,g as J}from"./chunk-JMYWGU6A.js";import{a as M,b as N,c as O}from"./chunk-GV5FQF4J.js";import{a as P,b as Q,c as R,d as S,e as T,f as U}from"./chunk-2PHCOZGN.js";import{a as V,b as W,c as X,d as Y,e as Z,f as _}from"./chunk-5LM6T7Z5.js";import{a as L}from"./chunk-24TJIVWR.js";import{a as K}from"./chunk-Q3UBBFLY.js";import{a as $,b as oo,c as ro,d as eo,e as fo,f as mo}from"./chunk-WNXJ2WHS.js";import{a as to,b as xo}from"./chunk-O632SAUI.js";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-UQWSMTYF.js";import{a as g,b as h,c as i,d as j,e as k,f as l,g as n,h as q,i as s,j as u}from"./chunk-I5F5NVBQ.js";import{a as r}from"./chunk-EVRI6TWT.js";import{a as b,b as c,c as d}from"./chunk-SW7ESX5V.js";import{a as v}from"./chunk-ZLO6FT4E.js";import{a as w,b as y,c as z}from"./chunk-PCQE4FJF.js";import{a as o}from"./chunk-VPYH6JWS.js";import{a as A}from"./chunk-6FFAEE2J.js";import{a as B}from"./chunk-UL2FIEEV.js";export{m as Accordion,a as AccordionContent,t as AccordionIcon,p as AccordionItem,x as AccordionTrigger,b as Alert,d as AlertDescription,g as AlertDialog,s as AlertDialogAction,k as AlertDialogBody,u as AlertDialogCancel,i as AlertDialogContent,q as AlertDialogDescription,l as AlertDialogFooter,j as AlertDialogHeader,n as AlertDialogTitle,h as AlertDialogTrigger,c as AlertTitle,v as AspectRatio,w as Avatar,z as AvatarFallback,y as AvatarImage,A as Badge,B as Blockquote,C as Box,D as Breadcrumb,J as BreadcrumbEllipsis,F as BreadcrumbItem,G as BreadcrumbLink,E as BreadcrumbList,H as BreadcrumbPage,I as BreadcrumbSeparator,L as Button,M as Calendar,O as CalendarLabel,N as CalendarRangeLabel,P as Card,T as CardContent,S as CardDescription,U as CardFooter,Q as CardHeader,R as CardTitle,W as Carousel,X as CarouselContent,Y as CarouselItem,_ as CarouselNext,Z as CarouselPrevious,$ as ChartContainer,fo as ChartLegend,mo as ChartLegendContent,oo as ChartStyle,ro as ChartTooltip,eo as ChartTooltipContent,po as Checkbox,to as CheckboxCards,xo as CheckboxCardsItem,ao as CheckboxGroup,bo as CheckboxGroupItem,co as Code,go as Collapsible,io as CollapsibleContent,ho as CollapsibleTrigger,yo as Command,zo as CommandDialog,Co as CommandEmpty,Do as CommandGroup,Ao as CommandInput,Fo as CommandItem,Bo as CommandList,Go as CommandLoading,Eo as CommandSeparator,Ho as CommandShortcut,Io as Container,Jo as ContextMenu,Xo as ContextMenuArrow,So as ContextMenuCheckboxItem,Qo as ContextMenuContent,Lo as ContextMenuGroup,Ro as ContextMenuItem,Uo as ContextMenuLabel,No as ContextMenuRadioGroup,To as ContextMenuRadioItem,Vo as ContextMenuSeparator,Wo as ContextMenuShortcut,Mo as ContextMenuSub,Po as ContextMenuSubContent,Oo as ContextMenuSubTrigger,Ko as ContextMenuTrigger,wr as DataTableColumnHeader,vr as DataTablePagination,ur as DataTableViewOptions,jo as Dialog,qo as DialogBody,wo as DialogClose,lo as DialogContent,vo as DialogDescription,so as DialogFooter,no as DialogHeader,uo as DialogTitle,ko as DialogTrigger,yr as Drawer,Cr as DrawerBody,Gr as DrawerClose,Ar as DrawerContent,Fr as DrawerDescription,Dr as DrawerFooter,Br as DrawerHeader,Er as DrawerTitle,zr as DrawerTrigger,Yo as DropdownMenu,cr as DropdownMenuArrow,pr as DropdownMenuCheckboxItem,fr as DropdownMenuContent,_o as DropdownMenuGroup,mr as DropdownMenuItem,xr as DropdownMenuLabel,or as DropdownMenuRadioGroup,tr as DropdownMenuRadioItem,ar as DropdownMenuSeparator,br as DropdownMenuShortcut,$o as DropdownMenuSub,er as DropdownMenuSubContent,rr as DropdownMenuSubTrigger,Zo as DropdownMenuTrigger,Hr as Em,Jr as Form,Or as FormControl,Pr as FormDescription,Lr as FormField,Mr as FormItem,Nr as FormLabel,Qr as FormMessage,Rr as Heading,Sr as HoverCard,Vr as HoverCardArrow,Ur as HoverCardContent,Tr as HoverCardTrigger,Zr as InputOTP,_r as InputOTPGroup,oe as InputOTPSeparator,$r as InputOTPSlot,re as Kbd,Ir as Label,te as Menubar,le as MenubarArrow,ge as MenubarCheckboxItem,ce as MenubarContent,fe as MenubarGroup,de as MenubarItem,ie as MenubarLabel,ee as MenubarMenu,pe as MenubarRadioGroup,he as MenubarRadioItem,je as MenubarSeparator,ke as MenubarShortcut,me as MenubarSub,be as MenubarSubContent,ae as MenubarSubTrigger,xe as MenubarTrigger,ne as NavigationMenu,ve as NavigationMenuContent,se as NavigationMenuItem,we as NavigationMenuLink,qe as NavigationMenuList,ue as NavigationMenuTrigger,ye as NumberInput,ze as Pagination,Ae as PaginationContent,Fe as PaginationEllipsis,Be as PaginationItem,Ce as PaginationLink,Ee as PaginationNext,De as PaginationPrevious,Ge as PasswordInput,He as Popover,Je as PopoverAnchor,Le as PopoverArrow,Ke as PopoverContent,Ie as PopoverTrigger,Me as Pre,Ne as Progress,Oe as Quote,Wr as REGEXP_ONLY_CHARS,Xr as REGEXP_ONLY_DIGITS,Yr as REGEXP_ONLY_DIGITS_AND_CHARS,Pe as Radio,Qe as RadioCards,Re as RadioCardsItem,Se as RadioGroup,Te as RadioGroupItem,We as ResizableHandle,Ve as ResizablePanel,Ue as ResizablePanelGroup,Xe as ScrollArea,Ye as ScrollAreaScrollbar,Ze as SearchInput,_e as Section,dr as Select,lr as SelectContent,gr as SelectGroup,qr as SelectItem,nr as SelectLabel,kr as SelectScrollDownButton,jr as SelectScrollUpButton,sr as SelectSeparator,ir as SelectTrigger,hr as SelectValue,$e as Separator,of as SeparatorItem,rf as Sheet,pf as SheetBody,bf as SheetClose,ff as SheetContent,af as SheetDescription,tf as SheetFooter,mf as SheetHeader,xf as SheetTitle,ef as SheetTrigger,sf as Sidebar,Cf as SidebarContent,Af as SidebarFooter,Df as SidebarGroup,Ff as SidebarGroupAction,Gf as SidebarGroupContent,Ef as SidebarGroupLabel,zf as SidebarHeader,yf as SidebarInput,wf as SidebarInset,Hf as SidebarMenu,Kf as SidebarMenuAction,Lf as SidebarMenuBadge,Jf as SidebarMenuButton,If as SidebarMenuItem,Mf as SidebarMenuSkeleton,Nf as SidebarMenuSub,Pf as SidebarMenuSubButton,Of as SidebarMenuSubItem,qf as SidebarProvider,vf as SidebarRail,Bf as SidebarSeparator,uf as SidebarTrigger,cf as Skeleton,Qf as Slider,K as Spinner,Tf as Strong,Uf as Switch,Vf as Table,Xf as TableBody,om as TableCaption,$f as TableCell,Yf as TableFooter,_f as TableHead,Wf as TableHeader,Zf as TableRow,rm as Tabs,mm as TabsContent,em as TabsList,fm as TabsTrigger,pm as Text,df as TextInput,tm as Textarea,Sf as Toaster,xm as Toggle,am as ToggleGroup,bm as ToggleGroupItem,hf as Tooltip,lf as TooltipArrow,kf as TooltipContent,gf as TooltipProvider,jf as TooltipTrigger,r as buttonVariants,o as cn,V as createCarouselScope,Kr as createFormFieldScope,e as inputVariants,Rf as toast,f as toggleVariants,nf as useSidebar};
1
+ import{a as pm}from"./chunk-7KTCYDVV.js";import{a as tm}from"./chunk-CWUEQ5HD.js";import"./chunk-U2JQOYDM.js";import{a as am,b as bm}from"./chunk-LO2FS7FR.js";import{a as xm}from"./chunk-HYWI7FDY.js";import{a as f}from"./chunk-A3QTZPKF.js";import{a as Qf}from"./chunk-TOWAHUGD.js";import{a as Rf,b as Sf}from"./chunk-2EYLJJP4.js";import{a as Tf}from"./chunk-I5K76QCG.js";import{a as Uf}from"./chunk-MON2QHOT.js";import{a as Vf,b as Wf,c as Xf,d as Yf,e as Zf,f as _f,g as $f,h as om}from"./chunk-UDX3IEKM.js";import{a as rm,b as em,c as fm,d as mm}from"./chunk-5J3MQRCG.js";import{a as Xe,b as Ye}from"./chunk-IGCAV4VX.js";import{a as Ze}from"./chunk-BP2FRPTA.js";import{a as _e}from"./chunk-VRXT6PRC.js";import{a as nf,b as qf,c as sf,d as uf,e as vf,f as wf,g as yf,h as zf,i as Af,j as Bf,k as Cf,l as Df,m as Ef,n as Ff,o as Gf,p as Hf,q as If,r as Jf,s as Kf,t as Lf,u as Mf,v as Nf,w as Of,x as Pf}from"./chunk-PP6Z3U6S.js";import{a as gf,b as hf,c as jf,d as kf,e as lf}from"./chunk-CTKVRKDK.js";import{a as df}from"./chunk-NPOAOTIH.js";import{a as $e,b as of}from"./chunk-432ZMHFM.js";import{a as rf,b as ef,c as ff,d as mf,e as pf,f as tf,g as xf,h as af,i as bf}from"./chunk-XRJ3USVN.js";import{a as cf}from"./chunk-NSTXYMJD.js";import{a as He,b as Ie,c as Je,d as Ke,e as Le}from"./chunk-G7UUQVY6.js";import{a as Me}from"./chunk-VPA4U2FS.js";import{a as Ne}from"./chunk-WZZJWFQP.js";import{a as Oe}from"./chunk-GND6Q575.js";import{a as Qe,b as Re}from"./chunk-3KBPDNGS.js";import{a as Se,b as Te}from"./chunk-2ZQDYMUR.js";import{a as Pe}from"./chunk-P5ZHKPJ3.js";import{a as Ue,b as Ve,c as We}from"./chunk-6AI2HSG6.js";import{a as Wr,b as Xr,c as Yr,d as Zr,e as _r,f as $r,g as oe}from"./chunk-YEINLNE5.js";import{a as re}from"./chunk-HFMP27AD.js";import{a as ee,b as fe,c as me,d as pe,e as te,f as xe,g as ae,h as be,i as ce,j as de,k as ge,l as he,m as ie,n as je,o as ke,p as le}from"./chunk-QUMY3I5T.js";import{a as ne,b as qe,c as se,d as ue,e as ve,f as we}from"./chunk-36JL64WE.js";import{a as ye}from"./chunk-7GOKKSQ2.js";import{a as ze,b as Ae,c as Be,d as Ce,e as De,f as Ee,g as Fe}from"./chunk-GDEO256Z.js";import{a as Ge}from"./chunk-GAIGLFOT.js";import{a as e}from"./chunk-7MCTR55I.js";import"./chunk-C46H5E6H.js";import{a as yr,b as zr,c as Ar,d as Br,e as Cr,f as Dr,g as Er,h as Fr,i as Gr}from"./chunk-VSK5MMW2.js";import{a as Hr}from"./chunk-2ETHQRHT.js";import{a as Jr,b as Kr,c as Lr,d as Mr,e as Nr,f as Or,g as Pr,h as Qr}from"./chunk-UHSBASIV.js";import{a as Ir}from"./chunk-762VAWTL.js";import{a as Rr}from"./chunk-KTOV7L3M.js";import{a as Sr,b as Tr,c as Ur,d as Vr}from"./chunk-V4SVGR7Z.js";import{a as ao,b as bo}from"./chunk-YSVRLPUL.js";import{a as po}from"./chunk-W3UMO54G.js";import{a as co}from"./chunk-WLRNKE5B.js";import{a as go,b as ho,c as io}from"./chunk-XDP3WMTM.js";import{a as yo,b as zo,c as Ao,d as Bo,e as Co,f as Do,g as Eo,h as Fo,i as Go,j as Ho}from"./chunk-GBCWWLEX.js";import{a as jo,b as ko,c as lo,d as no,e as qo,f as so,g as uo,h as vo,i as wo}from"./chunk-RNWK4YZ2.js";import{a as Io}from"./chunk-L75DLRYU.js";import{a as Jo,b as Ko,c as Lo,d as Mo,e as No,f as Oo,g as Po,h as Qo,i as Ro,j as So,k as To,l as Uo,m as Vo,n as Wo,o as Xo}from"./chunk-2D4K3VN5.js";import{a as ur,b as vr,c as wr}from"./chunk-ITSIGICG.js";import{a as dr,b as gr,c as hr,d as ir,e as jr,f as kr,g as lr,h as nr,i as qr,j as sr}from"./chunk-T2EOHTGR.js";import{a as Yo,b as Zo,c as _o,d as $o,e as or,f as rr,g as er,h as fr,i as mr,j as pr,k as tr,l as xr,m as ar,n as br,o as cr}from"./chunk-WZSVJ7BS.js";import{a as C}from"./chunk-XVSKGP3O.js";import{a as D,b as E,c as F,d as G,e as H,f as I,g as J}from"./chunk-CFXQ7IR4.js";import{a as M,b as N,c as O}from"./chunk-HXMLYPF5.js";import{a as P,b as Q,c as R,d as S,e as T,f as U}from"./chunk-2PHCOZGN.js";import{a as V,b as W,c as X,d as Y,e as Z,f as _}from"./chunk-J7QU6N2U.js";import{a as L}from"./chunk-24TJIVWR.js";import{a as K}from"./chunk-Q3UBBFLY.js";import{a as $,b as oo,c as ro,d as eo,e as fo,f as mo}from"./chunk-VZSYA6XE.js";import{a as to,b as xo}from"./chunk-LQRU5KEQ.js";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-2ZV3RRUF.js";import{a as g,b as h,c as i,d as j,e as k,f as l,g as n,h as q,i as s,j as u}from"./chunk-I5F5NVBQ.js";import{a as r}from"./chunk-EVRI6TWT.js";import{a as b,b as c,c as d}from"./chunk-SW7ESX5V.js";import{a as v}from"./chunk-ZLO6FT4E.js";import{a as w,b as y,c as z}from"./chunk-PCQE4FJF.js";import{a as o}from"./chunk-VPYH6JWS.js";import{a as A}from"./chunk-6FFAEE2J.js";import{a as B}from"./chunk-UL2FIEEV.js";export{m as Accordion,a as AccordionContent,t as AccordionIcon,p as AccordionItem,x as AccordionTrigger,b as Alert,d as AlertDescription,g as AlertDialog,s as AlertDialogAction,k as AlertDialogBody,u as AlertDialogCancel,i as AlertDialogContent,q as AlertDialogDescription,l as AlertDialogFooter,j as AlertDialogHeader,n as AlertDialogTitle,h as AlertDialogTrigger,c as AlertTitle,v as AspectRatio,w as Avatar,z as AvatarFallback,y as AvatarImage,A as Badge,B as Blockquote,C as Box,D as Breadcrumb,J as BreadcrumbEllipsis,F as BreadcrumbItem,G as BreadcrumbLink,E as BreadcrumbList,H as BreadcrumbPage,I as BreadcrumbSeparator,L as Button,M as Calendar,O as CalendarLabel,N as CalendarRangeLabel,P as Card,T as CardContent,S as CardDescription,U as CardFooter,Q as CardHeader,R as CardTitle,W as Carousel,X as CarouselContent,Y as CarouselItem,_ as CarouselNext,Z as CarouselPrevious,$ as ChartContainer,fo as ChartLegend,mo as ChartLegendContent,oo as ChartStyle,ro as ChartTooltip,eo as ChartTooltipContent,po as Checkbox,to as CheckboxCards,xo as CheckboxCardsItem,ao as CheckboxGroup,bo as CheckboxGroupItem,co as Code,go as Collapsible,io as CollapsibleContent,ho as CollapsibleTrigger,yo as Command,zo as CommandDialog,Co as CommandEmpty,Do as CommandGroup,Ao as CommandInput,Fo as CommandItem,Bo as CommandList,Go as CommandLoading,Eo as CommandSeparator,Ho as CommandShortcut,Io as Container,Jo as ContextMenu,Xo as ContextMenuArrow,So as ContextMenuCheckboxItem,Qo as ContextMenuContent,Lo as ContextMenuGroup,Ro as ContextMenuItem,Uo as ContextMenuLabel,No as ContextMenuRadioGroup,To as ContextMenuRadioItem,Vo as ContextMenuSeparator,Wo as ContextMenuShortcut,Mo as ContextMenuSub,Po as ContextMenuSubContent,Oo as ContextMenuSubTrigger,Ko as ContextMenuTrigger,wr as DataTableColumnHeader,vr as DataTablePagination,ur as DataTableViewOptions,jo as Dialog,qo as DialogBody,wo as DialogClose,lo as DialogContent,vo as DialogDescription,so as DialogFooter,no as DialogHeader,uo as DialogTitle,ko as DialogTrigger,yr as Drawer,Cr as DrawerBody,Gr as DrawerClose,Ar as DrawerContent,Fr as DrawerDescription,Dr as DrawerFooter,Br as DrawerHeader,Er as DrawerTitle,zr as DrawerTrigger,Yo as DropdownMenu,cr as DropdownMenuArrow,pr as DropdownMenuCheckboxItem,fr as DropdownMenuContent,_o as DropdownMenuGroup,mr as DropdownMenuItem,xr as DropdownMenuLabel,or as DropdownMenuRadioGroup,tr as DropdownMenuRadioItem,ar as DropdownMenuSeparator,br as DropdownMenuShortcut,$o as DropdownMenuSub,er as DropdownMenuSubContent,rr as DropdownMenuSubTrigger,Zo as DropdownMenuTrigger,Hr as Em,Jr as Form,Or as FormControl,Pr as FormDescription,Lr as FormField,Mr as FormItem,Nr as FormLabel,Qr as FormMessage,Rr as Heading,Sr as HoverCard,Vr as HoverCardArrow,Ur as HoverCardContent,Tr as HoverCardTrigger,Zr as InputOTP,_r as InputOTPGroup,oe as InputOTPSeparator,$r as InputOTPSlot,re as Kbd,Ir as Label,te as Menubar,le as MenubarArrow,ge as MenubarCheckboxItem,ce as MenubarContent,fe as MenubarGroup,de as MenubarItem,ie as MenubarLabel,ee as MenubarMenu,pe as MenubarRadioGroup,he as MenubarRadioItem,je as MenubarSeparator,ke as MenubarShortcut,me as MenubarSub,be as MenubarSubContent,ae as MenubarSubTrigger,xe as MenubarTrigger,ne as NavigationMenu,ve as NavigationMenuContent,se as NavigationMenuItem,we as NavigationMenuLink,qe as NavigationMenuList,ue as NavigationMenuTrigger,ye as NumberInput,ze as Pagination,Ae as PaginationContent,Fe as PaginationEllipsis,Be as PaginationItem,Ce as PaginationLink,Ee as PaginationNext,De as PaginationPrevious,Ge as PasswordInput,He as Popover,Je as PopoverAnchor,Le as PopoverArrow,Ke as PopoverContent,Ie as PopoverTrigger,Me as Pre,Ne as Progress,Oe as Quote,Wr as REGEXP_ONLY_CHARS,Xr as REGEXP_ONLY_DIGITS,Yr as REGEXP_ONLY_DIGITS_AND_CHARS,Pe as Radio,Qe as RadioCards,Re as RadioCardsItem,Se as RadioGroup,Te as RadioGroupItem,We as ResizableHandle,Ve as ResizablePanel,Ue as ResizablePanelGroup,Xe as ScrollArea,Ye as ScrollAreaScrollbar,Ze as SearchInput,_e as Section,dr as Select,lr as SelectContent,gr as SelectGroup,qr as SelectItem,nr as SelectLabel,kr as SelectScrollDownButton,jr as SelectScrollUpButton,sr as SelectSeparator,ir as SelectTrigger,hr as SelectValue,$e as Separator,of as SeparatorItem,rf as Sheet,pf as SheetBody,bf as SheetClose,ff as SheetContent,af as SheetDescription,tf as SheetFooter,mf as SheetHeader,xf as SheetTitle,ef as SheetTrigger,sf as Sidebar,Cf as SidebarContent,Af as SidebarFooter,Df as SidebarGroup,Ff as SidebarGroupAction,Gf as SidebarGroupContent,Ef as SidebarGroupLabel,zf as SidebarHeader,yf as SidebarInput,wf as SidebarInset,Hf as SidebarMenu,Kf as SidebarMenuAction,Lf as SidebarMenuBadge,Jf as SidebarMenuButton,If as SidebarMenuItem,Mf as SidebarMenuSkeleton,Nf as SidebarMenuSub,Pf as SidebarMenuSubButton,Of as SidebarMenuSubItem,qf as SidebarProvider,vf as SidebarRail,Bf as SidebarSeparator,uf as SidebarTrigger,cf as Skeleton,Qf as Slider,K as Spinner,Tf as Strong,Uf as Switch,Vf as Table,Xf as TableBody,om as TableCaption,$f as TableCell,Yf as TableFooter,_f as TableHead,Wf as TableHeader,Zf as TableRow,rm as Tabs,mm as TabsContent,em as TabsList,fm as TabsTrigger,pm as Text,df as TextInput,tm as Textarea,Sf as Toaster,xm as Toggle,am as ToggleGroup,bm as ToggleGroupItem,hf as Tooltip,lf as TooltipArrow,kf as TooltipContent,gf as TooltipProvider,jf as TooltipTrigger,r as buttonVariants,o as cn,V as createCarouselScope,Kr as createFormFieldScope,e as inputVariants,Rf as toast,f as toggleVariants,nf as useSidebar};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefast/ui",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "bugs": {
5
5
  "url": "https://github.com/codefastlabs/codefast/issues"
6
6
  },
@@ -46,7 +46,6 @@
46
46
  "@radix-ui/react-direction": "1.1.0",
47
47
  "@radix-ui/react-dropdown-menu": "2.1.2",
48
48
  "@radix-ui/react-hover-card": "1.1.2",
49
- "@radix-ui/react-icons": "1.3.2",
50
49
  "@radix-ui/react-label": "2.1.0",
51
50
  "@radix-ui/react-menubar": "1.1.2",
52
51
  "@radix-ui/react-navigation-menu": "1.2.1",
@@ -75,11 +74,11 @@
75
74
  "tailwind-merge": "2.5.4",
76
75
  "tailwind-variants": "0.3.0",
77
76
  "vaul": "1.1.1",
78
- "@codefast-ui/checkbox-group": "0.1.54",
79
- "@codefast-ui/day-picker": "0.1.54",
80
- "@codefast-ui/input": "0.1.54",
81
- "@codefast-ui/number-input": "0.1.54",
82
- "@codefast/hooks": "0.1.54"
77
+ "@codefast-ui/checkbox-group": "0.1.56",
78
+ "@codefast-ui/day-picker": "0.1.56",
79
+ "@codefast-ui/input": "0.1.56",
80
+ "@codefast-ui/number-input": "0.1.56",
81
+ "@codefast/hooks": "0.1.56"
83
82
  },
84
83
  "devDependencies": {
85
84
  "@types/node": "20.17.6",
@@ -88,9 +87,9 @@
88
87
  "tailwindcss": "3.4.15",
89
88
  "tsup": "8.3.5",
90
89
  "typescript": "5.6.3",
91
- "@codefast/config-tailwind": "0.1.54",
92
- "@codefast/config-typescript": "0.1.54",
93
- "@codefast/eslint-config": "0.1.54"
90
+ "@codefast/config-tailwind": "0.1.56",
91
+ "@codefast/config-typescript": "0.1.56",
92
+ "@codefast/eslint-config": "0.1.56"
94
93
  },
95
94
  "peerDependencies": {
96
95
  "@tanstack/react-table": "8",
@@ -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 _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _reactmenubar = require('@radix-ui/react-menubar'); var e = _interopRequireWildcard(_reactmenubar);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var T=e.Menu,w= exports.b =e.Group,k= exports.c =e.Sub,W= exports.d =e.RadioGroup,l= exports.e =_react.forwardRef.call(void 0, ({className:t,...r},o)=>_jsxruntime.jsx.call(void 0, e.Root,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background flex h-10 items-center space-x-1 rounded-md border p-1",t),...r}));l.displayName=e.Root.displayName;var c=_react.forwardRef.call(void 0, ({className:t,...r},o)=>_jsxruntime.jsx.call(void 0, e.Trigger,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded 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=_react.forwardRef.call(void 0, ({children:t,className:r,inset:o,...i},u)=>_jsxruntime.jsxs.call(void 0, e.SubTrigger,{ref:u,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded 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,_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"ml-auto size-4"})]}));f.displayName=e.SubTrigger.displayName;var P=_react.forwardRef.call(void 0, ({className:t,...r},o)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.SubContent,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "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=_react.forwardRef.call(void 0, ({className:t,align:r="start",alignOffset:o=-4,sideOffset:i=8,...u},m)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Content,{ref:m,align:r,alignOffset:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2",t),sideOffset:i,...u})}));y.displayName=e.Content.displayName;var g=_react.forwardRef.call(void 0, ({className:t,inset:r,...o},i)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded 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=_react.forwardRef.call(void 0, ({children:t,className:r,checked:o,...i},u)=>_jsxruntime.jsxs.call(void 0, e.CheckboxItem,{ref:u,checked:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r),...i,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-4"})})}),t]}));v.displayName=e.CheckboxItem.displayName;var C=_react.forwardRef.call(void 0, ({children:t,className:r,...o},i)=>_jsxruntime.jsxs.call(void 0, e.RadioItem,{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r),...o,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon,{className:"size-4 fill-current"})})}),t]}));C.displayName=e.RadioItem.displayName;var x=_react.forwardRef.call(void 0, ({className:t,inset:r,...o},i)=>_jsxruntime.jsx.call(void 0, e.Label,{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "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=_react.forwardRef.call(void 0, ({className:t,...r},o)=>_jsxruntime.jsx.call(void 0, e.Separator,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-muted mx-2 my-1 h-px",t),...r}));R.displayName=e.Separator.displayName;function L({className:t,...r}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",t),...r})}var h=_react.forwardRef.call(void 0, ({className:t,...r},o)=>_jsxruntime.jsx.call(void 0, e.Arrow,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "fill-popover",t),...r}));h.displayName=e.Arrow.displayName;exports.a = T; exports.b = w; exports.c = k; exports.d = W; exports.e = l; exports.f = c; exports.g = f; exports.h = P; exports.i = y; exports.j = g; exports.k = v; exports.l = C; exports.m = x; exports.n = R; exports.o = L; exports.p = h;
2
- //# sourceMappingURL=chunk-4PL3DAT2.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-4PL3DAT2.cjs","../src/components/menubar.tsx"],"names":["MenubarMenu","MenubarGroup","MenubarSub","MenubarRadioGroup","Menubar","forwardRef","className","props","forwardedRef","jsx","cn","MenubarTrigger","MenubarSubTrigger","children","inset","jsxs","ChevronRightIcon","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","MenubarCheckboxItem","checked","CheckIcon","MenubarRadioItem","DotFilledIcon","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarArrow"],"mappings":"AAAA,mZAAwC,mDCAmB,uGACzB,8BAQ3B,+CAwCL,IA/BIA,CAAAA,CAA+B,CAAA,CAAA,IAAA,CAO/BC,CAAAA,aAAgC,CAAA,CAAA,KAAA,CAOhCC,CAAAA,aAA8B,CAAA,CAAA,GAAA,CAO9BC,CAAAA,aAAqC,CAAA,CAAA,UAAA,CASrCC,CAAAA,aAAUC,+BAAAA,CAA0C,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjFC,6BAAAA,CAAkB,CAAA,IAAA,CAAjB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,sEAAG,CAAwEJ,CAAS,CAAA,CAC9F,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDH,CAAAA,CAAQ,WAAA,CAA+B,CAAA,CAAA,IAAA,CAAK,WAAA,CAS5C,IAAMO,CAAAA,CAAiBN,+BAAAA,CACpB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAkB,CAAA,OAAA,CAAjB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,qBACT,CACA,0EAAA,CACA,iEAAA,CACA,sEAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAI,CAAAA,CAAe,WAAA,CAA+B,CAAA,CAAA,OAAA,CAAQ,WAAA,CAYtD,IAAMC,CAAAA,CAAoBP,+BAAAA,CACvB,CAAE,QAAA,CAAAQ,CAAAA,CAAU,SAAA,CAAAP,CAAAA,CAAW,KAAA,CAAAQ,CAAAA,CAAO,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ACN,CAEJ,CAAA,CAEAqB,CAAAA,CAAa,WAAA,CAA+B,CAAA,CAAA,KAAA,CAAM,WAAA,CASlD,IAAMC,CAAAA,CAAmBxB,+BAAAA,CACtB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAkB,CAAA,SAAA,CAAjB,CAA2B,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,yBAAG,CAA2BJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEnH,CAAA,CAEAsB,CAAAA,CAAiB,WAAA,CAA+B,CAAA,CAAA,SAAA,CAAU,WAAA,CAQ1D,SAASC,CAAAA,CAAgB,CAAE,SAAA,CAAAxB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAsC,CACnF,OAAOE,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWC,iCAAAA,uDAAG,CAAyDJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAC7G,CASA,IAAMwB,CAAAA,CAAe1B,+BAAAA,CAAoD,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAChGC,6BAAAA,CAAkB,CAAA,KAAA,CAAjB,CAAuB,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,cAAG,CAAgBJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CACjG,CAAA,CAEDwB,CAAAA,CAAa,WAAA,CAA+B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,+OAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-4PL3DAT2.cjs","sourcesContent":[null,"import { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} 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>(({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Root\n ref={forwardedRef}\n className={cn('bg-background flex h-10 items-center space-x-1 rounded-md border p-1', className)}\n {...props}\n />\n));\n\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarTriggerElement = 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 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 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 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 ({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, forwardedRef) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={forwardedRef}\n align={align}\n alignOffset={alignOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </MenubarPrimitive.Portal>\n ),\n);\n\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarItemElement = ComponentRef<typeof MenubarPrimitive.Item>;\n\ninterface MenubarItemProps extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> {\n inset?: boolean;\n}\n\nconst MenubarItem = forwardRef<MenubarItemElement, MenubarItemProps>(({ 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 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\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 ({ children, className, checked, ...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 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 text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n ),\n);\n\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\ntype MenubarLabelElement = 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('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\ntype MenubarSeparatorElement = ComponentRef<typeof MenubarPrimitive.Separator>;\ntype MenubarSeparatorProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>;\n\nconst MenubarSeparator = forwardRef<MenubarSeparatorElement, MenubarSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Separator ref={forwardedRef} className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />\n ),\n);\n\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\ntype MenubarShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction MenubarShortcut({ className, ...props }: MenubarShortcutProps): JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\ntype MenubarArrowElement = ComponentRef<typeof MenubarPrimitive.Arrow>;\ntype MenubarArrowProps = MenubarPrimitive.MenubarArrowProps;\n\nconst MenubarArrow = forwardRef<MenubarArrowElement, MenubarArrowProps>(({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n));\n\nMenubarArrow.displayName = MenubarPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\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 type MenubarArrowProps,\n type MenubarCheckboxItemProps,\n type MenubarContentProps,\n type MenubarGroupProps,\n type MenubarItemProps,\n type MenubarLabelProps,\n type MenubarMenuProps,\n type MenubarProps,\n type MenubarRadioGroupProps,\n type MenubarRadioItemProps,\n type MenubarSeparatorProps,\n type MenubarShortcutProps,\n type MenubarSubContentProps,\n type MenubarSubProps,\n type MenubarSubTriggerProps,\n type MenubarTriggerProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- import{a as i}from"./chunk-7MCTR55I.js";import{a as m}from"./chunk-Q3UBBFLY.js";import{a as o}from"./chunk-EVRI6TWT.js";import{a as n}from"./chunk-VPYH6JWS.js";import*as e from"@codefast-ui/number-input";import{ChevronDownIcon as D,ChevronUpIcon as w}from"@radix-ui/react-icons";import{forwardRef as k}from"react";import{jsx as t,jsxs as p}from"react/jsx-runtime";var{root:E,input:L}=i(),O=k(({ariaDecrementLabel:u,ariaIncrementLabel:a,className:s,defaultValue:d,disabled:l,formatOptions:f,id:c,inputSize:r,loaderPosition:b,loading:I,max:N,min:v,onChange:P,prefix:h,readOnly:C,spinner:y,step:R,suffix:g,value:x,...V},B)=>p(e.Root,{ariaDecrementLabel:u,ariaIncrementLabel:a,className:E({inputSize:r,className:["pr-0",s]}),defaultValue:d,disabled:l,formatOptions:f,id:c,loaderPosition:b,loading:I,max:N,min:v,prefix:h,readOnly:C,spinner:y||t(m,{}),step:R,suffix:g,value:x,onChange:P,children:[t(e.Item,{ref:B,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:L({inputSize:r}),inputMode:"numeric",spellCheck:"false",...V}),p("div",{className:n("peer-focus:divide-ring peer-focus:border-l-ring","divide-input border-input order-last ml-auto grid h-full shrink-0 divide-y overflow-hidden rounded-r-[calc(theme(borderRadius.md)-1px)] border-l transition"),children:[t(e.IncrementButton,{className:o({className:"h-full rounded-none rounded-tr-[calc(theme(borderRadius.md)-1px)]",icon:!0,variant:"ghost",size:r}),children:t(w,{})}),t(e.DecrementButton,{className:o({className:"h-full rounded-none rounded-br-[calc(theme(borderRadius.md)-1px)]",icon:!0,variant:"ghost",size:r}),children:t(D,{})})]})]}));O.displayName="NumberInput";export{O as a};
2
- //# sourceMappingURL=chunk-5I7UA4HT.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/number-input.tsx"],"names":["NumberInputPrimitive","ChevronDownIcon","ChevronUpIcon","forwardRef","jsx","jsxs","root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","defaultValue","disabled","formatOptions","id","inputSize","loaderPosition","loading","max","min","onChange","prefix","readOnly","spinner","step","suffix","value","props","forwardedRef","Spinner","cn","buttonVariants"],"mappings":"gKAAA,UAAYA,MAA0B,4BACtC,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAC/C,OAAgF,cAAAC,MAAkB,QA2DxE,cAAAC,EAgBpB,QAAAC,MAhBoB,oBApD1B,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAYhCC,EAAcN,EAClB,CACE,CACE,mBAAAO,EACA,mBAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,UAAAC,EACA,eAAAC,EACA,QAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,OAAAC,EACA,SAAAC,EACA,QAAAC,EACA,KAAAC,EACA,OAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,IAEAzB,EAAsB,OAArB,CACC,mBAAoBK,EACpB,mBAAoBC,EACpB,UAAWL,EAAK,CAAE,UAAAW,EAAW,UAAW,CAAC,OAAQL,CAAS,CAAE,CAAC,EAC7D,aAAcC,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,eAAgBE,EAChB,QAASC,EACT,IAAKC,EACL,IAAKC,EACL,OAAQE,EACR,SAAUC,EACV,QAASC,GAAWrB,EAAC2B,EAAA,EAAQ,EAC7B,KAAML,EACN,OAAQC,EACR,MAAOC,EACP,SAAUN,EAEV,UAAAlB,EAAsB,OAArB,CACC,IAAK0B,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWvB,EAAM,CAAE,UAAAU,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGY,EACN,EACAxB,EAAC,OACC,UAAW2B,EACT,kDACA,6JACF,EAEA,UAAA5B,EAAsB,kBAArB,CACC,UAAW6B,EAAe,CACxB,UAAW,oEACX,KAAM,GACN,QAAS,QACT,KAAMhB,CACR,CAAC,EAED,SAAAb,EAACF,EAAA,EAAc,EACjB,EACAE,EAAsB,kBAArB,CACC,UAAW6B,EAAe,CACxB,UAAW,oEACX,KAAM,GACN,QAAS,QACT,KAAMhB,CACR,CAAC,EAED,SAAAb,EAACH,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEAQ,EAAY,YAAc","sourcesContent":["import * as NumberInputPrimitive from '@codefast-ui/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { type ComponentProps, type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { Spinner } from '@/components/spinner';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = ComponentRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n ComponentProps<typeof NumberInputPrimitive.Root>,\n ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n defaultValue,\n disabled,\n formatOptions,\n id,\n inputSize,\n loaderPosition,\n loading,\n max,\n min,\n onChange,\n prefix,\n readOnly,\n spinner,\n step,\n suffix,\n value,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n loaderPosition={loaderPosition}\n loading={loading}\n max={max}\n min={min}\n prefix={prefix}\n readOnly={readOnly}\n spinner={spinner || <Spinner />}\n step={step}\n suffix={suffix}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div\n className={cn(\n 'peer-focus:divide-ring peer-focus:border-l-ring',\n 'divide-input border-input order-last ml-auto grid h-full shrink-0 divide-y overflow-hidden rounded-r-[calc(theme(borderRadius.md)-1px)] border-l transition',\n )}\n >\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-[calc(theme(borderRadius.md)-1px)]',\n icon: true,\n variant: 'ghost',\n size: inputSize,\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-br-[calc(theme(borderRadius.md)-1px)]',\n icon: true,\n variant: 'ghost',\n size: inputSize,\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
@@ -1,2 +0,0 @@
1
- "use client";import{a as d}from"./chunk-24TJIVWR.js";import{a as i}from"./chunk-VPYH6JWS.js";import{createContextScope as g}from"@radix-ui/react-context";import{ArrowLeftIcon as B,ArrowRightIcon as D}from"@radix-ui/react-icons";import U from"embla-carousel-react";import{forwardRef as y,useCallback as f,useEffect as S,useState as b}from"react";import{jsx as s}from"react/jsx-runtime";var x="Carousel",[_,$]=g(x),[O,v]=_(x),z=y(({__scopeCarousel:l,children:a,orientation:o,opts:r,setApi:t,plugins:u,className:p,...c},C)=>{let[m,e]=U({...r,axis:o==="vertical"?"y":"x"},u),[R,H]=b(!1),[I,h]=b(!1),P=f(n=>{n&&(H(n.canScrollPrev()),h(n.canScrollNext()))},[]),E=f(()=>{e?.scrollPrev()},[e]),N=f(()=>{e?.scrollNext()},[e]),w=f(n=>{n.key==="ArrowLeft"?(n.preventDefault(),E()):n.key==="ArrowRight"&&(n.preventDefault(),N())},[E,N]);return S(()=>{!e||!t||t(e)},[e,t]),S(()=>{if(e)return P(e),e.on("reInit",P),e.on("select",P),()=>{e.off("select",P)}},[e,P]),s(O,{api:e,canScrollNext:I,canScrollPrev:R,carouselRef:m,opts:r,orientation:o??(r?.axis==="y"?"vertical":"horizontal"),scope:l,scrollNext:N,scrollPrev:E,children:s("div",{ref:C,"aria-roledescription":"carousel",className:i("relative",p),role:"region",onKeyDownCapture:w,...c,children:a})})});z.displayName=x;var T="CarouselContent",k=y(({__scopeCarousel:l,className:a,classNames:o,...r},t)=>{let{carouselRef:u,orientation:p}=v(T,l);return s("div",{ref:u,className:i("overflow-hidden",o?.wrapper),children:s("div",{ref:t,className:i("flex",p==="horizontal"?"-ml-4":"-mt-4 flex-col",o?.content,a),...r})})});k.displayName=T;var L="CarouselItem",K=y(({__scopeCarousel:l,className:a,...o},r)=>{let{orientation:t}=v(L,l);return s("div",{ref:r,"aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",a),role:"group",...o})});K.displayName=L;var A="CarouselPrevious",V=y(({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollPrev:C,canScrollPrev:m}=v(A,l);return s(d,{ref:p,className:i("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:!m,icon:o,prefix:s(B,{}),size:r,variant:t,onClick:C,...u,children:s("span",{className:"sr-only",children:"Previous slide"})})});V.displayName=A;var M="CarouselNext",X=y(({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollNext:C,canScrollNext:m}=v(M,l);return s(d,{ref:p,className:i("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:!m,icon:o,prefix:s(D,{}),size:r,variant:t,onClick:C,...u,children:s("span",{className:"sr-only",children:"Next slide"})})});X.displayName=M;export{$ as a,z as b,k as c,K as d,V as e,X as f};
2
- //# sourceMappingURL=chunk-5LM6T7Z5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/carousel.tsx"],"names":["createContextScope","ArrowLeftIcon","ArrowRightIcon","useEmblaCarousel","forwardRef","useCallback","useEffect","useState","jsx","CAROUSEL_NAME","createCarouselContext","createCarouselScope","CarouselProvider","useCarouselContext","Carousel","__scopeCarousel","children","orientation","opts","setApi","plugins","className","props","forwardedRef","carouselRef","api","canScrollPrev","setCanScrollPrev","canScrollNext","setCanScrollNext","onSelect","carouselApi","scrollPrev","scrollNext","handleKeyDown","event","cn","CAROUSEL_CONTENT_NAME","CarouselContent","classNames","CAROUSEL_ITEM_NAME","CarouselItem","CAROUSEL_PREVIOUS_NAME","CarouselPrevious","icon","size","variant","Button","CAROUSEL_NEXT_NAME","CarouselNext"],"mappings":"gFAEA,OAAS,sBAAAA,MAAsC,0BAC/C,OAAS,iBAAAC,EAAe,kBAAAC,MAAsB,wBAC9C,OAAOC,MAAqD,uBAC5D,OAAS,cAAAC,EAAqD,eAAAC,EAAa,aAAAC,EAAW,YAAAC,MAAgB,QAyH9F,cAAAC,MAAA,oBAhHR,IAAMC,EAAgB,WAIhB,CAACC,EAAuBC,CAAmB,EAAIX,EAAmBS,CAAa,EAuB/E,CAACG,EAAkBC,CAAkB,EAAIH,EAA4CD,CAAa,EAKlGK,EAAWV,EACf,CACE,CAAE,gBAAAW,EAAiB,SAAAC,EAAU,YAAAC,EAAa,KAAAC,EAAM,OAAAC,E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AAKxB,EACL,UAAWa,EACT,WACAnB,IAAgB,aACZ,oCACA,8CACJI,CACF,EACA,SAAU,CAACK,EACX,KAAMkB,EACN,OAAQpC,EAACP,EAAA,EAAc,EACvB,KAAM4C,EACN,QAASC,EACT,QAASd,EACR,GAAGV,EAEJ,SAAAd,EAAC,QAAK,UAAU,UAAU,0BAAc,EAC1C,CAEJ,CACF,EAEAmC,EAAiB,YAAcD,EAM/B,IAAMM,EAAqB,eAKrBC,EAAe7C,EACnB,CACE,CACE,gBAAAW,EACA,UAAAM,EACA,KAAAuB,EAAO,GACP,KAAAC,EAAO,KACP,QAAAC,EAAU,UACV,GAAGxB,CACL,EACAC,IACG,CACH,GAAM,CAAE,YAAAN,EAAa,WAAAgB,EAAY,cAAAL,CAAc,EAAIf,EAAmBmC,EAAoBjC,CAAe,EAEzG,OACEP,EAACuC,EAAA,CACC,IAAKxB,EACL,UAAWa,EACT,WACAnB,IAAgB,aACZ,qCACA,iDACJI,CACF,EACA,SAAU,CAACO,EACX,KAAMgB,EACN,OAAQpC,EAACN,EAAA,EAAe,EACxB,KAAM2C,EACN,QAASC,EACT,QAASb,EACR,GAAGX,EAEJ,SAAAd,EAAC,QAAK,UAAU,UAAU,sBAAU,EACtC,CAEJ,CACF,EAEAyC,EAAa,YAAcD","sourcesContent":["'use client';\n\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { ArrowLeftIcon, ArrowRightIcon } from '@radix-ui/react-icons';\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';\nimport { forwardRef, type HTMLAttributes, type KeyboardEvent, useCallback, useEffect, useState } from 'react';\n\nimport { Button, type ButtonProps } 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 = {\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} & BaseCarouselProps;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<CarouselContextValue>(CAROUSEL_NAME);\n\ntype CarouselElement = HTMLDivElement;\ntype CarouselProps = HTMLAttributes<HTMLDivElement> & BaseCarouselProps;\n\nconst Carousel = forwardRef<CarouselElement, CarouselProps>(\n (\n { __scopeCarousel, children, orientation, opts, setApi, plugins, className, ...props }: 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 ({ __scopeCarousel, className, classNames, ...props }: ScopedProps<CarouselContentProps>, forwardedRef) => {\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('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\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 { orientation, scrollPrev, canScrollPrev } = useCarouselContext(CAROUSEL_PREVIOUS_NAME, __scopeCarousel);\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 { orientation, scrollNext, canScrollNext } = useCarouselContext(CAROUSEL_NEXT_NAME, __scopeCarousel);\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 {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n createCarouselScope,\n type CarouselApi,\n type CarouselContentProps,\n type CarouselItemProps,\n type CarouselNextProps,\n type CarouselPreviousProps,\n type CarouselProps,\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 _chunkKF7Y7B3Gcjs = require('./chunk-KF7Y7B3G.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var T=e.Root,x= exports.b =e.Trigger,D= exports.c =_react.forwardRef.call(void 0, ({children:t,className:o,...l},s)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Overlay,{className:_chunkDD6AVCRHcjs.a.call(void 0, "fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8","data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out"),children:_jsxruntime.jsxs.call(void 0, e.Content,{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg","data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in","data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out",o),...l,children:[t,_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunkKF7Y7B3Gcjs.a.call(void 0, {className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[_jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})})}));D.displayName=e.Content.displayName;function N({className:t,...o}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function b({className:t,...o}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkDD6AVCRHcjs.a.call(void 0, "overflow-auto px-6 py-2",t),...o})}function E({className:t,...o}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}var P=_react.forwardRef.call(void 0, ({className:t,...o},l)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),...o}));P.displayName=e.Title.displayName;var d=_react.forwardRef.call(void 0, ({className:t,...o},l)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-sm",t),...o}));d.displayName=e.Description.displayName;var f=_react.forwardRef.call(void 0, ({className:t,size:o,variant:l="outline",...s},m)=>_jsxruntime.jsx.call(void 0, e.Close,{ref:m,className:_chunkKF7Y7B3Gcjs.a.call(void 0, {className:t,size:o,variant:l}),...s}));f.displayName=e.Close.displayName;exports.a = T; exports.b = x; exports.c = D; exports.d = N; exports.e = b; exports.f = E; exports.g = P; exports.h = d; exports.i = f;
2
- //# sourceMappingURL=chunk-B5V32KRW.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B5V32KRW.cjs","../src/components/dialog.tsx"],"names":["Dialog","DialogTrigger","DialogContent","forwardRef","children","className","props","forwardedRef","jsx","cn","jsxs","buttonVariants","Cross2Icon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"AAAA,mZAAwC,wDAAoC,oGCA3C,mDACN,8BAQpB,+CA+CG,IArCJA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAAgC,CAAA,CAAA,OAAA,CAShCC,CAAAA,aAAgBC,+BAAAA,CACnB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,CAAiB,CAAA,MAAA,CAAhB,CACC,QAAA,CAAAA,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,SAAA,CAAWC,iCAAAA,2FACT,CACA,0EAAA,CACA,+EACF,CAAA,CAEA,QAAA,CAAAC,8BAAAA,C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/codefast/packages/ui/dist/chunk-B5V32KRW.cjs","sourcesContent":[null,"import * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\ntype DialogProps = ComponentProps<typeof DialogPrimitive.Root>;\nconst Dialog = DialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype DialogTriggerProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\ntype DialogContentElement = ComponentRef<typeof DialogPrimitive.Content>;\ntype DialogContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\n\nconst DialogContent = forwardRef<DialogContentElement, DialogContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8',\n 'data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out',\n )}\n >\n <DialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in',\n 'data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n ),\n);\n\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\ntype DialogHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DialogHeader({ className, ...props }: DialogHeaderProps): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype DialogBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DialogBody({ className, ...props }: DialogBodyProps): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\ntype DialogFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DialogFooter({ className, ...props }: DialogFooterProps): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\ntype DialogTitleElement = ComponentRef<typeof DialogPrimitive.Title>;\ntype DialogTitleProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;\n\nconst DialogTitle = forwardRef<DialogTitleElement, DialogTitleProps>(({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n));\n\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\ntype DialogDescriptionElement = ComponentRef<typeof DialogPrimitive.Description>;\ntype DialogDescriptionProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;\n\nconst DialogDescription = forwardRef<DialogDescriptionElement, DialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\ntype DialogCloseElement = ComponentRef<typeof DialogPrimitive.Close>;\ninterface DialogCloseProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst DialogClose = forwardRef<DialogCloseElement, DialogCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <DialogPrimitive.Close ref={forwardedRef} className={buttonVariants({ className, size, variant })} {...props} />\n ),\n);\n\nDialogClose.displayName = DialogPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n type DialogBodyProps,\n type DialogCloseProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogFooterProps,\n type DialogHeaderProps,\n type DialogProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKF7Y7B3Gcjs = require('./chunk-KF7Y7B3G.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function N({className:n,...i}){return _jsxruntime.jsx.call(void 0, "nav",{"aria-label":"pagination",className:_chunkDD6AVCRHcjs.a.call(void 0, "mx-auto flex w-full justify-center",n),role:"navigation",...i})}var L=_react.forwardRef.call(void 0, ({className:n,...i},a)=>_jsxruntime.jsx.call(void 0, "ul",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex flex-row items-center gap-1",n),...i}));L.displayName="PaginationContent";var f=_react.forwardRef.call(void 0, (n,i)=>_jsxruntime.jsx.call(void 0, "li",{ref:i,...n}));f.displayName="PaginationItem";function P({children:n,className:i,icon:a=!0,isActive:s,size:l,...g}){return _jsxruntime.jsx.call(void 0, "a",{"aria-current":s?"page":void 0,className:_chunkKF7Y7B3Gcjs.a.call(void 0, {className:i,icon:a,size:l,variant:s?"outline":"ghost"}),...g,children:n})}function b({...n}){return _jsxruntime.jsxs.call(void 0, P,{"aria-label":"Go to previous page",icon:!1,...n,children:[_jsxruntime.jsx.call(void 0, _reacticons.ChevronLeftIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{children:"Previous"})]})}function x({...n}){return _jsxruntime.jsxs.call(void 0, P,{"aria-label":"Go to next page",icon:!1,...n,children:[_jsxruntime.jsx.call(void 0, "span",{children:"Next"}),_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{})]})}function I({className:n,...i}){return _jsxruntime.jsxs.call(void 0, "span",{"aria-hidden":!0,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex size-10 items-center justify-center",n),...i,children:[_jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"More pages"})]})}exports.a = N; exports.b = L; exports.c = f; exports.d = P; exports.e = b; exports.f = x; exports.g = I;
2
- //# sourceMappingURL=chunk-BAOFKRE7.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-BAOFKRE7.cjs","../src/components/pagination.tsx"],"names":["Pagination","className","props","jsx","cn","PaginationContent","forwardRef","forwardedRef","PaginationItem","PaginationLink","children","icon","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeftIcon","PaginationNext","ChevronRightIcon","PaginationEllipsis","DotsHorizontalIcon"],"mappings":"AAAA,iIAAwC,wDAAyC,mDCAX,8BACsC,+CAaxG,SAFKA,CAAAA,CAAW,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiC,CACzE,OACEC,6BAAAA,KAAC,CAAA,CACC,YAAA,CAAW,YAAA,CACX,SAAA,CAAWC,iCAAAA,oCAAG,CAAsCH,CAAS,CAAA,CAC7D,IAAA,CAAK,YAAA,CACJ,GAAGC,CAAAA,CACN,CAEJ,CASA,IAAMG,CAAAA,CAAoBC,+BAAAA,CACvB,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGK,CAAAA,CAAAA,EACxBJ,6BAAAA,IAAC,CAAA,CAAG,GAAA,CAAKI,CAAAA,CAAc,SAAA,CAAWH,iCAAAA,kCAAG,CAAoCH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEpG,CAAA,CAEAG,CAAAA,CAAkB,WAAA,CAAc,mBAAA,CAShC,IAAMG,CAAAA,CAAiBF,+BAAAA,CAAwDJ,CAAAA,CAAOK,CAAAA,CAAAA,EACpFJ,6BAAAA,IAAC,CAAA,CAAG,GAAA,CAAKI,CAAAA,CAAe,GAAGL,CAAAA,CAAO,CACnC,CAAA,CAEDM,CAAAA,CAAe,WAAA,CAAc,gBAAA,CAY7B,SAASC,CAAAA,CAAe,CACtB,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAT,CAAAA,CACA,IAAA,CAAAU,CAAAA,CAAO,CAAA,CAAA,CACP,QAAA,CAAAC,CAAAA,CACA,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GAAGC,CAAAA,CAC1F,QAAA,CAAA,CAAAC,6BAAAA,8BAACkB,CAAA,CAAmB,SAAA,CAAU,QAAA,CAAS,CAAA,CACvClB,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,SAAA,CAAU,QAAA,CAAA,YAAA,CAAU,CAAA,CAAA,CACtC,CAEJ,CAAA,wGAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-BAOFKRE7.cjs","sourcesContent":[null,"import { ChevronLeftIcon, ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { type AnchorHTMLAttributes, forwardRef, type HTMLAttributes, type JSX, type LiHTMLAttributes } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Pagination\n * -------------------------------------------------------------------------- */\n\ntype PaginationProps = HTMLAttributes<HTMLElement>;\n\nfunction Pagination({ className, ...props }: PaginationProps): JSX.Element {\n return (\n <nav\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n role=\"navigation\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationContent\n * -------------------------------------------------------------------------- */\n\ntype PaginationContentElement = HTMLUListElement;\ntype PaginationContentProps = HTMLAttributes<HTMLUListElement>;\n\nconst PaginationContent = forwardRef<PaginationContentElement, PaginationContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ul ref={forwardedRef} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\n\nPaginationContent.displayName = 'PaginationContent';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationItem\n * -------------------------------------------------------------------------- */\n\ntype PaginationItemElement = HTMLLIElement;\ntype PaginationItemProps = LiHTMLAttributes<HTMLLIElement>;\n\nconst PaginationItem = forwardRef<PaginationItemElement, PaginationItemProps>((props, forwardedRef) => (\n <li ref={forwardedRef} {...props} />\n));\n\nPaginationItem.displayName = 'PaginationItem';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationLink\n * -------------------------------------------------------------------------- */\n\ninterface PaginationLinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement>,\n Pick<ButtonVariantsProps, 'size' | 'icon'> {\n isActive?: boolean;\n}\n\nfunction PaginationLink({\n children,\n className,\n icon = true,\n isActive,\n size,\n ...props\n}: PaginationLinkProps): JSX.Element {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={buttonVariants({\n className,\n icon,\n size,\n variant: isActive ? 'outline' : 'ghost',\n })}\n {...props}\n >\n {children}\n </a>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationPrevious\n * -------------------------------------------------------------------------- */\n\ntype PaginationPreviousProps = PaginationLinkProps;\n\nfunction PaginationPrevious({ ...props }: PaginationPreviousProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to previous page\" icon={false} {...props}>\n <ChevronLeftIcon className=\"size-4\" />\n <span>Previous</span>\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationNext\n * -------------------------------------------------------------------------- */\n\ntype PaginationNextProps = PaginationLinkProps;\n\nfunction PaginationNext({ ...props }: PaginationNextProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to next page\" icon={false} {...props}>\n <span>Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationEllipsis\n * -------------------------------------------------------------------------- */\n\ntype PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): JSX.Element {\n return (\n <span aria-hidden className={cn('flex size-10 items-center justify-center', className)} {...props}>\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n type PaginationContentProps,\n type PaginationEllipsisProps,\n type PaginationItemProps,\n type PaginationLinkProps,\n type PaginationNextProps,\n type PaginationPreviousProps,\n type PaginationProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use client";import{a as o}from"./chunk-VPYH6JWS.js";import{DotFilledIcon as a}from"@radix-ui/react-icons";import{OTPInput as i,OTPInputContext as l,REGEXP_ONLY_CHARS as v,REGEXP_ONLY_DIGITS as b,REGEXP_ONLY_DIGITS_AND_CHARS as N}from"input-otp";import{forwardRef as r,useContext as P}from"react";import{jsx as n,jsxs as d}from"react/jsx-runtime";var m=r(({className:t,containerClassName:e,...p},s)=>n(i,{ref:s,className:o("disabled:cursor-default",t),containerClassName:o("flex items-center gap-2","has-[:disabled]:opacity-50",e),...p}));m.displayName="InputOTP";var T=r(({className:t,...e},p)=>n("div",{ref:p,className:o("flex items-center",t),...e}));T.displayName="InputOTPGroup";var I=r(({index:t,className:e,...p},s)=>{let u=P(l).slots[t];return d("div",{ref:s,className:o("border-input relative flex size-10 items-center justify-center border-y border-r text-sm shadow-sm transition-all","first:rounded-l-md first:border-l","last:rounded-r-md",u.isActive&&"z-10 outline outline-2",e),...p,children:[u.char,u.hasFakeCaret?n("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:n("div",{className:"animate-caret-blink bg-foreground animate-duration-1000 h-4 w-px"})}):null]})});I.displayName="InputOTPSlot";var O=r(({...t},e)=>n("div",{ref:e,role:"separator",...t,children:n(a,{})}));O.displayName="InputOTPSeparator";export{v as a,b,N as c,m as d,T as e,I as f,O as g};
2
- //# sourceMappingURL=chunk-BHLW3MWI.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/input-otp.tsx"],"names":["DotFilledIcon","OTPInput","OTPInputContext","REGEXP_ONLY_CHARS","REGEXP_ONLY_DIGITS","REGEXP_ONLY_DIGITS_AND_CHARS","forwardRef","useContext","jsx","jsxs","InputOTP","className","contain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CACD,EAEDoB,EAAkB,YAAc","sourcesContent":["'use client';\n\nimport { DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n OTPInput,\n OTPInputContext,\n REGEXP_ONLY_CHARS,\n REGEXP_ONLY_DIGITS,\n REGEXP_ONLY_DIGITS_AND_CHARS,\n} from 'input-otp';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef, type HTMLAttributes, useContext } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOtp\n * -------------------------------------------------------------------------- */\n\ntype InputOTPElement = ComponentRef<typeof OTPInput>;\ntype InputOTPProps = ComponentPropsWithoutRef<typeof OTPInput>;\n\nconst InputOTP = forwardRef<InputOTPElement, InputOTPProps>(\n ({ className, containerClassName, ...props }, forwardedRef) => (\n <OTPInput\n ref={forwardedRef}\n className={cn('disabled:cursor-default', className)}\n containerClassName={cn('flex items-center gap-2', 'has-[:disabled]:opacity-50', containerClassName)}\n {...props}\n />\n ),\n);\n\nInputOTP.displayName = 'InputOTP';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPGroup\n * -------------------------------------------------------------------------- */\n\ntype InputOTPGroupElement = HTMLDivElement;\ntype InputOTPGroupProps = HTMLAttributes<HTMLDivElement>;\n\nconst InputOTPGroup = forwardRef<InputOTPGroupElement, InputOTPGroupProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('flex items-center', className)} {...props} />\n));\n\nInputOTPGroup.displayName = 'InputOTPGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSlot\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSlotElement = HTMLDivElement;\n\ninterface InputOTPSlotProps extends HTMLAttributes<HTMLDivElement> {\n index: number;\n}\n\nconst InputOTPSlot = forwardRef<InputOTPSlotElement, InputOTPSlotProps>(\n ({ index, className, ...props }, forwardedRef) => {\n const inputOTPContext = useContext(OTPInputContext);\n const slot = inputOTPContext.slots[index];\n\n return (\n <div\n ref={forwardedRef}\n className={cn(\n 'border-input relative flex size-10 items-center justify-center border-y border-r text-sm shadow-sm transition-all',\n 'first:rounded-l-md first:border-l',\n 'last:rounded-r-md',\n slot.isActive && 'z-10 outline outline-2',\n className,\n )}\n {...props}\n >\n {slot.char}\n {slot.hasFakeCaret ? (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground animate-duration-1000 h-4 w-px\" />\n </div>\n ) : null}\n </div>\n );\n },\n);\n\nInputOTPSlot.displayName = 'InputOTPSlot';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSeparator\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSeparatorElement = HTMLDivElement;\ntype InputOTPSeparatorProps = HTMLAttributes<HTMLDivElement>;\n\nconst InputOTPSeparator = forwardRef<InputOTPSeparatorElement, InputOTPSeparatorProps>(({ ...props }, forwardedRef) => (\n <div ref={forwardedRef} role=\"separator\" {...props}>\n <DotFilledIcon />\n </div>\n));\n\nInputOTPSeparator.displayName = 'InputOTPSeparator';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n InputOTP,\n InputOTPGroup,\n InputOTPSeparator,\n InputOTPSlot,\n REGEXP_ONLY_CHARS,\n REGEXP_ONLY_DIGITS,\n REGEXP_ONLY_DIGITS_AND_CHARS,\n type InputOTPGroupProps,\n type InputOTPProps,\n type InputOTPSeparatorProps,\n type InputOTPSlotProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use client";import{a as r}from"./chunk-VPYH6JWS.js";import{DragHandleDots2Icon as n}from"@radix-ui/react-icons";import*as e from"react-resizable-panels";import{jsx as i}from"react/jsx-runtime";function f({className:a,...t}){return i(e.PanelGroup,{className:r("flex size-full","data-[panel-group-direction=vertical]:flex-col",a),...t})}var d=e.Panel;function u({withHandle:a,className:t,...l}){return i(e.PanelResizeHandle,{className:r("bg-border relative flex w-px items-center justify-center transition","after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2","focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[panel-group-direction=vertical]:h-px","data-[panel-group-direction=vertical]:w-full","data-[panel-group-direction=vertical]:after:left-0","data-[panel-group-direction=vertical]:after:h-1","data-[panel-group-direction=vertical]:after:w-full","data-[panel-group-direction=vertical]:after:-translate-y-1/2","data-[panel-group-direction=vertical]:after:translate-x-0","[&[data-panel-group-direction=vertical]>div]:rotate-90",t),...l,children:a?i("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded border",children:i(n,{className:"size-2.5"})}):null})}export{f as a,d as b,u as c};
2
- //# sourceMappingURL=chunk-C4SXNTCJ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/resizable.tsx"],"names":["DragHandleDots2Icon","ResizablePrimitive","jsx","ResizablePanelGroup","className","props","cn","ResizablePanel","ResizableHandle","withHandle"],"mappings":"wCAEA,OAAS,uBAAAA,MAA2B,wBAEpC,UAAYC,MAAwB,yBAahC,cAAAC,MAAA,oBALJ,SAASC,EAAoB,CAC3B,UAAAC,EACA,GAAGC,CACL,EAAsE,CACpE,OACEH,EAAoB,aAAnB,CACC,UAAWI,EAAG,iBAAkB,iDAAkDF,CAAS,EAC1F,GAAGC,EACN,CAEJ,CAMA,IAAME,EAAoC,QAM1C,SAASC,EAAgB,CACvB,WAAAC,EACA,UAAAL,EACA,GAAGC,CACL,EAEgB,CACd,OACEH,EAAoB,oBAAnB,CACC,UAAWI,EACT,sEACA,iFACA,sGACA,6CACA,+CACA,qDACA,kDACA,qDACA,+DACA,4DACA,yDACAF,CACF,EACC,GAAGC,EAEH,SAAAI,EACCP,EAAC,OAAI,UAAU,yEACb,SAAAA,EAACF,EAAA,CAAoB,UAAU,WAAW,EAC5C,EACE,KACN,CAEJ","sourcesContent":["'use client';\n\nimport { DragHandleDots2Icon } from '@radix-ui/react-icons';\nimport { type ComponentProps, type JSX } from 'react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanelGroup\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element {\n return (\n <ResizablePrimitive.PanelGroup\n className={cn('flex size-full', 'data-[panel-group-direction=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanel\n * -------------------------------------------------------------------------- */\n\nconst ResizablePanel = ResizablePrimitive.Panel;\n\n/* -----------------------------------------------------------------------------\n * Component: ResizableHandle\n * -------------------------------------------------------------------------- */\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n withHandle?: boolean;\n}): JSX.Element {\n return (\n <ResizablePrimitive.PanelResizeHandle\n className={cn(\n 'bg-border relative flex w-px items-center justify-center transition',\n 'after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2',\n 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',\n 'data-[panel-group-direction=vertical]:h-px',\n 'data-[panel-group-direction=vertical]:w-full',\n 'data-[panel-group-direction=vertical]:after:left-0',\n 'data-[panel-group-direction=vertical]:after:h-1',\n 'data-[panel-group-direction=vertical]:after:w-full',\n 'data-[panel-group-direction=vertical]:after:-translate-y-1/2',\n 'data-[panel-group-direction=vertical]:after:translate-x-0',\n '[&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle ? (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded border\">\n <DragHandleDots2Icon className=\"size-2.5\" />\n </div>\n ) : null}\n </ResizablePrimitive.PanelResizeHandle>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as r}from"./chunk-EVRI6TWT.js";import{a as e}from"./chunk-VPYH6JWS.js";import{ChevronLeftIcon as m,ChevronRightIcon as u,DotsHorizontalIcon as c}from"@radix-ui/react-icons";import{forwardRef as p}from"react";import{jsx as t,jsxs as o}from"react/jsx-runtime";function b({className:n,...i}){return t("nav",{"aria-label":"pagination",className:e("mx-auto flex w-full justify-center",n),role:"navigation",...i})}var L=p(({className:n,...i},a)=>t("ul",{ref:a,className:e("flex flex-row items-center gap-1",n),...i}));L.displayName="PaginationContent";var f=p((n,i)=>t("li",{ref:i,...n}));f.displayName="PaginationItem";function P({children:n,className:i,icon:a=!0,isActive:s,size:l,...g}){return t("a",{"aria-current":s?"page":void 0,className:r({className:i,icon:a,size:l,variant:s?"outline":"ghost"}),...g,children:n})}function x({...n}){return o(P,{"aria-label":"Go to previous page",icon:!1,...n,children:[t(m,{className:"size-4"}),t("span",{children:"Previous"})]})}function I({...n}){return o(P,{"aria-label":"Go to next page",icon:!1,...n,children:[t("span",{children:"Next"}),t(u,{})]})}function v({className:n,...i}){return o("span",{"aria-hidden":!0,className:e("flex size-10 items-center justify-center",n),...i,children:[t(c,{className:"size-4"}),t("span",{className:"sr-only",children:"More pages"})]})}export{b as a,L as b,f as c,P as d,x as e,I as f,v as g};
2
- //# sourceMappingURL=chunk-CRQ5URNB.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/pagination.tsx"],"names":["ChevronLeftIcon","ChevronRightIcon","DotsHorizontalIcon","forwardRef","jsx","jsxs","Pagination","className","props","cn","PaginationContent","forwardedRef","PaginationItem","PaginationLink","children","icon","isActive","size","buttonVariants","PaginationPrevious","PaginationNext","PaginationEllipsis"],"mappings":"gFAAA,OAAS,mBAAAA,EAAiB,oBAAAC,EAAkB,sBAAAC,MAA0B,wBACtE,OAAoC,cAAAC,MAAwE,QAaxG,cAAAC,EA+EA,QAAAC,MA/EA,oBAFJ,SAASC,EAAW,CA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AAI,GAAGC,EAC1F,UAAAJ,EAACF,EAAA,CAAmB,UAAU,SAAS,EACvCE,EAAC,QAAK,UAAU,UAAU,sBAAU,GACtC,CAEJ","sourcesContent":["import { ChevronLeftIcon, ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { type AnchorHTMLAttributes, forwardRef, type HTMLAttributes, type JSX, type LiHTMLAttributes } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Pagination\n * -------------------------------------------------------------------------- */\n\ntype PaginationProps = HTMLAttributes<HTMLElement>;\n\nfunction Pagination({ className, ...props }: PaginationProps): JSX.Element {\n return (\n <nav\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n role=\"navigation\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationContent\n * -------------------------------------------------------------------------- */\n\ntype PaginationContentElement = HTMLUListElement;\ntype PaginationContentProps = HTMLAttributes<HTMLUListElement>;\n\nconst PaginationContent = forwardRef<PaginationContentElement, PaginationContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ul ref={forwardedRef} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\n\nPaginationContent.displayName = 'PaginationContent';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationItem\n * -------------------------------------------------------------------------- */\n\ntype PaginationItemElement = HTMLLIElement;\ntype PaginationItemProps = LiHTMLAttributes<HTMLLIElement>;\n\nconst PaginationItem = forwardRef<PaginationItemElement, PaginationItemProps>((props, forwardedRef) => (\n <li ref={forwardedRef} {...props} />\n));\n\nPaginationItem.displayName = 'PaginationItem';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationLink\n * -------------------------------------------------------------------------- */\n\ninterface PaginationLinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement>,\n Pick<ButtonVariantsProps, 'size' | 'icon'> {\n isActive?: boolean;\n}\n\nfunction PaginationLink({\n children,\n className,\n icon = true,\n isActive,\n size,\n ...props\n}: PaginationLinkProps): JSX.Element {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={buttonVariants({\n className,\n icon,\n size,\n variant: isActive ? 'outline' : 'ghost',\n })}\n {...props}\n >\n {children}\n </a>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationPrevious\n * -------------------------------------------------------------------------- */\n\ntype PaginationPreviousProps = PaginationLinkProps;\n\nfunction PaginationPrevious({ ...props }: PaginationPreviousProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to previous page\" icon={false} {...props}>\n <ChevronLeftIcon className=\"size-4\" />\n <span>Previous</span>\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationNext\n * -------------------------------------------------------------------------- */\n\ntype PaginationNextProps = PaginationLinkProps;\n\nfunction PaginationNext({ ...props }: PaginationNextProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to next page\" icon={false} {...props}>\n <span>Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationEllipsis\n * -------------------------------------------------------------------------- */\n\ntype PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): JSX.Element {\n return (\n <span aria-hidden className={cn('flex size-10 items-center justify-center', className)} {...props}>\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n type PaginationContentProps,\n type PaginationEllipsisProps,\n type PaginationItemProps,\n type PaginationLinkProps,\n type PaginationNextProps,\n type PaginationPreviousProps,\n type PaginationProps,\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 _chunkKF7Y7B3Gcjs = require('./chunk-KF7Y7B3G.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var d=_tailwindvariants.tv.call(void 0, {base:["bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg","data-[state=open]:animate-in data-[state=open]:animate-duration-500","data-[state=closed]:animate-out data-[state=closed]:animate-duration-300"],defaultVariants:{side:"right"},variants:{side:{top:["inset-x-0 top-0 max-h-screen border-b","data-[state=open]:slide-in-from-top","data-[state=closed]:slide-out-to-top"],bottom:["inset-x-0 bottom-0 max-h-screen border-t","data-[state=open]:slide-in-from-bottom","data-[state=closed]:slide-out-to-bottom"],left:["inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","data-[state=open]:slide-in-from-left","data-[state=closed]:slide-out-to-left"],right:["inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","data-[state=open]:slide-in-from-right","data-[state=closed]:slide-out-to-right"]}}}),N= exports.a =e.Root,E= exports.b =e.Trigger,P= exports.c =_react.forwardRef.call(void 0, ({children:t,side:o="right",className:s,...n},p)=>_jsxruntime.jsxs.call(void 0, e.Portal,{children:[_jsxruntime.jsx.call(void 0, e.Overlay,{className:_chunkDD6AVCRHcjs.a.call(void 0, "fixed inset-0 z-50 bg-black/80","data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out")}),_jsxruntime.jsxs.call(void 0, e.Content,{ref:p,className:d({side:o,className:s}),...n,children:[t,_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunkKF7Y7B3Gcjs.a.call(void 0, {className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[_jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})]}));P.displayName=e.Content.displayName;function R({className:t,...o}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function D({className:t,...o}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkDD6AVCRHcjs.a.call(void 0, "px-6 py-2",t),...o})}function f({className:t,...o}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}f.displayName="SheetFooter";var y=_react.forwardRef.call(void 0, ({className:t,...o},s)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-foreground text-lg font-semibold",t),...o}));y.displayName=e.Title.displayName;var c=_react.forwardRef.call(void 0, ({className:t,...o},s)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-sm",t),...o}));c.displayName=e.Description.displayName;var u=_react.forwardRef.call(void 0, ({className:t,size:o,variant:s="outline",...n},p)=>_jsxruntime.jsx.call(void 0, e.Close,{ref:p,className:_chunkKF7Y7B3Gcjs.a.call(void 0, {variant:s,size:o,className:t}),...n}));u.displayName=e.Close.displayName;exports.a = N; exports.b = E; exports.c = P; exports.d = R; exports.e = D; exports.f = f; exports.g = y; exports.h = c; exports.i = u;
2
- //# sourceMappingURL=chunk-DIYHARQU.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DIYHARQU.cjs","../src/components/sheet.tsx"],"names":["sheetContentVariants","tv","Sheet","SheetTrigger","SheetContent","forwardRef","children","side","className","props","forwardedRef","jsxs","jsx","cn","buttonVariants","Cross2Icon","SheetHeader","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"],"mappings":"AAAA,mZAAwC,wDAAyC,oGCAjD,mDACL,8BAQpB,qDAC+B,+CAsEhC,IA7DAA,CAAAA,CAAuBC,kCAAAA,CAC3B,IAAA,CAAM,CACJ,oFAAA,CACA,qEAAA,CACA,0EACF,CAAA,CACA,eAAA,CAAiB,CACf,IAAA,CAAM,OACR,CAAA,CACA,QAAA,CAAU,CACR,IAAA,CAAM,CACJ,GAAA,CAAK,CACH,uCAAA,CACA,qCAAA,CACA,sCACF,CAAA,CACA,MAAA,CAAQ,CACN,0CAAA,CACA,wCAAA,CACA,yCACF,CAAA,CACA,IAAA,CAAM,CACJ,oDAAA,CACA,sCAAA,CACA,uCACF,CAAA,CACA,KAAA,CAAO,CACL,qDAAA,CACA,uCAAA,CACA,wCACF,CACF,CACF,CACF,CAAC,CAAA,CASKC,CAAAA,aAAuB,CAAA,CAAA,IAAA,CAOvBC,CAAAA,aAA8B,CAAA,CAAA,OAAA,CAS9BC,CAAAA,aAAeC,+BAAAA,CAClB,CAAE,QAAA,CAAAC,CAAAA,CAAU,IAAA,CAAAC,CAAAA,CAAO,OAAA,CAAS,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClDC,8BAAAA,CAAgB,CAAA,MAAA,CAAf,CACC,QAAA,CAAA,CAAAC,6BAAAA,CAAgB,CAAA,OAAA,CAAf,CACC,SAAA,CAAWC,iCAAAA,gCACT,CACA,0EAAA,CACA,+EACF,CAAA,CACF,CAAA,CACAF,8BAAAA,CAAgB,CAAA,OAAA,CAAf,CAAuB,GAAA,CAA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/codefast/codefast/packages/ui/dist/chunk-DIYHARQU.cjs","sourcesContent":[null,"import * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: [\n 'bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:animate-duration-500',\n 'data-[state=closed]:animate-out data-[state=closed]:animate-duration-300',\n ],\n defaultVariants: {\n side: 'right',\n },\n variants: {\n side: {\n top: [\n 'inset-x-0 top-0 max-h-screen border-b',\n 'data-[state=open]:slide-in-from-top',\n 'data-[state=closed]:slide-out-to-top',\n ],\n bottom: [\n 'inset-x-0 bottom-0 max-h-screen border-t',\n 'data-[state=open]:slide-in-from-bottom',\n 'data-[state=closed]:slide-out-to-bottom',\n ],\n left: [\n 'inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n 'data-[state=open]:slide-in-from-left',\n 'data-[state=closed]:slide-out-to-left',\n ],\n right: [\n 'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n 'data-[state=open]:slide-in-from-right',\n 'data-[state=closed]:slide-out-to-right',\n ],\n },\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = ComponentRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/80',\n 'data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out',\n )}\n />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = ComponentRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = ComponentRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = ComponentRef<typeof SheetPrimitive.Close>;\ninterface SheetCloseProps extends ComponentPropsWithoutRef<typeof SheetPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst SheetClose = forwardRef<SheetCloseElement, SheetCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <SheetPrimitive.Close ref={forwardedRef} className={buttonVariants({ variant, size, className })} {...props} />\n ),\n);\n\nSheetClose.displayName = SheetPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n type SheetBodyProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetDescriptionProps,\n type SheetFooterProps,\n type SheetHeaderProps,\n type SheetProps,\n type SheetTitleProps,\n type SheetTriggerProps,\n};\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 _chunkFINPFQTZcjs = require('./chunk-FINPFQTZ.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactcontext = require('@radix-ui/react-context');var _reacticons = require('@radix-ui/react-icons');var _emblacarouselreact = require('embla-carousel-react'); var _emblacarouselreact2 = _interopRequireDefault(_emblacarouselreact);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var x="Carousel",[_,Z]=_reactcontext.createContextScope.call(void 0, x),[O,v]=_(x),z= exports.b =_react.forwardRef.call(void 0, ({__scopeCarousel:l,children:a,orientation:o,opts:r,setApi:t,plugins:u,className:p,...c},C)=>{let[m,e]=_emblacarouselreact2.default.call(void 0, {...r,axis:o==="vertical"?"y":"x"},u),[R,H]=_react.useState.call(void 0, !1),[I,h]=_react.useState.call(void 0, !1),P=_react.useCallback.call(void 0, n=>{n&&(H(n.canScrollPrev()),h(n.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, n=>{n.key==="ArrowLeft"?(n.preventDefault(),E()):n.key==="ArrowRight"&&(n.preventDefault(),N())},[E,N]);return _react.useEffect.call(void 0, ()=>{!e||!t||t(e)},[e,t]),_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:r,orientation:_nullishCoalesce(o, () => ((_optionalChain([r, '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:_chunkDD6AVCRHcjs.a.call(void 0, "relative",p),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:o,...r},t)=>{let{carouselRef:u,orientation:p}=v(T,l);return _jsxruntime.jsx.call(void 0, "div",{ref:u,className:_chunkDD6AVCRHcjs.a.call(void 0, "overflow-hidden",_optionalChain([o, 'optionalAccess', _7 => _7.wrapper])),children:_jsxruntime.jsx.call(void 0, "div",{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex",p==="horizontal"?"-ml-4":"-mt-4 flex-col",_optionalChain([o, 'optionalAccess', _8 => _8.content]),a),...r})})});k.displayName=T;var L="CarouselItem",K= exports.d =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,...o},r)=>{let{orientation:t}=v(L,l);return _jsxruntime.jsx.call(void 0, "div",{ref:r,"aria-roledescription":"slide",className:_chunkDD6AVCRHcjs.a.call(void 0, "min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",a),role:"group",...o})});K.displayName=L;var A="CarouselPrevious",V= exports.e =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollPrev:C,canScrollPrev:m}=v(A,l);return _jsxruntime.jsx.call(void 0, _chunkFINPFQTZcjs.a,{ref:p,className:_chunkDD6AVCRHcjs.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:!m,icon:o,prefix:_jsxruntime.jsx.call(void 0, _reacticons.ArrowLeftIcon,{}),size:r,variant:t,onClick:C,...u,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:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollNext:C,canScrollNext:m}=v(M,l);return _jsxruntime.jsx.call(void 0, _chunkFINPFQTZcjs.a,{ref:p,className:_chunkDD6AVCRHcjs.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:!m,icon:o,prefix:_jsxruntime.jsx.call(void 0, _reacticons.ArrowRightIcon,{}),size:r,variant:t,onClick:C,...u,children:_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Next slide"})})});X.displayName=M;exports.a = Z; exports.b = z; exports.c = k; exports.d = K; exports.e = V; exports.f = X;
2
- //# sourceMappingURL=chunk-DQBQF25F.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DQBQF25F.cjs","../src/components/carousel.tsx"],"names":["useEmblaCarousel","createCarouselContext","CarouselProvider","useCarouselContext","CAROUSEL_NAME","Carousel","forwardRef","children","orientation","className","carouselRef","api","opts","canScrollPrev","canScrollNext","setCanScrollNext","useState","onSelect","useCallback","carouselApi","setCanScrollPrev","event","useEffect","setApi","jsx","scrollNext","scrollPrev","forwardedRef","classNames","cn","CarouselContent","CAROUSEL_CONTENT_NAME","props","CAROUSEL_ITEM_NAME","variant","Button","ArrowLeftIcon","size","CAROUSEL_PREVIOUS_NAME","ArrowRightIcon","CAROUSEL_NEXT_NAME"],"mappings":"AAAA,6xBAAY,CAAC,wDAAwC,wDCE5C,uDACA,mDACFA,kIACE,8BAyHD,+CAhHc,IAIhB,CAACC,CAAAA,UAuBAC,CAAAA,CAAkBC,CAAkB,CAAA,CAAIF,CAAAA,CAA4CG,8CAAa,CAKlGC,CAAAA,CAAWC,CAAAA,CACf,CACE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,aAAA,+BAAA,CAAA,CAAA,eAAiBC,CAAU,CAAA,CAAA,QAAA,CAAA,CAAAC,CAAAA,WAAmB,CAAA,CAAA,CAAA,IAAQ,CAAA,CAAA,CAAA,MAAS,CAAA,CAAA,CAAA,OAAAC,CAAAA,CAAW,CAAA,SAEzE,CACH,CAAA,CAAA,GAAOC,CAAaC,CAAG,CAAA,CAAIX,CAAAA,EAEvB,CAAA,GAAGY,CACH,CAAA,CAAA,CAAA,CAAA,CAAMJ,0CAAAA,CAAAA,GAAgB,CAAA,CAAA,IAAA,CAAA,CAAA,GAAa,UAKjC,CAACK,GAA+B,CAAA,GAAa,CAAA,CAAK,CAAA,CAClD,CAACC,CAAAA,CAAeC,CAAgB,CAAA,CAAIC,CAAAA,6BAAS,CAAK,CAAA,CAElDC,CAAAA,CAAWC,CAAAA,CAAa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,GAAC,CAAA,CAAA,QAAK,CAAA,6BAAA,MAAU,CAAA,CAAA,SAAU,CAAA,SAAA,CAAA,QAAA,CAAU,YAM/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAcQ,CAAAA,WAAAA,CAAAA,CAAAA,CAAAA,yFAAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DQBQF25F.cjs","sourcesContent":[null,"'use client';\n\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { ArrowLeftIcon, ArrowRightIcon } from '@radix-ui/react-icons';\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';\nimport { forwardRef, type HTMLAttributes, type KeyboardEvent, useCallback, useEffect, useState } from 'react';\n\nimport { Button, type ButtonProps } 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 = {\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} & BaseCarouselProps;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<CarouselContextValue>(CAROUSEL_NAME);\n\ntype CarouselElement = HTMLDivElement;\ntype CarouselProps = HTMLAttributes<HTMLDivElement> & BaseCarouselProps;\n\nconst Carousel = forwardRef<CarouselElement, CarouselProps>(\n (\n { __scopeCarousel, children, orientation, opts, setApi, plugins, className, ...props }: 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 ({ __scopeCarousel, className, classNames, ...props }: ScopedProps<CarouselContentProps>, forwardedRef) => {\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('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\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 { orientation, scrollPrev, canScrollPrev } = useCarouselContext(CAROUSEL_PREVIOUS_NAME, __scopeCarousel);\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 { orientation, scrollNext, canScrollNext } = useCarouselContext(CAROUSEL_NEXT_NAME, __scopeCarousel);\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 {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n createCarouselScope,\n type CarouselApi,\n type CarouselContentProps,\n type CarouselItemProps,\n type CarouselNextProps,\n type CarouselPreviousProps,\n type CarouselProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- import{a as v}from"./chunk-EVRI6TWT.js";import{a as n}from"./chunk-VPYH6JWS.js";import{ChevronDownIcon as u}from"@radix-ui/react-icons";import*as t from"@radix-ui/react-navigation-menu";import{forwardRef as r}from"react";import{jsx as a,jsxs as m}from"react/jsx-runtime";var N=r(({children:i,className:e,...o},p)=>m(t.Root,{ref:p,className:n("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...o,children:[i,a(s,{})]}));N.displayName=t.Root.displayName;var d=r(({children:i,className:e,...o},p)=>m(t.List,{ref:p,className:n("group flex flex-1 list-none items-center justify-center space-x-1",e),...o,children:[i,a(g,{})]}));d.displayName=t.List.displayName;var w=t.Item,f=r(({children:i,className:e,...o},p)=>m(t.Trigger,{ref:p,className:v({variant:"ghost",className:["data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","group",e]}),...o,children:[i,a(u,{"aria-hidden":"true",className:n("relative top-px ml-1 size-3 transition","group-data-[state=open]:rotate-180")})]}));f.displayName=t.Trigger.displayName;var M=r(({className:i,...e},o)=>a(t.Content,{ref:o,className:n("left-0 top-0 w-full md:absolute md:w-auto","data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in","data-[motion=from-end]:slide-in-from-right-52","data-[motion=from-start]:slide-in-from-left-52","data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out","data-[motion=to-end]:slide-out-to-right-52","data-[motion=to-start]:slide-out-to-left-52",i),...e}));M.displayName=t.Content.displayName;var R=t.Link,s=r(({className:i,...e},o)=>a("div",{className:"perspective-[125rem] absolute left-0 top-full flex justify-center",children:a(t.Viewport,{ref:o,className:n("bg-popover text-popover-foreground relative mt-1.5 w-full origin-[top_center] overflow-hidden rounded-md border p-1 shadow-md transition-[width,height]","h-[var(--radix-navigation-menu-viewport-height)] sm:w-[var(--radix-navigation-menu-viewport-width)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-90","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95",i),...e})}));s.displayName=t.Viewport.displayName;var g=r(({className:i,...e},o)=>a(t.Indicator,{ref:o,className:n("data-[state=visible]:animate-fade-in data-[state=hidden]:animate-fade-out top-full z-10 flex h-1.5 items-center justify-center overflow-hidden transition",i),...e,children:a("div",{className:"bg-popover relative top-[60%] size-2 rotate-45 rounded-tl-sm"})}));g.displayName=t.Indicator.displayName;export{N as a,d as b,w as c,f as d,M as e,R as f};
2
- //# sourceMappingURL=chunk-DUDXLCPG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/navigation-menu.tsx"],"names":["ChevronDownIcon","NavigationMenuPrimitive","forwardRef","jsx","jsxs","NavigationMenu","children","className","props","forwardedRef","cn","NavigationMenuViewport","NavigationMenuList","NavigationMenuIndicator","NavigationMenuItem","NavigationMenuTrigger","buttonVariants","NavigationMenuContent","NavigationMenuLink"],"mappings":"gFAAA,OAAS,mBAAAA,MAAuB,wBAChC,UAAYC,MAA6B,kCACzC,OAA2D,cAAAC,MAAkB,QAczE,OAME,OAAAC,EANF,QAAAC,MAAA,oBAFJ,IAAMC,EAAiBH,EACrB,CAAC,CAAE,SAAAI,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClCL,EAAyB,OAAxB,CACC,IAAKK,EACL,UAAWC,EAAG,kEAAmEH,CAAS,EACzF,GAAGC,EAEH,UAAAF,EACDH,EAACQ,EAAA,EAAuB,GAC1B,CAEJ,EAEAN,EAAe,YAAsC,OAAK,YAS1D,IAAMO,EAAqBV,EACzB,CAAC,CAAE,SAAAI,E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AChF,CAEJ,EAEAU,EAAwB,YAAsC,YAAU","sourcesContent":["import { ChevronDownIcon } from '@radix-ui/react-icons';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenu\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuElement = ComponentRef<typeof NavigationMenuPrimitive.Root>;\ntype NavigationMenuProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>;\n\nconst NavigationMenu = forwardRef<NavigationMenuElement, NavigationMenuProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Root\n ref={forwardedRef}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n ),\n);\n\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuList\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuListElement = ComponentRef<typeof NavigationMenuPrimitive.List>;\ntype NavigationMenuListProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>;\n\nconst NavigationMenuList = forwardRef<NavigationMenuListElement, NavigationMenuListProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.List\n ref={forwardedRef}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n >\n {children}\n <NavigationMenuIndicator />\n </NavigationMenuPrimitive.List>\n ),\n);\n\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuItem\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuItemProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item>;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuTriggerElement = ComponentRef<typeof NavigationMenuPrimitive.Trigger>;\ntype NavigationMenuTriggerProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>;\n\nconst NavigationMenuTrigger = forwardRef<NavigationMenuTriggerElement, NavigationMenuTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'ghost',\n className: ['data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', 'group', className],\n })}\n {...props}\n >\n {children}\n <ChevronDownIcon\n aria-hidden=\"true\"\n className={cn('relative top-px ml-1 size-3 transition', 'group-data-[state=open]:rotate-180')}\n />\n </NavigationMenuPrimitive.Trigger>\n ),\n);\n\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuContentElement = ComponentRef<typeof NavigationMenuPrimitive.Content>;\ntype NavigationMenuContentProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>;\n\nconst NavigationMenuContent = forwardRef<NavigationMenuContentElement, NavigationMenuContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'left-0 top-0 w-full md:absolute md:w-auto',\n 'data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in',\n 'data-[motion=from-end]:slide-in-from-right-52',\n 'data-[motion=from-start]:slide-in-from-left-52',\n 'data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out',\n 'data-[motion=to-end]:slide-out-to-right-52',\n 'data-[motion=to-start]:slide-out-to-left-52',\n className,\n )}\n {...props}\n />\n ),\n);\n\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuLink\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuLinkProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link>;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuViewport\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuViewportElement = ComponentRef<typeof NavigationMenuPrimitive.Viewport>;\ntype NavigationMenuViewportProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>;\n\nconst NavigationMenuViewport = forwardRef<NavigationMenuViewportElement, NavigationMenuViewportProps>(\n ({ className, ...props }, forwardedRef) => (\n <div className=\"perspective-[125rem] absolute left-0 top-full flex justify-center\">\n <NavigationMenuPrimitive.Viewport\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground relative mt-1.5 w-full origin-[top_center] overflow-hidden rounded-md border p-1 shadow-md transition-[width,height]',\n 'h-[var(--radix-navigation-menu-viewport-height)] sm:w-[var(--radix-navigation-menu-viewport-width)]',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-90',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\n\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuIndicator\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuIndicatorElement = ComponentRef<typeof NavigationMenuPrimitive.Indicator>;\ntype NavigationMenuIndicatorProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>;\n\nconst NavigationMenuIndicator = forwardRef<NavigationMenuIndicatorElement, NavigationMenuIndicatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Indicator\n ref={forwardedRef}\n className={cn(\n 'data-[state=visible]:animate-fade-in data-[state=hidden]:animate-fade-out top-full z-10 flex h-1.5 items-center justify-center overflow-hidden transition',\n className,\n )}\n {...props}\n >\n <div className=\"bg-popover relative top-[60%] size-2 rotate-45 rounded-tl-sm\" />\n </NavigationMenuPrimitive.Indicator>\n ),\n);\n\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n type NavigationMenuContentProps,\n type NavigationMenuItemProps,\n type NavigationMenuLinkProps,\n type NavigationMenuListProps,\n type NavigationMenuProps,\n type NavigationMenuTriggerProps,\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EEDKRHHZ.cjs","../src/components/select.tsx"],"names":["Select","SelectGroup","SelectValue","SelectTrigger","forwardRef","children","className","size","props","forwardedRef","jsxs","buttonVariants","jsx","CaretSortIcon","SelectScrollUpButton","cn","ChevronUpIcon","SelectScrollDownButton","ChevronDownIcon","SelectContent","position","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"mappings":"AAAA,mZAAwC,wDAAyC,mDCAR,oGACxC,8BACiE,+CAqC9F,IA3BEA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAO9BC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAW9BC,CAAAA,aAAgBC,+BAAAA,CACnB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxCC,8BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CACT,OAAA,CAAS,SAAA,CAC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UpIcon } from '@radix-ui/react-icons';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { type ComponentProps, type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Select\n * -------------------------------------------------------------------------- */\n\ntype SelectProps = ComponentProps<typeof SelectPrimitive.Root>;\nconst Select = SelectPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectGroup\n * -------------------------------------------------------------------------- */\n\ntype SelectGroupProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;\nconst SelectGroup = SelectPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectValue\n * -------------------------------------------------------------------------- */\n\ntype SelectValueProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Value>;\nconst SelectValue = SelectPrimitive.Value;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectTrigger\n * -------------------------------------------------------------------------- */\n\ntype SelectTriggerElement = ComponentRef<typeof SelectPrimitive.Trigger>;\ninterface SelectTriggerProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {\n size?: ButtonVariantsProps['size'];\n}\n\nconst SelectTrigger = forwardRef<SelectTriggerElement, SelectTriggerProps>(\n ({ children, className, size, ...props }, forwardedRef) => (\n <SelectPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'outline',\n size,\n className: ['w-full justify-between px-3 font-normal [&>span]:truncate', className],\n })}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <CaretSortIcon className=\"size-4 shrink-0 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n ),\n);\n\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollUpButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollUpButtonElement = ComponentRef<typeof SelectPrimitive.ScrollUpButton>;\ntype SelectScrollUpButtonProps = ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>;\n\nconst SelectScrollUpButton = forwardRef<SelectScrollUpButtonElement, SelectScrollUpButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollUpButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n ),\n);\n\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollDownButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollDownButtonElement = ComponentRef<typeof SelectPrimitive.ScrollDownButton>;\ntype SelectScrollDownButtonProps = ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>;\n\nconst SelectScrollDownButton = forwardRef<SelectScrollDownButtonElement, SelectScrollDownButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollDownButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n ),\n);\n\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectContent\n * -------------------------------------------------------------------------- */\n\ntype SelectContentElement = ComponentRef<typeof SelectPrimitive.Content>;\ntype SelectContentProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;\n\nconst SelectContent = forwardRef<SelectContentElement, SelectContentProps>(\n ({ children, className, position = 'popper', ...props }, forwardedRef) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n position === 'popper' && [\n 'data-[side=bottom]:translate-y-1',\n 'data-[side=left]:-translate-x-1',\n 'data-[side=right]:translate-x-1',\n 'data-[side=top]:-translate-y-1',\n ],\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n ),\n);\n\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectLabel\n * -------------------------------------------------------------------------- */\n\ntype SelectLabelElement = ComponentRef<typeof SelectPrimitive.Label>;\ntype SelectLabelProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Label>;\n\nconst SelectLabel = forwardRef<SelectLabelElement, SelectLabelProps>(({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Label\n ref={forwardedRef}\n className={cn('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', className)}\n {...props}\n />\n));\n\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectItem\n * -------------------------------------------------------------------------- */\n\ntype SelectItemElement = ComponentRef<typeof SelectPrimitive.Item>;\ntype SelectItemProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Item>;\n\nconst SelectItem = forwardRef<SelectItemElement, SelectItemProps>(({ children, className, ...props }, forwardedRef) => (\n <SelectPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\n\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectSeparator\n * -------------------------------------------------------------------------- */\n\ntype SelectSeparatorElement = ComponentRef<typeof SelectPrimitive.Separator>;\ntype SelectSeparatorProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>;\n\nconst SelectSeparator = forwardRef<SelectSeparatorElement, SelectSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Separator ref={forwardedRef} className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />\n ),\n);\n\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n type SelectContentProps,\n type SelectGroupProps,\n type SelectItemProps,\n type SelectLabelProps,\n type SelectProps,\n type SelectScrollDownButtonProps,\n type SelectScrollUpButtonProps,\n type SelectSeparatorProps,\n type SelectTriggerProps,\n type SelectValueProps,\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 _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactcheckbox = require('@radix-ui/react-checkbox'); var e = _interopRequireWildcard(_reactcheckbox);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var n=_react.forwardRef.call(void 0, ({className:r,...t},c)=>_jsxruntime.jsx.call(void 0, e.Root,{ref:c,className:_chunkDD6AVCRHcjs.a.call(void 0, "peer","border-input text-primary-foreground inline-flex size-4 shrink-0 items-center justify-center rounded border shadow-sm transition","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-default disabled:opacity-50",r),...t,children:_jsxruntime.jsx.call(void 0, e.Indicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));n.displayName=e.Root.displayName;exports.a = n;
2
- //# sourceMappingURL=chunk-GUOQM6BL.cjs.map