@egose/shadcn-theme 0.0.55 → 0.0.57
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/{chunk-FHSYSVS6.mjs → chunk-3EG2FEBB.mjs} +2 -2
- package/chunk-3EG2FEBB.mjs.map +1 -0
- package/{chunk-QDVJN4S3.mjs → chunk-3JEPUE5U.mjs} +2 -2
- package/chunk-3JEPUE5U.mjs.map +1 -0
- package/{chunk-4NMFJSJN.mjs → chunk-3MBQAHIV.mjs} +3 -3
- package/chunk-3MBQAHIV.mjs.map +1 -0
- package/{chunk-GI222XFX.js → chunk-3N6XHFX5.js} +8 -8
- package/chunk-3N6XHFX5.js.map +1 -0
- package/{chunk-ARQYTBBZ.mjs → chunk-3NTWG7HE.mjs} +4 -4
- package/chunk-3NTWG7HE.mjs.map +1 -0
- package/{chunk-4UZN52P7.mjs → chunk-3YYGE3VK.mjs} +2 -2
- package/chunk-3YYGE3VK.mjs.map +1 -0
- package/{chunk-MYO4WRNB.js → chunk-47W55SLI.js} +41 -41
- package/chunk-47W55SLI.js.map +1 -0
- package/{chunk-ZVBMRCE7.mjs → chunk-4R3RFMUA.mjs} +2 -2
- package/chunk-4R3RFMUA.mjs.map +1 -0
- package/{chunk-RSQ25E6Y.js → chunk-4R6IG6RY.js} +8 -8
- package/{chunk-RSQ25E6Y.js.map → chunk-4R6IG6RY.js.map} +1 -1
- package/{chunk-U3KAN7IM.js → chunk-4WSPRI6W.js} +8 -8
- package/chunk-4WSPRI6W.js.map +1 -0
- package/chunk-5BZZ2POS.js +90 -0
- package/chunk-5BZZ2POS.js.map +1 -0
- package/{chunk-F5XCCSBC.mjs → chunk-5FGLRP7F.mjs} +2 -2
- package/chunk-5FGLRP7F.mjs.map +1 -0
- package/{chunk-Z3VXGHCE.mjs → chunk-5OBKA7BC.mjs} +2 -2
- package/chunk-5OBKA7BC.mjs.map +1 -0
- package/{chunk-LE44LDOD.js → chunk-5SD2LAPD.js} +4 -4
- package/chunk-5SD2LAPD.js.map +1 -0
- package/{chunk-NK4XTZ5W.js → chunk-5YCF5QHQ.js} +3 -3
- package/chunk-5YCF5QHQ.js.map +1 -0
- package/{chunk-4XC6EXHZ.mjs → chunk-7CZZZXYP.mjs} +3 -3
- package/chunk-7CZZZXYP.mjs.map +1 -0
- package/{chunk-6N4WCMTE.js → chunk-7SJRI4U2.js} +2 -2
- package/chunk-7SJRI4U2.js.map +1 -0
- package/{chunk-A34GFF2E.js → chunk-7VXTDRET.js} +3 -3
- package/chunk-7VXTDRET.js.map +1 -0
- package/{chunk-NRHWGE26.mjs → chunk-A2MIZ2VR.mjs} +2 -2
- package/chunk-A2MIZ2VR.mjs.map +1 -0
- package/{chunk-LUIXCCN2.js → chunk-AL3RZ3FV.js} +3 -3
- package/{chunk-LUIXCCN2.js.map → chunk-AL3RZ3FV.js.map} +1 -1
- package/{chunk-FQQGM55E.js → chunk-AMABAT5T.js} +5 -5
- package/{chunk-FQQGM55E.js.map → chunk-AMABAT5T.js.map} +1 -1
- package/{chunk-EZZ2YCUU.js → chunk-BWGMEQWK.js} +5 -5
- package/chunk-BWGMEQWK.js.map +1 -0
- package/{chunk-YAPKDLRQ.mjs → chunk-CJWH2Z74.mjs} +2 -2
- package/chunk-CJWH2Z74.mjs.map +1 -0
- package/{chunk-37EH7QCX.mjs → chunk-CRMSEPRI.mjs} +2 -2
- package/chunk-CRMSEPRI.mjs.map +1 -0
- package/{chunk-YWWFTM23.js → chunk-D3TFBFUF.js} +5 -5
- package/chunk-D3TFBFUF.js.map +1 -0
- package/{chunk-JW7N7IR5.mjs → chunk-DAMOXG2O.mjs} +2 -2
- package/chunk-DAMOXG2O.mjs.map +1 -0
- package/{chunk-R7L4TN3C.mjs → chunk-DUDH3MCS.mjs} +2 -2
- package/chunk-DUDH3MCS.mjs.map +1 -0
- package/{chunk-73VYAPJR.js → chunk-DWKZ4CLC.js} +9 -9
- package/{chunk-PS7WGOZH.mjs.map → chunk-DWKZ4CLC.js.map} +1 -1
- package/{chunk-R4SF7CSA.mjs → chunk-DYCHNDBD.mjs} +4 -4
- package/chunk-DYCHNDBD.mjs.map +1 -0
- package/{chunk-LXILG667.mjs → chunk-DZYGP2N5.mjs} +4 -4
- package/chunk-DZYGP2N5.mjs.map +1 -0
- package/{chunk-M6C2FCM4.mjs → chunk-E2XRCWJR.mjs} +2 -2
- package/chunk-E2XRCWJR.mjs.map +1 -0
- package/{chunk-4FD63HEQ.js → chunk-EA4VCT6D.js} +9 -9
- package/chunk-EA4VCT6D.js.map +1 -0
- package/{chunk-LSKO74NV.js → chunk-EQXR5O7I.js} +3 -3
- package/chunk-EQXR5O7I.js.map +1 -0
- package/{chunk-2R34M7KI.mjs → chunk-EUN4GDKY.mjs} +2 -2
- package/chunk-EUN4GDKY.mjs.map +1 -0
- package/{chunk-OAAHNESN.mjs → chunk-FZJD242Q.mjs} +2 -2
- package/chunk-FZJD242Q.mjs.map +1 -0
- package/{chunk-PCR4GC74.js → chunk-G3BLPRHD.js} +11 -8
- package/chunk-G3BLPRHD.js.map +1 -0
- package/{chunk-TUFO3JJE.js → chunk-GJTP65HN.js} +3 -3
- package/{chunk-TUFO3JJE.js.map → chunk-GJTP65HN.js.map} +1 -1
- package/{chunk-NVBZVKIT.js → chunk-GMS5YDRZ.js} +7 -7
- package/{chunk-NVBZVKIT.js.map → chunk-GMS5YDRZ.js.map} +1 -1
- package/{chunk-RMDDLEPA.js → chunk-GS3J3SZ6.js} +3 -3
- package/{chunk-JW7N7IR5.mjs.map → chunk-GS3J3SZ6.js.map} +1 -1
- package/{chunk-REZO5TYB.mjs → chunk-HOXCVLLZ.mjs} +2 -2
- package/chunk-HOXCVLLZ.mjs.map +1 -0
- package/{chunk-O2ZEUVTY.js → chunk-I6VK7V52.js} +3 -3
- package/chunk-I6VK7V52.js.map +1 -0
- package/{chunk-CE4PBEIL.js → chunk-JWKM3SCQ.js} +10 -10
- package/chunk-JWKM3SCQ.js.map +1 -0
- package/{chunk-LQETWWSU.js → chunk-KFWAMOVZ.js} +2 -2
- package/chunk-KFWAMOVZ.js.map +1 -0
- package/{chunk-V4BQYO2M.mjs → chunk-KH4J42Q6.mjs} +2 -2
- package/chunk-KH4J42Q6.mjs.map +1 -0
- package/{chunk-OXTCSLHP.mjs → chunk-LQGPZAFC.mjs} +2 -2
- package/chunk-LQGPZAFC.mjs.map +1 -0
- package/{chunk-EJQJ3BCF.mjs → chunk-LUHSKITP.mjs} +6 -3
- package/chunk-LUHSKITP.mjs.map +1 -0
- package/{chunk-NTYWTGYX.mjs → chunk-MA4JO45Z.mjs} +4 -4
- package/chunk-MA4JO45Z.mjs.map +1 -0
- package/{chunk-QGXFFTPH.js → chunk-MBLSRGZ2.js} +4 -4
- package/chunk-MBLSRGZ2.js.map +1 -0
- package/{chunk-FMYITAWN.mjs → chunk-MFJGIGWT.mjs} +3 -3
- package/chunk-MFJGIGWT.mjs.map +1 -0
- package/{chunk-3BCL4OKX.mjs → chunk-MH2NPJBV.mjs} +37 -5
- package/chunk-MH2NPJBV.mjs.map +1 -0
- package/{chunk-TMC4JKD5.mjs → chunk-MZI4KLJI.mjs} +2 -2
- package/chunk-MZI4KLJI.mjs.map +1 -0
- package/{chunk-I64GW5SA.js → chunk-NIKJHOAI.js} +11 -11
- package/chunk-NIKJHOAI.js.map +1 -0
- package/{chunk-JWENANTO.mjs → chunk-NZHD5YZR.mjs} +2 -2
- package/chunk-NZHD5YZR.mjs.map +1 -0
- package/{chunk-DGYAXPSD.js → chunk-ODQJMPB6.js} +7 -7
- package/{chunk-DGYAXPSD.js.map → chunk-ODQJMPB6.js.map} +1 -1
- package/{chunk-2QMNPBOE.mjs → chunk-PDC3VSBR.mjs} +2 -2
- package/chunk-PDC3VSBR.mjs.map +1 -0
- package/{chunk-DTJ43DCW.mjs → chunk-QOEYYBTN.mjs} +6 -6
- package/chunk-QOEYYBTN.mjs.map +1 -0
- package/{chunk-DYUS5722.js → chunk-QX2O73EX.js} +13 -13
- package/{chunk-DYUS5722.js.map → chunk-QX2O73EX.js.map} +1 -1
- package/{chunk-XJ7GBFHV.js → chunk-QXM5SPL7.js} +6 -6
- package/{chunk-XJ7GBFHV.js.map → chunk-QXM5SPL7.js.map} +1 -1
- package/{chunk-JHUXWZVG.js → chunk-RCFYOQW3.js} +10 -10
- package/chunk-RCFYOQW3.js.map +1 -0
- package/{chunk-O7E6RNCD.mjs → chunk-RPY3K7KJ.mjs} +9 -9
- package/chunk-RPY3K7KJ.mjs.map +1 -0
- package/{chunk-E4SSD5P4.js → chunk-SN6A3NMR.js} +8 -8
- package/chunk-SN6A3NMR.js.map +1 -0
- package/{chunk-ACE5WNTU.mjs → chunk-SNRIGFVN.mjs} +8 -8
- package/chunk-SNRIGFVN.mjs.map +1 -0
- package/{chunk-AT6DBL5I.mjs → chunk-SVOYV633.mjs} +2 -2
- package/chunk-SVOYV633.mjs.map +1 -0
- package/{chunk-DSGXBKNS.js → chunk-TGB4GPS3.js} +8 -8
- package/chunk-TGB4GPS3.js.map +1 -0
- package/{chunk-ZJAFK7BR.mjs → chunk-TVJGKFMZ.mjs} +2 -2
- package/chunk-TVJGKFMZ.mjs.map +1 -0
- package/{chunk-YWILOKX4.mjs → chunk-VY32PQ6N.mjs} +3 -3
- package/chunk-VY32PQ6N.mjs.map +1 -0
- package/{chunk-CPGH6LBC.mjs → chunk-WE4IYC5U.mjs} +4 -4
- package/chunk-WE4IYC5U.mjs.map +1 -0
- package/{chunk-IC3ASFKZ.js → chunk-WS7VXL5F.js} +3 -3
- package/{chunk-IC3ASFKZ.js.map → chunk-WS7VXL5F.js.map} +1 -1
- package/{chunk-DMATER3M.mjs → chunk-WX6CB76L.mjs} +4 -4
- package/{chunk-PS7WGOZH.mjs → chunk-X75FMMME.mjs} +3 -3
- package/chunk-X75FMMME.mjs.map +1 -0
- package/{chunk-NI2SIUXO.js → chunk-XBXONBSD.js} +11 -11
- package/{chunk-IAJ2ZBSJ.mjs.map → chunk-XBXONBSD.js.map} +1 -1
- package/{chunk-V7M2UXTR.js → chunk-XEM6TC6M.js} +3 -3
- package/{chunk-V7M2UXTR.js.map → chunk-XEM6TC6M.js.map} +1 -1
- package/{chunk-ZOF6UW3D.js → chunk-YFATYRLC.js} +9 -9
- package/{chunk-ZOF6UW3D.js.map → chunk-YFATYRLC.js.map} +1 -1
- package/{chunk-54PLQ33F.mjs → chunk-YI3OGSQO.mjs} +8 -8
- package/chunk-YI3OGSQO.mjs.map +1 -0
- package/{chunk-W2N2NIVE.js → chunk-YLRHSC44.js} +3 -3
- package/chunk-YLRHSC44.js.map +1 -0
- package/{chunk-SCM23WSM.js → chunk-YPSTG2Q5.js} +5 -5
- package/chunk-YPSTG2Q5.js.map +1 -0
- package/{chunk-RY3M2GTK.js → chunk-ZFXJY65N.js} +14 -14
- package/{chunk-RY3M2GTK.js.map → chunk-ZFXJY65N.js.map} +1 -1
- package/{chunk-5HD5BGK7.js → chunk-ZHMIO6GX.js} +14 -14
- package/{chunk-5HD5BGK7.js.map → chunk-ZHMIO6GX.js.map} +1 -1
- package/{chunk-3T2PPKR3.js → chunk-ZP6XFQ45.js} +3 -3
- package/chunk-ZP6XFQ45.js.map +1 -0
- package/{chunk-IAJ2ZBSJ.mjs → chunk-ZUHAZXLZ.mjs} +2 -2
- package/chunk-ZUHAZXLZ.mjs.map +1 -0
- package/components/form/checkbox.js +5 -5
- package/components/form/checkbox.mjs +4 -4
- package/components/form/date-picker.js +9 -9
- package/components/form/date-picker.mjs +8 -8
- package/components/form/date-range-picker.js +13 -13
- package/components/form/date-range-picker.js.map +1 -1
- package/components/form/date-range-picker.mjs +9 -9
- package/components/form/date-range-picker.mjs.map +1 -1
- package/components/form/error.js +3 -3
- package/components/form/error.mjs +2 -2
- package/components/form/hook-checkbox.js +9 -9
- package/components/form/hook-checkbox.js.map +1 -1
- package/components/form/hook-checkbox.mjs +7 -7
- package/components/form/hook-checkbox.mjs.map +1 -1
- package/components/form/hook-date-picker.js +12 -12
- package/components/form/hook-date-picker.js.map +1 -1
- package/components/form/hook-date-picker.mjs +11 -11
- package/components/form/hook-date-picker.mjs.map +1 -1
- package/components/form/hook-native-select.js +8 -8
- package/components/form/hook-native-select.js.map +1 -1
- package/components/form/hook-native-select.mjs +4 -4
- package/components/form/hook-native-select.mjs.map +1 -1
- package/components/form/hook-searchable-select.js +12 -12
- package/components/form/hook-searchable-select.js.map +1 -1
- package/components/form/hook-searchable-select.mjs +9 -9
- package/components/form/hook-searchable-select.mjs.map +1 -1
- package/components/form/hook-select.js +8 -8
- package/components/form/hook-select.js.map +1 -1
- package/components/form/hook-select.mjs +5 -5
- package/components/form/hook-select.mjs.map +1 -1
- package/components/form/hook-text-input.js +9 -9
- package/components/form/hook-text-input.js.map +1 -1
- package/components/form/hook-text-input.mjs +5 -5
- package/components/form/hook-text-input.mjs.map +1 -1
- package/components/form/hook-textarea.js +9 -9
- package/components/form/hook-textarea.js.map +1 -1
- package/components/form/hook-textarea.mjs +5 -5
- package/components/form/hook-textarea.mjs.map +1 -1
- package/components/form/hook-time-input.js +10 -11
- package/components/form/hook-time-input.js.map +1 -1
- package/components/form/hook-time-input.mjs +6 -7
- package/components/form/hook-time-input.mjs.map +1 -1
- package/components/form/native-select.js +4 -4
- package/components/form/native-select.mjs +3 -3
- package/components/form/searchable-select.js +9 -9
- package/components/form/searchable-select.mjs +8 -8
- package/components/form/select.js +5 -5
- package/components/form/select.mjs +4 -4
- package/components/form/text-input.js +5 -5
- package/components/form/text-input.mjs +4 -4
- package/components/form/textarea.js +5 -5
- package/components/form/textarea.mjs +4 -4
- package/components/form/time-input.js +6 -7
- package/components/form/time-input.js.map +1 -1
- package/components/form/time-input.mjs +5 -6
- package/components/ui/accordion.js +4 -4
- package/components/ui/accordion.js.map +1 -1
- package/components/ui/accordion.mjs +1 -1
- package/components/ui/accordion.mjs.map +1 -1
- package/components/ui/alert-dialog.js +11 -11
- package/components/ui/alert-dialog.js.map +1 -1
- package/components/ui/alert-dialog.mjs +3 -3
- package/components/ui/alert-dialog.mjs.map +1 -1
- package/components/ui/alert.d.mts +2 -6
- package/components/ui/alert.d.ts +2 -6
- package/components/ui/alert.js +3 -3
- package/components/ui/alert.mjs +2 -2
- package/components/ui/avatar.js +3 -3
- package/components/ui/avatar.mjs +2 -2
- package/components/ui/badge.d.mts +2 -7
- package/components/ui/badge.d.ts +2 -7
- package/components/ui/badge.js +3 -3
- package/components/ui/badge.mjs +2 -2
- package/components/ui/basic-alert.d.mts +0 -1
- package/components/ui/basic-alert.d.ts +0 -1
- package/components/ui/basic-alert.js +3 -3
- package/components/ui/basic-alert.mjs +2 -2
- package/components/ui/breadcrumb.js +3 -3
- package/components/ui/breadcrumb.mjs +2 -2
- package/components/ui/button.d.mts +2 -8
- package/components/ui/button.d.ts +2 -8
- package/components/ui/button.js +4 -4
- package/components/ui/button.mjs +3 -3
- package/components/ui/calendar.js +5 -5
- package/components/ui/calendar.mjs +4 -4
- package/components/ui/card.js +7 -7
- package/components/ui/card.js.map +1 -1
- package/components/ui/card.mjs +1 -1
- package/components/ui/card.mjs.map +1 -1
- package/components/ui/carousel.d.mts +2 -3
- package/components/ui/carousel.d.ts +2 -3
- package/components/ui/carousel.js +10 -10
- package/components/ui/carousel.js.map +1 -1
- package/components/ui/carousel.mjs +3 -3
- package/components/ui/carousel.mjs.map +1 -1
- package/components/ui/checkbox.js +3 -3
- package/components/ui/checkbox.mjs +2 -2
- package/components/ui/command.js +4 -4
- package/components/ui/command.mjs +3 -3
- package/components/ui/context-menu.js +10 -10
- package/components/ui/context-menu.js.map +1 -1
- package/components/ui/context-menu.mjs +1 -1
- package/components/ui/context-menu.mjs.map +1 -1
- package/components/ui/copy-button.js +6 -6
- package/components/ui/copy-button.js.map +1 -1
- package/components/ui/copy-button.mjs +2 -2
- package/components/ui/copy-button.mjs.map +1 -1
- package/components/ui/dialog.js +3 -3
- package/components/ui/dialog.mjs +2 -2
- package/components/ui/drawer.d.mts +11 -22
- package/components/ui/drawer.d.ts +11 -22
- package/components/ui/drawer.js +64 -38
- package/components/ui/drawer.js.map +1 -1
- package/components/ui/drawer.mjs +63 -37
- package/components/ui/drawer.mjs.map +1 -1
- package/components/ui/dropdown-menu.js +3 -3
- package/components/ui/dropdown-menu.mjs +2 -2
- package/components/ui/extension/file-input.js +5 -5
- package/components/ui/extension/file-input.mjs +4 -4
- package/components/ui/extension/multi-select.js +15 -15
- package/components/ui/extension/multi-select.js.map +1 -1
- package/components/ui/extension/multi-select.mjs +4 -4
- package/components/ui/extension/multi-select.mjs.map +1 -1
- package/components/ui/form.js +6 -6
- package/components/ui/form.js.map +1 -1
- package/components/ui/form.mjs +2 -2
- package/components/ui/form.mjs.map +1 -1
- package/components/ui/hover-card.js +2 -2
- package/components/ui/hover-card.js.map +1 -1
- package/components/ui/hover-card.mjs +1 -1
- package/components/ui/hover-card.mjs.map +1 -1
- package/components/ui/input-otp.js +5 -5
- package/components/ui/input-otp.js.map +1 -1
- package/components/ui/input-otp.mjs +1 -1
- package/components/ui/input-otp.mjs.map +1 -1
- package/components/ui/input.js +3 -3
- package/components/ui/input.mjs +2 -2
- package/components/ui/label.d.mts +2 -3
- package/components/ui/label.d.ts +2 -3
- package/components/ui/label.js +3 -3
- package/components/ui/label.mjs +2 -2
- package/components/ui/menubar.js +12 -12
- package/components/ui/menubar.js.map +1 -1
- package/components/ui/menubar.mjs +1 -1
- package/components/ui/menubar.mjs.map +1 -1
- package/components/ui/navigation-menu.d.mts +1 -2
- package/components/ui/navigation-menu.d.ts +1 -2
- package/components/ui/navigation-menu.js +8 -8
- package/components/ui/navigation-menu.js.map +1 -1
- package/components/ui/navigation-menu.mjs +1 -1
- package/components/ui/navigation-menu.mjs.map +1 -1
- package/components/ui/pagination.d.mts +0 -1
- package/components/ui/pagination.d.ts +0 -1
- package/components/ui/pagination.js +11 -11
- package/components/ui/pagination.js.map +1 -1
- package/components/ui/pagination.mjs +3 -3
- package/components/ui/pagination.mjs.map +1 -1
- package/components/ui/popover.js +3 -3
- package/components/ui/popover.mjs +2 -2
- package/components/ui/progress.js +2 -2
- package/components/ui/progress.js.map +1 -1
- package/components/ui/progress.mjs +1 -1
- package/components/ui/progress.mjs.map +1 -1
- package/components/ui/radio-group.js +3 -3
- package/components/ui/radio-group.js.map +1 -1
- package/components/ui/radio-group.mjs +1 -1
- package/components/ui/radio-group.mjs.map +1 -1
- package/components/ui/resizable.js +3 -3
- package/components/ui/resizable.js.map +1 -1
- package/components/ui/resizable.mjs +1 -1
- package/components/ui/resizable.mjs.map +1 -1
- package/components/ui/scroll-area.js +3 -3
- package/components/ui/scroll-area.js.map +1 -1
- package/components/ui/scroll-area.mjs +1 -1
- package/components/ui/scroll-area.mjs.map +1 -1
- package/components/ui/select.js +3 -3
- package/components/ui/select.mjs +2 -2
- package/components/ui/separator.js +3 -3
- package/components/ui/separator.mjs +2 -2
- package/components/ui/sheet.d.mts +2 -5
- package/components/ui/sheet.d.ts +2 -5
- package/components/ui/sheet.js +3 -3
- package/components/ui/sheet.mjs +2 -2
- package/components/ui/sidebar.d.mts +2 -6
- package/components/ui/sidebar.d.ts +2 -6
- package/components/ui/sidebar.js +10 -10
- package/components/ui/sidebar.mjs +9 -9
- package/components/ui/skeleton.js +3 -3
- package/components/ui/skeleton.mjs +2 -2
- package/components/ui/slider.js +2 -2
- package/components/ui/slider.js.map +1 -1
- package/components/ui/slider.mjs +1 -1
- package/components/ui/slider.mjs.map +1 -1
- package/components/ui/spinner.d.mts +2 -7
- package/components/ui/spinner.d.ts +2 -7
- package/components/ui/spinner.js +3 -3
- package/components/ui/spinner.mjs +2 -2
- package/components/ui/switch.js +3 -3
- package/components/ui/switch.js.map +1 -1
- package/components/ui/switch.mjs +1 -1
- package/components/ui/switch.mjs.map +1 -1
- package/components/ui/table.js +9 -9
- package/components/ui/table.js.map +1 -1
- package/components/ui/table.mjs +1 -1
- package/components/ui/table.mjs.map +1 -1
- package/components/ui/tabs.js +4 -4
- package/components/ui/tabs.js.map +1 -1
- package/components/ui/tabs.mjs +1 -1
- package/components/ui/tabs.mjs.map +1 -1
- package/components/ui/textarea.js +3 -3
- package/components/ui/textarea.mjs +2 -2
- package/components/ui/toast.d.mts +1 -4
- package/components/ui/toast.d.ts +1 -4
- package/components/ui/toast.js +3 -3
- package/components/ui/toast.mjs +2 -2
- package/components/ui/toaster.js +5 -5
- package/components/ui/toaster.mjs +2 -2
- package/components/ui/toggle-group.d.mts +3 -10
- package/components/ui/toggle-group.d.ts +3 -10
- package/components/ui/toggle-group.js +5 -5
- package/components/ui/toggle-group.js.map +1 -1
- package/components/ui/toggle-group.mjs +2 -2
- package/components/ui/toggle-group.mjs.map +1 -1
- package/components/ui/toggle.d.mts +2 -9
- package/components/ui/toggle.d.ts +2 -9
- package/components/ui/toggle.js +3 -3
- package/components/ui/toggle.mjs +2 -2
- package/components/ui/tooltip.js +3 -3
- package/components/ui/tooltip.mjs +2 -2
- package/hooks/use-toast.d.mts +0 -1
- package/hooks/use-toast.d.ts +0 -1
- package/layouts/sidebar1/app-sidebar.d.mts +0 -1
- package/layouts/sidebar1/app-sidebar.d.ts +0 -1
- package/layouts/sidebar1/app-sidebar.js +16 -16
- package/layouts/sidebar1/app-sidebar.mjs +15 -15
- package/layouts/sidebar1/context-switcher.js +12 -12
- package/layouts/sidebar1/context-switcher.mjs +11 -11
- package/layouts/sidebar1/index.d.mts +0 -1
- package/layouts/sidebar1/index.d.ts +0 -1
- package/layouts/sidebar1/index.js +19 -19
- package/layouts/sidebar1/index.js.map +1 -1
- package/layouts/sidebar1/index.mjs +17 -17
- package/layouts/sidebar1/nav-menus.d.mts +2 -0
- package/layouts/sidebar1/nav-menus.d.ts +2 -0
- package/layouts/sidebar1/nav-menus.js +11 -11
- package/layouts/sidebar1/nav-menus.mjs +10 -10
- package/layouts/sidebar1/nav-user.js +13 -13
- package/layouts/sidebar1/nav-user.mjs +12 -12
- package/layouts/simple/index.js +17 -17
- package/layouts/simple/index.js.map +1 -1
- package/layouts/simple/index.mjs +4 -4
- package/layouts/simple/index.mjs.map +1 -1
- package/layouts/simple/mobile-menu.js +3 -3
- package/layouts/simple/mobile-menu.mjs +2 -2
- package/layouts/simple/user-menu.js +4 -4
- package/layouts/simple/user-menu.mjs +3 -3
- package/package.json +5 -5
- package/chunk-2QMNPBOE.mjs.map +0 -1
- package/chunk-2R34M7KI.mjs.map +0 -1
- package/chunk-37EH7QCX.mjs.map +0 -1
- package/chunk-3BCL4OKX.mjs.map +0 -1
- package/chunk-3T2PPKR3.js.map +0 -1
- package/chunk-4FD63HEQ.js.map +0 -1
- package/chunk-4NMFJSJN.mjs.map +0 -1
- package/chunk-4UZN52P7.mjs.map +0 -1
- package/chunk-4XC6EXHZ.mjs.map +0 -1
- package/chunk-4YSHGGKX.js +0 -58
- package/chunk-4YSHGGKX.js.map +0 -1
- package/chunk-54PLQ33F.mjs.map +0 -1
- package/chunk-6KUUJF3I.js +0 -42
- package/chunk-6KUUJF3I.js.map +0 -1
- package/chunk-6N4WCMTE.js.map +0 -1
- package/chunk-73VYAPJR.js.map +0 -1
- package/chunk-A34GFF2E.js.map +0 -1
- package/chunk-ACE5WNTU.mjs.map +0 -1
- package/chunk-ARQYTBBZ.mjs.map +0 -1
- package/chunk-AT6DBL5I.mjs.map +0 -1
- package/chunk-CE4PBEIL.js.map +0 -1
- package/chunk-CPGH6LBC.mjs.map +0 -1
- package/chunk-CTYAFVU5.mjs +0 -41
- package/chunk-CTYAFVU5.mjs.map +0 -1
- package/chunk-DSGXBKNS.js.map +0 -1
- package/chunk-DTJ43DCW.mjs.map +0 -1
- package/chunk-E4SSD5P4.js.map +0 -1
- package/chunk-EJQJ3BCF.mjs.map +0 -1
- package/chunk-EZZ2YCUU.js.map +0 -1
- package/chunk-F5XCCSBC.mjs.map +0 -1
- package/chunk-FHSYSVS6.mjs.map +0 -1
- package/chunk-FMYITAWN.mjs.map +0 -1
- package/chunk-GI222XFX.js.map +0 -1
- package/chunk-I64GW5SA.js.map +0 -1
- package/chunk-JHUXWZVG.js.map +0 -1
- package/chunk-JWENANTO.mjs.map +0 -1
- package/chunk-LE44LDOD.js.map +0 -1
- package/chunk-LQETWWSU.js.map +0 -1
- package/chunk-LSKO74NV.js.map +0 -1
- package/chunk-LXILG667.mjs.map +0 -1
- package/chunk-M6C2FCM4.mjs.map +0 -1
- package/chunk-MYO4WRNB.js.map +0 -1
- package/chunk-NI2SIUXO.js.map +0 -1
- package/chunk-NK4XTZ5W.js.map +0 -1
- package/chunk-NRHWGE26.mjs.map +0 -1
- package/chunk-NTYWTGYX.mjs.map +0 -1
- package/chunk-O2ZEUVTY.js.map +0 -1
- package/chunk-O7E6RNCD.mjs.map +0 -1
- package/chunk-OAAHNESN.mjs.map +0 -1
- package/chunk-OXTCSLHP.mjs.map +0 -1
- package/chunk-PCR4GC74.js.map +0 -1
- package/chunk-QDVJN4S3.mjs.map +0 -1
- package/chunk-QGXFFTPH.js.map +0 -1
- package/chunk-R4SF7CSA.mjs.map +0 -1
- package/chunk-R7L4TN3C.mjs.map +0 -1
- package/chunk-REZO5TYB.mjs.map +0 -1
- package/chunk-RMDDLEPA.js.map +0 -1
- package/chunk-SCM23WSM.js.map +0 -1
- package/chunk-TMC4JKD5.mjs.map +0 -1
- package/chunk-U3KAN7IM.js.map +0 -1
- package/chunk-V4BQYO2M.mjs.map +0 -1
- package/chunk-W2N2NIVE.js.map +0 -1
- package/chunk-YAPKDLRQ.mjs.map +0 -1
- package/chunk-YWILOKX4.mjs.map +0 -1
- package/chunk-YWWFTM23.js.map +0 -1
- package/chunk-Z3VXGHCE.mjs.map +0 -1
- package/chunk-ZJAFK7BR.mjs.map +0 -1
- package/chunk-ZVBMRCE7.mjs.map +0 -1
- package/lib/date.d.mts +0 -4
- package/lib/date.d.ts +0 -4
- package/lib/date.js +0 -12
- package/lib/date.js.map +0 -1
- package/lib/date.mjs +0 -11
- package/lib/date.mjs.map +0 -1
- package/lib/number.d.mts +0 -7
- package/lib/number.d.ts +0 -7
- package/lib/number.js +0 -14
- package/lib/number.js.map +0 -1
- package/lib/number.mjs +0 -13
- package/lib/number.mjs.map +0 -1
- package/lib/utils.d.mts +0 -5
- package/lib/utils.d.ts +0 -5
- package/lib/utils.js +0 -10
- package/lib/utils.js.map +0 -1
- package/lib/utils.mjs +0 -9
- package/lib/utils.mjs.map +0 -1
- /package/{chunk-DMATER3M.mjs.map → chunk-WX6CB76L.mjs.map} +0 -0
|
@@ -7,13 +7,13 @@ var _chunk7GZ7NWTVjs = require('../../chunk-7GZ7NWTV.js');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEQXR5O7Ijs = require('../../chunk-EQXR5O7I.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkZFSZ6K4Kjs = require('../../chunk-ZFSZ6K4K.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk7SJRI4U2js = require('../../chunk-7SJRI4U2.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk2NMEKWO5js = require('../../chunk-2NMEKWO5.js');
|
|
@@ -51,19 +51,19 @@ function CopyableButton({
|
|
|
51
51
|
const [showCopied, setShowCopied] = _react.useState.call(void 0, false);
|
|
52
52
|
const isText = _isString3.default.call(void 0, children);
|
|
53
53
|
const copyValue = value != null ? value : isText ? children : "";
|
|
54
|
-
return /* @__PURE__ */ _react2.default.createElement(
|
|
54
|
+
return /* @__PURE__ */ _react2.default.createElement(_chunkEQXR5O7Ijs.Tooltip, { open: showCopied }, /* @__PURE__ */ _react2.default.createElement(_chunkEQXR5O7Ijs.TooltipTrigger, { asChild: true }, /* @__PURE__ */ _react2.default.createElement(
|
|
55
55
|
_chunk7GZ7NWTVjs.UnstyledButton,
|
|
56
56
|
{
|
|
57
57
|
onClick: () => clipboard.copy(String(copyValue)),
|
|
58
58
|
onMouseEnter: () => setShowCopied(true),
|
|
59
59
|
onMouseLeave: () => setShowCopied(false),
|
|
60
|
-
className:
|
|
60
|
+
className: _chunk7SJRI4U2js.cn.call(void 0, "inline-flex items-center gap-1 cursor-pointer", className),
|
|
61
61
|
"aria-label": "Copy to clipboard",
|
|
62
62
|
title: "Copy to clipboard"
|
|
63
63
|
},
|
|
64
|
-
/* @__PURE__ */ _react2.default.createElement("span", { className:
|
|
64
|
+
/* @__PURE__ */ _react2.default.createElement("span", { className: _chunk7SJRI4U2js.cn.call(void 0, { "hover:underline": isText }) }, children),
|
|
65
65
|
isText && /* @__PURE__ */ _react2.default.createElement(CopyClipboardIcon, null)
|
|
66
|
-
)), /* @__PURE__ */ _react2.default.createElement(
|
|
66
|
+
)), /* @__PURE__ */ _react2.default.createElement(_chunkEQXR5O7Ijs.TooltipContent, null, clipboard.copied ? "Copied" : "Copy"));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/copy-button.js","../../../components/ui/copy-button.tsx"],"names":[],"mappings":"AAAA,qLAAY;AACZ;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACA;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACA;AClBA,4EAAgC;AAChC,oGAAsB;AAOtB,SAAS,iBAAA,CAAkB,KAAA,EAAsC;AAC/D,EAAA,uBACE,eAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA,6CAAA;AAAA,MACC,KAAA,EAAM,4BAAA;AAAA,MACN,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,IAAA,EAAK,MAAA;AAAA,MACL,MAAA,EAAO,cAAA;AAAA,MACP,WAAA,EAAY,GAAA;AAAA,MACZ,aAAA,EAAc,OAAA;AAAA,MACd,cAAA,EAAe,OAAA;AAAA,MACf,SAAA,EAAU;AAAA,IAAA,CAAA,EACN,KAAA,CAAA;AAAA,oBAEJ,eAAA,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,MACvC,SAAA,EAAW,iCAAA,+CAAG,EAAiD,SAAS,CAAA;AAAA,MACxE,YAAA,EAAW,mBAAA;AAAA,MACX,KAAA,EAAM;AAAA,IAAA,CAAA;AAAA,oBAEN,eAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,iCAAA,EAAK,iBAAA,EAAmB,OAAO,CAAC,EAAA,CAAA,EAAI,QAAS,CAAA;AAAA,IAC7D,OAAA,mBAAU,eAAA,CAAA,aAAA,CAAC,iBAAA,EAAA,IAAkB;AAAA,EAChC,CACF,CAAA,kBACA,eAAA,CAAA,aAAA,CAAC,+BAAA,EAAA,IAAA,EAAgB,SAAA,CAAU,OAAA,EAAS,SAAA,EAAW,MAAO,CACxD,CAAA;AAEJ;ADCA;AACE;AACF,wCAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/copy-button.js","sourcesContent":[null,"\"use client\";\nimport React, { useState } from 'react';\nimport _isString from 'lodash-es/isString';\nimport { useClipboard } from '../../hooks/use-clipboard';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../../components/ui/tooltip';\nimport { UnstyledButton } from './unstyled-button';\nimport { cn } from '../../
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/copy-button.js","../../../components/ui/copy-button.tsx"],"names":[],"mappings":"AAAA,qLAAY;AACZ;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACA;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACA;AClBA,4EAAgC;AAChC,oGAAsB;AAOtB,SAAS,iBAAA,CAAkB,KAAA,EAAsC;AAC/D,EAAA,uBACE,eAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA,6CAAA;AAAA,MACC,KAAA,EAAM,4BAAA;AAAA,MACN,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP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AAA,IAAA;AAAA,MACC,OAAA,EAAS,CAAA,EAAA,GAAM,SAAA,CAAU,IAAA,CAAK,MAAA,CAAO,SAAS,CAAC,CAAA;AAAA,MAC/C,YAAA,EAAc,CAAA,EAAA,GAAM,aAAA,CAAc,IAAI,CAAA;AAAA,MACtC,YAAA,EAAc,CAAA,EAAA,GAAM,aAAA,CAAc,KAAK,CAAA;AAAA,MACvC,SAAA,EAAW,iCAAA,+CAAG,EAAiD,SAAS,CAAA;AAAA,MACxE,YAAA,EAAW,mBAAA;AAAA,MACX,KAAA,EAAM;AAAA,IAAA,CAAA;AAAA,oBAEN,eAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,iCAAA,EAAK,iBAAA,EAAmB,OAAO,CAAC,EAAA,CAAA,EAAI,QAAS,CAAA;AAAA,IAC7D,OAAA,mBAAU,eAAA,CAAA,aAAA,CAAC,iBAAA,EAAA,IAAkB;AAAA,EAChC,CACF,CAAA,kBACA,eAAA,CAAA,aAAA,CAAC,+BAAA,EAAA,IAAA,EAAgB,SAAA,CAAU,OAAA,EAAS,SAAA,EAAW,MAAO,CACxD,CAAA;AAEJ;ADCA;AACE;AACF,wCAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/copy-button.js","sourcesContent":[null,"\"use client\";\nimport React, { useState } from 'react';\nimport _isString from 'lodash-es/isString';\nimport { useClipboard } from '../../hooks/use-clipboard';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../../components/ui/tooltip';\nimport { UnstyledButton } from './unstyled-button';\nimport { cn } from '../../utils/ui';\n\n// See https://tabler.io/icons/icon/clipboard-copy\nfunction CopyClipboardIcon(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"icon icon-tabler icons-tabler-outline icon-tabler-clipboard-copy\"\n {...props}\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h3m9 -9v-5a2 2 0 0 0 -2 -2h-2\" />\n <path d=\"M13 17v-1a1 1 0 0 1 1 -1h1m3 0h1a1 1 0 0 1 1 1v1m0 3v1a1 1 0 0 1 -1 1h-1m-3 0h-1a1 1 0 0 1 -1 -1v-1\" />\n <path d=\"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z\" />\n </svg>\n );\n}\n\nexport function CopyableButton({\n children,\n value,\n className,\n}: {\n children: React.ReactNode;\n value?: string;\n className?: string;\n}) {\n const clipboard = useClipboard({ timeout: 1000 });\n const [showCopied, setShowCopied] = useState(false);\n\n const isText = _isString(children);\n const copyValue = value ?? (isText ? children : '');\n\n return (\n <Tooltip open={showCopied}>\n <TooltipTrigger asChild>\n <UnstyledButton\n onClick={() => clipboard.copy(String(copyValue))}\n onMouseEnter={() => setShowCopied(true)}\n onMouseLeave={() => setShowCopied(false)}\n className={cn('inline-flex items-center gap-1 cursor-pointer', className)}\n aria-label=\"Copy to clipboard\"\n title=\"Copy to clipboard\"\n >\n <span className={cn({ 'hover:underline': isText })}>{children}</span>\n {isText && <CopyClipboardIcon />}\n </UnstyledButton>\n </TooltipTrigger>\n <TooltipContent>{clipboard.copied ? 'Copied' : 'Copy'}</TooltipContent>\n </Tooltip>\n );\n}\n"]}
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
Tooltip,
|
|
7
7
|
TooltipContent,
|
|
8
8
|
TooltipTrigger
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-DUDH3MCS.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useClipboard
|
|
12
12
|
} from "../../chunk-X3V6YE47.mjs";
|
|
13
13
|
import {
|
|
14
14
|
cn
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-5FGLRP7F.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__spreadValues
|
|
18
18
|
} from "../../chunk-YOSPWY5K.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../components/ui/copy-button.tsx"],"sourcesContent":["\"use client\";\nimport React, { useState } from 'react';\nimport _isString from 'lodash-es/isString';\nimport { useClipboard } from '../../hooks/use-clipboard';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../../components/ui/tooltip';\nimport { UnstyledButton } from './unstyled-button';\nimport { cn } from '../../
|
|
1
|
+
{"version":3,"sources":["../../../components/ui/copy-button.tsx"],"sourcesContent":["\"use client\";\nimport React, { useState } from 'react';\nimport _isString from 'lodash-es/isString';\nimport { useClipboard } from '../../hooks/use-clipboard';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../../components/ui/tooltip';\nimport { UnstyledButton } from './unstyled-button';\nimport { cn } from '../../utils/ui';\n\n// See https://tabler.io/icons/icon/clipboard-copy\nfunction CopyClipboardIcon(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"icon icon-tabler icons-tabler-outline icon-tabler-clipboard-copy\"\n {...props}\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h3m9 -9v-5a2 2 0 0 0 -2 -2h-2\" />\n <path d=\"M13 17v-1a1 1 0 0 1 1 -1h1m3 0h1a1 1 0 0 1 1 1v1m0 3v1a1 1 0 0 1 -1 1h-1m-3 0h-1a1 1 0 0 1 -1 -1v-1\" />\n <path d=\"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z\" />\n </svg>\n );\n}\n\nexport function CopyableButton({\n children,\n value,\n className,\n}: {\n children: React.ReactNode;\n value?: string;\n className?: string;\n}) {\n const clipboard = useClipboard({ timeout: 1000 });\n const [showCopied, setShowCopied] = useState(false);\n\n const isText = _isString(children);\n const copyValue = value ?? (isText ? children : '');\n\n return (\n <Tooltip open={showCopied}>\n <TooltipTrigger asChild>\n <UnstyledButton\n onClick={() => clipboard.copy(String(copyValue))}\n onMouseEnter={() => setShowCopied(true)}\n onMouseLeave={() => setShowCopied(false)}\n className={cn('inline-flex items-center gap-1 cursor-pointer', className)}\n aria-label=\"Copy to clipboard\"\n title=\"Copy to clipboard\"\n >\n <span className={cn({ 'hover:underline': isText })}>{children}</span>\n {isText && <CopyClipboardIcon />}\n </UnstyledButton>\n </TooltipTrigger>\n <TooltipContent>{clipboard.copied ? 'Copied' : 'Copy'}</TooltipContent>\n </Tooltip>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,OAAO,SAAS,gBAAgB;AAChC,OAAO,eAAe;AAOtB,SAAS,kBAAkB,OAAsC;AAC/D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAM;AAAA,MACN,OAAM;AAAA,MACN,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAY;AAAA,MACZ,eAAc;AAAA,MACd,gBAAe;AAAA,MACf,WAAU;AAAA,OACN;AAAA,IAEJ,oCAAC,UAAK,QAAO,QAAO,GAAE,iBAAgB,MAAK,QAAO;AAAA,IAClD,oCAAC,UAAK,GAAE,wEAAuE;AAAA,IAC/E,oCAAC,UAAK,GAAE,uGAAsG;AAAA,IAC9G,oCAAC,UAAK,GAAE,gFAA+E;AAAA,EACzF;AAEJ;AAEO,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AACF,GAIG;AACD,QAAM,YAAY,aAAa,EAAE,SAAS,IAAK,CAAC;AAChD,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,KAAK;AAElD,QAAM,SAAS,UAAU,QAAQ;AACjC,QAAM,YAAY,wBAAU,SAAS,WAAW;AAEhD,SACE,oCAAC,WAAQ,MAAM,cACb,oCAAC,kBAAe,SAAO,QACrB;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,MAAM,UAAU,KAAK,OAAO,SAAS,CAAC;AAAA,MAC/C,cAAc,MAAM,cAAc,IAAI;AAAA,MACtC,cAAc,MAAM,cAAc,KAAK;AAAA,MACvC,WAAW,GAAG,iDAAiD,SAAS;AAAA,MACxE,cAAW;AAAA,MACX,OAAM;AAAA;AAAA,IAEN,oCAAC,UAAK,WAAW,GAAG,EAAE,mBAAmB,OAAO,CAAC,KAAI,QAAS;AAAA,IAC7D,UAAU,oCAAC,uBAAkB;AAAA,EAChC,CACF,GACA,oCAAC,sBAAgB,UAAU,SAAS,WAAW,MAAO,CACxD;AAEJ;","names":[]}
|
package/components/ui/dialog.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('../../chunk-
|
|
14
|
+
var _chunk4WSPRI6Wjs = require('../../chunk-4WSPRI6W.js');
|
|
15
|
+
require('../../chunk-7SJRI4U2.js');
|
|
16
16
|
require('../../chunk-2NMEKWO5.js');
|
|
17
17
|
|
|
18
18
|
|
|
@@ -25,5 +25,5 @@ require('../../chunk-2NMEKWO5.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.Dialog =
|
|
28
|
+
exports.Dialog = _chunk4WSPRI6Wjs.Dialog; exports.DialogClose = _chunk4WSPRI6Wjs.DialogClose; exports.DialogContent = _chunk4WSPRI6Wjs.DialogContent; exports.DialogDescription = _chunk4WSPRI6Wjs.DialogDescription; exports.DialogFooter = _chunk4WSPRI6Wjs.DialogFooter; exports.DialogHeader = _chunk4WSPRI6Wjs.DialogHeader; exports.DialogOverlay = _chunk4WSPRI6Wjs.DialogOverlay; exports.DialogPortal = _chunk4WSPRI6Wjs.DialogPortal; exports.DialogTitle = _chunk4WSPRI6Wjs.DialogTitle; exports.DialogTrigger = _chunk4WSPRI6Wjs.DialogTrigger;
|
|
29
29
|
//# sourceMappingURL=dialog.js.map
|
package/components/ui/dialog.mjs
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
DialogPortal,
|
|
11
11
|
DialogTitle,
|
|
12
12
|
DialogTrigger
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-CJWH2Z74.mjs";
|
|
14
|
+
import "../../chunk-5FGLRP7F.mjs";
|
|
15
15
|
import "../../chunk-YOSPWY5K.mjs";
|
|
16
16
|
export {
|
|
17
17
|
Dialog,
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
import * as vaul from 'vaul';
|
|
2
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
3
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
1
|
import * as React from 'react';
|
|
2
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
5
3
|
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
declare
|
|
11
|
-
declare
|
|
12
|
-
declare
|
|
13
|
-
declare
|
|
14
|
-
declare
|
|
15
|
-
declare
|
|
16
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
declare const DrawerFooter: {
|
|
20
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
|
-
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
4
|
+
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): React.JSX.Element;
|
|
5
|
+
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): React.JSX.Element;
|
|
7
|
+
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): React.JSX.Element;
|
|
8
|
+
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): React.JSX.Element;
|
|
9
|
+
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): React.JSX.Element;
|
|
10
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
11
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
12
|
+
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): React.JSX.Element;
|
|
13
|
+
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): React.JSX.Element;
|
|
25
14
|
|
|
26
15
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
import * as vaul from 'vaul';
|
|
2
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
3
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
1
|
import * as React from 'react';
|
|
2
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
5
3
|
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
declare
|
|
11
|
-
declare
|
|
12
|
-
declare
|
|
13
|
-
declare
|
|
14
|
-
declare
|
|
15
|
-
declare
|
|
16
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
declare const DrawerFooter: {
|
|
20
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
|
-
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
4
|
+
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): React.JSX.Element;
|
|
5
|
+
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): React.JSX.Element;
|
|
7
|
+
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): React.JSX.Element;
|
|
8
|
+
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): React.JSX.Element;
|
|
9
|
+
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): React.JSX.Element;
|
|
10
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
11
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
12
|
+
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): React.JSX.Element;
|
|
13
|
+
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): React.JSX.Element;
|
|
25
14
|
|
|
26
15
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
package/components/ui/drawer.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"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; } }
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk7SJRI4U2js = require('../../chunk-7SJRI4U2.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,61 +11,87 @@ var _chunk2NMEKWO5js = require('../../chunk-2NMEKWO5.js');
|
|
|
11
11
|
// components/ui/drawer.tsx
|
|
12
12
|
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
13
13
|
var _vaul = require('vaul');
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
return /* @__PURE__ */ React.createElement(_vaul.Drawer.Root, _chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
function Drawer(_a) {
|
|
15
|
+
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
16
|
+
return /* @__PURE__ */ React.createElement(_vaul.Drawer.Root, _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "drawer" }, props));
|
|
17
|
+
}
|
|
18
|
+
function DrawerTrigger(_a) {
|
|
19
|
+
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
20
|
+
return /* @__PURE__ */ React.createElement(_vaul.Drawer.Trigger, _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "drawer-trigger" }, props));
|
|
21
|
+
}
|
|
22
|
+
function DrawerPortal(_a) {
|
|
23
|
+
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
24
|
+
return /* @__PURE__ */ React.createElement(_vaul.Drawer.Portal, _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "drawer-portal" }, props));
|
|
25
|
+
}
|
|
26
|
+
function DrawerClose(_a) {
|
|
27
|
+
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
28
|
+
return /* @__PURE__ */ React.createElement(_vaul.Drawer.Close, _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "drawer-close" }, props));
|
|
29
|
+
}
|
|
30
|
+
function DrawerOverlay(_a) {
|
|
23
31
|
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
24
|
-
return /* @__PURE__ */ React.createElement(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
return /* @__PURE__ */ React.createElement(
|
|
33
|
+
_vaul.Drawer.Overlay,
|
|
34
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
35
|
+
"data-slot": "drawer-overlay",
|
|
36
|
+
className: _chunk7SJRI4U2js.cn.call(void 0,
|
|
37
|
+
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",
|
|
38
|
+
className
|
|
39
|
+
)
|
|
40
|
+
}, props)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
function DrawerContent(_a) {
|
|
28
44
|
var _b = _a, { className, children } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className", "children"]);
|
|
29
|
-
return /* @__PURE__ */ React.createElement(DrawerPortal,
|
|
45
|
+
return /* @__PURE__ */ React.createElement(DrawerPortal, { "data-slot": "drawer-portal" }, /* @__PURE__ */ React.createElement(DrawerOverlay, null), /* @__PURE__ */ React.createElement(
|
|
30
46
|
_vaul.Drawer.Content,
|
|
31
47
|
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
32
|
-
|
|
33
|
-
className:
|
|
34
|
-
"
|
|
48
|
+
"data-slot": "drawer-content",
|
|
49
|
+
className: _chunk7SJRI4U2js.cn.call(void 0,
|
|
50
|
+
"bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50",
|
|
35
51
|
className
|
|
36
52
|
)
|
|
37
53
|
}, props),
|
|
38
|
-
/* @__PURE__ */ React.createElement("div", { className: "
|
|
54
|
+
/* @__PURE__ */ React.createElement("div", { className: "bg-muted mt-4 h-1 w-[100px] rounded-full mx-auto hidden shrink-0 group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
39
55
|
children
|
|
40
56
|
));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var DrawerHeader = (_a) => {
|
|
57
|
+
}
|
|
58
|
+
function DrawerHeader(_a) {
|
|
44
59
|
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
45
|
-
return /* @__PURE__ */ React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
return /* @__PURE__ */ React.createElement(
|
|
61
|
+
"div",
|
|
62
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
63
|
+
"data-slot": "drawer-header",
|
|
64
|
+
className: _chunk7SJRI4U2js.cn.call(void 0,
|
|
65
|
+
"gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col",
|
|
66
|
+
className
|
|
67
|
+
)
|
|
68
|
+
}, props)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
function DrawerFooter(_a) {
|
|
49
72
|
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
50
|
-
return /* @__PURE__ */ React.createElement("div", _chunk2NMEKWO5js.__spreadValues.call(void 0, { className:
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
var DrawerTitle = React.forwardRef((_a, ref) => {
|
|
73
|
+
return /* @__PURE__ */ React.createElement("div", _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "drawer-footer", className: _chunk7SJRI4U2js.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className) }, props));
|
|
74
|
+
}
|
|
75
|
+
function DrawerTitle(_a) {
|
|
54
76
|
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
55
77
|
return /* @__PURE__ */ React.createElement(
|
|
56
78
|
_vaul.Drawer.Title,
|
|
57
79
|
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
58
|
-
|
|
59
|
-
className:
|
|
80
|
+
"data-slot": "drawer-title",
|
|
81
|
+
className: _chunk7SJRI4U2js.cn.call(void 0, "text-foreground text-base font-medium", className)
|
|
60
82
|
}, props)
|
|
61
83
|
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
var DrawerDescription = React.forwardRef((_a, ref) => {
|
|
84
|
+
}
|
|
85
|
+
function DrawerDescription(_a) {
|
|
65
86
|
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
66
|
-
return /* @__PURE__ */ React.createElement(
|
|
67
|
-
|
|
68
|
-
|
|
87
|
+
return /* @__PURE__ */ React.createElement(
|
|
88
|
+
_vaul.Drawer.Description,
|
|
89
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
90
|
+
"data-slot": "drawer-description",
|
|
91
|
+
className: _chunk7SJRI4U2js.cn.call(void 0, "text-muted-foreground text-sm", className)
|
|
92
|
+
}, props)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
69
95
|
|
|
70
96
|
|
|
71
97
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/drawer.js","../../../components/ui/drawer.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACF,0DAAgC;AAChC;AACA;ACRA,2EAAuB;AACvB,4BAA0C;AAI1C,
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/drawer.js","../../../components/ui/drawer.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACF,0DAAgC;AAChC;AACA;ACRA,2EAAuB;AACvB,4BAA0C;AAI1C,SAAS,MAAA,CAAO,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ACF,iXAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/drawer.js","sourcesContent":[null,"\"use client\";\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { cn } from '../../utils/ui';\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n return <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mt-4 h-1 w-[100px] rounded-full mx-auto hidden shrink-0 group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"drawer-footer\" className={cn('gap-2 p-4 mt-auto flex flex-col', className)} {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn('text-foreground text-base font-medium', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return (\n <DrawerPrimitive.Description\n data-slot=\"drawer-description\"\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nexport {\n Drawer,\n DrawerPortal,\n DrawerOverlay,\n DrawerTrigger,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerFooter,\n DrawerTitle,\n DrawerDescription,\n};\n"]}
|
package/components/ui/drawer.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
cn
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-5FGLRP7F.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__objRest,
|
|
7
7
|
__spreadValues
|
|
@@ -10,61 +10,87 @@ import {
|
|
|
10
10
|
// components/ui/drawer.tsx
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
return /* @__PURE__ */ React.createElement(DrawerPrimitive.Root, __spreadValues({
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
function Drawer(_a) {
|
|
14
|
+
var props = __objRest(_a, []);
|
|
15
|
+
return /* @__PURE__ */ React.createElement(DrawerPrimitive.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
16
|
+
}
|
|
17
|
+
function DrawerTrigger(_a) {
|
|
18
|
+
var props = __objRest(_a, []);
|
|
19
|
+
return /* @__PURE__ */ React.createElement(DrawerPrimitive.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
20
|
+
}
|
|
21
|
+
function DrawerPortal(_a) {
|
|
22
|
+
var props = __objRest(_a, []);
|
|
23
|
+
return /* @__PURE__ */ React.createElement(DrawerPrimitive.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
24
|
+
}
|
|
25
|
+
function DrawerClose(_a) {
|
|
26
|
+
var props = __objRest(_a, []);
|
|
27
|
+
return /* @__PURE__ */ React.createElement(DrawerPrimitive.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
28
|
+
}
|
|
29
|
+
function DrawerOverlay(_a) {
|
|
22
30
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
23
|
-
return /* @__PURE__ */ React.createElement(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
return /* @__PURE__ */ React.createElement(
|
|
32
|
+
DrawerPrimitive.Overlay,
|
|
33
|
+
__spreadValues({
|
|
34
|
+
"data-slot": "drawer-overlay",
|
|
35
|
+
className: cn(
|
|
36
|
+
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",
|
|
37
|
+
className
|
|
38
|
+
)
|
|
39
|
+
}, props)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function DrawerContent(_a) {
|
|
27
43
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
28
|
-
return /* @__PURE__ */ React.createElement(DrawerPortal,
|
|
44
|
+
return /* @__PURE__ */ React.createElement(DrawerPortal, { "data-slot": "drawer-portal" }, /* @__PURE__ */ React.createElement(DrawerOverlay, null), /* @__PURE__ */ React.createElement(
|
|
29
45
|
DrawerPrimitive.Content,
|
|
30
46
|
__spreadValues({
|
|
31
|
-
|
|
47
|
+
"data-slot": "drawer-content",
|
|
32
48
|
className: cn(
|
|
33
|
-
"
|
|
49
|
+
"bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50",
|
|
34
50
|
className
|
|
35
51
|
)
|
|
36
52
|
}, props),
|
|
37
|
-
/* @__PURE__ */ React.createElement("div", { className: "
|
|
53
|
+
/* @__PURE__ */ React.createElement("div", { className: "bg-muted mt-4 h-1 w-[100px] rounded-full mx-auto hidden shrink-0 group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
38
54
|
children
|
|
39
55
|
));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var DrawerHeader = (_a) => {
|
|
56
|
+
}
|
|
57
|
+
function DrawerHeader(_a) {
|
|
43
58
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
44
|
-
return /* @__PURE__ */ React.createElement(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
return /* @__PURE__ */ React.createElement(
|
|
60
|
+
"div",
|
|
61
|
+
__spreadValues({
|
|
62
|
+
"data-slot": "drawer-header",
|
|
63
|
+
className: cn(
|
|
64
|
+
"gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col",
|
|
65
|
+
className
|
|
66
|
+
)
|
|
67
|
+
}, props)
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function DrawerFooter(_a) {
|
|
48
71
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
49
|
-
return /* @__PURE__ */ React.createElement("div", __spreadValues({ className: cn("mt-auto flex flex-col
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
var DrawerTitle = React.forwardRef((_a, ref) => {
|
|
72
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({ "data-slot": "drawer-footer", className: cn("gap-2 p-4 mt-auto flex flex-col", className) }, props));
|
|
73
|
+
}
|
|
74
|
+
function DrawerTitle(_a) {
|
|
53
75
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54
76
|
return /* @__PURE__ */ React.createElement(
|
|
55
77
|
DrawerPrimitive.Title,
|
|
56
78
|
__spreadValues({
|
|
57
|
-
|
|
58
|
-
className: cn("text-
|
|
79
|
+
"data-slot": "drawer-title",
|
|
80
|
+
className: cn("text-foreground text-base font-medium", className)
|
|
59
81
|
}, props)
|
|
60
82
|
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
var DrawerDescription = React.forwardRef((_a, ref) => {
|
|
83
|
+
}
|
|
84
|
+
function DrawerDescription(_a) {
|
|
64
85
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
65
|
-
return /* @__PURE__ */ React.createElement(
|
|
66
|
-
|
|
67
|
-
|
|
86
|
+
return /* @__PURE__ */ React.createElement(
|
|
87
|
+
DrawerPrimitive.Description,
|
|
88
|
+
__spreadValues({
|
|
89
|
+
"data-slot": "drawer-description",
|
|
90
|
+
className: cn("text-muted-foreground text-sm", className)
|
|
91
|
+
}, props)
|
|
92
|
+
);
|
|
93
|
+
}
|
|
68
94
|
export {
|
|
69
95
|
Drawer,
|
|
70
96
|
DrawerClose,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../components/ui/drawer.tsx"],"sourcesContent":["\"use client\";\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { cn } from '../../
|
|
1
|
+
{"version":3,"sources":["../../../components/ui/drawer.tsx"],"sourcesContent":["\"use client\";\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { cn } from '../../utils/ui';\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n return <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mt-4 h-1 w-[100px] rounded-full mx-auto hidden shrink-0 group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"drawer-footer\" className={cn('gap-2 p-4 mt-auto flex flex-col', className)} {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn('text-foreground text-base font-medium', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return (\n <DrawerPrimitive.Description\n data-slot=\"drawer-description\"\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nexport {\n Drawer,\n DrawerPortal,\n DrawerOverlay,\n DrawerTrigger,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerFooter,\n DrawerTitle,\n DrawerDescription,\n};\n"],"mappings":";;;;;;;;;;AACA,YAAY,WAAW;AACvB,SAAS,UAAU,uBAAuB;AAI1C,SAAS,OAAO,IAAiE;AAAjE,MAAK,kBAAL,IAAK;AACnB,SAAO,oCAAC,gBAAgB,MAAhB,iBAAqB,aAAU,YAAa,MAAO;AAC7D;AAEA,SAAS,cAAc,IAAoE;AAApE,MAAK,kBAAL,IAAK;AAC1B,SAAO,oCAAC,gBAAgB,SAAhB,iBAAwB,aAAU,oBAAqB,MAAO;AACxE;AAEA,SAAS,aAAa,IAAmE;AAAnE,MAAK,kBAAL,IAAK;AACzB,SAAO,oCAAC,gBAAgB,QAAhB,iBAAuB,aAAU,mBAAoB,MAAO;AACtE;AAEA,SAAS,YAAY,IAAkE;AAAlE,MAAK,kBAAL,IAAK;AACxB,SAAO,oCAAC,gBAAgB,OAAhB,iBAAsB,aAAU,kBAAmB,MAAO;AACpE;AAEA,SAAS,cAAc,IAA+E;AAA/E,eAAE,YAtBzB,IAsBuB,IAAgB,kBAAhB,IAAgB,CAAd;AACvB,SACE;AAAA,IAAC,gBAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,EACN;AAEJ;AAEA,SAAS,cAAc,IAAyF;AAAzF,eAAE,aAAW,SAnCpC,IAmCuB,IAA0B,kBAA1B,IAA0B,CAAxB,aAAW;AAClC,SACE,oCAAC,gBAAa,aAAU,mBACtB,oCAAC,mBAAc,GACf;AAAA,IAAC,gBAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,IAEJ,oCAAC,SAAI,WAAU,mIAAkI;AAAA,IAChJ;AAAA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