@codefast/ui 0.1.42 → 0.1.43
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 +7 -7
- 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-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,oHC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A,CAAsB,CAAA,KAAA,CAArB,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWE,iCAAAA,qBACT,CACA,yCAAA,CACAJ,CAAAA,EAAS,MAAA,CACTD,CACF,CAAA,CACC,GAAGE,CAAAA,CACN,CACD,CAAA,CAEDc,CAAAA,CAAiB,WAAA,CAAmC,CAAA,CAAA,KAAA,CAAM,WAAA,CAa1D,IAAMC,CAAAA,CAAuBnB,+BAAAA,CAG1B,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BG,6BAAAA,CAAsB,CAAA,SAAA,CAArB,CACC,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,SA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AAID,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,EAAi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ACC,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,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CAAS,uDAAA,CACT,WAAA,CACE,yFACJ,CACF,CACF,CAAC,CAAA,CAWKC,CAAAA,aAAQC,+BAAAA,CACX,CAAE,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjCC,6BAAAA,KAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWP,CAAAA,CAAc,CAAE,OAAA,CAAAK,CAAAA,CAAS,SAAA,CAAAD,CAAU,CAAC,CAAA,CAC/C,IAAA,CAAK,OAAA,CACJ,GAAGE,CAAAA,CACN,CAEJ,CAAA,CAEAJ,CAAAA,CAAM,WAAA,CAAc,OAAA,CASpB,IAAMO,CAAAA,CAAaN,+BAAAA,CAChB,CAAE,QAAA,CAAAO,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,IAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWI,iCAAAA,8CAAG,CAAgDP,CAAS,CAAA,CACtE,GAAGE,CAAAA,CAEH,QAAA,CAAAI,CAAAA,CACH,CAEJ,CAAA,CAEAD,CAAAA,CAAW,WAAA,CAAc,YAAA,CASzB,IAAMG,CAAAA,CAAmBT,+BAAAA,CAGtB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BC,6BAAAA,KAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWI,iCAAAA,+BAAG,CAAiCP,CAAS,CAAA,CACvD,GAAGE,CAAAA,CACN,CACD,CAAA,CAEDM,CAAAA,CAAiB,WAAA,CAAc,kBAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EUKWGLGW.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport { forwardRef, type HTMLAttributes } from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = tv({\n base: '[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',\n defaultVariants: {\n variant: 'default',\n },\n variants: {\n variant: {\n default: 'bg-background text-foreground [&>svg]:text-foreground',\n destructive:\n 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',\n },\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = forwardRef<AlertElement, AlertProps>(\n ({ className, variant, ...props }, forwardedRef) => (\n <div\n ref={forwardedRef}\n className={alertVariants({ variant, className })}\n role=\"alert\"\n {...props}\n />\n ),\n);\n\nAlert.displayName = 'Alert';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = forwardRef<AlertTitleElement, AlertTitleProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <h5\n ref={forwardedRef}\n className={cn('mb-1 font-medium leading-none tracking-tight', className)}\n {...props}\n >\n {children}\n </h5>\n ),\n);\n\nAlertTitle.displayName = 'AlertTitle';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = forwardRef<\n AlertDescriptionElement,\n AlertDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <div\n ref={forwardedRef}\n className={cn('text-sm [&_p]:leading-relaxed', className)}\n {...props}\n />\n));\n\nAlertDescription.displayName = 'AlertDescription';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Alert,\n AlertDescription,\n AlertTitle,\n type AlertDescriptionProps,\n type AlertProps,\n type AlertTitleProps,\n};\n"]}
|
|
@@ -1 +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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D,IAAMC,EAAmB1B,EAGvB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IAC1BT,EAAkB,YAAjB,CACC,IAAKS,EACL,UAAWC,EAAG,0BAA2BH,CAAS,EACjD,GAAGC,EACN,CACD,EAEDiB,EAAiB,YAA+B,YAAU,YAQ1D,SAASC,EAAgB,CACvB,UAAAnB,EACA,GAAGC,CACL,EAAsC,CACpC,OACER,EAAC,QACC,UAAWU,EACT,wDACAH,CACF,EACC,GAAGC,EACN,CAEJ,CASA,IAAMmB,EAAe5B,EACnB,CAAC,CAAE,UAAAQ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAkB,QAAjB,CACC,IAAKS,EACL,UAAWC,EAAG,eAAgBH,CAAS,EACtC,GAAGC,EACN,CAEJ,EAEAmB,EAAa,YAA+B,QAAM","sourcesContent":["import { cn } from '@/lib/utils';\nimport {\n CheckIcon,\n ChevronRightIcon,\n DotFilledIcon,\n} from '@radix-ui/react-icons';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarMenu\n * -------------------------------------------------------------------------- */\n\ntype MenubarMenuProps = ComponentProps<typeof MenubarPrimitive.Menu>;\nconst MenubarMenu = MenubarPrimitive.Menu;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarGroupProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Group\n>;\nconst MenubarGroup = MenubarPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSub\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Sub>;\nconst MenubarSub = MenubarPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioGroupProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.RadioGroup\n>;\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\ntype MenubarElement = ComponentRef<typeof MenubarPrimitive.Root>;\ntype MenubarProps = ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>;\n\nconst Menubar = forwardRef<MenubarElement, MenubarProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'bg-background flex h-10 items-center space-x-1 rounded-md border p-1',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarTriggerElement = ComponentRef<typeof MenubarPrimitive.Trigger>;\ntype MenubarTriggerProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Trigger\n>;\n\nconst MenubarTrigger = forwardRef<MenubarTriggerElement, MenubarTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm font-medium',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubTriggerElement = ComponentRef<\n typeof MenubarPrimitive.SubTrigger\n>;\n\ninterface MenubarSubTriggerProps\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst MenubarSubTrigger = forwardRef<\n MenubarSubTriggerElement,\n MenubarSubTriggerProps\n>(({ children, className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </MenubarPrimitive.SubTrigger>\n));\n\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubContentElement = ComponentRef<\n typeof MenubarPrimitive.SubContent\n>;\ntype MenubarSubContentProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.SubContent\n>;\n\nconst MenubarSubContent = forwardRef<\n MenubarSubContentElement,\n MenubarSubContentProps\n>(({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\n\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarContentElement = ComponentRef<typeof MenubarPrimitive.Content>;\ntype MenubarContentProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Content\n>;\n\nconst MenubarContent = forwardRef<MenubarContentElement, MenubarContentProps>(\n (\n { className, align = 'start', alignOffset = -4, sideOffset = 8, ...props },\n forwardedRef,\n ) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={forwardedRef}\n align={align}\n alignOffset={alignOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </MenubarPrimitive.Portal>\n ),\n);\n\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarItemElement = ComponentRef<typeof MenubarPrimitive.Item>;\n\ninterface MenubarItemProps\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> {\n inset?: boolean;\n}\n\nconst MenubarItem = forwardRef<MenubarItemElement, MenubarItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarCheckboxItemElement = ComponentRef<\n typeof MenubarPrimitive.CheckboxItem\n>;\ntype MenubarCheckboxItemProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.CheckboxItem\n>;\n\nconst MenubarCheckboxItem = forwardRef<\n MenubarCheckboxItemElement,\n MenubarCheckboxItemProps\n>(({ children, className, checked, ...props }, forwardedRef) => (\n <MenubarPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\n\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioItemElement = ComponentRef<typeof MenubarPrimitive.RadioItem>;\ntype MenubarRadioItemProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.RadioItem\n>;\n\nconst MenubarRadioItem = forwardRef<\n MenubarRadioItemElement,\n MenubarRadioItemProps\n>(({ children, className, ...props }, forwardedRef) => (\n <MenubarPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\n\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\ntype MenubarLabelElement = ComponentRef<typeof MenubarPrimitive.Label>;\n\ninterface MenubarLabelProps\n extends ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> {\n inset?: boolean;\n}\n\nconst MenubarLabel = forwardRef<MenubarLabelElement, MenubarLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <MenubarPrimitive.Label\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex items-center text-sm font-semibold',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\ntype MenubarSeparatorElement = ComponentRef<typeof MenubarPrimitive.Separator>;\ntype MenubarSeparatorProps = ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Separator\n>;\n\nconst MenubarSeparator = forwardRef<\n MenubarSeparatorElement,\n MenubarSeparatorProps\n>(({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n));\n\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\ntype MenubarShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction MenubarShortcut({\n className,\n ...props\n}: MenubarShortcutProps): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground ml-auto text-xs tracking-widest',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\ntype MenubarArrowElement = ComponentRef<typeof MenubarPrimitive.Arrow>;\ntype MenubarArrowProps = MenubarPrimitive.MenubarArrowProps;\n\nconst MenubarArrow = forwardRef<MenubarArrowElement, MenubarArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <MenubarPrimitive.Arrow\n ref={forwardedRef}\n className={cn('fill-popover', className)}\n {...props}\n />\n ),\n);\n\nMenubarArrow.displayName = MenubarPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Menubar,\n MenubarArrow,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n type MenubarArrowProps,\n type MenubarCheckboxItemProps,\n type MenubarContentProps,\n type MenubarGroupProps,\n type MenubarItemProps,\n type MenubarLabelProps,\n type MenubarMenuProps,\n type MenubarProps,\n type MenubarRadioGroupProps,\n type MenubarRadioItemProps,\n type MenubarSeparatorProps,\n type MenubarShortcutProps,\n type MenubarSubContentProps,\n type MenubarSubProps,\n type MenubarSubTriggerProps,\n type MenubarTriggerProps,\n};\n"]}
|
|
@@ -1 +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,w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ArB,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,G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gB,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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AAuB,WAAA,CACG,CAAA,CAAA,QAAA,CAAS,WAAA,CAanC,IAAME,CAAAA,CAA0BV,+BAAAA,CAG7B,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BG,6BAAAA,CAAyB,CAAA,SAAA,CAAxB,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWE,iCAAAA,2JACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAI,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,8DAAA,CAA+D,CAAA,CAChF,CACD,CAAA,CAEDG,CAAAA,CAAwB,WAAA,CACE,CAAA,CAAA,SAAA,CAAU,WAAA,CAAA,yFAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GCH6J4AU.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { ChevronDownIcon } from '@radix-ui/react-icons';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenu\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuElement = ComponentRef<typeof NavigationMenuPrimitive.Root>;\ntype NavigationMenuProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Root\n>;\n\nconst NavigationMenu = forwardRef<NavigationMenuElement, NavigationMenuProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'relative z-10 flex max-w-max flex-1 items-center justify-center',\n className,\n )}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n ),\n);\n\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuList\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuListElement = ComponentRef<\n typeof NavigationMenuPrimitive.List\n>;\ntype NavigationMenuListProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.List\n>;\n\nconst NavigationMenuList = forwardRef<\n NavigationMenuListElement,\n NavigationMenuListProps\n>(({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.List\n ref={forwardedRef}\n className={cn(\n 'group flex flex-1 list-none items-center justify-center space-x-1',\n className,\n )}\n {...props}\n >\n {children}\n <NavigationMenuIndicator />\n </NavigationMenuPrimitive.List>\n));\n\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuItem\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuItemProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Item\n>;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuTriggerElement = ComponentRef<\n typeof NavigationMenuPrimitive.Trigger\n>;\ntype NavigationMenuTriggerProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Trigger\n>;\n\nconst NavigationMenuTrigger = forwardRef<\n NavigationMenuTriggerElement,\n NavigationMenuTriggerProps\n>(({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'ghost',\n className: [\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n 'group',\n className,\n ],\n })}\n {...props}\n >\n {children}\n <ChevronDownIcon\n aria-hidden=\"true\"\n className={cn(\n 'relative top-px ml-1 size-3 transition',\n 'group-data-[state=open]:rotate-180',\n )}\n />\n </NavigationMenuPrimitive.Trigger>\n));\n\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuContentElement = ComponentRef<\n typeof NavigationMenuPrimitive.Content\n>;\ntype NavigationMenuContentProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Content\n>;\n\nconst NavigationMenuContent = forwardRef<\n NavigationMenuContentElement,\n NavigationMenuContentProps\n>(({ className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'left-0 top-0 w-full md:absolute md:w-auto',\n 'data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in',\n 'data-[motion=from-end]:slide-in-from-right-52',\n 'data-[motion=from-start]:slide-in-from-left-52',\n 'data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out',\n 'data-[motion=to-end]:slide-out-to-right-52',\n 'data-[motion=to-start]:slide-out-to-left-52',\n className,\n )}\n {...props}\n />\n));\n\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuLink\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuLinkProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Link\n>;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuViewport\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuViewportElement = ComponentRef<\n typeof NavigationMenuPrimitive.Viewport\n>;\ntype NavigationMenuViewportProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Viewport\n>;\n\nconst NavigationMenuViewport = forwardRef<\n NavigationMenuViewportElement,\n NavigationMenuViewportProps\n>(({ className, ...props }, forwardedRef) => (\n <div className=\"perspective-[125rem] absolute left-0 top-full flex justify-center\">\n <NavigationMenuPrimitive.Viewport\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground relative mt-1.5 w-full origin-[top_center] overflow-hidden rounded-md border p-1 shadow-md transition-[width,height]',\n 'h-[var(--radix-navigation-menu-viewport-height)] sm:w-[var(--radix-navigation-menu-viewport-width)]',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-90',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n className,\n )}\n {...props}\n />\n </div>\n));\n\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuIndicator\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuIndicatorElement = ComponentRef<\n typeof NavigationMenuPrimitive.Indicator\n>;\ntype NavigationMenuIndicatorProps = ComponentPropsWithoutRef<\n typeof NavigationMenuPrimitive.Indicator\n>;\n\nconst NavigationMenuIndicator = forwardRef<\n NavigationMenuIndicatorElement,\n NavigationMenuIndicatorProps\n>(({ className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Indicator\n ref={forwardedRef}\n className={cn(\n 'data-[state=visible]:animate-fade-in data-[state=hidden]:animate-fade-out top-full z-10 flex h-1.5 items-center justify-center overflow-hidden transition',\n className,\n )}\n {...props}\n >\n <div className=\"bg-popover relative top-[60%] size-2 rotate-45 rounded-tl-sm\" />\n </NavigationMenuPrimitive.Indicator>\n));\n\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n type NavigationMenuContentProps,\n type NavigationMenuItemProps,\n type NavigationMenuLinkProps,\n type NavigationMenuListProps,\n type NavigationMenuProps,\n type NavigationMenuTriggerProps,\n};\n"]}
|
|
@@ -1 +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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/number-input.tsx"],"names":["NumberInputPrimitive","ChevronDownIcon","ChevronUpIcon","forwardRef","jsx","jsxs","root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","defaultValue","disabled","formatOptions","id","inputSize","loaderPosition","loading","max","min","onChange","prefix","readOnly","spinner","step","suffix","value","props","forwardedRef","Spinner","buttonVariants"],"mappings":"wHAMA,UAAYA,MAA0B,4BACtC,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAC/C,OAIE,cAAAC,MACK,QAsDmB,cAAAC,EAgBpB,QAAAC,MAhBoB,oBApD1B,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAYhCC,EAAcN,EAClB,CACE,CACE,mBAAAO,EACA,mBAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,UAAAC,EACA,eAAAC,EACA,QAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,OAAAC,EACA,SAAAC,EACA,QAAAC,EACA,KAAAC,EACA,OAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,IAEAzB,EAAsB,OAArB,CACC,mBAAoBK,EACpB,mBAAoBC,EACpB,UAAWL,EAAK,CAAE,UAAAW,EAAW,UAAW,CAAC,OAAQL,CAAS,CAAE,CAAC,EAC7D,aAAcC,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,eAAgBE,EAChB,QAASC,EACT,IAAKC,EACL,IAAKC,EACL,OAAQE,EACR,SAAUC,EACV,QAASC,GAAWrB,EAAC2B,EAAA,EAAQ,EAC7B,KAAML,EACN,OAAQC,EACR,MAAOC,EACP,SAAUN,EAEV,UAAAlB,EAAsB,OAArB,CACC,IAAK0B,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWvB,EAAM,CAAE,UAAAU,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGY,EACN,EACAxB,EAAC,OAAI,UAAU,yHACb,UAAAD,EAAsB,kBAArB,CACC,UAAW4B,EAAe,CACxB,UAAW,sBACX,KAAM,GACN,QAAS,QACT,KAAMf,CACR,CAAC,EAED,SAAAb,EAACF,EAAA,EAAc,EACjB,EACAE,EAAsB,kBAArB,CACC,UAAW4B,EAAe,CACxB,UAAW,sBACX,KAAM,GACN,QAAS,QACT,KAAMf,CACR,CAAC,EAED,SAAAb,EAACH,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEAQ,EAAY,YAAc","sourcesContent":["import { Spinner } from '@/components/spinner';\nimport { buttonVariants } from '@/styles/button-variants';\nimport {\n inputVariants,\n type InputVariantsProps,\n} from '@/styles/input-variants';\nimport * as NumberInputPrimitive from '@codefast-ui/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = ComponentRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n ComponentProps<typeof NumberInputPrimitive.Root>,\n ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n defaultValue,\n disabled,\n formatOptions,\n id,\n inputSize,\n loaderPosition,\n loading,\n max,\n min,\n onChange,\n prefix,\n readOnly,\n spinner,\n step,\n suffix,\n value,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n loaderPosition={loaderPosition}\n loading={loading}\n max={max}\n min={min}\n prefix={prefix}\n readOnly={readOnly}\n spinner={spinner || <Spinner />}\n step={step}\n suffix={suffix}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"order-last ml-auto grid h-full shrink-0 divide-y overflow-hidden rounded-r-[calc(theme(borderRadius.md)-1px)] border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none',\n icon: true,\n variant: 'ghost',\n size: inputSize,\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'h-full rounded-none',\n icon: true,\n variant: 'ghost',\n size: inputSize,\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/avatar.tsx"],"names":["AvatarPrimitive","forwardRef","jsx","Avatar","className","props","forwardedRef","cn","AvatarImage","AvatarFallback"],"mappings":"wCACA,UAAYA,MAAqB,yBACjC,OAGE,cAAAC,MACK,QAWH,cAAAC,MAAA,oBAFJ,IAAMC,EAASF,EACb,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAiB,OAAhB,CACC,IAAKI,EACL,UAAWC,EACT,8DACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAF,EAAO,YAA8B,OAAK,YAS1C,IAAMK,EAAcP,EAClB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAiB,QAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,0BAA2BH,CAAS,EACjD,GAAGC,EACN,CAEJ,EAEAG,EAAY,YAA8B,QAAM,YAWhD,IAAMC,EAAiBR,EACrB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAiB,WAAhB,CACC,IAAKI,EACL,UAAWC,EACT,mEACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAI,EAAe,YAA8B,WAAS","sourcesContent":["import { cn } from '@/lib/utils';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Avatar\n * -------------------------------------------------------------------------- */\n\ntype AvatarElement = ComponentRef<typeof AvatarPrimitive.Root>;\ntype AvatarProps = ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;\n\nconst Avatar = forwardRef<AvatarElement, AvatarProps>(\n ({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'relative flex size-10 shrink-0 overflow-hidden rounded-full',\n className,\n )}\n {...props}\n />\n ),\n);\n\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarImage\n * -------------------------------------------------------------------------- */\n\ntype AvatarImageElement = ComponentRef<typeof AvatarPrimitive.Image>;\ntype AvatarImageProps = ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\n\nconst AvatarImage = forwardRef<AvatarImageElement, AvatarImageProps>(\n ({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Image\n ref={forwardedRef}\n className={cn('aspect-square size-full', className)}\n {...props}\n />\n ),\n);\n\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarFallback\n * -------------------------------------------------------------------------- */\n\ntype AvatarFallbackElement = ComponentRef<typeof AvatarPrimitive.Fallback>;\ntype AvatarFallbackProps = ComponentPropsWithoutRef<\n typeof AvatarPrimitive.Fallback\n>;\n\nconst AvatarFallback = forwardRef<AvatarFallbackElement, AvatarFallbackProps>(\n ({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Fallback\n ref={forwardedRef}\n className={cn(\n 'bg-muted flex size-full items-center justify-center rounded-full',\n className,\n )}\n {...props}\n />\n ),\n);\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n type AvatarFallbackProps,\n type AvatarImageProps,\n type AvatarProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KEAGJ67V.cjs","../src/components/select.tsx"],"names":["Select","SelectGroup","SelectValue","SelectTrigger","forwardRef","children","className","size","props","forwardedRef","jsxs","buttonVariants","jsx","CaretSortIcon","SelectScrollUpButton","cn","ChevronUpIcon","SelectScrollDownButton","ChevronDownIcon","SelectContent","position","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"mappings":"AAAA,mZAAwC,wDAAyC,mDCU1E,oGAC0B,8BAM1B,+CAmCH,IA5BEA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAO9BC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAY9BC,CAAAA,aAAgBC,+BAAAA,CACnB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxCC,8BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CACT,OAAA,CAAS,SAAA,CACT,IAAA,CAAAJ,CAAAA,CACA,SAAA,CAAW,CAAC,yCAAA,CAA2CD,CAAS,CAClE,CAAC,CAAA,CACA,GAAGE,CAAAA,CAEH,QAAA,CAAA,CAAAH,CAAAA,CACDO,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CAAqB,OAAA,CAAO,CAAA,CAAA,CAC3B,QAAA,CAAAA,6BAAAA,yBAACC,CAAA,CAAc,SAAA,CAAU,4BAAA,CAA6B,CAAA,CACxD,CAAA,CAAA,CACF,CAEJ,CAAA,CAEAV,CAAAA,CAAc,WAAA,CAA8B,CAAA,CAAA,OAAA,CAAQ,WAAA,CAapD,IAAMW,CAAAA,CAAuBV,+BAAAA,CAG1B,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BG,6BAAAA,CAAiB,CAAA,cAAA,CAAhB,CACC,GAAA,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AA,CACAX,6BAAAA,CAAiB,CAAA,QAAA,CAAhB,CAA0B,QAAA,CAAAP,CAAAA,CAAS,CAAA,CAAA,CACtC,CAEJ,CAAA,CAEAiB,CAAAA,CAAW,WAAA,CAA8B,CAAA,CAAA,IAAA,CAAK,WAAA,CAW9C,IAAME,CAAAA,CAAkBpB,+BAAAA,CAGrB,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BG,6BAAAA,CAAiB,CAAA,SAAA,CAAhB,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWM,iCAAAA,yBAAG,CAA2BT,CAAS,CAAA,CACjD,GAAGE,CAAAA,CACN,CACD,CAAA,CAEDgB,CAAAA,CAAgB,WAAA,CAA8B,CAAA,CAAA,SAAA,CAAU,WAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KEAGJ67V.cjs","sourcesContent":[null,"import { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\nimport {\n CaretSortIcon,\n CheckIcon,\n ChevronDownIcon,\n ChevronUpIcon,\n} from '@radix-ui/react-icons';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Select\n * -------------------------------------------------------------------------- */\n\ntype SelectProps = ComponentProps<typeof SelectPrimitive.Root>;\nconst Select = SelectPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectGroup\n * -------------------------------------------------------------------------- */\n\ntype SelectGroupProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;\nconst SelectGroup = SelectPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectValue\n * -------------------------------------------------------------------------- */\n\ntype SelectValueProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Value>;\nconst SelectValue = SelectPrimitive.Value;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectTrigger\n * -------------------------------------------------------------------------- */\n\ntype SelectTriggerElement = ComponentRef<typeof SelectPrimitive.Trigger>;\ninterface SelectTriggerProps\n extends ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {\n size?: ButtonVariantsProps['size'];\n}\n\nconst SelectTrigger = forwardRef<SelectTriggerElement, SelectTriggerProps>(\n ({ children, className, size, ...props }, forwardedRef) => (\n <SelectPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'outline',\n size,\n className: ['w-full justify-between px-3 font-normal', className],\n })}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <CaretSortIcon className=\"size-4 shrink-0 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n ),\n);\n\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollUpButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollUpButtonElement = ComponentRef<\n typeof SelectPrimitive.ScrollUpButton\n>;\ntype SelectScrollUpButtonProps = ComponentPropsWithoutRef<\n typeof SelectPrimitive.ScrollUpButton\n>;\n\nconst SelectScrollUpButton = forwardRef<\n SelectScrollUpButtonElement,\n SelectScrollUpButtonProps\n>(({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollUpButton\n ref={forwardedRef}\n className={cn(\n 'flex cursor-pointer items-center justify-center py-1',\n className,\n )}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n));\n\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollDownButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollDownButtonElement = ComponentRef<\n typeof SelectPrimitive.ScrollDownButton\n>;\ntype SelectScrollDownButtonProps = ComponentPropsWithoutRef<\n typeof SelectPrimitive.ScrollDownButton\n>;\n\nconst SelectScrollDownButton = forwardRef<\n SelectScrollDownButtonElement,\n SelectScrollDownButtonProps\n>(({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollDownButton\n ref={forwardedRef}\n className={cn(\n 'flex cursor-pointer items-center justify-center py-1',\n className,\n )}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n));\n\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectContent\n * -------------------------------------------------------------------------- */\n\ntype SelectContentElement = ComponentRef<typeof SelectPrimitive.Content>;\ntype SelectContentProps = ComponentPropsWithoutRef<\n typeof SelectPrimitive.Content\n>;\n\nconst SelectContent = forwardRef<SelectContentElement, SelectContentProps>(\n ({ children, className, position = 'popper', ...props }, forwardedRef) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n position === 'popper' && [\n 'data-[side=bottom]:translate-y-1',\n 'data-[side=left]:-translate-x-1',\n 'data-[side=right]:translate-x-1',\n 'data-[side=top]:-translate-y-1',\n ],\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n ),\n);\n\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectLabel\n * -------------------------------------------------------------------------- */\n\ntype SelectLabelElement = ComponentRef<typeof SelectPrimitive.Label>;\ntype SelectLabelProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Label>;\n\nconst SelectLabel = forwardRef<SelectLabelElement, SelectLabelProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.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 className,\n )}\n {...props}\n />\n ),\n);\n\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectItem\n * -------------------------------------------------------------------------- */\n\ntype SelectItemElement = ComponentRef<typeof SelectPrimitive.Item>;\ntype SelectItemProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Item>;\n\nconst SelectItem = forwardRef<SelectItemElement, SelectItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <SelectPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n ),\n);\n\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectSeparator\n * -------------------------------------------------------------------------- */\n\ntype SelectSeparatorElement = ComponentRef<typeof SelectPrimitive.Separator>;\ntype SelectSeparatorProps = ComponentPropsWithoutRef<\n typeof SelectPrimitive.Separator\n>;\n\nconst SelectSeparator = forwardRef<\n SelectSeparatorElement,\n SelectSeparatorProps\n>(({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n));\n\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n type SelectContentProps,\n type SelectGroupProps,\n type SelectItemProps,\n type SelectLabelProps,\n type SelectProps,\n type SelectScrollDownButtonProps,\n type SelectScrollUpButtonProps,\n type SelectSeparatorProps,\n type SelectTriggerProps,\n type SelectValueProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KL3VMRZB.cjs","../src/components/form.tsx"],"names":["createFormFieldContext","FormFieldProvider","useFormFieldContext","FORM_FIELD_NAME","useFormItem","consumerName","scope","id","useFormItemContext"],"mappings":"AAAA,ylBAAY,CAAC,wDAAwC,wDCI5C,uDAEA,iDACA,qCAKP,8BAMA,gDAuEI,+CAnDkB,IAAA,CAAA,CAAA,2BAAA,CAAA,CAIlB,CAACA,WAUAC,CAAAA,CAAmBC,CAAmB,CAAA,CAC3CF,CAAAA,CAA8CG,8CAAe,CAE/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASC,CAAAA,CACPC,CAAAA,CACAC,SAOQ,CAAAC,CAAG,CAAA,CAAIC,CAAAA,CAAmBH,CAAAA,GAAmB,CAErD,EAAA,CAAA,CAAA,CAAA,CAAO,CACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,iBAAmB,CAAA,CAAA,sBACnB,EAAA,CAAA,CAAY,CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KL3VMRZB.cjs","sourcesContent":[null,"'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":["../src/components/pagination.tsx"],"names":["ChevronLeftIcon","ChevronRightIcon","DotsHorizontalIcon","forwardRef","jsx","jsxs","Pagination","className","props","cn","PaginationContent","forwardedRef","PaginationItem","PaginationLink","children","icon","isActive","size","buttonVariants","PaginationPrevious","PaginationNext","PaginationEllipsis"],"mappings":"gFAKA,OACE,mBAAAA,EACA,oBAAAC,EACA,sBAAAC,MACK,wBACP,OAEE,cAAAC,MAIK,QAUH,cAAAC,EAsFA,QAAAC,MAtFA,oBAFJ,SAASC,EAAW,CAAE,UAAAC,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,UAAAJ,EAACF,EAAA,CAAmB,UAAU,SAAS,EACvCE,EAAC,QAAK,UAAU,UAAU,sBAAU,GACtC,CAEJ","sourcesContent":["import { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\nimport {\n ChevronLeftIcon,\n ChevronRightIcon,\n DotsHorizontalIcon,\n} from '@radix-ui/react-icons';\nimport {\n type AnchorHTMLAttributes,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n type LiHTMLAttributes,\n} from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Pagination\n * -------------------------------------------------------------------------- */\n\ntype PaginationProps = HTMLAttributes<HTMLElement>;\n\nfunction Pagination({ className, ...props }: PaginationProps): JSX.Element {\n return (\n <nav\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n role=\"navigation\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationContent\n * -------------------------------------------------------------------------- */\n\ntype PaginationContentElement = HTMLUListElement;\ntype PaginationContentProps = HTMLAttributes<HTMLUListElement>;\n\nconst PaginationContent = forwardRef<\n PaginationContentElement,\n PaginationContentProps\n>(({ className, ...props }, forwardedRef) => (\n <ul\n ref={forwardedRef}\n className={cn('flex flex-row items-center gap-1', className)}\n {...props}\n />\n));\n\nPaginationContent.displayName = 'PaginationContent';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationItem\n * -------------------------------------------------------------------------- */\n\ntype PaginationItemElement = HTMLLIElement;\ntype PaginationItemProps = LiHTMLAttributes<HTMLLIElement>;\n\nconst PaginationItem = forwardRef<PaginationItemElement, PaginationItemProps>(\n (props, forwardedRef) => <li ref={forwardedRef} {...props} />,\n);\n\nPaginationItem.displayName = 'PaginationItem';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationLink\n * -------------------------------------------------------------------------- */\n\ninterface PaginationLinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement>,\n Pick<ButtonVariantsProps, 'size' | 'icon'> {\n isActive?: boolean;\n}\n\nfunction PaginationLink({\n children,\n className,\n icon = true,\n isActive,\n size,\n ...props\n}: PaginationLinkProps): JSX.Element {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={buttonVariants({\n className,\n icon,\n size,\n variant: isActive ? 'outline' : 'ghost',\n })}\n {...props}\n >\n {children}\n </a>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationPrevious\n * -------------------------------------------------------------------------- */\n\ntype PaginationPreviousProps = PaginationLinkProps;\n\nfunction PaginationPrevious({\n ...props\n}: PaginationPreviousProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to previous page\" icon={false} {...props}>\n <ChevronLeftIcon className=\"size-4\" />\n <span>Previous</span>\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationNext\n * -------------------------------------------------------------------------- */\n\ntype PaginationNextProps = PaginationLinkProps;\n\nfunction PaginationNext({ ...props }: PaginationNextProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to next page\" icon={false} {...props}>\n <span>Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationEllipsis\n * -------------------------------------------------------------------------- */\n\ntype PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: PaginationEllipsisProps): JSX.Element {\n return (\n <span\n aria-hidden\n className={cn('flex size-10 items-center justify-center', className)}\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n type PaginationContentProps,\n type PaginationEllipsisProps,\n type PaginationItemProps,\n type PaginationLinkProps,\n type PaginationNextProps,\n type PaginationPreviousProps,\n type PaginationProps,\n};\n"]}
|
package/dist/chunk-L2GO47JL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as m}from"./chunk-6I2ETZFI.js";import{a as c}from"./chunk-2LKWUAEG.js";import{a as o}from"./chunk-VPYH6JWS.js";import{ChevronDownIcon as p,ChevronLeftIcon as f,ChevronRightIcon as g,ChevronUpIcon as y,DotFilledIcon as b}from"@radix-ui/react-icons";import{format as d}from"date-fns";import{useEffect as C,useRef as x}from"react";import{DayFlag as u,DayPicker as h,SelectionState as i,UI as t}from"react-day-picker";import{jsx as a,jsxs as N}from"react/jsx-runtime";function P({orientation:n,...e}){switch(n){case"up":return a(y,{className:"size-4",...e});case"down":return a(p,{className:"size-4",...e});case"left":return a(f,{className:"size-4",...e});case"right":return a(g,{className:"size-4",...e});default:return a(b,{className:"size-4",...e})}}function D({day:n,modifiers:e,className:r,...s}){let l=x(null);return C(()=>{e.focused&&l.current?.focus()},[e.focused]),a(m,{ref:l,icon:!0,className:o("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 B({className:n,classNames:e,...r}){return a(h,{className:o("p-3",n),classNames:{[u.outside]:o(!r.mode&&"text-opacity-30"),[u.today]:o(!r.mode&&"bg-accent rounded-md"),[i.range_end]:"to-accent rounded-r-md bg-gradient-to-l from-transparent to-50%",[i.range_middle]:"bg-accent first:rounded-l-md last:rounded-r-md",[i.range_start]:"to-accent rounded-l-md bg-gradient-to-r from-transparent to-50%",[t.CaptionLabel]:"inline-flex items-center",[t.Day]:o("py-0",!r.mode&&"text-foreground mx-px flex min-h-9 min-w-9 items-center justify-center text-sm font-medium"),[t.DayButton]:"border border-transparent",[t.Dropdown]:"absolute size-full appearance-none opacity-0",[t.DropdownRoot]:"relative inline-flex",[t.Dropdowns]:"inline-flex items-center gap-2",[t.Footer]:"text-sm",[t.Month]:"grid grid-rows-[2rem_1fr] gap-4",[t.MonthCaption]:"flex w-full justify-center text-sm font-medium",[t.MonthGrid]:"relative block table-fixed border-collapse space-y-2 [&>thead]:block",[t.Months]:"relative flex flex-wrap gap-4",[t.Nav]:"-mr-4",[t.NextMonthButton]:c({className:"absolute end-0",icon:!0,size:"xs",variant:"outline"}),[t.PreviousMonthButton]:c({className:"absolute start-0",icon:!0,size:"xs",variant:"outline"}),[t.Root]:"inline-grid gap-4",[t.Week]:"flex",[t.WeekNumber]:"text-foreground/50 size-9 text-center text-xs",[t.Weekday]:"text-muted-foreground flex-1 text-sm font-normal",[t.Weekdays]:"flex",[t.Weeks]:"block space-y-2",...e},components:{Chevron:P,DayButton:D},...r})}function E({date:n,formatStr:e="LLL dd, y",placeholder:r="Pick a date"}){if(!n?.from)return a("span",{className:"truncate",children:r});let s=d(n.from,e);if(!n.to)return a("span",{className:"truncate",children:s});let l=d(n.to,e);return N("span",{className:"truncate",children:[s," - ",l]})}function I({date:n,formatStr:e="PPP",placeholder:r="Pick a date"}){return n?a("span",{className:"truncate",children:d(n,e)}):a("span",{className:"truncate",children:r})}export{B as a,E as b,I as c};
|
|
2
|
-
//# sourceMappingURL=chunk-L2GO47JL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/calendar.tsx"],"names":["ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronUpIcon","DotFilledIcon","format","useEffect","useRef","DayFlag","DayPicker","SelectionState","UI","jsx","jsxs","Chevron","orientation","props","DayButton","_","modifiers","className","buttonRef","Button","cn","Calendar","classNames","buttonVariants","CalendarRangeLabel","date","formatStr","placeholder","formattedFromDate","formattedToDate","CalendarLabel"],"mappings":"wHAKA,OACE,mBAAAA,EACA,mBAAAC,EACA,oBAAAC,EACA,iBAAAC,EACA,iBAAAC,MACK,wBACP,OAAS,UAAAC,MAAc,WACvB,OAAwC,aA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CAAS,EAErD,GAAI,CAACD,EAAK,GACR,OAAOhB,EAAC,QAAK,UAAU,WAAY,SAAAmB,EAAkB,EAGvD,IAAMC,EAAkB3B,EAAOuB,EAAK,GAAIC,CAAS,EAEjD,OACEhB,EAAC,QAAK,UAAU,WACb,UAAAkB,EAAkB,MAAIC,GACzB,CAEJ,CAYA,SAASC,EAAc,CACrB,KAAAL,EACA,UAAAC,EAAY,MACZ,YAAAC,EAAc,aAChB,EAA6C,CAC3C,OAAKF,EAIEhB,EAAC,QAAK,UAAU,WAAY,SAAAP,EAAOuB,EAAMC,CAAS,EAAE,EAHlDjB,EAAC,QAAK,UAAU,WAAY,SAAAkB,EAAY,CAInD","sourcesContent":["'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"]}
|