@codefast/ui 0.1.42 → 0.1.44
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-OKAUTO55.cjs → chunk-2EXOKYJL.cjs} +1 -1
- package/dist/chunk-2EXOKYJL.cjs.map +1 -0
- package/dist/{chunk-KXWXI4E6.cjs → chunk-2KJO6CJD.cjs} +1 -1
- package/dist/{chunk-KXWXI4E6.cjs.map → chunk-2KJO6CJD.cjs.map} +1 -1
- package/dist/{chunk-GRVBRVSI.cjs → chunk-2ZLXBCSR.cjs} +1 -1
- package/dist/chunk-2ZLXBCSR.cjs.map +1 -0
- package/dist/{chunk-ZJ27IZXN.cjs → chunk-3Q7AD5XX.cjs} +1 -1
- package/dist/chunk-3Q7AD5XX.cjs.map +1 -0
- package/dist/{chunk-FQX54EGQ.js → chunk-3RKMH6Q2.js} +1 -1
- package/dist/chunk-3RKMH6Q2.js.map +1 -0
- package/dist/{chunk-NWNJEQSH.cjs → chunk-3YED3LBA.cjs} +1 -1
- package/dist/chunk-3YED3LBA.cjs.map +1 -0
- package/dist/{chunk-2YPMUBQ3.js → chunk-4MQGI5DV.js} +1 -1
- package/dist/chunk-4MQGI5DV.js.map +1 -0
- package/dist/{chunk-UFNNCJZJ.js → chunk-4WEP3JVM.js} +1 -1
- package/dist/chunk-4WEP3JVM.js.map +1 -0
- package/dist/{chunk-PND7QGPJ.js → chunk-5NOUQCV3.js} +2 -2
- package/dist/chunk-5NOUQCV3.js.map +1 -0
- package/dist/{chunk-GTFDLZHV.cjs → chunk-5U2PKTG2.cjs} +1 -1
- package/dist/chunk-5U2PKTG2.cjs.map +1 -0
- package/dist/{chunk-MSQ7VB7N.cjs → chunk-6BDTRDBH.cjs} +2 -2
- package/dist/chunk-6BDTRDBH.cjs.map +1 -0
- package/dist/{chunk-CEKEAPXG.cjs → chunk-6O4QJI5P.cjs} +1 -1
- package/dist/chunk-6O4QJI5P.cjs.map +1 -0
- package/dist/{chunk-YTUXNNEM.cjs → chunk-6QDJZNRP.cjs} +1 -1
- package/dist/chunk-6QDJZNRP.cjs.map +1 -0
- package/dist/{chunk-YD6EZS5C.cjs → chunk-6VDKZUTY.cjs} +1 -1
- package/dist/chunk-6VDKZUTY.cjs.map +1 -0
- package/dist/{chunk-453RCTYD.js → chunk-7JDWMW6Q.js} +1 -1
- package/dist/chunk-7JDWMW6Q.js.map +1 -0
- package/dist/{chunk-ZUUL7G4G.cjs → chunk-7PN23OAF.cjs} +1 -1
- package/dist/chunk-7PN23OAF.cjs.map +1 -0
- package/dist/{chunk-QMG62BV3.cjs → chunk-7XDKNODE.cjs} +1 -1
- package/dist/chunk-7XDKNODE.cjs.map +1 -0
- package/dist/{chunk-KEAGJ67V.cjs → chunk-7ZJOJYIY.cjs} +1 -1
- package/dist/chunk-7ZJOJYIY.cjs.map +1 -0
- package/dist/{chunk-6KQLJXPZ.js → chunk-A3W3J3ZT.js} +1 -1
- package/dist/chunk-A3W3J3ZT.js.map +1 -0
- package/dist/{chunk-2ZFGMWLN.cjs → chunk-ADU7DOXT.cjs} +2 -2
- package/dist/chunk-ADU7DOXT.cjs.map +1 -0
- package/dist/{chunk-724FVHOW.cjs → chunk-AFAUHG25.cjs} +1 -1
- package/dist/chunk-AFAUHG25.cjs.map +1 -0
- package/dist/{chunk-L2UFRTIN.cjs → chunk-AFTFYUDK.cjs} +1 -1
- package/dist/chunk-AFTFYUDK.cjs.map +1 -0
- package/dist/{chunk-KMM56U4E.js → chunk-AHAVCUEA.js} +1 -1
- package/dist/chunk-AHAVCUEA.js.map +1 -0
- package/dist/{chunk-3MX2Z6YO.js → chunk-AL5Y2LFW.js} +1 -1
- package/dist/chunk-AL5Y2LFW.js.map +1 -0
- package/dist/{chunk-2TPZK3HF.cjs → chunk-AMFKCNLS.cjs} +1 -1
- package/dist/{chunk-23GW7ABR.js.map → chunk-AMFKCNLS.cjs.map} +1 -1
- package/dist/{chunk-T5MDFGTH.cjs → chunk-AQ3ODDQL.cjs} +2 -2
- package/dist/chunk-AQ3ODDQL.cjs.map +1 -0
- package/dist/chunk-B6O3BSXW.cjs +2 -0
- package/dist/chunk-B6O3BSXW.cjs.map +1 -0
- package/dist/{chunk-PABBDAHL.js → chunk-BFHJZE5S.js} +2 -2
- package/dist/chunk-BFHJZE5S.js.map +1 -0
- package/dist/{chunk-GPWWJ55C.js → chunk-BMQY55XE.js} +1 -1
- package/dist/chunk-BMQY55XE.js.map +1 -0
- package/dist/{chunk-IQW2BNVB.cjs → chunk-BWYTVY5W.cjs} +2 -2
- package/dist/chunk-BWYTVY5W.cjs.map +1 -0
- package/dist/{chunk-2I4HX5WZ.cjs → chunk-C4G4BOO2.cjs} +1 -1
- package/dist/chunk-C4G4BOO2.cjs.map +1 -0
- package/dist/{chunk-XGECD4OY.cjs → chunk-C6DZ4YV3.cjs} +1 -1
- package/dist/chunk-C6DZ4YV3.cjs.map +1 -0
- package/dist/{chunk-4S2IPOFD.js → chunk-CI3JGPOE.js} +1 -1
- package/dist/chunk-CI3JGPOE.js.map +1 -0
- package/dist/{chunk-E4OOKNPK.cjs → chunk-CISUDYZO.cjs} +1 -1
- package/dist/chunk-CISUDYZO.cjs.map +1 -0
- package/dist/{chunk-LCSG5Q6R.cjs → chunk-COJIVCCF.cjs} +1 -1
- package/dist/chunk-COJIVCCF.cjs.map +1 -0
- package/dist/{chunk-7WGDSUH5.js → chunk-DGOSGFA6.js} +1 -1
- package/dist/chunk-DGOSGFA6.js.map +1 -0
- package/dist/{chunk-YQW267KZ.js → chunk-DTDWZKKG.js} +1 -1
- package/dist/chunk-DTDWZKKG.js.map +1 -0
- package/dist/{chunk-YB746ZCF.cjs → chunk-DZ77O4IA.cjs} +1 -1
- package/dist/chunk-DZ77O4IA.cjs.map +1 -0
- package/dist/{chunk-RBNJWH4I.cjs → chunk-ENKG7QCS.cjs} +2 -2
- package/dist/chunk-ENKG7QCS.cjs.map +1 -0
- package/dist/{chunk-IFNZQ4X4.js → chunk-F2NUWO52.js} +2 -2
- package/dist/chunk-F2NUWO52.js.map +1 -0
- package/dist/{chunk-FFS6LEIC.js → chunk-F3SL2E7S.js} +1 -1
- package/dist/chunk-F3SL2E7S.js.map +1 -0
- package/dist/{chunk-TCBTFFUD.cjs → chunk-FCWLPS2C.cjs} +1 -1
- package/dist/chunk-FCWLPS2C.cjs.map +1 -0
- package/dist/{chunk-EOIBKG5E.js → chunk-FDI6WZDR.js} +1 -1
- package/dist/chunk-FDI6WZDR.js.map +1 -0
- package/dist/{chunk-KL3VMRZB.cjs → chunk-FEQVY47Y.cjs} +2 -2
- package/dist/chunk-FEQVY47Y.cjs.map +1 -0
- package/dist/{chunk-FBWVAERI.cjs → chunk-FHG2KE5O.cjs} +1 -1
- package/dist/chunk-FHG2KE5O.cjs.map +1 -0
- package/dist/{chunk-OGNKWQLC.js → chunk-FTZP6THH.js} +1 -1
- package/dist/chunk-FTZP6THH.js.map +1 -0
- package/dist/{chunk-EJKVDVBQ.cjs → chunk-G37Z6DZO.cjs} +1 -1
- package/dist/chunk-G37Z6DZO.cjs.map +1 -0
- package/dist/{chunk-VGMUU7IK.cjs → chunk-G3P2B5PF.cjs} +1 -1
- package/dist/chunk-G3P2B5PF.cjs.map +1 -0
- package/dist/{chunk-TMG24RQD.cjs → chunk-GEMWLTQM.cjs} +2 -2
- package/dist/chunk-GEMWLTQM.cjs.map +1 -0
- package/dist/{chunk-A6JWDJMI.js → chunk-GFDLQIZS.js} +1 -1
- package/dist/chunk-GFDLQIZS.js.map +1 -0
- package/dist/{chunk-JKFXJEBN.js → chunk-GXNAIGN2.js} +1 -1
- package/dist/chunk-GXNAIGN2.js.map +1 -0
- package/dist/{chunk-QSJKKUEW.cjs → chunk-HRSW7RJ6.cjs} +2 -2
- package/dist/chunk-HRSW7RJ6.cjs.map +1 -0
- package/dist/{chunk-VRJTXWVC.js → chunk-I6WXDXXU.js} +1 -1
- package/dist/chunk-I6WXDXXU.js.map +1 -0
- package/dist/{chunk-6I2ETZFI.js → chunk-IME6WTVV.js} +2 -2
- package/dist/chunk-IME6WTVV.js.map +1 -0
- package/dist/{chunk-ID2YVK5K.cjs → chunk-JU3C2MTQ.cjs} +1 -1
- package/dist/chunk-JU3C2MTQ.cjs.map +1 -0
- package/dist/{chunk-2UTHZBUW.js → chunk-JVVV3YR5.js} +1 -1
- package/dist/chunk-JVVV3YR5.js.map +1 -0
- package/dist/{chunk-EBSEF4UJ.js → chunk-KC2D5JRN.js} +2 -2
- package/dist/chunk-KC2D5JRN.js.map +1 -0
- package/dist/{chunk-LK24DDIX.js → chunk-KWCI4PIJ.js} +1 -1
- package/dist/{chunk-ESW7HLAR.cjs.map → chunk-KWCI4PIJ.js.map} +1 -1
- package/dist/{chunk-ESW7HLAR.cjs → chunk-KZSUEO6F.cjs} +1 -1
- package/dist/chunk-KZSUEO6F.cjs.map +1 -0
- package/dist/{chunk-WMX6LRVM.cjs → chunk-LEL2BYBH.cjs} +2 -2
- package/dist/chunk-LEL2BYBH.cjs.map +1 -0
- package/dist/{chunk-ZTS4YELG.js → chunk-LFPUOH7F.js} +1 -1
- package/dist/chunk-LFPUOH7F.js.map +1 -0
- package/dist/{chunk-676AFCKE.js → chunk-MBGSES5B.js} +1 -1
- package/dist/chunk-MBGSES5B.js.map +1 -0
- package/dist/{chunk-QZZVFEOG.js → chunk-MCYJ7TNG.js} +1 -1
- package/dist/chunk-MCYJ7TNG.js.map +1 -0
- package/dist/{chunk-USDR57FY.cjs → chunk-MKOH7DDX.cjs} +1 -1
- package/dist/chunk-MKOH7DDX.cjs.map +1 -0
- package/dist/{chunk-RKGPSBB2.js → chunk-N634ZWSE.js} +2 -2
- package/dist/chunk-N634ZWSE.js.map +1 -0
- package/dist/{chunk-QHNY23IH.cjs → chunk-NMA5W4OF.cjs} +1 -1
- package/dist/chunk-NMA5W4OF.cjs.map +1 -0
- package/dist/{chunk-Q44GDNL2.js → chunk-NXSNPJ6X.js} +1 -1
- package/dist/chunk-NXSNPJ6X.js.map +1 -0
- package/dist/chunk-NYL72KJA.js +2 -0
- package/dist/chunk-NYL72KJA.js.map +1 -0
- package/dist/{chunk-B44J2FJY.cjs → chunk-O4GZGEPI.cjs} +1 -1
- package/dist/chunk-O4GZGEPI.cjs.map +1 -0
- package/dist/{chunk-XFVUVJFP.js → chunk-OPE4JQMY.js} +1 -1
- package/dist/chunk-OPE4JQMY.js.map +1 -0
- package/dist/{chunk-RN6FVK2T.js → chunk-P43SRU6B.js} +2 -2
- package/dist/{chunk-RN6FVK2T.js.map → chunk-P43SRU6B.js.map} +1 -1
- package/dist/{chunk-2S5X6KEC.js → chunk-PGVO5LTF.js} +1 -1
- package/dist/chunk-PGVO5LTF.js.map +1 -0
- package/dist/{chunk-UNYP4MLA.cjs → chunk-PMYZ2ZYF.cjs} +1 -1
- package/dist/chunk-PMYZ2ZYF.cjs.map +1 -0
- package/dist/{chunk-BRRVMH2P.cjs → chunk-Q5VRO3SA.cjs} +1 -1
- package/dist/chunk-Q5VRO3SA.cjs.map +1 -0
- package/dist/{chunk-WPRQHIAB.cjs → chunk-QCVEXJGI.cjs} +1 -1
- package/dist/chunk-QCVEXJGI.cjs.map +1 -0
- package/dist/{chunk-MOZFPPDY.cjs → chunk-QCXJ4PX5.cjs} +1 -1
- package/dist/chunk-QCXJ4PX5.cjs.map +1 -0
- package/dist/{chunk-HLDMGTXD.js → chunk-QDGSYCGE.js} +1 -1
- package/dist/chunk-QDGSYCGE.js.map +1 -0
- package/dist/{chunk-IL6HKETS.js → chunk-QEUMAUJL.js} +1 -1
- package/dist/chunk-QEUMAUJL.js.map +1 -0
- package/dist/{chunk-5PHGQ4WO.cjs → chunk-QFNW73HW.cjs} +1 -1
- package/dist/chunk-QFNW73HW.cjs.map +1 -0
- package/dist/{chunk-MHWTM2SE.js → chunk-QLKDYSMD.js} +1 -1
- package/dist/chunk-QLKDYSMD.js.map +1 -0
- package/dist/{chunk-LEPRQUPN.cjs → chunk-QZKZOPSJ.cjs} +1 -1
- package/dist/chunk-QZKZOPSJ.cjs.map +1 -0
- package/dist/{chunk-END3X3XX.js → chunk-RL2G4CZ2.js} +1 -1
- package/dist/chunk-RL2G4CZ2.js.map +1 -0
- package/dist/{chunk-A4KLN3C7.cjs → chunk-SD35WIPI.cjs} +1 -1
- package/dist/chunk-SD35WIPI.cjs.map +1 -0
- package/dist/{chunk-HUPAMFBT.js → chunk-T7DXIFML.js} +1 -1
- package/dist/chunk-T7DXIFML.js.map +1 -0
- package/dist/{chunk-XNHIUPPQ.js → chunk-TKVMSFEL.js} +1 -1
- package/dist/chunk-TKVMSFEL.js.map +1 -0
- package/dist/{chunk-LAABDH76.cjs → chunk-TMUF57JT.cjs} +1 -1
- package/dist/chunk-TMUF57JT.cjs.map +1 -0
- package/dist/{chunk-35I5LYFK.js → chunk-TXUFJXFT.js} +1 -1
- package/dist/chunk-TXUFJXFT.js.map +1 -0
- package/dist/{chunk-XZPVLQDL.js → chunk-U3CGR7GV.js} +1 -1
- package/dist/chunk-U3CGR7GV.js.map +1 -0
- package/dist/{chunk-FAHH4BRG.js → chunk-U52L5MAD.js} +1 -1
- package/dist/chunk-U52L5MAD.js.map +1 -0
- package/dist/{chunk-RLN3ZMKZ.cjs → chunk-UBDUXCTF.cjs} +1 -1
- package/dist/chunk-UBDUXCTF.cjs.map +1 -0
- package/dist/{chunk-NN5SBICK.cjs → chunk-UD7Y7JDJ.cjs} +1 -1
- package/dist/chunk-UD7Y7JDJ.cjs.map +1 -0
- package/dist/{chunk-EUKWGLGW.cjs → chunk-UDA6D4ZL.cjs} +1 -1
- package/dist/chunk-UDA6D4ZL.cjs.map +1 -0
- package/dist/{chunk-S6NZOZO3.js → chunk-UVHXRKMY.js} +1 -1
- package/dist/chunk-UVHXRKMY.js.map +1 -0
- package/dist/{chunk-XQIIFT2E.js → chunk-UYTJOEAJ.js} +2 -2
- package/dist/chunk-UYTJOEAJ.js.map +1 -0
- package/dist/{chunk-23GW7ABR.js → chunk-VUFJDCUD.js} +1 -1
- package/dist/chunk-VUFJDCUD.js.map +1 -0
- package/dist/{chunk-BLLW2IB4.js → chunk-WIS2UIEG.js} +1 -1
- package/dist/chunk-WIS2UIEG.js.map +1 -0
- package/dist/{chunk-7IRDNEXB.js → chunk-Y2WARKUV.js} +1 -1
- package/dist/chunk-Y2WARKUV.js.map +1 -0
- package/dist/{chunk-SZJCVDQJ.js → chunk-Y3NM2KJ5.js} +1 -1
- package/dist/chunk-Y3NM2KJ5.js.map +1 -0
- package/dist/{chunk-BQTDCIBW.cjs → chunk-Y6IV4NZS.cjs} +1 -1
- package/dist/chunk-Y6IV4NZS.cjs.map +1 -0
- package/dist/{chunk-XWLQZWT4.cjs → chunk-YDR6FUYJ.cjs} +1 -1
- package/dist/chunk-YDR6FUYJ.cjs.map +1 -0
- package/dist/{chunk-WRV3NPYH.js → chunk-YIBXDKFF.js} +2 -2
- package/dist/chunk-YIBXDKFF.js.map +1 -0
- package/dist/{chunk-JFUWDWLK.js → chunk-YIPAES7K.js} +2 -2
- package/dist/chunk-YIPAES7K.js.map +1 -0
- package/dist/{chunk-2L66SLK7.js → chunk-YLONUXX6.js} +1 -1
- package/dist/chunk-YLONUXX6.js.map +1 -0
- package/dist/{chunk-X7SCQSLL.js → chunk-Z2DDPKH7.js} +1 -1
- package/dist/chunk-Z2DDPKH7.js.map +1 -0
- package/dist/{chunk-WRNORCGY.js → chunk-ZDTHGS7G.js} +1 -1
- package/dist/chunk-ZDTHGS7G.js.map +1 -0
- package/dist/{chunk-GCH6J4AU.cjs → chunk-ZMBZC6NR.cjs} +1 -1
- package/dist/chunk-ZMBZC6NR.cjs.map +1 -0
- package/dist/{chunk-AUV6OPX3.js → chunk-ZNDNTKDT.js} +2 -2
- package/dist/chunk-ZNDNTKDT.js.map +1 -0
- package/dist/{chunk-2PDUC74G.cjs → chunk-ZYPCHJKJ.cjs} +1 -1
- package/dist/chunk-ZYPCHJKJ.cjs.map +1 -0
- 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.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.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.js +1 -1
- package/package.json +63 -63
- package/dist/chunk-2I4HX5WZ.cjs.map +0 -1
- package/dist/chunk-2L66SLK7.js.map +0 -1
- package/dist/chunk-2PDUC74G.cjs.map +0 -1
- package/dist/chunk-2S5X6KEC.js.map +0 -1
- package/dist/chunk-2TPZK3HF.cjs.map +0 -1
- package/dist/chunk-2UTHZBUW.js.map +0 -1
- package/dist/chunk-2YPMUBQ3.js.map +0 -1
- package/dist/chunk-2ZFGMWLN.cjs.map +0 -1
- package/dist/chunk-35I5LYFK.js.map +0 -1
- package/dist/chunk-3MX2Z6YO.js.map +0 -1
- package/dist/chunk-453RCTYD.js.map +0 -1
- package/dist/chunk-4S2IPOFD.js.map +0 -1
- package/dist/chunk-5PHGQ4WO.cjs.map +0 -1
- package/dist/chunk-676AFCKE.js.map +0 -1
- package/dist/chunk-6I2ETZFI.js.map +0 -1
- package/dist/chunk-6KQLJXPZ.js.map +0 -1
- package/dist/chunk-724FVHOW.cjs.map +0 -1
- package/dist/chunk-7IRDNEXB.js.map +0 -1
- package/dist/chunk-7WGDSUH5.js.map +0 -1
- package/dist/chunk-A4KLN3C7.cjs.map +0 -1
- package/dist/chunk-A6JWDJMI.js.map +0 -1
- package/dist/chunk-AUV6OPX3.js.map +0 -1
- package/dist/chunk-B44J2FJY.cjs.map +0 -1
- package/dist/chunk-BEB76MFO.cjs +0 -2
- package/dist/chunk-BEB76MFO.cjs.map +0 -1
- package/dist/chunk-BLLW2IB4.js.map +0 -1
- package/dist/chunk-BQTDCIBW.cjs.map +0 -1
- package/dist/chunk-BRRVMH2P.cjs.map +0 -1
- package/dist/chunk-CEKEAPXG.cjs.map +0 -1
- package/dist/chunk-E4OOKNPK.cjs.map +0 -1
- package/dist/chunk-EBSEF4UJ.js.map +0 -1
- package/dist/chunk-EJKVDVBQ.cjs.map +0 -1
- package/dist/chunk-END3X3XX.js.map +0 -1
- package/dist/chunk-EOIBKG5E.js.map +0 -1
- package/dist/chunk-EUKWGLGW.cjs.map +0 -1
- package/dist/chunk-FAHH4BRG.js.map +0 -1
- package/dist/chunk-FBWVAERI.cjs.map +0 -1
- package/dist/chunk-FFS6LEIC.js.map +0 -1
- package/dist/chunk-FQX54EGQ.js.map +0 -1
- package/dist/chunk-GCH6J4AU.cjs.map +0 -1
- package/dist/chunk-GPWWJ55C.js.map +0 -1
- package/dist/chunk-GRVBRVSI.cjs.map +0 -1
- package/dist/chunk-GTFDLZHV.cjs.map +0 -1
- package/dist/chunk-HLDMGTXD.js.map +0 -1
- package/dist/chunk-HUPAMFBT.js.map +0 -1
- package/dist/chunk-ID2YVK5K.cjs.map +0 -1
- package/dist/chunk-IFNZQ4X4.js.map +0 -1
- package/dist/chunk-IL6HKETS.js.map +0 -1
- package/dist/chunk-IQW2BNVB.cjs.map +0 -1
- package/dist/chunk-JFUWDWLK.js.map +0 -1
- package/dist/chunk-JKFXJEBN.js.map +0 -1
- package/dist/chunk-KEAGJ67V.cjs.map +0 -1
- package/dist/chunk-KL3VMRZB.cjs.map +0 -1
- package/dist/chunk-KMM56U4E.js.map +0 -1
- package/dist/chunk-L2GO47JL.js +0 -2
- package/dist/chunk-L2GO47JL.js.map +0 -1
- package/dist/chunk-L2UFRTIN.cjs.map +0 -1
- package/dist/chunk-LAABDH76.cjs.map +0 -1
- package/dist/chunk-LCSG5Q6R.cjs.map +0 -1
- package/dist/chunk-LEPRQUPN.cjs.map +0 -1
- package/dist/chunk-LK24DDIX.js.map +0 -1
- package/dist/chunk-MHWTM2SE.js.map +0 -1
- package/dist/chunk-MOZFPPDY.cjs.map +0 -1
- package/dist/chunk-MSQ7VB7N.cjs.map +0 -1
- package/dist/chunk-NN5SBICK.cjs.map +0 -1
- package/dist/chunk-NWNJEQSH.cjs.map +0 -1
- package/dist/chunk-OGNKWQLC.js.map +0 -1
- package/dist/chunk-OKAUTO55.cjs.map +0 -1
- package/dist/chunk-PABBDAHL.js.map +0 -1
- package/dist/chunk-PND7QGPJ.js.map +0 -1
- package/dist/chunk-Q44GDNL2.js.map +0 -1
- package/dist/chunk-QHNY23IH.cjs.map +0 -1
- package/dist/chunk-QMG62BV3.cjs.map +0 -1
- package/dist/chunk-QSJKKUEW.cjs.map +0 -1
- package/dist/chunk-QZZVFEOG.js.map +0 -1
- package/dist/chunk-RBNJWH4I.cjs.map +0 -1
- package/dist/chunk-RKGPSBB2.js.map +0 -1
- package/dist/chunk-RLN3ZMKZ.cjs.map +0 -1
- package/dist/chunk-S6NZOZO3.js.map +0 -1
- package/dist/chunk-SZJCVDQJ.js.map +0 -1
- package/dist/chunk-T5MDFGTH.cjs.map +0 -1
- package/dist/chunk-TCBTFFUD.cjs.map +0 -1
- package/dist/chunk-TMG24RQD.cjs.map +0 -1
- package/dist/chunk-UFNNCJZJ.js.map +0 -1
- package/dist/chunk-UNYP4MLA.cjs.map +0 -1
- package/dist/chunk-USDR57FY.cjs.map +0 -1
- package/dist/chunk-VGMUU7IK.cjs.map +0 -1
- package/dist/chunk-VRJTXWVC.js.map +0 -1
- package/dist/chunk-WMX6LRVM.cjs.map +0 -1
- package/dist/chunk-WPRQHIAB.cjs.map +0 -1
- package/dist/chunk-WRNORCGY.js.map +0 -1
- package/dist/chunk-WRV3NPYH.js.map +0 -1
- package/dist/chunk-X7SCQSLL.js.map +0 -1
- package/dist/chunk-XFVUVJFP.js.map +0 -1
- package/dist/chunk-XGECD4OY.cjs.map +0 -1
- package/dist/chunk-XNHIUPPQ.js.map +0 -1
- package/dist/chunk-XQIIFT2E.js.map +0 -1
- package/dist/chunk-XWLQZWT4.cjs.map +0 -1
- package/dist/chunk-XZPVLQDL.js.map +0 -1
- package/dist/chunk-YB746ZCF.cjs.map +0 -1
- package/dist/chunk-YD6EZS5C.cjs.map +0 -1
- package/dist/chunk-YQW267KZ.js.map +0 -1
- package/dist/chunk-YTUXNNEM.cjs.map +0 -1
- package/dist/chunk-ZJ27IZXN.cjs.map +0 -1
- package/dist/chunk-ZTS4YELG.js.map +0 -1
- package/dist/chunk-ZUUL7G4G.cjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B44J2FJY.cjs","../src/components/input-otp.tsx"],"names":["className","jsx","OTPInput","forwardedRef","cn","InputOTP","InputOTPGroup","index","slot","useContext","OTPInputContext","InputOTPSlot","props","DotFilledIcon","InputOTPSeparator"],"mappings":"AAAA,ylBAAY,CAAC,wDCGJ,mDAEP,qCASA,8BAcE,+CADC,IAAA,CAAA,CAAA,+BAAAA,CAAW,CAAA,SAAA,CAAA,CAAA,CAAA,kBACZC,CAAAA,CAACC,CAAAA,GACC,CAAA,CAAA,CAAKC,CAAAA,CACL,EAAA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AAAA,CAAAA,+BACfF,CAAC,CAAA,GAAA,CAAA,CAAA,CAAI,CAAA,CAAA,EAAKE,6BAAAA,KAAmB,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,IAAa,CAAA,WACxC,CAAA,GAACU,CAAAA,CAAA,QAILC,CAAkB,6BAAA,yBAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,WAAA,CAAA,mBAAA,CAAA,kMAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B44J2FJY.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '@/lib/utils';\nimport { DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n OTPInput,\n OTPInputContext,\n REGEXP_ONLY_CHARS,\n REGEXP_ONLY_DIGITS,\n REGEXP_ONLY_DIGITS_AND_CHARS,\n} from 'input-otp';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n useContext,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOtp\n * -------------------------------------------------------------------------- */\n\ntype InputOTPElement = ComponentRef<typeof OTPInput>;\ntype InputOTPProps = ComponentPropsWithoutRef<typeof OTPInput>;\n\nconst InputOTP = forwardRef<InputOTPElement, InputOTPProps>(\n ({ className, containerClassName, ...props }, forwardedRef) => (\n <OTPInput\n ref={forwardedRef}\n className={cn('disabled:cursor-default', className)}\n containerClassName={cn(\n 'flex items-center gap-2',\n 'has-[:disabled]:opacity-50',\n containerClassName,\n )}\n {...props}\n />\n ),\n);\n\nInputOTP.displayName = 'InputOTP';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPGroup\n * -------------------------------------------------------------------------- */\n\ntype InputOTPGroupElement = HTMLDivElement;\ntype InputOTPGroupProps = HTMLAttributes<HTMLDivElement>;\n\nconst InputOTPGroup = forwardRef<InputOTPGroupElement, InputOTPGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <div\n ref={forwardedRef}\n className={cn('flex items-center', className)}\n {...props}\n />\n ),\n);\n\nInputOTPGroup.displayName = 'InputOTPGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSlot\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSlotElement = HTMLDivElement;\n\ninterface InputOTPSlotProps extends HTMLAttributes<HTMLDivElement> {\n index: number;\n}\n\nconst InputOTPSlot = forwardRef<InputOTPSlotElement, InputOTPSlotProps>(\n ({ index, className, ...props }, forwardedRef) => {\n const inputOTPContext = useContext(OTPInputContext);\n const slot = inputOTPContext.slots[index];\n\n return (\n <div\n ref={forwardedRef}\n className={cn(\n 'border-input relative flex size-10 items-center justify-center border-y border-r text-sm shadow-sm transition-all',\n 'first:rounded-l-md first:border-l',\n 'last:rounded-r-md',\n slot?.isActive && 'z-10 outline outline-2',\n className,\n )}\n {...props}\n >\n {slot?.char}\n {slot?.hasFakeCaret ? (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground animate-duration-1000 h-4 w-px\" />\n </div>\n ) : null}\n </div>\n );\n },\n);\n\nInputOTPSlot.displayName = 'InputOTPSlot';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSeparator\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSeparatorElement = HTMLDivElement;\ntype InputOTPSeparatorProps = HTMLAttributes<HTMLDivElement>;\n\nconst InputOTPSeparator = forwardRef<\n InputOTPSeparatorElement,\n InputOTPSeparatorProps\n>(({ ...props }, forwardedRef) => (\n <div ref={forwardedRef} role=\"separator\" {...props}>\n <DotFilledIcon />\n </div>\n));\n\nInputOTPSeparator.displayName = 'InputOTPSeparator';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n InputOTP,\n InputOTPGroup,\n InputOTPSeparator,\n InputOTPSlot,\n REGEXP_ONLY_CHARS,\n REGEXP_ONLY_DIGITS,\n REGEXP_ONLY_DIGITS_AND_CHARS,\n type InputOTPGroupProps,\n type InputOTPProps,\n type InputOTPSeparatorProps,\n type InputOTPSlotProps,\n};\n"]}
|
package/dist/chunk-BEB76MFO.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunk2ZFGMWLNcjs = require('./chunk-2ZFGMWLN.cjs');var _chunkUF5YIM7Lcjs = require('./chunk-UF5YIM7L.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _datefns = require('date-fns');var _react = require('react');var _reactdaypicker = require('react-day-picker');var _jsxruntime = require('react/jsx-runtime');function P({orientation:n,...e}){switch(n){case"up":return _jsxruntime.jsx.call(void 0, _reacticons.ChevronUpIcon,{className:"size-4",...e});case"down":return _jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{className:"size-4",...e});case"left":return _jsxruntime.jsx.call(void 0, _reacticons.ChevronLeftIcon,{className:"size-4",...e});case"right":return _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"size-4",...e});default:return _jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon,{className:"size-4",...e})}}function D({day:n,modifiers:e,className:r,...s}){let l=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>{e.focused&&_optionalChain([l, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.focus, 'call', _4 => _4()])},[e.focused]),_jsxruntime.jsx.call(void 0, _chunk2ZFGMWLNcjs.a,{ref:l,icon:!0,className:_chunkDD6AVCRHcjs.a.call(void 0, "transition-none focus-visible:-outline-offset-2",(!e.selected||e.range_middle)&&[e.today?"bg-accent":"hover:border-accent hover:bg-transparent",e.outside&&"text-opacity-30"],e.range_middle&&"bg-transparent",r),size:"sm",variant:e.selected&&!e.range_middle?"default":"ghost",...s})}function _({className:n,classNames:e,...r}){return _jsxruntime.jsx.call(void 0, _reactdaypicker.DayPicker,{className:_chunkDD6AVCRHcjs.a.call(void 0, "p-3",n),classNames:{[_reactdaypicker.DayFlag.outside]:_chunkDD6AVCRHcjs.a.call(void 0, !r.mode&&"text-opacity-30"),[_reactdaypicker.DayFlag.today]:_chunkDD6AVCRHcjs.a.call(void 0, !r.mode&&"bg-accent rounded-md"),[_reactdaypicker.SelectionState.range_end]:"to-accent rounded-r-md bg-gradient-to-l from-transparent to-50%",[_reactdaypicker.SelectionState.range_middle]:"bg-accent first:rounded-l-md last:rounded-r-md",[_reactdaypicker.SelectionState.range_start]:"to-accent rounded-l-md bg-gradient-to-r from-transparent to-50%",[_reactdaypicker.UI.CaptionLabel]:"inline-flex items-center",[_reactdaypicker.UI.Day]:_chunkDD6AVCRHcjs.a.call(void 0, "py-0",!r.mode&&"text-foreground mx-px flex min-h-9 min-w-9 items-center justify-center text-sm font-medium"),[_reactdaypicker.UI.DayButton]:"border border-transparent",[_reactdaypicker.UI.Dropdown]:"absolute size-full appearance-none opacity-0",[_reactdaypicker.UI.DropdownRoot]:"relative inline-flex",[_reactdaypicker.UI.Dropdowns]:"inline-flex items-center gap-2",[_reactdaypicker.UI.Footer]:"text-sm",[_reactdaypicker.UI.Month]:"grid grid-rows-[2rem_1fr] gap-4",[_reactdaypicker.UI.MonthCaption]:"flex w-full justify-center text-sm font-medium",[_reactdaypicker.UI.MonthGrid]:"relative block table-fixed border-collapse space-y-2 [&>thead]:block",[_reactdaypicker.UI.Months]:"relative flex flex-wrap gap-4",[_reactdaypicker.UI.Nav]:"-mr-4",[_reactdaypicker.UI.NextMonthButton]:_chunkUF5YIM7Lcjs.a.call(void 0, {className:"absolute end-0",icon:!0,size:"xs",variant:"outline"}),[_reactdaypicker.UI.PreviousMonthButton]:_chunkUF5YIM7Lcjs.a.call(void 0, {className:"absolute start-0",icon:!0,size:"xs",variant:"outline"}),[_reactdaypicker.UI.Root]:"inline-grid gap-4",[_reactdaypicker.UI.Week]:"flex",[_reactdaypicker.UI.WeekNumber]:"text-foreground/50 size-9 text-center text-xs",[_reactdaypicker.UI.Weekday]:"text-muted-foreground flex-1 text-sm font-normal",[_reactdaypicker.UI.Weekdays]:"flex",[_reactdaypicker.UI.Weeks]:"block space-y-2",...e},components:{Chevron:P,DayButton:D},...r})}function B({date:n,formatStr:e="LLL dd, y",placeholder:r="Pick a date"}){if(!_optionalChain([n, 'optionalAccess', _5 => _5.from]))return _jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:r});let s=_datefns.format.call(void 0, n.from,e);if(!n.to)return _jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:s});let l=_datefns.format.call(void 0, n.to,e);return _jsxruntime.jsxs.call(void 0, "span",{className:"truncate",children:[s," - ",l]})}function E({date:n,formatStr:e="PPP",placeholder:r="Pick a date"}){return n?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:_datefns.format.call(void 0, n,e)}):_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:r})}exports.a = _; exports.b = B; exports.c = E;
|
|
2
|
-
//# sourceMappingURL=chunk-BEB76MFO.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-BEB76MFO.cjs","../src/components/calendar.tsx"],"names":["orientation","jsx","props","DayButton","modifiers","className","buttonRef","useRef","Button","cn","Calendar","classNames","DayPicker","DayFlag","UI","CalendarRangeLabel","formatStr","placeholder","date","jsxs","CalendarLabel"],"mappings":"AAAA,ylBAAY,CAAC,wDAAwC,wDAAyC,wDCM5F,mDAMO,mCAC+B,8BAItC,kDAkBW,+CALX,SAAA,CAAA,CAAAA,CA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,IAAe,CAErD,CAAA,6BAAA,CAAKA,CAAAA,IACH,CAAA,CAAA,CAAA,CAAA,EAAA,CAAOjB,CAAAA,CAAC,CAAA,EAAA,CAAA,OAAK,6BAAA,MAAU,CAAA,CAAA,SAAY,CAAA,UAAkB,CAGvD,QAA+BiB,CAAAA,CAAK,CAAA,CAAA,CAAIF,IAExC,CAAA,CAAA,6BAAA,CAAA,CACEG,EAAC,CAAA,CAAA,CAAA,CAAA,OAAK,8BAAA,MAAU,CAAA,CAAA,SACb,CAAA,UAAkB,CAAA,QACrB,CAEJ,CAYA,CAAA,CAAA,KAAA,CAAA,CAASC,CAAAA,CAAc,CACrB,CAAA,SACA,CAAA,CAAA,CAAA,IAAAJ,CAAAA,CAAY,CAAA,SACZ,CAAA,CAAA,CAAA,KAAAC,CAAAA,WAAc,CAAA,CAAA,CAChB,aAKShB,CAAC,CAAA,CAAA,OAAK,CAAA,CAAA,6BAAA,MAAU,CAAA,CAAA,SAAY,CAAA,UAAOiB,CAAMF,QAHtC,CAAA,6BAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,6BAAA,MAAU,CAAA,CAAA,SAAY,CAAA,UAIvC,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-BEB76MFO.cjs","sourcesContent":[null,"'use client';\n\nimport { Button } from '@/components/button';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/styles/button-variants';\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n DotFilledIcon,\n} from '@radix-ui/react-icons';\nimport { format } from 'date-fns';\nimport { type ComponentProps, type JSX, useEffect, useRef } from 'react';\nimport {\n type CustomComponents,\n type DateRange,\n DayFlag,\n DayPicker,\n type DayPickerProps,\n type Matcher,\n SelectionState,\n UI,\n} from 'react-day-picker';\n\n/* -----------------------------------------------------------------------------\n * Component: Chevron\n * -------------------------------------------------------------------------- */\n\nfunction Chevron({\n orientation,\n ...props\n}: ComponentProps<CustomComponents['Chevron']>): JSX.Element {\n switch (orientation) {\n case 'up': {\n return <ChevronUpIcon className=\"size-4\" {...props} />;\n }\n\n case 'down': {\n return <ChevronDownIcon className=\"size-4\" {...props} />;\n }\n\n case 'left': {\n return <ChevronLeftIcon className=\"size-4\" {...props} />;\n }\n\n case 'right': {\n return <ChevronRightIcon className=\"size-4\" {...props} />;\n }\n\n default:\n return <DotFilledIcon className=\"size-4\" {...props} />;\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DayButton\n * -------------------------------------------------------------------------- */\n\nfunction DayButton({\n day: _,\n modifiers,\n className,\n ...props\n}: ComponentProps<CustomComponents['DayButton']>): JSX.Element {\n const buttonRef = useRef<HTMLButtonElement>(null);\n\n useEffect(() => {\n if (modifiers.focused) {\n buttonRef.current?.focus();\n }\n }, [modifiers.focused]);\n\n return (\n <Button\n ref={buttonRef}\n icon\n className={cn(\n 'transition-none focus-visible:-outline-offset-2',\n (!modifiers.selected || modifiers.range_middle) && [\n modifiers.today\n ? 'bg-accent'\n : 'hover:border-accent hover:bg-transparent',\n modifiers.outside && 'text-opacity-30',\n ],\n modifiers.range_middle && 'bg-transparent',\n className,\n )}\n size=\"sm\"\n variant={\n modifiers.selected && !modifiers.range_middle ? 'default' : 'ghost'\n }\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Calendar\n * -------------------------------------------------------------------------- */\n\ntype CalendarProps = DayPickerProps;\n\nfunction Calendar({\n className,\n classNames,\n ...props\n}: CalendarProps): JSX.Element {\n return (\n <DayPicker\n className={cn('p-3', className)}\n classNames={{\n [DayFlag.outside]: cn(!props.mode && 'text-opacity-30'),\n [DayFlag.today]: cn(!props.mode && 'bg-accent rounded-md'),\n [SelectionState.range_end]:\n 'to-accent rounded-r-md bg-gradient-to-l from-transparent to-50%',\n [SelectionState.range_middle]:\n 'bg-accent first:rounded-l-md last:rounded-r-md',\n [SelectionState.range_start]:\n 'to-accent rounded-l-md bg-gradient-to-r from-transparent to-50%',\n [UI.CaptionLabel]: 'inline-flex items-center',\n [UI.Day]: cn(\n 'py-0',\n !props.mode &&\n 'text-foreground mx-px flex min-h-9 min-w-9 items-center justify-center text-sm font-medium',\n ),\n [UI.DayButton]: 'border border-transparent',\n [UI.Dropdown]: 'absolute size-full appearance-none opacity-0',\n [UI.DropdownRoot]: 'relative inline-flex',\n [UI.Dropdowns]: 'inline-flex items-center gap-2',\n [UI.Footer]: 'text-sm',\n [UI.Month]: 'grid grid-rows-[2rem_1fr] gap-4',\n [UI.MonthCaption]: 'flex w-full justify-center text-sm font-medium',\n [UI.MonthGrid]:\n 'relative block table-fixed border-collapse space-y-2 [&>thead]:block',\n [UI.Months]: 'relative flex flex-wrap gap-4',\n [UI.Nav]: '-mr-4',\n [UI.NextMonthButton]: buttonVariants({\n className: 'absolute end-0',\n icon: true,\n size: 'xs',\n variant: 'outline',\n }),\n [UI.PreviousMonthButton]: buttonVariants({\n className: 'absolute start-0',\n icon: true,\n size: 'xs',\n variant: 'outline',\n }),\n [UI.Root]: 'inline-grid gap-4',\n [UI.Week]: 'flex',\n [UI.WeekNumber]: 'text-foreground/50 size-9 text-center text-xs',\n [UI.Weekday]: 'text-muted-foreground flex-1 text-sm font-normal',\n [UI.Weekdays]: 'flex',\n [UI.Weeks]: 'block space-y-2',\n ...classNames,\n }}\n components={{ Chevron, DayButton }}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CalendarRangeLabel\n * -------------------------------------------------------------------------- */\n\ninterface CalendarRangeLabelProps {\n date: DateRange | undefined;\n formatStr?: string;\n placeholder?: string;\n}\n\nfunction CalendarRangeLabel({\n date,\n formatStr = 'LLL dd, y',\n placeholder = 'Pick a date',\n}: CalendarRangeLabelProps): string | JSX.Element {\n if (!date?.from) {\n return <span className=\"truncate\">{placeholder}</span>;\n }\n\n const formattedFromDate = format(date.from, formatStr);\n\n if (!date.to) {\n return <span className=\"truncate\">{formattedFromDate}</span>;\n }\n\n const formattedToDate = format(date.to, formatStr);\n\n return (\n <span className=\"truncate\">\n {formattedFromDate} - {formattedToDate}\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CalendarLabel\n * -------------------------------------------------------------------------- */\n\ninterface CalendarLabelProps {\n date: Date | undefined;\n formatStr?: string;\n placeholder?: string;\n}\n\nfunction CalendarLabel({\n date,\n formatStr = 'PPP',\n placeholder = 'Pick a date',\n}: CalendarLabelProps): string | JSX.Element {\n if (!date) {\n return <span className=\"truncate\">{placeholder}</span>;\n }\n\n return <span className=\"truncate\">{format(date, formatStr)}</span>;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Calendar,\n CalendarLabel,\n CalendarRangeLabel,\n type CalendarLabelProps,\n type CalendarProps,\n type CalendarRangeLabelProps,\n type DateRange,\n type Matcher,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/chart.tsx"],"names":["createContext","forwardRef","useContext","useId","useMemo","RechartsPrimitive","Fragment","jsx","jsxs","THEMES","ChartContext","useChart","context","ChartContainer","children","className","config","id","props","ref","uniqueId","chartId","cn","ChartStyle","cssString","generateCSS","ChartTooltip","ChartTooltipContent","active","color","formatter","hideIndicator","hideLabel","indicator","label","labelClassName","labelFormatter","labelKey","nameKey","payload","tooltipLabel","item","key","itemConfig","getPayloadConfigFromPayload","value","nestLabel","index","indicatorColor","ChartLegend","ChartLegendContent","hideIcon","verticalAlign","isValidObject","nestedPayload","configLabelKey","getConfigLabelKey","obj","generateThemeCSS","theme","configEntries","rules","themeOrColorConfig","_","allRules","themeCSS"],"mappings":"wCAGA,OAGE,iBAAAA,EAEA,cAAAC,EAGA,cAAAC,EACA,SAAAC,EACA,WAAAC,MACK,QACP,UAAYC,MAAuB,WAiE3B,OA8KU,YAAAC,EAzJR,OAAAC,EArBF,QAAAC,MAAA,oBA1DR,IAAMC,EAA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tC,EAEMmC,EAAqB,CAAC,EAE5B,cAAO,KAAKvD,CAAM,EAAE,QAASkD,GAAU,CACrC,IAAMM,EAAWP,EAAiBC,EAAgB1C,EAAI6C,CAAkB,EAExEE,EAAS,KAAKC,CAAQ,CACxB,CAAC,EAEMD,EAAS,KAAK;AAAA,CAAI,CAC3B","sourcesContent":["'use client';\n\nimport { cn } from '@/lib/utils';\nimport {\n type ComponentProps,\n type ComponentType,\n createContext,\n type CSSProperties,\n forwardRef,\n type JSX,\n type ReactNode,\n useContext,\n useId,\n useMemo,\n} from 'react';\nimport * as RechartsPrimitive from 'recharts';\nimport {\n type NameType,\n type Payload,\n type ValueType,\n} from 'recharts/types/component/DefaultTooltipContent';\n\nconst THEMES = {\n light: '',\n dark: '.dark',\n} as const;\n\ntype Theme = keyof typeof THEMES;\n\ntype ChartConfig = {\n [k in string]: {\n icon?: ComponentType;\n label?: ReactNode;\n } & (\n | {\n color?: string;\n theme?: never;\n }\n | {\n theme: Record<Theme, string>;\n color?: never;\n }\n );\n};\n\ninterface ChartContextProps {\n config: ChartConfig;\n}\n\nconst ChartContext = createContext<ChartContextProps | null>(null);\n\nfunction useChart(): ChartContextProps {\n const context = useContext(ChartContext);\n\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Chart\n * -------------------------------------------------------------------------- */\n\ntype ChartContainerElement = HTMLDivElement;\ninterface ChartContainerProps extends ComponentProps<'div'> {\n children: ComponentProps<\n typeof RechartsPrimitive.ResponsiveContainer\n >['children'];\n config: ChartConfig;\n}\n\nconst ChartContainer = forwardRef<ChartContainerElement, ChartContainerProps>(\n ({ children, className, config, id, ...props }, ref) => {\n const uniqueId = useId();\n const chartId = `chart-${id || uniqueId.replace(/:/g, '')}`;\n\n return (\n <ChartContext.Provider value={{ config }}>\n <div\n ref={ref}\n className={cn(\n 'flex aspect-video justify-center text-xs',\n '[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground',\n '[&_.recharts-cartesian-grid_line[stroke=#ccc]]:stroke-border/50',\n '[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border',\n '[&_.recharts-dot[stroke=#fff]]:stroke-transparent',\n '[&_.recharts-layer]:outline-none',\n '[&_.recharts-polar-grid_[stroke=#ccc]]:stroke-border',\n '[&_.recharts-radial-bar-background-sector]:fill-muted',\n '[&_.recharts-reference-line_[stroke=#ccc]]:stroke-border',\n '[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted',\n '[&_.recharts-sector]:outline-none',\n '[&_.recharts-sector[stroke=#fff]]:stroke-transparent',\n '[&_.recharts-surface]:outline-none',\n className,\n )}\n data-chart={chartId}\n {...props}\n >\n <ChartStyle config={config} id={chartId} />\n <RechartsPrimitive.ResponsiveContainer>\n {children}\n </RechartsPrimitive.ResponsiveContainer>\n </div>\n </ChartContext.Provider>\n );\n },\n);\n\nChartContainer.displayName = 'Chart';\n\n/* -----------------------------------------------------------------------------\n * Component: ChartStyle\n * -------------------------------------------------------------------------- */\n\ninterface ChartStyleProps {\n config: ChartConfig;\n id: string;\n}\n\nfunction ChartStyle({ id, config }: ChartStyleProps): JSX.Element | null {\n const cssString = useMemo(() => generateCSS(id, config), [id, config]);\n\n return <style dangerouslySetInnerHTML={{ __html: cssString }} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltip\n * -------------------------------------------------------------------------- */\n\ntype ChartTooltipProps = ComponentProps<typeof RechartsPrimitive.Tooltip>;\nconst ChartTooltip = RechartsPrimitive.Tooltip;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltipContent\n * -------------------------------------------------------------------------- */\n\ntype ChartTooltipContentElement = HTMLDivElement;\ninterface ChartTooltipContentProps\n extends ComponentProps<typeof RechartsPrimitive.Tooltip>,\n Omit<ComponentProps<'div'>, 'content'> {\n hideIndicator?: boolean;\n hideLabel?: boolean;\n indicator?: 'line' | 'dot' | 'dashed';\n labelKey?: string;\n nameKey?: string;\n}\n\nconst ChartTooltipContent = forwardRef<\n ChartTooltipContentElement,\n ChartTooltipContentProps\n>(\n (\n {\n active,\n className,\n color,\n formatter,\n hideIndicator = false,\n hideLabel = false,\n indicator = 'dot',\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n nameKey,\n payload,\n },\n ref,\n ) => {\n const { config } = useChart();\n\n const tooltipLabel = useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null;\n }\n\n const [item] = payload;\n\n if (!item) {\n return null;\n }\n\n const key = `${labelKey || item.dataKey || item.name || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const value =\n !labelKey && typeof label === 'string'\n ? config[label]?.label || label\n : itemConfig?.label;\n\n if (labelFormatter) {\n return (\n <div className={cn('font-medium', labelClassName)}>\n {labelFormatter(value, payload)}\n </div>\n );\n }\n\n if (!value) {\n return null;\n }\n\n return <div className={cn('font-medium', labelClassName)}>{value}</div>;\n }, [\n config,\n hideLabel,\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n payload,\n ]);\n\n if (!active || !payload?.length) {\n return null;\n }\n\n const nestLabel = payload.length === 1 && indicator !== 'dot';\n\n return (\n <div\n ref={ref}\n className={cn(\n 'border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl',\n className,\n )}\n >\n {!nestLabel ? tooltipLabel : null}\n <div className=\"grid gap-1.5\">\n {payload.map((item, index) => {\n const key = `${nameKey || item.name || item.dataKey || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const indicatorColor =\n color || (item.payload as { fill?: string }).fill || item.color;\n\n return (\n <div\n key={item.dataKey}\n className={cn(\n '[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5',\n indicator === 'dot' && 'items-center',\n )}\n >\n {formatter && item.value !== undefined && item.name ? (\n formatter(\n item.value,\n item.name,\n item,\n index,\n item.payload as Payload<ValueType, NameType>[],\n )\n ) : (\n <>\n {itemConfig?.icon ? (\n <itemConfig.icon />\n ) : (\n !hideIndicator && (\n <div\n className={cn(\n 'shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]',\n {\n 'h-2.5 w-2.5': indicator === 'dot',\n 'w-1': indicator === 'line',\n 'w-0 border-[1.5px] border-dashed bg-transparent':\n indicator === 'dashed',\n 'my-0.5': nestLabel && indicator === 'dashed',\n },\n )}\n style={\n {\n '--color-bg': indicatorColor,\n '--color-border': indicatorColor,\n } as CSSProperties\n }\n />\n )\n )}\n <div\n className={cn(\n 'flex flex-1 justify-between leading-none',\n nestLabel ? 'items-end' : 'items-center',\n )}\n >\n <div className=\"grid gap-1.5\">\n {nestLabel ? tooltipLabel : null}\n <span className=\"text-muted-foreground\">\n {itemConfig?.label || item.name}\n </span>\n </div>\n {item.value ? (\n <span className=\"text-foreground font-mono font-medium tabular-nums\">\n {item.value.toLocaleString()}\n </span>\n ) : null}\n </div>\n </>\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n },\n);\n\nChartTooltipContent.displayName = 'ChartTooltipContent';\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegend\n * -------------------------------------------------------------------------- */\n\ntype ChartLegendProps = ComponentProps<typeof RechartsPrimitive.Legend>;\nconst ChartLegend = RechartsPrimitive.Legend;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegendContent\n * -------------------------------------------------------------------------- */\n\ntype ChartLegendContent = HTMLDivElement;\ninterface ChartLegendContentProps\n extends ComponentProps<'div'>,\n Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> {\n hideIcon?: boolean;\n nameKey?: string;\n}\n\nconst ChartLegendContent = forwardRef<HTMLDivElement, ChartLegendContentProps>(\n (\n { className, hideIcon = false, nameKey, payload, verticalAlign = 'bottom' },\n ref,\n ) => {\n const { config } = useChart();\n\n if (!payload?.length) {\n return null;\n }\n\n return (\n <div\n ref={ref}\n className={cn(\n 'flex items-center justify-center gap-4',\n verticalAlign === 'top' ? 'pb-3' : 'pt-3',\n className,\n )}\n >\n {payload.map((item) => {\n let key = 'value';\n\n if (nameKey) {\n key = nameKey;\n } else if (item.dataKey) {\n key = String(item.dataKey);\n }\n\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n\n return (\n <div\n key={String(item.value)}\n className={cn(\n '[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3',\n )}\n >\n {itemConfig?.icon && !hideIcon ? (\n <itemConfig.icon />\n ) : (\n <div\n className=\"h-2 w-2 shrink-0 rounded-[2px]\"\n style={{\n backgroundColor: item.color,\n }}\n />\n )}\n {itemConfig?.label}\n </div>\n );\n })}\n </div>\n );\n },\n);\n\nChartLegendContent.displayName = 'ChartLegendContent';\n\n/* -----------------------------------------------------------------------------\n * Helpers\n * -------------------------------------------------------------------------- */\n\n/**\n * Extracts and returns the appropriate configuration object from\n * the payload based on the specified key.\n *\n * @param config - The chart configuration object that contains various\n * settings.\n * @param payload - The payload object that might contain nested payload data.\n * @param key - The key used to retrieve the specific configuration from the\n * chart config.\n * @returns Returns a configuration object with optional properties `icon`,\n * `label`, `color` or `theme`, or `undefined` if the payload is invalid or\n * no configuration is found for the provided key.\n */\nfunction getPayloadConfigFromPayload(\n config: ChartConfig,\n payload: unknown,\n key: string,\n):\n | ({\n icon?: ComponentType;\n label?: ReactNode;\n } & {\n color?: string;\n theme?: never;\n })\n | ({\n icon?: ComponentType;\n label?: ReactNode;\n } & {\n theme: Record<Theme, string>;\n color?: never;\n })\n | undefined {\n if (!isValidObject(payload)) {\n return undefined;\n }\n\n const nestedPayload =\n 'payload' in payload && isValidObject(payload.payload)\n ? payload.payload\n : undefined;\n\n const configLabelKey = getConfigLabelKey(payload, nestedPayload, key);\n\n return configLabelKey in config ? config[configLabelKey] : config[key];\n}\n\n/**\n * Checks if the provided value is a valid object.\n *\n * @param obj - The value to check.\n * @returns - Returns true if the value is an object and not null, false\n * otherwise.\n */\nfunction isValidObject(obj: unknown): obj is Record<string, unknown> {\n return typeof obj === 'object' && obj !== null;\n}\n\n/**\n * Retrieves the configuration label key from either the payload or\n * nestedPayload. If the key exists in the payload and is a string, the\n * corresponding value is returned. Otherwise, if the key exists in the\n * nestedPayload and is a string, its value is returned. If the key is not\n * found as a string in either object, the key itself is returned.\n *\n * @param payload - The primary payload containing key-value pairs.\n * @param nestedPayload - An optional nested payload containing additional\n * key-value pairs.\n * @param key - The key to search for within the payload and nestedPayload.\n *\n * @returns The string value associated with the key if found; otherwise, the\n * key itself.\n */\nfunction getConfigLabelKey(\n payload: Record<string, unknown>,\n nestedPayload: Record<string, unknown> | undefined,\n key: string,\n): string {\n if (key in payload && typeof payload[key] === 'string') {\n return payload[key];\n }\n\n if (\n nestedPayload &&\n key in nestedPayload &&\n typeof nestedPayload[key] === 'string'\n ) {\n return nestedPayload[key];\n }\n\n return key;\n}\n\n/**\n * Generates CSS for a specified theme and chart configuration.\n *\n * @param theme - The theme to be used (for example, 'light', 'dark').\n * @param id - The unique identifier of the chart.\n * @param configEntries - A list of configuration entries, each containing a\n * key and a chart configuration.\n * @returns The generated CSS as a string.\n */\nfunction generateThemeCSS(\n theme: Theme,\n id: string,\n configEntries: [string, ChartConfig[string]][],\n): string {\n const rules: string[] = [];\n\n rules.push(`${THEMES[theme]} [data-chart=${id}] {`);\n\n configEntries.forEach(([key, itemConfig]) => {\n const color = itemConfig.theme?.[theme] || itemConfig.color;\n\n if (color) {\n rules.push(` --color-${key}: ${color};`);\n }\n });\n\n rules.push('}');\n\n return rules.join('\\n');\n}\n\n/**\n * Generates CSS styles for a chart based on the provided configuration and\n * themes.\n *\n * @param id - The unique identifier for the chart element.\n * @param config - Configuration object for the chart. This includes theme and\n * color settings.\n * @returns A string containing the generated CSS rules.\n */\nfunction generateCSS(id: string, config: ChartConfig): string {\n const themeOrColorConfig = Object.entries(config).filter(\n ([_, { theme, color }]) => theme || color,\n );\n\n const allRules: string[] = [];\n\n Object.keys(THEMES).forEach((theme) => {\n const themeCSS = generateThemeCSS(theme as Theme, id, themeOrColorConfig);\n\n allRules.push(themeCSS);\n });\n\n return allRules.join('\\n');\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartStyle,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n type ChartContainerProps,\n type ChartLegendContentProps,\n type ChartLegendProps,\n type ChartStyleProps,\n type ChartTooltipContentProps,\n type ChartTooltipProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-BQTDCIBW.cjs","../src/components/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","forwardRef","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,mZAAwC,wDAAyC,oHCK3C,8BAQ/B,+CAyCD,IAlCAA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CASnCC,CAAAA,aAA0C,CAAA,CAAA,OAAA,CAa1CC,CAAAA,aAAqBC,+BAAAA,CAGxB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,QAAA,CAAAA,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,2FACT,CACA,0EAAA,CACA,+EACF,CAAA,CAEA,QAAA,CAAAD,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,uFACT,CACA,4HAAA,CACA,uIAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAAA,CACF,CAAA,CACF,CACD,CAAA,CAEDH,CAAAA,CAAm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,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDQ,CAAAA,CAAuB,WAAA,CACA,CAAA,CAAA,WAAA,CAAY,WAAA,CAgBnC,IAAMC,CAAAA,CAAoBX,+BAAAA,CAGvB,CAAE,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAS,GAAGX,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACzCC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAiB,SAAA,CAAAb,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CACD,CAAA,CAEDS,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAgB5D,IAAMI,CAAAA,CAAoBf,+BAAAA,CAGvB,CAAE,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGX,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACrDC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAiB,SAAA,CAAAb,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CACD,CAAA,CAEDa,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-BQTDCIBW.cjs","sourcesContent":[null,"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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-BRRVMH2P.cjs","../src/components/context-menu.tsx"],"names":["ContextMenu","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuSubTrigger","forwardRef","children","className","inset","props","forwardedRef","jsxs","cn","jsx","ChevronRightIcon","ContextMenuSubContent","ContextMenuContent","ContextMenuItem","ContextMenuCheckboxItem","checked","CheckIcon","ContextMenuRadioItem","DotFilledIcon","ContextMenuLabel","ContextMenuSeparator","ContextMenuShortcut","ContextMenuArrow"],"mappings":"AAAA,mZAAwC,oHCCF,mDAK/B,8BAQA,+CA4DL,IArDIA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CASnCC,CAAAA,aAA0C,CAAA,CAAA,OAAA,CAS1CC,CAAAA,aAAwC,CAAA,CAAA,KAAA,CAOxCC,CAAAA,aAAsC,CAAA,CAAA,GAAA,CAStCC,CAAAA,aAA6C,CAAA,CAAA,UAAA,CAe7CC,CAAAA,aAAwBC,+BAAAA,CAG3B,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC3CC,8BAA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GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWE,iCAAAA,yBAAG,CAA2BL,CAAS,CAAA,CACjD,GAAGE,CAAAA,CACN,CACD,CAAA,CAEDe,CAAAA,CAAqB,WAAA,CAAmC,CAAA,CAAA,SAAA,CAAU,WAAA,CAQlE,SAASC,CAAAA,CAAoB,CAC3B,SAAA,CAAAlB,CAAAA,CACA,GAAGE,CACL,CAAA,CAA0C,CACxC,OACEI,6BAAAA,MAAC,CAAA,CACC,SAAA,CAAWD,iCAAAA,uDACT,CACAL,CACF,CAAA,CACC,GAAGE,CAAAA,CACN,CAEJ,CASA,IAAMiB,CAAAA,CAAmBrB,+BAAAA,CAGtB,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BG,6BAAAA,CAAsB,CAAA,KAAA,CAArB,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWE,iCAAAA,cAAG,CAAgBL,CAAS,CAAA,CACtC,GAAGE,CAAAA,CACN,CACD,CAAA,CAEDiB,CAAAA,CAAiB,WAAA,CAAmC,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,gOAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-BRRVMH2P.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport {\n CheckIcon,\n ChevronRightIcon,\n DotFilledIcon,\n} 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: ContextMenu\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuProps = ComponentProps<typeof ContextMenuPrimitive.Root>;\nconst ContextMenu = ContextMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuTriggerProps = ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.Trigger\n>;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuGroupProps = ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.Group\n>;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSub\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubProps = ComponentProps<typeof ContextMenuPrimitive.Sub>;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioGroupProps = ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.RadioGroup\n>;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubTriggerElement = ComponentRef<\n typeof ContextMenuPrimitive.SubTrigger\n>;\n\ninterface ContextMenuSubTriggerProps\n extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst ContextMenuSubTrigger = forwardRef<\n ContextMenuSubTriggerElement,\n ContextMenuSubTriggerProps\n>(({ children, className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.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 </ContextMenuPrimitive.SubTrigger>\n));\n\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubContentElement = ComponentRef<\n typeof ContextMenuPrimitive.SubContent\n>;\ntype ContextMenuSubContentProps = ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.SubContent\n>;\n\nconst ContextMenuSubContent = forwardRef<\n ContextMenuSubContentElement,\n ContextMenuSubContentProps\n>(({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\n\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuContentElement = ComponentRef<\n typeof ContextMenuPrimitive.Content\n>;\ntype ContextMenuContentProps = ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.Content\n>;\n\nconst ContextMenuContent = forwardRef<\n ContextMenuContentElement,\n ContextMenuContentProps\n>(({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\n\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuItemElement = ComponentRef<typeof ContextMenuPrimitive.Item>;\n\ninterface ContextMenuItemProps\n extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst ContextMenuItem = forwardRef<\n ContextMenuItemElement,\n ContextMenuItemProps\n>(({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.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\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuCheckboxItemElement = ComponentRef<\n typeof ContextMenuPrimitive.CheckboxItem\n>;\ntype ContextMenuCheckboxItemProps = ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.CheckboxItem\n>;\n\nconst ContextMenuCheckboxItem = forwardRef<\n ContextMenuCheckboxItemElement,\n ContextMenuCheckboxItemProps\n>(({ children, className, checked, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.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 <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n));\n\nContextMenuCheckboxItem.displayName =\n ContextMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioItemElement = ComponentRef<\n typeof ContextMenuPrimitive.RadioItem\n>;\ntype ContextMenuRadioItemProps = ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.RadioItem\n>;\n\nconst ContextMenuRadioItem = forwardRef<\n ContextMenuRadioItemElement,\n ContextMenuRadioItemProps\n>(({ children, className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.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 <ContextMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n));\n\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuLabelElement = ComponentRef<typeof ContextMenuPrimitive.Label>;\n\ninterface ContextMenuLabelProps\n extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst ContextMenuLabel = forwardRef<\n ContextMenuLabelElement,\n ContextMenuLabelProps\n>(({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.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\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSeparatorElement = ComponentRef<\n typeof ContextMenuPrimitive.Separator\n>;\ntype ContextMenuSeparatorProps = ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.Separator\n>;\n\nconst ContextMenuSeparator = forwardRef<\n ContextMenuSeparatorElement,\n ContextMenuSeparatorProps\n>(({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n));\n\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction ContextMenuShortcut({\n className,\n ...props\n}: ContextMenuShortcutProps): 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: ContextMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuArrowElement = ComponentRef<typeof ContextMenuPrimitive.Arrow>;\ntype ContextMenuArrowProps = ContextMenuPrimitive.ContextMenuArrowProps;\n\nconst ContextMenuArrow = forwardRef<\n ContextMenuArrowElement,\n ContextMenuArrowProps\n>(({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Arrow\n ref={forwardedRef}\n className={cn('fill-popover', className)}\n {...props}\n />\n));\n\nContextMenuArrow.displayName = ContextMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n type ContextMenuArrowProps,\n type ContextMenuCheckboxItemProps,\n type ContextMenuContentProps,\n type ContextMenuGroupProps,\n type ContextMenuItemProps,\n type ContextMenuLabelProps,\n type ContextMenuProps,\n type ContextMenuRadioGroupProps,\n type ContextMenuRadioItemProps,\n type ContextMenuSeparatorProps,\n type ContextMenuShortcutProps,\n type ContextMenuSubContentProps,\n type ContextMenuSubProps,\n type ContextMenuSubTriggerProps,\n type ContextMenuTriggerProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CEKEAPXG.cjs","../src/components/switch.tsx"],"names":["Switch","forwardRef","className","props","forwardedRef","jsx","cn"],"mappings":"AAAA,mZAAwC,oGCCN,8BAK3B,+CAsBD,IAbAA,CAAAA,CAASC,+BAAAA,CACZ,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAkB,CAAA,IAAA,CAAjB,CACC,SAAA,CAAWC,iCAAAA,8GACT,CACA,iEAAA,CACA,+EAAA,CACA,6CAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CAEL,QAAA,CAAAC,6BAAAA,CAAkB,CAAA,KAAA,CAAjB,CACC,SAAA,CAAWC,iCAAAA,+EACT,CACA,yEACF,CAAA,CACF,CAAA,CACF,CAEJ,CAAA,CAEAN,CAAAA,CAAO,WAAA,CAA+B,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CEKEAPXG.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Switch\n * -------------------------------------------------------------------------- */\n\ntype SwitchElement = ComponentRef<typeof SwitchPrimitives.Root>;\ntype SwitchProps = ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;\n\nconst Switch = forwardRef<SwitchElement, SwitchProps>(\n ({ className, ...props }, forwardedRef) => (\n <SwitchPrimitives.Root\n className={cn(\n 'peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition',\n 'data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',\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 ref={forwardedRef}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n 'bg-background pointer-events-none block size-4 rounded-full shadow transition',\n 'data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0',\n )}\n />\n </SwitchPrimitives.Root>\n ),\n);\n\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Switch, type SwitchProps };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-E4OOKNPK.cjs","../src/components/separator.tsx"],"names":["separatorVariants","tv","Separator","forwardRef","className","orientation","align","decorative","props","forwardedRef","jsx","SeparatorItem","cn"],"mappings":"AAAA,mZAAwC,6GCCJ,8BAM7B,qDAC+B,+CA0ClC,IApCEA,CAAAA,CAAoBC,kCAAAA,CACxB,IAAA,CAAM,8CAAA,CACN,eAAA,CAAiB,CACf,KAAA,CAAO,QAAA,CACP,WAAA,CAAa,YACf,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,KAAA,CAAO,eAAA,CACP,MAAA,CAAQ,gBAAA,CACR,GAAA,CAAK,aACP,CAAA,CACA,WAAA,CAAa,CACX,UAAA,CAAY,aAAA,CACZ,QAAA,CAAU,sBACZ,CACF,CACF,CAAC,CAAA,CAcKC,CAAAA,aAAYC,+BAAAA,CAEd,CAAE,SAAA,CAAAC,CAAAA,CAAW,WAAA,CAAAC,CAAAA,CAAa,KAAA,CAAAC,CAAAA,CAAO,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAA,CAAM,GAAGC,CAAM,CAAA,CAC7DC,CAAAA,CAAAA,EAEAC,6BAAAA,CAAoB,CAAA,IAAA,CAAnB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWT,CAAAA,CAAkB,CAAE,KAAA,CAAAM,CAAAA,CAAO,WAAA,CAAAD,CAAAA,CAAa,SAAA,CAAAD,CAAU,CAAC,CAAA,CAC9D,UAAA,CAAYG,CAAAA,CACZ,WAAA,CAAaF,CAAAA,CACZ,GAAGG,CAAAA,CACN,CAEJ,CAAA,CAEAN,CAAAA,CAAU,WAAA,CAAiC,CAAA,CAAA,IAAA,CAAK,WAAA,CAShD,IAAMS,CAAAA,CAAgBR,+BAAAA,CACnB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGI,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,KAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWG,iCAAAA,gEACT,CACAR,CACF,CAAA,CACC,GAAGI,CAAAA,CACN,CAEJ,CAAA,CAEAG,CAAAA,CAAc,WAAA,CAAc,eAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-E4OOKNPK.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n} from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Separator\n * -------------------------------------------------------------------------- */\n\nconst separatorVariants = tv({\n base: 'bg-muted relative flex shrink-0 items-center',\n defaultVariants: {\n align: 'center',\n orientation: 'horizontal',\n },\n variants: {\n align: {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n },\n orientation: {\n horizontal: 'h-px w-full',\n vertical: 'h-full w-px flex-col',\n },\n },\n});\n\ntype SeparatorVariantsProps = VariantProps<typeof separatorVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Separator\n * -------------------------------------------------------------------------- */\n\ntype SeparatorElement = ComponentRef<typeof SeparatorPrimitive.Root>;\n\ninterface SeparatorProps\n extends ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>,\n Omit<SeparatorVariantsProps, 'orientation'> {}\n\nconst Separator = forwardRef<SeparatorElement, SeparatorProps>(\n (\n { className, orientation, align, decorative = true, ...props },\n forwardedRef,\n ) => (\n <SeparatorPrimitive.Root\n ref={forwardedRef}\n className={separatorVariants({ align, orientation, className })}\n decorative={decorative}\n orientation={orientation}\n {...props}\n />\n ),\n);\n\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SeparatorItem\n * -------------------------------------------------------------------------- */\n\ntype SeparatorItemElement = HTMLDivElement;\ntype SeparatorItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst SeparatorItem = forwardRef<SeparatorItemElement, SeparatorItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <div\n ref={forwardedRef}\n className={cn(\n 'bg-background text-muted-foreground absolute mx-2 px-2 text-sm',\n className,\n )}\n {...props}\n />\n ),\n);\n\nSeparatorItem.displayName = 'SeparatorItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Separator, SeparatorItem, type SeparatorProps };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/form.tsx"],"names":["createContextScope","Slot","result","forwardRef","useId","Controller","FormProvider","useFormState","jsx","Form","FORM_FIELD_NAME","createFormFieldContext","createFormFieldScope","FormFieldProvider","useFormFieldContext","useFormItem","consumerName","scope","id","useFormItemContext","FormField","formFieldProps","__scopeFormField","props","FORM_ITEM_NAME","FormItemProvider","FormItem","className","forwardedRef","cn","FORM_LABEL_NAME","FormLabel","formItemId","FORM_MESSAGE_NAME","Label","FORM_CONTROL_NAME","FormControl","formDescriptionId","formMessageId","name","errors","FORM_DESCRIPTION_NAME","FormDescription","FormMessage","children","error","body"],"mappings":"2EAIA,OAAS,sBAAAA,MAAsC,0BAE/C,OAAS,QAAAC,MAAY,uBACrB,OAAS,UAAAC,MAAc,YACvB,OAIE,cAAAC,EAGA,SAAAC,MACK,QACP,OACE,cAAAC,EAIA,gBAAAC,EAEA,gBAAAC,MACK,kBAgED,cAAAC,MAAA,oBAzDN,IAAMC,EAAOH,EAMPI,EAAkB,YAIlB,CAACC,EAAwBC,CAAoB,EACjDZ,EAAmBU,CAAe,EAS9B,CAACG,EAAmBC,CAAmB,EAC3CH,EAA8CD,CAAe,EAE/D,SAASK,EACPC,EACAC,EAMA,CACA,GAAM,CAAE,GAAAC,CAAG,EAAIC,EAAmBH,EAAcC,CAAK,EAErD,MAAO,CACL,kBAAmB,yBAAyBC,CAAE,GAC9C,WAAY,aAAaA,CAAE,GAC3B,cAAe,qBAAqBA,CAAE,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GAAGF,CAAiB,IAAIC,CAAa,GADrCD,EAGN,eAAc,EAAQG,EAAOD,CAAI,EACjC,GAAIP,EACH,GAAGT,EACN,CAEJ,CACF,EAEAa,EAAY,YAAcD,EAM1B,IAAMM,EAAwB,kBAKxBC,EAAkBvC,EAItB,CACE,CACE,iBAAAmB,EACA,UAAAK,EACA,GAAGJ,CACL,EACAK,IACG,CACH,GAAM,CAAE,kBAAAS,CAAkB,EAAItB,EAC5BkB,EACAX,CACF,EAEA,OACEd,EAAC,KACC,IAAKoB,EACL,UAAWC,EAAG,gCAAiCF,CAAS,EACxD,GAAIU,EACH,GAAGd,EACN,CAEJ,CACF,EAEAmB,EAAgB,YAAcD,EAM9B,IAAMR,EAAoB,cAKpBU,EAAcxC,EAClB,CACE,CACE,iBAAAmB,EACA,SAAAsB,EACA,UAAAjB,EACA,GAAGJ,CACL,EACAK,IACG,CACH,GAAM,CAAE,cAAAU,CAAc,EAAIvB,EAAYkB,EAAmBX,CAAgB,EACnE,CAAE,KAAAiB,CAAK,EAAIzB,EAAoBmB,EAAmBX,CAAgB,EAClE,CAAE,OAAAkB,CAAO,EAAIjC,EAAa,CAAE,KAAAgC,CAAK,CAAC,EAClCM,EAAQ3C,EAA2BsC,EAAQD,CAAI,EAC/CO,EAAOD,GAAO,QAAU,OAAOA,EAAM,OAAO,EAAID,EAEtD,OAAKE,EAKHtC,EAAC,KACC,IAAKoB,EACL,UAAWC,EACT,UACAgB,GAAO,QACH,+BACA,wBACJlB,CACF,EACA,GAAIW,EACH,GAAGf,EAEH,SAAAuB,EACH,EAjBO,IAmBX,CACF,EAEAH,EAAY,YAAcV","sourcesContent":["'use client';\n\nimport { Label } from '@/components/label';\nimport { cn } from '@/lib/utils';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport type * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport { result } from 'lodash-es';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n useId,\n} from 'react';\nimport {\n Controller,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n FormProvider,\n type GlobalError,\n useFormState,\n} from 'react-hook-form';\n\n/* -----------------------------------------------------------------------------\n * Component: Form\n * -------------------------------------------------------------------------- */\n\ntype FormProps = ComponentProps<typeof FormProvider>;\nconst Form = FormProvider;\n\n/* -----------------------------------------------------------------------------\n * Component: FormField\n * -------------------------------------------------------------------------- */\n\nconst FORM_FIELD_NAME = 'FormField';\n\ntype ScopedProps<P> = P & { __scopeFormField?: Scope };\n\nconst [createFormFieldContext, createFormFieldScope] =\n createContextScope(FORM_FIELD_NAME);\n\ninterface FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> {\n name: TName;\n}\n\nconst [FormFieldProvider, useFormFieldContext] =\n createFormFieldContext<FormFieldContextValue>(FORM_FIELD_NAME);\n\nfunction useFormItem(\n consumerName: string,\n scope: Scope,\n): {\n formDescriptionId: string;\n formItemId: string;\n formMessageId: string;\n id: string;\n} {\n const { id } = useFormItemContext(consumerName, scope);\n\n return {\n formDescriptionId: `form-item-description-${id}`,\n formItemId: `form-item-${id}`,\n formMessageId: `form-item-message-${id}`,\n id,\n };\n}\n\ntype FormFieldProps<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = ControllerProps<TFieldValues, TName>;\n\nfunction FormField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>(formFieldProps: FormFieldProps<TFieldValues, TName>): JSX.Element {\n const { __scopeFormField, ...props } = formFieldProps as ScopedProps<\n FormFieldProps<TFieldValues, TName>\n >;\n\n return (\n <FormFieldProvider name={props.name} scope={__scopeFormField}>\n <Controller {...props} />\n </FormFieldProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormItem\n * -------------------------------------------------------------------------- */\n\nconst FORM_ITEM_NAME = 'FormItem';\n\ninterface FormItemContextValue {\n id: string;\n}\n\nconst [FormItemProvider, useFormItemContext] =\n createFormFieldContext<FormItemContextValue>(FORM_ITEM_NAME);\n\ntype FormItemElement = HTMLDivElement;\ntype FormItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst FormItem = forwardRef<FormItemElement, FormItemProps>(\n (\n { __scopeFormField, className, ...props }: ScopedProps<FormItemProps>,\n forwardedRef,\n ) => {\n const id = useId();\n\n return (\n <FormItemProvider id={id} scope={__scopeFormField}>\n <div\n ref={forwardedRef}\n className={cn('grid gap-2', className)}\n {...props}\n />\n </FormItemProvider>\n );\n },\n);\n\nFormItem.displayName = FORM_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormLabel\n * -------------------------------------------------------------------------- */\n\nconst FORM_LABEL_NAME = 'FormLabel';\n\ntype FormFieldElement = ComponentRef<typeof LabelPrimitive.Root>;\ntype FormLabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst FormLabel = forwardRef<FormFieldElement, FormLabelProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormLabelProps>,\n forwardedRef,\n ) => {\n const { formItemId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return <Label ref={forwardedRef} htmlFor={formItemId} {...props} />;\n },\n);\n\nFormLabel.displayName = FORM_LABEL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormControl\n * -------------------------------------------------------------------------- */\n\nconst FORM_CONTROL_NAME = 'FormControl';\n\ntype FormControlElement = ComponentRef<typeof Slot>;\ntype FormControlProps = ComponentPropsWithoutRef<typeof Slot>;\n\nconst FormControl = forwardRef<FormControlElement, FormControlProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormControlProps>,\n forwardedRef,\n ) => {\n const { formItemId, formDescriptionId, formMessageId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n const { name } = useFormFieldContext(FORM_CONTROL_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n\n return (\n <Slot\n ref={forwardedRef}\n aria-describedby={\n !errors[name]\n ? formDescriptionId\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={Boolean(errors[name])}\n id={formItemId}\n {...props}\n />\n );\n },\n);\n\nFormControl.displayName = FORM_CONTROL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormDescription\n * -------------------------------------------------------------------------- */\n\nconst FORM_DESCRIPTION_NAME = 'FormDescription';\n\ntype FormDescriptionElement = HTMLParagraphElement;\ntype FormDescriptionProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormDescription = forwardRef<\n FormDescriptionElement,\n FormDescriptionProps\n>(\n (\n {\n __scopeFormField,\n className,\n ...props\n }: ScopedProps<FormDescriptionProps>,\n forwardedRef,\n ) => {\n const { formDescriptionId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n\n return (\n <p\n ref={forwardedRef}\n className={cn('text-muted-foreground text-xs', className)}\n id={formDescriptionId}\n {...props}\n />\n );\n },\n);\n\nFormDescription.displayName = FORM_DESCRIPTION_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormMessage\n * -------------------------------------------------------------------------- */\n\nconst FORM_MESSAGE_NAME = 'FormMessage';\n\ntype FormMessageElement = HTMLParagraphElement;\ntype FormMessageProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormMessage = forwardRef<FormMessageElement, FormMessageProps>(\n (\n {\n __scopeFormField,\n children,\n className,\n ...props\n }: ScopedProps<FormMessageProps>,\n forwardedRef,\n ) => {\n const { formMessageId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n const { name } = useFormFieldContext(FORM_MESSAGE_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n const error = result<GlobalError | null>(errors, name);\n const body = error?.message ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={forwardedRef}\n className={cn(\n 'text-xs',\n error?.message\n ? 'text-destructive font-medium'\n : 'text-muted-foreground',\n className,\n )}\n id={formMessageId}\n {...props}\n >\n {body}\n </p>\n );\n },\n);\n\nFormMessage.displayName = FORM_MESSAGE_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n createFormFieldScope,\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n type FormControlProps,\n type FormDescriptionProps,\n type FormFieldProps,\n type FormItemProps,\n type FormLabelProps,\n type FormMessageProps,\n type FormProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EJKVDVBQ.cjs","../src/components/resizable.tsx"],"names":["ResizablePrimitive","className","cn","ResizablePanel","withHandle","jsx","DragHandleDots2Icon"],"mappings":"AAAA,uWAAY,CAAC,wDCGJ,mDAEGA,sHAWR,+CAJF,SAAAC,CAAAA,CACA,CAAA,SAEA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAClB,CAAA,UAAWC,CACT,CAAA,SAAA,CAAA,iCAAA,gBACA,CAAA,gDAYR,CAAA,CAAMC,CAAAA,CAAoC,GAAA,CAAA,CAAA,CAAA,CAAA,IAM1C,CAAA,CAAA,CAAA,CAAA,KACE,CAAA,SAAA,CAAAC,CAAAA,CACA,UAAAH,CAAAA,CACA,CAAA,SAIA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAAA,CAAA,iBACPC,CACT,CAAA,SAAA,CAAA,iCAAA,0DACA,CAAA,gFACA,CAAA,+EACA,CAAA,4CACA,CAAA,8CACA,CAAA,oDACA,CAAA,iDACA,CAAA,oDACA,CAAA,8DACA,CAAA,2DACA,CAAA,wDAKD,CAAA,CAAA,CAAA,CAAA,GACCG,CAAAA,CAAC,QAAI,CAAA,CAAA,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,2EACZC,CAAA,QAAoB,CAAA,6BAAA,+BAAU,CAAA,CAAA,SAAW,CAC5C,UAIR,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EJKVDVBQ.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '@/lib/utils';\nimport { DragHandleDots2Icon } from '@radix-ui/react-icons';\nimport { type ComponentProps, type JSX } from 'react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanelGroup\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element {\n return (\n <ResizablePrimitive.PanelGroup\n className={cn(\n 'flex size-full',\n 'data-[panel-group-direction=vertical]:flex-col',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanel\n * -------------------------------------------------------------------------- */\n\nconst ResizablePanel = ResizablePrimitive.Panel;\n\n/* -----------------------------------------------------------------------------\n * Component: ResizableHandle\n * -------------------------------------------------------------------------- */\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n withHandle?: boolean;\n}): JSX.Element {\n return (\n <ResizablePrimitive.PanelResizeHandle\n className={cn(\n 'bg-border relative flex w-px items-center justify-center',\n 'after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'data-[panel-group-direction=vertical]:h-px',\n 'data-[panel-group-direction=vertical]:w-full',\n 'data-[panel-group-direction=vertical]:after:left-0',\n 'data-[panel-group-direction=vertical]:after:h-1',\n 'data-[panel-group-direction=vertical]:after:w-full',\n 'data-[panel-group-direction=vertical]:after:-translate-y-1/2',\n 'data-[panel-group-direction=vertical]:after:translate-x-0',\n '[&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle ? (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border\">\n <DragHandleDots2Icon className=\"size-2.5\" />\n </div>\n ) : null}\n </ResizablePrimitive.PanelResizeHandle>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,QAA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ils';\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 +0,0 @@
|
|
|
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,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,EACT,sBACA,8EACA,kEACA,uEACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAG,EAAe,YAA+B,UAAQ,YAetD,IAAMC,EAAoBb,EAGxB,CAAC,C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AkB,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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,CACD,EAEDF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CACzB,UAAAJ,EACA,GAAGC,CACL,EAAwC,CACtC,OACEL,EAAC,OACC,UAAWO,EACT,yEACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAgB,CACvB,UAAAL,EACA,GAAGC,CACL,EAAsC,CACpC,OACEL,EAAC,QAAK,UAAWO,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAE1E,CAQA,SAASK,EAAkB,CACzB,UAAAN,EACA,GAAGC,CACL,EAAwC,CACtC,OACEL,EAAC,OACC,UAAWO,EACT,iFACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAWA,IAAMM,EAAmBZ,EAGvB,CAAC,CAAE,UAAAK,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,EAAsB,QAArB,CACC,IAAKM,EACL,UAAWC,EACT,oDACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDM,EAAiB,YAAmC,QAAM,YAa1D,IAAMC,EAAyBb,EAG7B,CAAC,CAAE,UAAAK,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,EAAsB,cAArB,CACC,IAAKM,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CACD,EAEDO,EAAuB,YACA,cAAY,YAgBnC,IAAMC,EAAoBd,EAGxB,CAAC,CAAE,UAAAK,EAAW,KAAAU,EAAM,QAAAC,EAAS,GAAGV,CAAM,EAAGC,IACzCN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWU,EAAe,CAAE,UAAAZ,EAAW,KAAAU,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGV,EACN,CACD,EAEDQ,EAAkB,YAAmC,SAAO,YAgB5D,IAAMI,EAAoBlB,EAGxB,CAAC,CAAE,UAAAK,EAAW,KAAAU,EAAM,QAAAC,EAAU,UAAW,GAAGV,CAAM,EAAGC,IACrDN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWU,EAAe,CAAE,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 +0,0 @@
|
|
|
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,GACH,GACF,CAEJ,EAEAD,EAAc,YAAc,gBAQ5B,SAASK,EAAa,CAAE,UAAAH,EAAW,GAAGJ,CAAM,EAAmC,CAC7E,OACEJ,EAAC,OACC,UAAWU,EAAG,4CAA6CF,CAAS,EACnE,GAAGJ,EACN,CAEJ,CAQA,SAASQ,EAAW,CAAE,UAAAJ,EAAW,GAAGJ,CAAM,EAAiC,CACzE,OACEJ,EAAC,QAAK,UAAWU,EAAG,0BAA2BF,CAAS,EAAI,GAAGJ,EAAO,CAE1E,CAQA,SAASS,EAAa,CAAE,UAAAL,EAAW,GAAGJ,CAAM,EAAmC,CAC7E,OACEJ,EAAC,OACC,UAAWU,EAAG,0CAA2CF,CAAS,EACjE,GAAGJ,EACN,CAEJ,CASA,IAAMU,EAAchB,EAClB,CAAC,CAAE,UAAAU,EAAW,GAAGJ,CAAM,EAAGK,IACxBT,EAACD,EAAgB,MAAhB,CACC,IAAKU,EACL,UAAWC,EACT,oDACAF,CACF,EACC,GAAGJ,EACN,CAEJ,EAEAU,EAAY,YAAcf,EAAgB,MAAM,YAahD,IAAMgB,EAAoBjB,EAGxB,CAAC,CAAE,UAAAU,EAAW,GAAGJ,CAAM,EAAGK,IAC1BT,EAACD,EAAgB,YAAhB,CACC,IAAKU,EACL,UAAWC,EAAG,gCAAiCF,CAAS,EACvD,GAAGJ,EACN,CACD,EAEDW,EAAkB,YAAchB,EAAgB,YAAY,YAc5D,IAAMiB,EAAclB,EAClB,CAAC,CAAE,UAAAU,EAAW,KAAAS,EAAM,QAAAC,EAAU,UAAW,GAAGd,CAAM,EAAGK,IACnDT,EAACD,EAAgB,MAAhB,CACC,IAAKU,EACL,UAAWU,EAAe,CAAE,UAAAX,EAAW,KAAAS,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGd,EACN,CAEJ,EAEAY,EAAY,YAAcjB,EAAgB,MAAM","sourcesContent":["'use client';\n\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/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 +0,0 @@
|
|
|
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,8BAAAA,CAAyB,CAAA,IAAA,CAAxB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,iEACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEH,QAAA,CAAA,CAAAF,CAAAA,CAC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AAA,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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GTFDLZHV.cjs","../src/components/textarea.tsx"],"names":["Textarea","forwardRef","className","props","forwardedRef","jsx","cn"],"mappings":"AAAA,iIAAwC,8BCCgB,+CAWpD,IAFEA,CAAAA,CAAWC,+BAAAA,CACd,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,UAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CAEP,qGAAA,CACA,+EAAA,CACA,mCAAA,CACA,6CACF,CAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAH,CAAAA,CAAS,WAAA,CAAc,UAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GTFDLZHV.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport { forwardRef, type TextareaHTMLAttributes } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ntype TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = forwardRef<TextareaElement, TextareaProps>(\n ({ className, ...props }, forwardedRef) => (\n <textarea\n ref={forwardedRef}\n className={cn(\n [\n 'border-input flex min-h-16 w-full grow rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'placeholder:text-muted-foreground',\n 'disabled:cursor-default disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n />\n ),\n);\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/checkbox-group.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","forwardRef","jsx","CheckboxGroup","className","props","forwardedRef","cn","CheckboxGroupItem"],"mappings":"wCACA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,wBAC1B,OAGE,cAAAC,MACK,QAaH,cAAAC,MAAA,oBAFJ,IAAMC,EAAgBF,EACpB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACN,CAEJ,EAEAF,EAAc,YAAc,gBAa5B,IAAMK,EAAoBP,EAGxB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IAC1BJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EACT,CACE,kEACA,uBACA,2FACA,gFACA,kDACF,EACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACF,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CACD,EAEDQ,EAAkB,YAAc","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: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxGroup = forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root\n ref={forwardedRef}\n className={cn('grid gap-2', className)}\n {...props}\n />\n ),\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = ComponentRef<\n typeof CheckboxGroupPrimitive.Item\n>;\ntype CheckboxGroupItemProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\nconst CheckboxGroupItem = forwardRef<\n CheckboxGroupItemElement,\n CheckboxGroupItemProps\n>(({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input peer 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:pointer-events-none disabled:opacity-50',\n ],\n className,\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));\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxGroup,\n CheckboxGroupItem,\n type CheckboxGroupItemProps,\n type CheckboxGroupProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/textarea.tsx"],"names":["forwardRef","jsx","Textarea","className","props","forwardedRef","cn"],"mappings":"wCACA,OAAS,cAAAA,MAA+C,QAWpD,cAAAC,MAAA,oBAFJ,IAAMC,EAAWF,EACf,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,YACC,IAAKI,EACL,UAAWC,EACT,CACE,sGACA,gFACA,oCACA,6CACF,EACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAF,EAAS,YAAc","sourcesContent":["import { cn } from '@/lib/utils';\nimport { forwardRef, type TextareaHTMLAttributes } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ntype TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = forwardRef<TextareaElement, TextareaProps>(\n ({ className, ...props }, forwardedRef) => (\n <textarea\n ref={forwardedRef}\n className={cn(\n [\n 'border-input flex min-h-16 w-full grow rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'placeholder:text-muted-foreground',\n 'disabled:cursor-default disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n />\n ),\n);\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ID2YVK5K.cjs","../src/components/tabs.tsx"],"names":["Tabs","TabsList","forwardRef","className","props","forwardedRef","jsx","cn","TabsTrigger","TabsContent"],"mappings":"AAAA,mZAAwC,8FCCT,8BAKxB,+CAkBH,IAXEA,CAAAA,CAAqB,CAAA,CAAA,IAAA,CASrBC,CAAAA,aAAWC,+BAAAA,CACd,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAe,CAAA,IAAA,CAAd,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,kGACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAH,CAAAA,CAAS,WAAA,CAA4B,CAAA,CAAA,IAAA,CAAK,WAAA,CAS1C,IAAMO,CAAAA,CAAcN,+BAAAA,CACjB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,yIACT,CACA,qGAAA,CACA,+EAAA,CACA,kDAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAI,CAAAA,CAAY,WAAA,CAA4B,CAAA,CAAA,OAAA,CAAQ,WAAA,CAShD,IAAMC,CAAAA,CAAcP,+BAAAA,CACjB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,iBACT,CACA,+EAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAK,CAAAA,CAAY,WAAA,CAA4B,CAAA,CAAA,OAAA,CAAQ,WAAA,CAAA,2DAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ID2YVK5K.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\ntype TabsProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Root>;\nconst Tabs = TabsPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\ntype TabsListElement = ComponentRef<typeof TabsPrimitive.List>;\ntype TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = forwardRef<TabsListElement, TabsListProps>(\n ({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.List\n ref={forwardedRef}\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-10 items-center justify-center gap-1 rounded-md p-1',\n className,\n )}\n {...props}\n />\n ),\n);\n\nTabsList.displayName = TabsPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\ntype TabsTriggerElement = ComponentRef<typeof TabsPrimitive.Trigger>;\ntype TabsTriggerProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;\n\nconst TabsTrigger = forwardRef<TabsTriggerElement, TabsTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium outline-transparent transition-all',\n 'data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n />\n ),\n);\n\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\ntype TabsContentElement = ComponentRef<typeof TabsPrimitive.Content>;\ntype TabsContentProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;\n\nconst TabsContent = forwardRef<TabsContentElement, TabsContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'mt-2 rounded-md',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n className,\n )}\n {...props}\n />\n ),\n);\n\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n type TabsContentProps,\n type TabsListProps,\n type TabsProps,\n type TabsTriggerProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/input-otp.tsx"],"names":["DotFilledIcon","OTPInput","OTPInputContext","REGEXP_ONLY_CHARS","REGEXP_ONLY_DIGITS","REGEXP_ONLY_DIGITS_AND_CHARS","forwardRef","useContext","jsx","jsxs","InputOTP","className","containerClassName","props","forwardedRef","cn","InputOTPGroup","InputOTPSlot","index","slot","InputOTPSeparator"],"mappings":"wCAGA,OAAS,iBAAAA,MAAqB,wBAC9B,OACE,YAAAC,EACA,mBAAAC,EACA,qBAAAC,EACA,sBAAAC,EACA,gCAAAC,MACK,YACP,OAGE,cAAAC,EAEA,cAAAC,MACK,QAWH,cAAAC,EAkDE,QAAAC,MAlDF,oBAFJ,IAAMC,EAAWJ,EACf,CAAC,CAAE,UAAAK,EAAW,mBAAAC,EAAoB,GAAGC,CAAM,EAAGC,IAC5CN,EAACP,EAAA,CACC,IAAKa,EACL,UAAWC,EAAG,0BAA2BJ,CAAS,EAClD,mBAAoBI,EAClB,0BACA,6BACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAH,EAAS,YAAc,WASvB,IAAMM,EAAgBV,EACpB,CAAC,CAAE,UAAAK,EAAW,GAAGE,CAAM,EAAGC,IACxBN,EAAC,OACC,IAAKM,EACL,UAAWC,EAAG,oBAAqBJ,CAAS,EAC3C,GAAGE,EACN,CAEJ,EAEAG,EAAc,YAAc,gBAY5B,IAAMC,EAAeX,EACnB,CAAC,CAAE,MAAAY,EAAO,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IAAiB,CAEhD,IAAMK,EADkBZ,EAAWL,CAAe,EACrB,MAAMgB,CAAK,EAExC,OACET,EAAC,OACC,IAAKK,EACL,UAAWC,EACT,oHACA,oCACA,oBACAI,GAAM,UAAY,yBAClBR,CACF,EACC,GAAGE,EAEH,UAAAM,GAAM,KACNA,GAAM,aACLX,EAAC,OAAI,UAAU,wEACb,SAAAA,EAAC,OAAI,UAAU,mEAAmE,EACpF,EACE,MACN,CAEJ,CACF,EAEAS,EAAa,YAAc,eAS3B,IAAMG,EAAoBd,EAGxB,CAAC,CAAE,GAAGO,CAAM,EAAGC,IACfN,EAAC,OAAI,IAAKM,EAAc,KAAK,YAAa,GAAGD,EAC3C,SAAAL,EAACR,EAAA,EAAc,EACjB,CACD,EAEDoB,EAAkB,YAAc","sourcesContent":["'use client';\n\nimport { cn } from '@/lib/utils';\nimport { DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n OTPInput,\n OTPInputContext,\n REGEXP_ONLY_CHARS,\n REGEXP_ONLY_DIGITS,\n REGEXP_ONLY_DIGITS_AND_CHARS,\n} from 'input-otp';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n useContext,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOtp\n * -------------------------------------------------------------------------- */\n\ntype InputOTPElement = ComponentRef<typeof OTPInput>;\ntype InputOTPProps = ComponentPropsWithoutRef<typeof OTPInput>;\n\nconst InputOTP = forwardRef<InputOTPElement, InputOTPProps>(\n ({ className, containerClassName, ...props }, forwardedRef) => (\n <OTPInput\n ref={forwardedRef}\n className={cn('disabled:cursor-default', className)}\n containerClassName={cn(\n 'flex items-center gap-2',\n 'has-[:disabled]:opacity-50',\n containerClassName,\n )}\n {...props}\n />\n ),\n);\n\nInputOTP.displayName = 'InputOTP';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPGroup\n * -------------------------------------------------------------------------- */\n\ntype InputOTPGroupElement = HTMLDivElement;\ntype InputOTPGroupProps = HTMLAttributes<HTMLDivElement>;\n\nconst InputOTPGroup = forwardRef<InputOTPGroupElement, InputOTPGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <div\n ref={forwardedRef}\n className={cn('flex items-center', className)}\n {...props}\n />\n ),\n);\n\nInputOTPGroup.displayName = 'InputOTPGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSlot\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSlotElement = HTMLDivElement;\n\ninterface InputOTPSlotProps extends HTMLAttributes<HTMLDivElement> {\n index: number;\n}\n\nconst InputOTPSlot = forwardRef<InputOTPSlotElement, InputOTPSlotProps>(\n ({ index, className, ...props }, forwardedRef) => {\n const inputOTPContext = useContext(OTPInputContext);\n const slot = inputOTPContext.slots[index];\n\n return (\n <div\n ref={forwardedRef}\n className={cn(\n 'border-input relative flex size-10 items-center justify-center border-y border-r text-sm shadow-sm transition-all',\n 'first:rounded-l-md first:border-l',\n 'last:rounded-r-md',\n slot?.isActive && 'z-10 outline outline-2',\n className,\n )}\n {...props}\n >\n {slot?.char}\n {slot?.hasFakeCaret ? (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground animate-duration-1000 h-4 w-px\" />\n </div>\n ) : null}\n </div>\n );\n },\n);\n\nInputOTPSlot.displayName = 'InputOTPSlot';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSeparator\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSeparatorElement = HTMLDivElement;\ntype InputOTPSeparatorProps = HTMLAttributes<HTMLDivElement>;\n\nconst InputOTPSeparator = forwardRef<\n InputOTPSeparatorElement,\n InputOTPSeparatorProps\n>(({ ...props }, forwardedRef) => (\n <div ref={forwardedRef} role=\"separator\" {...props}>\n <DotFilledIcon />\n </div>\n));\n\nInputOTPSeparator.displayName = 'InputOTPSeparator';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n InputOTP,\n InputOTPGroup,\n InputOTPSeparator,\n InputOTPSlot,\n REGEXP_ONLY_CHARS,\n REGEXP_ONLY_DIGITS,\n REGEXP_ONLY_DIGITS_AND_CHARS,\n type InputOTPGroupProps,\n type InputOTPProps,\n type InputOTPSeparatorProps,\n type InputOTPSlotProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/alert.tsx"],"names":["forwardRef","tv","jsx","alertVariants","Alert","className","variant","props","forwardedRef","AlertTitle","children","cn","AlertDescription"],"mappings":"wCACA,OAAS,cAAAA,MAAuC,QAChD,OAAS,MAAAC,MAA6B,oBA+BlC,cAAAC,MAAA,oBAzBJ,IAAMC,EAAgBF,EAAG,CACvB,KAAM,2IACN,gBAAiB,CACf,QAAS,SACX,EACA,SAAU,CACR,QAAS,CACP,QAAS,wDACT,YACE,yFACJ,CACF,CACF,CAAC,EAWKG,EAAQJ,EACZ,CAAC,CAAE,UAAAK,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IACjCN,EAAC,OACC,IAAKM,EACL,UAAWL,EAAc,CAAE,QAAAG,EAAS,UAAAD,CAAU,CAAC,EAC/C,KAAK,QACJ,GAAGE,EACN,CAEJ,EAEAH,EAAM,YAAc,QASpB,IAAMK,EAAaT,EACjB,CAAC,CAAE,SAAAU,EAAU,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IAClCN,EAAC,MACC,IAAKM,EACL,UAAWG,EAAG,+CAAgDN,CAAS,EACtE,GAAGE,EAEH,SAAAG,EACH,CAEJ,EAEAD,EAAW,YAAc,aASzB,IAAMG,EAAmBZ,EAGvB,CAAC,CAAE,UAAAK,EAAW,GAAGE,CAAM,EAAGC,IAC1BN,EAAC,OACC,IAAKM,EACL,UAAWG,EAAG,gCAAiCN,CAAS,EACvD,GAAGE,EACN,CACD,EAEDK,EAAiB,YAAc","sourcesContent":["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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IQW2BNVB.cjs","../src/components/text-input.tsx"],"names":["root","input","inputVariants","TextInput","forwardRef","className","inputSize","loaderPosition","loading","prefix","spinner","suffix","props","forwardedRef","jsx","Spinner"],"mappings":"AAAA,mZAAwC,wDAAyC,oFCKjD,8BAMzB,+CAuDmB,GAjDpB,CAAE,IAAA,CAAAA,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAc,CA8BhCC,CAAAA,aAAYC,+BAAAA,CAEd,CACE,SAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EAEAC,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CACC,SAAA,CAAWd,CAAAA,CAAK,CAAE,SAAA,CAAAM,CAAAA,CAAW,SAAA,CAAAD,CAAU,CAAC,CAAA,CACxC,cAAA,CAAgBE,CAAAA,CAChB,OAAA,CAASC,CAAAA,CACT,MAAA,CAAQC,CAAAA,CACR,OAAA,CAASC,CAAAA,EAAWI,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAC7B,MAAA,CAAQJ,CAAAA,CAER,QAAA,CAAAG,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWZ,CAAAA,CAAM,CAAE,SAAA,CAAAK,CAAU,CAAC,CAAA,CAC7B,GAAGM,CAAAA,CACN,CAAA,CACF,CAEJ,CAAA,CAEAT,CAAAA,CAAU,WAAA,CAAc,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IQW2BNVB.cjs","sourcesContent":[null,"import { Spinner } from '@/components/spinner';\nimport {\n inputVariants,\n type InputVariantsProps,\n} from '@/styles/input-variants';\nimport * as InputPrimitive from '@codefast-ui/input';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = ComponentRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n ComponentProps<typeof InputPrimitive.Root>,\n Omit<\n ComponentPropsWithoutRef<typeof InputPrimitive.Item>,\n 'prefix' | 'type'\n > {\n type?:\n | 'text'\n | 'email'\n | 'password'\n | 'number'\n | 'tel'\n | 'url'\n | 'date'\n | 'time'\n | 'datetime-local'\n | 'month'\n | 'week'\n | 'file'\n | 'search';\n}\n\nconst TextInput = forwardRef<TextInputElement, TextInputProps>(\n (\n {\n className,\n inputSize,\n loaderPosition,\n loading,\n prefix,\n spinner,\n suffix,\n ...props\n },\n forwardedRef,\n ) => (\n <InputPrimitive.Root\n className={root({ inputSize, className })}\n loaderPosition={loaderPosition}\n loading={loading}\n prefix={prefix}\n spinner={spinner || <Spinner />}\n suffix={suffix}\n >\n <InputPrimitive.Item\n ref={forwardedRef}\n className={input({ inputSize })}\n {...props}\n />\n </InputPrimitive.Root>\n ),\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps };\n"]}
|