@codefast/ui 0.2.23 → 0.2.24
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/CHANGELOG.md +15 -0
- package/dist/chunk-2GUGNIMN.cjs +2 -0
- package/dist/chunk-2GUGNIMN.cjs.map +1 -0
- package/dist/chunk-3K2NGYFD.cjs +2 -0
- package/dist/chunk-3K2NGYFD.cjs.map +1 -0
- package/dist/chunk-3QLOE6JT.cjs +2 -0
- package/dist/chunk-3QLOE6JT.cjs.map +1 -0
- package/dist/{chunk-AC4NC5OP.js → chunk-4BADV3FT.js} +2 -2
- package/dist/{chunk-SLERFKD5.cjs → chunk-57Y4FSTL.cjs} +2 -2
- package/dist/{chunk-SLERFKD5.cjs.map → chunk-57Y4FSTL.cjs.map} +1 -1
- package/dist/chunk-5NVU3OSZ.js +2 -0
- package/dist/chunk-5NVU3OSZ.js.map +1 -0
- package/dist/{chunk-5E2J7DPU.cjs → chunk-62L2GZO7.cjs} +2 -2
- package/dist/chunk-62L2GZO7.cjs.map +1 -0
- package/dist/chunk-6LL5EQAE.cjs +2 -0
- package/dist/chunk-6LL5EQAE.cjs.map +1 -0
- package/dist/chunk-76DVQCMA.js +2 -0
- package/dist/chunk-76DVQCMA.js.map +1 -0
- package/dist/chunk-7DZQUICW.cjs +2 -0
- package/dist/chunk-7DZQUICW.cjs.map +1 -0
- package/dist/chunk-7LIPJFEV.cjs +2 -0
- package/dist/chunk-7LIPJFEV.cjs.map +1 -0
- package/dist/{chunk-TRE4LNFF.cjs → chunk-7RIKNXUQ.cjs} +2 -2
- package/dist/chunk-7RIKNXUQ.cjs.map +1 -0
- package/dist/chunk-AJTEFLYJ.cjs +2 -0
- package/dist/chunk-AJTEFLYJ.cjs.map +1 -0
- package/dist/{chunk-46UZJXKE.js → chunk-AXBTXUF5.js} +2 -2
- package/dist/{chunk-46UZJXKE.js.map → chunk-AXBTXUF5.js.map} +1 -1
- package/dist/{chunk-PWYE6IXW.js → chunk-AXOKJEVY.js} +2 -2
- package/dist/chunk-AXOKJEVY.js.map +1 -0
- package/dist/chunk-B4S3AVXY.cjs +2 -0
- package/dist/chunk-B4S3AVXY.cjs.map +1 -0
- package/dist/chunk-BBU6D4ST.js +2 -0
- package/dist/chunk-BBU6D4ST.js.map +1 -0
- package/dist/chunk-BTYNCXRY.js +2 -0
- package/dist/chunk-BTYNCXRY.js.map +1 -0
- package/dist/{chunk-ONU4ZNQP.js → chunk-BYLDBIZQ.js} +2 -2
- package/dist/{chunk-ONU4ZNQP.js.map → chunk-BYLDBIZQ.js.map} +1 -1
- package/dist/chunk-C2WGTATR.cjs +2 -0
- package/dist/chunk-C2WGTATR.cjs.map +1 -0
- package/dist/chunk-C6I24UU5.js +2 -0
- package/dist/chunk-C6I24UU5.js.map +1 -0
- package/dist/chunk-D76EFHBN.cjs +2 -0
- package/dist/chunk-D76EFHBN.cjs.map +1 -0
- package/dist/chunk-DQFISQYQ.js +2 -0
- package/dist/chunk-DQFISQYQ.js.map +1 -0
- package/dist/{chunk-FPNPXEQ5.cjs → chunk-DRDC77KX.cjs} +2 -2
- package/dist/chunk-DRDC77KX.cjs.map +1 -0
- package/dist/chunk-DZXTYNCB.js +2 -0
- package/dist/chunk-DZXTYNCB.js.map +1 -0
- package/dist/chunk-EGY5ICBL.cjs +2 -0
- package/dist/chunk-EGY5ICBL.cjs.map +1 -0
- package/dist/chunk-FNLQQIZW.cjs +2 -0
- package/dist/chunk-FNLQQIZW.cjs.map +1 -0
- package/dist/chunk-FS4CRFFU.cjs +2 -0
- package/dist/chunk-FS4CRFFU.cjs.map +1 -0
- package/dist/chunk-GAE7GSMH.cjs +2 -0
- package/dist/chunk-GAE7GSMH.cjs.map +1 -0
- package/dist/chunk-GGPIDYQC.js +2 -0
- package/dist/chunk-GGPIDYQC.js.map +1 -0
- package/dist/chunk-GT6M2CAP.cjs +2 -0
- package/dist/chunk-GT6M2CAP.cjs.map +1 -0
- package/dist/{chunk-PWJMO7LF.cjs → chunk-GUB22J32.cjs} +2 -2
- package/dist/{chunk-PWJMO7LF.cjs.map → chunk-GUB22J32.cjs.map} +1 -1
- package/dist/chunk-GXBW3N3M.cjs +2 -0
- package/dist/chunk-GXBW3N3M.cjs.map +1 -0
- package/dist/chunk-H44NQWHN.cjs +2 -0
- package/dist/chunk-H44NQWHN.cjs.map +1 -0
- package/dist/chunk-HAVND45W.js +2 -0
- package/dist/chunk-HAVND45W.js.map +1 -0
- package/dist/chunk-HDL22SXW.cjs +2 -0
- package/dist/chunk-HDL22SXW.cjs.map +1 -0
- package/dist/chunk-HN2LADGF.cjs +2 -0
- package/dist/chunk-HN2LADGF.cjs.map +1 -0
- package/dist/chunk-HQ6DUL6D.js +2 -0
- package/dist/chunk-HQ6DUL6D.js.map +1 -0
- package/dist/chunk-HQBOID2K.js +2 -0
- package/dist/chunk-HQBOID2K.js.map +1 -0
- package/dist/chunk-HV4HLOTW.cjs +2 -0
- package/dist/chunk-HV4HLOTW.cjs.map +1 -0
- package/dist/chunk-I5SKL4NE.js +2 -0
- package/dist/chunk-I5SKL4NE.js.map +1 -0
- package/dist/chunk-IGCYTKJ7.js +2 -0
- package/dist/chunk-IGCYTKJ7.js.map +1 -0
- package/dist/chunk-IRFNIQ3S.js +2 -0
- package/dist/chunk-IRFNIQ3S.js.map +1 -0
- package/dist/{chunk-DGWKCJXU.js → chunk-JCMXN5SL.js} +2 -2
- package/dist/{chunk-DGWKCJXU.js.map → chunk-JCMXN5SL.js.map} +1 -1
- package/dist/{chunk-WLSDH632.cjs → chunk-JJ46AZUG.cjs} +2 -2
- package/dist/{chunk-WLSDH632.cjs.map → chunk-JJ46AZUG.cjs.map} +1 -1
- package/dist/{chunk-LYC4EOET.js → chunk-KRMPCH3E.js} +2 -2
- package/dist/chunk-KRMPCH3E.js.map +1 -0
- package/dist/chunk-KT25BHLM.js +2 -0
- package/dist/chunk-KT25BHLM.js.map +1 -0
- package/dist/chunk-KX4STYPY.js +2 -0
- package/dist/chunk-KX4STYPY.js.map +1 -0
- package/dist/{chunk-2L2HVEIN.cjs → chunk-KXRMWFKE.cjs} +2 -2
- package/dist/{chunk-2L2HVEIN.cjs.map → chunk-KXRMWFKE.cjs.map} +1 -1
- package/dist/chunk-KZZLDLIH.js +2 -0
- package/dist/chunk-KZZLDLIH.js.map +1 -0
- package/dist/{chunk-2HOSDLC4.js → chunk-L4TXGBGM.js} +2 -2
- package/dist/chunk-LDAZP6I6.js +2 -0
- package/dist/chunk-LDAZP6I6.js.map +1 -0
- package/dist/chunk-LHOOK4QI.js +2 -0
- package/dist/chunk-LHOOK4QI.js.map +1 -0
- package/dist/chunk-LJEBU2VA.js +4 -0
- package/dist/chunk-LJEBU2VA.js.map +1 -0
- package/dist/chunk-LUOAGYB6.cjs +2 -0
- package/dist/chunk-LUOAGYB6.cjs.map +1 -0
- package/dist/chunk-LWZFDY6N.cjs +2 -0
- package/dist/chunk-LWZFDY6N.cjs.map +1 -0
- package/dist/chunk-LYULASEA.js +2 -0
- package/dist/chunk-LYULASEA.js.map +1 -0
- package/dist/{chunk-KFKDTLSE.cjs → chunk-M6ZEN65I.cjs} +2 -2
- package/dist/chunk-M6ZEN65I.cjs.map +1 -0
- package/dist/chunk-M7FNDRW7.cjs +2 -0
- package/dist/chunk-M7FNDRW7.cjs.map +1 -0
- package/dist/chunk-MDTVBZCP.js +2 -0
- package/dist/chunk-MDTVBZCP.js.map +1 -0
- package/dist/chunk-MI6EOUQI.cjs +2 -0
- package/dist/chunk-MI6EOUQI.cjs.map +1 -0
- package/dist/{chunk-ZVWGYKHD.js → chunk-MUL2EY3O.js} +2 -2
- package/dist/{chunk-6OYF6KIQ.cjs → chunk-PIJN35MC.cjs} +2 -2
- package/dist/{chunk-6OYF6KIQ.cjs.map → chunk-PIJN35MC.cjs.map} +1 -1
- package/dist/chunk-PLQBG655.cjs +2 -0
- package/dist/chunk-PLQBG655.cjs.map +1 -0
- package/dist/chunk-Q2R7BKY2.cjs +2 -0
- package/dist/chunk-Q2R7BKY2.cjs.map +1 -0
- package/dist/chunk-QO5ZOLVS.cjs +2 -0
- package/dist/chunk-QO5ZOLVS.cjs.map +1 -0
- package/dist/chunk-QVCV6SHI.js +2 -0
- package/dist/chunk-QVCV6SHI.js.map +1 -0
- package/dist/chunk-R4EO3PAD.cjs +2 -0
- package/dist/chunk-R4EO3PAD.cjs.map +1 -0
- package/dist/chunk-R4NBV7W4.cjs +2 -0
- package/dist/chunk-R4NBV7W4.cjs.map +1 -0
- package/dist/chunk-RD5ZOT6N.cjs +2 -0
- package/dist/chunk-RD5ZOT6N.cjs.map +1 -0
- package/dist/chunk-RQJY6UQZ.js +2 -0
- package/dist/chunk-RQJY6UQZ.js.map +1 -0
- package/dist/chunk-SRVIWHMN.cjs +2 -0
- package/dist/chunk-SRVIWHMN.cjs.map +1 -0
- package/dist/chunk-SSD6L5OR.js +2 -0
- package/dist/chunk-SSD6L5OR.js.map +1 -0
- package/dist/chunk-T4YGCOXD.js +2 -0
- package/dist/chunk-T4YGCOXD.js.map +1 -0
- package/dist/chunk-TAVXLFQE.js +2 -0
- package/dist/chunk-TAVXLFQE.js.map +1 -0
- package/dist/chunk-TB6L4INZ.js +2 -0
- package/dist/chunk-TB6L4INZ.js.map +1 -0
- package/dist/chunk-TLVUBHED.js +2 -0
- package/dist/chunk-TLVUBHED.js.map +1 -0
- package/dist/chunk-TPYKFY52.js +2 -0
- package/dist/chunk-TPYKFY52.js.map +1 -0
- package/dist/chunk-TUU4GFJ6.js +2 -0
- package/dist/chunk-TUU4GFJ6.js.map +1 -0
- package/dist/chunk-TZA6RQAF.js +2 -0
- package/dist/{chunk-HQNFEX24.js.map → chunk-TZA6RQAF.js.map} +1 -1
- package/dist/chunk-U2275H6S.cjs +2 -0
- package/dist/chunk-U2275H6S.cjs.map +1 -0
- package/dist/{chunk-AK26BZ5A.cjs → chunk-UGCN3YGM.cjs} +2 -2
- package/dist/{chunk-AK26BZ5A.cjs.map → chunk-UGCN3YGM.cjs.map} +1 -1
- package/dist/chunk-UQ5VJMRW.js +2 -0
- package/dist/chunk-UQ5VJMRW.js.map +1 -0
- package/dist/chunk-V2AYLOM5.js +2 -0
- package/dist/chunk-V2AYLOM5.js.map +1 -0
- package/dist/chunk-V3KAJCT6.js +2 -0
- package/dist/chunk-V3KAJCT6.js.map +1 -0
- package/dist/{chunk-VKEABMKB.cjs → chunk-VEXA5WBY.cjs} +2 -2
- package/dist/{chunk-VKEABMKB.cjs.map → chunk-VEXA5WBY.cjs.map} +1 -1
- package/dist/chunk-VIZADH2K.cjs +2 -0
- package/dist/chunk-VIZADH2K.cjs.map +1 -0
- package/dist/chunk-VKG6MFL3.js +2 -0
- package/dist/chunk-VKG6MFL3.js.map +1 -0
- package/dist/chunk-VM7X5P6J.js +2 -0
- package/dist/chunk-VM7X5P6J.js.map +1 -0
- package/dist/chunk-WBWLWSHG.cjs +2 -0
- package/dist/chunk-WBWLWSHG.cjs.map +1 -0
- package/dist/chunk-WDUTGZTG.cjs +4 -0
- package/dist/chunk-WDUTGZTG.cjs.map +1 -0
- package/dist/{chunk-TKY35TYR.cjs → chunk-WLZPSCYA.cjs} +2 -2
- package/dist/chunk-WLZPSCYA.cjs.map +1 -0
- package/dist/chunk-X5Z3T7HA.js +2 -0
- package/dist/chunk-X5Z3T7HA.js.map +1 -0
- package/dist/chunk-XC2CDZHC.js +2 -0
- package/dist/chunk-XC2CDZHC.js.map +1 -0
- package/dist/chunk-XHKU3O3L.js +2 -0
- package/dist/chunk-XHKU3O3L.js.map +1 -0
- package/dist/chunk-XJZWYO4Y.js +2 -0
- package/dist/chunk-XJZWYO4Y.js.map +1 -0
- package/dist/{chunk-QGZBS6HG.cjs → chunk-XRR7KIOZ.cjs} +2 -2
- package/dist/chunk-XRR7KIOZ.cjs.map +1 -0
- package/dist/chunk-XYRJ3S6Z.cjs +2 -0
- package/dist/chunk-XYRJ3S6Z.cjs.map +1 -0
- package/dist/chunk-Y4EFTCNM.cjs +2 -0
- package/dist/chunk-Y4EFTCNM.cjs.map +1 -0
- package/dist/chunk-Z5FCLKN6.js +2 -0
- package/dist/chunk-Z5FCLKN6.js.map +1 -0
- package/dist/chunk-Z5QDQB2Y.js +2 -0
- package/dist/chunk-Z5QDQB2Y.js.map +1 -0
- package/dist/chunk-ZPQ2TVNB.js +2 -0
- package/dist/chunk-ZPQ2TVNB.js.map +1 -0
- package/dist/chunk-ZQYHFDUL.cjs +2 -0
- package/dist/chunk-ZQYHFDUL.cjs.map +1 -0
- package/dist/{chunk-LBFHFIWF.cjs → chunk-ZYHOIY4R.cjs} +2 -2
- package/dist/chunk-ZYHOIY4R.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/badge.cjs +1 -1
- package/dist/components/badge.d.cts +24 -101
- package/dist/components/badge.d.ts +24 -101
- package/dist/components/badge.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.d.cts +3 -3
- package/dist/components/calendar.d.ts +3 -3
- 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.js +1 -1
- package/dist/components/chart.cjs +1 -1
- package/dist/components/chart.d.cts +1 -1
- package/dist/components/chart.d.ts +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.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.js +1 -1
- package/dist/components/drawer.cjs +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/hover-card.cjs +1 -1
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-number.cjs +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-otp.cjs +1 -1
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input-password.cjs +1 -1
- package/dist/components/input-password.d.cts +1 -1
- package/dist/components/input-password.d.ts +1 -1
- package/dist/components/input-password.js +1 -1
- package/dist/components/input-search.cjs +1 -1
- package/dist/components/input-search.d.cts +1 -1
- package/dist/components/input-search.d.ts +1 -1
- package/dist/components/input-search.js +1 -1
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.d.cts +1 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.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/pagination.cjs +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.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.d.cts +14 -14
- package/dist/components/scroll-area.d.ts +14 -14
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/select.cjs +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 +30 -30
- package/dist/components/sheet.d.ts +30 -30
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +1 -1
- package/dist/components/sidebar.d.cts +9 -9
- package/dist/components/sidebar.d.ts +9 -9
- package/dist/components/sidebar.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/textarea.cjs +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/toggle-group.cjs +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.cjs +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/variants/button.variants.cjs +1 -1
- package/dist/variants/button.variants.d.cts +95 -95
- package/dist/variants/button.variants.d.ts +95 -95
- package/dist/variants/button.variants.js +1 -1
- package/dist/variants/input.variants.cjs +1 -1
- package/dist/variants/input.variants.d.cts +83 -83
- package/dist/variants/input.variants.d.ts +83 -83
- package/dist/variants/input.variants.js +1 -1
- package/dist/variants/toggle.variants.cjs +1 -1
- package/dist/variants/toggle.variants.d.cts +46 -88
- package/dist/variants/toggle.variants.d.ts +46 -88
- package/dist/variants/toggle.variants.js +1 -1
- package/package.json +17 -16
- package/dist/chunk-2XAD6KHW.js +0 -2
- package/dist/chunk-2XAD6KHW.js.map +0 -1
- package/dist/chunk-36TQLSGO.js +0 -2
- package/dist/chunk-36TQLSGO.js.map +0 -1
- package/dist/chunk-3IBICJA2.js +0 -2
- package/dist/chunk-3IBICJA2.js.map +0 -1
- package/dist/chunk-56DZBH54.js +0 -2
- package/dist/chunk-56DZBH54.js.map +0 -1
- package/dist/chunk-5E2J7DPU.cjs.map +0 -1
- package/dist/chunk-5JTCBEIB.js +0 -2
- package/dist/chunk-5JTCBEIB.js.map +0 -1
- package/dist/chunk-5R3KLICJ.js +0 -2
- package/dist/chunk-5R3KLICJ.js.map +0 -1
- package/dist/chunk-5RCJ2CA5.js +0 -2
- package/dist/chunk-5RCJ2CA5.js.map +0 -1
- package/dist/chunk-6SGFVBG5.js +0 -2
- package/dist/chunk-6SGFVBG5.js.map +0 -1
- package/dist/chunk-7C3GHNUL.js +0 -2
- package/dist/chunk-7C3GHNUL.js.map +0 -1
- package/dist/chunk-AH4DF7LA.cjs +0 -2
- package/dist/chunk-AH4DF7LA.cjs.map +0 -1
- package/dist/chunk-AHV24XXG.js +0 -2
- package/dist/chunk-AHV24XXG.js.map +0 -1
- package/dist/chunk-BRDK6TUD.js +0 -2
- package/dist/chunk-BRDK6TUD.js.map +0 -1
- package/dist/chunk-DASAFOYJ.cjs +0 -2
- package/dist/chunk-DASAFOYJ.cjs.map +0 -1
- package/dist/chunk-DF5E3FGQ.js +0 -2
- package/dist/chunk-DF5E3FGQ.js.map +0 -1
- package/dist/chunk-DN22IF3R.cjs +0 -2
- package/dist/chunk-DN22IF3R.cjs.map +0 -1
- package/dist/chunk-DOVVSNGI.js +0 -2
- package/dist/chunk-DOVVSNGI.js.map +0 -1
- package/dist/chunk-ELW7VMAT.js +0 -2
- package/dist/chunk-ELW7VMAT.js.map +0 -1
- package/dist/chunk-EPZA4DFY.cjs +0 -2
- package/dist/chunk-EPZA4DFY.cjs.map +0 -1
- package/dist/chunk-EXR6BMAW.cjs +0 -2
- package/dist/chunk-EXR6BMAW.cjs.map +0 -1
- package/dist/chunk-F3G3HO4U.js +0 -2
- package/dist/chunk-F3G3HO4U.js.map +0 -1
- package/dist/chunk-F7CO7P2X.cjs +0 -2
- package/dist/chunk-F7CO7P2X.cjs.map +0 -1
- package/dist/chunk-FKCCIFVX.cjs +0 -2
- package/dist/chunk-FKCCIFVX.cjs.map +0 -1
- package/dist/chunk-FOEXS673.js +0 -2
- package/dist/chunk-FOEXS673.js.map +0 -1
- package/dist/chunk-FPNPXEQ5.cjs.map +0 -1
- package/dist/chunk-FTJBXJJT.cjs +0 -2
- package/dist/chunk-FTJBXJJT.cjs.map +0 -1
- package/dist/chunk-FUY5BCRG.cjs +0 -2
- package/dist/chunk-FUY5BCRG.cjs.map +0 -1
- package/dist/chunk-GHBCDBSI.cjs +0 -2
- package/dist/chunk-GHBCDBSI.cjs.map +0 -1
- package/dist/chunk-GKSJINOA.js +0 -2
- package/dist/chunk-GKSJINOA.js.map +0 -1
- package/dist/chunk-GQBROHMX.js +0 -2
- package/dist/chunk-GQBROHMX.js.map +0 -1
- package/dist/chunk-GQFMACBI.js +0 -2
- package/dist/chunk-GQFMACBI.js.map +0 -1
- package/dist/chunk-GSTVEJ2B.js +0 -2
- package/dist/chunk-GSTVEJ2B.js.map +0 -1
- package/dist/chunk-H3RTNMRE.cjs +0 -2
- package/dist/chunk-H3RTNMRE.cjs.map +0 -1
- package/dist/chunk-HQNFEX24.js +0 -2
- package/dist/chunk-HTT35LDP.cjs +0 -2
- package/dist/chunk-HTT35LDP.cjs.map +0 -1
- package/dist/chunk-I7AC332J.js +0 -2
- package/dist/chunk-I7AC332J.js.map +0 -1
- package/dist/chunk-IPVYUKID.cjs +0 -2
- package/dist/chunk-IPVYUKID.cjs.map +0 -1
- package/dist/chunk-JGFDKJEO.cjs +0 -2
- package/dist/chunk-JGFDKJEO.cjs.map +0 -1
- package/dist/chunk-K6AMR7HB.js +0 -4
- package/dist/chunk-K6AMR7HB.js.map +0 -1
- package/dist/chunk-KFKDTLSE.cjs.map +0 -1
- package/dist/chunk-KPBYWGCA.js +0 -2
- package/dist/chunk-KPBYWGCA.js.map +0 -1
- package/dist/chunk-KUZZFJ27.js +0 -2
- package/dist/chunk-KUZZFJ27.js.map +0 -1
- package/dist/chunk-L5EJ25IW.cjs +0 -2
- package/dist/chunk-L5EJ25IW.cjs.map +0 -1
- package/dist/chunk-L66JVA2T.cjs +0 -2
- package/dist/chunk-L66JVA2T.cjs.map +0 -1
- package/dist/chunk-LBFHFIWF.cjs.map +0 -1
- package/dist/chunk-LBR5P32R.cjs +0 -2
- package/dist/chunk-LBR5P32R.cjs.map +0 -1
- package/dist/chunk-LCBT7M2G.cjs +0 -2
- package/dist/chunk-LCBT7M2G.cjs.map +0 -1
- package/dist/chunk-LGRBC237.cjs +0 -2
- package/dist/chunk-LGRBC237.cjs.map +0 -1
- package/dist/chunk-LL6U4F5L.cjs +0 -2
- package/dist/chunk-LL6U4F5L.cjs.map +0 -1
- package/dist/chunk-LYC4EOET.js.map +0 -1
- package/dist/chunk-MSMFJJJK.js +0 -2
- package/dist/chunk-MSMFJJJK.js.map +0 -1
- package/dist/chunk-NCTOUF4A.js +0 -2
- package/dist/chunk-NCTOUF4A.js.map +0 -1
- package/dist/chunk-NW3SJJ6F.js +0 -2
- package/dist/chunk-NW3SJJ6F.js.map +0 -1
- package/dist/chunk-NZQFRV3L.js +0 -2
- package/dist/chunk-NZQFRV3L.js.map +0 -1
- package/dist/chunk-OMGYMSUC.cjs +0 -2
- package/dist/chunk-OMGYMSUC.cjs.map +0 -1
- package/dist/chunk-OPFM64WD.js +0 -2
- package/dist/chunk-OPFM64WD.js.map +0 -1
- package/dist/chunk-P22LSKVX.cjs +0 -2
- package/dist/chunk-P22LSKVX.cjs.map +0 -1
- package/dist/chunk-PSMKNPRZ.cjs +0 -2
- package/dist/chunk-PSMKNPRZ.cjs.map +0 -1
- package/dist/chunk-PSPEP5YX.cjs +0 -2
- package/dist/chunk-PSPEP5YX.cjs.map +0 -1
- package/dist/chunk-PUZM4GY5.js +0 -2
- package/dist/chunk-PUZM4GY5.js.map +0 -1
- package/dist/chunk-PWYE6IXW.js.map +0 -1
- package/dist/chunk-Q42ORKLQ.js +0 -2
- package/dist/chunk-Q42ORKLQ.js.map +0 -1
- package/dist/chunk-QGZBS6HG.cjs.map +0 -1
- package/dist/chunk-QJ4H3B5E.cjs +0 -2
- package/dist/chunk-QJ4H3B5E.cjs.map +0 -1
- package/dist/chunk-QW4LAXTT.js +0 -2
- package/dist/chunk-QW4LAXTT.js.map +0 -1
- package/dist/chunk-ROUDG6I5.cjs +0 -2
- package/dist/chunk-ROUDG6I5.cjs.map +0 -1
- package/dist/chunk-S5BO3QAZ.cjs +0 -2
- package/dist/chunk-S5BO3QAZ.cjs.map +0 -1
- package/dist/chunk-SAKEXTVW.cjs +0 -2
- package/dist/chunk-SAKEXTVW.cjs.map +0 -1
- package/dist/chunk-SSQYBXI5.js +0 -2
- package/dist/chunk-SSQYBXI5.js.map +0 -1
- package/dist/chunk-SV5GCOQH.js +0 -2
- package/dist/chunk-SV5GCOQH.js.map +0 -1
- package/dist/chunk-T6TKUY76.cjs +0 -2
- package/dist/chunk-T6TKUY76.cjs.map +0 -1
- package/dist/chunk-TB5KON56.cjs +0 -2
- package/dist/chunk-TB5KON56.cjs.map +0 -1
- package/dist/chunk-TKY35TYR.cjs.map +0 -1
- package/dist/chunk-TQOYB7RE.js +0 -2
- package/dist/chunk-TQOYB7RE.js.map +0 -1
- package/dist/chunk-TRE4LNFF.cjs.map +0 -1
- package/dist/chunk-UMQYGDKC.js +0 -2
- package/dist/chunk-UMQYGDKC.js.map +0 -1
- package/dist/chunk-UQQOY6LC.cjs +0 -4
- package/dist/chunk-UQQOY6LC.cjs.map +0 -1
- package/dist/chunk-USJYG7MC.js +0 -2
- package/dist/chunk-USJYG7MC.js.map +0 -1
- package/dist/chunk-UVQOZN2C.js +0 -2
- package/dist/chunk-UVQOZN2C.js.map +0 -1
- package/dist/chunk-VGH6WZ27.cjs +0 -2
- package/dist/chunk-VGH6WZ27.cjs.map +0 -1
- package/dist/chunk-VJVQDA2U.cjs +0 -2
- package/dist/chunk-VJVQDA2U.cjs.map +0 -1
- package/dist/chunk-W37H7BDD.cjs +0 -2
- package/dist/chunk-W37H7BDD.cjs.map +0 -1
- package/dist/chunk-W4K2HV3N.js +0 -2
- package/dist/chunk-W4K2HV3N.js.map +0 -1
- package/dist/chunk-W54IWHIP.cjs +0 -2
- package/dist/chunk-W54IWHIP.cjs.map +0 -1
- package/dist/chunk-WORVCHTL.js +0 -2
- package/dist/chunk-WORVCHTL.js.map +0 -1
- package/dist/chunk-XD3TYBKN.cjs +0 -2
- package/dist/chunk-XD3TYBKN.cjs.map +0 -1
- package/dist/chunk-XRPTNXUT.cjs +0 -2
- package/dist/chunk-XRPTNXUT.cjs.map +0 -1
- package/dist/chunk-XS5HZGLK.cjs +0 -2
- package/dist/chunk-XS5HZGLK.cjs.map +0 -1
- package/dist/chunk-YNPLLYMG.js +0 -2
- package/dist/chunk-YNPLLYMG.js.map +0 -1
- package/dist/chunk-YOKFNKGO.js +0 -2
- package/dist/chunk-YOKFNKGO.js.map +0 -1
- package/dist/chunk-ZURHQEH5.js +0 -2
- package/dist/chunk-ZURHQEH5.js.map +0 -1
- /package/dist/{chunk-AC4NC5OP.js.map → chunk-4BADV3FT.js.map} +0 -0
- /package/dist/{chunk-2HOSDLC4.js.map → chunk-L4TXGBGM.js.map} +0 -0
- /package/dist/{chunk-ZVWGYKHD.js.map → chunk-MUL2EY3O.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/checkbox-group.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","jsx","CheckboxGroup","className","props","cn","CheckboxGroupItem"],"mappings":"wCAEA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,eAWjB,cAAAC,MAAA,oBADT,SAASC,EAAc,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAoC,CAC/E,OAAOH,EAAwB,OAAvB,CAA4B,UAAWI,EAAG,aAAcF,CAAS,EAAI,GAAGC,EAAO,CACzF,CAQA,SAASE,EAAkB,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAwC,CACvF,OACEH,EAAwB,OAAvB,CACC,UAAWI,EACT,4TACAF,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwB,yBAAvB,CACC,SAAAA,EAACD,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupProps = ComponentProps<typeof CheckboxGroupPrimitive.Root>;\n\nfunction CheckboxGroup({ className, ...props }: CheckboxGroupProps): JSX.Element {\n return <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemProps = ComponentProps<typeof CheckboxGroupPrimitive.Item>;\n\nfunction CheckboxGroupItem({ className, ...props }: CheckboxGroupItemProps): JSX.Element {\n return (\n <CheckboxGroupPrimitive.Item\n className={cn(\n 'border-input text-primary-foreground hover:not-disabled:not-aria-checked:border-input-hover aria-checked:border-primary aria-checked:bg-primary focus-visible:ring-ring focus-visible:ring-3 not-disabled:shadow-xs peer flex size-4 shrink-0 rounded-sm border transition focus-visible:outline-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { CheckboxGroupItemProps, CheckboxGroupProps };\nexport { CheckboxGroup, CheckboxGroupItem };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkRD5ZOT6Ncjs = require('./chunk-RD5ZOT6N.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var o = _interopRequireWildcard(_reactdialog);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');var P=o.Root,d= exports.b =o.Trigger;function f({children:t,className:e,...r}){return _jsxruntime.jsxs.call(void 0, o.Portal,{children:[_jsxruntime.jsx.call(void 0, o.Overlay,{className:"bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50"}),_jsxruntime.jsx.call(void 0, o.Content,{className:"data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-from-b-full sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-to-b-full sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",...r,children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",e),children:[t,_jsxruntime.jsxs.call(void 0, o.Close,{className:_chunkRD5ZOT6Ncjs.a.call(void 0, {className:"absolute right-2.5 top-2.5",icon:!0,size:"2xs",variant:"ghost"}),children:[_jsxruntime.jsx.call(void 0, _lucidereact.XIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})})]})}function c({className:t,...e}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...e})}function u({className:t,...e}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "overflow-auto px-6 py-2",t),...e})}function v({className:t,...e}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...e})}function x({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Title,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),...e})}function y({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Description,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-sm",t),...e})}function C({className:t,size:e,variant:r="outline",...n}){return _jsxruntime.jsx.call(void 0, o.Close,{className:_chunkRD5ZOT6Ncjs.a.call(void 0, {className:t,size:e,variant:r}),...n})}exports.a = P; exports.b = d; exports.c = f; exports.d = c; exports.e = u; exports.f = v; exports.g = x; exports.h = y; exports.i = C;
|
|
2
|
+
//# sourceMappingURL=chunk-MI6EOUQI.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-MI6EOUQI.cjs","../src/components/dialog.tsx"],"names":["Dialog","DialogTrigger","DialogContent","children","className","props","jsxs","jsx","cn","buttonVariants","XIcon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"AAAA,mZAAwC,wDAAoC,oGCE3C,2CACX,+CA8BhB,IAlBAA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAAgC,CAAA,CAAA,OAAA,CAQtC,SAASC,CAAAA,CAAc,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAoC,CACzF,OACEC,8BAAAA,CAAiB,CAAA,MAAA,CAAhB,CACC,QAAA,CAAA,CAAAC,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CAAwB,SAAA,CAAU,8GAAA,CAA+G,CAAA,CAClJA,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,SAAA,CAAU,6eAAA,CACT,GAAGF,CAAAA,CAEJ,QAAA,CAAAC,8BAAAA,KAAC,CAAA,CACC,SAAA,CAAWE,iCAAAA,wIACT,CACAJ,CACF,CAAA,CAEC,QAAA,CAAA,CAAAD,CAAAA,CACDG,8BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAWG,iCAAAA,CACT,SAAA,CAAW,4BAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,IAAA,CAAM,KAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAA,CAAAF,6BAAAA,kBAACG,CAAA,CAAM,SAAA,CAAU,QAAA,CAAS,CAAA,CAC1BH,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,SAAA,CAAU,QAAA,CAAA,OAAA,CAAK,CAAA,CAAA,CACjC,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAQA,SAASI,CAAAA,CAAa,CAAE,SAAA,CAAAP,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAmC,CAC7E,OACEE,6BAAAA,QAAC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CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CAAI,GAAGb,CAAAA,CAAO,CACpG,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-MI6EOUQI.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport type { ButtonVariantsProps } from '@/variants/button.variants';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/variants/button.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\ntype DialogProps = ComponentProps<typeof DialogPrimitive.Root>;\nconst Dialog = DialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype DialogTriggerProps = ComponentProps<typeof DialogPrimitive.Trigger>;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\ntype DialogContentProps = ComponentProps<typeof DialogPrimitive.Content>;\n\nfunction DialogContent({ children, className, ...props }: DialogContentProps): JSX.Element {\n return (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay className=\"bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50\" />\n <DialogPrimitive.Content\n className=\"data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-from-b-full sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-to-b-full sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4\"\n {...props}\n >\n <div\n className={cn(\n 'bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl',\n className,\n )}\n >\n {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-2.5 top-2.5',\n icon: true,\n size: '2xs',\n variant: 'ghost',\n })}\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\ntype DialogHeaderProps = ComponentProps<'div'>;\n\nfunction DialogHeader({ className, ...props }: DialogHeaderProps): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype DialogBodyProps = ComponentProps<'div'>;\n\nfunction DialogBody({ className, ...props }: DialogBodyProps): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\ntype DialogFooterProps = ComponentProps<'div'>;\n\nfunction DialogFooter({ className, ...props }: DialogFooterProps): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\ntype DialogTitleProps = ComponentProps<typeof DialogPrimitive.Title>;\n\nfunction DialogTitle({ className, ...props }: DialogTitleProps): JSX.Element {\n return (\n <DialogPrimitive.Title className={cn('text-lg font-semibold leading-none tracking-tight', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\ntype DialogDescriptionProps = ComponentProps<typeof DialogPrimitive.Description>;\n\nfunction DialogDescription({ className, ...props }: DialogDescriptionProps): JSX.Element {\n return <DialogPrimitive.Description className={cn('text-muted-foreground text-sm', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\ninterface DialogCloseProps extends ComponentProps<typeof DialogPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nfunction DialogClose({ className, size, variant = 'outline', ...props }: DialogCloseProps): JSX.Element {\n return <DialogPrimitive.Close className={buttonVariants({ className, size, variant })} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n DialogBodyProps,\n DialogCloseProps,\n DialogContentProps,\n DialogDescriptionProps,\n DialogFooterProps,\n DialogHeaderProps,\n DialogProps,\n DialogTitleProps,\n DialogTriggerProps,\n};\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use client";import{a}from"./chunk-XJZWYO4Y.js";import{a as c}from"./chunk-OKUFCFYT.js";import{createContextScope as P}from"@radix-ui/react-context";import*as t from"@radix-ui/react-toggle-group";import{createToggleGroupScope as l}from"@radix-ui/react-toggle-group";import{jsx as m,jsxs as x}from"react/jsx-runtime";var u="ToggleGroup",[T]=P(u,[l]),G=l(),[f,S]=T(u);function R({__scopeToggleGroup:o,children:e,className:r,icon:p,size:g,variant:i,...s}){let n=G(o);return m(f,{icon:p,scope:o,size:g,variant:i,children:m(t.Root,{className:c("flex items-center justify-center gap-1.5",r),...n,...s,children:e})})}var v="ToggleGroupItem";function E({__scopeToggleGroup:o,children:e,className:r,prefix:p,suffix:g,...i}){let s=S(v,o),n=G(o);return x(t.Item,{className:a({...s,className:r}),...n,...i,children:[p,typeof e=="string"?m("span",{className:"truncate",children:e}):e,g]})}export{R as a,E as b};
|
|
2
|
+
//# sourceMappingURL=chunk-MUL2EY3O.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRD5ZOT6Ncjs = require('./chunk-RD5ZOT6N.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function x({className:n,...a}){return _jsxruntime.jsx.call(void 0, "nav",{"aria-label":"pagination",className:_chunkSMJEDCFPcjs.a.call(void 0, "mx-auto flex w-full justify-center",n),role:"navigation",...a})}function y({className:n,...a}){return _jsxruntime.jsx.call(void 0, "ul",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex flex-row items-center gap-1",n),...a})}function C(n){return _jsxruntime.jsx.call(void 0, "li",{...n})}function r({children:n,className:a,icon:p=!0,isActive:e,size:P,...l}){return _jsxruntime.jsx.call(void 0, "a",{"aria-current":e?"page":void 0,className:_chunkRD5ZOT6Ncjs.a.call(void 0, {className:a,icon:p,size:P,variant:e?"outline":"ghost"}),...l,children:n})}function E({...n}){return _jsxruntime.jsxs.call(void 0, r,{"aria-label":"Go to previous page",icon:!1,...n,children:[_jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{children:"Previous"})]})}function N({...n}){return _jsxruntime.jsxs.call(void 0, r,{"aria-label":"Go to next page",icon:!1,...n,children:[_jsxruntime.jsx.call(void 0, "span",{children:"Next"}),_jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon,{})]})}function k({className:n,...a}){return _jsxruntime.jsxs.call(void 0, "span",{"aria-hidden":!0,className:_chunkSMJEDCFPcjs.a.call(void 0, "flex size-10 items-center justify-center",n),...a,children:[_jsxruntime.jsx.call(void 0, _lucidereact.EllipsisIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"More pages"})]})}exports.a = x; exports.b = y; exports.c = C; exports.d = r; exports.e = E; exports.f = N; exports.g = k;
|
|
2
|
+
//# sourceMappingURL=chunk-PIJN35MC.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-PIJN35MC.cjs","../src/components/pagination.tsx"],"names":["Pagination","className","props","jsx","cn","PaginationContent","PaginationItem","PaginationLink","children","icon","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeftIcon","PaginationNext","ChevronRightIcon","PaginationEllipsis","EllipsisIcon"],"mappings":"AAAA,iIAAwC,wDAAyC,2CCEjB,+CAe5D,SAFKA,CAAAA,CAAW,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiC,CACzE,OACEC,6BAAAA,KAAC,CAAA,CACC,YAAA,CAAW,YAAA,CACX,SAAA,CAAWC,iCAAAA,oCAAG,CAAsCH,CAAS,CAAA,CAC7D,IAAA,CAAK,YAAA,CACJ,GAAGC,CAAAA,CACN,CAEJ,CAQA,SAASG,CAAAA,CAAkB,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAwC,CACvF,OAAOC,6BAAAA,IAAC,CAAA,CAAG,SAAA,CAAWC,iCAAAA,kCAAG,CAAoCH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CACtF,CAQA,SAASI,CAAAA,CAAeJ,CAAAA,CAAyC,CAC/D,OAAOC,6BAAAA,IAAC,CAAA,CAAI,GAAGD,CAAAA,CAAO,CACxB,CAUA,SAASK,CAAAA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CAAyC,CACzF,OACEY,8BAAAA,MAAC,CAAA,CAAK,aAAA,CAAW,CAAA,CAAA,CAAC,SAAA,CAAWV,iCAAAA,0CAAG,CAA4CH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAC1F,QAAA,CAAA,CAAAC,6BAAAA,yBAACgB,CAAA,CAAa,SAAA,CAAU,QAAA,CAAS,CAAA,CACjChB,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,SAAA,CAAU,QAAA,CAAA,YAAA,CAAU,CAAA,CAAA,CACtC,CAEJ,CAAA,wGAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-PIJN35MC.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { ChevronLeftIcon, ChevronRightIcon, EllipsisIcon } from 'lucide-react';\n\nimport type { ButtonVariantsProps } from '@/variants/button.variants';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/variants/button.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Pagination\n * -------------------------------------------------------------------------- */\n\ntype PaginationProps = ComponentProps<'nav'>;\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 PaginationContentProps = ComponentProps<'ul'>;\n\nfunction PaginationContent({ className, ...props }: PaginationContentProps): JSX.Element {\n return <ul className={cn('flex flex-row items-center gap-1', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationItem\n * -------------------------------------------------------------------------- */\n\ntype PaginationItemProps = ComponentProps<'li'>;\n\nfunction PaginationItem(props: PaginationItemProps): JSX.Element {\n return <li {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationLink\n * -------------------------------------------------------------------------- */\n\ninterface PaginationLinkProps extends ComponentProps<'a'>, Pick<ButtonVariantsProps, 'icon' | 'size'> {\n isActive?: boolean;\n}\n\nfunction PaginationLink({\n children,\n className,\n icon = true,\n isActive,\n size,\n ...props\n}: PaginationLinkProps): JSX.Element {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={buttonVariants({\n className,\n icon,\n size,\n variant: isActive ? 'outline' : 'ghost',\n })}\n {...props}\n >\n {children}\n </a>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationPrevious\n * -------------------------------------------------------------------------- */\n\ntype PaginationPreviousProps = PaginationLinkProps;\n\nfunction PaginationPrevious({ ...props }: PaginationPreviousProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to previous page\" icon={false} {...props}>\n <ChevronLeftIcon className=\"size-4\" />\n <span>Previous</span>\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationNext\n * -------------------------------------------------------------------------- */\n\ntype PaginationNextProps = PaginationLinkProps;\n\nfunction PaginationNext({ ...props }: PaginationNextProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to next page\" icon={false} {...props}>\n <span>Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationEllipsis\n * -------------------------------------------------------------------------- */\n\ntype PaginationEllipsisProps = ComponentProps<'span'>;\n\nfunction PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): JSX.Element {\n return (\n <span aria-hidden className={cn('flex size-10 items-center justify-center', className)} {...props}>\n <EllipsisIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n PaginationContentProps,\n PaginationEllipsisProps,\n PaginationItemProps,\n PaginationLinkProps,\n PaginationNextProps,\n PaginationPreviousProps,\n PaginationProps,\n};\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactaccordion = require('@radix-ui/react-accordion'); var o = _interopRequireWildcard(_reactaccordion);var _reactslot = require('@radix-ui/react-slot');var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');var a=o.Root,P= exports.b =o.Item;function A({asChild:t,className:r,...n}){return t?_jsxruntime.jsx.call(void 0, _reactslot.Slot,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-90",r),...n}):_jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon,{"aria-hidden":!0,className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-90",r)})}function l({className:t,...r}){return _jsxruntime.jsx.call(void 0, o.Header,{className:"flex",children:_jsxruntime.jsx.call(void 0, o.Trigger,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus-visible:ring-ring focus-visible:ring-3 group flex grow items-center gap-2 py-4 text-left text-sm font-medium focus-visible:outline-none",t),...r})})}function f({children:t,className:r,...n}){return _jsxruntime.jsx.call(void 0, o.Content,{className:"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden",...n,children:_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "pb-4 pt-0 text-sm",r),children:t})})}exports.a = a; exports.b = P; exports.c = A; exports.d = l; exports.e = f;
|
|
2
|
+
//# sourceMappingURL=chunk-PLQBG655.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-PLQBG655.cjs","../src/components/accordion.tsx"],"names":["Accordion","AccordionItem","AccordionIcon","asChild","className","props","jsx","Slot","cn","ChevronRightIcon","AccordionTrigger","AccordionContent","children"],"mappings":"AAAA,mZAAwC,6GCEJ,iDACf,2CACY,+CA8B3B,IArBAA,CAAAA,CAA+B,CAAA,CAAA,IAAA,CAO/BC,CAAAA,aAAmC,CAAA,CAAA,IAAA,CAWzC,SAASC,CAAAA,CAAc,CAAE,OAAA,CAAAC,CAAAA,CAAS,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAoC,CACxF,OAAIF,CAAAA,CAEAG,6BAAAA,eAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,oFAAG,CAAsFJ,CAAS,CAAA,CAC5G,GAAGC,CAAAA,CACN,CAAA,CAKFC,6BAAAA,6BAACG,CAAA,CACC,aAAA,CAAW,CAAA,CAAA,CACX,SAAA,CAAWD,iCAAAA,oFAAG,CAAsFJ,CAAS,CAAA,CAC/G,CAEJ,CAQA,SAASM,CAAAA,CAAiB,CAAE,SAAA,CAAAN,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAuC,CACrF,OACEC,6BAAAA,CAAoB,CAAA,MAAA,CAAnB,CAA0B,SAAA,CAAU,MAAA,CACnC,QAAA,CAAAA,6BAAAA,CAAoB,CAAA,OAAA,CAAnB,CACC,SAAA,CAAWE,iCAAAA,+IACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAAA,CACF,CAEJ,CAQA,SAASM,CAAAA,CAAiB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAR,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAuC,CAC/F,OACEC,6BAAAA,CAAoB,CAAA,OAAA,CAAnB,CACC,SAAA,CAAU,2GAAA,CACT,GAAGD,CAAAA,CAEJ,QAAA,CAAAC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWE,iCAAAA,mBAAG,CAAqBJ,CAAS,CAAA,CAAI,QAAA,CAAAQ,CAAAA,CAAS,CAAA,CAChE,CAEJ,CAAA,0EAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-PLQBG655.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { Slot } from '@radix-ui/react-slot';\nimport { ChevronRightIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = ComponentProps<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemProps = ComponentProps<typeof AccordionPrimitive.Item>;\nconst AccordionItem = AccordionPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionIcon\n * -------------------------------------------------------------------------- */\n\ninterface AccordionIconProps extends ComponentProps<typeof Slot> {\n asChild?: boolean;\n className?: string;\n}\n\nfunction AccordionIcon({ asChild, className, ...props }: AccordionIconProps): JSX.Element {\n if (asChild) {\n return (\n <Slot\n className={cn('text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-90', className)}\n {...props}\n />\n );\n }\n\n return (\n <ChevronRightIcon\n aria-hidden\n className={cn('text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-90', className)}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerProps = ComponentProps<typeof AccordionPrimitive.Trigger>;\n\nfunction AccordionTrigger({ className, ...props }: AccordionTriggerProps): JSX.Element {\n return (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n className={cn(\n 'focus-visible:ring-ring focus-visible:ring-3 group flex grow items-center gap-2 py-4 text-left text-sm font-medium focus-visible:outline-none',\n className,\n )}\n {...props}\n />\n </AccordionPrimitive.Header>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentProps = ComponentProps<typeof AccordionPrimitive.Content>;\n\nfunction AccordionContent({ children, className, ...props }: AccordionContentProps): JSX.Element {\n return (\n <AccordionPrimitive.Content\n className=\"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden\"\n {...props}\n >\n <div className={cn('pb-4 pt-0 text-sm', className)}>{children}</div>\n </AccordionPrimitive.Content>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { AccordionContentProps, AccordionIconProps, AccordionItemProps, AccordionProps, AccordionTriggerProps };\nexport { Accordion, AccordionContent, AccordionIcon, AccordionItem, AccordionTrigger };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkRD5ZOT6Ncjs = require('./chunk-RD5ZOT6N.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactselect = require('@radix-ui/react-select'); var e = _interopRequireWildcard(_reactselect);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');var g=e.Root,y= exports.b =e.Group,x= exports.c =e.Value;function C({children:o,className:r,size:l,...a}){return _jsxruntime.jsxs.call(void 0, e.Trigger,{className:_chunkRD5ZOT6Ncjs.a.call(void 0, {className:["focus:ring-ring focus:ring-3 focus:border-input-focus w-full justify-between px-3 font-normal [&>span]:truncate",r],size:l,variant:"outline"}),...a,children:[o,_jsxruntime.jsx.call(void 0, e.Icon,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronsUpDownIcon,{className:"size-4 shrink-0 opacity-50"})})]})}function d({className:o,...r}){return _jsxruntime.jsx.call(void 0, e.ScrollUpButton,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground flex items-center justify-center py-1",o),...r,children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronUpIcon,{size:16})})}function P({className:o,...r}){return _jsxruntime.jsx.call(void 0, e.ScrollDownButton,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground flex items-center justify-center py-1",o),...r,children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon,{size:16})})}function b({children:o,className:r,position:l="popper",...a}){return _jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsxs.call(void 0, e.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-lg border shadow-lg",l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:l,...a,children:[_jsxruntime.jsx.call(void 0, d,{}),_jsxruntime.jsx.call(void 0, e.Viewport,{className:_chunkSMJEDCFPcjs.a.call(void 0, "p-1",l==="popper"&&"h-(--radix-select-trigger-height) min-w-(--radix-select-trigger-width) w-full"),children:o}),_jsxruntime.jsx.call(void 0, P,{})]})})}function w({className:o,...r}){return _jsxruntime.jsx.call(void 0, e.Label,{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex items-center gap-x-2 px-3 py-1.5 text-sm font-semibold",o),...r})}function I({children:o,className:r,...l}){return _jsxruntime.jsxs.call(void 0, e.Item,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground relative flex w-full select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm focus:outline-none aria-disabled:opacity-50",r),...l,children:[_jsxruntime.jsx.call(void 0, e.ItemText,{children:o}),_jsxruntime.jsx.call(void 0, "span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _lucidereact.CheckIcon,{className:"size-4"})})})]})}function h({className:o,...r}){return _jsxruntime.jsx.call(void 0, e.Separator,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted mx-2 my-1 h-px",o),...r})}exports.a = g; exports.b = y; exports.c = x; exports.d = C; exports.e = d; exports.f = P; exports.g = b; exports.h = w; exports.i = I; exports.j = h;
|
|
2
|
+
//# sourceMappingURL=chunk-Q2R7BKY2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-Q2R7BKY2.cjs","../src/components/select.tsx"],"names":["Select","SelectGroup","SelectValue","SelectTrigger","children","className","size","props","jsxs","buttonVariants","jsx","ChevronsUpDownIcon","SelectScrollUpButton","cn","ChevronUpIcon","SelectScrollDownButton","ChevronDownIcon","SelectContent","position","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"mappings":"AAAA,mZAAwC,wDAAyC,oGCEhD,2CAC6C,+CAsC1E,IA1BEA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAO9BC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAUpC,S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B,CAAA,aAAA,CAAhB,CACC,QAAA,CAAAA,6BAAAA,sBAACW,CAAA,CAAU,SAAA,CAAU,QAAA,CAAS,CAAA,CAChC,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAQA,SAASC,CAAAA,CAAgB,CAAE,SAAA,CAAAjB,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAsC,CACnF,OAAOG,6BAAAA,CAAiB,CAAA,SAAA,CAAhB,CAA0B,SAAA,CAAWG,iCAAAA,yBAAG,CAA2BR,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CACpG,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-Q2R7BKY2.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { CheckIcon, ChevronDownIcon, ChevronsUpDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport type { ButtonVariantsProps } from '@/variants/button.variants';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/variants/button.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Select\n * -------------------------------------------------------------------------- */\n\ntype SelectProps = ComponentProps<typeof SelectPrimitive.Root>;\nconst Select = SelectPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectGroup\n * -------------------------------------------------------------------------- */\n\ntype SelectGroupProps = ComponentProps<typeof SelectPrimitive.Group>;\nconst SelectGroup = SelectPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectValue\n * -------------------------------------------------------------------------- */\n\ntype SelectValueProps = ComponentProps<typeof SelectPrimitive.Value>;\nconst SelectValue = SelectPrimitive.Value;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectTrigger\n * -------------------------------------------------------------------------- */\n\ninterface SelectTriggerProps extends ComponentProps<typeof SelectPrimitive.Trigger> {\n size?: ButtonVariantsProps['size'];\n}\n\nfunction SelectTrigger({ children, className, size, ...props }: SelectTriggerProps): JSX.Element {\n return (\n <SelectPrimitive.Trigger\n className={buttonVariants({\n className: [\n 'focus:ring-ring focus:ring-3 focus:border-input-focus w-full justify-between px-3 font-normal [&>span]:truncate',\n className,\n ],\n size,\n variant: 'outline',\n })}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronsUpDownIcon className=\"size-4 shrink-0 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollUpButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollUpButtonProps = ComponentProps<typeof SelectPrimitive.ScrollUpButton>;\n\nfunction SelectScrollUpButton({ className, ...props }: SelectScrollUpButtonProps): JSX.Element {\n return (\n <SelectPrimitive.ScrollUpButton\n className={cn('text-muted-foreground flex items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUpIcon size={16} />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollDownButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollDownButtonProps = ComponentProps<typeof SelectPrimitive.ScrollDownButton>;\n\nfunction SelectScrollDownButton({ className, ...props }: SelectScrollDownButtonProps): JSX.Element {\n return (\n <SelectPrimitive.ScrollDownButton\n className={cn('text-muted-foreground flex items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDownIcon size={16} />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SelectContent\n * -------------------------------------------------------------------------- */\n\ntype SelectContentProps = ComponentProps<typeof SelectPrimitive.Content>;\n\nfunction SelectContent({ children, className, position = 'popper', ...props }: SelectContentProps): JSX.Element {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-lg border shadow-lg',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' && 'h-(--radix-select-trigger-height) min-w-(--radix-select-trigger-width) w-full',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SelectLabel\n * -------------------------------------------------------------------------- */\n\ntype SelectLabelProps = ComponentProps<typeof SelectPrimitive.Label>;\n\nfunction SelectLabel({ className, ...props }: SelectLabelProps): JSX.Element {\n return (\n <SelectPrimitive.Label\n className={cn('flex items-center gap-x-2 px-3 py-1.5 text-sm font-semibold', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SelectItem\n * -------------------------------------------------------------------------- */\n\ntype SelectItemProps = ComponentProps<typeof SelectPrimitive.Item>;\n\nfunction SelectItem({ children, className, ...props }: SelectItemProps): JSX.Element {\n return (\n <SelectPrimitive.Item\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex w-full select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm focus:outline-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\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.Item>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SelectSeparator\n * -------------------------------------------------------------------------- */\n\ntype SelectSeparatorProps = ComponentProps<typeof SelectPrimitive.Separator>;\n\nfunction SelectSeparator({ className, ...props }: SelectSeparatorProps): JSX.Element {\n return <SelectPrimitive.Separator className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n SelectContentProps,\n SelectGroupProps,\n SelectItemProps,\n SelectLabelProps,\n SelectProps,\n SelectScrollDownButtonProps,\n SelectScrollUpButtonProps,\n SelectSeparatorProps,\n SelectTriggerProps,\n SelectValueProps,\n};\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _checkboxgroup = require('@codefast-ui/checkbox-group'); var o = _interopRequireWildcard(_checkboxgroup);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function n({className:r,...i}){return _jsxruntime.jsx.call(void 0, o.Root,{className:_chunkSMJEDCFPcjs.a.call(void 0, "grid gap-2",r),...i})}function s({className:r,...i}){return _jsxruntime.jsx.call(void 0, o.Item,{className:_chunkSMJEDCFPcjs.a.call(void 0, "border-input text-primary-foreground hover:not-disabled:not-aria-checked:border-input-hover aria-checked:border-primary aria-checked:bg-primary focus-visible:ring-ring focus-visible:ring-3 not-disabled:shadow-xs peer flex size-4 shrink-0 rounded-sm border transition focus-visible:outline-none disabled:opacity-50",r),...i,children:_jsxruntime.jsx.call(void 0, o.CheckboxGroupIndicator,{children:_jsxruntime.jsx.call(void 0, _lucidereact.CheckIcon,{className:"size-3.5"})})})}exports.a = n; exports.b = s;
|
|
2
|
+
//# sourceMappingURL=chunk-QO5ZOLVS.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QO5ZOLVS.cjs","../src/components/checkbox-group.tsx"],"names":["CheckboxGroup","className","props","jsx","cn","CheckboxGroupItem","CheckIcon"],"mappings":"AAAA,mZAAwC,6GCEA,2CACd,+CAWjB,SADAA,CAAAA,CAAc,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAoC,CAC/E,OAAOC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,SAAA,CAAWC,iCAAAA,YAAG,CAAcH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CACzF,CAQA,SAASG,CAAAA,CAAkB,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAwC,CACvF,OACEC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,SAAA,CAAWC,iCAAAA,2TACT,CACAH,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAC,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CACC,QAAA,CAAAA,6BAAAA,sBAACG,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAEJ,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QO5ZOLVS.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupProps = ComponentProps<typeof CheckboxGroupPrimitive.Root>;\n\nfunction CheckboxGroup({ className, ...props }: CheckboxGroupProps): JSX.Element {\n return <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemProps = ComponentProps<typeof CheckboxGroupPrimitive.Item>;\n\nfunction CheckboxGroupItem({ className, ...props }: CheckboxGroupItemProps): JSX.Element {\n return (\n <CheckboxGroupPrimitive.Item\n className={cn(\n 'border-input text-primary-foreground hover:not-disabled:not-aria-checked:border-input-hover aria-checked:border-primary aria-checked:bg-primary focus-visible:ring-ring focus-visible:ring-3 not-disabled:shadow-xs peer flex size-4 shrink-0 rounded-sm border transition focus-visible:outline-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { CheckboxGroupItemProps, CheckboxGroupProps };\nexport { CheckboxGroup, CheckboxGroupItem };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-menubar";import{CheckIcon as p,ChevronRightIcon as m,DotIcon as b}from"lucide-react";import{jsx as o,jsxs as s}from"react/jsx-runtime";var l=e.Menu,M=e.Group,P=e.Sub,f=e.RadioGroup;function g({className:t,...r}){return o(e.Root,{className:n("bg-background flex items-center space-x-1 rounded-lg border p-1",t),...r})}function x({className:t,...r}){return o(e.Trigger,{className:n("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm font-medium focus:outline-none",t),...r})}function v({children:t,className:r,inset:a,...i}){return s(e.SubTrigger,{className:n("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none",a&&"pl-8",r),...i,children:[t,o(m,{className:"ml-auto size-4"})]})}function y({className:t,...r}){return o(e.Portal,{children:o(e.SubContent,{className:n("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg",t),...r})})}function S({align:t="start",alignOffset:r=-4,className:a,sideOffset:i=8,...u}){return o(e.Portal,{children:o(e.Content,{align:t,alignOffset:r,className:n("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg",a),sideOffset:i,...u})})}function C({className:t,inset:r,...a}){return o(e.Item,{className:n("focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none aria-disabled:opacity-50",r&&"pl-8",t),...a})}function I({checked:t,children:r,className:a,...i}){return s(e.CheckboxItem,{checked:t,className:n("focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50",a),...i,children:[o("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o(e.ItemIndicator,{children:o(p,{className:"size-4"})})}),r]})}function h({children:t,className:r,...a}){return s(e.RadioItem,{className:n("focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50",r),...a,children:[o("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o(e.ItemIndicator,{children:o(b,{className:"size-4 fill-current"})})}),t]})}function N({className:t,inset:r,...a}){return o(e.Label,{className:n("flex items-center gap-x-2 px-3 py-1.5 text-sm font-semibold",r&&"pl-8",t),...a})}function R({className:t,...r}){return o(e.Separator,{className:n("bg-muted mx-2 my-1 h-px",t),...r})}function J({className:t,...r}){return o("span",{className:n("text-muted-foreground ml-auto text-xs tracking-widest",t),...r})}function T({className:t,...r}){return o(e.Arrow,{className:n("fill-popover",t),...r})}export{l as a,M as b,P as c,f as d,g as e,x as f,v as g,y as h,S as i,C as j,I as k,h as l,N as m,R as n,J as o,T as p};
|
|
2
|
+
//# sourceMappingURL=chunk-QVCV6SHI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/menubar.tsx"],"names":["MenubarPrimitive","CheckIcon","ChevronRightIcon","DotIcon","jsx","jsxs","MenubarMenu","MenubarGroup","MenubarSub","MenubarRadioGroup","Menubar","className","props","cn","MenubarTrigger","MenubarSubTrigger","children","inset","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","MenubarCheckboxItem","checked","MenubarRadioItem","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarArrow"],"mappings":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GAAGC,EAAO,CACtF","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { CheckIcon, ChevronRightIcon, DotIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarMenu\n * -------------------------------------------------------------------------- */\n\ntype MenubarMenuProps = ComponentProps<typeof MenubarPrimitive.Menu>;\nconst MenubarMenu = MenubarPrimitive.Menu;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarGroupProps = ComponentProps<typeof MenubarPrimitive.Group>;\nconst MenubarGroup = MenubarPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSub\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubProps = ComponentProps<typeof MenubarPrimitive.Sub>;\nconst MenubarSub = MenubarPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioGroupProps = ComponentProps<typeof MenubarPrimitive.RadioGroup>;\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\ntype MenubarProps = ComponentProps<typeof MenubarPrimitive.Root>;\n\nfunction Menubar({ className, ...props }: MenubarProps): JSX.Element {\n return (\n <MenubarPrimitive.Root\n className={cn('bg-background flex items-center space-x-1 rounded-lg border p-1', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarTriggerProps = ComponentProps<typeof MenubarPrimitive.Trigger>;\n\nfunction MenubarTrigger({ className, ...props }: MenubarTriggerProps): JSX.Element {\n return (\n <MenubarPrimitive.Trigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm font-medium focus:outline-none',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubTrigger\n * -------------------------------------------------------------------------- */\n\ninterface MenubarSubTriggerProps extends ComponentProps<typeof MenubarPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nfunction MenubarSubTrigger({ children, className, inset, ...props }: MenubarSubTriggerProps): JSX.Element {\n return (\n <MenubarPrimitive.SubTrigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </MenubarPrimitive.SubTrigger>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubContentProps = ComponentProps<typeof MenubarPrimitive.SubContent>;\n\nfunction MenubarSubContent({ className, ...props }: MenubarSubContentProps): JSX.Element {\n return (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.SubContent\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarContentProps = ComponentProps<typeof MenubarPrimitive.Content>;\n\nfunction MenubarContent({\n align = 'start',\n alignOffset = -4,\n className,\n sideOffset = 8,\n ...props\n}: MenubarContentProps): JSX.Element {\n return (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n align={align}\n alignOffset={alignOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarItem\n * -------------------------------------------------------------------------- */\n\ninterface MenubarItemProps extends ComponentProps<typeof MenubarPrimitive.Item> {\n inset?: boolean;\n}\n\nfunction MenubarItem({ className, inset, ...props }: MenubarItemProps): JSX.Element {\n return (\n <MenubarPrimitive.Item\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarCheckboxItemProps = ComponentProps<typeof MenubarPrimitive.CheckboxItem>;\n\nfunction MenubarCheckboxItem({ checked, children, className, ...props }: MenubarCheckboxItemProps): JSX.Element {\n return (\n <MenubarPrimitive.CheckboxItem\n checked={checked}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioItemProps = ComponentProps<typeof MenubarPrimitive.RadioItem>;\n\nfunction MenubarRadioItem({ children, className, ...props }: MenubarRadioItemProps): JSX.Element {\n return (\n <MenubarPrimitive.RadioItem\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\ninterface MenubarLabelProps extends ComponentProps<typeof MenubarPrimitive.Label> {\n inset?: boolean;\n}\n\nfunction MenubarLabel({ className, inset, ...props }: MenubarLabelProps): JSX.Element {\n return (\n <MenubarPrimitive.Label\n className={cn('flex items-center gap-x-2 px-3 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\ntype MenubarSeparatorProps = ComponentProps<typeof MenubarPrimitive.Separator>;\n\nfunction MenubarSeparator({ className, ...props }: MenubarSeparatorProps): JSX.Element {\n return <MenubarPrimitive.Separator className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\ntype MenubarShortcutProps = ComponentProps<'span'>;\n\nfunction MenubarShortcut({ className, ...props }: MenubarShortcutProps): JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\ntype MenubarArrowProps = MenubarPrimitive.MenubarArrowProps;\n\nfunction MenubarArrow({ className, ...props }: MenubarArrowProps): JSX.Element {\n return <MenubarPrimitive.Arrow className={cn('fill-popover', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n MenubarArrowProps,\n MenubarCheckboxItemProps,\n MenubarContentProps,\n MenubarGroupProps,\n MenubarItemProps,\n MenubarLabelProps,\n MenubarMenuProps,\n MenubarProps,\n MenubarRadioGroupProps,\n MenubarRadioItemProps,\n MenubarSeparatorProps,\n MenubarShortcutProps,\n MenubarSubContentProps,\n MenubarSubProps,\n MenubarSubTriggerProps,\n MenubarTriggerProps,\n};\nexport {\n Menubar,\n MenubarArrow,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactmenubar = require('@radix-ui/react-menubar'); var e = _interopRequireWildcard(_reactmenubar);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');var l=e.Menu,M= exports.b =e.Group,P= exports.c =e.Sub,f= exports.d =e.RadioGroup;function g({className:t,...r}){return _jsxruntime.jsx.call(void 0, e.Root,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-background flex items-center space-x-1 rounded-lg border p-1",t),...r})}function x({className:t,...r}){return _jsxruntime.jsx.call(void 0, e.Trigger,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm font-medium focus:outline-none",t),...r})}function v({children:t,className:r,inset:a,...i}){return _jsxruntime.jsxs.call(void 0, e.SubTrigger,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none",a&&"pl-8",r),...i,children:[t,_jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon,{className:"ml-auto size-4"})]})}function y({className:t,...r}){return _jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.SubContent,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg",t),...r})})}function S({align:t="start",alignOffset:r=-4,className:a,sideOffset:i=8,...u}){return _jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Content,{align:t,alignOffset:r,className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg",a),sideOffset:i,...u})})}function C({className:t,inset:r,...a}){return _jsxruntime.jsx.call(void 0, e.Item,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none aria-disabled:opacity-50",r&&"pl-8",t),...a})}function I({checked:t,children:r,className:a,...i}){return _jsxruntime.jsxs.call(void 0, e.CheckboxItem,{checked:t,className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50",a),...i,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _lucidereact.CheckIcon,{className:"size-4"})})}),r]})}function h({children:t,className:r,...a}){return _jsxruntime.jsxs.call(void 0, e.RadioItem,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50",r),...a,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _lucidereact.DotIcon,{className:"size-4 fill-current"})})}),t]})}function N({className:t,inset:r,...a}){return _jsxruntime.jsx.call(void 0, e.Label,{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex items-center gap-x-2 px-3 py-1.5 text-sm font-semibold",r&&"pl-8",t),...a})}function R({className:t,...r}){return _jsxruntime.jsx.call(void 0, e.Separator,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted mx-2 my-1 h-px",t),...r})}function J({className:t,...r}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",t),...r})}function T({className:t,...r}){return _jsxruntime.jsx.call(void 0, e.Arrow,{className:_chunkSMJEDCFPcjs.a.call(void 0, "fill-popover",t),...r})}exports.a = l; exports.b = M; exports.c = P; exports.d = f; exports.e = g; exports.f = x; exports.g = v; exports.h = y; exports.i = S; exports.j = C; exports.k = I; exports.l = h; exports.m = N; exports.n = R; exports.o = J; exports.p = T;
|
|
2
|
+
//# sourceMappingURL=chunk-R4EO3PAD.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-R4EO3PAD.cjs","../src/components/menubar.tsx"],"names":["MenubarMenu","MenubarGroup","MenubarSub","MenubarRadioGroup","Menubar","className","props","jsx","cn","MenubarTrigger","MenubarSubTrigger","children","inset","jsxs","ChevronRightIcon","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","MenubarCheckboxItem","checked","CheckIcon","MenubarRadioItem","DotIcon","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarArrow"],"mappings":"AAAA,mZAAwC,uGCEN,2CACmB,+CAwCjD,IA/BEA,CAAAA,CAA+B,CAAA,CAAA,IAAA,CAO/BC,CAAAA,aAAgC,CAAA,CAAA,KAAA,CAOhCC,CAAAA,aAA8B,CAAA,CAAA,GAAA,CAO9BC,CAAAA,aAAqC,CAAA,CAA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,CAAkB,CAAA,KAAA,CAAjB,CAAuB,SAAA,CAAWC,iCAAAA,cAAG,CAAgBH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CACtF,CAAA,+OAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-R4EO3PAD.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { CheckIcon, ChevronRightIcon, DotIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarMenu\n * -------------------------------------------------------------------------- */\n\ntype MenubarMenuProps = ComponentProps<typeof MenubarPrimitive.Menu>;\nconst MenubarMenu = MenubarPrimitive.Menu;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarGroupProps = ComponentProps<typeof MenubarPrimitive.Group>;\nconst MenubarGroup = MenubarPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSub\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubProps = ComponentProps<typeof MenubarPrimitive.Sub>;\nconst MenubarSub = MenubarPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioGroupProps = ComponentProps<typeof MenubarPrimitive.RadioGroup>;\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\ntype MenubarProps = ComponentProps<typeof MenubarPrimitive.Root>;\n\nfunction Menubar({ className, ...props }: MenubarProps): JSX.Element {\n return (\n <MenubarPrimitive.Root\n className={cn('bg-background flex items-center space-x-1 rounded-lg border p-1', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\ntype MenubarTriggerProps = ComponentProps<typeof MenubarPrimitive.Trigger>;\n\nfunction MenubarTrigger({ className, ...props }: MenubarTriggerProps): JSX.Element {\n return (\n <MenubarPrimitive.Trigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm font-medium focus:outline-none',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubTrigger\n * -------------------------------------------------------------------------- */\n\ninterface MenubarSubTriggerProps extends ComponentProps<typeof MenubarPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nfunction MenubarSubTrigger({ children, className, inset, ...props }: MenubarSubTriggerProps): JSX.Element {\n return (\n <MenubarPrimitive.SubTrigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </MenubarPrimitive.SubTrigger>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarSubContentProps = ComponentProps<typeof MenubarPrimitive.SubContent>;\n\nfunction MenubarSubContent({ className, ...props }: MenubarSubContentProps): JSX.Element {\n return (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.SubContent\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarContent\n * -------------------------------------------------------------------------- */\n\ntype MenubarContentProps = ComponentProps<typeof MenubarPrimitive.Content>;\n\nfunction MenubarContent({\n align = 'start',\n alignOffset = -4,\n className,\n sideOffset = 8,\n ...props\n}: MenubarContentProps): JSX.Element {\n return (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n align={align}\n alignOffset={alignOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarItem\n * -------------------------------------------------------------------------- */\n\ninterface MenubarItemProps extends ComponentProps<typeof MenubarPrimitive.Item> {\n inset?: boolean;\n}\n\nfunction MenubarItem({ className, inset, ...props }: MenubarItemProps): JSX.Element {\n return (\n <MenubarPrimitive.Item\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarCheckboxItemProps = ComponentProps<typeof MenubarPrimitive.CheckboxItem>;\n\nfunction MenubarCheckboxItem({ checked, children, className, ...props }: MenubarCheckboxItemProps): JSX.Element {\n return (\n <MenubarPrimitive.CheckboxItem\n checked={checked}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioItem\n * -------------------------------------------------------------------------- */\n\ntype MenubarRadioItemProps = ComponentProps<typeof MenubarPrimitive.RadioItem>;\n\nfunction MenubarRadioItem({ children, className, ...props }: MenubarRadioItemProps): JSX.Element {\n return (\n <MenubarPrimitive.RadioItem\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\ninterface MenubarLabelProps extends ComponentProps<typeof MenubarPrimitive.Label> {\n inset?: boolean;\n}\n\nfunction MenubarLabel({ className, inset, ...props }: MenubarLabelProps): JSX.Element {\n return (\n <MenubarPrimitive.Label\n className={cn('flex items-center gap-x-2 px-3 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\ntype MenubarSeparatorProps = ComponentProps<typeof MenubarPrimitive.Separator>;\n\nfunction MenubarSeparator({ className, ...props }: MenubarSeparatorProps): JSX.Element {\n return <MenubarPrimitive.Separator className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\ntype MenubarShortcutProps = ComponentProps<'span'>;\n\nfunction MenubarShortcut({ className, ...props }: MenubarShortcutProps): JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\ntype MenubarArrowProps = MenubarPrimitive.MenubarArrowProps;\n\nfunction MenubarArrow({ className, ...props }: MenubarArrowProps): JSX.Element {\n return <MenubarPrimitive.Arrow className={cn('fill-popover', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n MenubarArrowProps,\n MenubarCheckboxItemProps,\n MenubarContentProps,\n MenubarGroupProps,\n MenubarItemProps,\n MenubarLabelProps,\n MenubarMenuProps,\n MenubarProps,\n MenubarRadioGroupProps,\n MenubarRadioItemProps,\n MenubarSeparatorProps,\n MenubarShortcutProps,\n MenubarSubContentProps,\n MenubarSubProps,\n MenubarSubTriggerProps,\n MenubarTriggerProps,\n};\nexport {\n Menubar,\n MenubarArrow,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactdropdownmenu = require('@radix-ui/react-dropdown-menu'); var e = _interopRequireWildcard(_reactdropdownmenu);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');var l=e.Root,w= exports.b =e.Trigger,P= exports.c =e.Group,D= exports.d =e.Sub,M= exports.e =e.RadioGroup;function f({children:o,className:t,inset:r,...a}){return _jsxruntime.jsxs.call(void 0, e.SubTrigger,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none",r&&"pl-8",t),...a,children:[o,_jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon,{className:"ml-auto size-4"})]})}function g({className:o,...t}){return _jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.SubContent,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg",o),...t})})}function b({className:o,sideOffset:t=6,...r}){return _jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg",o),sideOffset:t,...r})})}function v({className:o,inset:t,...r}){return _jsxruntime.jsx.call(void 0, e.Item,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground group relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none aria-disabled:opacity-50",t&&"pl-8",o),...r})}function x({checked:o,children:t,className:r,...a}){return _jsxruntime.jsxs.call(void 0, e.CheckboxItem,{checked:o,className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground group relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50",r),...a,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _lucidereact.CheckIcon,{className:"size-4"})})}),t]})}function S({children:o,className:t,...r}){return _jsxruntime.jsxs.call(void 0, e.RadioItem,{className:_chunkSMJEDCFPcjs.a.call(void 0, "focus:bg-accent focus:text-accent-foreground group relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-none aria-disabled:opacity-50",t),...r,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _lucidereact.DotIcon,{className:"size-4 fill-current"})})}),o]})}function y({className:o,inset:t,...r}){return _jsxruntime.jsx.call(void 0, e.Label,{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex items-center gap-x-2 px-3 py-1.5 text-sm font-semibold",t&&"pl-8",o),...r})}function C({className:o,...t}){return _jsxruntime.jsx.call(void 0, e.Separator,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted mx-2 my-1 h-px",o),...t})}function I({className:o,...t}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground group-aria-selected:text-accent-foreground ml-auto text-xs tracking-widest",o),...t})}function h({className:o,...t}){return _jsxruntime.jsx.call(void 0, e.Arrow,{className:_chunkSMJEDCFPcjs.a.call(void 0, "fill-popover",o),...t})}exports.a = l; exports.b = w; exports.c = P; exports.d = D; exports.e = M; exports.f = f; exports.g = g; exports.h = b; exports.i = v; exports.j = x; exports.k = S; exports.l = y; exports.m = C; exports.n = I; exports.o = h;
|
|
2
|
+
//# sourceMappingURL=chunk-R4NBV7W4.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-R4NBV7W4.cjs","../src/components/dropdown-menu.tsx"],"names":["DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","children","className","inset","props","jsxs","cn","jsx","ChevronRightIcon","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","CheckIcon","DropdownMenuRadioItem","DotIcon","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuArrow"],"mappings":"AAAA,mZAAwC,uHCED,2CACc,+CAiDjD,IAxCEA,CAAAA,CAAqC,CAAA,CAAA,IAAA,CAOrCC,CAAAA,aAA4C,CAAA,CAAA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CAAkB,CAAE,SAAA,CAAAhB,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,GAAGC,CAAM,CAAA,CAAwC,CAC9F,OACEG,6BAAAA,CAAuB,CAAA,KAAA,CAAtB,CACC,SAAA,CAAWD,iCAAAA,6DAAG,CAA+DH,CAAAA,EAAS,MAAA,CAAQD,CAAS,CAAA,CACtG,GAAGE,CAAAA,CACN,CAEJ,CAQA,SAASe,CAAAA,CAAsB,CAAE,SAAA,CAAAjB,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAA4C,CAC/F,OAAOG,6BAAAA,CAAuB,CAAA,SAAA,CAAtB,CAAgC,SAAA,CAAWD,iCAAAA,yBAAG,CAA2BJ,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAC1G,CAQA,SAASgB,CAAAA,CAAqB,CAAE,SAAA,CAAAlB,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAA2C,CAC7F,OACEG,6BAAAA,MAAC,CAAA,CACC,SAAA,CAAWD,iCAAAA,kGACT,CACAJ,CACF,CAAA,CACC,GAAGE,CAAAA,CACN,CAEJ,CAQA,SAASiB,CAAAA,CAAkB,CAAE,SAAA,CAAAnB,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAwC,CACvF,OAAOG,6BAAAA,CAAuB,CAAA,KAAA,CAAtB,CAA4B,SAAA,CAAWD,iCAAAA,cAAG,CAAgBJ,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAC3F,CAAA,gOAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-R4NBV7W4.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { CheckIcon, ChevronRightIcon, DotIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenu\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuProps = ComponentProps<typeof DropdownMenuPrimitive.Root>;\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuTriggerProps = ComponentProps<typeof DropdownMenuPrimitive.Trigger>;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuGroupProps = ComponentProps<typeof DropdownMenuPrimitive.Group>;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSub\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubProps = ComponentProps<typeof DropdownMenuPrimitive.Sub>;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioGroupProps = ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ninterface DropdownMenuSubTriggerProps extends ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nfunction DropdownMenuSubTrigger({ children, className, inset, ...props }: DropdownMenuSubTriggerProps): JSX.Element {\n return (\n <DropdownMenuPrimitive.SubTrigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubContentProps = DropdownMenuPrimitive.DropdownMenuSubContentProps;\n\nfunction DropdownMenuSubContent({ className, ...props }: DropdownMenuSubContentProps): JSX.Element {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuContentProps = ComponentProps<typeof DropdownMenuPrimitive.Content>;\n\nfunction DropdownMenuContent({ className, sideOffset = 6, ...props }: DropdownMenuContentProps): JSX.Element {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-from-b-2 data-[state=open]:data-[side=right]:slide-from-l-2 data-[state=open]:data-[side=bottom]:slide-from-t-2 data-[state=open]:data-[side=left]:slide-from-r-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-to-b-2 data-[state=closed]:data-[side=right]:slide-to-l-2 data-[state=closed]:data-[side=bottom]:slide-to-t-2 data-[state=closed]:data-[side=left]:slide-to-r-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuItem\n * -------------------------------------------------------------------------- */\n\ninterface DropdownMenuItemProps extends ComponentProps<typeof DropdownMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nfunction DropdownMenuItem({ className, inset, ...props }: DropdownMenuItemProps): JSX.Element {\n return (\n <DropdownMenuPrimitive.Item\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground group relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 text-sm focus:outline-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuCheckboxItemProps = ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>;\n\nfunction DropdownMenuCheckboxItem({\n checked,\n children,\n className,\n ...props\n}: DropdownMenuCheckboxItemProps): JSX.Element {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n checked={checked}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground group relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-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 <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioItemProps = ComponentProps<typeof DropdownMenuPrimitive.RadioItem>;\n\nfunction DropdownMenuRadioItem({ children, className, ...props }: DropdownMenuRadioItemProps): JSX.Element {\n return (\n <DropdownMenuPrimitive.RadioItem\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground group relative flex select-none items-center gap-x-2 rounded-sm px-3 py-1.5 pl-8 text-sm focus:outline-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 <DropdownMenuPrimitive.ItemIndicator>\n <DotIcon className=\"size-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuLabel\n * -------------------------------------------------------------------------- */\n\ninterface DropdownMenuLabelProps extends ComponentProps<typeof DropdownMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nfunction DropdownMenuLabel({ className, inset, ...props }: DropdownMenuLabelProps): JSX.Element {\n return (\n <DropdownMenuPrimitive.Label\n className={cn('flex items-center gap-x-2 px-3 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSeparatorProps = ComponentProps<typeof DropdownMenuPrimitive.Separator>;\n\nfunction DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps): JSX.Element {\n return <DropdownMenuPrimitive.Separator className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuShortcutProps = ComponentProps<'span'>;\n\nfunction DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground group-aria-selected:text-accent-foreground ml-auto text-xs tracking-widest',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuArrowProps = DropdownMenuPrimitive.DropdownMenuArrowProps;\n\nfunction DropdownMenuArrow({ className, ...props }: DropdownMenuArrowProps): JSX.Element {\n return <DropdownMenuPrimitive.Arrow className={cn('fill-popover', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n DropdownMenuArrowProps,\n DropdownMenuCheckboxItemProps,\n DropdownMenuContentProps,\n DropdownMenuGroupProps,\n DropdownMenuItemProps,\n DropdownMenuLabelProps,\n DropdownMenuProps,\n DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemProps,\n DropdownMenuSeparatorProps,\n DropdownMenuShortcutProps,\n DropdownMenuSubContentProps,\n DropdownMenuSubProps,\n DropdownMenuSubTriggerProps,\n DropdownMenuTriggerProps,\n};\nexport {\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var i=_tailwindvariants.tv.call(void 0, {base:"focus-visible:ring-ring focus-visible:ring-3 inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg font-medium focus-visible:outline-none disabled:opacity-50 [&>svg]:shrink-0",variants:{icon:{false:"",true:"px-0"},inside:{false:"",true:""},size:{"2xs":"h-7 px-3 text-xs [&>svg]:size-3",xs:"h-8 px-3 text-xs [&>svg]:size-3.5",sm:"h-9 px-4 text-sm [&>svg]:size-4",md:"h-10 px-4 text-sm [&>svg]:size-4",lg:"h-11 px-4 text-sm [&>svg]:size-5",xl:"h-12 px-4 text-sm [&>svg]:size-5"},variant:{default:"bg-primary text-primary-foreground hover:not-disabled:bg-primary-hover",secondary:"bg-secondary text-secondary-foreground hover:not-disabled:bg-secondary-hover",info:"bg-info text-info-foreground hover:not-disabled:bg-info-hover",success:"bg-success text-success-foreground hover:not-disabled:bg-success-hover",warning:"bg-warning text-warning-foreground hover:not-disabled:bg-warning-hover",destructive:"bg-destructive text-destructive-foreground hover:not-disabled:bg-destructive-hover",outline:"border-input not-disabled:shadow-xs hover:not-disabled:hover:not-disabled:bg-accent hover:not-disabled:text-accent-foreground focus-visible:border-input-focus border",ghost:"hover:not-disabled:bg-accent hover:not-disabled:text-accent-foreground",link:"text-primary hover:not-disabled:underline underline-offset-4"}},defaultVariants:{icon:!1,inside:!1,size:"md",variant:"default"},compoundVariants:[{className:"w-7",icon:!0,size:"2xs"},{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"},{className:"h-6",inside:!0,size:"2xs"},{className:"h-6",inside:!0,size:"xs"},{className:"h-7",inside:!0,size:"sm"},{className:"h-8",inside:!0,size:"md"},{className:"h-9",inside:!0,size:"lg"},{className:"h-10",inside:!0,size:"xl"},{className:"w-6",icon:!0,inside:!0,size:"2xs"},{className:"w-6",icon:!0,inside:!0,size:"xs"},{className:"w-7",icon:!0,inside:!0,size:"sm"},{className:"w-8",icon:!0,inside:!0,size:"md"},{className:"w-9",icon:!0,inside:!0,size:"lg"},{className:"w-10",icon:!0,inside:!0,size:"xl"}]});exports.a = i;
|
|
2
|
+
//# sourceMappingURL=chunk-RD5ZOT6N.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/variants/button.variants.ts"],"names":["buttonVariants","tv"],"mappings":"AAEA,8HAAmB,IAEbA,CAAAA,CAAiBC,kCAAAA,CACrB,IAAA,CAAM,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AA,CAAW,MAAA,CAAQ,IAAA,CAAM,CAAA,CAAA,CAAM,MAAA,CAAQ,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAC5D,CACF,CAAC,CAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-RD5ZOT6N.cjs","sourcesContent":["import type { VariantProps } from 'tailwind-variants';\n\nimport { tv } from 'tailwind-variants';\n\nconst buttonVariants = tv({\n base: 'focus-visible:ring-ring focus-visible:ring-3 inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg font-medium focus-visible:outline-none disabled:opacity-50 [&>svg]:shrink-0',\n variants: {\n icon: { false: '', true: 'px-0' },\n inside: { false: '', true: '' },\n size: {\n '2xs': 'h-7 px-3 text-xs [&>svg]:size-3', // 28px\n xs: 'h-8 px-3 text-xs [&>svg]:size-3.5', // 32px\n sm: 'h-9 px-4 text-sm [&>svg]:size-4', // 36px\n md: 'h-10 px-4 text-sm [&>svg]:size-4', // 40px\n lg: 'h-11 px-4 text-sm [&>svg]:size-5', // 44px\n xl: 'h-12 px-4 text-sm [&>svg]:size-5', // 48px\n },\n variant: {\n default: 'bg-primary text-primary-foreground hover:not-disabled:bg-primary-hover',\n secondary: 'bg-secondary text-secondary-foreground hover:not-disabled:bg-secondary-hover',\n info: 'bg-info text-info-foreground hover:not-disabled:bg-info-hover',\n success: 'bg-success text-success-foreground hover:not-disabled:bg-success-hover',\n warning: 'bg-warning text-warning-foreground hover:not-disabled:bg-warning-hover',\n destructive: 'bg-destructive text-destructive-foreground hover:not-disabled:bg-destructive-hover',\n outline:\n 'border-input not-disabled:shadow-xs hover:not-disabled:hover:not-disabled:bg-accent hover:not-disabled:text-accent-foreground focus-visible:border-input-focus border',\n ghost: 'hover:not-disabled:bg-accent hover:not-disabled:text-accent-foreground',\n link: 'text-primary hover:not-disabled:underline underline-offset-4',\n },\n },\n defaultVariants: {\n icon: false,\n inside: false,\n size: 'md',\n variant: 'default',\n },\n compoundVariants: [\n { className: 'w-7', icon: true, size: '2xs' },\n { className: 'w-8', icon: true, size: 'xs' },\n { className: 'w-9', icon: true, size: 'sm' },\n { className: 'w-10', icon: true, size: 'md' },\n { className: 'w-11', icon: true, size: 'lg' },\n { className: 'w-12', icon: true, size: 'xl' },\n\n { className: 'h-6', inside: true, size: '2xs' },\n { className: 'h-6', inside: true, size: 'xs' },\n { className: 'h-7', inside: true, size: 'sm' },\n { className: 'h-8', inside: true, size: 'md' },\n { className: 'h-9', inside: true, size: 'lg' },\n { className: 'h-10', inside: true, size: 'xl' },\n\n { className: 'w-6', icon: true, inside: true, size: '2xs' },\n { className: 'w-6', icon: true, inside: true, size: 'xs' },\n { className: 'w-7', icon: true, inside: true, size: 'sm' },\n { className: 'w-8', icon: true, inside: true, size: 'md' },\n { className: 'w-9', icon: true, inside: true, size: 'lg' },\n { className: 'w-10', icon: true, inside: true, size: 'xl' },\n ],\n});\n\ntype ButtonVariantsProps = VariantProps<typeof buttonVariants>;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ButtonVariantsProps };\nexport { buttonVariants };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-IGCYTKJ7.js";import{a as s}from"./chunk-TAVXLFQE.js";import{jsx as n,jsxs as B}from"react/jsx-runtime";function y({children:t,className:i,disabled:f,icon:u,inside:m,loaderPosition:r="prefix",loading:o,prefix:x,size:b,spinner:p,suffix:c,variant:a,...P}){return B("button",{className:s({className:i,icon:u,inside:m,size:b,variant:a}),"data-variant":a,disabled:o||f,type:"button",...P,children:[o&&r==="prefix"?p||n(e,{}):x,typeof t=="string"?n("span",{className:"truncate",children:t}):t,o&&r==="suffix"?p||n(e,{}):c]})}export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RQJY6UQZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/button.tsx"],"names":["jsx","jsxs","Button","children","className","disabled","icon","inside","loaderPosition","loading","prefix","size","spinner","suffix","variant","props","buttonVariants","Spinner"],"mappings":"gFAmCI,OAauD,OAAAA,EAbvD,QAAAC,MAAA,oBAhBJ,SAASC,EAAO,CACd,SAAAC,EACA,UAAAC,EACA,SAAAC,EACA,KAAAC,EACA,OAAAC,EACA,eAAAC,EAAiB,SACjB,QAAAC,EACA,OAAAC,EACA,KAAAC,EACA,QAAAC,EACA,OAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EAA6B,CAC3B,OACEd,EAAC,UACC,UAAWe,EAAe,CACxB,UAAAZ,EACA,KAAAE,EACA,OAAAC,EACA,KAAAI,EACA,QAAAG,CACF,CAAC,EACD,eAAcA,EACd,SAAUL,GAAWJ,EACrB,KAAK,SACJ,GAAGU,EAEH,UAAAN,GAAWD,IAAmB,SAAWI,GAAWZ,EAACiB,EAAA,EAAQ,EAAKP,EAClE,OAAOP,GAAa,SAAWH,EAAC,QAAK,UAAU,WAAY,SAAAG,EAAS,EAAUA,EAC9EM,GAAWD,IAAmB,SAAWI,GAAWZ,EAACiB,EAAA,EAAQ,EAAKJ,GACrE,CAEJ","sourcesContent":["import type { ComponentProps, JSX, ReactNode } from 'react';\n\nimport type { ButtonVariantsProps } from '@/variants/button.variants';\n\nimport { Spinner } from '@/components/spinner';\nimport { buttonVariants } from '@/variants/button.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Button\n * -------------------------------------------------------------------------- */\n\ninterface ButtonProps extends Omit<ComponentProps<'button'>, 'prefix'>, ButtonVariantsProps {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: ReactNode;\n spinner?: ReactNode;\n suffix?: ReactNode;\n}\n\nfunction Button({\n children,\n className,\n disabled,\n icon,\n inside,\n loaderPosition = 'prefix',\n loading,\n prefix,\n size,\n spinner,\n suffix,\n variant,\n ...props\n}: ButtonProps): JSX.Element {\n return (\n <button\n className={buttonVariants({\n className,\n icon,\n inside,\n size,\n variant,\n })}\n data-variant={variant}\n disabled={loading || disabled}\n type=\"button\"\n {...props}\n >\n {loading && loaderPosition === 'prefix' ? spinner || <Spinner /> : prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {loading && loaderPosition === 'suffix' ? spinner || <Spinner /> : suffix}\n </button>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ButtonProps };\nexport { Button };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var i=_tailwindvariants.tv.call(void 0, {base:"inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md px-1.5 py-0.5 text-sm/5 font-medium sm:text-xs/5 [&>svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border-input border"}},defaultVariants:{variant:"default"}});function f({children:e,className:t,prefix:r,suffix:a,variant:n,...o}){return _jsxruntime.jsxs.call(void 0, "div",{className:i({className:t,variant:n}),...o,children:[r,typeof e=="string"?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:e}):e,a]})}exports.a = f;
|
|
2
|
+
//# sourceMappingURL=chunk-SRVIWHMN.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/badge.tsx"],"names":["badgeVariants","tv","Badge","children","className","prefix","suffix","variant","props","jsxs","jsx"],"mappings":"AAGA,8HAAmB,+CAqCf,IA/BEA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,uJAAA,CACN,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CAAS,oCAAA,CACT,SAAA,CAAW,wCAAA,CACX,IAAA,CAAM,8BAAA,CACN,OAAA,CAAS,oCAAA,CACT,OAAA,CAAS,oCAAA,CACT,WAAA,CAAa,4CAAA,CACb,OAAA,CAAS,mCACX,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SACX,CACF,CAAC,CAAA,CAaD,SAASC,CAAAA,CAAM,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,MAAA,CAAAC,CAAAA,CAAQ,MAAA,CAAAC,CAAAA,CAAQ,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAA4B,CAClG,OACEC,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWT,CAAAA,CAAc,CAAE,SAAA,CAAAI,CAAAA,CAAW,OAAA,CAAAG,CAAQ,CAAC,CAAA,CAAI,GAAGC,CAAAA,CACxD,QAAA,CAAA,CAAAH,CAAAA,CACA,OAAOF,CAAAA,EAAa,QAAA,CAAWO,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,UAAA,CAAY,QAAA,CAAAP,CAAAA,CAAS,CAAA,CAAUA,CAAAA,CAC9EG,CAAAA,CAAAA,CACH,CAEJ,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-SRVIWHMN.cjs","sourcesContent":["import type { ComponentProps, JSX, ReactNode } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { tv } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: 'inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md px-1.5 py-0.5 text-sm/5 font-medium sm:text-xs/5 [&>svg]:shrink-0',\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground',\n secondary: 'bg-secondary text-secondary-foreground',\n info: 'bg-info text-info-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n destructive: 'bg-destructive text-destructive-foreground',\n outline: 'bg-background border-input border',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\ntype BadgeVariantsProps = VariantProps<typeof badgeVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\ninterface BadgeProps extends Omit<ComponentProps<'div'>, 'prefix'>, BadgeVariantsProps {\n prefix?: ReactNode;\n suffix?: ReactNode;\n}\n\nfunction Badge({ children, className, prefix, suffix, variant, ...props }: BadgeProps): JSX.Element {\n return (\n <div className={badgeVariants({ className, variant })} {...props}>\n {prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { BadgeProps };\nexport { Badge };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-OKUFCFYT.js";import{jsx as t}from"react/jsx-runtime";function d({className:r,...e}){return t("div",{className:o("bg-card text-card-foreground rounded-lg border shadow-sm",r),...e})}function a({className:r,...e}){return t("div",{className:o("flex flex-col gap-y-1.5 p-6",r),...e})}function s({children:r,className:e,...n}){return t("h3",{className:o("font-semibold leading-none tracking-tight",e),...n,children:r})}function C({className:r,...e}){return t("p",{className:o("text-muted-foreground text-sm",r),...e})}function i({className:r,...e}){return t("div",{className:o("p-6 pt-0",r),...e})}function m({className:r,...e}){return t("div",{className:o("flex items-center p-6 pt-0",r),...e})}export{d as a,a as b,s as c,C as d,i as e,m as f};
|
|
2
|
+
//# sourceMappingURL=chunk-SSD6L5OR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/card.tsx"],"names":["jsx","Card","className","props","cn","CardHeader","CardTitle","children","CardDescription","CardContent","CardFooter"],"mappings":"wCAWS,cAAAA,MAAA,oBADT,SAASC,EAAK,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAA2B,CAC7D,OAAOH,EAAC,OAAI,UAAWI,EAAG,2DAA4DF,CAAS,EAAI,GAAGC,EAAO,CAC/G,CAQA,SAASE,EAAW,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAiC,CACzE,OAAOH,EAAC,OAAI,UAAWI,EAAG,8BAA+BF,CAAS,EAAI,GAAGC,EAAO,CAClF,CAQA,SAASG,EAAU,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAgC,CACjF,OACEH,EAAC,MAAG,UAAWI,EAAG,4CAA6CF,CAAS,EAAI,GAAGC,EAC5E,SAAAI,EACH,CAEJ,CAQA,SAASC,EAAgB,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAsC,CACnF,OAAOH,EAAC,KAAE,UAAWI,EAAG,gCAAiCF,CAAS,EAAI,GAAGC,EAAO,CAClF,CAQA,SAASM,EAAY,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAkC,CAC3E,OAAOH,EAAC,OAAI,UAAWI,EAAG,WAAYF,CAAS,EAAI,GAAGC,EAAO,CAC/D,CAQA,SAASO,EAAW,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAiC,CACzE,OAAOH,EAAC,OAAI,UAAWI,EAAG,6BAA8BF,CAAS,EAAI,GAAGC,EAAO,CACjF","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Card\n * -------------------------------------------------------------------------- */\n\ntype CardProps = ComponentProps<'div'>;\n\nfunction Card({ className, ...props }: CardProps): JSX.Element {\n return <div className={cn('bg-card text-card-foreground rounded-lg border shadow-sm', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardHeader\n * -------------------------------------------------------------------------- */\n\ntype CardHeaderProps = ComponentProps<'div'>;\n\nfunction CardHeader({ className, ...props }: CardHeaderProps): JSX.Element {\n return <div className={cn('flex flex-col gap-y-1.5 p-6', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardTitle\n * -------------------------------------------------------------------------- */\n\ntype CardTitleProps = ComponentProps<'h3'>;\n\nfunction CardTitle({ children, className, ...props }: CardTitleProps): JSX.Element {\n return (\n <h3 className={cn('font-semibold leading-none tracking-tight', className)} {...props}>\n {children}\n </h3>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardDescription\n * -------------------------------------------------------------------------- */\n\ntype CardDescriptionProps = ComponentProps<'p'>;\n\nfunction CardDescription({ className, ...props }: CardDescriptionProps): JSX.Element {\n return <p className={cn('text-muted-foreground text-sm', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardContent\n * -------------------------------------------------------------------------- */\n\ntype CardContentProps = ComponentProps<'div'>;\n\nfunction CardContent({ className, ...props }: CardContentProps): JSX.Element {\n return <div className={cn('p-6 pt-0', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardFooter\n * -------------------------------------------------------------------------- */\n\ntype CardFooterProps = ComponentProps<'div'>;\n\nfunction CardFooter({ className, ...props }: CardFooterProps): JSX.Element {\n return <div className={cn('flex items-center p-6 pt-0', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps };\nexport { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{tv as t}from"tailwind-variants";var o=t({slots:{root:"border-input bg-background [&>svg]:text-muted-foreground hover:not-has-disabled:not-focus-within:border-input-hover focus-within:border-input-focus focus-within:ring-ring focus-within:ring-3 has-disabled:opacity-50 not-has-disabled:shadow-xs flex w-full grow items-center gap-3 rounded-lg border px-3 text-sm transition [&>svg]:shrink-0",input:"placeholder:text-muted-foreground peer size-full outline-none file:bg-transparent file:font-medium"},variants:{inputSize:{"2xs":{root:"h-7 [&>svg]:size-3",input:"file:py-0.75"},xs:{root:"h-8 [&>svg]:size-3.5",input:"file:py-1.25"},sm:{root:"h-9 [&>svg]:size-4",input:"file:py-1.75"},md:{root:"h-10 [&>svg]:size-4",input:"file:py-2.25"},lg:{root:"h-11 [&>svg]:size-5",input:"file:py-2.75"},xl:{root:"h-12 [&>svg]:size-5",input:"file:py-3.25"}}},defaultVariants:{inputSize:"md"}});export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-T4YGCOXD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/variants/input.variants.ts"],"names":["tv","inputVariants"],"mappings":"AAEA,OAAS,MAAAA,MAAU,oBAEnB,IAAMC,EAAgBD,EAAG,CACvB,MAAO,CACL,KAAM,mVACN,MAAO,oGACT,EACA,SAAU,CACR,UAAW,CACT,MAAO,CAAE,KAAM,qBAAsB,MAAO,cAAe,EAC3D,GAAI,CAAE,KAAM,uBAAwB,MAAO,cAAe,EAC1D,GAAI,CAAE,KAAM,qBAAsB,MAAO,cAAe,EACxD,GAAI,CAAE,KAAM,sBAAuB,MAAO,cAAe,EACzD,GAAI,CAAE,KAAM,sBAAuB,MAAO,cAAe,EACzD,GAAI,CAAE,KAAM,sBAAuB,MAAO,cAAe,CAC3D,CACF,EACA,gBAAiB,CACf,UAAW,IACb,CACF,CAAC","sourcesContent":["import type { VariantProps } from 'tailwind-variants';\n\nimport { tv } from 'tailwind-variants';\n\nconst inputVariants = tv({\n slots: {\n root: 'border-input bg-background [&>svg]:text-muted-foreground hover:not-has-disabled:not-focus-within:border-input-hover focus-within:border-input-focus focus-within:ring-ring focus-within:ring-3 has-disabled:opacity-50 not-has-disabled:shadow-xs flex w-full grow items-center gap-3 rounded-lg border px-3 text-sm transition [&>svg]:shrink-0',\n input: 'placeholder:text-muted-foreground peer size-full outline-none file:bg-transparent file:font-medium',\n },\n variants: {\n inputSize: {\n '2xs': { root: 'h-7 [&>svg]:size-3', input: 'file:py-0.75' }, // 28px\n xs: { root: 'h-8 [&>svg]:size-3.5', input: 'file:py-1.25' }, // 32px\n sm: { root: 'h-9 [&>svg]:size-4', input: 'file:py-1.75' }, // 36px\n md: { root: 'h-10 [&>svg]:size-4', input: 'file:py-2.25' }, // 40px\n lg: { root: 'h-11 [&>svg]:size-5', input: 'file:py-2.75' }, // 44px\n xl: { root: 'h-12 [&>svg]:size-5', input: 'file:py-3.25' }, // 48px\n },\n },\n defaultVariants: {\n inputSize: 'md',\n },\n});\n\ntype InputVariantsProps = VariantProps<typeof inputVariants>;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { InputVariantsProps };\nexport { inputVariants };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{tv as e}from"tailwind-variants";var i=e({base:"focus-visible:ring-ring focus-visible:ring-3 inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg font-medium focus-visible:outline-none disabled:opacity-50 [&>svg]:shrink-0",variants:{icon:{false:"",true:"px-0"},inside:{false:"",true:""},size:{"2xs":"h-7 px-3 text-xs [&>svg]:size-3",xs:"h-8 px-3 text-xs [&>svg]:size-3.5",sm:"h-9 px-4 text-sm [&>svg]:size-4",md:"h-10 px-4 text-sm [&>svg]:size-4",lg:"h-11 px-4 text-sm [&>svg]:size-5",xl:"h-12 px-4 text-sm [&>svg]:size-5"},variant:{default:"bg-primary text-primary-foreground hover:not-disabled:bg-primary-hover",secondary:"bg-secondary text-secondary-foreground hover:not-disabled:bg-secondary-hover",info:"bg-info text-info-foreground hover:not-disabled:bg-info-hover",success:"bg-success text-success-foreground hover:not-disabled:bg-success-hover",warning:"bg-warning text-warning-foreground hover:not-disabled:bg-warning-hover",destructive:"bg-destructive text-destructive-foreground hover:not-disabled:bg-destructive-hover",outline:"border-input not-disabled:shadow-xs hover:not-disabled:hover:not-disabled:bg-accent hover:not-disabled:text-accent-foreground focus-visible:border-input-focus border",ghost:"hover:not-disabled:bg-accent hover:not-disabled:text-accent-foreground",link:"text-primary hover:not-disabled:underline underline-offset-4"}},defaultVariants:{icon:!1,inside:!1,size:"md",variant:"default"},compoundVariants:[{className:"w-7",icon:!0,size:"2xs"},{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"},{className:"h-6",inside:!0,size:"2xs"},{className:"h-6",inside:!0,size:"xs"},{className:"h-7",inside:!0,size:"sm"},{className:"h-8",inside:!0,size:"md"},{className:"h-9",inside:!0,size:"lg"},{className:"h-10",inside:!0,size:"xl"},{className:"w-6",icon:!0,inside:!0,size:"2xs"},{className:"w-6",icon:!0,inside:!0,size:"xs"},{className:"w-7",icon:!0,inside:!0,size:"sm"},{className:"w-8",icon:!0,inside:!0,size:"md"},{className:"w-9",icon:!0,inside:!0,size:"lg"},{className:"w-10",icon:!0,inside:!0,size:"xl"}]});export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TAVXLFQE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/variants/button.variants.ts"],"names":["tv","buttonVariants"],"mappings":"AAEA,OAAS,MAAAA,MAAU,oBAEnB,IAAMC,EAAiBD,EAAG,CACxB,KAAM,2NACN,SAAU,CACR,KAAM,CAAE,MAAO,GAAI,KAAM,MAAO,EAChC,OAAQ,CAAE,MAAO,GAAI,KAAM,EAAG,EAC9B,KAAM,CACJ,MAAO,kCACP,GAAI,oCACJ,GAAI,kCACJ,GAAI,mCACJ,GAAI,mCACJ,GAAI,kCACN,EACA,QAAS,CACP,QAAS,yEACT,UAAW,+EACX,KAAM,gEACN,QAAS,yEACT,QAAS,yEACT,YAAa,qFACb,QACE,wKACF,MAAO,yEACP,KAAM,8DACR,CACF,EACA,gBAAiB,CACf,KAAM,GACN,OAAQ,GACR,KAAM,KACN,QAAS,SACX,EACA,iBAAkB,CAChB,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,KAAM,EAC5C,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAE5C,CAAE,UAAW,MAAO,OAAQ,GAAM,KAAM,KAAM,EAC9C,CAAE,UAAW,MAAO,OAAQ,GAAM,KAAM,IAAK,EAC7C,CAAE,UAAW,MAAO,OAAQ,GAAM,KAAM,IAAK,EAC7C,CAAE,UAAW,MAAO,OAAQ,GAAM,KAAM,IAAK,EAC7C,CAAE,UAAW,MAAO,OAAQ,GAAM,KAAM,IAAK,EAC7C,CAAE,UAAW,OAAQ,OAAQ,GAAM,KAAM,IAAK,EAE9C,CAAE,UAAW,MAAO,KAAM,GAAM,OAAQ,GAAM,KAAM,KAAM,EAC1D,CAAE,UAAW,MAAO,KAAM,GAAM,OAAQ,GAAM,KAAM,IAAK,EACzD,CAAE,UAAW,MAAO,KAAM,GAAM,OAAQ,GAAM,KAAM,IAAK,EACzD,CAAE,UAAW,MAAO,KAAM,GAAM,OAAQ,GAAM,KAAM,IAAK,EACzD,CAAE,UAAW,MAAO,KAAM,GAAM,OAAQ,GAAM,KAAM,IAAK,EACzD,CAAE,UAAW,OAAQ,KAAM,GAAM,OAAQ,GAAM,KAAM,IAAK,CAC5D,CACF,CAAC","sourcesContent":["import type { VariantProps } from 'tailwind-variants';\n\nimport { tv } from 'tailwind-variants';\n\nconst buttonVariants = tv({\n base: 'focus-visible:ring-ring focus-visible:ring-3 inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg font-medium focus-visible:outline-none disabled:opacity-50 [&>svg]:shrink-0',\n variants: {\n icon: { false: '', true: 'px-0' },\n inside: { false: '', true: '' },\n size: {\n '2xs': 'h-7 px-3 text-xs [&>svg]:size-3', // 28px\n xs: 'h-8 px-3 text-xs [&>svg]:size-3.5', // 32px\n sm: 'h-9 px-4 text-sm [&>svg]:size-4', // 36px\n md: 'h-10 px-4 text-sm [&>svg]:size-4', // 40px\n lg: 'h-11 px-4 text-sm [&>svg]:size-5', // 44px\n xl: 'h-12 px-4 text-sm [&>svg]:size-5', // 48px\n },\n variant: {\n default: 'bg-primary text-primary-foreground hover:not-disabled:bg-primary-hover',\n secondary: 'bg-secondary text-secondary-foreground hover:not-disabled:bg-secondary-hover',\n info: 'bg-info text-info-foreground hover:not-disabled:bg-info-hover',\n success: 'bg-success text-success-foreground hover:not-disabled:bg-success-hover',\n warning: 'bg-warning text-warning-foreground hover:not-disabled:bg-warning-hover',\n destructive: 'bg-destructive text-destructive-foreground hover:not-disabled:bg-destructive-hover',\n outline:\n 'border-input not-disabled:shadow-xs hover:not-disabled:hover:not-disabled:bg-accent hover:not-disabled:text-accent-foreground focus-visible:border-input-focus border',\n ghost: 'hover:not-disabled:bg-accent hover:not-disabled:text-accent-foreground',\n link: 'text-primary hover:not-disabled:underline underline-offset-4',\n },\n },\n defaultVariants: {\n icon: false,\n inside: false,\n size: 'md',\n variant: 'default',\n },\n compoundVariants: [\n { className: 'w-7', icon: true, size: '2xs' },\n { className: 'w-8', icon: true, size: 'xs' },\n { className: 'w-9', icon: true, size: 'sm' },\n { className: 'w-10', icon: true, size: 'md' },\n { className: 'w-11', icon: true, size: 'lg' },\n { className: 'w-12', icon: true, size: 'xl' },\n\n { className: 'h-6', inside: true, size: '2xs' },\n { className: 'h-6', inside: true, size: 'xs' },\n { className: 'h-7', inside: true, size: 'sm' },\n { className: 'h-8', inside: true, size: 'md' },\n { className: 'h-9', inside: true, size: 'lg' },\n { className: 'h-10', inside: true, size: 'xl' },\n\n { className: 'w-6', icon: true, inside: true, size: '2xs' },\n { className: 'w-6', icon: true, inside: true, size: 'xs' },\n { className: 'w-7', icon: true, inside: true, size: 'sm' },\n { className: 'w-8', icon: true, inside: true, size: 'md' },\n { className: 'w-9', icon: true, inside: true, size: 'lg' },\n { className: 'w-10', icon: true, inside: true, size: 'xl' },\n ],\n});\n\ntype ButtonVariantsProps = VariantProps<typeof buttonVariants>;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ButtonVariantsProps };\nexport { buttonVariants };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@codefast-ui/checkbox-group";import{CheckIcon as a}from"lucide-react";import{jsx as o,jsxs as n}from"react/jsx-runtime";function m(r){return o(e.Root,{...r})}function h({checkboxClassName:r,children:t,className:s,...c}){return n("label",{className:i("hover:not-has-disabled:bg-accent has-aria-checked:border-primary has-focus-visible:border-input-focus has-focus-visible:ring-ring has-focus-visible:ring-3 has-focus-visible:outline-none has-disabled:opacity-50 border-accent group flex items-center justify-center gap-4 rounded-lg border-2 p-4 transition",s),children:[t,o(e.Item,{className:i("border-input text-primary-foreground group-hover:not-disabled:not-aria-checked:border-input-hover aria-checked:border-primary aria-checked:bg-primary peer flex size-4 shrink-0 rounded-sm border transition focus-visible:outline-none",r),...c,children:o(e.CheckboxGroupIndicator,{children:o(a,{className:"size-3.5"})})})]})}export{m as a,h as b};
|
|
2
|
+
//# sourceMappingURL=chunk-TB6L4INZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/checkbox-cards.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","jsx","jsxs","CheckboxCards","props","CheckboxCardsItem","checkboxClassName","children","className","cn"],"mappings":"wCAEA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,eAWjB,cAAAC,EAaL,QAAAC,MAbK,oBADT,SAASC,EAAcC,EAAwC,CAC7D,OAAOH,EAAwB,OAAvB,CAA6B,GAAGG,EAAO,CACjD,CAUA,SAASC,EAAkB,CAAE,kBAAAC,EAAmB,SAAAC,EAAU,UAAAC,EAAW,GAAGJ,CAAM,EAAwC,CACpH,OACEF,EAAC,SACC,UAAWO,EACT,kTACAD,CACF,EAEC,UAAAD,EACDN,EAAwB,OAAvB,CACC,UAAWQ,EACT,0OACAH,CACF,EACC,GAAGF,EAEJ,SAAAH,EAAwB,yBAAvB,CACC,SAAAA,EAACD,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsProps = ComponentProps<typeof CheckboxGroupPrimitive.Root>;\n\nfunction CheckboxCards(props: CheckboxCardsProps): JSX.Element {\n return <CheckboxGroupPrimitive.Root {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ninterface CheckboxCardsItemProps extends ComponentProps<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nfunction CheckboxCardsItem({ checkboxClassName, children, className, ...props }: CheckboxCardsItemProps): JSX.Element {\n return (\n <label\n className={cn(\n 'hover:not-has-disabled:bg-accent has-aria-checked:border-primary has-focus-visible:border-input-focus has-focus-visible:ring-ring has-focus-visible:ring-3 has-focus-visible:outline-none has-disabled:opacity-50 border-accent group flex items-center justify-center gap-4 rounded-lg border-2 p-4 transition',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n className={cn(\n 'border-input text-primary-foreground group-hover:not-disabled:not-aria-checked:border-input-hover aria-checked:border-primary aria-checked:bg-primary peer flex size-4 shrink-0 rounded-sm border transition focus-visible:outline-none',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { CheckboxCardsItemProps, CheckboxCardsProps };\nexport { CheckboxCards, CheckboxCardsItem };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i}from"./chunk-OKUFCFYT.js";import*as o from"@radix-ui/react-radio-group";import{jsx as t}from"react/jsx-runtime";function p({className:r,...e}){return t(o.Root,{className:i("grid gap-2",r),...e})}function s({className:r,...e}){return t(o.Item,{className:i("border-accent hover:not-disabled:bg-accent focus-visible:ring-ring focus-visible:border-ring focus-visible:ring-3 aria-checked:border-primary group peer flex items-center justify-center rounded-lg border-2 p-4 transition focus-visible:outline-none disabled:opacity-50",r),...e})}export{p as a,s as b};
|
|
2
|
+
//# sourceMappingURL=chunk-TLVUBHED.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/radio-cards.tsx"],"names":["RadioGroupPrimitive","jsx","RadioCards","className","props","cn","RadioCardsItem"],"mappings":"wCAEA,UAAYA,MAAyB,8BAW5B,cAAAC,MAAA,oBADT,SAASC,EAAW,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAiC,CACzE,OAAOH,EAAqB,OAApB,CAAyB,UAAWI,EAAG,aAAcF,CAAS,EAAI,GAAGC,EAAO,CACtF,CAQA,SAASE,EAAe,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAqC,CACjF,OACEH,EAAqB,OAApB,CACC,UAAWI,EACT,8QACAF,CACF,EACC,GAAGC,EACN,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCards\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsProps = ComponentProps<typeof RadioGroupPrimitive.Root>;\n\nfunction RadioCards({ className, ...props }: RadioCardsProps): JSX.Element {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCardsItem\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsItemProps = ComponentProps<typeof RadioGroupPrimitive.Item>;\n\nfunction RadioCardsItem({ className, ...props }: RadioCardsItemProps): JSX.Element {\n return (\n <RadioGroupPrimitive.Item\n className={cn(\n 'border-accent hover:not-disabled:bg-accent focus-visible:ring-ring focus-visible:border-ring focus-visible:ring-3 aria-checked:border-primary group peer flex items-center justify-center rounded-lg border-2 p-4 transition focus-visible:outline-none disabled:opacity-50',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { RadioCardsItemProps, RadioCardsProps };\nexport { RadioCards, RadioCardsItem };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{a as B,b as X,c as J,d as T}from"./chunk-HQBOID2K.js";import{a as I,c as N,g as _,h as k}from"./chunk-C6I24UU5.js";import{a as P}from"./chunk-AXBTXUF5.js";import{a as E}from"./chunk-JCMXN5SL.js";import{a as M}from"./chunk-VKG6MFL3.js";import{a as y}from"./chunk-RQJY6UQZ.js";import{a as o}from"./chunk-OKUFCFYT.js";import{useMediaQuery as R}from"@codefast/hooks";import{Slot as g}from"@radix-ui/react-slot";import{VisuallyHidden as H}from"@radix-ui/react-visually-hidden";import K from"js-cookie";import{PanelLeftIcon as L}from"lucide-react";import{createContext as V,useCallback as z,useContext as F,useEffect as W,useMemo as O,useState as A}from"react";import{tv as j}from"tailwind-variants";import{jsx as a,jsxs as c}from"react/jsx-runtime";var q="sidebar:state",$=7,Q="16rem",U="18rem",Y="3rem",Z="b",ee=768,D=V(null);function x(){let e=F(D);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ge({children:e,className:t,defaultOpen:n=!0,onOpenChange:r,open:i,style:l,...m}){let p=R(`(max-width: ${ee-1}px)`),[b,d]=A(!1),[S,w]=A(n),f=i??S,v=z(s=>{let u=typeof s=="function"?s(f):s;r?r(u):w(u),K.set(q,String(u),{expires:$,path:"/"})},[r,f]),h=z(()=>{p?d(s=>!s):v(s=>!s)},[p,v,d]);W(()=>{let s=u=>{u.key===Z&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),h())};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[h]);let C=f?"expanded":"collapsed",G=O(()=>({isMobile:p,open:f,openMobile:b,setOpen:v,setOpenMobile:d,state:C,toggleSidebar:h}),[C,f,v,p,b,d,h]);return a(D.Provider,{value:G,children:a(B,{delayDuration:0,children:a("div",{className:o("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",t),style:{"--sidebar-width":Q,"--sidebar-width-icon":Y,...l},...m,children:e})})})}function Se({children:e,className:t,collapsible:n="offcanvas",side:r="left",variant:i="sidebar",...l}){let{isMobile:m,openMobile:p,setOpenMobile:b,state:d}=x();return n==="none"?a("div",{className:o("bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex h-full flex-col",t),...l,children:e}):m?a(I,{open:p,onOpenChange:b,...l,children:c(N,{className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:r,style:{"--sidebar-width":U},children:[c(H,{children:[a(_,{children:"Sidebar"}),a(k,{children:"Press escape to close the sidebar"})]}),a("div",{className:"flex h-full w-full flex-col",children:e})]})}):c("div",{className:"text-sidebar-foreground group peer hidden md:block","data-collapsible":d==="collapsed"?n:"","data-side":r,"data-state":d,"data-variant":i,children:[a("div",{className:o("w-(--sidebar-width) relative h-svh bg-transparent transition-[width] duration-200 ease-linear group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180",i==="floating"||i==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),a("div",{className:o("w-(--sidebar-width) fixed inset-y-0 z-10 hidden h-svh transition-[left,right,width] duration-200 ease-linear md:flex",r==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",i==="floating"||i==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",t),...l,children:a("div",{className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-xs flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border","data-sidebar":"sidebar",children:e})})]})}function ve({className:e,onClick:t,...n}){let{toggleSidebar:r}=x();return c(y,{icon:!0,className:o("",e),"data-sidebar":"trigger",size:"2xs",variant:"ghost",onClick:i=>{t?.(i),r()},...n,children:[a(L,{}),a("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function he({className:e,...t}){let{toggleSidebar:n}=x();return a("button",{"aria-label":"Toggle Sidebar",className:o("hover:after:bg-sidebar-border group-data-[collapsible=offcanvas]:hover:bg-sidebar absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 group-data-[side=left]:-right-4 group-data-[side=right]:left-0 group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full sm:flex [[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=left]_&]:cursor-w-resize [[data-side=right][data-collapsible=offcanvas]_&]:-left-2 [[data-side=right][data-state=collapsed]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",e),"data-sidebar":"rail",tabIndex:-1,title:"Toggle Sidebar",type:"button",onClick:n,...t})}function xe({className:e,...t}){return a("main",{className:o("bg-background md:peer-data-[variant=inset]:shadow-xs relative flex min-h-svh flex-1 flex-col peer-data-[variant=inset]:min-h-[calc(100svh-var(--spacing-4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-lg",e),...t})}function Pe({className:e,...t}){return a(M,{className:o("bg-background focus-visible:ring-sidebar-ring focus-visible:ring-3 h-8 w-full shadow-none",e),"data-sidebar":"input",...t})}function we({className:e,...t}){return a("div",{className:o("flex flex-col gap-2 p-2",e),"data-sidebar":"header",...t})}function Ce({className:e,...t}){return a("div",{className:o("flex flex-col gap-2 p-2",e),"data-sidebar":"footer",...t})}function ye({className:e,...t}){return a(E,{className:o("bg-sidebar-border mx-2 w-auto",e),"data-sidebar":"separator",...t})}function Me({className:e,...t}){return a("div",{className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),"data-sidebar":"content",...t})}function Ee({className:e,...t}){return a("div",{className:o("relative flex w-full min-w-0 flex-col p-2",e),"data-sidebar":"group",...t})}function Ie({asChild:e=!1,className:t,...n}){return a(e?g:"div",{className:o("text-sidebar-foreground/70 ring-sidebar-ring focus-visible:ring-3 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-none transition-[margin,opa] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",t),"data-sidebar":"group-label",...n})}function Ne({asChild:e=!1,className:t,...n}){return a(e?g:"button",{className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden after:md:hidden [&>svg]:size-4 [&>svg]:shrink-0",t),"data-sidebar":"group-action",...n})}function _e({className:e,...t}){return a("div",{className:o("w-full text-sm",e),"data-sidebar":"group-content",...t})}function ke({className:e,...t}){return a("ul",{className:o("flex w-full min-w-0 flex-col gap-1",e),"data-sidebar":"menu",...t})}function Be({className:e,...t}){return a("li",{className:o("group/menu-item relative",e),"data-sidebar":"menu-item",...t})}var te=j({base:"peer/menu-button ring-sidebar-ring data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground focus-visible:ring-3 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"},variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--color-sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--color-sidebar-accent))]"}},defaultVariants:{size:"default",variant:"default"}});function Xe({asChild:e=!1,className:t,isActive:n=!1,size:r="default",tooltip:i,variant:l="default",...m}){let p=e?g:"button",{isMobile:b,state:d}=x(),S=a(p,{className:o(te({size:r,variant:l}),t),"data-active":n,"data-sidebar":"menu-button","data-size":r,...m});return i?c(X,{children:[a(J,{asChild:!0,children:S}),a(T,{align:"center",hidden:d!=="collapsed"||b,side:"right",...typeof i=="string"?{children:i}:i})]}):S}function Je({asChild:e=!1,className:t,showOnHover:n=!1,...r}){return a(e?g:"button",{className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground focus-visible:ring-3 absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:md:hidden [&>svg]:size-4 [&>svg]:shrink-0",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),"data-sidebar":"menu-action",...r})}function Te({className:e,...t}){return a("div",{className:o("text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1",e),"data-sidebar":"menu-badge",...t})}function ze({className:e,showIcon:t=!1,...n}){let r=O(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c("div",{className:o("flex h-8 items-center gap-2 rounded-md px-2",e),"data-sidebar":"menu-skeleton",...n,children:[t?a(P,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}):null,a(P,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function Ae({className:e,...t}){return a("ul",{className:o("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",e),"data-sidebar":"menu-sub",...t})}function Oe({...e}){return a("li",{...e})}function De({asChild:e=!1,className:t,isActive:n,size:r="md",...i}){return a(e?g:"a",{className:o("text-sidebar-foreground ring-sidebar-ring [&>svg]:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground focus-visible:ring-3 flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",r==="sm"&&"text-xs",r==="md"&&"text-sm group-data-[collapsible=icon]:hidden",t),"data-active":n,"data-sidebar":"menu-sub-button","data-size":r,...i})}export{x as a,ge as b,Se as c,ve as d,he as e,xe as f,Pe as g,we as h,Ce as i,ye as j,Me as k,Ee as l,Ie as m,Ne as n,_e as o,ke as p,Be as q,Xe as r,Je as s,Te as t,ze as u,Ae as v,Oe as w,De as x};
|
|
2
|
+
//# sourceMappingURL=chunk-TPYKFY52.js.map
|