@egose/shadcn-theme 0.0.61 → 0.1.0
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-2SUYO2SG.js +170 -0
- package/chunk-2SUYO2SG.js.map +1 -0
- package/{chunk-DPGUIXSL.mjs → chunk-2UC2IM3Q.mjs} +4 -4
- package/chunk-2UC2IM3Q.mjs.map +1 -0
- package/chunk-2UTAR6ZA.js +27 -0
- package/chunk-2UTAR6ZA.js.map +1 -0
- package/{chunk-4O25L26A.js → chunk-2YMMYND2.js} +54 -27
- package/chunk-2YMMYND2.js.map +1 -0
- package/{chunk-FJGZ3SDA.mjs → chunk-3GHC4JQU.mjs} +2 -2
- package/{chunk-FJGZ3SDA.mjs.map → chunk-3GHC4JQU.mjs.map} +1 -1
- package/{chunk-WGNLM36B.js → chunk-4A5EDTXU.js} +3 -3
- package/{chunk-WGNLM36B.js.map → chunk-4A5EDTXU.js.map} +1 -1
- package/chunk-4ETXRZKO.js +101 -0
- package/chunk-4ETXRZKO.js.map +1 -0
- package/{chunk-AJFINSLK.mjs → chunk-4I6SLZWT.mjs} +2 -3
- package/chunk-4I6SLZWT.mjs.map +1 -0
- package/{chunk-WCMH464B.js → chunk-4JDCEDAG.js} +12 -12
- package/chunk-4JDCEDAG.js.map +1 -0
- package/chunk-5TXFHYQ5.js +38 -0
- package/chunk-5TXFHYQ5.js.map +1 -0
- package/chunk-6C4NHVD6.js +19 -0
- package/chunk-6C4NHVD6.js.map +1 -0
- package/{chunk-J4KEZVR5.js → chunk-6KVESKTY.js} +5 -5
- package/chunk-6KVESKTY.js.map +1 -0
- package/{chunk-SQK67X4D.mjs → chunk-7BYWDRRI.mjs} +74 -24
- package/chunk-7BYWDRRI.mjs.map +1 -0
- package/chunk-7MDE2NEO.mjs +95 -0
- package/chunk-7MDE2NEO.mjs.map +1 -0
- package/chunk-7PX7GVOR.mjs +100 -0
- package/chunk-7PX7GVOR.mjs.map +1 -0
- package/{chunk-KNNX4FAH.js → chunk-CKGMFUU2.js} +14 -6
- package/chunk-CKGMFUU2.js.map +1 -0
- package/chunk-CSL3CTEN.mjs +69 -0
- package/chunk-CSL3CTEN.mjs.map +1 -0
- package/chunk-ECYGZFEF.js +154 -0
- package/chunk-ECYGZFEF.js.map +1 -0
- package/{chunk-K6S2HW6A.mjs → chunk-EEVAP4RB.mjs} +3 -3
- package/chunk-EEVAP4RB.mjs.map +1 -0
- package/chunk-EGG4SBHV.js +132 -0
- package/chunk-EGG4SBHV.js.map +1 -0
- package/chunk-F2QWMBUB.mjs +39 -0
- package/chunk-F2QWMBUB.mjs.map +1 -0
- package/{chunk-5WZCVX6I.js → chunk-FCE22MQI.js} +9 -9
- package/{chunk-5WZCVX6I.js.map → chunk-FCE22MQI.js.map} +1 -1
- package/{chunk-QJLNEVAE.mjs → chunk-GAJQQPUC.mjs} +3 -3
- package/chunk-GBNJFKPB.js +51 -0
- package/chunk-GBNJFKPB.js.map +1 -0
- package/{chunk-AREM2MQQ.js → chunk-GV62APQ6.js} +2 -2
- package/chunk-GV62APQ6.js.map +1 -0
- package/{chunk-CSDFVUNP.js → chunk-HC7SLR6P.js} +9 -9
- package/chunk-HC7SLR6P.js.map +1 -0
- package/chunk-HKZRXGJ7.mjs +158 -0
- package/chunk-HKZRXGJ7.mjs.map +1 -0
- package/chunk-HNN3WAQE.mjs +153 -0
- package/chunk-HNN3WAQE.mjs.map +1 -0
- package/{chunk-HR7QORF3.mjs → chunk-HTEQHRTK.mjs} +37 -28
- package/{chunk-HR7QORF3.mjs.map → chunk-HTEQHRTK.mjs.map} +1 -1
- package/chunk-HUEFOSXC.mjs +169 -0
- package/chunk-HUEFOSXC.mjs.map +1 -0
- package/chunk-ICOZ5BK7.mjs +110 -0
- package/chunk-ICOZ5BK7.mjs.map +1 -0
- package/{chunk-GGOYFF4M.mjs → chunk-JBIYG5WI.mjs} +4 -4
- package/chunk-JBIYG5WI.mjs.map +1 -0
- package/chunk-JZXOJAMQ.js +96 -0
- package/chunk-JZXOJAMQ.js.map +1 -0
- package/{chunk-HMEHDD5N.js → chunk-K4JVHEI2.js} +19 -9
- package/chunk-K4JVHEI2.js.map +1 -0
- package/{chunk-OFRRRK4N.js → chunk-KB6BX6LA.js} +75 -25
- package/chunk-KB6BX6LA.js.map +1 -0
- package/chunk-KO4TIQLS.mjs +26 -0
- package/chunk-KO4TIQLS.mjs.map +1 -0
- package/{chunk-3DG54EVO.mjs → chunk-KRFQNEGY.mjs} +6 -6
- package/chunk-KRFQNEGY.mjs.map +1 -0
- package/{chunk-F57PDM2P.mjs → chunk-KUD4Z2MZ.mjs} +10 -5
- package/chunk-KUD4Z2MZ.mjs.map +1 -0
- package/{chunk-J4FPBR7A.mjs → chunk-LQEGZ3FQ.mjs} +4 -4
- package/chunk-LQEGZ3FQ.mjs.map +1 -0
- package/chunk-LVXIGNFJ.mjs +37 -0
- package/chunk-LVXIGNFJ.mjs.map +1 -0
- package/{chunk-NUCMI4CP.js → chunk-MAL7MDPS.js} +5 -5
- package/chunk-MAL7MDPS.js.map +1 -0
- package/chunk-MJT6B7OJ.js +159 -0
- package/chunk-MJT6B7OJ.js.map +1 -0
- package/chunk-MM5OJOOR.mjs +31 -0
- package/chunk-MM5OJOOR.mjs.map +1 -0
- package/{chunk-YYEQYAZF.js → chunk-MWBTSWPB.js} +3 -3
- package/{chunk-YYEQYAZF.js.map → chunk-MWBTSWPB.js.map} +1 -1
- package/chunk-N4GWGP3Z.mjs +131 -0
- package/chunk-N4GWGP3Z.mjs.map +1 -0
- package/{chunk-VOED37ZV.mjs → chunk-NHDANPMI.mjs} +2 -2
- package/chunk-NMYVYLKF.js +39 -0
- package/chunk-NMYVYLKF.js.map +1 -0
- package/{chunk-P6ZPREB6.js → chunk-OUVM5NST.js} +6 -6
- package/{chunk-P6ZPREB6.js.map → chunk-OUVM5NST.js.map} +1 -1
- package/{chunk-BWKIS24H.js → chunk-P3KR7ZM6.js} +6 -6
- package/{chunk-BWKIS24H.js.map → chunk-P3KR7ZM6.js.map} +1 -1
- package/{chunk-QBO4YAYA.mjs → chunk-PH6LAV32.mjs} +4 -4
- package/chunk-PH6LAV32.mjs.map +1 -0
- package/chunk-QCHBJMD6.mjs +38 -0
- package/chunk-QCHBJMD6.mjs.map +1 -0
- package/{chunk-IYZWOHGP.mjs → chunk-QEMZCGBS.mjs} +4 -4
- package/chunk-QEMZCGBS.mjs.map +1 -0
- package/chunk-QF6PFV6M.mjs +58 -0
- package/chunk-QF6PFV6M.mjs.map +1 -0
- package/chunk-QHCOMBHI.js +70 -0
- package/chunk-QHCOMBHI.js.map +1 -0
- package/chunk-QMLV5G5Z.js +187 -0
- package/chunk-QMLV5G5Z.js.map +1 -0
- package/{chunk-C736G6RV.mjs → chunk-RATSSU7L.mjs} +6 -6
- package/chunk-RATSSU7L.mjs.map +1 -0
- package/{chunk-UF2IGF36.js → chunk-RDDKZFT3.js} +5 -5
- package/chunk-RDDKZFT3.js.map +1 -0
- package/{chunk-XCFEBPRG.js → chunk-RGID3F2T.js} +8 -8
- package/{chunk-XCFEBPRG.js.map → chunk-RGID3F2T.js.map} +1 -1
- package/{chunk-MA3OJUIL.mjs → chunk-RIBB6GXJ.mjs} +2 -2
- package/chunk-RJG7QLDD.js +52 -0
- package/chunk-RJG7QLDD.js.map +1 -0
- package/chunk-RPF753T2.mjs +247 -0
- package/chunk-RPF753T2.mjs.map +1 -0
- package/chunk-UFRPUC7K.js +59 -0
- package/chunk-UFRPUC7K.js.map +1 -0
- package/chunk-UKPBHVOT.js +248 -0
- package/chunk-UKPBHVOT.js.map +1 -0
- package/chunk-UQJ4A4H2.mjs +624 -0
- package/chunk-UQJ4A4H2.mjs.map +1 -0
- package/chunk-US2CUADK.mjs +186 -0
- package/chunk-US2CUADK.mjs.map +1 -0
- package/{chunk-Q5QVXAFP.js → chunk-WHQINNUB.js} +20 -15
- package/chunk-WHQINNUB.js.map +1 -0
- package/{chunk-HBKXMTBF.mjs → chunk-WIISPZZE.mjs} +54 -27
- package/chunk-WIISPZZE.mjs.map +1 -0
- package/chunk-WKQDHQAS.js +111 -0
- package/chunk-WKQDHQAS.js.map +1 -0
- package/chunk-WREXRSAA.js +625 -0
- package/chunk-WREXRSAA.js.map +1 -0
- package/{chunk-PVKN7E6W.js → chunk-XGBDPMXL.js} +11 -11
- package/{chunk-PVKN7E6W.js.map → chunk-XGBDPMXL.js.map} +1 -1
- package/chunk-XMRJIUYX.mjs +55 -0
- package/chunk-XMRJIUYX.mjs.map +1 -0
- package/chunk-XVWILFYQ.mjs +50 -0
- package/chunk-XVWILFYQ.mjs.map +1 -0
- package/chunk-YJR5JBXS.js +56 -0
- package/chunk-YJR5JBXS.js.map +1 -0
- package/{chunk-EIAS7WVI.mjs → chunk-YOQJO7NI.mjs} +6 -6
- package/chunk-YQENFZOY.mjs +51 -0
- package/chunk-YQENFZOY.mjs.map +1 -0
- package/{chunk-7QMZ5MU4.js → chunk-Z342XYFY.js} +37 -28
- package/chunk-Z342XYFY.js.map +1 -0
- package/components/form/checkbox.js +4 -4
- package/components/form/checkbox.mjs +3 -3
- package/components/form/date-picker.js +7 -7
- package/components/form/date-picker.mjs +6 -6
- package/components/form/date-range-picker.js +9 -9
- package/components/form/date-range-picker.js.map +1 -1
- package/components/form/date-range-picker.mjs +6 -6
- package/components/form/date-range-picker.mjs.map +1 -1
- package/components/form/hook-checkbox.js +4 -4
- package/components/form/hook-checkbox.mjs +3 -3
- package/components/form/hook-date-picker.js +7 -7
- package/components/form/hook-date-picker.mjs +6 -6
- package/components/form/hook-native-select.js +3 -3
- package/components/form/hook-native-select.mjs +2 -2
- package/components/form/hook-searchable-select.js +11 -8
- package/components/form/hook-searchable-select.js.map +1 -1
- package/components/form/hook-searchable-select.mjs +10 -7
- package/components/form/hook-searchable-select.mjs.map +1 -1
- package/components/form/hook-select.js +4 -4
- package/components/form/hook-select.mjs +3 -3
- package/components/form/hook-text-input.js +4 -4
- package/components/form/hook-text-input.mjs +3 -3
- package/components/form/hook-textarea.js +4 -4
- package/components/form/hook-textarea.mjs +3 -3
- package/components/form/hook-time-input.js +5 -5
- package/components/form/hook-time-input.mjs +4 -4
- package/components/form/native-select.js +3 -3
- package/components/form/native-select.mjs +2 -2
- package/components/form/searchable-select.js +11 -8
- package/components/form/searchable-select.js.map +1 -1
- package/components/form/searchable-select.mjs +10 -7
- package/components/form/select.js +4 -4
- package/components/form/select.mjs +3 -3
- package/components/form/text-input.js +4 -4
- package/components/form/text-input.mjs +3 -3
- package/components/form/textarea.js +4 -4
- package/components/form/textarea.mjs +3 -3
- package/components/form/time-input.js +5 -5
- package/components/form/time-input.mjs +4 -4
- package/components/ui/accordion.d.mts +5 -5
- package/components/ui/accordion.d.ts +5 -5
- package/components/ui/accordion.js +43 -21
- package/components/ui/accordion.js.map +1 -1
- package/components/ui/accordion.mjs +41 -19
- package/components/ui/accordion.mjs.map +1 -1
- package/components/ui/alert-dialog.d.mts +19 -19
- package/components/ui/alert-dialog.d.ts +19 -19
- package/components/ui/alert-dialog.js +122 -52
- package/components/ui/alert-dialog.js.map +1 -1
- package/components/ui/alert-dialog.mjs +120 -50
- package/components/ui/alert-dialog.mjs.map +1 -1
- package/components/ui/alert.d.mts +10 -5
- package/components/ui/alert.d.ts +10 -5
- package/components/ui/alert.js +4 -2
- package/components/ui/alert.js.map +1 -1
- package/components/ui/alert.mjs +3 -1
- package/components/ui/aspect-ratio.d.mts +3 -3
- package/components/ui/aspect-ratio.d.ts +3 -3
- package/components/ui/aspect-ratio.js +10 -4
- package/components/ui/aspect-ratio.js.map +1 -1
- package/components/ui/aspect-ratio.mjs +9 -3
- package/components/ui/aspect-ratio.mjs.map +1 -1
- package/components/ui/avatar.d.mts +10 -5
- package/components/ui/avatar.d.ts +10 -5
- package/components/ui/avatar.js +8 -2
- package/components/ui/avatar.js.map +1 -1
- package/components/ui/avatar.mjs +7 -1
- package/components/ui/badge.d.mts +9 -2
- package/components/ui/badge.d.ts +9 -2
- package/components/ui/badge.js +2 -2
- package/components/ui/badge.mjs +1 -1
- package/components/ui/basic-alert.d.mts +1 -0
- package/components/ui/basic-alert.d.ts +1 -0
- package/components/ui/basic-alert.js +2 -2
- package/components/ui/basic-alert.mjs +1 -1
- package/components/ui/breadcrumb.d.mts +8 -16
- package/components/ui/breadcrumb.d.ts +8 -16
- package/components/ui/breadcrumb.js +2 -2
- package/components/ui/breadcrumb.mjs +1 -1
- package/components/ui/button-group.d.mts +16 -0
- package/components/ui/button-group.d.ts +16 -0
- package/components/ui/button-group.js +94 -0
- package/components/ui/button-group.js.map +1 -0
- package/components/ui/button-group.mjs +93 -0
- package/components/ui/button-group.mjs.map +1 -0
- package/components/ui/button.d.mts +8 -2
- package/components/ui/button.d.ts +8 -2
- package/components/ui/button.js +3 -3
- package/components/ui/button.mjs +2 -2
- package/components/ui/calendar.d.mts +11 -8
- package/components/ui/calendar.d.ts +11 -8
- package/components/ui/calendar.js +6 -4
- package/components/ui/calendar.js.map +1 -1
- package/components/ui/calendar.mjs +7 -5
- package/components/ui/card.d.mts +10 -7
- package/components/ui/card.d.ts +10 -7
- package/components/ui/card.js +73 -47
- package/components/ui/card.js.map +1 -1
- package/components/ui/card.mjs +65 -39
- package/components/ui/card.mjs.map +1 -1
- package/components/ui/carousel.d.mts +17 -7
- package/components/ui/carousel.d.ts +17 -7
- package/components/ui/carousel.js +162 -158
- package/components/ui/carousel.js.map +1 -1
- package/components/ui/carousel.mjs +163 -159
- package/components/ui/carousel.mjs.map +1 -1
- package/components/ui/checkbox.d.mts +2 -2
- package/components/ui/checkbox.d.ts +2 -2
- package/components/ui/checkbox.js +2 -2
- package/components/ui/checkbox.mjs +1 -1
- package/components/ui/collapsible.d.mts +5 -5
- package/components/ui/collapsible.d.ts +5 -5
- package/components/ui/collapsible.js +2 -2
- package/components/ui/collapsible.mjs +1 -1
- package/components/ui/combobox.d.mts +26 -0
- package/components/ui/combobox.d.ts +26 -0
- package/components/ui/combobox.js +273 -0
- package/components/ui/combobox.js.map +1 -0
- package/components/ui/combobox.mjs +272 -0
- package/components/ui/combobox.mjs.map +1 -0
- package/components/ui/command.d.mts +17 -78
- package/components/ui/command.d.ts +17 -78
- package/components/ui/command.js +8 -3
- package/components/ui/command.js.map +1 -1
- package/components/ui/command.mjs +7 -2
- package/components/ui/context-menu.d.mts +26 -22
- package/components/ui/context-menu.d.ts +26 -22
- package/components/ui/context-menu.js +153 -75
- package/components/ui/context-menu.js.map +1 -1
- package/components/ui/context-menu.mjs +151 -73
- package/components/ui/context-menu.mjs.map +1 -1
- package/components/ui/copy-button.js +3 -3
- package/components/ui/copy-button.js.map +1 -1
- package/components/ui/copy-button.mjs +1 -1
- package/components/ui/copy-button.mjs.map +1 -1
- package/components/ui/dialog.d.mts +15 -19
- package/components/ui/dialog.d.ts +15 -19
- package/components/ui/dialog.js +4 -2
- package/components/ui/dialog.js.map +1 -1
- package/components/ui/dialog.mjs +3 -1
- package/components/ui/direction.d.mts +9 -0
- package/components/ui/direction.d.ts +9 -0
- package/components/ui/direction.js +20 -0
- package/components/ui/direction.js.map +1 -0
- package/components/ui/direction.mjs +19 -0
- package/components/ui/direction.mjs.map +1 -0
- package/components/ui/drawer.js +1 -1
- package/components/ui/drawer.js.map +1 -1
- package/components/ui/drawer.mjs +1 -1
- package/components/ui/drawer.mjs.map +1 -1
- package/components/ui/dropdown-menu.d.mts +24 -22
- package/components/ui/dropdown-menu.d.ts +24 -22
- package/components/ui/dropdown-menu.js +2 -2
- package/components/ui/dropdown-menu.mjs +1 -1
- package/components/ui/empty.d.mts +15 -0
- package/components/ui/empty.d.ts +15 -0
- package/components/ui/empty.js +102 -0
- package/components/ui/empty.js.map +1 -0
- package/components/ui/empty.mjs +101 -0
- package/components/ui/empty.mjs.map +1 -0
- package/components/ui/extension/file-input.js +4 -4
- package/components/ui/extension/file-input.mjs +3 -3
- package/components/ui/extension/multi-select.js +13 -8
- package/components/ui/extension/multi-select.js.map +1 -1
- package/components/ui/extension/multi-select.mjs +8 -3
- package/components/ui/extension/multi-select.mjs.map +1 -1
- package/components/ui/field.d.mts +29 -0
- package/components/ui/field.d.ts +29 -0
- package/components/ui/field.js +220 -0
- package/components/ui/field.js.map +1 -0
- package/components/ui/field.mjs +219 -0
- package/components/ui/field.mjs.map +1 -0
- package/components/ui/hover-card.d.mts +4 -4
- package/components/ui/hover-card.d.ts +4 -4
- package/components/ui/hover-card.js +25 -12
- package/components/ui/hover-card.js.map +1 -1
- package/components/ui/hover-card.mjs +24 -11
- package/components/ui/hover-card.mjs.map +1 -1
- package/components/ui/input-group.d.mts +19 -0
- package/components/ui/input-group.d.ts +19 -0
- package/components/ui/input-group.js +25 -0
- package/components/ui/input-group.js.map +1 -0
- package/components/ui/input-group.mjs +24 -0
- package/components/ui/input-otp.d.mts +7 -31
- package/components/ui/input-otp.d.ts +7 -31
- package/components/ui/input-otp.js +58 -37
- package/components/ui/input-otp.js.map +1 -1
- package/components/ui/input-otp.mjs +59 -38
- package/components/ui/input-otp.mjs.map +1 -1
- package/components/ui/input.js +2 -2
- package/components/ui/input.mjs +1 -1
- package/components/ui/item.d.mts +27 -0
- package/components/ui/item.d.ts +27 -0
- package/components/ui/item.js +187 -0
- package/components/ui/item.js.map +1 -0
- package/components/ui/item.mjs +186 -0
- package/components/ui/item.mjs.map +1 -0
- package/components/ui/kbd.d.mts +6 -0
- package/components/ui/kbd.d.ts +6 -0
- package/components/ui/kbd.js +33 -0
- package/components/ui/kbd.js.map +1 -0
- package/components/ui/kbd.mjs +32 -0
- package/components/ui/kbd.mjs.map +1 -0
- package/components/ui/label.d.mts +3 -4
- package/components/ui/label.d.ts +3 -4
- package/components/ui/label.js +2 -2
- package/components/ui/label.mjs +1 -1
- package/components/ui/menubar.d.mts +25 -23
- package/components/ui/menubar.d.ts +25 -23
- package/components/ui/menubar.js +162 -104
- package/components/ui/menubar.js.map +1 -1
- package/components/ui/menubar.mjs +157 -99
- package/components/ui/menubar.mjs.map +1 -1
- package/components/ui/native-select.d.mts +10 -0
- package/components/ui/native-select.d.ts +10 -0
- package/components/ui/native-select.js +53 -0
- package/components/ui/native-select.js.map +1 -0
- package/components/ui/native-select.mjs +52 -0
- package/components/ui/native-select.mjs.map +1 -0
- package/components/ui/navigation-menu.d.mts +13 -10
- package/components/ui/navigation-menu.d.ts +13 -10
- package/components/ui/navigation-menu.js +80 -47
- package/components/ui/navigation-menu.js.map +1 -1
- package/components/ui/navigation-menu.mjs +75 -42
- package/components/ui/navigation-menu.mjs.map +1 -1
- package/components/ui/pagination.d.mts +14 -24
- package/components/ui/pagination.d.ts +14 -24
- package/components/ui/pagination.js +45 -44
- package/components/ui/pagination.js.map +1 -1
- package/components/ui/pagination.mjs +47 -46
- package/components/ui/pagination.mjs.map +1 -1
- package/components/ui/popover.d.mts +9 -6
- package/components/ui/popover.d.ts +9 -6
- package/components/ui/popover.js +8 -2
- package/components/ui/popover.js.map +1 -1
- package/components/ui/popover.mjs +7 -1
- package/components/ui/progress.d.mts +2 -2
- package/components/ui/progress.d.ts +2 -2
- package/components/ui/progress.js +9 -9
- package/components/ui/progress.js.map +1 -1
- package/components/ui/progress.mjs +7 -7
- package/components/ui/progress.mjs.map +1 -1
- package/components/ui/radio-group.d.mts +3 -3
- package/components/ui/radio-group.d.ts +3 -3
- package/components/ui/radio-group.js +17 -14
- package/components/ui/radio-group.js.map +1 -1
- package/components/ui/radio-group.mjs +16 -13
- package/components/ui/radio-group.mjs.map +1 -1
- package/components/ui/resizable.d.mts +4 -20
- package/components/ui/resizable.d.ts +4 -20
- package/components/ui/resizable.js +15 -12
- package/components/ui/resizable.js.map +1 -1
- package/components/ui/resizable.mjs +15 -12
- package/components/ui/resizable.mjs.map +1 -1
- package/components/ui/scroll-area.d.mts +3 -3
- package/components/ui/scroll-area.d.ts +3 -3
- package/components/ui/scroll-area.js +31 -15
- package/components/ui/scroll-area.js.map +1 -1
- package/components/ui/scroll-area.mjs +30 -14
- package/components/ui/scroll-area.mjs.map +1 -1
- package/components/ui/select.d.mts +13 -11
- package/components/ui/select.d.ts +13 -11
- package/components/ui/select.js +2 -2
- package/components/ui/select.mjs +1 -1
- package/components/ui/separator.d.mts +2 -2
- package/components/ui/separator.d.ts +2 -2
- package/components/ui/separator.js +2 -2
- package/components/ui/separator.mjs +1 -1
- package/components/ui/sheet.d.mts +13 -22
- package/components/ui/sheet.d.ts +13 -22
- package/components/ui/sheet.js +4 -6
- package/components/ui/sheet.js.map +1 -1
- package/components/ui/sheet.mjs +3 -5
- package/components/ui/sidebar.d.mts +46 -41
- package/components/ui/sidebar.d.ts +46 -41
- package/components/ui/sidebar.js +9 -9
- package/components/ui/sidebar.mjs +8 -8
- package/components/ui/skeleton.d.mts +2 -2
- package/components/ui/skeleton.d.ts +2 -2
- package/components/ui/skeleton.js +2 -2
- package/components/ui/skeleton.mjs +1 -1
- package/components/ui/slider.d.mts +2 -2
- package/components/ui/slider.d.ts +2 -2
- package/components/ui/slider.js +52 -10
- package/components/ui/slider.js.map +1 -1
- package/components/ui/slider.mjs +51 -9
- package/components/ui/slider.mjs.map +1 -1
- package/components/ui/sonner.d.mts +1 -2
- package/components/ui/sonner.d.ts +1 -2
- package/components/ui/sonner.js +16 -6
- package/components/ui/sonner.js.map +1 -1
- package/components/ui/sonner.mjs +15 -5
- package/components/ui/sonner.mjs.map +1 -1
- package/components/ui/spinner.d.mts +7 -2
- package/components/ui/spinner.d.ts +7 -2
- package/components/ui/spinner.js +2 -2
- package/components/ui/spinner.mjs +1 -1
- package/components/ui/switch.d.mts +4 -2
- package/components/ui/switch.d.ts +4 -2
- package/components/ui/switch.js +19 -16
- package/components/ui/switch.js.map +1 -1
- package/components/ui/switch.mjs +19 -16
- package/components/ui/switch.mjs.map +1 -1
- package/components/ui/table.d.mts +8 -8
- package/components/ui/table.d.ts +8 -8
- package/components/ui/table.js +59 -77
- package/components/ui/table.js.map +1 -1
- package/components/ui/table.mjs +59 -77
- package/components/ui/table.mjs.map +1 -1
- package/components/ui/tabs.d.mts +11 -6
- package/components/ui/tabs.d.ts +11 -6
- package/components/ui/tabs.js +55 -28
- package/components/ui/tabs.js.map +1 -1
- package/components/ui/tabs.mjs +52 -25
- package/components/ui/tabs.mjs.map +1 -1
- package/components/ui/textarea.js +2 -2
- package/components/ui/textarea.mjs +1 -1
- package/components/ui/toggle-group.d.mts +8 -5
- package/components/ui/toggle-group.d.ts +8 -5
- package/components/ui/toggle-group.js +54 -20
- package/components/ui/toggle-group.js.map +1 -1
- package/components/ui/toggle-group.mjs +51 -17
- package/components/ui/toggle-group.mjs.map +1 -1
- package/components/ui/toggle.d.mts +7 -3
- package/components/ui/toggle.d.ts +7 -3
- package/components/ui/toggle.js +2 -2
- package/components/ui/toggle.mjs +1 -1
- package/components/ui/tooltip.d.mts +5 -5
- package/components/ui/tooltip.d.ts +5 -5
- package/components/ui/tooltip.js +2 -2
- package/components/ui/tooltip.mjs +1 -1
- 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.d.mts +5 -3
- package/layouts/sidebar1/app-sidebar.d.ts +5 -3
- package/layouts/sidebar1/app-sidebar.js +17 -16
- package/layouts/sidebar1/app-sidebar.js.map +1 -1
- package/layouts/sidebar1/app-sidebar.mjs +16 -15
- package/layouts/sidebar1/context-switcher.d.mts +1 -0
- package/layouts/sidebar1/context-switcher.d.ts +1 -0
- package/layouts/sidebar1/context-switcher.js +11 -11
- package/layouts/sidebar1/context-switcher.mjs +10 -10
- package/layouts/sidebar1/index.d.mts +5 -3
- package/layouts/sidebar1/index.d.ts +5 -3
- package/layouts/sidebar1/index.js +21 -19
- package/layouts/sidebar1/index.js.map +1 -1
- package/layouts/sidebar1/index.mjs +22 -20
- package/layouts/sidebar1/index.mjs.map +1 -1
- package/layouts/sidebar1/{LinkWrapper.js → link-placeholder.js} +2 -2
- package/layouts/sidebar1/link-placeholder.js.map +1 -0
- package/layouts/sidebar1/{LinkWrapper.mjs → link-placeholder.mjs} +2 -2
- package/layouts/sidebar1/link-placeholder.mjs.map +1 -0
- package/layouts/sidebar1/nav-menus.js +11 -11
- package/layouts/sidebar1/nav-menus.mjs +10 -10
- package/layouts/sidebar1/nav-user.js +13 -12
- package/layouts/sidebar1/nav-user.js.map +1 -1
- package/layouts/sidebar1/nav-user.mjs +12 -11
- package/layouts/sidebar1/theme-switcher.d.mts +5 -0
- package/layouts/sidebar1/theme-switcher.d.ts +5 -0
- package/layouts/sidebar1/theme-switcher.js +10 -0
- package/layouts/sidebar1/theme-switcher.js.map +1 -0
- package/layouts/sidebar1/theme-switcher.mjs +9 -0
- package/layouts/simple/index.js +4 -4
- package/layouts/simple/index.mjs +4 -4
- package/layouts/simple/user-menu.js +3 -3
- package/layouts/simple/user-menu.mjs +2 -2
- package/package.json +6 -31
- package/chunk-23MJMEQC.js +0 -33
- package/chunk-23MJMEQC.js.map +0 -1
- package/chunk-2DJW7DN4.js +0 -124
- package/chunk-2DJW7DN4.js.map +0 -1
- package/chunk-3AWU47KT.js +0 -99
- package/chunk-3AWU47KT.js.map +0 -1
- package/chunk-3DG54EVO.mjs.map +0 -1
- package/chunk-43V6CNEG.mjs +0 -92
- package/chunk-43V6CNEG.mjs.map +0 -1
- package/chunk-47TKC7DB.mjs +0 -38
- package/chunk-47TKC7DB.mjs.map +0 -1
- package/chunk-4O25L26A.js.map +0 -1
- package/chunk-5AC6SSUU.js +0 -567
- package/chunk-5AC6SSUU.js.map +0 -1
- package/chunk-73TDZTWF.js +0 -32
- package/chunk-73TDZTWF.js.map +0 -1
- package/chunk-754FOR4K.js +0 -154
- package/chunk-754FOR4K.js.map +0 -1
- package/chunk-7QMZ5MU4.js.map +0 -1
- package/chunk-ABZ4SF2K.mjs +0 -32
- package/chunk-ABZ4SF2K.mjs.map +0 -1
- package/chunk-AJFINSLK.mjs.map +0 -1
- package/chunk-APMXMQPZ.js +0 -33
- package/chunk-APMXMQPZ.js.map +0 -1
- package/chunk-AREM2MQQ.js.map +0 -1
- package/chunk-BH4FHKAR.js +0 -91
- package/chunk-BH4FHKAR.js.map +0 -1
- package/chunk-C736G6RV.mjs.map +0 -1
- package/chunk-CSDFVUNP.js.map +0 -1
- package/chunk-D6WUNCBI.mjs +0 -91
- package/chunk-D6WUNCBI.mjs.map +0 -1
- package/chunk-DOM2D2R7.mjs +0 -31
- package/chunk-DOM2D2R7.mjs.map +0 -1
- package/chunk-DPGUIXSL.mjs.map +0 -1
- package/chunk-F57PDM2P.mjs.map +0 -1
- package/chunk-GGOYFF4M.mjs.map +0 -1
- package/chunk-GVZX7FQQ.mjs +0 -123
- package/chunk-GVZX7FQQ.mjs.map +0 -1
- package/chunk-GZPKVSCR.js +0 -38
- package/chunk-GZPKVSCR.js.map +0 -1
- package/chunk-HBKXMTBF.mjs.map +0 -1
- package/chunk-HMEHDD5N.js.map +0 -1
- package/chunk-HN73FRPZ.js +0 -20
- package/chunk-HN73FRPZ.js.map +0 -1
- package/chunk-I6AFNWVY.js +0 -123
- package/chunk-I6AFNWVY.js.map +0 -1
- package/chunk-IHNDGZWX.mjs +0 -98
- package/chunk-IHNDGZWX.mjs.map +0 -1
- package/chunk-IYZWOHGP.mjs.map +0 -1
- package/chunk-J4FPBR7A.mjs.map +0 -1
- package/chunk-J4KEZVR5.js.map +0 -1
- package/chunk-JVMY3LCD.mjs +0 -90
- package/chunk-JVMY3LCD.mjs.map +0 -1
- package/chunk-K6S2HW6A.mjs.map +0 -1
- package/chunk-KNNX4FAH.js.map +0 -1
- package/chunk-LYMKN3NY.js +0 -39
- package/chunk-LYMKN3NY.js.map +0 -1
- package/chunk-M55DCHAX.mjs +0 -45
- package/chunk-M55DCHAX.mjs.map +0 -1
- package/chunk-MKOOSP3M.mjs +0 -71
- package/chunk-MKOOSP3M.mjs.map +0 -1
- package/chunk-MUWMASP4.js +0 -44
- package/chunk-MUWMASP4.js.map +0 -1
- package/chunk-NL4534LH.mjs +0 -23
- package/chunk-NL4534LH.mjs.map +0 -1
- package/chunk-NUCMI4CP.js.map +0 -1
- package/chunk-NWVKFMW3.mjs +0 -32
- package/chunk-NWVKFMW3.mjs.map +0 -1
- package/chunk-OFRRRK4N.js.map +0 -1
- package/chunk-OI7CIW4X.mjs +0 -566
- package/chunk-OI7CIW4X.mjs.map +0 -1
- package/chunk-OJEDITOA.mjs +0 -112
- package/chunk-OJEDITOA.mjs.map +0 -1
- package/chunk-OROMS2CN.js +0 -13
- package/chunk-OROMS2CN.js.map +0 -1
- package/chunk-PHE5ID6D.js +0 -92
- package/chunk-PHE5ID6D.js.map +0 -1
- package/chunk-Q5QVXAFP.js.map +0 -1
- package/chunk-QBO4YAYA.mjs.map +0 -1
- package/chunk-QJKRCNUX.mjs +0 -153
- package/chunk-QJKRCNUX.mjs.map +0 -1
- package/chunk-QW2TXVH4.js +0 -46
- package/chunk-QW2TXVH4.js.map +0 -1
- package/chunk-SCU2RG4I.mjs +0 -37
- package/chunk-SCU2RG4I.mjs.map +0 -1
- package/chunk-SQK67X4D.mjs.map +0 -1
- package/chunk-SSL4EXAQ.mjs +0 -29
- package/chunk-SSL4EXAQ.mjs.map +0 -1
- package/chunk-TXGL3AHG.mjs +0 -43
- package/chunk-TXGL3AHG.mjs.map +0 -1
- package/chunk-UF2IGF36.js.map +0 -1
- package/chunk-WCMH464B.js.map +0 -1
- package/chunk-WJ4BE7HH.mjs +0 -12
- package/chunk-WJ4BE7HH.mjs.map +0 -1
- package/chunk-XDCB6C5S.js +0 -72
- package/chunk-XDCB6C5S.js.map +0 -1
- package/chunk-XIHKXTB2.js +0 -93
- package/chunk-XIHKXTB2.js.map +0 -1
- package/chunk-XWFQVYPB.js +0 -113
- package/chunk-XWFQVYPB.js.map +0 -1
- package/chunk-YQZZ6RRI.mjs +0 -122
- package/chunk-YQZZ6RRI.mjs.map +0 -1
- package/components/ui/form.d.mts +0 -27
- package/components/ui/form.d.ts +0 -27
- package/components/ui/form.js +0 -110
- package/components/ui/form.js.map +0 -1
- package/components/ui/form.mjs +0 -109
- package/components/ui/form.mjs.map +0 -1
- package/components/ui/toast.d.mts +0 -15
- package/components/ui/toast.d.ts +0 -15
- package/components/ui/toast.js +0 -23
- package/components/ui/toast.js.map +0 -1
- package/components/ui/toast.mjs +0 -22
- package/components/ui/toaster.d.mts +0 -5
- package/components/ui/toaster.d.ts +0 -5
- package/components/ui/toaster.js +0 -32
- package/components/ui/toaster.js.map +0 -1
- package/components/ui/toaster.mjs +0 -31
- package/components/ui/toaster.mjs.map +0 -1
- package/hooks/use-toast.d.mts +0 -48
- package/hooks/use-toast.d.ts +0 -48
- package/hooks/use-toast.js +0 -14
- package/hooks/use-toast.js.map +0 -1
- package/hooks/use-toast.mjs +0 -13
- package/layouts/sidebar1/LinkWrapper.js.map +0 -1
- package/layouts/sidebar1/LinkWrapper.mjs.map +0 -1
- /package/{chunk-QJLNEVAE.mjs.map → chunk-GAJQQPUC.mjs.map} +0 -0
- /package/{chunk-VOED37ZV.mjs.map → chunk-NHDANPMI.mjs.map} +0 -0
- /package/{chunk-MA3OJUIL.mjs.map → chunk-RIBB6GXJ.mjs.map} +0 -0
- /package/{chunk-EIAS7WVI.mjs.map → chunk-YOQJO7NI.mjs.map} +0 -0
- /package/components/ui/{toast.mjs.map → input-group.mjs.map} +0 -0
- /package/layouts/sidebar1/{LinkWrapper.d.mts → link-placeholder.d.mts} +0 -0
- /package/layouts/sidebar1/{LinkWrapper.d.ts → link-placeholder.d.ts} +0 -0
- /package/{hooks/use-toast.mjs.map → layouts/sidebar1/theme-switcher.mjs.map} +0 -0
package/components/ui/form.d.mts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
2
|
-
import * as react_hook_form from 'react-hook-form';
|
|
3
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
|
-
|
|
7
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
8
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
9
|
-
declare const useFormField: () => {
|
|
10
|
-
invalid: boolean;
|
|
11
|
-
isDirty: boolean;
|
|
12
|
-
isTouched: boolean;
|
|
13
|
-
isValidating: boolean;
|
|
14
|
-
error?: react_hook_form.FieldError;
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
formItemId: string;
|
|
18
|
-
formDescriptionId: string;
|
|
19
|
-
formMessageId: string;
|
|
20
|
-
};
|
|
21
|
-
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
23
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
24
|
-
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
-
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
-
|
|
27
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
package/components/ui/form.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
2
|
-
import * as react_hook_form from 'react-hook-form';
|
|
3
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
|
-
|
|
7
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
8
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
9
|
-
declare const useFormField: () => {
|
|
10
|
-
invalid: boolean;
|
|
11
|
-
isDirty: boolean;
|
|
12
|
-
isTouched: boolean;
|
|
13
|
-
isValidating: boolean;
|
|
14
|
-
error?: react_hook_form.FieldError;
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
formItemId: string;
|
|
18
|
-
formDescriptionId: string;
|
|
19
|
-
formMessageId: string;
|
|
20
|
-
};
|
|
21
|
-
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
23
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
24
|
-
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
-
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
-
|
|
27
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
package/components/ui/form.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
var _chunkKNNX4FAHjs = require('../../chunk-KNNX4FAH.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _chunkPSPAJNNBjs = require('../../chunk-PSPAJNNB.js');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunk2NMEKWO5js = require('../../chunk-2NMEKWO5.js');
|
|
13
|
-
|
|
14
|
-
// components/ui/form.tsx
|
|
15
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
16
|
-
var _reactslot = require('@radix-ui/react-slot');
|
|
17
|
-
var _reacthookform = require('react-hook-form');
|
|
18
|
-
var Form = _reacthookform.FormProvider;
|
|
19
|
-
var FormFieldContext = React.createContext({});
|
|
20
|
-
var FormField = (_a) => {
|
|
21
|
-
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
22
|
-
return /* @__PURE__ */ React.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React.createElement(_reacthookform.Controller, _chunk2NMEKWO5js.__spreadValues.call(void 0, {}, props)));
|
|
23
|
-
};
|
|
24
|
-
var useFormField = () => {
|
|
25
|
-
const fieldContext = React.useContext(FormFieldContext);
|
|
26
|
-
const itemContext = React.useContext(FormItemContext);
|
|
27
|
-
const { getFieldState, formState } = _reacthookform.useFormContext.call(void 0, );
|
|
28
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
29
|
-
if (!fieldContext) {
|
|
30
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
31
|
-
}
|
|
32
|
-
const { id } = itemContext;
|
|
33
|
-
return _chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
34
|
-
id,
|
|
35
|
-
name: fieldContext.name,
|
|
36
|
-
formItemId: `${id}-form-item`,
|
|
37
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
38
|
-
formMessageId: `${id}-form-item-message`
|
|
39
|
-
}, fieldState);
|
|
40
|
-
};
|
|
41
|
-
var FormItemContext = React.createContext({});
|
|
42
|
-
var FormItem = React.forwardRef(
|
|
43
|
-
(_a, ref) => {
|
|
44
|
-
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
45
|
-
const id = React.useId();
|
|
46
|
-
return /* @__PURE__ */ React.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React.createElement("div", _chunk2NMEKWO5js.__spreadValues.call(void 0, { ref, className: _chunkPSPAJNNBjs.cn.call(void 0, "space-y-2", className) }, props)));
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
FormItem.displayName = "FormItem";
|
|
50
|
-
var FormLabel = React.forwardRef((_a, ref) => {
|
|
51
|
-
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
52
|
-
const { error, formItemId } = useFormField();
|
|
53
|
-
return /* @__PURE__ */ React.createElement(_chunkKNNX4FAHjs.Label, _chunk2NMEKWO5js.__spreadValues.call(void 0, { ref, className: _chunkPSPAJNNBjs.cn.call(void 0, error && "text-destructive", className), htmlFor: formItemId }, props));
|
|
54
|
-
});
|
|
55
|
-
FormLabel.displayName = "FormLabel";
|
|
56
|
-
var FormControl = React.forwardRef(
|
|
57
|
-
(_a, ref) => {
|
|
58
|
-
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
59
|
-
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
60
|
-
return /* @__PURE__ */ React.createElement(
|
|
61
|
-
_reactslot.Slot,
|
|
62
|
-
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
63
|
-
ref,
|
|
64
|
-
id: formItemId,
|
|
65
|
-
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
66
|
-
"aria-invalid": !!error
|
|
67
|
-
}, props)
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
FormControl.displayName = "FormControl";
|
|
72
|
-
var FormDescription = React.forwardRef(
|
|
73
|
-
(_a, ref) => {
|
|
74
|
-
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
75
|
-
const { formDescriptionId } = useFormField();
|
|
76
|
-
return /* @__PURE__ */ React.createElement("p", _chunk2NMEKWO5js.__spreadValues.call(void 0, { ref, id: formDescriptionId, className: _chunkPSPAJNNBjs.cn.call(void 0, "text-[0.8rem] text-muted-foreground", className) }, props));
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
FormDescription.displayName = "FormDescription";
|
|
80
|
-
var FormMessage = React.forwardRef(
|
|
81
|
-
(_a, ref) => {
|
|
82
|
-
var _b = _a, { className, children } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className", "children"]);
|
|
83
|
-
const { error, formMessageId } = useFormField();
|
|
84
|
-
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
85
|
-
if (!body) {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
return /* @__PURE__ */ React.createElement(
|
|
89
|
-
"p",
|
|
90
|
-
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
91
|
-
ref,
|
|
92
|
-
id: formMessageId,
|
|
93
|
-
className: _chunkPSPAJNNBjs.cn.call(void 0, "text-[0.8rem] font-medium text-destructive", className)
|
|
94
|
-
}, props),
|
|
95
|
-
body
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
FormMessage.displayName = "FormMessage";
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
exports.Form = Form; exports.FormControl = FormControl; exports.FormDescription = FormDescription; exports.FormField = FormField; exports.FormItem = FormItem; exports.FormLabel = FormLabel; exports.FormMessage = FormMessage; exports.useFormField = useFormField;
|
|
110
|
-
//# sourceMappingURL=form.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/form.js","../../../components/ui/form.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ;AACE;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACF,0DAAgC;AAChC;AACA;ACXA,2EAAuB;AAEvB,iDAAqB;AACrB,gDAAkG;AAKlG,IAAM,KAAA,EAAO,2BAAA;AASb,IAAM,iBAAA,EAAyB,KAAA,CAAA,aAAA,CAAqC,CAAC,CAA0B,CAAA;AAE/F,IAAM,UAAA,EAAY,CAGhB,EAAA,EAAA,GAE0C;AAF1C,EAAA,IACG,MAAA,EAAA,wCAAA,EADH,EACG,CAAA,CAAA,CAAA;AAEH,EAAA,uBACE,KAAA,CAAA,aAAA,CAAC,gBAAA,CAAiB,QAAA,EAAjB,EAA0B,KAAA,EAAO,EAAE,IAAA,EAAM,KAAA,CAAM,KAAK,EAAA,CAAA,kBACnD,KAAA,CAAA,aAAA,CAAC,yBAAA,EAAA,6CAAA,CAAA,CAAA,EAAe,KAAA,CAAO,CACzB,CAAA;AAEJ,CAAA;AAEA,IAAM,aAAA,EAAe,CAAA,EAAA,GAAM;AACzB,EAAA,MAAM,aAAA,EAAqB,KAAA,CAAA,UAAA,CAAW,gBAAgB,CAAA;AACtD,EAAA,MAAM,YAAA,EAAoB,KAAA,CAAA,UAAA,CAAW,eAAe,CAAA;AACpD,EAAA,MAAM,EAAE,aAAA,EAAe,UAAU,EAAA,EAAI,2CAAA,CAAe;AAEpD,EAAA,MAAM,WAAA,EAAa,aAAA,CAAc,YAAA,CAAa,IAAA,EAAM,SAAS,CAAA;AAE7D,EAAA,GAAA,CAAI,CAAC,YAAA,EAAc;AACjB,IAAA,MAAM,IAAI,KAAA,CAAM,gDAAgD,CAAA;AAAA,EAClE;AAEA,EAAA,MAAM,EAAE,GAAG,EAAA,EAAI,WAAA;AAEf,EAAA,OAAO,6CAAA;AAAA,IACL,EAAA;AAAA,IACA,IAAA,EAAM,YAAA,CAAa,IAAA;AAAA,IACnB,UAAA,EAAY,CAAA,EAAA;AACZ,IAAA;AACA,IAAA;AACG,EAAA;AAEP;AAMM;AAEiB;AACa,EAAA;AAA/B,IAAA;AACgB,IAAA;AAGf,IAAA;AAIJ,EAAA;AACF;AACS;AAEe;AAGnB,EAAA;AACY,EAAA;AAER,EAAA;AACR;AACS;AAEJ;AACmB,EAAA;AAAjB,IAAA;AACI,IAAA;AAGN,IAAA;AAAC,MAAA;AAAA,MAAA;AACC,QAAA;AACI,QAAA;AACJ,QAAA;AACA,QAAA;AACI,MAAA;AACN,IAAA;AAEJ,EAAA;AACF;AACY;AAEN;AAC8B,EAAA;AAA/B,IAAA;AACO,IAAA;AAGN,IAAA;AAEJ,EAAA;AACF;AACgB;AAEV;AACwC,EAAA;AAAzC,IAAA;AACO,IAAA;AACK,IAAA;AAEF,IAAA;AACF,MAAA;AACT,IAAA;AAGE,IAAA;AAAC,MAAA;AAAA,MAAA;AACC,QAAA;AACI,QAAA;AACJ,QAAA;AACI,MAAA;AAEH,MAAA;AACH,IAAA;AAEJ,EAAA;AACF;AACY;ADpCK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/form.js","sourcesContent":[null,"\"use client\";\nimport * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport { Controller, ControllerProps, FieldPath, FieldValues, FormProvider, useFormContext } from 'react-hook-form';\n\nimport { cn } from '../../utils/ui';\nimport { Label } from './label';\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = {\n name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>');\n }\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn('space-y-2', className)} {...props} />\n </FormItemContext.Provider>\n );\n },\n);\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return <Label ref={ref} className={cn(error && 'text-destructive', className)} htmlFor={formItemId} {...props} />;\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<React.ElementRef<typeof Slot>, React.ComponentPropsWithoutRef<typeof Slot>>(\n ({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n },\n);\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n ({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p ref={ref} id={formDescriptionId} className={cn('text-[0.8rem] text-muted-foreground', className)} {...props} />\n );\n },\n);\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n ({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error?.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn('text-[0.8rem] font-medium text-destructive', className)}\n {...props}\n >\n {body}\n </p>\n );\n },\n);\nFormMessage.displayName = 'FormMessage';\n\nexport { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField };\n"]}
|
package/components/ui/form.mjs
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Label
|
|
4
|
-
} from "../../chunk-NL4534LH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "../../chunk-KGUUDFJE.mjs";
|
|
8
|
-
import {
|
|
9
|
-
__objRest,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "../../chunk-YOSPWY5K.mjs";
|
|
12
|
-
|
|
13
|
-
// components/ui/form.tsx
|
|
14
|
-
import * as React from "react";
|
|
15
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
16
|
-
import { Controller, FormProvider, useFormContext } from "react-hook-form";
|
|
17
|
-
var Form = FormProvider;
|
|
18
|
-
var FormFieldContext = React.createContext({});
|
|
19
|
-
var FormField = (_a) => {
|
|
20
|
-
var props = __objRest(_a, []);
|
|
21
|
-
return /* @__PURE__ */ React.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React.createElement(Controller, __spreadValues({}, props)));
|
|
22
|
-
};
|
|
23
|
-
var useFormField = () => {
|
|
24
|
-
const fieldContext = React.useContext(FormFieldContext);
|
|
25
|
-
const itemContext = React.useContext(FormItemContext);
|
|
26
|
-
const { getFieldState, formState } = useFormContext();
|
|
27
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
28
|
-
if (!fieldContext) {
|
|
29
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
30
|
-
}
|
|
31
|
-
const { id } = itemContext;
|
|
32
|
-
return __spreadValues({
|
|
33
|
-
id,
|
|
34
|
-
name: fieldContext.name,
|
|
35
|
-
formItemId: `${id}-form-item`,
|
|
36
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
37
|
-
formMessageId: `${id}-form-item-message`
|
|
38
|
-
}, fieldState);
|
|
39
|
-
};
|
|
40
|
-
var FormItemContext = React.createContext({});
|
|
41
|
-
var FormItem = React.forwardRef(
|
|
42
|
-
(_a, ref) => {
|
|
43
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
44
|
-
const id = React.useId();
|
|
45
|
-
return /* @__PURE__ */ React.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React.createElement("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)));
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
FormItem.displayName = "FormItem";
|
|
49
|
-
var FormLabel = React.forwardRef((_a, ref) => {
|
|
50
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51
|
-
const { error, formItemId } = useFormField();
|
|
52
|
-
return /* @__PURE__ */ React.createElement(Label, __spreadValues({ ref, className: cn(error && "text-destructive", className), htmlFor: formItemId }, props));
|
|
53
|
-
});
|
|
54
|
-
FormLabel.displayName = "FormLabel";
|
|
55
|
-
var FormControl = React.forwardRef(
|
|
56
|
-
(_a, ref) => {
|
|
57
|
-
var props = __objRest(_a, []);
|
|
58
|
-
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
59
|
-
return /* @__PURE__ */ React.createElement(
|
|
60
|
-
Slot,
|
|
61
|
-
__spreadValues({
|
|
62
|
-
ref,
|
|
63
|
-
id: formItemId,
|
|
64
|
-
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
65
|
-
"aria-invalid": !!error
|
|
66
|
-
}, props)
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
FormControl.displayName = "FormControl";
|
|
71
|
-
var FormDescription = React.forwardRef(
|
|
72
|
-
(_a, ref) => {
|
|
73
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
74
|
-
const { formDescriptionId } = useFormField();
|
|
75
|
-
return /* @__PURE__ */ React.createElement("p", __spreadValues({ ref, id: formDescriptionId, className: cn("text-[0.8rem] text-muted-foreground", className) }, props));
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
FormDescription.displayName = "FormDescription";
|
|
79
|
-
var FormMessage = React.forwardRef(
|
|
80
|
-
(_a, ref) => {
|
|
81
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
82
|
-
const { error, formMessageId } = useFormField();
|
|
83
|
-
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
84
|
-
if (!body) {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
return /* @__PURE__ */ React.createElement(
|
|
88
|
-
"p",
|
|
89
|
-
__spreadValues({
|
|
90
|
-
ref,
|
|
91
|
-
id: formMessageId,
|
|
92
|
-
className: cn("text-[0.8rem] font-medium text-destructive", className)
|
|
93
|
-
}, props),
|
|
94
|
-
body
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
FormMessage.displayName = "FormMessage";
|
|
99
|
-
export {
|
|
100
|
-
Form,
|
|
101
|
-
FormControl,
|
|
102
|
-
FormDescription,
|
|
103
|
-
FormField,
|
|
104
|
-
FormItem,
|
|
105
|
-
FormLabel,
|
|
106
|
-
FormMessage,
|
|
107
|
-
useFormField
|
|
108
|
-
};
|
|
109
|
-
//# sourceMappingURL=form.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../components/ui/form.tsx"],"sourcesContent":["\"use client\";\nimport * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport { Controller, ControllerProps, FieldPath, FieldValues, FormProvider, useFormContext } from 'react-hook-form';\n\nimport { cn } from '../../utils/ui';\nimport { Label } from './label';\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = {\n name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>');\n }\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn('space-y-2', className)} {...props} />\n </FormItemContext.Provider>\n );\n },\n);\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return <Label ref={ref} className={cn(error && 'text-destructive', className)} htmlFor={formItemId} {...props} />;\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<React.ElementRef<typeof Slot>, React.ComponentPropsWithoutRef<typeof Slot>>(\n ({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n },\n);\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n ({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p ref={ref} id={formDescriptionId} className={cn('text-[0.8rem] text-muted-foreground', className)} {...props} />\n );\n },\n);\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n ({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error?.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn('text-[0.8rem] font-medium text-destructive', className)}\n {...props}\n >\n {body}\n </p>\n );\n },\n);\nFormMessage.displayName = 'FormMessage';\n\nexport { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField };\n"],"mappings":";;;;;;;;;;;;;AACA,YAAY,WAAW;AAEvB,SAAS,YAAY;AACrB,SAAS,YAAqD,cAAc,sBAAsB;AAKlG,IAAM,OAAO;AASb,IAAM,mBAAyB,oBAAqC,CAAC,CAA0B;AAE/F,IAAM,YAAY,CAGhB,OAE0C;AAF1C,MACG,kBADH,IACG;AAEH,SACE,oCAAC,iBAAiB,UAAjB,EAA0B,OAAO,EAAE,MAAM,MAAM,KAAK,KACnD,oCAAC,+BAAe,MAAO,CACzB;AAEJ;AAEA,IAAM,eAAe,MAAM;AACzB,QAAM,eAAqB,iBAAW,gBAAgB;AACtD,QAAM,cAAoB,iBAAW,eAAe;AACpD,QAAM,EAAE,eAAe,UAAU,IAAI,eAAe;AAEpD,QAAM,aAAa,cAAc,aAAa,MAAM,SAAS;AAE7D,MAAI,CAAC,cAAc;AACjB,UAAM,IAAI,MAAM,gDAAgD;AAAA,EAClE;AAEA,QAAM,EAAE,GAAG,IAAI;AAEf,SAAO;AAAA,IACL;AAAA,IACA,MAAM,aAAa;AAAA,IACnB,YAAY,GAAG,EAAE;AAAA,IACjB,mBAAmB,GAAG,EAAE;AAAA,IACxB,eAAe,GAAG,EAAE;AAAA,KACjB;AAEP;AAMA,IAAM,kBAAwB,oBAAoC,CAAC,CAAyB;AAE5F,IAAM,WAAiB;AAAA,EACrB,CAAC,IAAyB,QAAQ;AAAjC,iBAAE,YA/DL,IA+DG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,UAAM,KAAW,YAAM;AAEvB,WACE,oCAAC,gBAAgB,UAAhB,EAAyB,OAAO,EAAE,GAAG,KACpC,oCAAC,wBAAI,KAAU,WAAW,GAAG,aAAa,SAAS,KAAO,MAAO,CACnE;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;AAEvB,IAAM,YAAkB,iBAGtB,CAAC,IAAyB,QAAQ;AAAjC,eAAE,YA9EL,IA8EG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,QAAM,EAAE,OAAO,WAAW,IAAI,aAAa;AAE3C,SAAO,oCAAC,wBAAM,KAAU,WAAW,GAAG,SAAS,oBAAoB,SAAS,GAAG,SAAS,cAAgB,MAAO;AACjH,CAAC;AACD,UAAU,cAAc;AAExB,IAAM,cAAoB;AAAA,EACxB,CAAC,IAAc,QAAQ;AAAtB,QAAK,kBAAL,IAAK;AACJ,UAAM,EAAE,OAAO,YAAY,mBAAmB,cAAc,IAAI,aAAa;AAE7E,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,IAAI;AAAA,QACJ,oBAAkB,CAAC,QAAQ,GAAG,iBAAiB,KAAK,GAAG,iBAAiB,IAAI,aAAa;AAAA,QACzF,gBAAc,CAAC,CAAC;AAAA,SACZ;AAAA,IACN;AAAA,EAEJ;AACF;AACA,YAAY,cAAc;AAE1B,IAAM,kBAAwB;AAAA,EAC5B,CAAC,IAAyB,QAAQ;AAAjC,iBAAE,YAvGL,IAuGG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,UAAM,EAAE,kBAAkB,IAAI,aAAa;AAE3C,WACE,oCAAC,sBAAE,KAAU,IAAI,mBAAmB,WAAW,GAAG,uCAAuC,SAAS,KAAO,MAAO;AAAA,EAEpH;AACF;AACA,gBAAgB,cAAc;AAE9B,IAAM,cAAoB;AAAA,EACxB,CAAC,IAAmC,QAAQ;AAA3C,iBAAE,aAAW,SAlHhB,IAkHG,IAA0B,kBAA1B,IAA0B,CAAxB,aAAW;AACZ,UAAM,EAAE,OAAO,cAAc,IAAI,aAAa;AAC9C,UAAM,OAAO,QAAQ,OAAO,+BAAO,OAAO,IAAI;AAE9C,QAAI,CAAC,MAAM;AACT,aAAO;AAAA,IACT;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,IAAI;AAAA,QACJ,WAAW,GAAG,8CAA8C,SAAS;AAAA,SACjE;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AACA,YAAY,cAAc;","names":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
6
|
-
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
7
|
-
declare const Toast: React.ForwardRefExoticComponent<Omit<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<Component>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
8
|
-
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
13
|
-
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
14
|
-
|
|
15
|
-
export { Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport };
|
package/components/ui/toast.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
6
|
-
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
7
|
-
declare const Toast: React.ForwardRefExoticComponent<Omit<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<Component>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
8
|
-
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
13
|
-
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
14
|
-
|
|
15
|
-
export { Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport };
|
package/components/ui/toast.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunk3AWU47KTjs = require('../../chunk-3AWU47KT.js');
|
|
12
|
-
require('../../chunk-PSPAJNNB.js');
|
|
13
|
-
require('../../chunk-2NMEKWO5.js');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
exports.Toast = _chunk3AWU47KTjs.Toast; exports.ToastAction = _chunk3AWU47KTjs.ToastAction; exports.ToastClose = _chunk3AWU47KTjs.ToastClose; exports.ToastDescription = _chunk3AWU47KTjs.ToastDescription; exports.ToastProvider = _chunk3AWU47KTjs.ToastProvider; exports.ToastTitle = _chunk3AWU47KTjs.ToastTitle; exports.ToastViewport = _chunk3AWU47KTjs.ToastViewport;
|
|
23
|
-
//# sourceMappingURL=toast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/toast.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0DAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,6WAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/toast.js"}
|
package/components/ui/toast.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Toast,
|
|
4
|
-
ToastAction,
|
|
5
|
-
ToastClose,
|
|
6
|
-
ToastDescription,
|
|
7
|
-
ToastProvider,
|
|
8
|
-
ToastTitle,
|
|
9
|
-
ToastViewport
|
|
10
|
-
} from "../../chunk-IHNDGZWX.mjs";
|
|
11
|
-
import "../../chunk-KGUUDFJE.mjs";
|
|
12
|
-
import "../../chunk-YOSPWY5K.mjs";
|
|
13
|
-
export {
|
|
14
|
-
Toast,
|
|
15
|
-
ToastAction,
|
|
16
|
-
ToastClose,
|
|
17
|
-
ToastDescription,
|
|
18
|
-
ToastProvider,
|
|
19
|
-
ToastTitle,
|
|
20
|
-
ToastViewport
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=toast.mjs.map
|
package/components/ui/toaster.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _chunk3AWU47KTjs = require('../../chunk-3AWU47KT.js');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _chunkI6AFNWVYjs = require('../../chunk-I6AFNWVY.js');
|
|
14
|
-
require('../../chunk-PSPAJNNB.js');
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _chunk2NMEKWO5js = require('../../chunk-2NMEKWO5.js');
|
|
19
|
-
|
|
20
|
-
// components/ui/toaster.tsx
|
|
21
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
22
|
-
function Toaster() {
|
|
23
|
-
const { toasts } = _chunkI6AFNWVYjs.useToast.call(void 0, );
|
|
24
|
-
return /* @__PURE__ */ React.createElement(_chunk3AWU47KTjs.ToastProvider, null, toasts.map(function(_a) {
|
|
25
|
-
var _b = _a, { id, title, description, action } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["id", "title", "description", "action"]);
|
|
26
|
-
return /* @__PURE__ */ React.createElement(_chunk3AWU47KTjs.Toast, _chunk2NMEKWO5js.__spreadValues.call(void 0, { key: id }, props), /* @__PURE__ */ React.createElement("div", { className: "grid gap-1" }, title && /* @__PURE__ */ React.createElement(_chunk3AWU47KTjs.ToastTitle, null, title), description && /* @__PURE__ */ React.createElement(_chunk3AWU47KTjs.ToastDescription, null, description)), action, /* @__PURE__ */ React.createElement(_chunk3AWU47KTjs.ToastClose, null));
|
|
27
|
-
}), /* @__PURE__ */ React.createElement(_chunk3AWU47KTjs.ToastViewport, null));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exports.Toaster = Toaster;
|
|
32
|
-
//# sourceMappingURL=toaster.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/toaster.js","../../../components/ui/toaster.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC,mCAAgC;AAChC;AACE;AACA;AACF,0DAAgC;AAChC;AACA;ACjBA,2EAAuB;AAWhB,SAAS,OAAA,CAAA,EAAU;AACxB,EAAA,MAAM,EAAE,OAAO,EAAA,EAAI,uCAAA,CAAS;AAE5B,EAAA,uBACE,KAAA,CAAA,aAAA,CAAC,8BAAA,EAAA,IAAA,EACE,MAAA,CAAO,GAAA,CAAI,QAAA,CAAU,EAAA,EAA8C;AAA9C,IAAA,IAAA,GAAA,EAAA,EAAA,EAAE,EAAA,EAAA,EAAI,KAAA,EAAO,WAAA,EAAa,OAjBtD,EAAA,EAiB4B,EAAA,EAAqC,MAAA,EAAA,wCAAA,EAArC,EAAqC,CAAnC,IAAA,EAAI,OAAA,EAAO,aAAA,EAAa,QAAA,CAAA,CAAA;AAC9C,IAAA,uBACE,KAAA,CAAA,aAAA,CAAC,sBAAA,EAAA,6CAAA,EAAM,GAAA,EAAK,GAAA,CAAA,EAAQ,KAAA,CAAA,kBAClB,KAAA,CAAA,aAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,aAAA,CAAA,EACZ,MAAA,mBAAS,KAAA,CAAA,aAAA,CAAC,2BAAA,EAAA,IAAA,EAAY,KAAM,CAAA,EAC5B,YAAA,mBAAe,KAAA,CAAA,aAAA,CAAC,iCAAA,EAAA,IAAA,EAAkB,WAAY,CACjD,CAAA,EACC,MAAA,kBACD,KAAA,CAAA,aAAA,CAAC,2BAAA,EAAA,IAAW,CACd,CAAA;AAAA,EAEJ,CAAC,CAAA,kBACD,KAAA,CAAA,aAAA,CAAC,8BAAA,EAAA,IAAc,CACjB,CAAA;AAEJ;ADLA;AACE;AACF,0BAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/components/ui/toaster.js","sourcesContent":[null,"\"use client\";\nimport * as React from 'react';\nimport { useToast } from '../../hooks/use-toast';\nimport {\n Toast,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n} from '../..//components/ui/toast';\n\nexport function Toaster() {\n const { toasts } = useToast();\n\n return (\n <ToastProvider>\n {toasts.map(function ({ id, title, description, action, ...props }) {\n return (\n <Toast key={id} {...props}>\n <div className=\"grid gap-1\">\n {title && <ToastTitle>{title}</ToastTitle>}\n {description && <ToastDescription>{description}</ToastDescription>}\n </div>\n {action}\n <ToastClose />\n </Toast>\n );\n })}\n <ToastViewport />\n </ToastProvider>\n );\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Toast,
|
|
4
|
-
ToastClose,
|
|
5
|
-
ToastDescription,
|
|
6
|
-
ToastProvider,
|
|
7
|
-
ToastTitle,
|
|
8
|
-
ToastViewport
|
|
9
|
-
} from "../../chunk-IHNDGZWX.mjs";
|
|
10
|
-
import {
|
|
11
|
-
useToast
|
|
12
|
-
} from "../../chunk-YQZZ6RRI.mjs";
|
|
13
|
-
import "../../chunk-KGUUDFJE.mjs";
|
|
14
|
-
import {
|
|
15
|
-
__objRest,
|
|
16
|
-
__spreadValues
|
|
17
|
-
} from "../../chunk-YOSPWY5K.mjs";
|
|
18
|
-
|
|
19
|
-
// components/ui/toaster.tsx
|
|
20
|
-
import * as React from "react";
|
|
21
|
-
function Toaster() {
|
|
22
|
-
const { toasts } = useToast();
|
|
23
|
-
return /* @__PURE__ */ React.createElement(ToastProvider, null, toasts.map(function(_a) {
|
|
24
|
-
var _b = _a, { id, title, description, action } = _b, props = __objRest(_b, ["id", "title", "description", "action"]);
|
|
25
|
-
return /* @__PURE__ */ React.createElement(Toast, __spreadValues({ key: id }, props), /* @__PURE__ */ React.createElement("div", { className: "grid gap-1" }, title && /* @__PURE__ */ React.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React.createElement(ToastClose, null));
|
|
26
|
-
}), /* @__PURE__ */ React.createElement(ToastViewport, null));
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
Toaster
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=toaster.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../components/ui/toaster.tsx"],"sourcesContent":["\"use client\";\nimport * as React from 'react';\nimport { useToast } from '../../hooks/use-toast';\nimport {\n Toast,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n} from '../..//components/ui/toast';\n\nexport function Toaster() {\n const { toasts } = useToast();\n\n return (\n <ToastProvider>\n {toasts.map(function ({ id, title, description, action, ...props }) {\n return (\n <Toast key={id} {...props}>\n <div className=\"grid gap-1\">\n {title && <ToastTitle>{title}</ToastTitle>}\n {description && <ToastDescription>{description}</ToastDescription>}\n </div>\n {action}\n <ToastClose />\n </Toast>\n );\n })}\n <ToastViewport />\n </ToastProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AACA,YAAY,WAAW;AAWhB,SAAS,UAAU;AACxB,QAAM,EAAE,OAAO,IAAI,SAAS;AAE5B,SACE,oCAAC,qBACE,OAAO,IAAI,SAAU,IAA8C;AAA9C,iBAAE,MAAI,OAAO,aAAa,OAjBtD,IAiB4B,IAAqC,kBAArC,IAAqC,CAAnC,MAAI,SAAO,eAAa;AAC9C,WACE,oCAAC,wBAAM,KAAK,MAAQ,QAClB,oCAAC,SAAI,WAAU,gBACZ,SAAS,oCAAC,kBAAY,KAAM,GAC5B,eAAe,oCAAC,wBAAkB,WAAY,CACjD,GACC,QACD,oCAAC,gBAAW,CACd;AAAA,EAEJ,CAAC,GACD,oCAAC,mBAAc,CACjB;AAEJ;","names":[]}
|
package/hooks/use-toast.d.mts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ToastProps, ToastActionElement } from '../components/ui/toast.mjs';
|
|
3
|
-
import '@radix-ui/react-toast';
|
|
4
|
-
import 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
type ToasterToast = ToastProps & {
|
|
7
|
-
id: string;
|
|
8
|
-
title?: React.ReactNode;
|
|
9
|
-
description?: React.ReactNode;
|
|
10
|
-
action?: ToastActionElement;
|
|
11
|
-
};
|
|
12
|
-
declare const actionTypes: {
|
|
13
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
14
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
15
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
16
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
17
|
-
};
|
|
18
|
-
type ActionType = typeof actionTypes;
|
|
19
|
-
type Action = {
|
|
20
|
-
type: ActionType['ADD_TOAST'];
|
|
21
|
-
toast: ToasterToast;
|
|
22
|
-
} | {
|
|
23
|
-
type: ActionType['UPDATE_TOAST'];
|
|
24
|
-
toast: Partial<ToasterToast>;
|
|
25
|
-
} | {
|
|
26
|
-
type: ActionType['DISMISS_TOAST'];
|
|
27
|
-
toastId?: ToasterToast['id'];
|
|
28
|
-
} | {
|
|
29
|
-
type: ActionType['REMOVE_TOAST'];
|
|
30
|
-
toastId?: ToasterToast['id'];
|
|
31
|
-
};
|
|
32
|
-
interface State {
|
|
33
|
-
toasts: ToasterToast[];
|
|
34
|
-
}
|
|
35
|
-
declare const reducer: (state: State, action: Action) => State;
|
|
36
|
-
type Toast = Omit<ToasterToast, 'id'>;
|
|
37
|
-
declare function toast({ ...props }: Toast): {
|
|
38
|
-
id: string;
|
|
39
|
-
dismiss: () => void;
|
|
40
|
-
update: (props: ToasterToast) => void;
|
|
41
|
-
};
|
|
42
|
-
declare function useToast(): {
|
|
43
|
-
toast: typeof toast;
|
|
44
|
-
dismiss: (toastId?: string) => void;
|
|
45
|
-
toasts: ToasterToast[];
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { reducer, toast, useToast };
|
package/hooks/use-toast.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ToastProps, ToastActionElement } from '../components/ui/toast.js';
|
|
3
|
-
import '@radix-ui/react-toast';
|
|
4
|
-
import 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
type ToasterToast = ToastProps & {
|
|
7
|
-
id: string;
|
|
8
|
-
title?: React.ReactNode;
|
|
9
|
-
description?: React.ReactNode;
|
|
10
|
-
action?: ToastActionElement;
|
|
11
|
-
};
|
|
12
|
-
declare const actionTypes: {
|
|
13
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
14
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
15
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
16
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
17
|
-
};
|
|
18
|
-
type ActionType = typeof actionTypes;
|
|
19
|
-
type Action = {
|
|
20
|
-
type: ActionType['ADD_TOAST'];
|
|
21
|
-
toast: ToasterToast;
|
|
22
|
-
} | {
|
|
23
|
-
type: ActionType['UPDATE_TOAST'];
|
|
24
|
-
toast: Partial<ToasterToast>;
|
|
25
|
-
} | {
|
|
26
|
-
type: ActionType['DISMISS_TOAST'];
|
|
27
|
-
toastId?: ToasterToast['id'];
|
|
28
|
-
} | {
|
|
29
|
-
type: ActionType['REMOVE_TOAST'];
|
|
30
|
-
toastId?: ToasterToast['id'];
|
|
31
|
-
};
|
|
32
|
-
interface State {
|
|
33
|
-
toasts: ToasterToast[];
|
|
34
|
-
}
|
|
35
|
-
declare const reducer: (state: State, action: Action) => State;
|
|
36
|
-
type Toast = Omit<ToasterToast, 'id'>;
|
|
37
|
-
declare function toast({ ...props }: Toast): {
|
|
38
|
-
id: string;
|
|
39
|
-
dismiss: () => void;
|
|
40
|
-
update: (props: ToasterToast) => void;
|
|
41
|
-
};
|
|
42
|
-
declare function useToast(): {
|
|
43
|
-
toast: typeof toast;
|
|
44
|
-
dismiss: (toastId?: string) => void;
|
|
45
|
-
toasts: ToasterToast[];
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { reducer, toast, useToast };
|
package/hooks/use-toast.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkI6AFNWVYjs = require('../chunk-I6AFNWVY.js');
|
|
8
|
-
require('../chunk-2NMEKWO5.js');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.reducer = _chunkI6AFNWVYjs.reducer; exports.toast = _chunkI6AFNWVYjs.toast; exports.useToast = _chunkI6AFNWVYjs.useToast;
|
|
14
|
-
//# sourceMappingURL=use-toast.js.map
|
package/hooks/use-toast.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/hooks/use-toast.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,iIAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/hooks/use-toast.js"}
|
package/hooks/use-toast.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/layouts/sidebar1/LinkWrapper.js","../../../layouts/sidebar1/LinkWrapper.tsx"],"names":[],"mappings":"AAAA,qFAAY;AACZ,mCAAgC;AAChC;AACA;ACKO,SAAS,eAAA,CAAgB,EAAE,QAAA,EAAU,QAAQ,CAAA,EAAyB;AAC3E,EAAA,uBACE,KAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,OAAA,EAAS,CAAC,CAAA,EAAA,GAAM;AACd,QAAA,CAAA,CAAE,eAAA,CAAgB,CAAA;AAElB,QAAA,GAAA,CAAI,OAAA,EAAS;AACX,UAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,QACX;AAAA,MACF;AAAA,IAAA,CAAA;AAAA,IAEC;AAAA,EACH,CAAA;AAEJ;ADJA;AACE;AACF,0CAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/layouts/sidebar1/LinkWrapper.js","sourcesContent":[null,"\"use client\";\ninterface LinkPlaceholderProps {\n children: React.ReactNode;\n to?: string;\n href?: string;\n onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;\n}\n\nexport function LinkPlaceholder({ children, onClick }: LinkPlaceholderProps) {\n return (\n <div\n onClick={(e) => {\n e.stopPropagation();\n\n if (onClick) {\n onClick(e);\n }\n }}\n >\n {children}\n </div>\n );\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../layouts/sidebar1/LinkWrapper.tsx"],"sourcesContent":["\"use client\";\ninterface LinkPlaceholderProps {\n children: React.ReactNode;\n to?: string;\n href?: string;\n onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;\n}\n\nexport function LinkPlaceholder({ children, onClick }: LinkPlaceholderProps) {\n return (\n <div\n onClick={(e) => {\n e.stopPropagation();\n\n if (onClick) {\n onClick(e);\n }\n }}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;AAQO,SAAS,gBAAgB,EAAE,UAAU,QAAQ,GAAyB;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,CAAC,MAAM;AACd,UAAE,gBAAgB;AAElB,YAAI,SAAS;AACX,kBAAQ,CAAC;AAAA,QACX;AAAA,MACF;AAAA;AAAA,IAEC;AAAA,EACH;AAEJ;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|