@egose/shadcn-theme 0.0.57 → 0.0.58
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-5SD2LAPD.js → chunk-23MJMEQC.js} +4 -4
- package/{chunk-5SD2LAPD.js.map → chunk-23MJMEQC.js.map} +1 -1
- package/{chunk-RCFYOQW3.js → chunk-2DJW7DN4.js} +10 -10
- package/{chunk-RCFYOQW3.js.map → chunk-2DJW7DN4.js.map} +1 -1
- package/{chunk-TGB4GPS3.js → chunk-3AWU47KT.js} +8 -8
- package/{chunk-TGB4GPS3.js.map → chunk-3AWU47KT.js.map} +1 -1
- package/{chunk-QOEYYBTN.mjs → chunk-3DG54EVO.mjs} +6 -6
- package/{chunk-4R3RFMUA.mjs → chunk-43V6CNEG.mjs} +2 -2
- package/{chunk-MZI4KLJI.mjs → chunk-47TKC7DB.mjs} +2 -2
- package/{chunk-GS3J3SZ6.js → chunk-4O25L26A.js} +3 -3
- package/{chunk-GS3J3SZ6.js.map → chunk-4O25L26A.js.map} +1 -1
- package/chunk-4SYFVOM2.js +58 -0
- package/chunk-4SYFVOM2.js.map +1 -0
- package/{chunk-47W55SLI.js → chunk-5AC6SSUU.js} +41 -41
- package/{chunk-47W55SLI.js.map → chunk-5AC6SSUU.js.map} +1 -1
- package/{chunk-G3BLPRHD.js → chunk-5WZCVX6I.js} +9 -9
- package/{chunk-G3BLPRHD.js.map → chunk-5WZCVX6I.js.map} +1 -1
- package/{chunk-WS7VXL5F.js → chunk-6POWZMND.js} +3 -3
- package/{chunk-WS7VXL5F.js.map → chunk-6POWZMND.js.map} +1 -1
- package/{chunk-ZP6XFQ45.js → chunk-73TDZTWF.js} +3 -3
- package/{chunk-ZP6XFQ45.js.map → chunk-73TDZTWF.js.map} +1 -1
- package/{chunk-XBXONBSD.js → chunk-754FOR4K.js} +11 -11
- package/{chunk-XBXONBSD.js.map → chunk-754FOR4K.js.map} +1 -1
- package/{chunk-3YYGE3VK.mjs → chunk-7MDWTJEP.mjs} +2 -2
- package/{chunk-YPSTG2Q5.js → chunk-7QMZ5MU4.js} +5 -5
- package/{chunk-YPSTG2Q5.js.map → chunk-7QMZ5MU4.js.map} +1 -1
- package/{chunk-HOXCVLLZ.mjs → chunk-ABZ4SF2K.mjs} +2 -2
- package/{chunk-FZJD242Q.mjs → chunk-AJFINSLK.mjs} +2 -2
- package/{chunk-YLRHSC44.js → chunk-APMXMQPZ.js} +3 -3
- package/{chunk-YLRHSC44.js.map → chunk-APMXMQPZ.js.map} +1 -1
- package/{chunk-7VXTDRET.js → chunk-AREM2MQQ.js} +3 -3
- package/{chunk-7VXTDRET.js.map → chunk-AREM2MQQ.js.map} +1 -1
- package/{chunk-SNRIGFVN.mjs → chunk-BE4D3M5Q.mjs} +8 -8
- package/{chunk-SN6A3NMR.js → chunk-BH4FHKAR.js} +8 -8
- package/{chunk-SN6A3NMR.js.map → chunk-BH4FHKAR.js.map} +1 -1
- package/{chunk-3N6XHFX5.js → chunk-BWKIS24H.js} +8 -8
- package/{chunk-3N6XHFX5.js.map → chunk-BWKIS24H.js.map} +1 -1
- package/{chunk-RPY3K7KJ.mjs → chunk-C736G6RV.mjs} +9 -9
- package/{chunk-ZFXJY65N.js → chunk-CSDFVUNP.js} +14 -14
- package/{chunk-ZFXJY65N.js.map → chunk-CSDFVUNP.js.map} +1 -1
- package/{chunk-CJWH2Z74.mjs → chunk-D6WUNCBI.mjs} +2 -2
- package/{chunk-EUN4GDKY.mjs → chunk-DOM2D2R7.mjs} +2 -2
- package/{chunk-DYCHNDBD.mjs → chunk-DPGUIXSL.mjs} +4 -4
- package/{chunk-WX6CB76L.mjs → chunk-F57PDM2P.mjs} +4 -4
- package/{chunk-A2MIZ2VR.mjs → chunk-FJGZ3SDA.mjs} +2 -2
- package/{chunk-CRMSEPRI.mjs → chunk-GVZX7FQQ.mjs} +2 -2
- package/{chunk-EQXR5O7I.js → chunk-GZPKVSCR.js} +3 -3
- package/{chunk-EQXR5O7I.js.map → chunk-GZPKVSCR.js.map} +1 -1
- package/{chunk-DAMOXG2O.mjs → chunk-HBKXMTBF.mjs} +2 -2
- package/{chunk-XEM6TC6M.js → chunk-HMEHDD5N.js} +3 -3
- package/{chunk-XEM6TC6M.js.map → chunk-HMEHDD5N.js.map} +1 -1
- package/{chunk-AL3RZ3FV.js → chunk-HN73FRPZ.js} +3 -3
- package/{chunk-AL3RZ3FV.js.map → chunk-HN73FRPZ.js.map} +1 -1
- package/{chunk-3EG2FEBB.mjs → chunk-HR7QORF3.mjs} +2 -2
- package/{chunk-SVOYV633.mjs → chunk-IHNDGZWX.mjs} +2 -2
- package/{chunk-KFWAMOVZ.js → chunk-IYVLRZJ4.js} +1 -1
- package/{chunk-KFWAMOVZ.js.map → chunk-IYVLRZJ4.js.map} +1 -1
- package/{chunk-DZYGP2N5.mjs → chunk-IYZWOHGP.mjs} +4 -4
- package/{chunk-3NTWG7HE.mjs → chunk-J4FPBR7A.mjs} +4 -4
- package/{chunk-GMS5YDRZ.js → chunk-J4KEZVR5.js} +7 -7
- package/{chunk-GMS5YDRZ.js.map → chunk-J4KEZVR5.js.map} +1 -1
- package/{chunk-TVJGKFMZ.mjs → chunk-JVMY3LCD.mjs} +2 -2
- package/{chunk-MFJGIGWT.mjs → chunk-K6S2HW6A.mjs} +3 -3
- package/{chunk-5FGLRP7F.mjs → chunk-KGUUDFJE.mjs} +1 -1
- package/{chunk-GJTP65HN.js → chunk-KNNX4FAH.js} +3 -3
- package/{chunk-GJTP65HN.js.map → chunk-KNNX4FAH.js.map} +1 -1
- package/{chunk-5YCF5QHQ.js → chunk-LYMKN3NY.js} +3 -3
- package/{chunk-5YCF5QHQ.js.map → chunk-LYMKN3NY.js.map} +1 -1
- package/{chunk-3JEPUE5U.mjs → chunk-M55DCHAX.mjs} +2 -2
- package/{chunk-VY32PQ6N.mjs → chunk-MA3OJUIL.mjs} +3 -3
- package/{chunk-X75FMMME.mjs → chunk-MKOOSP3M.mjs} +3 -3
- package/{chunk-I6VK7V52.js → chunk-MUWMASP4.js} +3 -3
- package/{chunk-I6VK7V52.js.map → chunk-MUWMASP4.js.map} +1 -1
- package/{chunk-NZHD5YZR.mjs → chunk-NL4534LH.mjs} +2 -2
- package/{chunk-ODQJMPB6.js → chunk-NUCMI4CP.js} +7 -7
- package/{chunk-ODQJMPB6.js.map → chunk-NUCMI4CP.js.map} +1 -1
- package/{chunk-PDC3VSBR.mjs → chunk-NWVKFMW3.mjs} +2 -2
- package/{chunk-BWGMEQWK.js → chunk-OFRRRK4N.js} +5 -5
- package/{chunk-BWGMEQWK.js.map → chunk-OFRRRK4N.js.map} +1 -1
- package/{chunk-YI3OGSQO.mjs → chunk-OI7CIW4X.mjs} +8 -8
- package/{chunk-7CZZZXYP.mjs → chunk-OJEDITOA.mjs} +3 -3
- package/{chunk-MBLSRGZ2.js → chunk-OMQVDSR6.js} +4 -4
- package/{chunk-MBLSRGZ2.js.map → chunk-OMQVDSR6.js.map} +1 -1
- package/{chunk-LQGPZAFC.mjs → chunk-OVHPXYDN.mjs} +2 -2
- package/{chunk-YFATYRLC.js → chunk-P6ZPREB6.js} +9 -9
- package/{chunk-YFATYRLC.js.map → chunk-P6ZPREB6.js.map} +1 -1
- package/{chunk-4WSPRI6W.js → chunk-PHE5ID6D.js} +8 -8
- package/{chunk-4WSPRI6W.js.map → chunk-PHE5ID6D.js.map} +1 -1
- package/{chunk-7SJRI4U2.js → chunk-PSPAJNNB.js} +1 -1
- package/{chunk-7SJRI4U2.js.map → chunk-PSPAJNNB.js.map} +1 -1
- package/{chunk-ZHMIO6GX.js → chunk-Q5QVXAFP.js} +14 -14
- package/{chunk-ZHMIO6GX.js.map → chunk-Q5QVXAFP.js.map} +1 -1
- package/{chunk-WE4IYC5U.mjs → chunk-QBO4YAYA.mjs} +4 -4
- package/{chunk-ZUHAZXLZ.mjs → chunk-QJKRCNUX.mjs} +2 -2
- package/{chunk-LUHSKITP.mjs → chunk-QJLNEVAE.mjs} +3 -3
- package/{chunk-AMABAT5T.js → chunk-QW2TXVH4.js} +5 -5
- package/{chunk-AMABAT5T.js.map → chunk-QW2TXVH4.js.map} +1 -1
- package/{chunk-DUDH3MCS.mjs → chunk-SCU2RG4I.mjs} +2 -2
- package/{chunk-3MBQAHIV.mjs → chunk-SQK67X4D.mjs} +3 -3
- package/{chunk-KH4J42Q6.mjs → chunk-SSL4EXAQ.mjs} +2 -2
- package/{chunk-5OBKA7BC.mjs → chunk-SX4LQFOF.mjs} +1 -1
- package/{chunk-E2XRCWJR.mjs → chunk-TXGL3AHG.mjs} +2 -2
- package/{chunk-QXM5SPL7.js → chunk-UF2IGF36.js} +6 -6
- package/{chunk-QXM5SPL7.js.map → chunk-UF2IGF36.js.map} +1 -1
- package/chunk-VOED37ZV.mjs +41 -0
- package/chunk-VOED37ZV.mjs.map +1 -0
- package/chunk-WGNLM36B.js +42 -0
- package/chunk-WGNLM36B.js.map +1 -0
- package/{chunk-MA4JO45Z.mjs → chunk-WXRT742N.mjs} +4 -4
- package/{chunk-EA4VCT6D.js → chunk-X2Z3YEDV.js} +9 -9
- package/{chunk-EA4VCT6D.js.map → chunk-X2Z3YEDV.js.map} +1 -1
- package/{chunk-JWKM3SCQ.js → chunk-XCFEBPRG.js} +10 -10
- package/{chunk-JWKM3SCQ.js.map → chunk-XCFEBPRG.js.map} +1 -1
- package/{chunk-DWKZ4CLC.js → chunk-XDCB6C5S.js} +9 -9
- package/{chunk-DWKZ4CLC.js.map → chunk-XDCB6C5S.js.map} +1 -1
- package/{chunk-4R6IG6RY.js → chunk-XIHKXTB2.js} +8 -8
- package/{chunk-4R6IG6RY.js.map → chunk-XIHKXTB2.js.map} +1 -1
- package/{chunk-QX2O73EX.js → chunk-XP4SPI7B.js} +13 -13
- package/{chunk-QX2O73EX.js.map → chunk-XP4SPI7B.js.map} +1 -1
- package/{chunk-NIKJHOAI.js → chunk-XWFQVYPB.js} +11 -11
- package/{chunk-NIKJHOAI.js.map → chunk-XWFQVYPB.js.map} +1 -1
- package/{chunk-D3TFBFUF.js → chunk-YYEQYAZF.js} +5 -5
- package/{chunk-D3TFBFUF.js.map → chunk-YYEQYAZF.js.map} +1 -1
- package/{chunk-MH2NPJBV.mjs → chunk-ZEZK2FJ4.mjs} +4 -36
- package/chunk-ZEZK2FJ4.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/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-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-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-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-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-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-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-time-input.js +11 -10
- package/components/form/hook-time-input.js.map +1 -1
- package/components/form/hook-time-input.mjs +7 -6
- 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 +7 -6
- package/components/form/time-input.js.map +1 -1
- package/components/form/time-input.mjs +6 -5
- package/components/ui/accordion.js +4 -4
- package/components/ui/accordion.mjs +1 -1
- package/components/ui/alert-dialog.js +11 -11
- package/components/ui/alert-dialog.mjs +3 -3
- 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.js +3 -3
- package/components/ui/badge.mjs +2 -2
- 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.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.mjs +1 -1
- package/components/ui/carousel.js +10 -10
- package/components/ui/carousel.mjs +3 -3
- 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.mjs +1 -1
- package/components/ui/copy-button.js +6 -6
- package/components/ui/copy-button.mjs +2 -2
- package/components/ui/dialog.js +3 -3
- package/components/ui/dialog.mjs +2 -2
- package/components/ui/drawer.js +7 -7
- package/components/ui/drawer.mjs +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.mjs +4 -4
- package/components/ui/form.js +6 -6
- package/components/ui/form.mjs +2 -2
- package/components/ui/hover-card.js +2 -2
- package/components/ui/hover-card.mjs +1 -1
- package/components/ui/input-otp.js +5 -5
- package/components/ui/input-otp.mjs +1 -1
- package/components/ui/input.js +3 -3
- package/components/ui/input.mjs +2 -2
- 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.mjs +1 -1
- package/components/ui/navigation-menu.js +8 -8
- package/components/ui/navigation-menu.mjs +1 -1
- package/components/ui/pagination.js +11 -11
- package/components/ui/pagination.mjs +3 -3
- 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.mjs +1 -1
- package/components/ui/radio-group.js +3 -3
- package/components/ui/radio-group.mjs +1 -1
- package/components/ui/resizable.js +3 -3
- package/components/ui/resizable.mjs +1 -1
- package/components/ui/scroll-area.js +3 -3
- package/components/ui/scroll-area.mjs +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.js +3 -3
- package/components/ui/sheet.mjs +2 -2
- 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.mjs +1 -1
- 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.mjs +1 -1
- package/components/ui/table.js +9 -9
- package/components/ui/table.mjs +1 -1
- package/components/ui/tabs.js +4 -4
- package/components/ui/tabs.mjs +1 -1
- package/components/ui/textarea.js +3 -3
- package/components/ui/textarea.mjs +2 -2
- 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.js +5 -5
- package/components/ui/toggle-group.mjs +2 -2
- 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/components/widgets/dialog-manager/index.js +1 -1
- package/components/widgets/dialog-manager/index.js.map +1 -1
- package/components/widgets/dialog-manager/index.mjs +1 -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.js +19 -19
- package/layouts/sidebar1/index.js.map +1 -1
- package/layouts/sidebar1/index.mjs +17 -17
- 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.mjs +4 -4
- 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 +1 -1
- package/utils/date.d.mts +4 -0
- package/utils/date.d.ts +4 -0
- package/utils/date.js +12 -0
- package/utils/date.js.map +1 -0
- package/utils/date.mjs +11 -0
- package/utils/date.mjs.map +1 -0
- package/utils/time.d.mts +7 -0
- package/utils/time.d.ts +7 -0
- package/utils/time.js +14 -0
- package/utils/time.js.map +1 -0
- package/utils/time.mjs +13 -0
- package/utils/time.mjs.map +1 -0
- package/utils/ui.d.mts +5 -0
- package/utils/ui.d.ts +5 -0
- package/utils/ui.js +10 -0
- package/utils/ui.js.map +1 -0
- package/utils/ui.mjs +9 -0
- package/utils/ui.mjs.map +1 -0
- package/chunk-5BZZ2POS.js +0 -90
- package/chunk-5BZZ2POS.js.map +0 -1
- package/chunk-MH2NPJBV.mjs.map +0 -1
- /package/{chunk-QOEYYBTN.mjs.map → chunk-3DG54EVO.mjs.map} +0 -0
- /package/{chunk-4R3RFMUA.mjs.map → chunk-43V6CNEG.mjs.map} +0 -0
- /package/{chunk-MZI4KLJI.mjs.map → chunk-47TKC7DB.mjs.map} +0 -0
- /package/{chunk-3YYGE3VK.mjs.map → chunk-7MDWTJEP.mjs.map} +0 -0
- /package/{chunk-HOXCVLLZ.mjs.map → chunk-ABZ4SF2K.mjs.map} +0 -0
- /package/{chunk-FZJD242Q.mjs.map → chunk-AJFINSLK.mjs.map} +0 -0
- /package/{chunk-SNRIGFVN.mjs.map → chunk-BE4D3M5Q.mjs.map} +0 -0
- /package/{chunk-RPY3K7KJ.mjs.map → chunk-C736G6RV.mjs.map} +0 -0
- /package/{chunk-CJWH2Z74.mjs.map → chunk-D6WUNCBI.mjs.map} +0 -0
- /package/{chunk-EUN4GDKY.mjs.map → chunk-DOM2D2R7.mjs.map} +0 -0
- /package/{chunk-DYCHNDBD.mjs.map → chunk-DPGUIXSL.mjs.map} +0 -0
- /package/{chunk-WX6CB76L.mjs.map → chunk-F57PDM2P.mjs.map} +0 -0
- /package/{chunk-A2MIZ2VR.mjs.map → chunk-FJGZ3SDA.mjs.map} +0 -0
- /package/{chunk-CRMSEPRI.mjs.map → chunk-GVZX7FQQ.mjs.map} +0 -0
- /package/{chunk-DAMOXG2O.mjs.map → chunk-HBKXMTBF.mjs.map} +0 -0
- /package/{chunk-3EG2FEBB.mjs.map → chunk-HR7QORF3.mjs.map} +0 -0
- /package/{chunk-SVOYV633.mjs.map → chunk-IHNDGZWX.mjs.map} +0 -0
- /package/{chunk-DZYGP2N5.mjs.map → chunk-IYZWOHGP.mjs.map} +0 -0
- /package/{chunk-3NTWG7HE.mjs.map → chunk-J4FPBR7A.mjs.map} +0 -0
- /package/{chunk-TVJGKFMZ.mjs.map → chunk-JVMY3LCD.mjs.map} +0 -0
- /package/{chunk-MFJGIGWT.mjs.map → chunk-K6S2HW6A.mjs.map} +0 -0
- /package/{chunk-5FGLRP7F.mjs.map → chunk-KGUUDFJE.mjs.map} +0 -0
- /package/{chunk-3JEPUE5U.mjs.map → chunk-M55DCHAX.mjs.map} +0 -0
- /package/{chunk-VY32PQ6N.mjs.map → chunk-MA3OJUIL.mjs.map} +0 -0
- /package/{chunk-X75FMMME.mjs.map → chunk-MKOOSP3M.mjs.map} +0 -0
- /package/{chunk-NZHD5YZR.mjs.map → chunk-NL4534LH.mjs.map} +0 -0
- /package/{chunk-PDC3VSBR.mjs.map → chunk-NWVKFMW3.mjs.map} +0 -0
- /package/{chunk-YI3OGSQO.mjs.map → chunk-OI7CIW4X.mjs.map} +0 -0
- /package/{chunk-7CZZZXYP.mjs.map → chunk-OJEDITOA.mjs.map} +0 -0
- /package/{chunk-LQGPZAFC.mjs.map → chunk-OVHPXYDN.mjs.map} +0 -0
- /package/{chunk-WE4IYC5U.mjs.map → chunk-QBO4YAYA.mjs.map} +0 -0
- /package/{chunk-ZUHAZXLZ.mjs.map → chunk-QJKRCNUX.mjs.map} +0 -0
- /package/{chunk-LUHSKITP.mjs.map → chunk-QJLNEVAE.mjs.map} +0 -0
- /package/{chunk-DUDH3MCS.mjs.map → chunk-SCU2RG4I.mjs.map} +0 -0
- /package/{chunk-3MBQAHIV.mjs.map → chunk-SQK67X4D.mjs.map} +0 -0
- /package/{chunk-KH4J42Q6.mjs.map → chunk-SSL4EXAQ.mjs.map} +0 -0
- /package/{chunk-5OBKA7BC.mjs.map → chunk-SX4LQFOF.mjs.map} +0 -0
- /package/{chunk-E2XRCWJR.mjs.map → chunk-TXGL3AHG.mjs.map} +0 -0
- /package/{chunk-MA4JO45Z.mjs.map → chunk-WXRT742N.mjs.map} +0 -0
package/layouts/simple/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkOMQVDSR6js = require('../../chunk-OMQVDSR6.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('../../chunk-
|
|
8
|
+
var _chunkP6ZPREB6js = require('../../chunk-P6ZPREB6.js');
|
|
9
|
+
require('../../chunk-754FOR4K.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkPSPAJNNBjs = require('../../chunk-PSPAJNNB.js');
|
|
13
13
|
require('../../chunk-2NMEKWO5.js');
|
|
14
14
|
|
|
15
15
|
// layouts/simple/index.tsx
|
|
@@ -38,7 +38,7 @@ function SimpleLayout(props) {
|
|
|
38
38
|
return /* @__PURE__ */ _react2.default.createElement("div", { className: "flex flex-col min-h-screen" }, /* @__PURE__ */ _react2.default.createElement(
|
|
39
39
|
"header",
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
41
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
42
42
|
"px-4 py-2 flex items-center justify-between bg-gray-100 border-b border-gray-300",
|
|
43
43
|
(_e = classNames == null ? void 0 : classNames.header) == null ? void 0 : _e.wrapper
|
|
44
44
|
)
|
|
@@ -50,7 +50,7 @@ function SimpleLayout(props) {
|
|
|
50
50
|
onClick: () => {
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
), logo && /* @__PURE__ */ _react2.default.createElement("div", { className:
|
|
53
|
+
), logo && /* @__PURE__ */ _react2.default.createElement("div", { className: _chunkPSPAJNNBjs.cn.call(void 0, "_logo") }, /* @__PURE__ */ _react2.default.createElement(LinkComponent, { to: (_f = logo.link) != null ? _f : "/", href: (_g = logo.link) != null ? _g : "/" }, /* @__PURE__ */ _react2.default.createElement("img", { src: logo.src, alt: "Logo", className: _chunkPSPAJNNBjs.cn.call(void 0, "h-10", (_h = classNames == null ? void 0 : classNames.header) == null ? void 0 : _h.logo) }))), /* @__PURE__ */ _react2.default.createElement("nav", { className: _chunkPSPAJNNBjs.cn.call(void 0, "flex space-x-4 items-center", (_j = (_i = classNames == null ? void 0 : classNames.header) == null ? void 0 : _i.left) == null ? void 0 : _j.nav) }, leftMenus.map(
|
|
54
54
|
(item) => {
|
|
55
55
|
var _a2, _b2, _c2, _d2;
|
|
56
56
|
return item.link ? /* @__PURE__ */ _react2.default.createElement(
|
|
@@ -59,7 +59,7 @@ function SimpleLayout(props) {
|
|
|
59
59
|
key: item.label,
|
|
60
60
|
to: item.link,
|
|
61
61
|
href: item.link,
|
|
62
|
-
className:
|
|
62
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
63
63
|
"text-left text-secondary visited:text-secondary hover:text-primary cursor-pointer no-underline",
|
|
64
64
|
(_b2 = (_a2 = classNames == null ? void 0 : classNames.header) == null ? void 0 : _a2.left) == null ? void 0 : _b2.link,
|
|
65
65
|
item.className,
|
|
@@ -72,7 +72,7 @@ function SimpleLayout(props) {
|
|
|
72
72
|
{
|
|
73
73
|
key: item.label,
|
|
74
74
|
onClick: item.action,
|
|
75
|
-
className:
|
|
75
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
76
76
|
"text-left text-secondary visited:text-secondary hover:text-primary cursor-pointer no-underline",
|
|
77
77
|
(_d2 = (_c2 = classNames == null ? void 0 : classNames.header) == null ? void 0 : _c2.left) == null ? void 0 : _d2.link,
|
|
78
78
|
item.className,
|
|
@@ -83,7 +83,7 @@ function SimpleLayout(props) {
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
))),
|
|
86
|
-
/* @__PURE__ */ _react2.default.createElement("nav", { className:
|
|
86
|
+
/* @__PURE__ */ _react2.default.createElement("nav", { className: _chunkPSPAJNNBjs.cn.call(void 0, "hidden md:flex space-x-4 items-center", (_l = (_k = classNames == null ? void 0 : classNames.header) == null ? void 0 : _k.right) == null ? void 0 : _l.nav) }, rightMenus.map(
|
|
87
87
|
(item) => {
|
|
88
88
|
var _a2, _b2, _c2, _d2;
|
|
89
89
|
return item.link ? /* @__PURE__ */ _react2.default.createElement(
|
|
@@ -92,7 +92,7 @@ function SimpleLayout(props) {
|
|
|
92
92
|
key: item.label,
|
|
93
93
|
to: item.link,
|
|
94
94
|
href: item.link,
|
|
95
|
-
className:
|
|
95
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
96
96
|
"text-left text-secondary visited:text-secondary hover:text-primary cursor-pointer no-underline",
|
|
97
97
|
(_b2 = (_a2 = classNames == null ? void 0 : classNames.header) == null ? void 0 : _a2.right) == null ? void 0 : _b2.link,
|
|
98
98
|
item.className
|
|
@@ -104,7 +104,7 @@ function SimpleLayout(props) {
|
|
|
104
104
|
{
|
|
105
105
|
key: item.label,
|
|
106
106
|
onClick: item.action,
|
|
107
|
-
className:
|
|
107
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
108
108
|
"text-left text-secondary visited:text-secondary hover:text-primary cursor-pointer no-underline",
|
|
109
109
|
(_d2 = (_c2 = classNames == null ? void 0 : classNames.header) == null ? void 0 : _c2.right) == null ? void 0 : _d2.link,
|
|
110
110
|
item.className
|
|
@@ -113,17 +113,17 @@ function SimpleLayout(props) {
|
|
|
113
113
|
item.label
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
|
-
), userMenuSections.length > 0 && /* @__PURE__ */ _react2.default.createElement(
|
|
116
|
+
), userMenuSections.length > 0 && /* @__PURE__ */ _react2.default.createElement(_chunkP6ZPREB6js.UserMenus, { sections: userMenuSections, trigger: user == null ? void 0 : user.trigger, aslink })),
|
|
117
117
|
/* @__PURE__ */ _react2.default.createElement("button", { onClick: toggleMobileMenu, className: "md:hidden p-2 text-gray-700 hover:text-primary cursor-pointer" }, /* @__PURE__ */ _react2.default.createElement(_lucidereact.Menu, { className: "" }))
|
|
118
|
-
), isMobile && mobileMenuOpen && /* @__PURE__ */ _react2.default.createElement("div", { className: "w-full" }, /* @__PURE__ */ _react2.default.createElement(
|
|
118
|
+
), isMobile && mobileMenuOpen && /* @__PURE__ */ _react2.default.createElement("div", { className: "w-full" }, /* @__PURE__ */ _react2.default.createElement(_chunkOMQVDSR6js.MobileMenu, { sections: userMenuSections, aslink, onClick: toggleMobileMenu })), /* @__PURE__ */ _react2.default.createElement("main", { className: _chunkPSPAJNNBjs.cn.call(void 0, "p-4 flex flex-col flex-1", classNames == null ? void 0 : classNames.content) }, !loading && /* @__PURE__ */ _react2.default.createElement("div", { className: "flex items-center justify-center h-full" }, children), /* @__PURE__ */ _react2.default.createElement("div", { className: _chunkPSPAJNNBjs.cn.call(void 0, "flex-1", (_m = classNames == null ? void 0 : classNames.content) == null ? void 0 : _m.bottom) })), footer && /* @__PURE__ */ _react2.default.createElement(
|
|
119
119
|
"footer",
|
|
120
120
|
{
|
|
121
|
-
className:
|
|
121
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
122
122
|
"px-4 py-4 bg-gray-100 border-t border-gray-300 text-sm text-gray-600",
|
|
123
123
|
(_n = classNames == null ? void 0 : classNames.footer) == null ? void 0 : _n.wrapper
|
|
124
124
|
)
|
|
125
125
|
},
|
|
126
|
-
/* @__PURE__ */ _react2.default.createElement("nav", { className:
|
|
126
|
+
/* @__PURE__ */ _react2.default.createElement("nav", { className: _chunkPSPAJNNBjs.cn.call(void 0, "flex flex-wrap justify-center space-x-4", (_o = classNames == null ? void 0 : classNames.footer) == null ? void 0 : _o.nav) }, footerMenus.map(
|
|
127
127
|
(item) => {
|
|
128
128
|
var _a2, _b2;
|
|
129
129
|
return item.link ? /* @__PURE__ */ _react2.default.createElement(
|
|
@@ -132,7 +132,7 @@ function SimpleLayout(props) {
|
|
|
132
132
|
key: item.label,
|
|
133
133
|
to: item.link,
|
|
134
134
|
href: item.link,
|
|
135
|
-
className:
|
|
135
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
136
136
|
"text-secondary hover:text-primary cursor-pointer no-underline",
|
|
137
137
|
(_a2 = classNames == null ? void 0 : classNames.footer) == null ? void 0 : _a2.link,
|
|
138
138
|
item.className
|
|
@@ -144,7 +144,7 @@ function SimpleLayout(props) {
|
|
|
144
144
|
{
|
|
145
145
|
key: item.label,
|
|
146
146
|
onClick: item.action,
|
|
147
|
-
className:
|
|
147
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
148
148
|
"text-secondary hover:text-primary cursor-pointer no-underline",
|
|
149
149
|
(_b2 = classNames == null ? void 0 : classNames.footer) == null ? void 0 : _b2.link,
|
|
150
150
|
item.className
|
package/layouts/simple/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
MobileMenu
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-OVHPXYDN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
UserMenus
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-MA3OJUIL.mjs";
|
|
8
|
+
import "../../chunk-QJKRCNUX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
cn
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-KGUUDFJE.mjs";
|
|
12
12
|
import "../../chunk-YOSPWY5K.mjs";
|
|
13
13
|
|
|
14
14
|
// layouts/simple/index.tsx
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
5
|
+
var _chunkOMQVDSR6js = require('../../chunk-OMQVDSR6.js');
|
|
6
|
+
require('../../chunk-PSPAJNNB.js');
|
|
7
7
|
require('../../chunk-2NMEKWO5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.MobileMenu =
|
|
10
|
+
exports.MobileMenu = _chunkOMQVDSR6js.MobileMenu;
|
|
11
11
|
//# sourceMappingURL=mobile-menu.js.map
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
5
|
+
var _chunkP6ZPREB6js = require('../../chunk-P6ZPREB6.js');
|
|
6
|
+
require('../../chunk-754FOR4K.js');
|
|
7
|
+
require('../../chunk-PSPAJNNB.js');
|
|
8
8
|
require('../../chunk-2NMEKWO5.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.UserMenus =
|
|
11
|
+
exports.UserMenus = _chunkP6ZPREB6js.UserMenus;
|
|
12
12
|
//# sourceMappingURL=user-menu.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
UserMenus
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-MA3OJUIL.mjs";
|
|
5
|
+
import "../../chunk-QJKRCNUX.mjs";
|
|
6
|
+
import "../../chunk-KGUUDFJE.mjs";
|
|
7
7
|
import "../../chunk-YOSPWY5K.mjs";
|
|
8
8
|
export {
|
|
9
9
|
UserMenus
|
package/package.json
CHANGED
package/utils/date.d.mts
ADDED
package/utils/date.d.ts
ADDED
package/utils/date.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkIYVLRZJ4js = require('../chunk-IYVLRZJ4.js');
|
|
7
|
+
require('../chunk-2NMEKWO5.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.isEqualDate = _chunkIYVLRZJ4js.isEqualDate; exports.isEqualDates = _chunkIYVLRZJ4js.isEqualDates;
|
|
12
|
+
//# sourceMappingURL=date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/utils/date.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,yGAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/utils/date.js"}
|
package/utils/date.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/utils/time.d.mts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare function convertToHours(value: string): string;
|
|
2
|
+
declare function convertToHours(value: string, asNumber: true): number;
|
|
3
|
+
declare function convertToHours(value: string, asNumber: false): string;
|
|
4
|
+
declare function convertFromHours(value: string): string;
|
|
5
|
+
declare function convertToWholeFromHours(value: string): string;
|
|
6
|
+
|
|
7
|
+
export { convertFromHours, convertToHours, convertToWholeFromHours };
|
package/utils/time.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare function convertToHours(value: string): string;
|
|
2
|
+
declare function convertToHours(value: string, asNumber: true): number;
|
|
3
|
+
declare function convertToHours(value: string, asNumber: false): string;
|
|
4
|
+
declare function convertFromHours(value: string): string;
|
|
5
|
+
declare function convertToWholeFromHours(value: string): string;
|
|
6
|
+
|
|
7
|
+
export { convertFromHours, convertToHours, convertToWholeFromHours };
|
package/utils/time.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunk4SYFVOM2js = require('../chunk-4SYFVOM2.js');
|
|
8
|
+
require('../chunk-2NMEKWO5.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.convertFromHours = _chunk4SYFVOM2js.convertFromHours; exports.convertToHours = _chunk4SYFVOM2js.convertToHours; exports.convertToWholeFromHours = _chunk4SYFVOM2js.convertToWholeFromHours;
|
|
14
|
+
//# sourceMappingURL=time.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/utils/time.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,mMAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/utils/time.js"}
|
package/utils/time.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
convertFromHours,
|
|
4
|
+
convertToHours,
|
|
5
|
+
convertToWholeFromHours
|
|
6
|
+
} from "../chunk-ZEZK2FJ4.mjs";
|
|
7
|
+
import "../chunk-YOSPWY5K.mjs";
|
|
8
|
+
export {
|
|
9
|
+
convertFromHours,
|
|
10
|
+
convertToHours,
|
|
11
|
+
convertToWholeFromHours
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=time.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/utils/ui.d.mts
ADDED
package/utils/ui.d.ts
ADDED
package/utils/ui.js
ADDED
package/utils/ui.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/utils/ui.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,iCAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/utils/ui.js"}
|
package/utils/ui.mjs
ADDED
package/utils/ui.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/chunk-5BZZ2POS.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3
|
-
|
|
4
|
-
var _chunkODQJMPB6js = require('./chunk-ODQJMPB6.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunk2NMEKWO5js = require('./chunk-2NMEKWO5.js');
|
|
10
|
-
|
|
11
|
-
// components/form/time-input.tsx
|
|
12
|
-
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
13
|
-
|
|
14
|
-
// utils/time.ts
|
|
15
|
-
function convertToHours(value, asNumber = false) {
|
|
16
|
-
let result;
|
|
17
|
-
if (!value) {
|
|
18
|
-
result = 0;
|
|
19
|
-
} else if (!isNaN(Number(value))) {
|
|
20
|
-
result = parseFloat(value);
|
|
21
|
-
} else if (value.toLowerCase().endsWith("h")) {
|
|
22
|
-
result = parseFloat(value.slice(0, -1));
|
|
23
|
-
} else if (value.toLowerCase().endsWith("m")) {
|
|
24
|
-
const minutes = parseFloat(value.slice(0, -1));
|
|
25
|
-
result = minutes / 60;
|
|
26
|
-
} else if (value.toLowerCase().endsWith("s")) {
|
|
27
|
-
const seconds = parseFloat(value.slice(0, -1));
|
|
28
|
-
result = seconds / 3600;
|
|
29
|
-
} else {
|
|
30
|
-
result = 0;
|
|
31
|
-
}
|
|
32
|
-
return asNumber ? result : String(Number(result.toFixed(17)));
|
|
33
|
-
}
|
|
34
|
-
function convertFromHours(value) {
|
|
35
|
-
const hours = parseFloat(value);
|
|
36
|
-
if (isNaN(hours) || hours === 0) {
|
|
37
|
-
return "0";
|
|
38
|
-
}
|
|
39
|
-
if (hours >= 1) {
|
|
40
|
-
return `${hours}h`;
|
|
41
|
-
}
|
|
42
|
-
const minutes = hours * 60;
|
|
43
|
-
if (minutes >= 1) {
|
|
44
|
-
return `${Math.round(minutes)}m`;
|
|
45
|
-
}
|
|
46
|
-
const seconds = hours * 3600;
|
|
47
|
-
return `${Math.round(seconds)}s`;
|
|
48
|
-
}
|
|
49
|
-
function convertToWholeFromHours(value) {
|
|
50
|
-
const hours = parseFloat(value);
|
|
51
|
-
if (isNaN(hours) || hours === 0) {
|
|
52
|
-
return "0";
|
|
53
|
-
}
|
|
54
|
-
const minutes = hours * 60;
|
|
55
|
-
if (Math.abs(minutes - Math.round(minutes)) < 1e-10) {
|
|
56
|
-
return `${Math.round(minutes)}m`;
|
|
57
|
-
}
|
|
58
|
-
const seconds = hours * 3600;
|
|
59
|
-
if (Math.abs(seconds - Math.round(seconds)) < 1e-10) {
|
|
60
|
-
return `${Math.round(seconds)}s`;
|
|
61
|
-
}
|
|
62
|
-
return `${hours}h`;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// components/form/time-input.tsx
|
|
66
|
-
function FormTimeInput(_a) {
|
|
67
|
-
var _b = _a, { value: parentValue = 0, onChange } = _b, rest = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["value", "onChange"]);
|
|
68
|
-
const [value, setValue] = _react.useState.call(void 0, String(parentValue));
|
|
69
|
-
_react.useEffect.call(void 0, () => {
|
|
70
|
-
setValue(String(parentValue != null ? parentValue : ""));
|
|
71
|
-
}, [parentValue]);
|
|
72
|
-
const handleChange = (e) => {
|
|
73
|
-
setValue(e.target.value);
|
|
74
|
-
};
|
|
75
|
-
const handleBlur = (e) => {
|
|
76
|
-
const newValue = convertToHours(e.target.value);
|
|
77
|
-
const numericValue = Number(newValue);
|
|
78
|
-
setValue(newValue);
|
|
79
|
-
onChange == null ? void 0 : onChange(numericValue);
|
|
80
|
-
};
|
|
81
|
-
const displayText = convertFromHours(value);
|
|
82
|
-
const displayWhole = convertToWholeFromHours(value);
|
|
83
|
-
const title = displayText !== displayWhole ? `${displayText} (${displayWhole})` : displayText;
|
|
84
|
-
return /* @__PURE__ */ _react2.default.createElement(_chunkODQJMPB6js.FormTextInput, _chunk2NMEKWO5js.__spreadProps.call(void 0, _chunk2NMEKWO5js.__spreadValues.call(void 0, {}, rest), { value, onChange: handleChange, onBlur: handleBlur, title }));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
exports.FormTimeInput = FormTimeInput;
|
|
90
|
-
//# sourceMappingURL=chunk-5BZZ2POS.js.map
|
package/chunk-5BZZ2POS.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-5BZZ2POS.js","../components/form/time-input.tsx","../utils/time.ts"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;ACRA,4EAAwD;ADUxD;AACA;AERO,SAAS,cAAA,CAAe,KAAA,EAAe,SAAA,EAAoB,KAAA,EAAwB;AACxF,EAAA,IAAI,MAAA;AAEJ,EAAA,GAAA,CAAI,CAAC,KAAA,EAAO;AACV,IAAA,OAAA,EAAS,CAAA;AAAA,EACX,EAAA,KAAA,GAAA,CAES,CAAC,KAAA,CAAM,MAAA,CAAO,KAAK,CAAC,CAAA,EAAG;AAC9B,IAAA,OAAA,EAAS,UAAA,CAAW,KAAK,CAAA;AAAA,EAC3B,EAAA,KAAA,GAAA,CAAW,KAAA,CAAM,WAAA,CAAY,CAAA,CAAE,QAAA,CAAS,GAAG,CAAA,EAAG;AAE5C,IAAA,OAAA,EAAS,UAAA,CAAW,KAAA,CAAM,KAAA,CAAM,CAAA,EAAG,CAAA,CAAE,CAAC,CAAA;AAAA,EACxC,EAAA,KAAA,GAAA,CAAW,KAAA,CAAM,WAAA,CAAY,CAAA,CAAE,QAAA,CAAS,GAAG,CAAA,EAAG;AAE5C,IAAA,MAAM,QAAA,EAAU,UAAA,CAAW,KAAA,CAAM,KAAA,CAAM,CAAA,EAAG,CAAA,CAAE,CAAC,CAAA;AAC7C,IAAA,OAAA,EAAS,QAAA,EAAU,EAAA;AAAA,EACrB,EAAA,KAAA,GAAA,CAAW,KAAA,CAAM,WAAA,CAAY,CAAA,CAAE,QAAA,CAAS,GAAG,CAAA,EAAG;AAE5C,IAAA,MAAM,QAAA,EAAU,UAAA,CAAW,KAAA,CAAM,KAAA,CAAM,CAAA,EAAG,CAAA,CAAE,CAAC,CAAA;AAC7C,IAAA,OAAA,EAAS,QAAA,EAAU,IAAA;AAAA,EACrB,EAAA,KAAO;AAEL,IAAA,OAAA,EAAS,CAAA;AAAA,EACX;AAGA,EAAA,OAAO,SAAA,EAAW,OAAA,EAAS,MAAA,CAAO,MAAA,CAAO,MAAA,CAAO,OAAA,CAAQ,EAAE,CAAC,CAAC,CAAA;AAC9D;AAEO,SAAS,gBAAA,CAAiB,KAAA,EAAuB;AACtD,EAAA,MAAM,MAAA,EAAQ,UAAA,CAAW,KAAK,CAAA;AAE9B,EAAA,GAAA,CAAI,KAAA,CAAM,KAAK,EAAA,GAAK,MAAA,IAAU,CAAA,EAAG;AAC/B,IAAA,OAAO,GAAA;AAAA,EACT;AAEA,EAAA,GAAA,CAAI,MAAA,GAAS,CAAA,EAAG;AACd,IAAA,OAAO,CAAA,EAAA;AACT,EAAA;AAEM,EAAA;AACF,EAAA;AACK,IAAA;AACT,EAAA;AAEM,EAAA;AACI,EAAA;AACZ;AAEgB;AACR,EAAA;AAEI,EAAA;AACD,IAAA;AACT,EAAA;AAGM,EAAA;AACG,EAAA;AACA,IAAA;AACT,EAAA;AAGM,EAAA;AACG,EAAA;AACA,IAAA;AACT,EAAA;AAGU,EAAA;AACZ;AFZY;AACA;ACpDI;AAAc,EAAA;AACrB,EAAA;AAEG,EAAA;AACR,IAAA;AACE,EAAA;AAEE,EAAA;AACJ,IAAA;AACF,EAAA;AAEM,EAAA;AACE,IAAA;AACA,IAAA;AAEN,IAAA;AACA,IAAA;AACF,EAAA;AAEM,EAAA;AACA,EAAA;AACA,EAAA;AAEC,EAAA;AACT;ADiDY;AACA;AACA;AACA","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-5BZZ2POS.js","sourcesContent":[null,"\"use client\";\nimport React, { useState, useEffect, ChangeEvent } from 'react';\nimport { FormTextInput } from './text-input';\nimport type { FormTextInputProps } from './text-input';\nimport { convertToHours, convertFromHours, convertToWholeFromHours } from '../../utils/time';\n\nexport interface FormTimeInputProps extends Omit<FormTextInputProps, 'onChange' | 'value'> {\n value?: number;\n onChange?: (value: number) => void;\n}\n\nexport function FormTimeInput({ value: parentValue = 0, onChange, ...rest }: FormTimeInputProps) {\n const [value, setValue] = useState<string>(String(parentValue));\n\n useEffect(() => {\n setValue(String(parentValue ?? ''));\n }, [parentValue]);\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>) => {\n setValue(e.target.value);\n };\n\n const handleBlur = (e: ChangeEvent<HTMLInputElement>) => {\n const newValue = convertToHours(e.target.value);\n const numericValue = Number(newValue);\n\n setValue(newValue);\n onChange?.(numericValue);\n };\n\n const displayText = convertFromHours(value);\n const displayWhole = convertToWholeFromHours(value);\n const title = displayText !== displayWhole ? `${displayText} (${displayWhole})` : displayText;\n\n return <FormTextInput {...rest} value={value} onChange={handleChange} onBlur={handleBlur} title={title} />;\n}\n","\"use client\";\nexport function convertToHours(value: string): string;\nexport function convertToHours(value: string, asNumber: true): number;\nexport function convertToHours(value: string, asNumber: false): string;\nexport function convertToHours(value: string, asNumber: boolean = false): string | number {\n let result: number;\n\n if (!value) {\n result = 0;\n }\n // Check if the input is a valid number without any suffix (e.g., \"1.5\")\n else if (!isNaN(Number(value))) {\n result = parseFloat(value);\n } else if (value.toLowerCase().endsWith('h')) {\n // Check if it ends with 'h' or 'H' (hours)\n result = parseFloat(value.slice(0, -1));\n } else if (value.toLowerCase().endsWith('m')) {\n // Check if it ends with 'm' or 'M' (minutes)\n const minutes = parseFloat(value.slice(0, -1));\n result = minutes / 60; // Convert minutes to hours\n } else if (value.toLowerCase().endsWith('s')) {\n // Check if it ends with 's' or 'S' (seconds)\n const seconds = parseFloat(value.slice(0, -1));\n result = seconds / 3600; // Convert seconds to hours\n } else {\n // For any other format, return 0\n result = 0;\n }\n\n // Return the result either as a number or string based on the 'asNumber' option\n return asNumber ? result : String(Number(result.toFixed(17))); // Convert to number to remove trailing zeros\n}\n\nexport function convertFromHours(value: string): string {\n const hours = parseFloat(value);\n\n if (isNaN(hours) || hours === 0) {\n return '0';\n }\n\n if (hours >= 1) {\n return `${hours}h`;\n }\n\n const minutes = hours * 60;\n if (minutes >= 1) {\n return `${Math.round(minutes)}m`;\n }\n\n const seconds = hours * 3600;\n return `${Math.round(seconds)}s`;\n}\n\nexport function convertToWholeFromHours(value: string): string {\n const hours = parseFloat(value);\n\n if (isNaN(hours) || hours === 0) {\n return '0';\n }\n\n // Convert to minutes if the value represents a whole number of minutes\n const minutes = hours * 60;\n if (Math.abs(minutes - Math.round(minutes)) < 1e-10) {\n return `${Math.round(minutes)}m`;\n }\n\n // Convert to seconds if the value represents a whole number of seconds\n const seconds = hours * 3600;\n if (Math.abs(seconds - Math.round(seconds)) < 1e-10) {\n return `${Math.round(seconds)}s`;\n }\n\n // Otherwise, return the value with the 'h' suffix for hours\n return `${hours}h`;\n}\n"]}
|
package/chunk-MH2NPJBV.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../components/form/time-input.tsx","../utils/time.ts"],"sourcesContent":["\"use client\";\nimport React, { useState, useEffect, ChangeEvent } from 'react';\nimport { FormTextInput } from './text-input';\nimport type { FormTextInputProps } from './text-input';\nimport { convertToHours, convertFromHours, convertToWholeFromHours } from '../../utils/time';\n\nexport interface FormTimeInputProps extends Omit<FormTextInputProps, 'onChange' | 'value'> {\n value?: number;\n onChange?: (value: number) => void;\n}\n\nexport function FormTimeInput({ value: parentValue = 0, onChange, ...rest }: FormTimeInputProps) {\n const [value, setValue] = useState<string>(String(parentValue));\n\n useEffect(() => {\n setValue(String(parentValue ?? ''));\n }, [parentValue]);\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>) => {\n setValue(e.target.value);\n };\n\n const handleBlur = (e: ChangeEvent<HTMLInputElement>) => {\n const newValue = convertToHours(e.target.value);\n const numericValue = Number(newValue);\n\n setValue(newValue);\n onChange?.(numericValue);\n };\n\n const displayText = convertFromHours(value);\n const displayWhole = convertToWholeFromHours(value);\n const title = displayText !== displayWhole ? `${displayText} (${displayWhole})` : displayText;\n\n return <FormTextInput {...rest} value={value} onChange={handleChange} onBlur={handleBlur} title={title} />;\n}\n","\"use client\";\nexport function convertToHours(value: string): string;\nexport function convertToHours(value: string, asNumber: true): number;\nexport function convertToHours(value: string, asNumber: false): string;\nexport function convertToHours(value: string, asNumber: boolean = false): string | number {\n let result: number;\n\n if (!value) {\n result = 0;\n }\n // Check if the input is a valid number without any suffix (e.g., \"1.5\")\n else if (!isNaN(Number(value))) {\n result = parseFloat(value);\n } else if (value.toLowerCase().endsWith('h')) {\n // Check if it ends with 'h' or 'H' (hours)\n result = parseFloat(value.slice(0, -1));\n } else if (value.toLowerCase().endsWith('m')) {\n // Check if it ends with 'm' or 'M' (minutes)\n const minutes = parseFloat(value.slice(0, -1));\n result = minutes / 60; // Convert minutes to hours\n } else if (value.toLowerCase().endsWith('s')) {\n // Check if it ends with 's' or 'S' (seconds)\n const seconds = parseFloat(value.slice(0, -1));\n result = seconds / 3600; // Convert seconds to hours\n } else {\n // For any other format, return 0\n result = 0;\n }\n\n // Return the result either as a number or string based on the 'asNumber' option\n return asNumber ? result : String(Number(result.toFixed(17))); // Convert to number to remove trailing zeros\n}\n\nexport function convertFromHours(value: string): string {\n const hours = parseFloat(value);\n\n if (isNaN(hours) || hours === 0) {\n return '0';\n }\n\n if (hours >= 1) {\n return `${hours}h`;\n }\n\n const minutes = hours * 60;\n if (minutes >= 1) {\n return `${Math.round(minutes)}m`;\n }\n\n const seconds = hours * 3600;\n return `${Math.round(seconds)}s`;\n}\n\nexport function convertToWholeFromHours(value: string): string {\n const hours = parseFloat(value);\n\n if (isNaN(hours) || hours === 0) {\n return '0';\n }\n\n // Convert to minutes if the value represents a whole number of minutes\n const minutes = hours * 60;\n if (Math.abs(minutes - Math.round(minutes)) < 1e-10) {\n return `${Math.round(minutes)}m`;\n }\n\n // Convert to seconds if the value represents a whole number of seconds\n const seconds = hours * 3600;\n if (Math.abs(seconds - Math.round(seconds)) < 1e-10) {\n return `${Math.round(seconds)}s`;\n }\n\n // Otherwise, return the value with the 'h' suffix for hours\n return `${hours}h`;\n}\n"],"mappings":";;;;;;;;;;AACA,OAAO,SAAS,UAAU,iBAA8B;;;ACGjD,SAAS,eAAe,OAAe,WAAoB,OAAwB;AACxF,MAAI;AAEJ,MAAI,CAAC,OAAO;AACV,aAAS;AAAA,EACX,WAES,CAAC,MAAM,OAAO,KAAK,CAAC,GAAG;AAC9B,aAAS,WAAW,KAAK;AAAA,EAC3B,WAAW,MAAM,YAAY,EAAE,SAAS,GAAG,GAAG;AAE5C,aAAS,WAAW,MAAM,MAAM,GAAG,EAAE,CAAC;AAAA,EACxC,WAAW,MAAM,YAAY,EAAE,SAAS,GAAG,GAAG;AAE5C,UAAM,UAAU,WAAW,MAAM,MAAM,GAAG,EAAE,CAAC;AAC7C,aAAS,UAAU;AAAA,EACrB,WAAW,MAAM,YAAY,EAAE,SAAS,GAAG,GAAG;AAE5C,UAAM,UAAU,WAAW,MAAM,MAAM,GAAG,EAAE,CAAC;AAC7C,aAAS,UAAU;AAAA,EACrB,OAAO;AAEL,aAAS;AAAA,EACX;AAGA,SAAO,WAAW,SAAS,OAAO,OAAO,OAAO,QAAQ,EAAE,CAAC,CAAC;AAC9D;AAEO,SAAS,iBAAiB,OAAuB;AACtD,QAAM,QAAQ,WAAW,KAAK;AAE9B,MAAI,MAAM,KAAK,KAAK,UAAU,GAAG;AAC/B,WAAO;AAAA,EACT;AAEA,MAAI,SAAS,GAAG;AACd,WAAO,GAAG,KAAK;AAAA,EACjB;AAEA,QAAM,UAAU,QAAQ;AACxB,MAAI,WAAW,GAAG;AAChB,WAAO,GAAG,KAAK,MAAM,OAAO,CAAC;AAAA,EAC/B;AAEA,QAAM,UAAU,QAAQ;AACxB,SAAO,GAAG,KAAK,MAAM,OAAO,CAAC;AAC/B;AAEO,SAAS,wBAAwB,OAAuB;AAC7D,QAAM,QAAQ,WAAW,KAAK;AAE9B,MAAI,MAAM,KAAK,KAAK,UAAU,GAAG;AAC/B,WAAO;AAAA,EACT;AAGA,QAAM,UAAU,QAAQ;AACxB,MAAI,KAAK,IAAI,UAAU,KAAK,MAAM,OAAO,CAAC,IAAI,OAAO;AACnD,WAAO,GAAG,KAAK,MAAM,OAAO,CAAC;AAAA,EAC/B;AAGA,QAAM,UAAU,QAAQ;AACxB,MAAI,KAAK,IAAI,UAAU,KAAK,MAAM,OAAO,CAAC,IAAI,OAAO;AACnD,WAAO,GAAG,KAAK,MAAM,OAAO,CAAC;AAAA,EAC/B;AAGA,SAAO,GAAG,KAAK;AACjB;;;AD/DO,SAAS,cAAc,IAAmE;AAAnE,eAAE,SAAO,cAAc,GAAG,SAXxD,IAW8B,IAAuC,iBAAvC,IAAuC,CAArC,SAAwB;AACtD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAiB,OAAO,WAAW,CAAC;AAE9D,YAAU,MAAM;AACd,aAAS,OAAO,oCAAe,EAAE,CAAC;AAAA,EACpC,GAAG,CAAC,WAAW,CAAC;AAEhB,QAAM,eAAe,CAAC,MAAqC;AACzD,aAAS,EAAE,OAAO,KAAK;AAAA,EACzB;AAEA,QAAM,aAAa,CAAC,MAAqC;AACvD,UAAM,WAAW,eAAe,EAAE,OAAO,KAAK;AAC9C,UAAM,eAAe,OAAO,QAAQ;AAEpC,aAAS,QAAQ;AACjB,yCAAW;AAAA,EACb;AAEA,QAAM,cAAc,iBAAiB,KAAK;AAC1C,QAAM,eAAe,wBAAwB,KAAK;AAClD,QAAM,QAAQ,gBAAgB,eAAe,GAAG,WAAW,KAAK,YAAY,MAAM;AAElF,SAAO,oCAAC,gDAAkB,OAAlB,EAAwB,OAAc,UAAU,cAAc,QAAQ,YAAY,QAAc;AAC1G;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|