@codefast/ui 0.2.22 → 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 +28 -0
- package/dist/{chunk-CWVNPFGZ.js → chunk-2AZ4MW4T.js} +1 -1
- package/dist/chunk-2AZ4MW4T.js.map +1 -0
- package/dist/chunk-2GUGNIMN.cjs +2 -0
- package/dist/chunk-2GUGNIMN.cjs.map +1 -0
- package/dist/chunk-2YU62UV7.js +2 -0
- package/dist/chunk-2YU62UV7.js.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-QYZMBJFY.js → chunk-4BADV3FT.js} +2 -2
- package/dist/chunk-4BADV3FT.js.map +1 -0
- package/dist/{chunk-4OYK75XH.cjs → chunk-57Y4FSTL.cjs} +2 -2
- package/dist/chunk-57Y4FSTL.cjs.map +1 -0
- package/dist/chunk-5NVU3OSZ.js +2 -0
- package/dist/chunk-5NVU3OSZ.js.map +1 -0
- package/dist/{chunk-OK2YNCDD.cjs → chunk-5W4F5LEY.cjs} +2 -2
- package/dist/chunk-5W4F5LEY.cjs.map +1 -0
- package/dist/{chunk-2HQFST3N.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-PGKNHNSZ.cjs → chunk-74METGII.cjs} +1 -1
- package/dist/chunk-74METGII.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-7RIKNXUQ.cjs +2 -0
- 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-HJPUT7OQ.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-CPXZI54X.cjs +2 -0
- package/dist/chunk-CPXZI54X.cjs.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-YP7XMWG3.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-6EKIIH2A.js → chunk-JCMXN5SL.js} +2 -2
- package/dist/chunk-JCMXN5SL.js.map +1 -0
- package/dist/{chunk-YZHSPX6Y.cjs → chunk-JJ46AZUG.cjs} +2 -2
- package/dist/chunk-JJ46AZUG.cjs.map +1 -0
- package/dist/chunk-KRMPCH3E.js +2 -0
- 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-4VEUMBAT.cjs → chunk-KXRMWFKE.cjs} +2 -2
- package/dist/chunk-KXRMWFKE.cjs.map +1 -0
- package/dist/chunk-KZZLDLIH.js +2 -0
- package/dist/chunk-KZZLDLIH.js.map +1 -0
- package/dist/{chunk-XSTVNTLV.js → chunk-L4TXGBGM.js} +2 -2
- package/dist/{chunk-XSTVNTLV.js.map → chunk-L4TXGBGM.js.map} +1 -1
- 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-FA7EBRYX.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-YM5ZQJMZ.js → chunk-MUL2EY3O.js} +2 -2
- package/dist/chunk-MUL2EY3O.js.map +1 -0
- package/dist/{chunk-3LGRR4TI.cjs → chunk-PIJN35MC.cjs} +2 -2
- package/dist/{chunk-3LGRR4TI.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-PRRPNTUI.js +2 -0
- package/dist/chunk-PRRPNTUI.js.map +1 -0
- package/dist/chunk-Q2R7BKY2.cjs +2 -0
- package/dist/chunk-Q2R7BKY2.cjs.map +1 -0
- package/dist/{chunk-TTWAO7YU.cjs → chunk-QO5ZOLVS.cjs} +2 -2
- 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-TZA6RQAF.js.map +1 -0
- 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-FJUGGAT4.cjs → chunk-VEXA5WBY.cjs} +2 -2
- package/dist/chunk-VEXA5WBY.cjs.map +1 -0
- 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-WUDXQ77W.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-NLWL4Y2E.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 +4 -4
- package/dist/components/calendar.d.ts +4 -4
- 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.d.cts +1 -1
- package/dist/components/checkbox-cards.d.ts +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/form.cjs +1 -1
- package/dist/components/form.d.cts +4 -2
- package/dist/components/form.d.ts +4 -2
- package/dist/components/form.js +1 -1
- package/dist/components/hover-card.cjs +1 -1
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-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/label.cjs +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/menubar.cjs +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/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 +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/logger.cjs +1 -1
- package/dist/lib/logger.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 +20 -29
- package/dist/chunk-23EVLBKY.js +0 -2
- package/dist/chunk-23EVLBKY.js.map +0 -1
- package/dist/chunk-2HQFST3N.cjs.map +0 -1
- package/dist/chunk-2OAFUKSI.js +0 -2
- package/dist/chunk-2OAFUKSI.js.map +0 -1
- package/dist/chunk-2T5ATHNG.cjs +0 -2
- package/dist/chunk-2T5ATHNG.cjs.map +0 -1
- package/dist/chunk-2XAD6KHW.js +0 -2
- package/dist/chunk-2XAD6KHW.js.map +0 -1
- package/dist/chunk-3PQYLBF5.cjs +0 -2
- package/dist/chunk-3PQYLBF5.cjs.map +0 -1
- package/dist/chunk-3R4JJFSA.js +0 -2
- package/dist/chunk-3R4JJFSA.js.map +0 -1
- package/dist/chunk-4OYK75XH.cjs.map +0 -1
- package/dist/chunk-4VEUMBAT.cjs.map +0 -1
- package/dist/chunk-5AP5SOMK.cjs +0 -2
- package/dist/chunk-5AP5SOMK.cjs.map +0 -1
- package/dist/chunk-5WX3E22K.cjs +0 -2
- package/dist/chunk-5WX3E22K.cjs.map +0 -1
- package/dist/chunk-6EKIIH2A.js.map +0 -1
- package/dist/chunk-6SAOAD7N.js +0 -2
- package/dist/chunk-6SAOAD7N.js.map +0 -1
- package/dist/chunk-7AO2GOMC.cjs +0 -2
- package/dist/chunk-7AO2GOMC.cjs.map +0 -1
- package/dist/chunk-7X325ZDU.js +0 -2
- package/dist/chunk-7X325ZDU.js.map +0 -1
- package/dist/chunk-A5RWHIED.cjs +0 -2
- package/dist/chunk-A5RWHIED.cjs.map +0 -1
- package/dist/chunk-AEHJUTB6.js +0 -2
- package/dist/chunk-AEHJUTB6.js.map +0 -1
- package/dist/chunk-AGY7ZINL.js +0 -2
- package/dist/chunk-AGY7ZINL.js.map +0 -1
- package/dist/chunk-ARHU67E3.js +0 -2
- package/dist/chunk-ARHU67E3.js.map +0 -1
- package/dist/chunk-ASWVOLVY.js +0 -2
- package/dist/chunk-ASWVOLVY.js.map +0 -1
- package/dist/chunk-BQMMZOW2.cjs +0 -2
- package/dist/chunk-BQMMZOW2.cjs.map +0 -1
- package/dist/chunk-C57DD4MH.cjs +0 -2
- package/dist/chunk-C57DD4MH.cjs.map +0 -1
- package/dist/chunk-CMGARCLB.cjs +0 -2
- package/dist/chunk-CMGARCLB.cjs.map +0 -1
- package/dist/chunk-CWVNPFGZ.js.map +0 -1
- package/dist/chunk-D2MSNZGZ.js +0 -2
- package/dist/chunk-D2MSNZGZ.js.map +0 -1
- package/dist/chunk-D3CKUFYQ.cjs +0 -2
- package/dist/chunk-D3CKUFYQ.cjs.map +0 -1
- package/dist/chunk-DMDORTLF.js +0 -2
- package/dist/chunk-DMDORTLF.js.map +0 -1
- package/dist/chunk-DPD3MYJA.js +0 -2
- package/dist/chunk-DPD3MYJA.js.map +0 -1
- package/dist/chunk-DV2WTX6F.js +0 -2
- package/dist/chunk-DV2WTX6F.js.map +0 -1
- package/dist/chunk-DZFTFPGA.cjs +0 -2
- package/dist/chunk-DZFTFPGA.cjs.map +0 -1
- package/dist/chunk-E65CC5MR.cjs +0 -2
- package/dist/chunk-E65CC5MR.cjs.map +0 -1
- package/dist/chunk-EJIFLQRM.cjs +0 -2
- package/dist/chunk-EJIFLQRM.cjs.map +0 -1
- package/dist/chunk-ELGMNSNZ.js +0 -2
- package/dist/chunk-ELGMNSNZ.js.map +0 -1
- package/dist/chunk-EQKKLJNJ.js +0 -2
- package/dist/chunk-EQKKLJNJ.js.map +0 -1
- package/dist/chunk-F54E45OA.js +0 -2
- package/dist/chunk-F54E45OA.js.map +0 -1
- package/dist/chunk-FA7EBRYX.cjs.map +0 -1
- package/dist/chunk-FIYSKOEZ.cjs +0 -2
- package/dist/chunk-FIYSKOEZ.cjs.map +0 -1
- package/dist/chunk-FJUGGAT4.cjs.map +0 -1
- package/dist/chunk-FMJH72MR.js +0 -2
- package/dist/chunk-FMJH72MR.js.map +0 -1
- package/dist/chunk-FUVB7GYS.js +0 -2
- package/dist/chunk-FUVB7GYS.js.map +0 -1
- package/dist/chunk-GLQEDQFR.cjs +0 -2
- package/dist/chunk-GLQEDQFR.cjs.map +0 -1
- package/dist/chunk-HJPUT7OQ.js.map +0 -1
- package/dist/chunk-HTUQ65FG.js +0 -2
- package/dist/chunk-HTUQ65FG.js.map +0 -1
- package/dist/chunk-IGVEMKZX.js +0 -2
- package/dist/chunk-IGVEMKZX.js.map +0 -1
- package/dist/chunk-IPQ7USJI.js +0 -2
- package/dist/chunk-IPQ7USJI.js.map +0 -1
- package/dist/chunk-IRGIHT6Q.cjs +0 -2
- package/dist/chunk-IRGIHT6Q.cjs.map +0 -1
- package/dist/chunk-ISDNKWFY.js +0 -2
- package/dist/chunk-ISDNKWFY.js.map +0 -1
- package/dist/chunk-IW5SUYQ6.cjs +0 -2
- package/dist/chunk-IW5SUYQ6.cjs.map +0 -1
- package/dist/chunk-JRMDTSBT.cjs +0 -2
- package/dist/chunk-JRMDTSBT.cjs.map +0 -1
- package/dist/chunk-JWJ2UTIR.cjs +0 -2
- package/dist/chunk-JWJ2UTIR.cjs.map +0 -1
- package/dist/chunk-K23WCISZ.js +0 -4
- package/dist/chunk-K23WCISZ.js.map +0 -1
- package/dist/chunk-K3VON6TU.cjs +0 -2
- package/dist/chunk-K3VON6TU.cjs.map +0 -1
- package/dist/chunk-KH5HNZFJ.cjs +0 -2
- package/dist/chunk-KH5HNZFJ.cjs.map +0 -1
- package/dist/chunk-KJ52RDFA.js +0 -2
- package/dist/chunk-KJ52RDFA.js.map +0 -1
- package/dist/chunk-LBFHFIWF.cjs.map +0 -1
- package/dist/chunk-LTVOTU54.cjs +0 -2
- package/dist/chunk-LTVOTU54.cjs.map +0 -1
- package/dist/chunk-MOV4RJ6N.js +0 -2
- package/dist/chunk-MOV4RJ6N.js.map +0 -1
- package/dist/chunk-MSABUPTO.cjs +0 -2
- package/dist/chunk-MSABUPTO.cjs.map +0 -1
- package/dist/chunk-MTR3VABR.cjs +0 -2
- package/dist/chunk-MTR3VABR.cjs.map +0 -1
- package/dist/chunk-NLWL4Y2E.cjs.map +0 -1
- package/dist/chunk-NUTKI7MN.cjs +0 -2
- package/dist/chunk-NUTKI7MN.cjs.map +0 -1
- package/dist/chunk-NXC3EONN.js +0 -2
- package/dist/chunk-NXC3EONN.js.map +0 -1
- package/dist/chunk-O6Q7TNNG.js +0 -2
- package/dist/chunk-O6Q7TNNG.js.map +0 -1
- package/dist/chunk-OAB4NWE2.js +0 -2
- package/dist/chunk-OAB4NWE2.js.map +0 -1
- package/dist/chunk-OK2YNCDD.cjs.map +0 -1
- package/dist/chunk-OZBTMTRM.js +0 -2
- package/dist/chunk-OZBTMTRM.js.map +0 -1
- package/dist/chunk-PGD5STRH.cjs +0 -2
- package/dist/chunk-PGD5STRH.cjs.map +0 -1
- package/dist/chunk-PGKNHNSZ.cjs.map +0 -1
- package/dist/chunk-PS4ZPIDS.cjs +0 -4
- package/dist/chunk-PS4ZPIDS.cjs.map +0 -1
- package/dist/chunk-QB5NCYE4.cjs +0 -2
- package/dist/chunk-QB5NCYE4.cjs.map +0 -1
- package/dist/chunk-QLHV4Y57.js +0 -2
- package/dist/chunk-QLHV4Y57.js.map +0 -1
- package/dist/chunk-QQCKQCXV.js +0 -2
- package/dist/chunk-QQCKQCXV.js.map +0 -1
- package/dist/chunk-QU4VM5VF.js +0 -2
- package/dist/chunk-QU4VM5VF.js.map +0 -1
- package/dist/chunk-QYZMBJFY.js.map +0 -1
- package/dist/chunk-RX4LFU6W.cjs +0 -2
- package/dist/chunk-RX4LFU6W.cjs.map +0 -1
- package/dist/chunk-SFR34SQ2.js +0 -2
- package/dist/chunk-SFR34SQ2.js.map +0 -1
- package/dist/chunk-SPCGL26X.js +0 -2
- package/dist/chunk-SPCGL26X.js.map +0 -1
- package/dist/chunk-SSZKZXFM.js +0 -2
- package/dist/chunk-SSZKZXFM.js.map +0 -1
- package/dist/chunk-T6ATICRQ.js +0 -2
- package/dist/chunk-T6ATICRQ.js.map +0 -1
- package/dist/chunk-T6TKUY76.cjs +0 -2
- package/dist/chunk-T6TKUY76.cjs.map +0 -1
- package/dist/chunk-TR7XTVTB.cjs +0 -2
- package/dist/chunk-TR7XTVTB.cjs.map +0 -1
- package/dist/chunk-TTWAO7YU.cjs.map +0 -1
- package/dist/chunk-UDGC4CDE.js +0 -2
- package/dist/chunk-UDGC4CDE.js.map +0 -1
- package/dist/chunk-UKULSFKO.js +0 -2
- package/dist/chunk-UKULSFKO.js.map +0 -1
- package/dist/chunk-ULZZJB4X.js +0 -2
- package/dist/chunk-ULZZJB4X.js.map +0 -1
- package/dist/chunk-USJYG7MC.js +0 -2
- package/dist/chunk-USJYG7MC.js.map +0 -1
- package/dist/chunk-W3Y5Q4KW.cjs +0 -2
- package/dist/chunk-W3Y5Q4KW.cjs.map +0 -1
- package/dist/chunk-WH2BSQGH.js +0 -2
- package/dist/chunk-WH2BSQGH.js.map +0 -1
- package/dist/chunk-WNNUATHQ.cjs +0 -2
- package/dist/chunk-WNNUATHQ.cjs.map +0 -1
- package/dist/chunk-WPHGIH4B.cjs +0 -2
- package/dist/chunk-WPHGIH4B.cjs.map +0 -1
- package/dist/chunk-WRLVHZJ4.js +0 -2
- package/dist/chunk-WRLVHZJ4.js.map +0 -1
- package/dist/chunk-WUDXQ77W.cjs.map +0 -1
- package/dist/chunk-XCPSEB55.cjs +0 -2
- package/dist/chunk-XCPSEB55.cjs.map +0 -1
- package/dist/chunk-YA5ZRFA7.cjs +0 -2
- package/dist/chunk-YA5ZRFA7.cjs.map +0 -1
- package/dist/chunk-YJA5B6SE.cjs +0 -2
- package/dist/chunk-YJA5B6SE.cjs.map +0 -1
- package/dist/chunk-YJH4ARV4.js +0 -2
- package/dist/chunk-YJH4ARV4.js.map +0 -1
- package/dist/chunk-YJVH2ALW.js +0 -2
- package/dist/chunk-YJVH2ALW.js.map +0 -1
- package/dist/chunk-YM5ZQJMZ.js.map +0 -1
- package/dist/chunk-YP7XMWG3.cjs.map +0 -1
- package/dist/chunk-YZHSPX6Y.cjs.map +0 -1
- package/dist/chunk-Z4APHFUJ.cjs +0 -2
- package/dist/chunk-Z4APHFUJ.cjs.map +0 -1
- package/dist/chunk-ZIVKN2AV.js +0 -2
- package/dist/chunk-ZIVKN2AV.js.map +0 -1
- package/dist/chunk-ZSMC6CLH.js +0 -2
- package/dist/chunk-ZSMC6CLH.js.map +0 -1
- package/dist/chunk-ZZ7IIDWN.cjs +0 -2
- package/dist/chunk-ZZ7IIDWN.cjs.map +0 -1
- package/dist/styles.css +0 -2
- package/dist/styles.css.map +0 -1
- package/dist/tailwindcss/animate.cjs +0 -2
- package/dist/tailwindcss/animate.cjs.map +0 -1
- package/dist/tailwindcss/animate.d.cts +0 -5
- package/dist/tailwindcss/animate.d.ts +0 -5
- package/dist/tailwindcss/animate.js +0 -2
- package/dist/tailwindcss/animate.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NUTKI7MN.cjs","../src/components/card.tsx"],"names":["Card","className","props","jsx","cn","CardHeader","CardTitle","children","CardDescription","CardContent","CardFooter"],"mappings":"AAAA,iIAAwC,+CCYpC,SAFKA,CAAAA,CAAK,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA2B,CAC7D,OACEC,6BAAAA,KAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,uDAAG,CAAyDH,CAAS,CAAA,CAC/E,GAAGC,CAAAA,CACN,CAEJ,CAQA,SAASG,CAAAA,CAAW,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiC,CACzE,OAAOC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,6BAAG,CAA+BH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAClF,CAQA,SAASI,CAAAA,CAAU,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAgC,CACjF,OACEC,6BAAAA,IAAC,CAAA,CAAG,SAAA,CAAWC,iCAAAA,2CAAG,CAA6CH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAC5E,QAAA,CAAAK,CAAAA,CACH,CAEJ,CAQA,SAASC,CAAAA,CAAgB,CAAE,SAAA,CAAAP,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAsC,CACnF,OAAOC,6BAAAA,GAAC,CAAA,CAAE,SAAA,CAAWC,iCAAAA,+BAAG,CAAiCH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAClF,CAQA,SAASO,CAAAA,CAAY,CAAE,SAAA,CAAAR,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAkC,CAC3E,OAAOC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,UAAG,CAAYH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAC/D,CAQA,SAASQ,CAAAA,CAAW,CAAE,SAAA,CAAAT,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiC,CACzE,OAAOC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,4BAAG,CAA8BH,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CACjF,CAAA,yFAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NUTKI7MN.cjs","sourcesContent":[null,"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 (\n <div\n className={cn('bg-card text-card-foreground rounded-lg border shadow', className)}\n {...props}\n />\n );\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 {\n CardContentProps,\n CardDescriptionProps,\n CardFooterProps,\n CardHeaderProps,\n CardProps,\n CardTitleProps,\n};\nexport { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };\n"]}
|
package/dist/chunk-NXC3EONN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as D,c as w,d as C,g as T,i as v}from"./chunk-UDGC4CDE.js";import{a as c,b as p,h as g,i,j as f,l as x,m as d}from"./chunk-ASWVOLVY.js";import{a as o}from"./chunk-QU4VM5VF.js";import{a as u}from"./chunk-AGY7ZINL.js";import{a as l}from"./chunk-OKUFCFYT.js";import{ChevronDownIcon as S,ChevronLeftIcon as P,ChevronRightIcon as b,ChevronsLeftIcon as h,ChevronsRightIcon as I,ChevronsUpDownIcon as M,ChevronUpIcon as N,EyeOffIcon as y,Settings2Icon as z}from"lucide-react";import{Fragment as k,jsx as e,jsxs as t}from"react/jsx-runtime";function X({table:n}){return t(c,{children:[t(p,{className:u({size:"xs",variant:"outline"}),children:[e(z,{className:"size-4"}),"View"]}),t(g,{align:"end",className:"w-36",children:[e(x,{children:"Toggle columns"}),e(d,{}),n.getAllColumns().filter(a=>a.accessorFn!==void 0&&a.getCanHide()).map(a=>e(f,{checked:a.getIsVisible(),className:"capitalize",onCheckedChange:r=>{a.toggleVisibility(!!r)},children:a.id},a.id))]})]})}function G({className:n,table:a,...r}){let m=a.getState().pagination.pageSize;return t("div",{className:l("flex flex-wrap items-center justify-between gap-4 px-2",n),...r,children:[t("div",{className:"text-muted-foreground min-w-max flex-1 text-sm",children:[a.getFilteredSelectedRowModel().rows.length," of"," ",a.getFilteredRowModel().rows.length," row(s) selected."]}),t("div",{className:"flex grow flex-wrap items-center justify-between gap-4 md:justify-end md:gap-x-6 lg:gap-x-8",children:[t("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-4",children:[e("p",{className:"text-sm font-medium",children:"Rows per page"}),t(D,{value:m.toString(),onValueChange:s=>{a.setPageSize(Number(s))},children:[e(C,{className:"w-18 h-8",children:e(w,{placeholder:m})}),e(T,{side:"top",children:[10,20,30,40,50].map(s=>e(v,{value:String(s),children:s},s))})]})]}),t("div",{className:"flex flex-wrap items-center justify-center text-sm font-medium",children:["Page ",a.getState().pagination.pageIndex+1," of ",a.getPageCount()]}),t("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-4",children:[t(o,{icon:!0,className:"max-md:hidden",disabled:!a.getCanPreviousPage(),size:"xs",variant:"outline",onClick:()=>{a.setPageIndex(0)},children:[e("span",{className:"sr-only",children:"Go to first page"}),e(h,{className:"size-4"})]}),t(o,{icon:!0,disabled:!a.getCanPreviousPage(),size:"xs",variant:"outline",onClick:()=>{a.previousPage()},children:[e("span",{className:"sr-only",children:"Go to previous page"}),e(P,{className:"size-4"})]}),t(o,{icon:!0,disabled:!a.getCanNextPage(),size:"xs",variant:"outline",onClick:()=>{a.nextPage()},children:[e("span",{className:"sr-only",children:"Go to next page"}),e(b,{className:"size-4"})]}),t(o,{icon:!0,className:"max-md:hidden",disabled:!a.getCanNextPage(),size:"xs",variant:"outline",onClick:()=>{a.setPageIndex(a.getPageCount()-1)},children:[e("span",{className:"sr-only",children:"Go to last page"}),e(I,{className:"size-4"})]})]})]})]})}function L({column:n,title:a}){return n.getCanSort()?t(c,{children:[e(p,{asChild:!0,children:e(o,{className:l("text-muted-foreground p-0","hover:bg-transparent","data-[state=open]:text-accent-foreground","focus-visible:text-accent-foreground focus-visible:bg-transparent focus-visible:outline-0"),size:"xs",suffix:e(V,{sorted:n.getIsSorted()}),variant:"ghost",children:a})}),t(g,{align:"start",children:[t(i,{onClick:()=>{n.toggleSorting(!1)},children:[e(N,{className:"text-muted-foreground size-4"}),"Asc"]}),t(i,{onClick:()=>{n.toggleSorting(!0)},children:[e(S,{className:"text-muted-foreground size-4"}),"Desc"]}),e(d,{}),t(i,{onClick:()=>{n.toggleVisibility(!1)},children:[e(y,{className:"text-muted-foreground size-4"}),"Hide"]})]})]}):e(k,{children:a})}function V({sorted:n}){switch(n){case"desc":return e(S,{});case"asc":return e(N,{});default:return e(M,{})}}export{X as a,G as b,L as c};
|
|
2
|
-
//# sourceMappingURL=chunk-NXC3EONN.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/data-table.tsx"],"names":["ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronsLeftIcon","ChevronsRightIcon","ChevronsUpDownIcon","ChevronUpIcon","EyeOffIcon","Settings2Icon","Fragment","jsx","jsxs","DataTableViewOptions","table","DropdownMenu","DropdownMenuTrigger","buttonVariants","DropdownMenuContent","DropdownMenuLabel","DropdownMenuSeparator","column","DropdownMenuCheckboxItem","value","DataTablePagination","className","props","pageSize","cn","Select","SelectTrigger","SelectValue","SelectContent","size","SelectItem","Button","DataTableColumnHeader","title","SortIcon","DropdownMenuItem","sorted"],"mappings":"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","sourcesContent":["'use client';\n\nimport type * as ReactTable from '@tanstack/react-table';\nimport type { ComponentProps, JSX } from 'react';\n\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronsLeftIcon,\n ChevronsRightIcon,\n ChevronsUpDownIcon,\n ChevronUpIcon,\n EyeOffIcon,\n Settings2Icon,\n} from 'lucide-react';\n\nimport { Button } from '@/components/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/dropdown-menu';\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/select';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/variants/button.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: DataTableViewOptions\n * -------------------------------------------------------------------------- */\n\ninterface DataTableViewOptionsProps<TData> {\n table: ReactTable.Table<TData>;\n}\n\nfunction DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): JSX.Element {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger className={buttonVariants({ size: 'xs', variant: 'outline' })}>\n <Settings2Icon className=\"size-4\" />\n View\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" className=\"w-36\">\n <DropdownMenuLabel>Toggle columns</DropdownMenuLabel>\n <DropdownMenuSeparator />\n {table\n .getAllColumns()\n .filter((column) => column.accessorFn !== undefined && column.getCanHide())\n .map((column) => (\n <DropdownMenuCheckboxItem\n key={column.id}\n checked={column.getIsVisible()}\n className=\"capitalize\"\n onCheckedChange={(value) => {\n column.toggleVisibility(Boolean(value));\n }}\n >\n {column.id}\n </DropdownMenuCheckboxItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DataTablePagination\n * -------------------------------------------------------------------------- */\n\ninterface DataTablePaginationProps<TData> extends ComponentProps<'div'> {\n table: ReactTable.Table<TData>;\n}\n\nfunction DataTablePagination<TData>({\n className,\n table,\n ...props\n}: DataTablePaginationProps<TData>): JSX.Element {\n const pageSize = table.getState().pagination.pageSize;\n\n return (\n <div\n className={cn('flex flex-wrap items-center justify-between gap-4 px-2', className)}\n {...props}\n >\n <div className=\"text-muted-foreground min-w-max flex-1 text-sm\">\n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected.\n </div>\n\n <div className=\"flex grow flex-wrap items-center justify-between gap-4 md:justify-end md:gap-x-6 lg:gap-x-8\">\n <div className=\"flex flex-wrap items-center gap-x-2 gap-y-4\">\n <p className=\"text-sm font-medium\">Rows per page</p>\n <Select\n value={pageSize.toString()}\n onValueChange={(value) => {\n table.setPageSize(Number(value));\n }}\n >\n <SelectTrigger className=\"w-18 h-8\">\n <SelectValue placeholder={pageSize} />\n </SelectTrigger>\n <SelectContent side=\"top\">\n {[10, 20, 30, 40, 50].map((size) => (\n <SelectItem key={size} value={String(size)}>\n {size}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n <div className=\"flex flex-wrap items-center justify-center text-sm font-medium\">\n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n </div>\n <div className=\"flex flex-wrap items-center gap-x-2 gap-y-4\">\n <Button\n icon\n className=\"max-md:hidden\"\n disabled={!table.getCanPreviousPage()}\n size=\"xs\"\n variant=\"outline\"\n onClick={() => {\n table.setPageIndex(0);\n }}\n >\n <span className=\"sr-only\">Go to first page</span>\n <ChevronsLeftIcon className=\"size-4\" />\n </Button>\n <Button\n icon\n disabled={!table.getCanPreviousPage()}\n size=\"xs\"\n variant=\"outline\"\n onClick={() => {\n table.previousPage();\n }}\n >\n <span className=\"sr-only\">Go to previous page</span>\n <ChevronLeftIcon className=\"size-4\" />\n </Button>\n <Button\n icon\n disabled={!table.getCanNextPage()}\n size=\"xs\"\n variant=\"outline\"\n onClick={() => {\n table.nextPage();\n }}\n >\n <span className=\"sr-only\">Go to next page</span>\n <ChevronRightIcon className=\"size-4\" />\n </Button>\n <Button\n icon\n className=\"max-md:hidden\"\n disabled={!table.getCanNextPage()}\n size=\"xs\"\n variant=\"outline\"\n onClick={() => {\n table.setPageIndex(table.getPageCount() - 1);\n }}\n >\n <span className=\"sr-only\">Go to last page</span>\n <ChevronsRightIcon className=\"size-4\" />\n </Button>\n </div>\n </div>\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DataTableColumnHeader\n * -------------------------------------------------------------------------- */\n\ninterface DataTableColumnHeaderProps<TData, TValue> {\n column: ReactTable.Column<TData, TValue>;\n title: string;\n}\n\nfunction DataTableColumnHeader<TData, TValue>({\n column,\n title,\n}: DataTableColumnHeaderProps<TData, TValue>): JSX.Element {\n if (!column.getCanSort()) {\n return <>{title}</>;\n }\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n className={cn(\n 'text-muted-foreground p-0',\n 'hover:bg-transparent',\n 'data-[state=open]:text-accent-foreground',\n 'focus-visible:text-accent-foreground focus-visible:bg-transparent focus-visible:outline-0',\n )}\n size=\"xs\"\n suffix={<SortIcon sorted={column.getIsSorted()} />}\n variant=\"ghost\"\n >\n {title}\n </Button>\n </DropdownMenuTrigger>\n\n <DropdownMenuContent align=\"start\">\n <DropdownMenuItem\n onClick={() => {\n column.toggleSorting(false);\n }}\n >\n <ChevronUpIcon className=\"text-muted-foreground size-4\" />\n Asc\n </DropdownMenuItem>\n <DropdownMenuItem\n onClick={() => {\n column.toggleSorting(true);\n }}\n >\n <ChevronDownIcon className=\"text-muted-foreground size-4\" />\n Desc\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem\n onClick={() => {\n column.toggleVisibility(false);\n }}\n >\n <EyeOffIcon className=\"text-muted-foreground size-4\" />\n Hide\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nfunction SortIcon({ sorted }: { sorted: false | ReactTable.SortDirection }): JSX.Element {\n switch (sorted) {\n case 'desc': {\n return <ChevronDownIcon />;\n }\n\n case 'asc': {\n return <ChevronUpIcon />;\n }\n\n default: {\n return <ChevronsUpDownIcon />;\n }\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { DataTableColumnHeaderProps, DataTablePaginationProps, DataTableViewOptionsProps };\nexport { DataTableColumnHeader, DataTablePagination, DataTableViewOptions };\n"]}
|
package/dist/chunk-O6Q7TNNG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as r,c as p}from"./chunk-YJH4ARV4.js";import{a as t}from"./chunk-OKUFCFYT.js";import{Command as n}from"cmdk";import{SearchIcon as a}from"lucide-react";import{jsx as m,jsxs as i}from"react/jsx-runtime";function d({className:o,...e}){return m(n,{className:t("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...e})}function C({children:o,...e}){return m(r,{...e,children:m(p,{className:"p-0",children:m(d,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:o})})})}function g({className:o,...e}){return i("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[m(a,{className:"size-5 shrink-0 opacity-50"}),m(n.Input,{className:t("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",o),...e})]})}function P({className:o,...e}){return m(n.List,{className:t("max-h-72 overflow-y-auto overflow-x-hidden",o),...e})}function f({className:o,...e}){return m(n.Empty,{className:t("py-6 text-center text-sm",o),...e})}function y({className:o,...e}){return m(n.Group,{className:t("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...e})}function x({className:o,...e}){return m(n.Separator,{className:t("bg-border -mx-1 h-px",o),...e})}function h({className:o,...e}){return m(n.Item,{className:t("gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded-sm text-sm","aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none",o),...e})}function S({className:o,...e}){return m(n.Loading,{className:t("flex justify-center p-2",o),...e})}function v({className:o,...e}){return m("span",{className:t("text-muted-foreground ml-auto text-xs tracking-widest",o),...e})}export{d as a,C as b,g as c,P as d,f as e,y as f,x as g,h,S as i,v as j};
|
|
2
|
-
//# sourceMappingURL=chunk-O6Q7TNNG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/command.tsx"],"names":["CommandPrimitive","SearchIcon","jsx","jsxs","Command","className","props","cn","CommandDialog","children","Dialog","DialogContent","CommandInput","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandLoading","CommandShortcut"],"mappings":"uFAIA,OAAS,WAAWA,MAAwB,OAC5C,OAAS,cAAAC,MAAkB,eAavB,cAAAC,EAoCA,QAAAC,MApCA,oBAFJ,SAASC,EAAQ,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAA8B,CACnE,OACEJ,EAACF,EAAA,CACC,UAAWO,EACT,4FACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASE,EAAc,CAAE,SAAAC,EAAU,GAAGH,CAAM,EAAoC,CAC9E,OACEJ,EAACQ,EAAA,CAAQ,GAAGJ,EACV,SAAAJ,EAACS,EAAA,CAAc,UAAU,MACvB,SAAAT,EAACE,EAAA,CAAQ,UAAU,2TAChB,SAAAK,EACH,EACF,EACF,CAEJ,CAQA,SAASG,EAAa,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAmC,CAC7E,OACEH,EAAC,OAAI,UAAU,wCAAwC,qBAAmB,GACxE,UAAAD,EAACD,EAAA,CAAW,UAAU,6BAA6B,EACnDC,EAACF,EAAiB,MAAjB,CACC,UAAWO,EACT,gJACAF,CACF,EACC,GAAGC,EACN,GACF,CAEJ,CAQA,SAASO,EAAY,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAkC,CAC3E,OACEJ,EAACF,EAAiB,KAAjB,CACC,UAAWO,EAAG,6CAA8CF,CAAS,EACpE,GAAGC,EACN,CAEJ,CAQA,SAASQ,EAAa,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAmC,CAC7E,OACEJ,EAACF,EAAiB,MAAjB,CAAuB,UAAWO,EAAG,2BAA4BF,CAAS,EAAI,GAAGC,EAAO,CAE7F,CAQA,SAASS,EAAa,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAmC,CAC7E,OACEJ,EAACF,EAAiB,MAAjB,CACC,UAAWO,EACT,yNACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASU,EAAiB,CAAE,UAAAX,EAAW,GAAGC,CAAM,EAAuC,CACrF,OACEJ,EAACF,EAAiB,UAAjB,CAA2B,UAAWO,EAAG,uBAAwBF,CAAS,EAAI,GAAGC,EAAO,CAE7F,CAQA,SAASW,EAAY,CAAE,UAAAZ,EAAW,GAAGC,CAAM,EAAkC,CAC3E,OACEJ,EAACF,EAAiB,KAAjB,CACC,UAAWO,EACT,sBACA,2EACA,6DACA,0FACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASY,EAAe,CAAE,UAAAb,EAAW,GAAGC,CAAM,EAAqC,CACjF,OACEJ,EAACF,EAAiB,QAAjB,CAAyB,UAAWO,EAAG,0BAA2BF,CAAS,EAAI,GAAGC,EAAO,CAE9F,CAQA,SAASa,EAAgB,CAAE,UAAAd,EAAW,GAAGC,CAAM,EAAsC,CACnF,OACEJ,EAAC,QACC,UAAWK,EAAG,wDAAyDF,CAAS,EAC/E,GAAGC,EACN,CAEJ","sourcesContent":["'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { SearchIcon } from 'lucide-react';\n\nimport { Dialog, DialogContent } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\ntype CommandProps = ComponentProps<typeof CommandPrimitive>;\n\nfunction Command({ className, ...props }: CommandProps): JSX.Element {\n return (\n <CommandPrimitive\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\ntype CommandDialogProps = ComponentProps<typeof Dialog>;\n\nfunction CommandDialog({ children, ...props }: CommandDialogProps): JSX.Element {\n return (\n <Dialog {...props}>\n <DialogContent className=\"p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\ntype CommandInputProps = ComponentProps<typeof CommandPrimitive.Input>;\n\nfunction CommandInput({ className, ...props }: CommandInputProps): JSX.Element {\n return (\n <div className=\"flex items-center gap-2 border-b px-3\" cmdk-input-wrapper=\"\">\n <SearchIcon className=\"size-5 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\ntype CommandListProps = ComponentProps<typeof CommandPrimitive.List>;\n\nfunction CommandList({ className, ...props }: CommandListProps): JSX.Element {\n return (\n <CommandPrimitive.List\n className={cn('max-h-72 overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\ntype CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty>;\n\nfunction CommandEmpty({ className, ...props }: CommandEmptyProps): JSX.Element {\n return (\n <CommandPrimitive.Empty className={cn('py-6 text-center text-sm', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\ntype CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group>;\n\nfunction CommandGroup({ className, ...props }: CommandGroupProps): JSX.Element {\n return (\n <CommandPrimitive.Group\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\ntype CommandSeparatorProps = ComponentProps<typeof CommandPrimitive.Separator>;\n\nfunction CommandSeparator({ className, ...props }: CommandSeparatorProps): JSX.Element {\n return (\n <CommandPrimitive.Separator className={cn('bg-border -mx-1 h-px', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\ntype CommandItemProps = ComponentProps<typeof CommandPrimitive.Item>;\n\nfunction CommandItem({ className, ...props }: CommandItemProps): JSX.Element {\n return (\n <CommandPrimitive.Item\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n 'aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\ntype CommandLoadingProps = ComponentProps<typeof CommandPrimitive.Loading>;\n\nfunction CommandLoading({ className, ...props }: CommandLoadingProps): JSX.Element {\n return (\n <CommandPrimitive.Loading className={cn('flex justify-center p-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\ntype CommandShortcutProps = ComponentProps<'span'>;\n\nfunction CommandShortcut({ className, ...props }: CommandShortcutProps): JSX.Element {\n return (\n <span\n className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n CommandDialogProps,\n CommandEmptyProps,\n CommandGroupProps,\n CommandInputProps,\n CommandItemProps,\n CommandListProps,\n CommandLoadingProps,\n CommandProps,\n CommandSeparatorProps,\n CommandShortcutProps,\n};\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n CommandShortcut,\n};\n"]}
|
package/dist/chunk-OAB4NWE2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as n}from"./chunk-OKUFCFYT.js";import{OTPInput as s,OTPInputContext as a}from"input-otp";import{DotIcon as i}from"lucide-react";import{useContext as u}from"react";import{REGEXP_ONLY_CHARS as C,REGEXP_ONLY_DIGITS as b,REGEXP_ONLY_DIGITS_AND_CHARS as y}from"input-otp";import{jsx as e,jsxs as P}from"react/jsx-runtime";function O({className:t,containerClassName:r,...o}){return e(s,{className:n("disabled:cursor-default",t),containerClassName:n("flex items-center gap-2","has-[:disabled]:opacity-50",r),...o})}function T({className:t,...r}){return e("div",{className:n("flex items-center",t),...r})}function f({className:t,index:r,...o}){let p=u(a).slots[r];return P("div",{className:n("border-input shadow-xs relative flex size-10 items-center justify-center border-y border-r text-sm transition-all","first:rounded-l-md first:border-l","last:rounded-r-md","data-[state=active]:ring-3 data-[state=active]:ring-ring/40 data-[state=active]:z-10",t),"data-state":p.isActive?"active":"inactive",...o,children:[p.char,p.hasFakeCaret?e("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e("div",{className:"animate-caret-blink bg-foreground animation-duration-1000 h-4 w-px"})}):null]})}function v({...t}){return e("div",{role:"separator",...t,children:e(i,{})})}export{O as a,T as b,f as c,v as d,C as e,b as f,y as g};
|
|
2
|
-
//# sourceMappingURL=chunk-OAB4NWE2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/input-otp.tsx"],"names":["OTPInput","OTPInputContext","DotIcon","useContext","REGEXP_ONLY_CHARS","REGEXP_ONLY_DIGITS","REGEXP_ONLY_DIGITS_AND_CHARS","jsx","jsxs","InputOTP","className","containerClassName","props","cn","InputOTPGroup","InputOTPSlot","index","slot","InputOTPSeparator"],"mappings":"wCAIA,OAAS,YAAAA,EAAU,mBAAAC,MAAuB,YAC1C,OAAS,WAAAC,MAAe,eACxB,OAAS,cAAAC,MAAkB,QAyF3B,OAAS,qBAAAC,EAAmB,sBAAAC,EAAoB,gCAAAC,MAAoC,YA7EhF,cAAAC,EAmCA,QAAAC,MAnCA,oBAFJ,SAASC,EAAS,CAAE,UAAAC,EAAW,mBAAAC,EAAoB,GAAGC,CAAM,EAA+B,CACzF,OACEL,EAACP,EAAA,CACC,UAAWa,EAAG,0BAA2BH,CAAS,EAClD,mBAAoBG,EAClB,0BACA,6BACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASE,EAAc,CAAE,UAAAJ,EAAW,GAAGE,CAAM,EAAoC,CAC/E,OAAOL,EAAC,OAAI,UAAWM,EAAG,oBAAqBH,CAAS,EAAI,GAAGE,EAAO,CACxE,CAUA,SAASG,EAAa,CAAE,UAAAL,EAAW,MAAAM,EAAO,GAAGJ,CAAM,EAAmC,CAEpF,IAAMK,EADkBd,EAAWF,CAAe,EACrB,MAAMe,CAAK,EAExC,OACER,EAAC,OACC,UAAWK,EACT,oHACA,oCACA,oBACA,uFACAH,CACF,EACA,aAAYO,EAAK,SAAW,SAAW,WACtC,GAAGL,EAEH,UAAAK,EAAK,KACLA,EAAK,aACJV,EAAC,OAAI,UAAU,wEACb,SAAAA,EAAC,OAAI,UAAU,qEAAqE,EACtF,EACE,MACN,CAEJ,CAQA,SAASW,EAAkB,CAAE,GAAGN,CAAM,EAAwC,CAC5E,OACEL,EAAC,OAAI,KAAK,YAAa,GAAGK,EACxB,SAAAL,EAACL,EAAA,EAAQ,EACX,CAEJ","sourcesContent":["'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { OTPInput, OTPInputContext } from 'input-otp';\nimport { DotIcon } from 'lucide-react';\nimport { useContext } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOtp\n * -------------------------------------------------------------------------- */\n\ntype InputOTPProps = ComponentProps<typeof OTPInput>;\n\nfunction InputOTP({ className, containerClassName, ...props }: InputOTPProps): JSX.Element {\n return (\n <OTPInput\n className={cn('disabled:cursor-default', className)}\n containerClassName={cn(\n 'flex items-center gap-2',\n 'has-[:disabled]:opacity-50',\n containerClassName,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPGroup\n * -------------------------------------------------------------------------- */\n\ntype InputOTPGroupProps = ComponentProps<'div'>;\n\nfunction InputOTPGroup({ className, ...props }: InputOTPGroupProps): JSX.Element {\n return <div className={cn('flex items-center', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSlot\n * -------------------------------------------------------------------------- */\n\ninterface InputOTPSlotProps extends ComponentProps<'div'> {\n index: number;\n}\n\nfunction InputOTPSlot({ className, index, ...props }: InputOTPSlotProps): JSX.Element {\n const inputOTPContext = useContext(OTPInputContext);\n const slot = inputOTPContext.slots[index];\n\n return (\n <div\n className={cn(\n 'border-input shadow-xs relative flex size-10 items-center justify-center border-y border-r text-sm transition-all',\n 'first:rounded-l-md first:border-l',\n 'last:rounded-r-md',\n 'data-[state=active]:ring-3 data-[state=active]:ring-ring/40 data-[state=active]:z-10',\n className,\n )}\n data-state={slot.isActive ? 'active' : 'inactive'}\n {...props}\n >\n {slot.char}\n {slot.hasFakeCaret ? (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground animation-duration-1000 h-4 w-px\" />\n </div>\n ) : null}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSeparator\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSeparatorProps = ComponentProps<'div'>;\n\nfunction InputOTPSeparator({ ...props }: InputOTPSeparatorProps): JSX.Element {\n return (\n <div role=\"separator\" {...props}>\n <DotIcon />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { InputOTPGroupProps, InputOTPProps, InputOTPSeparatorProps, InputOTPSlotProps };\nexport { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };\n\nexport { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from 'input-otp';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-OK2YNCDD.cjs","../src/components/label.tsx"],"names":["Label","className","props","jsx","cn"],"mappings":"AAAA,mZAAwC,iGCER,+CAY5B,SAFKA,CAAAA,CAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA4B,CAC/D,OACEC,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CACC,SAAA,CAAWC,iCAAAA,6FACT,CACAH,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-OK2YNCDD.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Label\n * -------------------------------------------------------------------------- */\n\ntype LabelProps = ComponentProps<typeof LabelPrimitive.Root>;\n\nfunction Label({ className, ...props }: LabelProps): JSX.Element {\n return (\n <LabelPrimitive.Root\n className={cn(\n 'text-sm font-medium leading-none peer-disabled:pointer-events-none peer-disabled:opacity-70',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { LabelProps };\nexport { Label };\n"]}
|
package/dist/chunk-OZBTMTRM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-OKUFCFYT.js";import*as e from"@codefast-ui/checkbox-group";import{CheckIcon as c}from"lucide-react";import{jsx as o,jsxs as a}from"react/jsx-runtime";function b({className:i,...t}){return o(e.Root,{className:r("grid gap-2",i),...t})}function d({checkboxClassName:i,children:t,className:s,...p}){return a("label",{className:r("group flex items-center justify-center gap-4 rounded-md border p-4",s),children:[t,o(e.Item,{className:r("border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 cursor-pointer rounded-sm border transition","group-hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","disabled:cursor-default disabled:opacity-50",i),...p,children:o(e.CheckboxGroupIndicator,{children:o(c,{className:"size-3.5"})})})]})}export{b as a,d as b};
|
|
2
|
-
//# sourceMappingURL=chunk-OZBTMTRM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/checkbox-cards.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","jsx","jsxs","CheckboxCards","className","props","cn","CheckboxCardsItem","checkboxClassName","children"],"mappings":"wCAEA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,eAWjB,cAAAC,EAkBL,QAAAC,MAlBK,oBADT,SAASC,EAAc,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAoC,CAC/E,OAAOJ,EAAwB,OAAvB,CAA4B,UAAWK,EAAG,aAAcF,CAAS,EAAI,GAAGC,EAAO,CACzF,CAUA,SAASE,EAAkB,CACzB,kBAAAC,EACA,SAAAC,EACA,UAAAL,EACA,GAAGC,CACL,EAAwC,CACtC,OACEH,EAAC,SACC,UAAWI,EACT,qEACAF,CACF,EAEC,UAAAK,EACDR,EAAwB,OAAvB,CACC,UAAWK,EACT,uHACA,6BACA,sDACA,6EACA,8CACAE,CACF,EACC,GAAGH,EAEJ,SAAAJ,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({ className, ...props }: CheckboxCardsProps): JSX.Element {\n return <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ninterface CheckboxCardsItemProps extends ComponentProps<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nfunction CheckboxCardsItem({\n checkboxClassName,\n children,\n className,\n ...props\n}: CheckboxCardsItemProps): JSX.Element {\n return (\n <label\n className={cn(\n 'group flex items-center justify-center gap-4 rounded-md border p-4',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n className={cn(\n 'border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 cursor-pointer rounded-sm border transition',\n 'group-hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:cursor-default disabled:opacity-50',\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"]}
|
package/dist/chunk-PGD5STRH.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var i=_tailwindvariants.tv.call(void 0, {base:["inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 text-sm font-medium shadow-sm transition","[&>svg]:shrink-0","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"],compoundVariants:[{className:"w-7",icon:!0,size:"xxs"},{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:"xxs"},{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:"xxs"},{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"}],defaultVariants:{icon:!1,inside:!1,size:"md",variant:"default"},variants:{icon:{false:"",true:"px-0"},inside:{false:"",true:""},size:{lg:"h-11 [&>svg]:size-5",md:"h-10 [&>svg]:size-4",sm:"h-9 [&>svg]:size-4",xl:"h-12 [&>svg]:size-5",xs:"h-8 [&>svg]:size-3.5",xxs:"h-7 [&>svg]:size-3"},variant:{default:["bg-primary text-primary-foreground","hover:bg-primary/80"],destructive:["bg-destructive text-destructive-foreground","hover:bg-destructive/80"],ghost:["text-foreground shadow-none","hover:bg-accent hover:text-accent-foreground"],info:["bg-info text-info-foreground","hover:bg-info/80"],link:["text-primary underline-offset-4 shadow-none","hover:underline"],outline:["text-foreground border-input border","focus-visible:border-ring","hover:bg-accent hover:text-accent-foreground"],secondary:["bg-secondary text-secondary-foreground","hover:bg-secondary/80"],success:["bg-success text-success-foreground","hover:bg-success/80"],warning:["bg-warning text-warning-foreground","hover:bg-warning/80"]}}});exports.a = i;
|
|
2
|
-
//# sourceMappingURL=chunk-PGD5STRH.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/variants/button.variants.ts"],"names":["buttonVariants","tv"],"mappings":"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","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-PGD5STRH.cjs","sourcesContent":["import type { VariantProps } from 'tailwind-variants';\n\nimport { tv } from 'tailwind-variants';\n\nconst buttonVariants = tv({\n base: [\n 'inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 text-sm font-medium shadow-sm transition',\n '[&>svg]:shrink-0',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none',\n ],\n compoundVariants: [\n // --\n { className: 'w-7', icon: true, size: 'xxs' },\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: 'xxs' },\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: 'xxs' },\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 defaultVariants: {\n icon: false,\n inside: false,\n size: 'md',\n variant: 'default',\n },\n variants: {\n icon: { false: '', true: 'px-0' },\n inside: { false: '', true: '' },\n size: {\n lg: 'h-11 [&>svg]:size-5', // 44px\n md: 'h-10 [&>svg]:size-4', // 40px\n sm: 'h-9 [&>svg]:size-4', // 36px\n xl: 'h-12 [&>svg]:size-5', // 48px\n xs: 'h-8 [&>svg]:size-3.5', // 32px\n xxs: 'h-7 [&>svg]:size-3', // 28px\n },\n variant: {\n default: ['bg-primary text-primary-foreground', 'hover:bg-primary/80'],\n destructive: ['bg-destructive text-destructive-foreground', 'hover:bg-destructive/80'],\n ghost: ['text-foreground shadow-none', 'hover:bg-accent hover:text-accent-foreground'],\n info: ['bg-info text-info-foreground', 'hover:bg-info/80'],\n link: ['text-primary underline-offset-4 shadow-none', 'hover:underline'],\n outline: [\n 'text-foreground border-input border',\n 'focus-visible:border-ring',\n 'hover:bg-accent hover:text-accent-foreground',\n ],\n secondary: ['bg-secondary text-secondary-foreground', 'hover:bg-secondary/80'],\n success: ['bg-success text-success-foreground', 'hover:bg-success/80'],\n warning: ['bg-warning text-warning-foreground', 'hover:bg-warning/80'],\n },\n },\n});\n\ntype ButtonVariantsProps = VariantProps<typeof buttonVariants>;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ButtonVariantsProps };\nexport { buttonVariants };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/logger.ts"],"names":["levels","chalk","messages","safeStringify","obj","formatLog","level","tag","args","levelPart","tagPart","messagePart","arg","createLogger","logger","loggerWithTag"],"mappings":"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","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-PGKNHNSZ.cjs","sourcesContent":["import type { ChalkInstance } from 'chalk';\n\nimport chalk from 'chalk';\n\ntype LogLevel = 'error' | 'info' | 'log' | 'success' | 'warn';\n\ntype LogMethod = (...args: unknown[]) => void;\n\ninterface Logger {\n error: LogMethod;\n info: LogMethod;\n log: LogMethod;\n success: LogMethod;\n warn: LogMethod;\n}\n\nconst levels: Record<LogLevel, ChalkInstance> = {\n error: chalk.bgHex('#ef4444').hex('#450a0a').bold,\n info: chalk.bgHex('#06b6d4').hex('#083344').bold,\n log: chalk.bgHex('#ffffff').hex('#020617').bold,\n success: chalk.bgHex('#22c55e').hex('#052e16').bold,\n warn: chalk.bgHex('#eab308').hex('#422006').bold,\n};\n\nconst messages: Record<LogLevel, ChalkInstance> = {\n error: chalk.hex('#ef4444'),\n info: chalk.hex('#06b6d4'),\n log: chalk.hex('#ffffff'),\n success: chalk.hex('#22c55e'),\n warn: chalk.hex('#eab308'),\n};\n\n/**\n * Safely converts a given object into a JSON string representation.\n * If the object contains circular references or can't be stringified,\n * it returns a fallback string.\n *\n * @param obj - The object to be stringified.\n * @returns A JSON string representation of the object, or a fallback string\n * indicating the presence of circular references or invalid structure.\n */\nfunction safeStringify(obj: unknown): string {\n if (obj instanceof Error) {\n return [chalk.italic(obj.message), obj.stack || '[No Stack]'].join('\\n');\n }\n\n try {\n return JSON.stringify(obj, null, 2);\n } catch {\n return '[Circular or Invalid Object]';\n }\n}\n\n/**\n * Formats the log message with color-coded levels, optional tags, and the main\n * message.\n * - Level: Displays the log level (for example, INFO, SUCCESS) in a styled\n * format.\n * - Tag: Optionally includes a tag (for example, module name) for better\n * context.\n * - Message: The actual log content.\n *\n * @param level - Log level (for example, 'info', 'error').\n * @param tag - Optional context tag.\n * @param args - Log message parts.\n * @returns Formatted log string for output.\n */\nfunction formatLog(level: LogLevel, tag: null | string, ...args: unknown[]): string {\n // Level with colors\n const levelPart = levels[level](` ${level.toUpperCase()} `);\n // Tag if available\n const tagPart = tag ? chalk.magenta(` ${tag} `) : '';\n // Combine all arguments into one string\n const messagePart = args\n .map((arg) => messages[level](typeof arg === 'string' ? arg : safeStringify(arg)))\n .join(' ');\n\n return [levelPart, tagPart, messagePart].filter(Boolean).join(' ');\n}\n\n/**\n * Create a logger instance with optional tag support.\n * The tag is useful for distinguishing logs from different modules or contexts.\n *\n * @param tag - A string used as a tag in the log messages or null if no tag is desired.\n * @returns An object containing methods for logging messages at various levels.\n */\nfunction createLogger(tag: null | string = null): Logger {\n return {\n error: (...args: unknown[]): void => {\n console.error(formatLog('error', tag, ...args));\n },\n info: (...args: unknown[]): void => {\n console.log(formatLog('info', tag, ...args));\n },\n log: (...args: unknown[]): void => {\n console.log(formatLog('log', tag, ...args));\n },\n success: (...args: unknown[]): void => {\n console.log(formatLog('success', tag, ...args));\n },\n warn: (...args: unknown[]): void => {\n console.warn(formatLog('warn', tag, ...args));\n },\n };\n}\n\nexport const logger: Logger = createLogger();\n\nexport const loggerWithTag = (tag: string): Logger => createLogger(tag);\n"]}
|
package/dist/chunk-PS4ZPIDS.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _react = require('react');var _recharts = require('recharts'); var C = _interopRequireWildcard(_recharts);var _jsxruntime = require('react/jsx-runtime');var N={dark:".dark",light:""},_=_react.createContext.call(void 0, null);function L(){let e=_react.useContext.call(void 0, _);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function A({id:e,children:t,className:r,config:o,...c}){let s=_react.useId.call(void 0, ),a=`chart-${e||s.replaceAll(":","")}`;return _jsxruntime.jsx.call(void 0, _.Provider,{value:{config:o},children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex aspect-video justify-center text-xs","[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground","[&_.recharts-cartesian-grid_line]:stroke-border/50","[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border","[&_.recharts-dot]:stroke-transparent","[&_.recharts-layer]:outline-none","[&_.recharts-polar-grid_]:stroke-border","[&_.recharts-radial-bar-background-sector]:fill-muted","[&_.recharts-reference-line_]:stroke-border","[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted","[&_.recharts-sector]:outline-none","[&_.recharts-sector]:stroke-transparent","[&_.recharts-surface]:outline-none",r),"data-chart":a,...c,children:[_jsxruntime.jsx.call(void 0, $,{config:o,id:a}),_jsxruntime.jsx.call(void 0, C.ResponsiveContainer,{children:t})]})})}function $({id:e,config:t}){let r=_react.useMemo.call(void 0, ()=>M(e,t),[e,t]);return _jsxruntime.jsx.call(void 0, "style",{dangerouslySetInnerHTML:{__html:r}})}var J=C.Tooltip;function X({active:e,className:t,color:r,formatter:o,hideIndicator:c=!1,hideLabel:s=!1,indicator:a="dot",label:l,labelClassName:u,labelFormatter:f,labelKey:P,nameKey:w,payload:p}){let{config:m}=L(),T=_react.useMemo.call(void 0, ()=>{if(s||!_optionalChain([p, 'optionalAccess', _2 => _2.length]))return null;let[n]=p,y=`${P||n.dataKey||n.name||"value"}`,b=x(m,n,y),h=!P&&typeof l=="string"?_optionalChain([m, 'access', _3 => _3[l], 'optionalAccess', _4 => _4.label])||l:_optionalChain([b, 'optionalAccess', _5 => _5.label]);return f?_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "font-medium",u),children:f(h,p)}):h?_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "font-medium",u),children:h}):null},[m,s,l,u,f,P,p]);if(!e||!_optionalChain([p, 'optionalAccess', _6 => _6.length]))return null;let v=p.length===1&&a!=="dot";return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",t),children:[v?null:T,_jsxruntime.jsx.call(void 0, "div",{className:"grid gap-1.5",children:p.map((n,y)=>{let b=`${w||n.name||n.dataKey||"value"}`,h=x(m,n,b),R=r||n.payload.fill||n.color;return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",a==="dot"&&"items-center"),children:o&&n.value!==void 0&&n.name?o(n.value,n.name,n,y,n.payload):_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_optionalChain([h, 'optionalAccess', _7 => _7.icon])?_jsxruntime.jsx.call(void 0, h.icon,{}):!c&&_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "border-(--color-border) bg-(--color-bg) shrink-0 rounded-[0.125rem]",{"h-2.5 w-2.5":a==="dot","my-0.5":v&&a==="dashed","w-0 border border-dashed bg-transparent":a==="dashed","w-1":a==="line"}),style:{"--color-bg":R,"--color-border":R}}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[_jsxruntime.jsxs.call(void 0, "div",{className:"grid gap-1.5",children:[v?T:null,_jsxruntime.jsx.call(void 0, "span",{className:"text-muted-foreground",children:_optionalChain([h, 'optionalAccess', _8 => _8.label])||n.name})]}),n.value?_jsxruntime.jsx.call(void 0, "span",{className:"text-foreground font-mono font-medium tabular-nums",children:n.value.toLocaleString()}):null]})]})},n.dataKey)})})]})}var q=C.Legend;function D({className:e,hideIcon:t=!1,nameKey:r,payload:o,verticalAlign:c="bottom",...s}){let{config:a}=L();return _optionalChain([o, 'optionalAccess', _9 => _9.length])?_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex items-center justify-center gap-4",c==="top"?"pb-3":"pt-3",e),...s,children:o.map(l=>{let u="value";r?u=r:l.dataKey&&(u=String(l.dataKey));let f=x(a,l,u);return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3"),children:[_optionalChain([f, 'optionalAccess', _10 => _10.icon])&&!t?_jsxruntime.jsx.call(void 0, f.icon,{}):_jsxruntime.jsx.call(void 0, "div",{className:"size-2 shrink-0 rounded",style:{backgroundColor:l.color}}),_optionalChain([f, 'optionalAccess', _11 => _11.label])]},String(l.value))})}):null}function x(e,t,r){if(!S(t))return;let o="payload"in t&&S(t.payload)?t.payload:void 0,c=E(t,o,r);return c in e?e[c]:e[r]}function S(e){return typeof e=="object"&&e!==null}function E(e,t,r){return r in e&&typeof e[r]=="string"?e[r]:t&&r in t&&typeof t[r]=="string"?t[r]:r}function O(e,t,r){let o=[];o.push(`${N[e]} [data-chart=${t}] {`);for(let[c,s]of r){let a=_optionalChain([s, 'optionalAccess', _12 => _12.theme, 'optionalAccess', _13 => _13[e]])||_optionalChain([s, 'optionalAccess', _14 => _14.color]);a&&o.push(` --color-${c}: ${a};`)}return o.push("}"),o.join(`
|
|
2
|
-
`)}function M(e,t){let r=Object.entries(t).filter(([c,s])=>_optionalChain([s, 'optionalAccess', _15 => _15.theme])||_optionalChain([s, 'optionalAccess', _16 => _16.color])),o=[];for(let c of Object.keys(N)){let s=O(c,e,r);o.push(s)}return o.join(`
|
|
3
|
-
`)}exports.a = A; exports.b = $; exports.c = J; exports.d = X; exports.e = q; exports.f = D;
|
|
4
|
-
//# sourceMappingURL=chunk-PS4ZPIDS.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-PS4ZPIDS.cjs","../src/components/chart.tsx"],"names":["RechartsPrimitive","createContext","useChart","children","className","props","uniqueId","useId","chartId","id","jsx","ChartContext"],"mappings":"AAAA,22BAAY,CAAC,wDCKJ,8BACGA,gFAiNI,+CA5MR,IAAA,CAAA,CAAA,CACN,IAAA,CAAA,OA4BmBC,CAAAA,KAA4C,CAAA,EAEjE,CAAA,CAAA,CAAA,CAAA,kCAAA,IAASC,CAA8B,CACrC,SAAuC,CAAA,CAEvC,CAAA,CAAA,IACE,CAAA,CAAA,+BAAA,CAAA,CAAM,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,MAAM,IAAA,KAAA,CAAA,mDAepB,CAAA,CAAA,OAAwB,CACtB,CAAA,SACA,CAAA,CAAA,CAAA,EAAAC,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAGC,CACL,MACE,CAAMC,CAAAA,CAAWC,GAAM,CACjBC,CAAAA,CAAU,CAAA,IAAA,CAAA,CAAA,0BAAA,CAASC,CAAAA,CAAMH,CAAAA,CAAS,MAAA,EAAA,CAAA,EAAW,CAAA,CAAA,UAEnD,CAAA,GAAA,CACEI,EAACC,CAAAA,CAAa,CAAA;AA+YK;AACvB","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-PS4ZPIDS.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, ComponentType, CSSProperties, JSX, ReactNode } from 'react';\nimport type { NameType, Payload, ValueType } from 'recharts/types/component/DefaultTooltipContent';\n\nimport { createContext, useContext, useId, useMemo } from 'react';\nimport * as RechartsPrimitive from 'recharts';\n\nimport { cn } from '@/lib/utils';\n\nconst THEMES = {\n dark: '.dark',\n light: '',\n} as const;\n\ntype Theme = keyof typeof THEMES;\n\ninterface IconLabelConfig {\n icon?: ComponentType;\n label?: ReactNode | undefined;\n}\n\ninterface ColorConfig {\n color?: string;\n theme?: never;\n}\n\ninterface ThemeConfig {\n theme: Record<Theme, string>;\n color?: never;\n}\n\ntype ChartConfigItem = (ColorConfig | ThemeConfig) & IconLabelConfig;\n\ntype ChartConfig = Record<string, ChartConfigItem | undefined>;\n\ninterface ChartContextProps {\n config: ChartConfig;\n}\n\nconst ChartContext = createContext<ChartContextProps | null>(null);\n\nfunction useChart(): ChartContextProps {\n const context = useContext(ChartContext);\n\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Chart\n * -------------------------------------------------------------------------- */\n\ninterface ChartContainerProps extends ComponentProps<'div'> {\n children: ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];\n config: ChartConfig;\n}\n\nfunction ChartContainer({\n id,\n children,\n className,\n config,\n ...props\n}: ChartContainerProps): JSX.Element {\n const uniqueId = useId();\n const chartId = `chart-${id || uniqueId.replaceAll(':', '')}`;\n\n return (\n <ChartContext.Provider value={{ config }}>\n <div\n className={cn(\n 'flex aspect-video justify-center text-xs',\n '[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground',\n '[&_.recharts-cartesian-grid_line]:stroke-border/50',\n '[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border',\n '[&_.recharts-dot]:stroke-transparent',\n '[&_.recharts-layer]:outline-none',\n '[&_.recharts-polar-grid_]:stroke-border',\n '[&_.recharts-radial-bar-background-sector]:fill-muted',\n '[&_.recharts-reference-line_]:stroke-border',\n '[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted',\n '[&_.recharts-sector]:outline-none',\n '[&_.recharts-sector]:stroke-transparent',\n '[&_.recharts-surface]:outline-none',\n className,\n )}\n data-chart={chartId}\n {...props}\n >\n <ChartStyle config={config} id={chartId} />\n <RechartsPrimitive.ResponsiveContainer>{children}</RechartsPrimitive.ResponsiveContainer>\n </div>\n </ChartContext.Provider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartStyle\n * -------------------------------------------------------------------------- */\n\ninterface ChartStyleProps {\n config: ChartConfig;\n id: string;\n}\n\nfunction ChartStyle({ id, config }: ChartStyleProps): ReactNode {\n const cssString = useMemo(() => generateCSS(id, config), [id, config]);\n\n return <style dangerouslySetInnerHTML={{ __html: cssString }} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltip\n * -------------------------------------------------------------------------- */\n\ntype ChartTooltipProps = ComponentProps<typeof RechartsPrimitive.Tooltip>;\nconst ChartTooltip = RechartsPrimitive.Tooltip;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltipContent\n * -------------------------------------------------------------------------- */\n\ninterface ChartTooltipContentProps\n extends ComponentProps<typeof RechartsPrimitive.Tooltip>,\n Omit<ComponentProps<'div'>, 'content'> {\n hideIndicator?: boolean;\n hideLabel?: boolean;\n indicator?: 'dashed' | 'dot' | 'line';\n labelKey?: string;\n nameKey?: string;\n}\n\nfunction ChartTooltipContent({\n active,\n className,\n color,\n formatter,\n hideIndicator = false,\n hideLabel = false,\n indicator = 'dot',\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n nameKey,\n payload,\n}: ChartTooltipContentProps): ReactNode {\n const { config } = useChart();\n\n const tooltipLabel = useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null;\n }\n\n const [item] = payload;\n\n const key = `${labelKey || item.dataKey || item.name || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const value =\n !labelKey && typeof label === 'string' ? config[label]?.label || label : itemConfig?.label;\n\n if (labelFormatter) {\n return (\n <div className={cn('font-medium', labelClassName)}>{labelFormatter(value, payload)}</div>\n );\n }\n\n if (!value) {\n return null;\n }\n\n return <div className={cn('font-medium', labelClassName)}>{value}</div>;\n }, [config, hideLabel, label, labelClassName, labelFormatter, labelKey, payload]);\n\n if (!active || !payload?.length) {\n return null;\n }\n\n const nestLabel = payload.length === 1 && indicator !== 'dot';\n\n return (\n <div\n className={cn(\n 'border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl',\n className,\n )}\n >\n {nestLabel ? null : tooltipLabel}\n <div className=\"grid gap-1.5\">\n {payload.map((item, index) => {\n const key = `${nameKey || item.name || item.dataKey || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const indicatorColor = color || (item.payload as { fill?: string }).fill || item.color;\n\n return (\n <div\n key={item.dataKey}\n className={cn(\n '[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5',\n indicator === 'dot' && 'items-center',\n )}\n >\n {formatter && item.value !== undefined && item.name ? (\n formatter(\n item.value,\n item.name,\n item,\n index,\n item.payload as Payload<ValueType, NameType>[],\n )\n ) : (\n <>\n {itemConfig?.icon ? (\n <itemConfig.icon />\n ) : (\n !hideIndicator && (\n <div\n className={cn(\n 'border-(--color-border) bg-(--color-bg) shrink-0 rounded-[0.125rem]',\n {\n 'h-2.5 w-2.5': indicator === 'dot',\n 'my-0.5': nestLabel && indicator === 'dashed',\n 'w-0 border border-dashed bg-transparent': indicator === 'dashed',\n 'w-1': indicator === 'line',\n },\n )}\n style={\n {\n '--color-bg': indicatorColor,\n '--color-border': indicatorColor,\n } as CSSProperties\n }\n />\n )\n )}\n <div\n className={cn(\n 'flex flex-1 justify-between leading-none',\n nestLabel ? 'items-end' : 'items-center',\n )}\n >\n <div className=\"grid gap-1.5\">\n {nestLabel ? tooltipLabel : null}\n <span className=\"text-muted-foreground\">\n {itemConfig?.label || item.name}\n </span>\n </div>\n {item.value ? (\n <span className=\"text-foreground font-mono font-medium tabular-nums\">\n {item.value.toLocaleString()}\n </span>\n ) : null}\n </div>\n </>\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegend\n * -------------------------------------------------------------------------- */\n\ntype ChartLegendProps = ComponentProps<typeof RechartsPrimitive.Legend>;\nconst ChartLegend = RechartsPrimitive.Legend;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegendContent\n * -------------------------------------------------------------------------- */\n\ninterface ChartLegendContentProps\n extends ComponentProps<'div'>,\n Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> {\n hideIcon?: boolean;\n nameKey?: string;\n}\n\nfunction ChartLegendContent({\n className,\n hideIcon = false,\n nameKey,\n payload,\n verticalAlign = 'bottom',\n ...props\n}: ChartLegendContentProps): ReactNode {\n const { config } = useChart();\n\n if (!payload?.length) {\n return null;\n }\n\n return (\n <div\n className={cn(\n 'flex items-center justify-center gap-4',\n verticalAlign === 'top' ? 'pb-3' : 'pt-3',\n className,\n )}\n {...props}\n >\n {payload.map((item) => {\n let key = 'value';\n\n if (nameKey) {\n key = nameKey;\n } else if (item.dataKey) {\n key = String(item.dataKey);\n }\n\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n\n return (\n <div\n key={String(item.value)}\n className={cn('[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3')}\n >\n {itemConfig?.icon && !hideIcon ? (\n <itemConfig.icon />\n ) : (\n <div\n className=\"size-2 shrink-0 rounded\"\n style={{\n backgroundColor: item.color,\n }}\n />\n )}\n {itemConfig?.label}\n </div>\n );\n })}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Helpers\n * -------------------------------------------------------------------------- */\n\n/**\n * Extracts and returns the appropriate configuration object from\n * the payload based on the specified key.\n *\n * @param config - The chart configuration object that contains various\n * settings.\n * @param payload - The payload object that might contain nested payload data.\n * @param key - The key used to retrieve the specific configuration from the\n * chart config.\n * @returns Returns a configuration object with optional properties `icon`,\n * `label`, `color` or `theme`, or `undefined` if the payload is invalid or\n * no configuration is found for the provided key.\n */\nfunction getPayloadConfigFromPayload(\n config: ChartConfig,\n payload: unknown,\n key: string,\n): ChartConfigItem | undefined {\n if (!isValidObject(payload)) {\n return undefined;\n }\n\n const nestedPayload =\n 'payload' in payload && isValidObject(payload.payload) ? payload.payload : undefined;\n\n const configLabelKey = getConfigLabelKey(payload, nestedPayload, key);\n\n return configLabelKey in config ? config[configLabelKey] : config[key];\n}\n\n/**\n * Checks if the provided value is a valid object.\n *\n * @param obj - The value to check.\n * @returns - Returns true if the value is an object and not null, false\n * otherwise.\n */\nfunction isValidObject(obj: unknown): obj is Record<string, unknown> {\n return typeof obj === 'object' && obj !== null;\n}\n\n/**\n * Retrieves the configuration label key from either the payload or\n * nestedPayload. If the key exists in the payload and is a string, the\n * corresponding value is returned. Otherwise, if the key exists in the\n * nestedPayload and is a string, its value is returned. If the key is not\n * found as a string in either object, the key itself is returned.\n *\n * @param payload - The primary payload containing key-value pairs.\n * @param nestedPayload - An optional nested payload containing additional\n * key-value pairs.\n * @param key - The key to search for within the payload and nestedPayload.\n *\n * @returns The string value associated with the key if found; otherwise, the\n * key itself.\n */\nfunction getConfigLabelKey(\n payload: Record<string, unknown>,\n nestedPayload: Record<string, unknown> | undefined,\n key: string,\n): string {\n if (key in payload && typeof payload[key] === 'string') {\n return payload[key];\n }\n\n if (nestedPayload && key in nestedPayload && typeof nestedPayload[key] === 'string') {\n return nestedPayload[key];\n }\n\n return key;\n}\n\n/**\n * Generates CSS for a specified theme and chart configuration.\n *\n * @param theme - The theme to be used (for example, 'light', 'dark').\n * @param id - The unique identifier of the chart.\n * @param configEntries - A list of configuration entries, each containing a\n * key and a chart configuration.\n * @returns The generated CSS as a string.\n */\nfunction generateThemeCSS(\n theme: Theme,\n id: string,\n configEntries: [string, ChartConfig[string]][],\n): string {\n const rules: string[] = [];\n\n rules.push(`${THEMES[theme]} [data-chart=${id}] {`);\n\n for (const [key, itemConfig] of configEntries) {\n const color = itemConfig?.theme?.[theme] || itemConfig?.color;\n\n if (color) {\n rules.push(` --color-${key}: ${color};`);\n }\n }\n\n rules.push('}');\n\n return rules.join('\\n');\n}\n\n/**\n * Generates CSS styles for a chart based on the provided configuration and\n * themes.\n *\n * @param id - The unique identifier for the chart element.\n * @param config - Configuration object for the chart. This includes theme and\n * color settings.\n * @returns A string containing the generated CSS rules.\n */\nfunction generateCSS(id: string, config: ChartConfig): string {\n const themeOrColorConfig = Object.entries(config).filter(\n ([_, itemConfig]) => itemConfig?.theme || itemConfig?.color,\n );\n\n const allRules: string[] = [];\n\n for (const theme of Object.keys(THEMES)) {\n const themeCSS = generateThemeCSS(theme as Theme, id, themeOrColorConfig);\n\n allRules.push(themeCSS);\n }\n\n return allRules.join('\\n');\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n ChartConfig,\n ChartContainerProps,\n ChartLegendContentProps,\n ChartLegendProps,\n ChartStyleProps,\n ChartTooltipContentProps,\n ChartTooltipProps,\n};\nexport {\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartStyle,\n ChartTooltip,\n ChartTooltipContent,\n};\n"]}
|
package/dist/chunk-QB5NCYE4.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkLTVOTU54cjs = require('./chunk-LTVOTU54.cjs');var _chunkJRMDTSBTcjs = require('./chunk-JRMDTSBT.cjs');var _chunkPGD5STRHcjs = require('./chunk-PGD5STRH.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _numberinput = require('@codefast-ui/number-input'); var r = _interopRequireWildcard(_numberinput);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');var{input:k,root:w}=_chunkLTVOTU54cjs.a.call(void 0, );function J({id:a,ariaDecrementLabel:p,ariaIncrementLabel:s,className:d,defaultValue:l,disabled:c,formatOptions:f,inputSize:t,loaderPosition:I,loading:b,max:v,min:N,onChange:P,prefix:h,readOnly:C,spinner:x,step:y,suffix:g,value:V,...B}){return _jsxruntime.jsxs.call(void 0, r.Root,{ariaDecrementLabel:p,ariaIncrementLabel:s,className:w({className:["pr-0",d],inputSize:t}),defaultValue:l,disabled:c,formatOptions:f,id:a,loaderPosition:I,loading:b,max:v,min:N,prefix:h,readOnly:C,spinner:x||_jsxruntime.jsx.call(void 0, _chunkJRMDTSBTcjs.a,{}),step:y,suffix:g,value:V,onChange:P,children:[_jsxruntime.jsx.call(void 0, r.Item,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:k({inputSize:t}),inputMode:"numeric",spellCheck:"false",...B}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "peer-focus:divide-ring peer-focus:border-l-ring","divide-input border-input order-last ml-auto grid h-full shrink-0 divide-y overflow-hidden rounded-r-[calc(var(--radius-md)-1px)] border-l transition"),children:[_jsxruntime.jsx.call(void 0, r.IncrementButton,{className:_chunkPGD5STRHcjs.a.call(void 0, {className:"h-full rounded-none rounded-tr-[calc(var(--radius-md)-1px)]",icon:!0,size:t,variant:"ghost"}),children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronUpIcon,{})}),_jsxruntime.jsx.call(void 0, r.DecrementButton,{className:_chunkPGD5STRHcjs.a.call(void 0, {className:"h-full rounded-none rounded-br-[calc(var(--radius-md)-1px)]",icon:!0,size:t,variant:"ghost"}),children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon,{})})]})]})}var U=J;exports.a = J; exports.b = U;
|
|
2
|
-
//# sourceMappingURL=chunk-QB5NCYE4.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QB5NCYE4.cjs","../src/components/input-number.tsx"],"names":["input","root","inputVariants","InputNumber","id","ariaDecrementLabel","ariaIncrementLabel","className","defaultValue","disabled","formatOptions","inputSize","loaderPosition","loading","max","min","onChange","prefix","readOnly","spinner","step","suffix","value","props","jsxs","jsx","Spinner","cn","buttonVariants","ChevronUpIcon","ChevronDownIcon","NumberInput"],"mappings":"AAAA,mZAAwC,wDAAyC,wDAAyC,wDAAyC,uGCE7H,2CACS,+CAyDrB,GAhDpB,CAAE,KAAA,CAAAA,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,CAAIC,iCAAAA,CAAc,CAWtC,SAASC,CAAAA,CAAY,CACnB,EAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAkC,CAChC,OACEC,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,kBAAA,CAAoBnB,CAAAA,CACpB,kBAAA,CAAoBC,CAAAA,CACpB,SAAA,CAAWL,CAAAA,CAAK,CAAE,SAAA,CAAW,CAAC,MAAA,CAAQM,CAAS,CAAA,CAAG,SAAA,CAAAI,CAAU,CAAC,CAAA,CAC7D,YAAA,CAAcH,CAAAA,CACd,QAAA,CAAUC,CAAAA,CACV,aAAA,CAAeC,CAAAA,CACf,EAAA,CAAIN,CAAAA,CACJ,cAAA,CAAgBQ,CAAAA,CAChB,OAAA,CAASC,CAAAA,CACT,GAAA,CAAKC,CAAAA,CACL,GAAA,CAAKC,CAAAA,CACL,MAAA,CAAQE,CAAAA,CACR,QAAA,CAAUC,CAAAA,CACV,OAAA,CAASC,CAAAA,EAAWM,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAC7B,IAAA,CAAMN,CAAAA,CACN,MAAA,CAAQC,CAAAA,CACR,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAUN,CAAAA,CAEV,QAAA,CAAA,CAAAS,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,cAAA,CAAe,KAAA,CACf,YAAA,CAAa,KAAA,CACb,WAAA,CAAY,KAAA,CACZ,SAAA,CAAWzB,CAAAA,CAAM,CAAE,SAAA,CAAAW,CAAU,CAAC,CAAA,CAC9B,SAAA,CAAU,SAAA,CACV,UAAA,CAAW,OAAA,CACV,GAAGY,CAAAA,CACN,CAAA,CACAC,8BAAAA,KAAC,CAAA,CACC,SAAA,CAAWG,iCAAAA,iDACT,CACA,uJACF,CAAA,CAEA,QAAA,CAAA,CAAAF,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWG,iCAAAA,CACT,SAAA,CAAW,6DAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,IAAA,CAAMjB,CAAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAc,6BAAAA,0BAACI,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAJ,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWG,iCAAAA,CACT,SAAA,CAAW,6DAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,IAAA,CAAMjB,CAAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAc,6BAAAA,4BAACK,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAkBA,IAAMC,CAAAA,CAAc5B,CAAAA,CAAAA,6BAAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QB5NCYE4.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as InputNumberPrimitive from '@codefast-ui/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport type { InputVariantsProps } from '@/variants/input.variants';\n\nimport { Spinner } from '@/components/spinner';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/variants/button.variants';\nimport { inputVariants } from '@/variants/input.variants';\n\nconst { input, root } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: InputNumber\n * -------------------------------------------------------------------------- */\n\ninterface InputNumberProps\n extends InputVariantsProps,\n ComponentProps<typeof InputNumberPrimitive.Root>,\n ComponentProps<typeof InputNumberPrimitive.Item> {}\n\nfunction InputNumber({\n id,\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n defaultValue,\n disabled,\n formatOptions,\n inputSize,\n loaderPosition,\n loading,\n max,\n min,\n onChange,\n prefix,\n readOnly,\n spinner,\n step,\n suffix,\n value,\n ...props\n}: InputNumberProps): JSX.Element {\n return (\n <InputNumberPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ className: ['pr-0', className], inputSize })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n loaderPosition={loaderPosition}\n loading={loading}\n max={max}\n min={min}\n prefix={prefix}\n readOnly={readOnly}\n spinner={spinner || <Spinner />}\n step={step}\n suffix={suffix}\n value={value}\n onChange={onChange}\n >\n <InputNumberPrimitive.Item\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div\n className={cn(\n 'peer-focus:divide-ring peer-focus:border-l-ring',\n 'divide-input border-input order-last ml-auto grid h-full shrink-0 divide-y overflow-hidden rounded-r-[calc(var(--radius-md)-1px)] border-l transition',\n )}\n >\n <InputNumberPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-[calc(var(--radius-md)-1px)]',\n icon: true,\n size: inputSize,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </InputNumberPrimitive.IncrementButton>\n <InputNumberPrimitive.DecrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-br-[calc(var(--radius-md)-1px)]',\n icon: true,\n size: inputSize,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </InputNumberPrimitive.DecrementButton>\n </div>\n </InputNumberPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Deprecated\n * -------------------------------------------------------------------------- */\n\n/**\n * @deprecated\n * This type is an alias of the InputNumberProps type.\n * Please use the InputNumberProps type instead to ensure consistency.\n */\ntype NumberInputProps = InputNumberProps;\n\n/**\n * @deprecated\n * This component is an alias of the Input component.\n * Please use the Input component instead to ensure consistency.\n */\nconst NumberInput = InputNumber;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { InputNumberProps, NumberInputProps };\nexport { InputNumber, NumberInput };\n"]}
|
package/dist/chunk-QLHV4Y57.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-OKUFCFYT.js";import{jsx as r}from"react/jsx-runtime";function l({className:e,...o}){return r("div",{className:"relative w-full overflow-auto",children:r("table",{className:t("w-full caption-bottom text-sm",e),...o})})}function n({className:e,...o}){return r("thead",{className:t("[&>tr]:border-b [&>tr]:hover:bg-transparent",e),...o})}function p({className:e,...o}){return r("tbody",{className:t("[&>tr:last-child]:border-0",e),...o})}function s({className:e,...o}){return r("tfoot",{className:t("[&>tr]:border-b-0 [&>tr]:border-t [&>tr]:hover:bg-transparent",e),...o})}function b({className:e,...o}){return r("tr",{className:t("border-b transition","hover:bg-accent","data-[state=selected]:bg-muted",e),...o})}function m({className:e,...o}){return r("th",{className:t("text-muted-foreground p-2 text-left align-middle font-medium",e),...o})}function d({className:e,...o}){return r("td",{className:t("p-2 align-middle",e),...o})}function P({className:e,...o}){return r("caption",{className:t("text-muted-foreground mt-4 text-sm",e),...o})}export{l as a,n as b,p as c,s as d,b as e,m as f,d as g,P as h};
|
|
2
|
-
//# sourceMappingURL=chunk-QLHV4Y57.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/table.tsx"],"names":["jsx","Table","className","props","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"wCAaM,cAAAA,MAAA,oBAHN,SAASC,EAAM,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAA4B,CAC/D,OACEH,EAAC,OAAI,UAAU,gCACb,SAAAA,EAAC,SAAM,UAAWI,EAAG,gCAAiCF,CAAS,EAAI,GAAGC,EAAO,EAC/E,CAEJ,CAQA,SAASE,EAAY,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAkC,CAC3E,OACEH,EAAC,SAAM,UAAWI,EAAG,8CAA+CF,CAAS,EAAI,GAAGC,EAAO,CAE/F,CAQA,SAASG,EAAU,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAgC,CACvE,OAAOH,EAAC,SAAM,UAAWI,EAAG,6BAA8BF,CAAS,EAAI,GAAGC,EAAO,CACnF,CAQA,SAASI,EAAY,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAkC,CAC3E,OACEH,EAAC,SACC,UAAWI,EAAG,gEAAiEF,CAAS,EACvF,GAAGC,EACN,CAEJ,CAQA,SAASK,EAAS,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAA+B,CACrE,OACEH,EAAC,MACC,UAAWI,EACT,sBACA,kBACA,iCACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASM,EAAU,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAgC,CACvE,OACEH,EAAC,MACC,UAAWI,EAAG,+DAAgEF,CAAS,EACtF,GAAGC,EACN,CAEJ,CAQA,SAASO,EAAU,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAgC,CACvE,OAAOH,EAAC,MAAG,UAAWI,EAAG,mBAAoBF,CAAS,EAAI,GAAGC,EAAO,CACtE,CAQA,SAASQ,EAAa,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAmC,CAC7E,OAAOH,EAAC,WAAQ,UAAWI,EAAG,qCAAsCF,CAAS,EAAI,GAAGC,EAAO,CAC7F","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\ntype TableProps = ComponentProps<'table'>;\n\nfunction Table({ className, ...props }: TableProps): JSX.Element {\n return (\n <div className=\"relative w-full overflow-auto\">\n <table className={cn('w-full caption-bottom text-sm', className)} {...props} />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\ntype TableHeaderProps = ComponentProps<'thead'>;\n\nfunction TableHeader({ className, ...props }: TableHeaderProps): JSX.Element {\n return (\n <thead className={cn('[&>tr]:border-b [&>tr]:hover:bg-transparent', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\ntype TableBodyProps = ComponentProps<'tbody'>;\n\nfunction TableBody({ className, ...props }: TableBodyProps): JSX.Element {\n return <tbody className={cn('[&>tr:last-child]:border-0', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\ntype TableFooterProps = ComponentProps<'tfoot'>;\n\nfunction TableFooter({ className, ...props }: TableFooterProps): JSX.Element {\n return (\n <tfoot\n className={cn('[&>tr]:border-b-0 [&>tr]:border-t [&>tr]:hover:bg-transparent', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\ntype TableRowProps = ComponentProps<'tr'>;\n\nfunction TableRow({ className, ...props }: TableRowProps): JSX.Element {\n return (\n <tr\n className={cn(\n 'border-b transition',\n 'hover:bg-accent',\n 'data-[state=selected]:bg-muted',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\ntype TableHeadProps = ComponentProps<'th'>;\n\nfunction TableHead({ className, ...props }: TableHeadProps): JSX.Element {\n return (\n <th\n className={cn('text-muted-foreground p-2 text-left align-middle font-medium', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\ntype TableCellProps = ComponentProps<'td'>;\n\nfunction TableCell({ className, ...props }: TableCellProps): JSX.Element {\n return <td className={cn('p-2 align-middle', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\ntype TableCaptionProps = ComponentProps<'caption'>;\n\nfunction TableCaption({ className, ...props }: TableCaptionProps): JSX.Element {\n return <caption className={cn('text-muted-foreground mt-4 text-sm', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n TableBodyProps,\n TableCaptionProps,\n TableCellProps,\n TableFooterProps,\n TableHeaderProps,\n TableHeadProps,\n TableProps,\n TableRowProps,\n};\nexport { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };\n"]}
|
package/dist/chunk-QQCKQCXV.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-OKUFCFYT.js";import*as o from"@codefast-ui/checkbox-group";import{CheckIcon as t}from"lucide-react";import{jsx as e}from"react/jsx-runtime";function n({className:r,...i}){return e(o.Root,{className:p("grid gap-2",r),...i})}function s({className:r,...i}){return e(o.Item,{className:p(["border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 rounded-sm border transition","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50"],r),...i,children:e(o.CheckboxGroupIndicator,{children:e(t,{className:"size-3.5"})})})}export{n as a,s as b};
|
|
2
|
-
//# sourceMappingURL=chunk-QQCKQCXV.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,CACE,wGACA,uBACA,sDACA,6EACA,kDACF,EACAF,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 [\n 'border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 rounded-sm border transition',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\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"]}
|
package/dist/chunk-QU4VM5VF.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-6SAOAD7N.js";import{a}from"./chunk-AGY7ZINL.js";import{jsx as n,jsxs as B}from"react/jsx-runtime";function d({children:t,className:s,disabled:i,icon:f,inside:u,loaderPosition:r="prefix",loading:o,prefix:m,size:x,spinner:p,suffix:b,variant:c,...P}){return B("button",{className:a({className:s,icon:f,inside:u,size:x,variant:c}),disabled:o||i,type:"button",...P,children:[o&&r==="prefix"?p||n(e,{}):m,typeof t=="string"?n("span",{className:"truncate",children:t}):t,o&&r==="suffix"?p||n(e,{}):b]})}export{d as a};
|
|
2
|
-
//# sourceMappingURL=chunk-QU4VM5VF.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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":"2EAmCI,OAYuD,OAAAA,EAZvD,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,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 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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/toggle.tsx"],"names":["TogglePrimitive","jsx","jsxs","Toggle","children","className","icon","prefix","size","suffix","variant","props","toggleVariants"],"mappings":"wCAEA,UAAYA,MAAqB,yBA4B7B,OAEkC,OAAAC,EAFlC,QAAAC,MAAA,oBAXJ,SAASC,EAAO,CACd,SAAAC,EACA,UAAAC,EACA,KAAAC,EACA,OAAAC,EACA,KAAAC,EACA,OAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EAA6B,CAC3B,OACET,EAAiB,OAAhB,CAAqB,UAAWU,EAAe,CAAE,UAAAP,EAAW,KAAAC,EAAM,KAAAE,EAAM,QAAAE,CAAQ,CAAC,EAAI,GAAGC,EACtF,UAAAJ,EACA,OAAOH,GAAa,SAAWH,EAAC,QAAK,UAAU,WAAY,SAAAG,EAAS,EAAUA,EAC9EK,GACH,CAEJ","sourcesContent":["import type { ComponentProps, JSX, ReactNode } from 'react';\n\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\n\nimport type { ToggleVariantsProps } from '@/variants/toggle.variants';\n\nimport { toggleVariants } from '@/variants/toggle.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Toggle\n * -------------------------------------------------------------------------- */\n\ninterface ToggleProps\n extends Omit<ComponentProps<typeof TogglePrimitive.Root>, 'prefix'>,\n ToggleVariantsProps {\n prefix?: ReactNode;\n suffix?: ReactNode;\n}\n\nfunction Toggle({\n children,\n className,\n icon,\n prefix,\n size,\n suffix,\n variant,\n ...props\n}: ToggleProps): JSX.Element {\n return (\n <TogglePrimitive.Root className={toggleVariants({ className, icon, size, variant })} {...props}>\n {prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </TogglePrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ToggleProps };\nexport { Toggle };\n"]}
|
package/dist/chunk-RX4LFU6W.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reacttabs = require('@radix-ui/react-tabs'); var e = _interopRequireWildcard(_reacttabs);var _jsxruntime = require('react/jsx-runtime');var n=e.Root;function a({className:t,...i}){return _jsxruntime.jsx.call(void 0, e.List,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted text-muted-foreground inline-flex h-10 items-center justify-center gap-1 rounded-md p-1",t),...i})}function p({className:t,...i}){return _jsxruntime.jsx.call(void 0, e.Trigger,{className:_chunkSMJEDCFPcjs.a.call(void 0, "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium outline-transparent transition-all","data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50",t),...i})}function m({className:t,...i}){return _jsxruntime.jsx.call(void 0, e.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "mt-2 rounded-md","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none",t),...i})}exports.a = n; exports.b = a; exports.c = p; exports.d = m;
|
|
2
|
-
//# sourceMappingURL=chunk-RX4LFU6W.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-RX4LFU6W.cjs","../src/components/tabs.tsx"],"names":["Tabs","TabsList","className","props","jsx","cn","TabsTrigger","TabsContent"],"mappings":"AAAA,mZAAwC,8FCET,+CAmB3B,IAVEA,CAAAA,CAAqB,CAAA,CAAA,IAAA,CAQ3B,SAASC,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA+B,CACrE,OACEC,6BAAAA,CAAe,CAAA,IAAA,CAAd,CACC,SAAA,CAAWC,iCAAAA,kGACT,CACAH,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAQA,SAASG,CAAAA,CAAY,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAkC,CAC3E,OACEC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,SAAA,CAAWC,iCAAAA,yIACT,CACA,qGAAA,CACA,4EAAA,CACA,kDAAA,CACAH,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAQA,SAASI,CAAAA,CAAY,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAkC,CAC3E,OACEC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,SAAA,CAAWC,iCAAAA,iBACT,CACA,4EAAA,CACAH,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAAA,2DAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-RX4LFU6W.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\ntype TabsProps = ComponentProps<typeof TabsPrimitive.Root>;\nconst Tabs = TabsPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\ntype TabsListProps = ComponentProps<typeof TabsPrimitive.List>;\n\nfunction TabsList({ className, ...props }: TabsListProps): JSX.Element {\n return (\n <TabsPrimitive.List\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-10 items-center justify-center gap-1 rounded-md p-1',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\ntype TabsTriggerProps = ComponentProps<typeof TabsPrimitive.Trigger>;\n\nfunction TabsTrigger({ className, ...props }: TabsTriggerProps): JSX.Element {\n return (\n <TabsPrimitive.Trigger\n className={cn(\n 'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium outline-transparent transition-all',\n 'data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\ntype TabsContentProps = ComponentProps<typeof TabsPrimitive.Content>;\n\nfunction TabsContent({ className, ...props }: TabsContentProps): JSX.Element {\n return (\n <TabsPrimitive.Content\n className={cn(\n 'mt-2 rounded-md',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps };\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"]}
|
package/dist/chunk-SFR34SQ2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-checkbox";import{CheckIcon as c}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function m({className:i,...t}){return o(e.Root,{className:r("peer","border-input text-primary-foreground shadow-xs inline-flex size-4 shrink-0 items-center justify-center rounded-sm border transition","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","disabled:cursor-default disabled:opacity-50",i),...t,children:o(e.Indicator,{children:o(c,{className:"size-3.5"})})})}export{m as a};
|
|
2
|
-
//# sourceMappingURL=chunk-SFR34SQ2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/checkbox.tsx"],"names":["CheckboxPrimitive","CheckIcon","jsx","Checkbox","className","props","cn"],"mappings":"wCAEA,UAAYA,MAAuB,2BACnC,OAAS,aAAAC,MAAiB,eAyBlB,cAAAC,MAAA,oBAfR,SAASC,EAAS,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAA+B,CACrE,OACEH,EAAmB,OAAlB,CACC,UAAWI,EACT,OACA,sIACA,uBACA,sDACA,6EACA,8CACAF,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAmB,YAAlB,CACC,SAAAA,EAACD,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { CheckIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Checkbox\n * -------------------------------------------------------------------------- */\n\ntype CheckboxProps = ComponentProps<typeof CheckboxPrimitive.Root>;\n\nfunction Checkbox({ className, ...props }: CheckboxProps): JSX.Element {\n return (\n <CheckboxPrimitive.Root\n className={cn(\n 'peer',\n 'border-input text-primary-foreground shadow-xs inline-flex size-4 shrink-0 items-center justify-center rounded-sm border transition',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { CheckboxProps };\nexport { Checkbox };\n"]}
|
package/dist/chunk-SPCGL26X.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as c}from"./chunk-DPD3MYJA.js";import{a as l}from"./chunk-OKUFCFYT.js";import{createContextScope as x}from"@radix-ui/react-context";import{Slot as g}from"@radix-ui/react-slot";import{result as C}from"lodash-es";import{useId as S}from"react";import{Controller as V,FormProvider as T,useFormState as u}from"react-hook-form";import{jsx as t}from"react/jsx-runtime";var O=T,P="FormField",[f,X]=x(P),[M,I]=f(P);function p(o,r){let{id:e}=E(o,r);return{id:e,formDescriptionId:`form-item-description-${e}`,formItemId:`form-item-${e}`,formMessageId:`form-item-message-${e}`}}function A(o){let{__scopeFormField:r,...e}=o;return t(M,{name:e.name,scope:r,children:t(V,{...e})})}var y="FormItem",[N,E]=f(y);function $({__scopeFormField:o,className:r,...e}){let s=S();return t(N,{id:s,scope:o,children:t("div",{className:l("grid gap-2",r),...e})})}function G({__scopeFormField:o,...r}){let{formItemId:e}=p(i,o);return t(c,{htmlFor:e,...r})}var b="FormControl";function k({__scopeFormField:o,...r}){let{formDescriptionId:e,formItemId:s,formMessageId:d}=p(i,o),{name:m}=I(b,o),{errors:n}=u({name:m});return t(g,{"aria-describedby":n[m]?`${e} ${d}`:e,"aria-invalid":!!n[m],id:s,...r})}function B({__scopeFormField:o,className:r,...e}){let{formDescriptionId:s}=p(i,o);return t("p",{className:l("text-muted-foreground text-xs",r),id:s,...e})}var i="FormMessage";function q({__scopeFormField:o,children:r,className:e,...s}){let{formMessageId:d}=p(i,o),{name:m}=I(i,o),{errors:n}=u({name:m}),a=C(n,m),F=a?.message?String(a.message):r;return F?t("p",{className:l("text-xs",a?.message?"text-destructive font-medium":"text-muted-foreground",e),id:d,...s,children:F}):null}export{O as a,X as b,A as c,$ as d,G as e,k as f,B as g,q as h};
|
|
2
|
-
//# sourceMappingURL=chunk-SPCGL26X.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/form.tsx"],"names":["createContextScope","Slot","result","useId","Controller","FormProvider","useFormState","jsx","Form","FORM_FIELD_NAME","createFormFieldContext","createFormFieldScope","FormFieldProvider","useFormFieldContext","useFormItem","consumerName","scope","id","useFormItemContext","FormField","formFieldProps","__scopeFormField","props","FORM_ITEM_NAME","FormItemProvider","FormItem","className","cn","FormLabel","formItemId","FORM_MESSAGE_NAME","Label","FORM_CONTROL_NAME","FormControl","formDescriptionId","formMessageId","name","errors","FormDescription","FormMessage","children","error","body"],"mappings":"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","sourcesContent":["'use client';\n\nimport type { Scope } from '@radix-ui/react-context';\nimport type * as LabelPrimitive from '@radix-ui/react-label';\nimport type { ComponentProps, JSX, ReactNode } from 'react';\nimport type { ControllerProps, FieldPath, FieldValues, GlobalError } from 'react-hook-form';\n\nimport { createContextScope } from '@radix-ui/react-context';\nimport { Slot } from '@radix-ui/react-slot';\nimport { result } from 'lodash-es';\nimport { useId } from 'react';\nimport { Controller, FormProvider, useFormState } from 'react-hook-form';\n\nimport { Label } from '@/components/label';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Form\n * -------------------------------------------------------------------------- */\n\ntype FormProps = ComponentProps<typeof FormProvider>;\nconst Form = FormProvider;\n\n/* -----------------------------------------------------------------------------\n * Component: FormField\n * -------------------------------------------------------------------------- */\n\nconst FORM_FIELD_NAME = 'FormField';\n\ntype ScopedProps<P> = P & { __scopeFormField?: Scope };\n\nconst [createFormFieldContext, createFormFieldScope] = createContextScope(FORM_FIELD_NAME);\n\ninterface FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> {\n name: TName;\n}\n\nconst [FormFieldProvider, useFormFieldContext] =\n createFormFieldContext<FormFieldContextValue>(FORM_FIELD_NAME);\n\nfunction useFormItem(\n consumerName: string,\n scope: Scope,\n): {\n formDescriptionId: string;\n formItemId: string;\n formMessageId: string;\n id: string;\n} {\n const { id } = useFormItemContext(consumerName, scope);\n\n return {\n id,\n formDescriptionId: `form-item-description-${id}`,\n formItemId: `form-item-${id}`,\n formMessageId: `form-item-message-${id}`,\n };\n}\n\ntype FormFieldProps<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = ControllerProps<TFieldValues, TName>;\n\nfunction FormField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>(formFieldProps: FormFieldProps<TFieldValues, TName>): JSX.Element {\n const { __scopeFormField, ...props } = formFieldProps as ScopedProps<\n FormFieldProps<TFieldValues, TName>\n >;\n\n return (\n <FormFieldProvider name={props.name} scope={__scopeFormField}>\n <Controller {...props} />\n </FormFieldProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormItem\n * -------------------------------------------------------------------------- */\n\nconst FORM_ITEM_NAME = 'FormItem';\n\ninterface FormItemContextValue {\n id: string;\n}\n\nconst [FormItemProvider, useFormItemContext] =\n createFormFieldContext<FormItemContextValue>(FORM_ITEM_NAME);\n\ntype FormItemProps = ComponentProps<'div'>;\n\nfunction FormItem({\n __scopeFormField,\n className,\n ...props\n}: ScopedProps<FormItemProps>): JSX.Element {\n const id = useId();\n\n return (\n <FormItemProvider id={id} scope={__scopeFormField}>\n <div className={cn('grid gap-2', className)} {...props} />\n </FormItemProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormLabel\n * -------------------------------------------------------------------------- */\n\ntype FormLabelProps = ComponentProps<typeof LabelPrimitive.Root>;\n\nfunction FormLabel({ __scopeFormField, ...props }: ScopedProps<FormLabelProps>): JSX.Element {\n const { formItemId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return <Label htmlFor={formItemId} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormControl\n * -------------------------------------------------------------------------- */\n\nconst FORM_CONTROL_NAME = 'FormControl';\n\ntype FormControlProps = ComponentProps<typeof Slot>;\n\nfunction FormControl({ __scopeFormField, ...props }: ScopedProps<FormControlProps>): JSX.Element {\n const { formDescriptionId, formItemId, formMessageId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n const { name } = useFormFieldContext(FORM_CONTROL_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n\n return (\n <Slot\n aria-describedby={errors[name] ? `${formDescriptionId} ${formMessageId}` : formDescriptionId}\n aria-invalid={Boolean(errors[name])}\n id={formItemId}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormDescription\n * -------------------------------------------------------------------------- */\n\ntype FormDescriptionProps = ComponentProps<'p'>;\n\nfunction FormDescription({\n __scopeFormField,\n className,\n ...props\n}: ScopedProps<FormDescriptionProps>): JSX.Element {\n const { formDescriptionId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return (\n <p\n className={cn('text-muted-foreground text-xs', className)}\n id={formDescriptionId}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormMessage\n * -------------------------------------------------------------------------- */\n\nconst FORM_MESSAGE_NAME = 'FormMessage';\n\ntype FormMessageProps = ComponentProps<'p'>;\n\nfunction FormMessage({\n __scopeFormField,\n children,\n className,\n ...props\n}: ScopedProps<FormMessageProps>): ReactNode {\n const { formMessageId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n const { name } = useFormFieldContext(FORM_MESSAGE_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n const error = result<GlobalError | null>(errors, name);\n const body = error?.message ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n className={cn(\n 'text-xs',\n error?.message ? 'text-destructive font-medium' : 'text-muted-foreground',\n className,\n )}\n id={formMessageId}\n {...props}\n >\n {body}\n </p>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n FormControlProps,\n FormDescriptionProps,\n FormFieldProps,\n FormItemProps,\n FormLabelProps,\n FormMessageProps,\n FormProps,\n};\nexport {\n createFormFieldScope,\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n};\n"]}
|
package/dist/chunk-SSZKZXFM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as i}from"./chunk-AGY7ZINL.js";import{a as n}from"./chunk-OKUFCFYT.js";import{Drawer as o}from"vaul";import{jsx as t,jsxs as s}from"react/jsx-runtime";function P({shouldScaleBackground:r=!0,...e}){return t(o.Root,{shouldScaleBackground:r,...e})}var w=o.Trigger;function u({children:r,className:e,...a}){return s(o.Portal,{children:[t(o.Overlay,{className:"fixed inset-0 z-50 bg-black/80"}),s(o.Content,{className:n("bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border",e),...a,children:[t("div",{className:"bg-muted mx-auto mt-4 h-2 w-24 rounded-full"}),r]})]})}function c({className:r,...e}){return t("div",{className:n("grid gap-1.5 p-4 text-center sm:text-left",r),...e})}function d({className:r,...e}){return t("main",{className:n("overflow-auto px-4 py-2",r),...e})}function f({className:r,...e}){return t("div",{className:n("mt-auto flex flex-col-reverse gap-2 p-4",r),...e})}function g({className:r,...e}){return t(o.Title,{className:n("text-lg font-semibold leading-none tracking-tight",r),...e})}function y({className:r,...e}){return t(o.Description,{className:n("text-muted-foreground text-sm",r),...e})}function C({className:r,size:e,variant:a="outline",...p}){return t(o.Close,{className:i({className:r,size:e,variant:a}),...p})}export{P as a,w as b,u as c,c as d,d as e,f,g,y as h,C as i};
|
|
2
|
-
//# sourceMappingURL=chunk-SSZKZXFM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/drawer.tsx"],"names":["DrawerPrimitive","jsx","jsxs","Drawer","shouldScaleBackground","props","DrawerTrigger","DrawerContent","children","className","cn","DrawerHeader","DrawerBody","DrawerFooter","DrawerTitle","DrawerDescription","DrawerClose","size","variant","buttonVariants"],"mappings":"gFAIA,OAAS,UAAUA,MAAuB,OAcjC,cAAAC,EAoBH,QAAAC,MApBG,oBADT,SAASC,EAAO,CAAE,sBAAAC,EAAwB,GAAM,GAAGC,CAAM,EAA6B,CACpF,OAAOJ,EAACD,EAAgB,KAAhB,CAAqB,sBAAuBI,EAAwB,GAAGC,EAAO,CACxF,CAOA,IAAMC,EAAgBN,EAAgB,QAQtC,SAASO,EAAc,CAAE,SAAAC,EAAU,UAAAC,EAAW,GAAGJ,CAAM,EAAoC,CACzF,OACEH,EAACF,EAAgB,OAAhB,CACC,UAAAC,EAACD,EAAgB,QAAhB,CAAwB,UAAU,iCAAiC,EACpEE,EAACF,EAAgB,QAAhB,CACC,UAAWU,EACT,6FACAD,CACF,EACC,GAAGJ,EAEJ,UAAAJ,EAAC,OAAI,UAAU,8CAA8C,EAC5DO,GACH,GACF,CAEJ,CAQA,SAASG,EAAa,CAAE,UAAAF,EAAW,GAAGJ,CAAM,EAAmC,CAC7E,OAAOJ,EAAC,OAAI,UAAWS,EAAG,4CAA6CD,CAAS,EAAI,GAAGJ,EAAO,CAChG,CAQA,SAASO,EAAW,CAAE,UAAAH,EAAW,GAAGJ,CAAM,EAAiC,CACzE,OAAOJ,EAAC,QAAK,UAAWS,EAAG,0BAA2BD,CAAS,EAAI,GAAGJ,EAAO,CAC/E,CAQA,SAASQ,EAAa,CAAE,UAAAJ,EAAW,GAAGJ,CAAM,EAAmC,CAC7E,OAAOJ,EAAC,OAAI,UAAWS,EAAG,0CAA2CD,CAAS,EAAI,GAAGJ,EAAO,CAC9F,CAQA,SAASS,EAAY,CAAE,UAAAL,EAAW,GAAGJ,CAAM,EAAkC,CAC3E,OACEJ,EAACD,EAAgB,MAAhB,CACC,UAAWU,EAAG,oDAAqDD,CAAS,EAC3E,GAAGJ,EACN,CAEJ,CAQA,SAASU,EAAkB,CAAE,UAAAN,EAAW,GAAGJ,CAAM,EAAwC,CACvF,OACEJ,EAACD,EAAgB,YAAhB,CACC,UAAWU,EAAG,gCAAiCD,CAAS,EACvD,GAAGJ,EACN,CAEJ,CAWA,SAASW,EAAY,CACnB,UAAAP,EACA,KAAAQ,EACA,QAAAC,EAAU,UACV,GAAGb,CACL,EAAkC,CAChC,OACEJ,EAACD,EAAgB,MAAhB,CAAsB,UAAWmB,EAAe,CAAE,UAAAV,EAAW,KAAAQ,EAAM,QAAAC,CAAQ,CAAC,EAAI,GAAGb,EAAO,CAE/F","sourcesContent":["'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport type { ButtonVariantsProps } from '@/variants/button.variants';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/variants/button.variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Drawer\n * -------------------------------------------------------------------------- */\n\ntype DrawerProps = ComponentProps<typeof DrawerPrimitive.Root>;\n\nfunction Drawer({ shouldScaleBackground = true, ...props }: DrawerProps): JSX.Element {\n return <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTrigger\n * -------------------------------------------------------------------------- */\n\ntype DrawerTriggerProps = ComponentProps<typeof DrawerPrimitive.Trigger>;\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerContent\n * -------------------------------------------------------------------------- */\n\ntype DrawerContentProps = ComponentProps<typeof DrawerPrimitive.Content>;\n\nfunction DrawerContent({ children, className, ...props }: DrawerContentProps): JSX.Element {\n return (\n <DrawerPrimitive.Portal>\n <DrawerPrimitive.Overlay className=\"fixed inset-0 z-50 bg-black/80\" />\n <DrawerPrimitive.Content\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-24 rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerHeader\n * -------------------------------------------------------------------------- */\n\ntype DrawerHeaderProps = ComponentProps<'div'>;\n\nfunction DrawerHeader({ className, ...props }: DrawerHeaderProps): JSX.Element {\n return <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerBody\n * -------------------------------------------------------------------------- */\n\ntype DrawerBodyProps = ComponentProps<'div'>;\n\nfunction DrawerBody({ className, ...props }: DrawerBodyProps): JSX.Element {\n return <main className={cn('overflow-auto px-4 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerFooter\n * -------------------------------------------------------------------------- */\n\ntype DrawerFooterProps = ComponentProps<'div'>;\n\nfunction DrawerFooter({ className, ...props }: DrawerFooterProps): JSX.Element {\n return <div className={cn('mt-auto flex flex-col-reverse gap-2 p-4', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTitle\n * -------------------------------------------------------------------------- */\n\ntype DrawerTitleProps = ComponentProps<typeof DrawerPrimitive.Title>;\n\nfunction DrawerTitle({ className, ...props }: DrawerTitleProps): JSX.Element {\n return (\n <DrawerPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerDescription\n * -------------------------------------------------------------------------- */\n\ntype DrawerDescriptionProps = ComponentProps<typeof DrawerPrimitive.Description>;\n\nfunction DrawerDescription({ className, ...props }: DrawerDescriptionProps): JSX.Element {\n return (\n <DrawerPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerClose\n * -------------------------------------------------------------------------- */\n\ninterface DrawerCloseProps extends ComponentProps<typeof DrawerPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nfunction DrawerClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: DrawerCloseProps): JSX.Element {\n return (\n <DrawerPrimitive.Close className={buttonVariants({ className, size, variant })} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n DrawerBodyProps,\n DrawerCloseProps,\n DrawerContentProps,\n DrawerDescriptionProps,\n DrawerFooterProps,\n DrawerHeaderProps,\n DrawerProps,\n DrawerTitleProps,\n DrawerTriggerProps,\n};\nexport {\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n};\n"]}
|
package/dist/chunk-T6ATICRQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-OKUFCFYT.js";import*as t from"@radix-ui/react-switch";import{jsx as i}from"react/jsx-runtime";function n({className:o,...r}){return i(t.Root,{className:e("shadow-xs peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent transition","data-[state=checked]:bg-primary data-[state=unchecked]:bg-input","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","disabled:cursor-default disabled:opacity-50",o),...r,children:i(t.Thumb,{className:e("bg-background pointer-events-none block size-4 rounded-full shadow-sm transition","data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})}export{n as a};
|
|
2
|
-
//# sourceMappingURL=chunk-T6ATICRQ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/switch.tsx"],"names":["SwitchPrimitives","jsx","Switch","className","props","cn"],"mappings":"wCAEA,UAAYA,MAAsB,yBAsB5B,cAAAC,MAAA,oBAZN,SAASC,EAAO,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAA6B,CACjE,OACEH,EAAkB,OAAjB,CACC,UAAWI,EACT,+GACA,kEACA,6EACA,8CACAF,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAkB,QAAjB,CACC,UAAWI,EACT,mFACA,yEACF,EACF,EACF,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Switch\n * -------------------------------------------------------------------------- */\n\ntype SwitchProps = ComponentProps<typeof SwitchPrimitives.Root>;\n\nfunction Switch({ className, ...props }: SwitchProps): JSX.Element {\n return (\n <SwitchPrimitives.Root\n className={cn(\n 'shadow-xs peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent transition',\n 'data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n 'bg-background pointer-events-none block size-4 rounded-full shadow-sm transition',\n 'data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0',\n )}\n />\n </SwitchPrimitives.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { SwitchProps };\nexport { Switch };\n"]}
|
package/dist/chunk-T6TKUY76.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _lucidereact = require('lucide-react');var _reactresizablepanels = require('react-resizable-panels'); var e = _interopRequireWildcard(_reactresizablepanels);var _jsxruntime = require('react/jsx-runtime');function p({className:a,...t}){return _jsxruntime.jsx.call(void 0, e.PanelGroup,{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex size-full","data-[panel-group-direction=vertical]:flex-col",a),...t})}var c=e.Panel;function f({className:a,withHandle:t,...l}){return _jsxruntime.jsx.call(void 0, e.PanelResizeHandle,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-border relative flex w-px items-center justify-center transition","after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2","focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none","data-[panel-group-direction=vertical]:h-px","data-[panel-group-direction=vertical]:w-full","data-[panel-group-direction=vertical]:after:left-0","data-[panel-group-direction=vertical]:after:h-1","data-[panel-group-direction=vertical]:after:w-full","data-[panel-group-direction=vertical]:after:-translate-y-1/2","data-[panel-group-direction=vertical]:after:translate-x-0","[&[data-panel-group-direction=vertical]>div]:rotate-90",a),...l,children:t?_jsxruntime.jsx.call(void 0, "div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",children:_jsxruntime.jsx.call(void 0, _lucidereact.GripVerticalIcon,{className:"size-2.5"})}):null})}exports.a = p; exports.b = c; exports.c = f;
|
|
2
|
-
//# sourceMappingURL=chunk-T6TKUY76.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-T6TKUY76.cjs","../src/components/resizable.tsx"],"names":["ResizablePrimitive","className","cn","ResizablePanel","withHandle","jsx","GripVerticalIcon"],"mappings":"AAAA,uWAAY,CAAC,wDCIJ,2CACGA,sHAaR,+CAJF,SAAAC,CAAAA,CACA,CAAA,SAEA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAClB,CAAA,UAAWC,CAAG,CAAA,SAAA,CAAA,iCAAA,gBAAkB,CAAA,gDAUtC,CAAA,CAAMC,CAAAA,CAAoC,GAAA,CAAA,CAAA,CAAA,CAAA,IAM1C,CAAA,CAAA,CAAA,CAAA,KACE,CAAA,SAAAF,CAAAA,CACA,CAAA,SAAA,CAAAG,CAAAA,CACA,UAIA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAAA,CAAA,iBACPF,CACT,CAAA,SAAA,CAAA,iCAAA,qEACA,CAAA,gFACA,CAAA,4EACA,CAAA,4CACA,CAAA,8CACA,CAAA,oDACA,CAAA,iDACA,CAAA,oDACA,CAAA,8DACA,CAAA,2DACA,CAAA,wDAKD,CAAA,CAAA,CAAA,CAAA,GACCG,CAAAA,CAAC,QAAI,CAAA,CAAA,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,2EACZC,CAAA,QAAiB,CAAA,6BAAA,6BAAU,CAAA,CAAA,SAAW,CACzC,UAIR,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-T6TKUY76.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { GripVerticalIcon } from 'lucide-react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanelGroup\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element {\n return (\n <ResizablePrimitive.PanelGroup\n className={cn('flex size-full', 'data-[panel-group-direction=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanel\n * -------------------------------------------------------------------------- */\n\nconst ResizablePanel = ResizablePrimitive.Panel;\n\n/* -----------------------------------------------------------------------------\n * Component: ResizableHandle\n * -------------------------------------------------------------------------- */\n\nfunction ResizableHandle({\n className,\n withHandle,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n withHandle?: boolean;\n}): JSX.Element {\n return (\n <ResizablePrimitive.PanelResizeHandle\n className={cn(\n 'bg-border relative flex w-px items-center justify-center transition',\n 'after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'data-[panel-group-direction=vertical]:h-px',\n 'data-[panel-group-direction=vertical]:w-full',\n 'data-[panel-group-direction=vertical]:after:left-0',\n 'data-[panel-group-direction=vertical]:after:h-1',\n 'data-[panel-group-direction=vertical]:after:w-full',\n 'data-[panel-group-direction=vertical]:after:-translate-y-1/2',\n 'data-[panel-group-direction=vertical]:after:translate-x-0',\n '[&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle ? (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border\">\n <GripVerticalIcon className=\"size-2.5\" />\n </div>\n ) : null}\n </ResizablePrimitive.PanelResizeHandle>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"]}
|
package/dist/chunk-TR7XTVTB.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkYA5ZRFA7cjs = require('./chunk-YA5ZRFA7.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _cmdk = require('cmdk');var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function d({className:o,...e}){return _jsxruntime.jsx.call(void 0, _cmdk.Command,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...e})}function C({children:o,...e}){return _jsxruntime.jsx.call(void 0, _chunkYA5ZRFA7cjs.a,{...e,children:_jsxruntime.jsx.call(void 0, _chunkYA5ZRFA7cjs.c,{className:"p-0",children:_jsxruntime.jsx.call(void 0, d,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:o})})})}function g({className:o,...e}){return _jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[_jsxruntime.jsx.call(void 0, _lucidereact.SearchIcon,{className:"size-5 shrink-0 opacity-50"}),_jsxruntime.jsx.call(void 0, _cmdk.Command.Input,{className:_chunkSMJEDCFPcjs.a.call(void 0, "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",o),...e})]})}function P({className:o,...e}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.List,{className:_chunkSMJEDCFPcjs.a.call(void 0, "max-h-72 overflow-y-auto overflow-x-hidden",o),...e})}function f({className:o,...e}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Empty,{className:_chunkSMJEDCFPcjs.a.call(void 0, "py-6 text-center text-sm",o),...e})}function y({className:o,...e}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Group,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...e})}function x({className:o,...e}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Separator,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-border -mx-1 h-px",o),...e})}function h({className:o,...e}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Item,{className:_chunkSMJEDCFPcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded-sm text-sm","aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none",o),...e})}function S({className:o,...e}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Loading,{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex justify-center p-2",o),...e})}function v({className:o,...e}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",o),...e})}exports.a = d; exports.b = C; exports.c = g; exports.d = P; exports.e = f; exports.f = y; exports.g = x; exports.h = h; exports.i = S; exports.j = v;
|
|
2
|
-
//# sourceMappingURL=chunk-TR7XTVTB.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-TR7XTVTB.cjs","../src/components/command.tsx"],"names":["className","CommandPrimitive","cn","CommandDialog","children","Dialog","DialogContent","Command","CommandInput","jsx","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandLoading","CommandShortcut"],"mappings":"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","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-TR7XTVTB.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { SearchIcon } from 'lucide-react';\n\nimport { Dialog, DialogContent } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\ntype CommandProps = ComponentProps<typeof CommandPrimitive>;\n\nfunction Command({ className, ...props }: CommandProps): JSX.Element {\n return (\n <CommandPrimitive\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\ntype CommandDialogProps = ComponentProps<typeof Dialog>;\n\nfunction CommandDialog({ children, ...props }: CommandDialogProps): JSX.Element {\n return (\n <Dialog {...props}>\n <DialogContent className=\"p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\ntype CommandInputProps = ComponentProps<typeof CommandPrimitive.Input>;\n\nfunction CommandInput({ className, ...props }: CommandInputProps): JSX.Element {\n return (\n <div className=\"flex items-center gap-2 border-b px-3\" cmdk-input-wrapper=\"\">\n <SearchIcon className=\"size-5 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\ntype CommandListProps = ComponentProps<typeof CommandPrimitive.List>;\n\nfunction CommandList({ className, ...props }: CommandListProps): JSX.Element {\n return (\n <CommandPrimitive.List\n className={cn('max-h-72 overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\ntype CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty>;\n\nfunction CommandEmpty({ className, ...props }: CommandEmptyProps): JSX.Element {\n return (\n <CommandPrimitive.Empty className={cn('py-6 text-center text-sm', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\ntype CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group>;\n\nfunction CommandGroup({ className, ...props }: CommandGroupProps): JSX.Element {\n return (\n <CommandPrimitive.Group\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\ntype CommandSeparatorProps = ComponentProps<typeof CommandPrimitive.Separator>;\n\nfunction CommandSeparator({ className, ...props }: CommandSeparatorProps): JSX.Element {\n return (\n <CommandPrimitive.Separator className={cn('bg-border -mx-1 h-px', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\ntype CommandItemProps = ComponentProps<typeof CommandPrimitive.Item>;\n\nfunction CommandItem({ className, ...props }: CommandItemProps): JSX.Element {\n return (\n <CommandPrimitive.Item\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n 'aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\ntype CommandLoadingProps = ComponentProps<typeof CommandPrimitive.Loading>;\n\nfunction CommandLoading({ className, ...props }: CommandLoadingProps): JSX.Element {\n return (\n <CommandPrimitive.Loading className={cn('flex justify-center p-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\ntype CommandShortcutProps = ComponentProps<'span'>;\n\nfunction CommandShortcut({ className, ...props }: CommandShortcutProps): JSX.Element {\n return (\n <span\n className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type {\n CommandDialogProps,\n CommandEmptyProps,\n CommandGroupProps,\n CommandInputProps,\n CommandItemProps,\n CommandListProps,\n CommandLoadingProps,\n CommandProps,\n CommandSeparatorProps,\n CommandShortcutProps,\n};\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n CommandShortcut,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-TTWAO7YU.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,CAEP,uGAAA,CACA,sBAAA,CACA,qDAAA,CACA,4EAAA,CACA,kDACF,CAAA,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-TTWAO7YU.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 [\n 'border-input text-primary-foreground shadow-xs peer flex size-4 shrink-0 rounded-sm border transition',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring/40 focus-visible:ring-3 focus-visible:outline-none',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\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"]}
|
package/dist/chunk-UDGC4CDE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-AGY7ZINL.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-select";import{CheckIcon as c,ChevronDownIcon as p,ChevronsUpDownIcon as m,ChevronUpIcon as S}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";var y=e.Root,g=e.Group,x=e.Value;function C({children:o,className:r,size:l,...n}){return a(e.Trigger,{className:s({className:["w-full justify-between px-3 font-normal","[&>span]:truncate",r],size:l,variant:"outline"}),...n,children:[o,t(e.Icon,{asChild:!0,children:t(m,{className:"size-4 shrink-0 opacity-50"})})]})}function d({className:o,...r}){return t(e.ScrollUpButton,{className:i("flex cursor-pointer items-center justify-center py-1",o),...r,children:t(S,{})})}function P({className:o,...r}){return t(e.ScrollDownButton,{className:i("flex cursor-pointer items-center justify-center py-1",o),...r,children:t(p,{})})}function b({children:o,className:r,position:l="popper",...n}){return t(e.Portal,{children:a(e.Content,{className:i("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2",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,...n,children:[t(d,{}),t(e.Viewport,{className:i("p-1",l==="popper"&&"h-(--radix-select-trigger-height) min-w-(--radix-select-trigger-width) w-full"),children:o}),t(P,{})]})})}function h({className:o,...r}){return t(e.Label,{className:i("gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",o),...r})}function w({children:o,className:r,...l}){return a(e.Item,{className:i("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",r),...l,children:[t("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t(e.ItemIndicator,{children:t(c,{className:"size-4"})})}),t(e.ItemText,{children:o})]})}function I({className:o,...r}){return t(e.Separator,{className:i("bg-muted mx-2 my-1 h-px",o),...r})}export{y as a,g as b,x as c,C as d,d as e,P as f,b as g,h,w as i,I as j};
|
|
2
|
-
//# sourceMappingURL=chunk-UDGC4CDE.js.map
|