@codefast/ui 0.1.39 → 0.1.41
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.
- package/dist/{chunk-S6JAAVCK.js → chunk-23GW7ABR.js} +1 -1
- package/dist/{chunk-S6JAAVCK.js.map → chunk-23GW7ABR.js.map} +1 -1
- package/dist/{chunk-EYYMRAUH.cjs → chunk-2I4HX5WZ.cjs} +1 -1
- package/dist/{chunk-EYYMRAUH.cjs.map → chunk-2I4HX5WZ.cjs.map} +1 -1
- package/dist/{chunk-KNSUZHIX.js → chunk-2L66SLK7.js} +1 -1
- package/dist/{chunk-KNSUZHIX.js.map → chunk-2L66SLK7.js.map} +1 -1
- package/dist/{chunk-JO3GWI7Z.cjs → chunk-2PDUC74G.cjs} +1 -1
- package/dist/{chunk-JO3GWI7Z.cjs.map → chunk-2PDUC74G.cjs.map} +1 -1
- package/dist/{chunk-4LXGDACG.js → chunk-2S5X6KEC.js} +1 -1
- package/dist/{chunk-4LXGDACG.js.map → chunk-2S5X6KEC.js.map} +1 -1
- package/dist/{chunk-G7L7OMQC.cjs → chunk-2TPZK3HF.cjs} +1 -1
- package/dist/{chunk-G7L7OMQC.cjs.map → chunk-2TPZK3HF.cjs.map} +1 -1
- package/dist/{chunk-P3NQKY2O.js → chunk-2UTHZBUW.js} +1 -1
- package/dist/{chunk-P3NQKY2O.js.map → chunk-2UTHZBUW.js.map} +1 -1
- package/dist/{chunk-ESTQ3TW2.js → chunk-2YPMUBQ3.js} +1 -1
- package/dist/{chunk-ESTQ3TW2.js.map → chunk-2YPMUBQ3.js.map} +1 -1
- package/dist/{chunk-4GFRDE44.cjs → chunk-2ZFGMWLN.cjs} +2 -2
- package/dist/{chunk-4GFRDE44.cjs.map → chunk-2ZFGMWLN.cjs.map} +1 -1
- package/dist/{chunk-MKML3QHO.js → chunk-35I5LYFK.js} +2 -2
- package/dist/chunk-35I5LYFK.js.map +1 -0
- package/dist/{chunk-PAG3B6YB.js → chunk-3MX2Z6YO.js} +1 -1
- package/dist/{chunk-PAG3B6YB.js.map → chunk-3MX2Z6YO.js.map} +1 -1
- package/dist/{chunk-TSLTPMZG.js → chunk-453RCTYD.js} +1 -1
- package/dist/{chunk-TSLTPMZG.js.map → chunk-453RCTYD.js.map} +1 -1
- package/dist/{chunk-CABVGOLI.js → chunk-4S2IPOFD.js} +1 -1
- package/dist/{chunk-CABVGOLI.js.map → chunk-4S2IPOFD.js.map} +1 -1
- package/dist/{chunk-2VT6BX7S.cjs → chunk-5PHGQ4WO.cjs} +1 -1
- package/dist/{chunk-2VT6BX7S.cjs.map → chunk-5PHGQ4WO.cjs.map} +1 -1
- package/dist/{chunk-IDUR6OTC.js → chunk-676AFCKE.js} +1 -1
- package/dist/{chunk-IDUR6OTC.js.map → chunk-676AFCKE.js.map} +1 -1
- package/dist/{chunk-MS6HNR34.js → chunk-6I2ETZFI.js} +2 -2
- package/dist/{chunk-MS6HNR34.js.map → chunk-6I2ETZFI.js.map} +1 -1
- package/dist/{chunk-J5GEUQC3.js → chunk-6KQLJXPZ.js} +1 -1
- package/dist/{chunk-J5GEUQC3.js.map → chunk-6KQLJXPZ.js.map} +1 -1
- package/dist/{chunk-6QQPQ7WN.cjs → chunk-724FVHOW.cjs} +1 -1
- package/dist/{chunk-6QQPQ7WN.cjs.map → chunk-724FVHOW.cjs.map} +1 -1
- package/dist/{chunk-7AU7CPUH.js → chunk-7IRDNEXB.js} +1 -1
- package/dist/{chunk-7AU7CPUH.js.map → chunk-7IRDNEXB.js.map} +1 -1
- package/dist/{chunk-ZNOQDIWE.js → chunk-7WGDSUH5.js} +1 -1
- package/dist/{chunk-ZNOQDIWE.js.map → chunk-7WGDSUH5.js.map} +1 -1
- package/dist/{chunk-R4NKNWAF.cjs → chunk-A4KLN3C7.cjs} +1 -1
- package/dist/{chunk-R4NKNWAF.cjs.map → chunk-A4KLN3C7.cjs.map} +1 -1
- package/dist/{chunk-ZW5FER3Z.js → chunk-A6JWDJMI.js} +1 -1
- package/dist/{chunk-ZW5FER3Z.js.map → chunk-A6JWDJMI.js.map} +1 -1
- package/dist/{chunk-PFJKZSJ6.js → chunk-AUV6OPX3.js} +2 -2
- package/dist/{chunk-PFJKZSJ6.js.map → chunk-AUV6OPX3.js.map} +1 -1
- package/dist/{chunk-D77DV2PY.cjs → chunk-B44J2FJY.cjs} +1 -1
- package/dist/{chunk-D77DV2PY.cjs.map → chunk-B44J2FJY.cjs.map} +1 -1
- package/dist/{chunk-B2ANDYCK.cjs → chunk-BEB76MFO.cjs} +2 -2
- package/dist/{chunk-B2ANDYCK.cjs.map → chunk-BEB76MFO.cjs.map} +1 -1
- package/dist/{chunk-EMHBGKJ3.js → chunk-BLLW2IB4.js} +1 -1
- package/dist/{chunk-EMHBGKJ3.js.map → chunk-BLLW2IB4.js.map} +1 -1
- package/dist/{chunk-UFTG26DA.cjs → chunk-BQTDCIBW.cjs} +1 -1
- package/dist/{chunk-UFTG26DA.cjs.map → chunk-BQTDCIBW.cjs.map} +1 -1
- package/dist/{chunk-CVSZ456P.cjs → chunk-BRRVMH2P.cjs} +1 -1
- package/dist/{chunk-CVSZ456P.cjs.map → chunk-BRRVMH2P.cjs.map} +1 -1
- package/dist/{chunk-TAFSGBZZ.cjs → chunk-CEKEAPXG.cjs} +1 -1
- package/dist/{chunk-TAFSGBZZ.cjs.map → chunk-CEKEAPXG.cjs.map} +1 -1
- package/dist/{chunk-5AQT2M4Q.cjs → chunk-E4OOKNPK.cjs} +1 -1
- package/dist/{chunk-5AQT2M4Q.cjs.map → chunk-E4OOKNPK.cjs.map} +1 -1
- package/dist/{chunk-R3WIIIAC.js → chunk-EBSEF4UJ.js} +2 -2
- package/dist/{chunk-R3WIIIAC.js.map → chunk-EBSEF4UJ.js.map} +1 -1
- package/dist/{chunk-IGBASIDT.cjs → chunk-EJKVDVBQ.cjs} +1 -1
- package/dist/{chunk-IGBASIDT.cjs.map → chunk-EJKVDVBQ.cjs.map} +1 -1
- package/dist/{chunk-VPPKOHWH.js → chunk-END3X3XX.js} +1 -1
- package/dist/{chunk-VPPKOHWH.js.map → chunk-END3X3XX.js.map} +1 -1
- package/dist/{chunk-5NHYXWLY.js → chunk-EOIBKG5E.js} +1 -1
- package/dist/{chunk-5NHYXWLY.js.map → chunk-EOIBKG5E.js.map} +1 -1
- package/dist/{chunk-7K56G3OS.cjs → chunk-ESW7HLAR.cjs} +1 -1
- package/dist/{chunk-7K56G3OS.cjs.map → chunk-ESW7HLAR.cjs.map} +1 -1
- package/dist/{chunk-COVOQ3IT.cjs → chunk-EUKWGLGW.cjs} +1 -1
- package/dist/{chunk-COVOQ3IT.cjs.map → chunk-EUKWGLGW.cjs.map} +1 -1
- package/dist/{chunk-PSJENEZT.js → chunk-FAHH4BRG.js} +1 -1
- package/dist/{chunk-PSJENEZT.js.map → chunk-FAHH4BRG.js.map} +1 -1
- package/dist/{chunk-3VRNVFVA.cjs → chunk-FBWVAERI.cjs} +1 -1
- package/dist/{chunk-3VRNVFVA.cjs.map → chunk-FBWVAERI.cjs.map} +1 -1
- package/dist/{chunk-IHEIUFFB.js → chunk-FFS6LEIC.js} +1 -1
- package/dist/{chunk-IHEIUFFB.js.map → chunk-FFS6LEIC.js.map} +1 -1
- package/dist/{chunk-HO75YBHT.js → chunk-FQX54EGQ.js} +1 -1
- package/dist/chunk-FQX54EGQ.js.map +1 -0
- package/dist/{chunk-GLTHRHLI.cjs → chunk-GCH6J4AU.cjs} +1 -1
- package/dist/{chunk-GLTHRHLI.cjs.map → chunk-GCH6J4AU.cjs.map} +1 -1
- package/dist/{chunk-B6QFTT55.js → chunk-GPWWJ55C.js} +1 -1
- package/dist/{chunk-B6QFTT55.js.map → chunk-GPWWJ55C.js.map} +1 -1
- package/dist/{chunk-AQBPC4WT.cjs → chunk-GRVBRVSI.cjs} +1 -1
- package/dist/{chunk-AQBPC4WT.cjs.map → chunk-GRVBRVSI.cjs.map} +1 -1
- package/dist/{chunk-32SQW5RI.cjs → chunk-GTFDLZHV.cjs} +1 -1
- package/dist/{chunk-32SQW5RI.cjs.map → chunk-GTFDLZHV.cjs.map} +1 -1
- package/dist/{chunk-L7HMJMCP.js → chunk-HLDMGTXD.js} +1 -1
- package/dist/{chunk-L7HMJMCP.js.map → chunk-HLDMGTXD.js.map} +1 -1
- package/dist/{chunk-Y7NPEE5D.js → chunk-HUPAMFBT.js} +1 -1
- package/dist/{chunk-Y7NPEE5D.js.map → chunk-HUPAMFBT.js.map} +1 -1
- package/dist/{chunk-YL262UMC.cjs → chunk-ID2YVK5K.cjs} +1 -1
- package/dist/{chunk-YL262UMC.cjs.map → chunk-ID2YVK5K.cjs.map} +1 -1
- package/dist/{chunk-B6SHQPJP.js → chunk-IFNZQ4X4.js} +2 -2
- package/dist/{chunk-B6SHQPJP.js.map → chunk-IFNZQ4X4.js.map} +1 -1
- package/dist/{chunk-3SGIRTMN.js → chunk-IL6HKETS.js} +1 -1
- package/dist/{chunk-3SGIRTMN.js.map → chunk-IL6HKETS.js.map} +1 -1
- package/dist/{chunk-6JVA5L6F.cjs → chunk-IQW2BNVB.cjs} +2 -2
- package/dist/{chunk-6JVA5L6F.cjs.map → chunk-IQW2BNVB.cjs.map} +1 -1
- package/dist/{chunk-5WJRJGUS.js → chunk-JFUWDWLK.js} +2 -2
- package/dist/{chunk-5WJRJGUS.js.map → chunk-JFUWDWLK.js.map} +1 -1
- package/dist/{chunk-RN4E5CZJ.js → chunk-JKFXJEBN.js} +1 -1
- package/dist/{chunk-RN4E5CZJ.js.map → chunk-JKFXJEBN.js.map} +1 -1
- package/dist/{chunk-AIMWT5FF.cjs → chunk-KEAGJ67V.cjs} +1 -1
- package/dist/{chunk-AIMWT5FF.cjs.map → chunk-KEAGJ67V.cjs.map} +1 -1
- package/dist/{chunk-QZSEGJP3.cjs → chunk-KL3VMRZB.cjs} +2 -2
- package/dist/{chunk-QZSEGJP3.cjs.map → chunk-KL3VMRZB.cjs.map} +1 -1
- package/dist/{chunk-DQYZFLAN.js → chunk-KMM56U4E.js} +1 -1
- package/dist/{chunk-DQYZFLAN.js.map → chunk-KMM56U4E.js.map} +1 -1
- package/dist/{chunk-2KJO6CJD.cjs → chunk-KXWXI4E6.cjs} +1 -1
- package/dist/{chunk-2KJO6CJD.cjs.map → chunk-KXWXI4E6.cjs.map} +1 -1
- package/dist/{chunk-JNSAIWYA.js → chunk-L2GO47JL.js} +2 -2
- package/dist/{chunk-JNSAIWYA.js.map → chunk-L2GO47JL.js.map} +1 -1
- package/dist/{chunk-G2ZKUHLX.cjs → chunk-L2UFRTIN.cjs} +1 -1
- package/dist/{chunk-G2ZKUHLX.cjs.map → chunk-L2UFRTIN.cjs.map} +1 -1
- package/dist/{chunk-KU2TWJO6.cjs → chunk-LAABDH76.cjs} +1 -1
- package/dist/chunk-LAABDH76.cjs.map +1 -0
- package/dist/{chunk-4EPZJQXB.cjs → chunk-LCSG5Q6R.cjs} +1 -1
- package/dist/{chunk-4EPZJQXB.cjs.map → chunk-LCSG5Q6R.cjs.map} +1 -1
- package/dist/{chunk-QP6DOJTZ.cjs → chunk-LEPRQUPN.cjs} +1 -1
- package/dist/{chunk-QP6DOJTZ.cjs.map → chunk-LEPRQUPN.cjs.map} +1 -1
- package/dist/{chunk-T3UMGRIG.js → chunk-LK24DDIX.js} +1 -1
- package/dist/{chunk-T3UMGRIG.js.map → chunk-LK24DDIX.js.map} +1 -1
- package/dist/{chunk-H673265S.js → chunk-MHWTM2SE.js} +1 -1
- package/dist/{chunk-H673265S.js.map → chunk-MHWTM2SE.js.map} +1 -1
- package/dist/{chunk-6CRPUDHO.cjs → chunk-MOZFPPDY.cjs} +1 -1
- package/dist/{chunk-6CRPUDHO.cjs.map → chunk-MOZFPPDY.cjs.map} +1 -1
- package/dist/{chunk-Y46KHJVE.cjs → chunk-MSQ7VB7N.cjs} +2 -2
- package/dist/{chunk-Y46KHJVE.cjs.map → chunk-MSQ7VB7N.cjs.map} +1 -1
- package/dist/{chunk-C3JCUMYC.cjs → chunk-NN5SBICK.cjs} +1 -1
- package/dist/{chunk-C3JCUMYC.cjs.map → chunk-NN5SBICK.cjs.map} +1 -1
- package/dist/{chunk-4NUC23C3.cjs → chunk-NWNJEQSH.cjs} +1 -1
- package/dist/{chunk-4NUC23C3.cjs.map → chunk-NWNJEQSH.cjs.map} +1 -1
- package/dist/{chunk-4MEKIJBX.js → chunk-OGNKWQLC.js} +1 -1
- package/dist/{chunk-4MEKIJBX.js.map → chunk-OGNKWQLC.js.map} +1 -1
- package/dist/{chunk-MKZNGJBS.cjs → chunk-OKAUTO55.cjs} +1 -1
- package/dist/{chunk-MKZNGJBS.cjs.map → chunk-OKAUTO55.cjs.map} +1 -1
- package/dist/{chunk-5ZLLY3TV.js → chunk-PABBDAHL.js} +2 -2
- package/dist/{chunk-5ZLLY3TV.js.map → chunk-PABBDAHL.js.map} +1 -1
- package/dist/{chunk-ESGJD3EH.js → chunk-PND7QGPJ.js} +2 -2
- package/dist/{chunk-ESGJD3EH.js.map → chunk-PND7QGPJ.js.map} +1 -1
- package/dist/{chunk-WIMGJQVV.js → chunk-Q44GDNL2.js} +1 -1
- package/dist/{chunk-WIMGJQVV.js.map → chunk-Q44GDNL2.js.map} +1 -1
- package/dist/{chunk-NTCSJCJ2.cjs → chunk-QHNY23IH.cjs} +2 -2
- package/dist/chunk-QHNY23IH.cjs.map +1 -0
- package/dist/{chunk-HW6UEQFN.cjs → chunk-QMG62BV3.cjs} +1 -1
- package/dist/{chunk-HW6UEQFN.cjs.map → chunk-QMG62BV3.cjs.map} +1 -1
- package/dist/{chunk-277MGUJU.cjs → chunk-QSJKKUEW.cjs} +2 -2
- package/dist/{chunk-277MGUJU.cjs.map → chunk-QSJKKUEW.cjs.map} +1 -1
- package/dist/{chunk-6NCX7KIZ.js → chunk-QZZVFEOG.js} +1 -1
- package/dist/{chunk-6NCX7KIZ.js.map → chunk-QZZVFEOG.js.map} +1 -1
- package/dist/{chunk-BCBGSRNY.cjs → chunk-RBNJWH4I.cjs} +2 -2
- package/dist/chunk-RBNJWH4I.cjs.map +1 -0
- package/dist/{chunk-SCKKOG6N.js → chunk-RKGPSBB2.js} +2 -2
- package/dist/chunk-RKGPSBB2.js.map +1 -0
- package/dist/{chunk-DXKDE2PN.cjs → chunk-RLN3ZMKZ.cjs} +1 -1
- package/dist/{chunk-DXKDE2PN.cjs.map → chunk-RLN3ZMKZ.cjs.map} +1 -1
- package/dist/{chunk-P43SRU6B.js → chunk-RN6FVK2T.js} +2 -2
- package/dist/{chunk-P43SRU6B.js.map → chunk-RN6FVK2T.js.map} +1 -1
- package/dist/{chunk-UOKR5A44.js → chunk-S6NZOZO3.js} +1 -1
- package/dist/{chunk-UOKR5A44.js.map → chunk-S6NZOZO3.js.map} +1 -1
- package/dist/{chunk-5LXJ6LNT.js → chunk-SZJCVDQJ.js} +1 -1
- package/dist/{chunk-5LXJ6LNT.js.map → chunk-SZJCVDQJ.js.map} +1 -1
- package/dist/{chunk-3X6EEYS3.cjs → chunk-T5MDFGTH.cjs} +2 -2
- package/dist/{chunk-3X6EEYS3.cjs.map → chunk-T5MDFGTH.cjs.map} +1 -1
- package/dist/{chunk-OILTSDEC.cjs → chunk-TCBTFFUD.cjs} +1 -1
- package/dist/{chunk-OILTSDEC.cjs.map → chunk-TCBTFFUD.cjs.map} +1 -1
- package/dist/{chunk-YP7NF7KY.cjs → chunk-TMG24RQD.cjs} +2 -2
- package/dist/{chunk-YP7NF7KY.cjs.map → chunk-TMG24RQD.cjs.map} +1 -1
- package/dist/{chunk-OIBROWV7.js → chunk-UFNNCJZJ.js} +1 -1
- package/dist/{chunk-OIBROWV7.js.map → chunk-UFNNCJZJ.js.map} +1 -1
- package/dist/{chunk-GP4IX6Q5.cjs → chunk-UNYP4MLA.cjs} +1 -1
- package/dist/{chunk-GP4IX6Q5.cjs.map → chunk-UNYP4MLA.cjs.map} +1 -1
- package/dist/{chunk-Z7V3J23W.cjs → chunk-USDR57FY.cjs} +1 -1
- package/dist/{chunk-Z7V3J23W.cjs.map → chunk-USDR57FY.cjs.map} +1 -1
- package/dist/{chunk-YUJO6FOF.cjs → chunk-VGMUU7IK.cjs} +1 -1
- package/dist/{chunk-YUJO6FOF.cjs.map → chunk-VGMUU7IK.cjs.map} +1 -1
- package/dist/{chunk-JF2IPHMR.js → chunk-VRJTXWVC.js} +1 -1
- package/dist/{chunk-JF2IPHMR.js.map → chunk-VRJTXWVC.js.map} +1 -1
- package/dist/{chunk-QGXJIDRM.cjs → chunk-WMX6LRVM.cjs} +2 -2
- package/dist/chunk-WMX6LRVM.cjs.map +1 -0
- package/dist/{chunk-27FVJY2D.cjs → chunk-WPRQHIAB.cjs} +1 -1
- package/dist/{chunk-27FVJY2D.cjs.map → chunk-WPRQHIAB.cjs.map} +1 -1
- package/dist/{chunk-RZRUQ2YQ.js → chunk-WRNORCGY.js} +1 -1
- package/dist/{chunk-RZRUQ2YQ.js.map → chunk-WRNORCGY.js.map} +1 -1
- package/dist/{chunk-PHNUQKIK.js → chunk-WRV3NPYH.js} +2 -2
- package/dist/{chunk-PHNUQKIK.js.map → chunk-WRV3NPYH.js.map} +1 -1
- package/dist/{chunk-2OTO3VQG.js → chunk-X7SCQSLL.js} +1 -1
- package/dist/{chunk-2OTO3VQG.js.map → chunk-X7SCQSLL.js.map} +1 -1
- package/dist/{chunk-WV3VVLBR.js → chunk-XFVUVJFP.js} +1 -1
- package/dist/{chunk-WV3VVLBR.js.map → chunk-XFVUVJFP.js.map} +1 -1
- package/dist/{chunk-7RUBTABZ.cjs → chunk-XGECD4OY.cjs} +1 -1
- package/dist/{chunk-7RUBTABZ.cjs.map → chunk-XGECD4OY.cjs.map} +1 -1
- package/dist/{chunk-2L2JOHZX.js → chunk-XNHIUPPQ.js} +1 -1
- package/dist/{chunk-2L2JOHZX.js.map → chunk-XNHIUPPQ.js.map} +1 -1
- package/dist/{chunk-RPUH3ITJ.js → chunk-XQIIFT2E.js} +2 -2
- package/dist/{chunk-RPUH3ITJ.js.map → chunk-XQIIFT2E.js.map} +1 -1
- package/dist/{chunk-NBQOSKVV.cjs → chunk-XWLQZWT4.cjs} +1 -1
- package/dist/{chunk-NBQOSKVV.cjs.map → chunk-XWLQZWT4.cjs.map} +1 -1
- package/dist/{chunk-QOOHNPY5.js → chunk-XZPVLQDL.js} +1 -1
- package/dist/{chunk-QOOHNPY5.js.map → chunk-XZPVLQDL.js.map} +1 -1
- package/dist/{chunk-XQQCAIOS.cjs → chunk-YB746ZCF.cjs} +1 -1
- package/dist/{chunk-XQQCAIOS.cjs.map → chunk-YB746ZCF.cjs.map} +1 -1
- package/dist/{chunk-6WG2BQFJ.cjs → chunk-YD6EZS5C.cjs} +1 -1
- package/dist/{chunk-6WG2BQFJ.cjs.map → chunk-YD6EZS5C.cjs.map} +1 -1
- package/dist/{chunk-ER57BTKA.js → chunk-YQW267KZ.js} +1 -1
- package/dist/{chunk-ER57BTKA.js.map → chunk-YQW267KZ.js.map} +1 -1
- package/dist/{chunk-RY34IJ6J.cjs → chunk-YTUXNNEM.cjs} +1 -1
- package/dist/{chunk-RY34IJ6J.cjs.map → chunk-YTUXNNEM.cjs.map} +1 -1
- package/dist/{chunk-HFROIOY3.cjs → chunk-ZJ27IZXN.cjs} +1 -1
- package/dist/{chunk-HFROIOY3.cjs.map → chunk-ZJ27IZXN.cjs.map} +1 -1
- package/dist/{chunk-H6BT6PGA.js → chunk-ZTS4YELG.js} +1 -1
- package/dist/{chunk-H6BT6PGA.js.map → chunk-ZTS4YELG.js.map} +1 -1
- package/dist/{chunk-SFY3PJ4P.cjs → chunk-ZUUL7G4G.cjs} +1 -1
- package/dist/{chunk-SFY3PJ4P.cjs.map → chunk-ZUUL7G4G.cjs.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.cjs +1 -1
- package/dist/components/alert-dialog.d.cts +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/breadcrumb.cjs +1 -1
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +2 -2
- package/dist/components/card.d.ts +2 -2
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.cjs +1 -1
- package/dist/components/carousel.d.cts +1 -1
- package/dist/components/carousel.d.ts +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/chart.cjs +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox-cards.cjs +1 -1
- package/dist/components/checkbox-cards.js +1 -1
- package/dist/components/checkbox-group.cjs +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/collapsible.cjs +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.d.cts +2 -2
- package/dist/components/command.d.ts +2 -2
- package/dist/components/command.js +1 -1
- package/dist/components/container.cjs +1 -1
- package/dist/components/container.js +1 -1
- package/dist/components/context-menu.cjs +1 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.d.cts +1 -1
- package/dist/components/data-table.d.ts +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.d.cts +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.d.cts +1 -1
- package/dist/components/drawer.d.ts +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.cjs +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/form.cjs +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/hover-card.cjs +1 -1
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-otp.cjs +1 -1
- package/dist/components/input-otp.js +1 -1
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/label.cjs +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/menubar.cjs +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.d.cts +1 -1
- package/dist/components/number-input.d.ts +1 -1
- package/dist/components/number-input.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.d.cts +1 -1
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.cjs +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-cards.cjs +1 -1
- package/dist/components/radio-cards.js +1 -1
- package/dist/components/radio-group.cjs +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/radio.cjs +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/resizable.cjs +1 -1
- package/dist/components/resizable.js +1 -1
- package/dist/components/scroll-area.cjs +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.d.cts +1 -1
- package/dist/components/search-input.d.ts +1 -1
- package/dist/components/search-input.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.d.cts +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/skeleton.cjs +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.cjs +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/sonner.cjs +1 -1
- package/dist/components/sonner.js +1 -1
- package/dist/components/spinner.cjs +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.d.cts +1 -1
- package/dist/components/text-input.d.ts +1 -1
- package/dist/components/text-input.js +1 -1
- package/dist/components/textarea.cjs +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/toggle-group.cjs +1 -1
- package/dist/components/toggle-group.d.cts +1 -1
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.cjs +1 -1
- package/dist/components/toggle.d.cts +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-BCBGSRNY.cjs.map +0 -1
- package/dist/chunk-HO75YBHT.js.map +0 -1
- package/dist/chunk-KU2TWJO6.cjs.map +0 -1
- package/dist/chunk-MKML3QHO.js.map +0 -1
- package/dist/chunk-NTCSJCJ2.cjs.map +0 -1
- package/dist/chunk-QGXJIDRM.cjs.map +0 -1
- package/dist/chunk-SCKKOG6N.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/checkbox-cards.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","forwardRef","jsx","jsxs","CheckboxCards","className","props","forwardedRef","cn","CheckboxCardsItem","children","checkboxClassName"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/components/checkbox-cards.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","forwardRef","jsx","jsxs","CheckboxCards","className","props","forwardedRef","cn","CheckboxCardsItem","children","checkboxClassName"],"mappings":"wCACA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,wBAC1B,OAGE,cAAAC,MACK,QAaH,cAAAC,EA2BF,QAAAC,MA3BE,oBAFJ,IAAMC,EAAgBH,EACpB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAwB,OAAvB,CACC,UAAWM,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAEJ,EAEAH,EAAc,YAAqC,OAAK,YAexD,IAAMK,EAAoBR,EAGxB,CAAC,CAAE,SAAAS,EAAU,UAAAL,EAAW,kBAAAM,EAAmB,GAAGL,CAAM,EAAGC,IACvDJ,EAAC,SACC,UAAWK,EACT,qEACAH,CACF,EAEC,UAAAK,EACDR,EAAwB,OAAvB,CACC,IAAKK,EACL,UAAWC,EACT,iFACA,6BACA,2FACA,gFACA,8CACAG,CACF,EACC,GAAGL,EAEJ,SAAAJ,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACF,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CACD,EAEDS,EAAkB,YAAqC,OAAK","sourcesContent":["import { cn } from '@/lib/utils';\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxCards = forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={forwardedRef}\n />\n ),\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = ComponentRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\ninterface CheckboxCardsItemProps\n extends ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = forwardRef<\n CheckboxCardsItemElement,\n CheckboxCardsItemProps\n>(({ children, className, checkboxClassName, ...props }, forwardedRef) => (\n <label\n className={cn(\n 'group flex items-center justify-center gap-4 rounded-md border p-4',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input peer flex size-4 shrink-0 cursor-pointer rounded border shadow-sm',\n 'group-hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n));\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxCards,\n CheckboxCardsItem,\n type CheckboxCardsItemProps,\n type CheckboxCardsProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as n}from"./chunk-2LKWUAEG.js";import{a}from"./chunk-VPYH6JWS.js";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as g}from"@radix-ui/react-icons";import{forwardRef as r}from"react";import{jsx as i,jsxs as p}from"react/jsx-runtime";var x=e.Root,N=e.Trigger,D=r(({children:t,className:o,...l},s)=>i(e.Portal,{children:i(e.Overlay,{className:a("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:p(e.Content,{ref:s,className:a("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,p(e.Close,{className:n({className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[i(g,{className:"size-4"}),i("span",{className:"sr-only",children:"Close"})]})]})})}));D.displayName=e.Content.displayName;function b({className:t,...o}){return i("header",{className:a("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function E({className:t,...o}){return i("main",{className:a("overflow-auto px-6 py-2",t),...o})}function R({className:t,...o}){return i("footer",{className:a("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}var P=r(({className:t,...o},l)=>i(e.Title,{ref:l,className:a("text-lg font-semibold leading-none tracking-tight",t),...o}));P.displayName=e.Title.displayName;var d=r(({className:t,...o},l)=>i(e.Description,{ref:l,className:a("text-muted-foreground text-sm",t),...o}));d.displayName=e.Description.displayName;var f=r(({className:t,size:o,variant:l="outline",...s},m)=>i(e.Close,{ref:m,className:n({className:t,size:o,variant:l}),...s}));f.displayName=e.Close.displayName;export{x as a,N as b,D as c,b as d,E as e,R as f,P as g,d as h,f as i};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-EOIBKG5E.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/dialog.tsx"],"names":["DialogPrimitive","Cross2Icon","forwardRef","jsx","jsxs","Dialog","DialogTrigger","DialogContent","children","className","props","forwardedRef","cn","buttonVariants","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/components/dialog.tsx"],"names":["DialogPrimitive","Cross2Icon","forwardRef","jsx","jsxs","Dialog","DialogTrigger","DialogContent","children","className","props","forwardedRef","cn","buttonVariants","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"2EAKA,UAAYA,MAAqB,yBACjC,OAAS,cAAAC,MAAkB,wBAC3B,OAIE,cAAAC,MAGK,QAgDG,OAQE,OAAAC,EARF,QAAAC,MAAA,oBAzCV,IAAMC,EAAyB,OASzBC,EAAgC,UAWhCC,EAAgBL,EACpB,CAAC,CAAE,SAAAM,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClCR,EAAiB,SAAhB,CACC,SAAAA,EAAiB,UAAhB,CACC,UAAWS,EACT,4FACA,2EACA,+EACF,EAEA,SAAAR,EAAiB,UAAhB,CACC,IAAKO,EACL,UAAWC,EACT,wFACA,6HACA,wIACAH,CACF,EACC,GAAGC,EAEH,UAAAF,EACDJ,EAAiB,QAAhB,CACC,UAAWS,EAAe,CACxB,UAAW,yBACX,KAAM,GACN,KAAM,MACN,QAAS,OACX,CAAC,EAED,UAAAV,EAACF,EAAA,CAAW,UAAU,SAAS,EAC/BE,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,EACF,EACF,CAEJ,EAEAI,EAAc,YAA8B,UAAQ,YAQpD,SAASO,EAAa,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAmC,CAC7E,OACEP,EAAC,UACC,UAAWS,EACT,yEACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASK,EAAW,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAiC,CACzE,OACEP,EAAC,QAAK,UAAWS,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAE1E,CAQA,SAASM,EAAa,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAmC,CAC7E,OACEP,EAAC,UACC,UAAWS,EACT,iFACAH,CACF,EACC,GAAGC,EACN,CAEJ,CASA,IAAMO,EAAcf,EAClB,CAAC,CAAE,UAAAO,EAAW,GAAGC,CAAM,EAAGC,IACxBR,EAAiB,QAAhB,CACC,IAAKQ,EACL,UAAWC,EACT,oDACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAO,EAAY,YAA8B,QAAM,YAahD,IAAMC,EAAoBhB,EAGxB,CAAC,CAAE,UAAAO,EAAW,GAAGC,CAAM,EAAGC,IAC1BR,EAAiB,cAAhB,CACC,IAAKQ,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CACD,EAEDQ,EAAkB,YAA8B,cAAY,YAc5D,IAAMC,EAAcjB,EAClB,CAAC,CAAE,UAAAO,EAAW,KAAAW,EAAM,QAAAC,EAAU,UAAW,GAAGX,CAAM,EAAGC,IACnDR,EAAiB,QAAhB,CACC,IAAKQ,EACL,UAAWE,EAAe,CAAE,UAAAJ,EAAW,KAAAW,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGX,EACN,CAEJ,EAEAS,EAAY,YAA8B,QAAM","sourcesContent":["import { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\nimport * 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\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<\n typeof DialogPrimitive.Trigger\n>;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\ntype DialogContentElement = ComponentRef<typeof DialogPrimitive.Content>;\ntype DialogContentProps = ComponentPropsWithoutRef<\n typeof DialogPrimitive.Content\n>;\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(\n 'flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left',\n className,\n )}\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 (\n <main className={cn('overflow-auto px-6 py-2', className)} {...props} />\n );\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(\n 'flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end',\n className,\n )}\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>(\n ({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Title\n ref={forwardedRef}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\ntype DialogDescriptionElement = ComponentRef<\n typeof DialogPrimitive.Description\n>;\ntype DialogDescriptionProps = ComponentPropsWithoutRef<\n typeof DialogPrimitive.Description\n>;\n\nconst DialogDescription = forwardRef<\n DialogDescriptionElement,\n 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\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\ntype DialogCloseElement = ComponentRef<typeof DialogPrimitive.Close>;\n\ninterface DialogCloseProps\n 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\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\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 +1,2 @@
|
|
|
1
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 _chunkUF5YIM7Lcjs = require('./chunk-UF5YIM7L.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:_chunkUF5YIM7Lcjs.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:_chunkUF5YIM7Lcjs.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-
|
|
2
|
+
//# sourceMappingURL=chunk-ESW7HLAR.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-7K56G3OS.cjs","../src/components/sheet.tsx"],"names":["sheetContentVariants","tv","Sheet","SheetTrigger","SheetContent","forwardRef","children","side","className","props","forwardedRef","jsxs","jsx","cn","buttonVariants","Cross2Icon","SheetHeader","S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AAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,uCAAG,CAAyCL,CAAS,CAAA,CAC/D,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAU,CAAAA,CAAW,WAAA,CAA6B,CAAA,CAAA,KAAA,CAAM,WAAA,CAW9C,IAAMC,CAAAA,CAAmBf,+BAAAA,CAGtB,CAAE,SAAA,CAAAG,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BE,6BAAAA,CAAgB,CAAA,WAAA,CAAf,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,+BAAG,CAAiCL,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDW,CAAAA,CAAiB,WAAA,CAA6B,CAAA,CAAA,WAAA,CAAY,WAAA,CAc1D,IAAMC,CAAAA,CAAahB,+BAAAA,CAChB,CAAE,SAAA,CAAAG,CAAAA,CAAW,IAAA,CAAAc,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGd,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnDE,6BAAAA,CAAgB,CAAA,KAAA,CAAf,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWI,iCAAAA,CAAiB,OAAA,CAAAS,CAAAA,CAAS,IAAA,CAAAD,CAAAA,CAAM,SAAA,CAAAd,CAAU,CAAC,CAAA,CACrD,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAY,CAAAA,CAAW,WAAA,CAA6B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-7K56G3OS.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';\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} 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<\n typeof SheetPrimitive.Trigger\n>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = ComponentRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = ComponentPropsWithoutRef<\n typeof SheetPrimitive.Content\n> &\n 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\n ref={forwardedRef}\n className={sheetContentVariants({ side, className })}\n {...props}\n >\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(\n 'flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left',\n className,\n )}\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(\n 'flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end',\n className,\n )}\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>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n ),\n);\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = ComponentRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = ComponentPropsWithoutRef<\n typeof SheetPrimitive.Description\n>;\n\nconst SheetDescription = forwardRef<\n SheetDescriptionElement,\n 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\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = ComponentRef<typeof SheetPrimitive.Close>;\n\ninterface SheetCloseProps\n 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\n ref={forwardedRef}\n className={buttonVariants({ variant, size, className })}\n {...props}\n />\n ),\n);\n\nSheetClose.displayName = SheetPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetBody,\n type SheetBodyProps,\n SheetClose,\n type SheetCloseProps,\n SheetContent,\n type SheetContentProps,\n SheetDescription,\n type SheetDescriptionProps,\n SheetFooter,\n type SheetFooterProps,\n SheetHeader,\n type SheetHeaderProps,\n type SheetProps,\n SheetTitle,\n type SheetTitleProps,\n SheetTrigger,\n type SheetTriggerProps,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ESW7HLAR.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,oGCKjD,mDACL,8BAQpB,qDAC+B,+CAwEhC,IAlEAA,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,CASvBC,CAAAA,aAA8B,CAAA,CAAA,OAAA,CAY9BC,CAAAA,aAAeC,+BAAAA,CAClB,CAAE,QAAA,CAAAC,CAAAA,CAAU,IAAA,CAAAC,CAAAA,CAAO,OAAA,CAAS,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CA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AA,CAAWI,iCAAAA,CAAiB,OAAA,CAAAS,CAAAA,CAAS,IAAA,CAAAD,CAAAA,CAAM,SAAA,CAAAd,CAAU,CAAC,CAAA,CACrD,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAY,CAAAA,CAAW,WAAA,CAA6B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ESW7HLAR.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\nimport * 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\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<\n typeof SheetPrimitive.Trigger\n>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = ComponentRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = ComponentPropsWithoutRef<\n typeof SheetPrimitive.Content\n> &\n 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\n ref={forwardedRef}\n className={sheetContentVariants({ side, className })}\n {...props}\n >\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(\n 'flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left',\n className,\n )}\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(\n 'flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end',\n className,\n )}\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>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n ),\n);\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = ComponentRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = ComponentPropsWithoutRef<\n typeof SheetPrimitive.Description\n>;\n\nconst SheetDescription = forwardRef<\n SheetDescriptionElement,\n 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\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = ComponentRef<typeof SheetPrimitive.Close>;\n\ninterface SheetCloseProps\n 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\n ref={forwardedRef}\n className={buttonVariants({ variant, size, className })}\n {...props}\n />\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 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _react = require('react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var n=_tailwindvariants.tv.call(void 0, {base:"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7",defaultVariants:{variant:"default"},variants:{variant:{default:"bg-background text-foreground [&>svg]:text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}}}),p= exports.a =_react.forwardRef.call(void 0, ({className:e,variant:t,...r},l)=>_jsxruntime.jsx.call(void 0, "div",{ref:l,className:n({variant:t,className:e}),role:"alert",...r}));p.displayName="Alert";var d=_react.forwardRef.call(void 0, ({children:e,className:t,...r},l)=>_jsxruntime.jsx.call(void 0, "h5",{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "mb-1 font-medium leading-none tracking-tight",t),...r,children:e}));d.displayName="AlertTitle";var m=_react.forwardRef.call(void 0, ({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-sm [&_p]:leading-relaxed",e),...t}));m.displayName="AlertDescription";exports.a = p; exports.b = d; exports.c = m;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-EUKWGLGW.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EUKWGLGW.cjs","../src/components/alert.tsx"],"names":["alertVariants","tv","Alert","forwardRef","className","variant","props","forwardedRef","jsx","AlertTitle","children","cn","AlertDescription"],"mappings":"AAAA,iIAAwC,8BCCQ,qDACV,+CA+BlC,IAzBEA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,0IAAA,CACN,eAAA,CAAiB,CACf,OAAA,CAAS,SACX,CAAA,CACA,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CAAS,uDAAA,CACT,WAAA,CACE,yFACJ,CACF,CACF,CAAC,CAAA,CAWKC,CAAAA,aAAQC,+BAAAA,CACX,CAAE,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjCC,6BAAAA,KAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWP,CAAAA,CAAc,CAAE,OAAA,CAAAK,CAAAA,CAAS,SAAA,CAAAD,CAAU,CAAC,CAAA,CAC/C,IAAA,CAAK,OAAA,CACJ,GAAGE,CAAAA,CACN,CAEJ,CAAA,CAEAJ,CAAAA,CAAM,WAAA,CAAc,OAAA,CASpB,IAAMO,CAAAA,CAAaN,+BAAAA,CAChB,CAAE,QAAA,CAAAO,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,IAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWI,iCAAAA,8CAAG,CAAgDP,CAAS,CAAA,CACtE,GAAGE,CAAAA,CAEH,QAAA,CAAAI,CAAAA,CACH,CAEJ,CAAA,CAEAD,CAAAA,CAAW,WAAA,CAAc,YAAA,CASzB,IAAMG,CAAAA,CAAmBT,+BAAAA,CAGtB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BC,6BAAAA,KAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWI,iCAAAA,+BAAG,CAAiCP,CAAS,CAAA,CACvD,GAAGE,CAAAA,CACN,CACD,CAAA,CAEDM,CAAAA,CAAiB,WAAA,CAAc,kBAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EUKWGLGW.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport { forwardRef, type HTMLAttributes } from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = tv({\n base: '[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',\n defaultVariants: {\n variant: 'default',\n },\n variants: {\n variant: {\n default: 'bg-background text-foreground [&>svg]:text-foreground',\n destructive:\n 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',\n },\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = forwardRef<AlertElement, AlertProps>(\n ({ className, variant, ...props }, forwardedRef) => (\n <div\n ref={forwardedRef}\n className={alertVariants({ variant, className })}\n role=\"alert\"\n {...props}\n />\n ),\n);\n\nAlert.displayName = 'Alert';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = forwardRef<AlertTitleElement, AlertTitleProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <h5\n ref={forwardedRef}\n className={cn('mb-1 font-medium leading-none tracking-tight', className)}\n {...props}\n >\n {children}\n </h5>\n ),\n);\n\nAlertTitle.displayName = 'AlertTitle';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = forwardRef<\n AlertDescriptionElement,\n AlertDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <div\n ref={forwardedRef}\n className={cn('text-sm [&_p]:leading-relaxed', className)}\n {...props}\n />\n));\n\nAlertDescription.displayName = 'AlertDescription';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Alert,\n AlertDescription,\n AlertTitle,\n type AlertDescriptionProps,\n type AlertProps,\n type AlertTitleProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as n}from"./chunk-VPYH6JWS.js";import{CheckIcon as b,ChevronRightIcon as d,DotFilledIcon as M}from"@radix-ui/react-icons";import*as e from"@radix-ui/react-menubar";import{forwardRef as p}from"react";import{jsx as a,jsxs as u}from"react/jsx-runtime";var w=e.Menu,k=e.Group,W=e.Sub,L=e.RadioGroup,l=p(({className:t,...r},o)=>a(e.Root,{ref:o,className:n("bg-background flex h-10 items-center space-x-1 rounded-md border p-1",t),...r}));l.displayName=e.Root.displayName;var c=p(({className:t,...r},o)=>a(e.Trigger,{ref:o,className:n("gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded-sm text-sm font-medium","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...r}));c.displayName=e.Trigger.displayName;var f=p(({children:t,className:r,inset:o,...i},s)=>u(e.SubTrigger,{ref:s,className:n("gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",r),...i,children:[t,a(d,{className:"ml-auto size-4"})]}));f.displayName=e.SubTrigger.displayName;var P=p(({className:t,...r},o)=>a(e.Portal,{children:a(e.SubContent,{ref:o,className:n("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2",t),...r})}));P.displayName=e.SubContent.displayName;var y=p(({className:t,align:r="start",alignOffset:o=-4,sideOffset:i=8,...s},m)=>a(e.Portal,{children:a(e.Content,{ref:m,align:r,alignOffset:o,className:n("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2",t),sideOffset:i,...s})}));y.displayName=e.Content.displayName;var g=p(({className:t,inset:r,...o},i)=>a(e.Item,{ref:i,className:n("gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r&&"pl-8",t),...o}));g.displayName=e.Item.displayName;var v=p(({children:t,className:r,checked:o,...i},s)=>u(e.CheckboxItem,{ref:s,checked:o,className:n("gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r),...i,children:[a("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:a(e.ItemIndicator,{children:a(b,{className:"size-4"})})}),t]}));v.displayName=e.CheckboxItem.displayName;var C=p(({children:t,className:r,...o},i)=>u(e.RadioItem,{ref:i,className:n("gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded-sm text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r),...o,children:[a("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:a(e.ItemIndicator,{children:a(M,{className:"size-4 fill-current"})})}),t]}));C.displayName=e.RadioItem.displayName;var x=p(({className:t,inset:r,...o},i)=>a(e.Label,{ref:i,className:n("gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",r&&"pl-8",t),...o}));x.displayName=e.Label.displayName;var R=p(({className:t,...r},o)=>a(e.Separator,{ref:o,className:n("bg-muted mx-2 my-1 h-px",t),...r}));R.displayName=e.Separator.displayName;function A({className:t,...r}){return a("span",{className:n("text-muted-foreground ml-auto text-xs tracking-widest",t),...r})}var h=p(({className:t,...r},o)=>a(e.Arrow,{ref:o,className:n("fill-popover",t),...r}));h.displayName=e.Arrow.displayName;export{w as a,k as b,W as c,L as d,l as e,c as f,f as g,P as h,y as i,g as j,v as k,C as l,x as m,R as n,A as o,h as p};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-FAHH4BRG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/menubar.tsx"],"names":["CheckIcon","ChevronRightIcon","DotFilledIcon","MenubarPrimitive","forwardRef","jsx","jsxs","MenubarMenu","MenubarGroup","MenubarSub","MenubarRadioGroup","Menubar","className","props","forwardedRef","cn","MenubarTrigger","MenubarSubTrigger","children","inset","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","MenubarCheckboxItem","checked","MenubarRadioItem","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarArrow"],"mappings":"wCAAA,OACE,aAAAA,EACA,oBAAAC,EACA,iBAAAC,MACK,wBACP,UAAYC,MAAsB,0BAClC,OAIE,cAAAC,MAGK,QA4CH,cAAAC,EAyDF,QAAAC,MAzDE,oBApCJ,IAAMC,EAA+B,OAS/BC,EAAgC,QAOhCC,EAA8B,MAS9BC,EAAqC,aASrCC,EAAUP,EACd,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,OAAjB,CACC,IAAKS,EACL,UAAWC,EACT,uEACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAF,EAAQ,YAA+B,OAAK,YAW5C,IAAMK,EAAiBZ,EACrB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,UAAjB,CACC,IAAKS,EACL,UAAWC,E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,wDACAH,CACF,EACC,GAAGC,EACN,CAEJ,CASA,IAAMmB,EAAe5B,EACnB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,QAAjB,CACC,IAAKS,EACL,UAAWC,EAAG,eAAgBH,CAAS,EACtC,GAAGC,EACN,CAEJ,EAEAmB,EAAa,YAA+B,QAAM","sourcesContent":["import {\n CheckIcon,\n ChevronRightIcon,\n DotFilledIcon,\n} 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';\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<\n typeof MenubarPrimitive.Group\n>;\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<\n typeof MenubarPrimitive.RadioGroup\n>;\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\ntype MenubarElement = ComponentRef<typeof MenubarPrimitive.Root>;\ntype MenubarProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>;\n\nconst Menubar = forwardRef<MenubarElement, MenubarProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'bg-background flex h-10 items-center space-x-1 rounded-md border p-1',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarTriggerElement = ComponentRef<typeof MenubarPrimitive.Trigger>;\ntype MenubarTriggerProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Trigger\n>;\n\nconst MenubarTrigger = forwardRef<MenubarTriggerElement, MenubarTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm font-medium',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubTriggerElement = ComponentRef<\n typeof MenubarPrimitive.SubTrigger\n>;\n\ninterface MenubarSubTriggerProps\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst MenubarSubTrigger = forwardRef<\n MenubarSubTriggerElement,\n MenubarSubTriggerProps\n>(({ children, className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </MenubarPrimitive.SubTrigger>\n));\n\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubContentElement = ComponentRef<\n typeof MenubarPrimitive.SubContent\n>;\ntype MenubarSubContentProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.SubContent\n>;\n\nconst MenubarSubContent = forwardRef<\n MenubarSubContentElement,\n 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\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarContentElement = ComponentRef<typeof MenubarPrimitive.Content>;\ntype MenubarContentProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Content\n>;\n\nconst MenubarContent = forwardRef<MenubarContentElement, MenubarContentProps>(\n (\n { className, align = 'start', alignOffset = -4, sideOffset = 8, ...props },\n forwardedRef,\n ) => (\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\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> {\n inset?: boolean;\n}\n\nconst MenubarItem = forwardRef<MenubarItemElement, MenubarItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarCheckboxItemElement = ComponentRef<\n typeof MenubarPrimitive.CheckboxItem\n>;\ntype MenubarCheckboxItemProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.CheckboxItem\n>;\n\nconst MenubarCheckboxItem = forwardRef<\n MenubarCheckboxItemElement,\n 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-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\n\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioItemElement = ComponentRef<typeof MenubarPrimitive.RadioItem>;\ntype MenubarRadioItemProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.RadioItem\n>;\n\nconst MenubarRadioItem = forwardRef<\n MenubarRadioItemElement,\n MenubarRadioItemProps\n>(({ children, className, ...props }, forwardedRef) => (\n <MenubarPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\n\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\ntype MenubarLabelElement = ComponentRef<typeof MenubarPrimitive.Label>;\n\ninterface MenubarLabelProps\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> {\n inset?: boolean;\n}\n\nconst MenubarLabel = forwardRef<MenubarLabelElement, MenubarLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Label\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex items-center text-sm font-semibold',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\ntype MenubarSeparatorElement = ComponentRef<typeof MenubarPrimitive.Separator>;\ntype MenubarSeparatorProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Separator\n>;\n\nconst MenubarSeparator = forwardRef<\n MenubarSeparatorElement,\n MenubarSeparatorProps\n>(({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n));\n\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\ntype MenubarShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction MenubarShortcut({\n className,\n ...props\n}: MenubarShortcutProps): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground ml-auto text-xs tracking-widest',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\ntype MenubarArrowElement = ComponentRef<typeof MenubarPrimitive.Arrow>;\ntype MenubarArrowProps = MenubarPrimitive.MenubarArrowProps;\n\nconst MenubarArrow = forwardRef<MenubarArrowElement, MenubarArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Arrow\n ref={forwardedRef}\n className={cn('fill-popover', className)}\n {...props}\n />\n ),\n);\n\nMenubarArrow.displayName = MenubarPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Menubar,\n MenubarArrow,\n type MenubarArrowProps,\n MenubarCheckboxItem,\n type MenubarCheckboxItemProps,\n MenubarContent,\n type MenubarContentProps,\n MenubarGroup,\n type MenubarGroupProps,\n MenubarItem,\n type MenubarItemProps,\n MenubarLabel,\n type MenubarLabelProps,\n MenubarMenu,\n type MenubarMenuProps,\n type MenubarProps,\n MenubarRadioGroup,\n type MenubarRadioGroupProps,\n MenubarRadioItem,\n type MenubarRadioItemProps,\n MenubarSeparator,\n type MenubarSeparatorProps,\n MenubarShortcut,\n type MenubarShortcutProps,\n MenubarSub,\n MenubarSubContent,\n type MenubarSubContentProps,\n type MenubarSubProps,\n MenubarSubTrigger,\n type MenubarSubTriggerProps,\n MenubarTrigger,\n type MenubarTriggerProps,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/components/menubar.tsx"],"names":["CheckIcon","ChevronRightIcon","DotFilledIcon","MenubarPrimitive","forwardRef","jsx","jsxs","MenubarMenu","MenubarGroup","MenubarSub","MenubarRadioGroup","Menubar","className","props","forwardedRef","cn","MenubarTrigger","MenubarSubTrigger","children","inset","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","MenubarCheckboxItem","checked","MenubarRadioItem","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarArrow"],"mappings":"wCACA,OACE,aAAAA,EACA,oBAAAC,EACA,iBAAAC,MACK,wBACP,UAAYC,MAAsB,0BAClC,OAIE,cAAAC,MAGK,QA2CH,cAAAC,EAyDF,QAAAC,MAzDE,oBApCJ,IAAMC,EAA+B,OAS/BC,EAAgC,QAOhCC,EAA8B,MAS9BC,EAAqC,aASrCC,EAAUP,EACd,CAAC,CAAE,UAAA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,EAGvB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IAC1BT,EAAkB,YAAjB,CACC,IAAKS,EACL,UAAWC,EAAG,0BAA2BH,CAAS,EACjD,GAAGC,EACN,CACD,EAEDiB,EAAiB,YAA+B,YAAU,YAQ1D,SAASC,EAAgB,CACvB,UAAAnB,EACA,GAAGC,CACL,EAAsC,CACpC,OACER,EAAC,QACC,UAAWU,EACT,wDACAH,CACF,EACC,GAAGC,EACN,CAEJ,CASA,IAAMmB,EAAe5B,EACnB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,QAAjB,CACC,IAAKS,EACL,UAAWC,EAAG,eAAgBH,CAAS,EACtC,GAAGC,EACN,CAEJ,EAEAmB,EAAa,YAA+B,QAAM","sourcesContent":["import { cn } from '@/lib/utils';\nimport {\n CheckIcon,\n ChevronRightIcon,\n DotFilledIcon,\n} 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\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<\n typeof MenubarPrimitive.Group\n>;\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<\n typeof MenubarPrimitive.RadioGroup\n>;\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\ntype MenubarElement = ComponentRef<typeof MenubarPrimitive.Root>;\ntype MenubarProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>;\n\nconst Menubar = forwardRef<MenubarElement, MenubarProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'bg-background flex h-10 items-center space-x-1 rounded-md border p-1',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarTriggerElement = ComponentRef<typeof MenubarPrimitive.Trigger>;\ntype MenubarTriggerProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Trigger\n>;\n\nconst MenubarTrigger = forwardRef<MenubarTriggerElement, MenubarTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm font-medium',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubTriggerElement = ComponentRef<\n typeof MenubarPrimitive.SubTrigger\n>;\n\ninterface MenubarSubTriggerProps\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst MenubarSubTrigger = forwardRef<\n MenubarSubTriggerElement,\n MenubarSubTriggerProps\n>(({ children, className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </MenubarPrimitive.SubTrigger>\n));\n\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubContentElement = ComponentRef<\n typeof MenubarPrimitive.SubContent\n>;\ntype MenubarSubContentProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.SubContent\n>;\n\nconst MenubarSubContent = forwardRef<\n MenubarSubContentElement,\n 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\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarContentElement = ComponentRef<typeof MenubarPrimitive.Content>;\ntype MenubarContentProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Content\n>;\n\nconst MenubarContent = forwardRef<MenubarContentElement, MenubarContentProps>(\n (\n { className, align = 'start', alignOffset = -4, sideOffset = 8, ...props },\n forwardedRef,\n ) => (\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\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> {\n inset?: boolean;\n}\n\nconst MenubarItem = forwardRef<MenubarItemElement, MenubarItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarCheckboxItemElement = ComponentRef<\n typeof MenubarPrimitive.CheckboxItem\n>;\ntype MenubarCheckboxItemProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.CheckboxItem\n>;\n\nconst MenubarCheckboxItem = forwardRef<\n MenubarCheckboxItemElement,\n 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-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\n\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioItemElement = ComponentRef<typeof MenubarPrimitive.RadioItem>;\ntype MenubarRadioItemProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.RadioItem\n>;\n\nconst MenubarRadioItem = forwardRef<\n MenubarRadioItemElement,\n MenubarRadioItemProps\n>(({ children, className, ...props }, forwardedRef) => (\n <MenubarPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\n\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\ntype MenubarLabelElement = ComponentRef<typeof MenubarPrimitive.Label>;\n\ninterface MenubarLabelProps\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> {\n inset?: boolean;\n}\n\nconst MenubarLabel = forwardRef<MenubarLabelElement, MenubarLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Label\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex items-center text-sm font-semibold',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\ntype MenubarSeparatorElement = ComponentRef<typeof MenubarPrimitive.Separator>;\ntype MenubarSeparatorProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Separator\n>;\n\nconst MenubarSeparator = forwardRef<\n MenubarSeparatorElement,\n MenubarSeparatorProps\n>(({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n));\n\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\ntype MenubarShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction MenubarShortcut({\n className,\n ...props\n}: MenubarShortcutProps): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground ml-auto text-xs tracking-widest',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\ntype MenubarArrowElement = ComponentRef<typeof MenubarPrimitive.Arrow>;\ntype MenubarArrowProps = MenubarPrimitive.MenubarArrowProps;\n\nconst MenubarArrow = forwardRef<MenubarArrowElement, MenubarArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Arrow\n ref={forwardedRef}\n className={cn('fill-popover', className)}\n {...props}\n />\n ),\n);\n\nMenubarArrow.displayName = MenubarPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\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 +1,2 @@
|
|
|
1
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; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactslider = require('@radix-ui/react-slider'); var e = _interopRequireWildcard(_reactslider);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var a=_react.forwardRef.call(void 0, ({className:o,...i},l)=>_jsxruntime.jsxs.call(void 0, e.Root,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "relative flex w-full touch-none select-none items-center",o),...i,children:[_jsxruntime.jsx.call(void 0, e.Track,{className:"bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full",children:_jsxruntime.jsx.call(void 0, e.Range,{className:"bg-primary absolute h-full"})}),(_nullishCoalesce(_nullishCoalesce(i.value, () => (i.defaultValue)), () => ([]))).map((s,d)=>_jsxruntime.jsx.call(void 0, e.Thumb,{className:_chunkDD6AVCRHcjs.a.call(void 0, "border-primary/50 bg-background block size-4 rounded-full border shadow transition","focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1","disabled:pointer-events-none disabled:opacity-50"),...i.tabIndex!==void 0?{tabIndex:i.tabIndex}:void 0},d))]}));a.displayName=e.Root.displayName;exports.a = a;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-FBWVAERI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-FBWVAERI.cjs","../src/components/slider.tsx"],"names":["Slider","forwardRef","className","props","forwardedRef","jsxs","cn","jsx","_","index"],"mappings":"AAAA,ufAAwC,oGCCP,8BAK1B,+CAWH,IAFEA,CAAAA,CAASC,+BAAAA,CACZ,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,8BAAAA,CAAiB,CAAA,IAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,0DACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAA,CAAAI,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CAAsB,SAAA,CAAU,uEAAA,CAC/B,QAAA,CAAAA,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CAAsB,SAAA,CAAU,4BAAA,CAA6B,CAAA,CAChE,CAAA,CAAA,mCAEEJ,CAAAA,CAAM,KAAA,SAASA,CAAAA,CAAM,cAAA,SAAgB,CAAC,GAAA,CAAA,CAAG,GAAA,CAAI,CAACK,CAAAA,CAAGC,CAAAA,CAAAA,EACjDF,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CAGC,SAAA,CAAWD,iCAAAA,oFACT,CACA,+EAAA,CACA,kDACF,CAAA,CACC,GAAIH,CAAAA,CAAM,QAAA,GAAa,KAAA,CAAA,CACpB,CAAE,QAAA,CAAUA,CAAAA,CAAM,QAAS,CAAA,CAC3B,KAAA,CAAA,CAAA,CARCM,CASP,CACD,CAAA,CAAA,CACH,CAEJ,CAAA,CAEAT,CAAAA,CAAO,WAAA,CAA8B,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-FBWVAERI.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\ntype SliderElement = ComponentRef<typeof SliderPrimitive.Root>;\ntype SliderProps = ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;\n\nconst Slider = forwardRef<SliderElement, SliderProps>(\n ({ className, ...props }, forwardedRef) => (\n <SliderPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'relative flex w-full touch-none select-none items-center',\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track className=\"bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full\">\n <SliderPrimitive.Range className=\"bg-primary absolute h-full\" />\n </SliderPrimitive.Track>\n\n {(props.value ?? props.defaultValue ?? []).map((_, index) => (\n <SliderPrimitive.Thumb\n // eslint-disable-next-line react/no-array-index-key -- index is stable\n key={index}\n className={cn(\n 'border-primary/50 bg-background block size-4 rounded-full border shadow transition',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:pointer-events-none disabled:opacity-50',\n )}\n {...(props.tabIndex !== undefined\n ? { tabIndex: props.tabIndex }\n : undefined)}\n />\n ))}\n </SliderPrimitive.Root>\n ),\n);\n\nSlider.displayName = SliderPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider, type SliderProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as s}from"./chunk-2LKWUAEG.js";import{a as r}from"./chunk-VPYH6JWS.js";import*as t from"@radix-ui/react-alert-dialog";import{forwardRef as a}from"react";import{jsx as o}from"react/jsx-runtime";var u=t.Root,C=t.Trigger,m=a(({className:e,...i},l)=>o(t.Portal,{children:o(t.Overlay,{className:r("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:o(t.Content,{ref:l,className:r("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",e),...i})})}));m.displayName=t.Content.displayName;function T({className:e,...i}){return o("div",{className:r("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",e),...i})}function x({className:e,...i}){return o("main",{className:r("overflow-auto px-6 py-2",e),...i})}function N({className:e,...i}){return o("div",{className:r("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",e),...i})}var g=a(({className:e,...i},l)=>o(t.Title,{ref:l,className:r("text-lg font-semibold leading-none tracking-tight",e),...i}));g.displayName=t.Title.displayName;var A=a(({className:e,...i},l)=>o(t.Description,{ref:l,className:r("text-muted-foreground text-sm",e),...i}));A.displayName=t.Description.displayName;var D=a(({className:e,size:i,variant:l,...n},p)=>o(t.Action,{ref:p,className:s({className:e,size:i,variant:l}),...n}));D.displayName=t.Action.displayName;var P=a(({className:e,size:i,variant:l="outline",...n},p)=>o(t.Cancel,{ref:p,className:s({className:e,size:i,variant:l}),...n}));P.displayName=t.Cancel.displayName;export{u as a,C as b,m as c,T as d,x as e,N as f,g,A as h,D as i,P as j};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-FFS6LEIC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/alert-dialog.tsx"],"names":["AlertDialogPrimitive","forwardRef","jsx","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"gFAAA,UAAYA,MAA0B,+BACtC,OAIE,cAAAC,MAGK,QA8CD,cAAAC,MAAA,oBAlCN,IAAMC,EAAmC,OASnCC,EAA0C,UAa1CC,EAAqBJ,EAGzB,CAAC,CAAE,UAAAK,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CACC,UAAWO,EACT,4FACA,2EACA,+EACF,EAEA,SAAAP,EAAsB,UAArB,CACC,IAAKM,EACL,UAAWC,EACT,wFACA,6HACA,wIACAH,CACF,EACC,GAAGC,EACN,EACF,EACF,CACD,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AAZ,EAAW,KAAAU,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGV,EACN,CACD,EAEDY,EAAkB,YAAmC,SAAO","sourcesContent":["import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Trigger\n>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = ComponentRef<\n typeof AlertDialogPrimitive.Content\n>;\ntype AlertDialogContentProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n>;\n\nconst AlertDialogContent = forwardRef<\n AlertDialogContentElement,\n AlertDialogContentProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.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 <AlertDialogPrimitive.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 </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n));\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: AlertDialogHeaderProps): JSX.Element {\n return (\n <div\n className={cn(\n 'flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({\n className,\n ...props\n}: AlertDialogBodyProps): JSX.Element {\n return (\n <main className={cn('overflow-auto px-6 py-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: AlertDialogFooterProps): JSX.Element {\n return (\n <div\n className={cn(\n 'flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = ComponentRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Title\n>;\n\nconst AlertDialogTitle = forwardRef<\n AlertDialogTitleElement,\n AlertDialogTitleProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n));\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = ComponentRef<\n typeof AlertDialogPrimitive.Description\n>;\ntype AlertDialogDescriptionProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Description\n>;\n\nconst AlertDialogDescription = forwardRef<\n AlertDialogDescriptionElement,\n AlertDialogDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = ComponentRef<\n typeof AlertDialogPrimitive.Action\n>;\n\ninterface AlertDialogActionProps\n extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = forwardRef<\n AlertDialogActionElement,\n AlertDialogActionProps\n>(({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n));\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = ComponentRef<\n typeof AlertDialogPrimitive.Cancel\n>;\n\ninterface AlertDialogCancelProps\n extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = forwardRef<\n AlertDialogCancelElement,\n AlertDialogCancelProps\n>(({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n));\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogAction,\n type AlertDialogActionProps,\n AlertDialogBody,\n type AlertDialogBodyProps,\n AlertDialogCancel,\n type AlertDialogCancelProps,\n AlertDialogContent,\n type AlertDialogContentProps,\n AlertDialogDescription,\n type AlertDialogDescriptionProps,\n AlertDialogFooter,\n type AlertDialogFooterProps,\n AlertDialogHeader,\n type AlertDialogHeaderProps,\n type AlertDialogProps,\n AlertDialogTitle,\n type AlertDialogTitleProps,\n AlertDialogTrigger,\n type AlertDialogTriggerProps,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/components/alert-dialog.tsx"],"names":["AlertDialogPrimitive","forwardRef","jsx","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"gFAKA,UAAYA,MAA0B,+BACtC,OAIE,cAAAC,MAGK,QAyCD,cAAAC,MAAA,oBAlCN,IAAMC,EAAmC,OASnCC,EAA0C,UAa1CC,EAAqBJ,EAGzB,CAAC,CAAE,UAAAK,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CACC,UAAWO,EACT,4FACA,2EACA,+EACF,EAEA,SAAAP,EAAsB,UAArB,CACC,IAAKM,EACL,UAAWC,EACT,wFACA,6HACA,wIACAH,CACF,EACC,GAAGC,EACN,EACF,EACF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AE,UAAAZ,EAAW,KAAAU,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGV,EACN,CACD,EAEDY,EAAkB,YAAmC,SAAO","sourcesContent":["import { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Trigger\n>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = ComponentRef<\n typeof AlertDialogPrimitive.Content\n>;\ntype AlertDialogContentProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n>;\n\nconst AlertDialogContent = forwardRef<\n AlertDialogContentElement,\n AlertDialogContentProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.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 <AlertDialogPrimitive.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 </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n));\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: AlertDialogHeaderProps): JSX.Element {\n return (\n <div\n className={cn(\n 'flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({\n className,\n ...props\n}: AlertDialogBodyProps): JSX.Element {\n return (\n <main className={cn('overflow-auto px-6 py-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: AlertDialogFooterProps): JSX.Element {\n return (\n <div\n className={cn(\n 'flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = ComponentRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Title\n>;\n\nconst AlertDialogTitle = forwardRef<\n AlertDialogTitleElement,\n AlertDialogTitleProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n));\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = ComponentRef<\n typeof AlertDialogPrimitive.Description\n>;\ntype AlertDialogDescriptionProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Description\n>;\n\nconst AlertDialogDescription = forwardRef<\n AlertDialogDescriptionElement,\n AlertDialogDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = ComponentRef<\n typeof AlertDialogPrimitive.Action\n>;\n\ninterface AlertDialogActionProps\n extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = forwardRef<\n AlertDialogActionElement,\n AlertDialogActionProps\n>(({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n));\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = ComponentRef<\n typeof AlertDialogPrimitive.Cancel\n>;\n\ninterface AlertDialogCancelProps\n extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = forwardRef<\n AlertDialogCancelElement,\n AlertDialogCancelProps\n>(({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n));\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogBody,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n type AlertDialogActionProps,\n type AlertDialogBodyProps,\n type AlertDialogCancelProps,\n type AlertDialogContentProps,\n type AlertDialogDescriptionProps,\n type AlertDialogFooterProps,\n type AlertDialogHeaderProps,\n type AlertDialogProps,\n type AlertDialogTitleProps,\n type AlertDialogTriggerProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";import{a as s}from"./chunk-2LKWUAEG.js";import{a}from"./chunk-VPYH6JWS.js";import{forwardRef as n}from"react";import{Drawer as t}from"vaul";import{jsx as o,jsxs as m}from"react/jsx-runtime";function g({shouldScaleBackground:e=!0,...r}){return o(t.Root,{shouldScaleBackground:e,...r})}var T=t.Trigger,D=n(({children:e,className:r,...i},p)=>m(t.Portal,{children:[o(t.Overlay,{className:"fixed inset-0 z-50 bg-black/80"}),m(t.Content,{ref:p,className:a("bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border",r),...i,children:[o("div",{className:"bg-muted mx-auto mt-4 h-2 w-24 rounded-full"}),e]})]}));D.displayName="DrawerContent";function x({className:e,...r}){return o("div",{className:a("grid gap-1.5 p-4 text-center sm:text-left",e),...r})}function N({className:e,...r}){return o("main",{className:a("overflow-auto px-4 py-2",e),...r})}function E({className:e,...r}){return o("div",{className:a("mt-auto flex flex-col-reverse gap-2 p-4",e),...r})}var w=n(({className:e,...r},i)=>o(t.Title,{ref:i,className:a("text-lg font-semibold leading-none tracking-tight",e),...r}));w.displayName=t.Title.displayName;var P=n(({className:e,...r},i)=>o(t.Description,{ref:i,className:a("text-muted-foreground text-sm",e),...r}));P.displayName=t.Description.displayName;var y=n(({className:e,size:r,variant:i="outline",...p},l)=>o(t.Close,{ref:l,className:s({className:e,size:r,variant:i}),...p}));y.displayName=t.Close.displayName;export{g as a,T as b,D as c,x as d,N as e,E as f,w as g,P as h,y as i};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-FQX54EGQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/drawer.tsx"],"names":["forwardRef","DrawerPrimitive","jsx","jsxs","Drawer","shouldScaleBackground","props","DrawerTrigger","DrawerContent","children","className","forwardedRef","cn","DrawerHeader","DrawerBody","DrawerFooter","DrawerTitle","DrawerDescription","DrawerClose","size","variant","buttonVariants"],"mappings":"2EAOA,OAIE,cAAAA,MAGK,QACP,OAAS,UAAUC,MAAuB,OAatC,cAAAC,EA6BE,QAAAC,MA7BF,oBALJ,SAASC,EAAO,CACd,sBAAAC,EAAwB,GACxB,GAAGC,CACL,EAA6B,CAC3B,OACEJ,EAACD,EAAgB,KAAhB,CACC,sBAAuBI,EACtB,GAAGC,EACN,CAEJ,CASA,IAAMC,EAAgBN,EAAgB,QAWhCO,EAAgBR,EACpB,CAAC,CAAE,SAAAS,EAAU,UAAAC,EAAW,GAAGJ,CAAM,EAAGK,IAClCR,EAACF,EAAgB,OAAhB,CACC,UAAAC,EAACD,EAAgB,QAAhB,CAAwB,UAAU,iCAAiC,EACpEE,EAACF,EAAgB,QAAhB,CACC,IAAKU,EACL,UAAWC,EACT,6FACAF,CACF,EACC,GAAGJ,EAEJ,UAAAJ,EAAC,OAAI,UAAU,8CAA8C,EAC5DO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/styles/button-variants';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\n/* -----------------------------------------------------------------------------\n * Component: Drawer\n * -------------------------------------------------------------------------- */\n\ntype DrawerProps = ComponentProps<typeof DrawerPrimitive.Root>;\n\nfunction Drawer({\n shouldScaleBackground = true,\n ...props\n}: DrawerProps): JSX.Element {\n return (\n <DrawerPrimitive.Root\n shouldScaleBackground={shouldScaleBackground}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTrigger\n * -------------------------------------------------------------------------- */\n\ntype DrawerTriggerProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Trigger\n>;\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerContent\n * -------------------------------------------------------------------------- */\n\ntype DrawerContentElement = ComponentRef<typeof DrawerPrimitive.Content>;\ntype DrawerContentProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Content\n>;\n\nconst DrawerContent = forwardRef<DrawerContentElement, DrawerContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Portal>\n <DrawerPrimitive.Overlay className=\"fixed inset-0 z-50 bg-black/80\" />\n <DrawerPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-24 rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPrimitive.Portal>\n ),\n);\n\nDrawerContent.displayName = 'DrawerContent';\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerHeader\n * -------------------------------------------------------------------------- */\n\ntype DrawerHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerHeader({ className, ...props }: DrawerHeaderProps): JSX.Element {\n return (\n <div\n className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerBody\n * -------------------------------------------------------------------------- */\n\ntype DrawerBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerBody({ className, ...props }: DrawerBodyProps): JSX.Element {\n return (\n <main className={cn('overflow-auto px-4 py-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerFooter\n * -------------------------------------------------------------------------- */\n\ntype DrawerFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerFooter({ className, ...props }: DrawerFooterProps): JSX.Element {\n return (\n <div\n className={cn('mt-auto flex flex-col-reverse gap-2 p-4', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTitle\n * -------------------------------------------------------------------------- */\n\ntype DrawerTitleElement = ComponentRef<typeof DrawerPrimitive.Title>;\ntype DrawerTitleProps = ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>;\n\nconst DrawerTitle = forwardRef<DrawerTitleElement, DrawerTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Title\n ref={forwardedRef}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerDescription\n * -------------------------------------------------------------------------- */\n\ntype DrawerDescriptionElement = ComponentRef<\n typeof DrawerPrimitive.Description\n>;\ntype DrawerDescriptionProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Description\n>;\n\nconst DrawerDescription = forwardRef<\n DrawerDescriptionElement,\n DrawerDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerClose\n * -------------------------------------------------------------------------- */\n\ntype DrawerCloseElement = ComponentRef<typeof DrawerPrimitive.Close>;\n\ninterface DrawerCloseProps\n extends ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst DrawerClose = forwardRef<DrawerCloseElement, DrawerCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <DrawerPrimitive.Close\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nDrawerClose.displayName = DrawerPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n type DrawerBodyProps,\n type DrawerCloseProps,\n type DrawerContentProps,\n type DrawerDescriptionProps,\n type DrawerFooterProps,\n type DrawerHeaderProps,\n type DrawerProps,\n type DrawerTitleProps,\n type DrawerTriggerProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
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 _chunkUF5YIM7Lcjs = require('./chunk-UF5YIM7L.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _reactnavigationmenu = require('@radix-ui/react-navigation-menu'); var t = _interopRequireWildcard(_reactnavigationmenu);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N=_react.forwardRef.call(void 0, ({children:i,className:e,...o},p)=>_jsxruntime.jsxs.call(void 0, t.Root,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "relative z-10 flex max-w-max flex-1 items-center justify-center",e),...o,children:[i,_jsxruntime.jsx.call(void 0, s,{})]}));N.displayName=t.Root.displayName;var d=_react.forwardRef.call(void 0, ({children:i,className:e,...o},p)=>_jsxruntime.jsxs.call(void 0, t.List,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "group flex flex-1 list-none items-center justify-center space-x-1",e),...o,children:[i,_jsxruntime.jsx.call(void 0, g,{})]}));d.displayName=t.List.displayName;var h=t.Item,f= exports.d =_react.forwardRef.call(void 0, ({children:i,className:e,...o},p)=>_jsxruntime.jsxs.call(void 0, t.Trigger,{ref:p,className:_chunkUF5YIM7Lcjs.a.call(void 0, {variant:"ghost",className:["data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","group",e]}),...o,children:[i,_jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{"aria-hidden":"true",className:_chunkDD6AVCRHcjs.a.call(void 0, "relative top-px ml-1 size-3 transition","group-data-[state=open]:rotate-180")})]}));f.displayName=t.Trigger.displayName;var M=_react.forwardRef.call(void 0, ({className:i,...e},o)=>_jsxruntime.jsx.call(void 0, t.Content,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "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 w=t.Link,s=_react.forwardRef.call(void 0, ({className:i,...e},o)=>_jsxruntime.jsx.call(void 0, "div",{className:"perspective-[125rem] absolute left-0 top-full flex justify-center",children:_jsxruntime.jsx.call(void 0, t.Viewport,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "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=_react.forwardRef.call(void 0, ({className:i,...e},o)=>_jsxruntime.jsx.call(void 0, t.Indicator,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "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:_jsxruntime.jsx.call(void 0, "div",{className:"bg-popover relative top-[60%] size-2 rotate-45 rounded-tl-sm"})}));g.displayName=t.Indicator.displayName;exports.a = N; exports.b = d; exports.c = h; exports.d = f; exports.e = M; exports.f = w;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-GCH6J4AU.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GLTHRHLI.cjs","../src/components/navigation-menu.tsx"],"names":["NavigationMenu","forwardRef","children","className","props","forwardedRef","jsxs","cn","jsx","NavigationMenuViewport","NavigationMenuList","NavigationMenuIndicator","NavigationMenuItem","NavigationMenuTrigger","buttonVariants","ChevronDownIcon","NavigationMenuContent","NavigationMenuLink"],"mappings":"AAAA,mZAAwC,wDAAyC,mDCAjD,6HACS,8BAKlC,+CAeH,IAFEA,CAAAA,CAAiBC,+BAAAA,CACpB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,8BAAAA,CAAyB,CAAA,IAAA,CAAxB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,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,CAAAI,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,8DAAA,CAA+D,CAAA,CAChF,CACD,CAAA,CAEDG,CAAAA,CAAwB,WAAA,CACE,CAAA,CAAA,SAAA,CAAU,WAAA,CAAA,yFAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GLTHRHLI.cjs","sourcesContent":[null,"import { ChevronDownIcon } from '@radix-ui/react-icons';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\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<\n typeof NavigationMenuPrimitive.Root\n>;\n\nconst NavigationMenu = forwardRef<NavigationMenuElement, NavigationMenuProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'relative z-10 flex max-w-max flex-1 items-center justify-center',\n className,\n )}\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<\n typeof NavigationMenuPrimitive.List\n>;\ntype NavigationMenuListProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.List\n>;\n\nconst NavigationMenuList = forwardRef<\n NavigationMenuListElement,\n NavigationMenuListProps\n>(({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.List\n ref={forwardedRef}\n className={cn(\n 'group flex flex-1 list-none items-center justify-center space-x-1',\n className,\n )}\n {...props}\n >\n {children}\n <NavigationMenuIndicator />\n </NavigationMenuPrimitive.List>\n));\n\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuItem\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuItemProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Item\n>;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuTriggerElement = ComponentRef<\n typeof NavigationMenuPrimitive.Trigger\n>;\ntype NavigationMenuTriggerProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Trigger\n>;\n\nconst NavigationMenuTrigger = forwardRef<\n NavigationMenuTriggerElement,\n NavigationMenuTriggerProps\n>(({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'ghost',\n className: [\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n 'group',\n className,\n ],\n })}\n {...props}\n >\n {children}\n <ChevronDownIcon\n aria-hidden=\"true\"\n className={cn(\n 'relative top-px ml-1 size-3 transition',\n 'group-data-[state=open]:rotate-180',\n )}\n />\n </NavigationMenuPrimitive.Trigger>\n));\n\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuContentElement = ComponentRef<\n typeof NavigationMenuPrimitive.Content\n>;\ntype NavigationMenuContentProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Content\n>;\n\nconst NavigationMenuContent = forwardRef<\n NavigationMenuContentElement,\n 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\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuLink\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuLinkProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Link\n>;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuViewport\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuViewportElement = ComponentRef<\n typeof NavigationMenuPrimitive.Viewport\n>;\ntype NavigationMenuViewportProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Viewport\n>;\n\nconst NavigationMenuViewport = forwardRef<\n NavigationMenuViewportElement,\n 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\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuIndicator\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuIndicatorElement = ComponentRef<\n typeof NavigationMenuPrimitive.Indicator\n>;\ntype NavigationMenuIndicatorProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Indicator\n>;\n\nconst NavigationMenuIndicator = forwardRef<\n NavigationMenuIndicatorElement,\n 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\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n type NavigationMenuContentProps,\n NavigationMenuItem,\n type NavigationMenuItemProps,\n NavigationMenuLink,\n type NavigationMenuLinkProps,\n NavigationMenuList,\n type NavigationMenuListProps,\n type NavigationMenuProps,\n NavigationMenuTrigger,\n type NavigationMenuTriggerProps,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GCH6J4AU.cjs","../src/components/navigation-menu.tsx"],"names":["NavigationMenu","forwardRef","children","className","props","forwardedRef","jsxs","cn","jsx","NavigationMenuViewport","NavigationMenuList","NavigationMenuIndicator","NavigationMenuItem","NavigationMenuTrigger","buttonVariants","ChevronDownIcon","NavigationMenuContent","NavigationMenuLink"],"mappings":"AAAA,mZAAwC,wDAAyC,mDCEjD,6HACS,8BAKlC,+CAaH,IAFEA,CAAAA,CAAiBC,+BAAAA,CACpB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC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,CAAWE,iCAAAA,2JACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAI,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,8DAAA,CAA+D,CAAA,CAChF,CACD,CAAA,CAEDG,CAAAA,CAAwB,WAAA,CACE,CAAA,CAAA,SAAA,CAAU,WAAA,CAAA,yFAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GCH6J4AU.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { ChevronDownIcon } from '@radix-ui/react-icons';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenu\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuElement = ComponentRef<typeof NavigationMenuPrimitive.Root>;\ntype NavigationMenuProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Root\n>;\n\nconst NavigationMenu = forwardRef<NavigationMenuElement, NavigationMenuProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'relative z-10 flex max-w-max flex-1 items-center justify-center',\n className,\n )}\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<\n typeof NavigationMenuPrimitive.List\n>;\ntype NavigationMenuListProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.List\n>;\n\nconst NavigationMenuList = forwardRef<\n NavigationMenuListElement,\n NavigationMenuListProps\n>(({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.List\n ref={forwardedRef}\n className={cn(\n 'group flex flex-1 list-none items-center justify-center space-x-1',\n className,\n )}\n {...props}\n >\n {children}\n <NavigationMenuIndicator />\n </NavigationMenuPrimitive.List>\n));\n\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuItem\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuItemProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Item\n>;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuTriggerElement = ComponentRef<\n typeof NavigationMenuPrimitive.Trigger\n>;\ntype NavigationMenuTriggerProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Trigger\n>;\n\nconst NavigationMenuTrigger = forwardRef<\n NavigationMenuTriggerElement,\n NavigationMenuTriggerProps\n>(({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'ghost',\n className: [\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n 'group',\n className,\n ],\n })}\n {...props}\n >\n {children}\n <ChevronDownIcon\n aria-hidden=\"true\"\n className={cn(\n 'relative top-px ml-1 size-3 transition',\n 'group-data-[state=open]:rotate-180',\n )}\n />\n </NavigationMenuPrimitive.Trigger>\n));\n\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuContentElement = ComponentRef<\n typeof NavigationMenuPrimitive.Content\n>;\ntype NavigationMenuContentProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Content\n>;\n\nconst NavigationMenuContent = forwardRef<\n NavigationMenuContentElement,\n 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\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuLink\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuLinkProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Link\n>;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuViewport\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuViewportElement = ComponentRef<\n typeof NavigationMenuPrimitive.Viewport\n>;\ntype NavigationMenuViewportProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Viewport\n>;\n\nconst NavigationMenuViewport = forwardRef<\n NavigationMenuViewportElement,\n 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\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuIndicator\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuIndicatorElement = ComponentRef<\n typeof NavigationMenuPrimitive.Indicator\n>;\ntype NavigationMenuIndicatorProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Indicator\n>;\n\nconst NavigationMenuIndicator = forwardRef<\n NavigationMenuIndicatorElement,\n 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\nNavigationMenuIndicator.displayName =\n 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,2 +1,2 @@
|
|
|
1
1
|
import{a as i}from"./chunk-VPYH6JWS.js";import*as e from"@radix-ui/react-checkbox";import{CheckIcon as m}from"@radix-ui/react-icons";import{forwardRef as s}from"react";import{jsx as o}from"react/jsx-runtime";var p=s(({className:r,...t},c)=>o(e.Root,{ref:c,className:i("border-input peer inline-flex size-4 shrink-0 rounded border shadow-sm","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground","focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1","disabled:cursor-default disabled:opacity-50",r),...t,children:o(e.Indicator,{className:"flex size-full items-center justify-center text-current",children:o(m,{className:"size-3.5"})})}));p.displayName=e.Root.displayName;export{p as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-GPWWJ55C.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/checkbox.tsx"],"names":["CheckboxPrimitive","CheckIcon","forwardRef","jsx","Checkbox","className","props","forwardedRef","cn"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/components/checkbox.tsx"],"names":["CheckboxPrimitive","CheckIcon","forwardRef","jsx","Checkbox","className","props","forwardedRef","cn"],"mappings":"wCACA,UAAYA,MAAuB,2BACnC,OAAS,aAAAC,MAAiB,wBAC1B,OAGE,cAAAC,MACK,QAwBC,cAAAC,MAAA,oBAfR,IAAMC,EAAWF,EACf,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAmB,OAAlB,CACC,IAAKI,EACL,UAAWC,EACT,yEACA,uBACA,2FACA,gFACA,8CACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAmB,YAAlB,CAA4B,UAAU,0DACrC,SAAAA,EAACF,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEJ,EAEAG,EAAS,YAAgC,OAAK","sourcesContent":["import { cn } from '@/lib/utils';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Checkbox\n * -------------------------------------------------------------------------- */\n\ntype CheckboxElement = ComponentRef<typeof CheckboxPrimitive.Root>;\ntype CheckboxProps = ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;\n\nconst Checkbox = forwardRef<CheckboxElement, CheckboxProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'border-input peer inline-flex size-4 shrink-0 rounded border shadow-sm',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n ),\n);\n\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Checkbox, type CheckboxProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
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 _reactradiogroup = require('@radix-ui/react-radio-group'); var o = _interopRequireWildcard(_reactradiogroup);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var p=_react.forwardRef.call(void 0, ({className:e,...i},r)=>_jsxruntime.jsx.call(void 0, o.Root,{className:_chunkDD6AVCRHcjs.a.call(void 0, "grid gap-2",e),...i,ref:r}));p.displayName=o.Root.displayName;var m=_react.forwardRef.call(void 0, ({className:e,...i},r)=>_jsxruntime.jsx.call(void 0, o.Item,{ref:r,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-foreground group peer flex cursor-pointer items-center justify-center rounded-md border p-4","focus-visible:bg-primary/10 focus-visible:outline focus-visible:outline-2","disabled:cursor-default disabled:opacity-50","aria-checked:outline aria-checked:outline-2",e),...i}));m.displayName=o.Item.displayName;exports.a = p; exports.b = m;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-GRVBRVSI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GRVBRVSI.cjs","../src/components/radio-cards.tsx"],"names":["RadioCards","forwardRef","className","props","forwardedRef","jsx","cn","RadioCardsItem"],"mappings":"AAAA,mZAAwC,iHCCH,8BAK9B,+CAcD,IAHAA,CAAAA,CAAaC,+BAAAA,CAChB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAEtBC,6BAAAA,CAAqB,CAAA,IAAA,CAApB,CACC,SAAA,CAAWC,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CACpC,GAAGC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACP,CAGN,CAAA,CAEAJ,CAAAA,CAAW,WAAA,CAAkC,CAAA,CAAA,IAAA,CAAK,WAAA,CAWlD,IAAMO,CAAAA,CAAiBN,+BAAAA,CACpB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAqB,CAAA,IAAA,CAApB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,kGACT,CACA,2EAAA,CACA,6CAAA,CACA,6CAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAI,CAAAA,CAAe,WAAA,CAAkC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GRVBRVSI.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCards\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsElement = ComponentRef<typeof RadioGroupPrimitive.Root>;\ntype RadioCardsProps = ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n>;\n\nconst RadioCards = forwardRef<RadioCardsElement, RadioCardsProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={forwardedRef}\n />\n );\n },\n);\n\nRadioCards.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCardsItem\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsItemElement = ComponentRef<typeof RadioGroupPrimitive.Item>;\ntype RadioCardsItemProps = ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n>;\n\nconst RadioCardsItem = forwardRef<RadioCardsItemElement, RadioCardsItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <RadioGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'text-foreground group peer flex cursor-pointer items-center justify-center rounded-md border p-4',\n 'focus-visible:bg-primary/10 focus-visible:outline focus-visible:outline-2',\n 'disabled:cursor-default disabled:opacity-50',\n 'aria-checked:outline aria-checked:outline-2',\n className,\n )}\n {...props}\n />\n ),\n);\n\nRadioCardsItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n RadioCards,\n RadioCardsItem,\n type RadioCardsItemProps,\n type RadioCardsProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var s=_react.forwardRef.call(void 0, ({className:t,...r},a)=>_jsxruntime.jsx.call(void 0, "textarea",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, ["border-input flex min-h-16 w-full grow rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm","focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1","placeholder:text-muted-foreground","disabled:cursor-default disabled:opacity-50"],t),...r}));s.displayName="Textarea";exports.a = s;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-GTFDLZHV.cjs.map
|