@egose/shadcn-theme 0.0.62 → 0.1.1
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-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-3HZTA2ZQ.js +170 -0
- package/chunk-3HZTA2ZQ.js.map +1 -0
- package/{chunk-XCFEBPRG.js → chunk-3ZN766EW.js} +8 -8
- package/{chunk-XCFEBPRG.js.map → chunk-3ZN766EW.js.map} +1 -1
- package/{chunk-3DG54EVO.mjs → chunk-432PQWGO.mjs} +6 -6
- package/chunk-432PQWGO.mjs.map +1 -0
- 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-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-WGNLM36B.js → chunk-6CRGZEQF.js} +16 -4
- package/chunk-6CRGZEQF.js.map +1 -0
- package/{chunk-J4FPBR7A.mjs → chunk-6ECNY4VS.mjs} +4 -4
- package/chunk-6ECNY4VS.mjs.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-C736G6RV.mjs → chunk-7ZMTJBXT.mjs} +6 -6
- package/chunk-7ZMTJBXT.mjs.map +1 -0
- package/chunk-AJLAS62X.js +154 -0
- package/chunk-AJLAS62X.js.map +1 -0
- package/{chunk-DPGUIXSL.mjs → chunk-BEPAUXCN.mjs} +4 -4
- package/chunk-BEPAUXCN.mjs.map +1 -0
- package/{chunk-J4KEZVR5.js → chunk-BJK4J4VY.js} +5 -5
- package/chunk-BJK4J4VY.js.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-E7F5KADG.mjs +169 -0
- package/chunk-E7F5KADG.mjs.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-VOED37ZV.mjs → chunk-FD7CNCJW.mjs} +16 -4
- package/chunk-FD7CNCJW.mjs.map +1 -0
- package/{chunk-QJLNEVAE.mjs → chunk-GAJQQPUC.mjs} +3 -3
- package/chunk-GBNJFKPB.js +51 -0
- package/chunk-GBNJFKPB.js.map +1 -0
- package/{chunk-UF2IGF36.js → chunk-GKUELSRJ.js} +5 -5
- package/chunk-GKUELSRJ.js.map +1 -0
- package/{chunk-K6S2HW6A.mjs → chunk-GUB2Y4JK.mjs} +3 -3
- package/chunk-GUB2Y4JK.mjs.map +1 -0
- package/{chunk-AREM2MQQ.js → chunk-GV62APQ6.js} +2 -2
- package/chunk-GV62APQ6.js.map +1 -0
- package/chunk-HKZRXGJ7.mjs +158 -0
- package/chunk-HKZRXGJ7.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-ICOZ5BK7.mjs +110 -0
- package/chunk-ICOZ5BK7.mjs.map +1 -0
- package/chunk-JZXOJAMQ.js +96 -0
- package/chunk-JZXOJAMQ.js.map +1 -0
- package/{chunk-YYEQYAZF.js → chunk-K3LYDDTD.js} +3 -3
- package/{chunk-YYEQYAZF.js.map → chunk-K3LYDDTD.js.map} +1 -1
- 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-F57PDM2P.mjs → chunk-KUD4Z2MZ.mjs} +10 -5
- package/chunk-KUD4Z2MZ.mjs.map +1 -0
- package/chunk-LVXIGNFJ.mjs +37 -0
- package/chunk-LVXIGNFJ.mjs.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-NMYVYLKF.js +39 -0
- package/chunk-NMYVYLKF.js.map +1 -0
- package/{chunk-AK7GRZQD.js → chunk-NWL7BAHC.js} +11 -11
- package/{chunk-AK7GRZQD.js.map → chunk-NWL7BAHC.js.map} +1 -1
- package/chunk-OPNHC6JN.mjs +132 -0
- package/chunk-OPNHC6JN.mjs.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-QCHBJMD6.mjs +38 -0
- package/chunk-QCHBJMD6.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-RFORRZRN.js +133 -0
- package/chunk-RFORRZRN.js.map +1 -0
- 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-7734627I.mjs → chunk-S3CRUBGL.mjs} +4 -4
- package/chunk-S3CRUBGL.mjs.map +1 -0
- package/{chunk-QBO4YAYA.mjs → chunk-SBFICFTY.mjs} +4 -4
- package/chunk-SBFICFTY.mjs.map +1 -0
- package/{chunk-L2NIAPCK.mjs → chunk-SDR3DVXD.mjs} +8 -8
- package/{chunk-M2OLRG5K.js → chunk-SLADFPSL.js} +12 -12
- package/{chunk-M2OLRG5K.js.map → chunk-SLADFPSL.js.map} +1 -1
- package/{chunk-BWKIS24H.js → chunk-TTCGK36S.js} +6 -6
- package/{chunk-BWKIS24H.js.map → chunk-TTCGK36S.js.map} +1 -1
- 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-NUCMI4CP.js → chunk-UQW3H2JS.js} +5 -5
- package/chunk-UQW3H2JS.js.map +1 -0
- package/chunk-US2CUADK.mjs +186 -0
- package/chunk-US2CUADK.mjs.map +1 -0
- package/{chunk-IYZWOHGP.mjs → chunk-VHYQNTH7.mjs} +4 -4
- package/chunk-VHYQNTH7.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-CSDFVUNP.js → chunk-WJBTXKFN.js} +9 -9
- package/chunk-WJBTXKFN.js.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-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-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/chunk-ZMMYQNQV.mjs +153 -0
- package/chunk-ZMMYQNQV.mjs.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 +5 -5
- package/components/form/hook-checkbox.js.map +1 -1
- package/components/form/hook-checkbox.mjs +4 -4
- package/components/form/hook-checkbox.mjs.map +1 -1
- package/components/form/hook-date-picker.js +8 -8
- package/components/form/hook-date-picker.js.map +1 -1
- package/components/form/hook-date-picker.mjs +7 -7
- package/components/form/hook-date-picker.mjs.map +1 -1
- package/components/form/hook-native-select.js +4 -4
- package/components/form/hook-native-select.js.map +1 -1
- package/components/form/hook-native-select.mjs +3 -3
- package/components/form/hook-native-select.mjs.map +1 -1
- package/components/form/hook-searchable-select.js +12 -9
- package/components/form/hook-searchable-select.js.map +1 -1
- package/components/form/hook-searchable-select.mjs +11 -8
- package/components/form/hook-searchable-select.mjs.map +1 -1
- package/components/form/hook-select.js +5 -5
- package/components/form/hook-select.js.map +1 -1
- package/components/form/hook-select.mjs +4 -4
- package/components/form/hook-select.mjs.map +1 -1
- package/components/form/hook-text-input.js +5 -5
- package/components/form/hook-text-input.js.map +1 -1
- package/components/form/hook-text-input.mjs +4 -4
- package/components/form/hook-text-input.mjs.map +1 -1
- package/components/form/hook-textarea.js +5 -5
- package/components/form/hook-textarea.js.map +1 -1
- package/components/form/hook-textarea.mjs +4 -4
- package/components/form/hook-textarea.mjs.map +1 -1
- package/components/form/hook-time-input.js +6 -6
- package/components/form/hook-time-input.js.map +1 -1
- package/components/form/hook-time-input.mjs +5 -5
- package/components/form/hook-time-input.mjs.map +1 -1
- 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.d.mts +1 -1
- package/components/form/time-input.d.ts +1 -1
- 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/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.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 +3 -3
- package/layouts/simple/index.mjs +2 -2
- package/layouts/simple/user-menu.js +3 -3
- package/layouts/simple/user-menu.mjs +2 -2
- package/package.json +10 -32
- 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-7734627I.mjs.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-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-VOED37ZV.mjs.map +0 -1
- package/chunk-WGNLM36B.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-MA3OJUIL.mjs.map → chunk-RIBB6GXJ.mjs.map} +0 -0
- /package/{chunk-L2NIAPCK.mjs.map → chunk-SDR3DVXD.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
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
var _chunkPSPAJNNBjs = require('./chunk-PSPAJNNB.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunk2NMEKWO5js = require('./chunk-2NMEKWO5.js');
|
|
9
|
+
|
|
10
|
+
// components/ui/checkbox.tsx
|
|
11
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
12
|
+
var _radixui = require('radix-ui');
|
|
13
|
+
var _lucidereact = require('lucide-react');
|
|
14
|
+
function Checkbox(_a) {
|
|
15
|
+
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
16
|
+
return /* @__PURE__ */ React.createElement(
|
|
17
|
+
_radixui.Checkbox.Root,
|
|
18
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
19
|
+
"data-slot": "checkbox",
|
|
20
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
21
|
+
"border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
22
|
+
className
|
|
23
|
+
)
|
|
24
|
+
}, props),
|
|
25
|
+
/* @__PURE__ */ React.createElement(
|
|
26
|
+
_radixui.Checkbox.Indicator,
|
|
27
|
+
{
|
|
28
|
+
"data-slot": "checkbox-indicator",
|
|
29
|
+
className: "[&>svg]:size-3.5 grid place-content-center text-current transition-none"
|
|
30
|
+
},
|
|
31
|
+
/* @__PURE__ */ React.createElement(_lucidereact.CheckIcon, null)
|
|
32
|
+
)
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.Checkbox = Checkbox;
|
|
39
|
+
//# sourceMappingURL=chunk-NMYVYLKF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-NMYVYLKF.js","../components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACA;AACF,sDAA4B;AAC5B;AACA;ACPA,2EAAuB;AACvB,mCAA8C;AAG9C,2CAA0B;AAE1B,SAAS,QAAA,CAAS,EAAA,EAA8E;AAA9E,EAAA,IAAA,GAAA,EAAA,EAAA,EAAE,EAAA,UAPpB,EAAA,EAOkB,EAAA,EAAgB,MAAA,EAAA,wCAAA,EAAhB,EAAgB,CAAd,WAAA,CAAA,CAAA;AAClB,EAAA,uBACE,KAAA,CAAA,aAAA;AAAA,IAAC,iBAAA,CAAkB,IAAA;AAAA,IAAlB,6CAAA;AAAA,MACC,WAAA,EAAU,UAAA;AAAA,MACV,SAAA,EAAW,iCAAA;AAAA,QACT,mqBAAA;AAAA,QACA;AAAA,MACF;AAAA,IAAA,CAAA,EACI,KAAA,CAAA;AAAA,oBAEJ,KAAA,CAAA,aAAA;AAAA,MAAC,iBAAA,CAAkB,SAAA;AAAA,MAAlB;AAAA,QACC,WAAA,EAAU,oBAAA;AAAA,QACV,SAAA,EAAU;AAAA,MAAA,CAAA;AAAA,sBAEV,KAAA,CAAA,aAAA,CAAC,sBAAA,EAAA,IAAU;AAAA,IACb;AAAA,EACF,CAAA;AAEJ;ADQA;AACA;AACE;AACF,4BAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-NMYVYLKF.js","sourcesContent":[null,"\"use client\";\nimport * as React from 'react';\nimport { Checkbox as CheckboxPrimitive } from 'radix-ui';\n\nimport { cn } from '../../utils/ui';\nimport { CheckIcon } from 'lucide-react';\n\nfunction Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n return (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={cn(\n 'border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className=\"[&>svg]:size-3.5 grid place-content-center text-current transition-none\"\n >\n <CheckIcon />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n );\n}\n\nexport { Checkbox };\n"]}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSLADFPSLjs = require('./chunk-SLADFPSL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFCE22MQIjs = require('./chunk-FCE22MQI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWHQINNUBjs = require('./chunk-WHQINNUB.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWREXRSAAjs = require('./chunk-WREXRSAA.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkKB6BX6LAjs = require('./chunk-KB6BX6LA.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -30,8 +30,8 @@ function AppSidebar(_a) {
|
|
|
30
30
|
var _b;
|
|
31
31
|
const _a2 = props, { data, aslink } = _a2, rest = _chunk2NMEKWO5js.__objRest.call(void 0, _a2, ["data", "aslink"]);
|
|
32
32
|
const { context } = data;
|
|
33
|
-
return /* @__PURE__ */ React.createElement(
|
|
34
|
-
|
|
33
|
+
return /* @__PURE__ */ React.createElement(_chunkWREXRSAAjs.Sidebar, _chunk2NMEKWO5js.__spreadValues.call(void 0, { collapsible: "icon" }, rest), (context == null ? void 0 : context.items) && context.items.length > 0 && /* @__PURE__ */ React.createElement(_chunkWREXRSAAjs.SidebarHeader, null, /* @__PURE__ */ React.createElement(
|
|
34
|
+
_chunkSLADFPSLjs.ContextSwitcher,
|
|
35
35
|
{
|
|
36
36
|
items: context.items,
|
|
37
37
|
title: context.title,
|
|
@@ -50,8 +50,8 @@ function AppSidebar(_a) {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
)), /* @__PURE__ */ React.createElement(
|
|
54
|
-
|
|
53
|
+
)), /* @__PURE__ */ React.createElement(_chunkWREXRSAAjs.SidebarContent, null, /* @__PURE__ */ React.createElement(_chunkFCE22MQIjs.NavMenus, { menus: data.menus, aslink })), /* @__PURE__ */ React.createElement(_chunkWREXRSAAjs.SidebarFooter, null, data.user ? /* @__PURE__ */ React.createElement(_chunkWHQINNUBjs.NavUser, { user: data.user, menus: data.userMenus, aslink, onLogout: (_b = data.events) == null ? void 0 : _b.logout }) : /* @__PURE__ */ React.createElement(
|
|
54
|
+
_chunkKB6BX6LAjs.Button,
|
|
55
55
|
{
|
|
56
56
|
variant: "primary",
|
|
57
57
|
onClick: () => {
|
|
@@ -62,10 +62,10 @@ function AppSidebar(_a) {
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"Sign in"
|
|
65
|
-
)), /* @__PURE__ */ React.createElement(
|
|
65
|
+
)), /* @__PURE__ */ React.createElement(_chunkWREXRSAAjs.SidebarRail, null));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
exports.AppSidebar = AppSidebar;
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-NWL7BAHC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-NWL7BAHC.js","../layouts/sidebar1/app-sidebar.tsx"],"names":["_a","context"],"mappings":"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","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-NWL7BAHC.js","sourcesContent":[null,"\"use client\";\nimport * as React from 'react';\nimport { NavMenus } from './nav-menus';\nimport { NavUser, INavUser, INavUserMenuItem } from './nav-user';\nimport { ContextSwitcher, INavContext } from './context-switcher';\nimport { INavMenu } from './nav-menus';\nimport { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarRail } from '../../components/ui/sidebar';\nimport { Button } from '../../components/ui/button';\n\nexport interface ISidebarContext {\n title?: string;\n addText?: string;\n items?: INavContext[];\n canAdd?: boolean;\n}\n\nexport interface ISidebarData {\n user?: INavUser;\n context?: ISidebarContext;\n menus: INavMenu[];\n userMenus: INavUserMenuItem[];\n events?: {\n login?: () => void;\n logout?: (user: INavUser) => void;\n newContext?: () => void;\n contextSelect?: (context: INavContext) => void;\n };\n}\n\nexport function AppSidebar({\n ...props\n}: React.ComponentProps<typeof Sidebar> & {\n data: ISidebarData;\n aslink: React.ElementType;\n}) {\n const { data, aslink, ...rest } = props;\n const { context } = data;\n\n return (\n <Sidebar collapsible=\"icon\" {...rest}>\n {context?.items && context.items.length > 0 && (\n <SidebarHeader>\n <ContextSwitcher\n items={context.items}\n title={context.title}\n newContextText={context.addText}\n canAdd={context.canAdd}\n onContextAdd={() => {\n if (data.events?.newContext) {\n data.events.newContext();\n }\n }}\n onContextSelected={(context: INavContext) => {\n if (data.events?.contextSelect) {\n data.events.contextSelect(context);\n }\n }}\n />\n </SidebarHeader>\n )}\n\n <SidebarContent>\n <NavMenus menus={data.menus} aslink={aslink} />\n </SidebarContent>\n\n <SidebarFooter>\n {data.user ? (\n <NavUser user={data.user} menus={data.userMenus} aslink={aslink} onLogout={data.events?.logout} />\n ) : (\n <Button\n variant=\"primary\"\n onClick={() => {\n if (data.events?.login) {\n data.events.login();\n }\n }}\n >\n Sign in\n </Button>\n )}\n </SidebarFooter>\n\n <SidebarRail />\n </Sidebar>\n );\n}\n"]}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button
|
|
3
|
+
} from "./chunk-7BYWDRRI.mjs";
|
|
4
|
+
import {
|
|
5
|
+
cn
|
|
6
|
+
} from "./chunk-KGUUDFJE.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__objRest,
|
|
9
|
+
__spreadValues
|
|
10
|
+
} from "./chunk-YOSPWY5K.mjs";
|
|
11
|
+
|
|
12
|
+
// components/ui/dialog.tsx
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
15
|
+
import { XIcon } from "lucide-react";
|
|
16
|
+
function Dialog(_a) {
|
|
17
|
+
var props = __objRest(_a, []);
|
|
18
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
19
|
+
}
|
|
20
|
+
function DialogTrigger(_a) {
|
|
21
|
+
var props = __objRest(_a, []);
|
|
22
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
23
|
+
}
|
|
24
|
+
function DialogPortal(_a) {
|
|
25
|
+
var props = __objRest(_a, []);
|
|
26
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
27
|
+
}
|
|
28
|
+
function DialogClose(_a) {
|
|
29
|
+
var props = __objRest(_a, []);
|
|
30
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
31
|
+
}
|
|
32
|
+
function DialogOverlay(_a) {
|
|
33
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
34
|
+
return /* @__PURE__ */ React.createElement(
|
|
35
|
+
DialogPrimitive.Overlay,
|
|
36
|
+
__spreadValues({
|
|
37
|
+
"data-slot": "dialog-overlay",
|
|
38
|
+
className: cn(
|
|
39
|
+
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",
|
|
40
|
+
className
|
|
41
|
+
)
|
|
42
|
+
}, props)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
function DialogContent(_a) {
|
|
46
|
+
var _b = _a, {
|
|
47
|
+
className,
|
|
48
|
+
children,
|
|
49
|
+
showCloseButton = true
|
|
50
|
+
} = _b, props = __objRest(_b, [
|
|
51
|
+
"className",
|
|
52
|
+
"children",
|
|
53
|
+
"showCloseButton"
|
|
54
|
+
]);
|
|
55
|
+
return /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
|
|
56
|
+
DialogPrimitive.Content,
|
|
57
|
+
__spreadValues({
|
|
58
|
+
"data-slot": "dialog-content",
|
|
59
|
+
"aria-describedby": props["aria-describedby"] || void 0,
|
|
60
|
+
className: cn(
|
|
61
|
+
"bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none",
|
|
62
|
+
className
|
|
63
|
+
)
|
|
64
|
+
}, props),
|
|
65
|
+
children,
|
|
66
|
+
showCloseButton && /* @__PURE__ */ React.createElement(DialogPrimitive.Close, { "data-slot": "dialog-close", asChild: true }, /* @__PURE__ */ React.createElement(Button, { variant: "ghost", className: "absolute top-2 right-2", size: "icon-sm" }, /* @__PURE__ */ React.createElement(XIcon, null), /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close")))
|
|
67
|
+
));
|
|
68
|
+
}
|
|
69
|
+
function DialogHeader(_a) {
|
|
70
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
71
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({ "data-slot": "dialog-header", className: cn("gap-2 flex flex-col", className) }, props));
|
|
72
|
+
}
|
|
73
|
+
function DialogFooter(_a) {
|
|
74
|
+
var _b = _a, {
|
|
75
|
+
className,
|
|
76
|
+
showCloseButton = false,
|
|
77
|
+
children
|
|
78
|
+
} = _b, props = __objRest(_b, [
|
|
79
|
+
"className",
|
|
80
|
+
"showCloseButton",
|
|
81
|
+
"children"
|
|
82
|
+
]);
|
|
83
|
+
return /* @__PURE__ */ React.createElement(
|
|
84
|
+
"div",
|
|
85
|
+
__spreadValues({
|
|
86
|
+
"data-slot": "dialog-footer",
|
|
87
|
+
className: cn(
|
|
88
|
+
"bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
89
|
+
className
|
|
90
|
+
)
|
|
91
|
+
}, props),
|
|
92
|
+
children,
|
|
93
|
+
showCloseButton && /* @__PURE__ */ React.createElement(DialogPrimitive.Close, { asChild: true }, /* @__PURE__ */ React.createElement(Button, { variant: "secondary" }, "Close"))
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
function DialogTitle(_a) {
|
|
97
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
98
|
+
return /* @__PURE__ */ React.createElement(
|
|
99
|
+
DialogPrimitive.Title,
|
|
100
|
+
__spreadValues({
|
|
101
|
+
"data-slot": "dialog-title",
|
|
102
|
+
className: cn("text-base leading-none font-medium cn-font-heading", className)
|
|
103
|
+
}, props)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
function DialogDescription(_a) {
|
|
107
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
108
|
+
return /* @__PURE__ */ React.createElement(
|
|
109
|
+
DialogPrimitive.Description,
|
|
110
|
+
__spreadValues({
|
|
111
|
+
"data-slot": "dialog-description",
|
|
112
|
+
className: cn(
|
|
113
|
+
"text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3",
|
|
114
|
+
className
|
|
115
|
+
)
|
|
116
|
+
}, props)
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export {
|
|
121
|
+
Dialog,
|
|
122
|
+
DialogTrigger,
|
|
123
|
+
DialogPortal,
|
|
124
|
+
DialogClose,
|
|
125
|
+
DialogOverlay,
|
|
126
|
+
DialogContent,
|
|
127
|
+
DialogHeader,
|
|
128
|
+
DialogFooter,
|
|
129
|
+
DialogTitle,
|
|
130
|
+
DialogDescription
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=chunk-OPNHC6JN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../components/ui/dialog.tsx"],"sourcesContent":["\"use client\";\nimport * as React from 'react';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\n\nimport { cn } from '../../utils/ui';\nimport { Button } from './button';\nimport { XIcon } from 'lucide-react';\n\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n aria-describedby={props['aria-describedby'] || undefined}\n className={cn(\n 'bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none',\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" asChild>\n <Button variant=\"ghost\" className=\"absolute top-2 right-2\" size=\"icon-sm\">\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </Button>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-header\" className={cn('gap-2 flex flex-col', className)} {...props} />;\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<'div'> & {\n showCloseButton?: boolean;\n}) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n 'bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close asChild>\n <Button variant=\"secondary\">Close</Button>\n </DialogPrimitive.Close>\n )}\n </div>\n );\n}\n\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('text-base leading-none font-medium cn-font-heading', className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\n 'text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":"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","names":[]}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkUKPBHVOTjs = require('./chunk-UKPBHVOT.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkPSPAJNNBjs = require('./chunk-PSPAJNNB.js');
|
|
@@ -21,11 +21,11 @@ function UserMenus({
|
|
|
21
21
|
aslink
|
|
22
22
|
}) {
|
|
23
23
|
const LinkComponent = aslink != null ? aslink : "button";
|
|
24
|
-
return /* @__PURE__ */ _react2.default.createElement(
|
|
24
|
+
return /* @__PURE__ */ _react2.default.createElement(_chunkUKPBHVOTjs.DropdownMenu, null, /* @__PURE__ */ _react2.default.createElement(_chunkUKPBHVOTjs.DropdownMenuTrigger, { asChild: true }, trigger != null ? trigger : /* @__PURE__ */ _react2.default.createElement("button", { className: "flex items-center justify-center p-2 bg-blue-500 hover:bg-blue-600 active:bg-blue-700 text-white rounded-full cursor-pointer" }, /* @__PURE__ */ _react2.default.createElement(_lucidereact.UserCircle, null))), /* @__PURE__ */ _react2.default.createElement(_chunkUKPBHVOTjs.DropdownMenuContent, { className: "w-56", align: "start" }, sections.map((section, index) => {
|
|
25
25
|
var _a;
|
|
26
|
-
return /* @__PURE__ */ _react2.default.createElement("div", { key: (_a = section.label) != null ? _a : index }, section.label && /* @__PURE__ */ _react2.default.createElement(
|
|
26
|
+
return /* @__PURE__ */ _react2.default.createElement("div", { key: (_a = section.label) != null ? _a : index }, section.label && /* @__PURE__ */ _react2.default.createElement(_chunkUKPBHVOTjs.DropdownMenuLabel, null, section.label), section.items && section.items.length > 0 && /* @__PURE__ */ _react2.default.createElement(_chunkUKPBHVOTjs.DropdownMenuGroup, null, section.items.map((item) => {
|
|
27
27
|
var _a2, _b;
|
|
28
|
-
return /* @__PURE__ */ _react2.default.createElement(
|
|
28
|
+
return /* @__PURE__ */ _react2.default.createElement(_chunkUKPBHVOTjs.DropdownMenuItem, { key: item.label }, item.link ? /* @__PURE__ */ _react2.default.createElement(
|
|
29
29
|
LinkComponent,
|
|
30
30
|
{
|
|
31
31
|
to: (_a2 = item.link) != null ? _a2 : "/",
|
|
@@ -41,11 +41,11 @@ function UserMenus({
|
|
|
41
41
|
},
|
|
42
42
|
item.label
|
|
43
43
|
));
|
|
44
|
-
})), section.separator && /* @__PURE__ */ _react2.default.createElement(
|
|
44
|
+
})), section.separator && /* @__PURE__ */ _react2.default.createElement(_chunkUKPBHVOTjs.DropdownMenuSeparator, null));
|
|
45
45
|
})));
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
exports.UserMenus = UserMenus;
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-OUVM5NST.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-OUVM5NST.js","../layouts/simple/user-menu.tsx"],"names":["_a"],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B;AACA;ACZA,4EAAkB;AAClB,2CAA2B;AAkBpB,SAAS,SAAA,CAAU;AAAA,EACxB,QAAA;AAAA,EACA,OAAA;AAAA,EACA;AACF,CAAA,EAIG;AACD,EAAA,MAAM,cAAA,EAAgB,OAAA,GAAA,KAAA,EAAA,OAAA,EAAU,QAAA;AAEhC,EAAA,uBACE,eAAA,CAAA,aAAA,CAAC,6BAAA,EAAA,IAAA,kBACC,eAAA,CAAA,aAAA,CAAC,oCAAA,EAAA,EAAoB,OAAA,EAAO,KAAA,CAAA,EACzB,QAAA,GAAA,KAAA,EAAA,QAAA,kBACC,eAAA,CAAA,aAAA,CAAC,QAAA,EAAA,EAAO,SAAA,EAAU,+HAAA,CAAA,kBAChB,eAAA,CAAA,aAAA,CAAC,uBAAA,EAAA,IAAW,CACd,CAEJ,CAAA,kBACA,eAAA,CAAA,aAAA,CAAC,oCAAA,EAAA,EAAoB,SAAA,EAAU,MAAA,EAAO,KAAA,EAAM,QAAA,CAAA,EACzC,QAAA,CAAS,GAAA,CAAI,CAAC,OAAA,EAAS,KAAA,EAAA,GAAU;AAzC1C,IAAA,IAAA,EAAA;AA0CU,IAAA,uBACE,eAAA,CAAA,aAAA,CAAC,KAAA,EAAA,EAAI,GAAA,EAAA,CAAK,GAAA,EAAA,OAAA,CAAQ,KAAA,EAAA,GAAR,KAAA,EAAA,GAAA,EAAiB,MAAA,CAAA,EACxB,OAAA,CAAQ,MAAA,mBAAS,eAAA,CAAA,aAAA,CAAC,kCAAA,EAAA,IAAA,EAAmB,OAAA,CAAQ,KAAM,CAAA,EACnD,OAAA,CAAQ,MAAA,GAAS,OAAA,CAAQ,KAAA,CAAM,OAAA,EAAS,EAAA,mBACvC,eAAA,CAAA,aAAA,CAAC,kCAAA,EAAA,IAAA,EACE,OAAA,CAAQ,KAAA,CAAM,GAAA,CAAI,CAAC,IAAA,EAAA,GAAS;AA/C/C,MAAA,IAAAA,GAAAA,EAAA,EAAA;AAgDoB,MAAA,uBACE,eAAA,CAAA,aAAA,CAAC,iCAAA,EAAA,EAAiB,GAAA,EAAK,IAAA,CAAK,MAAA,CAAA,EACzB,IAAA,CAAK,KAAA,kBACJ,eAAA,CAAA,aAAA;AAAA,QAAC,aAAA;AAAA,QAAA;AAAA,UACC,EAAA,EAAA,CAAIA,IAAAA,EAAA,IAAA,CAAK,IAAA,EAAA,GAAL,KAAA,EAAAA,IAAAA,EAAa,GAAA;AAAA,UACjB,IAAA,EAAA,CAAM,GAAA,EAAA,IAAA,CAAK,IAAA,EAAA,GAAL,KAAA,EAAA,GAAA,EAAa,GAAA;AAAA,UACnB,SAAA,EAAW,iCAAA,iCAAG,EAAmC,IAAA,CAAK,SAAS;AAAA,QAAA,CAAA;AAAA,QAE9D,IAAA,CAAK;AAAA,MACR,EAAA,kBAEA,eAAA,CAAA,aAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACC,OAAA,EAAS,IAAA,CAAK,MAAA;AAAA,UACd,SAAA,EAAW,iCAAA,iCAAG,EAAmC,IAAA,CAAK,SAAS;AAAA,QAAA,CAAA;AAAA,QAE9D,IAAA,CAAK;AAAA,MACR,CAEJ,CAAA;AAAA,IAEJ,CAAC,CACH,CAAA,EAED,OAAA,CAAQ,UAAA,mBAAa,eAAA,CAAA,aAAA,CAAC,sCAAA,EAAA,IAAsB,CAC/C,CAAA;AAAA,EAEJ,CAAC,CACH,CACF,CAAA;AAEJ;ADjCA;AACA;AACE;AACF,8BAAC","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-OUVM5NST.js","sourcesContent":[null,"\"use client\";\nimport React from 'react';\nimport { UserCircle } from 'lucide-react';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from '../../components/ui/dropdown-menu';\nimport { cn } from '../../utils/ui';\nimport type { MenuItem, UserMenuSection } from './types';\n\nexport function UserMenus({\n sections,\n trigger,\n aslink,\n}: {\n sections: UserMenuSection[];\n trigger?: React.ReactNode;\n aslink: React.ElementType;\n}) {\n const LinkComponent = aslink ?? 'button';\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n {trigger ?? (\n <button className=\"flex items-center justify-center p-2 bg-blue-500 hover:bg-blue-600 active:bg-blue-700 text-white rounded-full cursor-pointer\">\n <UserCircle />\n </button>\n )}\n </DropdownMenuTrigger>\n <DropdownMenuContent className=\"w-56\" align=\"start\">\n {sections.map((section, index) => {\n return (\n <div key={section.label ?? index}>\n {section.label && <DropdownMenuLabel>{section.label}</DropdownMenuLabel>}\n {section.items && section.items.length > 0 && (\n <DropdownMenuGroup>\n {section.items.map((item) => {\n return (\n <DropdownMenuItem key={item.label}>\n {item.link ? (\n <LinkComponent\n to={item.link ?? '/'}\n href={item.link ?? '/'}\n className={cn('w-full text-left cursor-pointer', item.className)}\n >\n {item.label}\n </LinkComponent>\n ) : (\n <button\n onClick={item.action}\n className={cn('w-full text-left cursor-pointer', item.className)}\n >\n {item.label}\n </button>\n )}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuGroup>\n )}\n {section.separator && <DropdownMenuSeparator />}\n </div>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "./chunk-KGUUDFJE.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "./chunk-YOSPWY5K.mjs";
|
|
8
|
+
|
|
9
|
+
// components/ui/checkbox.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
12
|
+
import { CheckIcon } from "lucide-react";
|
|
13
|
+
function Checkbox(_a) {
|
|
14
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
15
|
+
return /* @__PURE__ */ React.createElement(
|
|
16
|
+
CheckboxPrimitive.Root,
|
|
17
|
+
__spreadValues({
|
|
18
|
+
"data-slot": "checkbox",
|
|
19
|
+
className: cn(
|
|
20
|
+
"border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
21
|
+
className
|
|
22
|
+
)
|
|
23
|
+
}, props),
|
|
24
|
+
/* @__PURE__ */ React.createElement(
|
|
25
|
+
CheckboxPrimitive.Indicator,
|
|
26
|
+
{
|
|
27
|
+
"data-slot": "checkbox-indicator",
|
|
28
|
+
className: "[&>svg]:size-3.5 grid place-content-center text-current transition-none"
|
|
29
|
+
},
|
|
30
|
+
/* @__PURE__ */ React.createElement(CheckIcon, null)
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
Checkbox
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-QCHBJMD6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../components/ui/checkbox.tsx"],"sourcesContent":["\"use client\";\nimport * as React from 'react';\nimport { Checkbox as CheckboxPrimitive } from 'radix-ui';\n\nimport { cn } from '../../utils/ui';\nimport { CheckIcon } from 'lucide-react';\n\nfunction Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n return (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={cn(\n 'border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className=\"[&>svg]:size-3.5 grid place-content-center text-current transition-none\"\n >\n <CheckIcon />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n );\n}\n\nexport { Checkbox };\n"],"mappings":";;;;;;;;;AACA,YAAY,WAAW;AACvB,SAAS,YAAY,yBAAyB;AAG9C,SAAS,iBAAiB;AAE1B,SAAS,SAAS,IAA8E;AAA9E,eAAE,YAPpB,IAOkB,IAAgB,kBAAhB,IAAgB,CAAd;AAClB,SACE;AAAA,IAAC,kBAAkB;AAAA,IAAlB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,IAEJ;AAAA,MAAC,kBAAkB;AAAA,MAAlB;AAAA,QACC,aAAU;AAAA,QACV,WAAU;AAAA;AAAA,MAEV,oCAAC,eAAU;AAAA,IACb;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "./chunk-KGUUDFJE.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "./chunk-YOSPWY5K.mjs";
|
|
8
|
+
|
|
9
|
+
// components/ui/input.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
var baseClassName = [
|
|
12
|
+
"dark:bg-input/30",
|
|
13
|
+
"border-input",
|
|
14
|
+
"focus-visible:border-ring",
|
|
15
|
+
"focus-visible:ring-ring/50",
|
|
16
|
+
"aria-invalid:ring-destructive/20",
|
|
17
|
+
"dark:aria-invalid:ring-destructive/40",
|
|
18
|
+
"aria-invalid:border-destructive",
|
|
19
|
+
"dark:aria-invalid:border-destructive/50",
|
|
20
|
+
"disabled:bg-input/50",
|
|
21
|
+
"dark:disabled:bg-input/80",
|
|
22
|
+
"h-8",
|
|
23
|
+
"rounded-sm",
|
|
24
|
+
"border",
|
|
25
|
+
"bg-transparent",
|
|
26
|
+
"px-2.5",
|
|
27
|
+
"py-1",
|
|
28
|
+
"text-base",
|
|
29
|
+
"transition-colors",
|
|
30
|
+
"file:h-6",
|
|
31
|
+
"file:text-sm",
|
|
32
|
+
"file:font-medium",
|
|
33
|
+
"focus-visible:ring-3",
|
|
34
|
+
"aria-invalid:ring-3",
|
|
35
|
+
"md:text-sm",
|
|
36
|
+
"w-full",
|
|
37
|
+
"min-w-0",
|
|
38
|
+
"outline-none",
|
|
39
|
+
"file:inline-flex",
|
|
40
|
+
"file:border-0",
|
|
41
|
+
"file:bg-transparent",
|
|
42
|
+
"file:text-foreground",
|
|
43
|
+
"placeholder:text-muted-foreground",
|
|
44
|
+
"disabled:pointer-events-none",
|
|
45
|
+
"disabled:cursor-not-allowed",
|
|
46
|
+
"disabled:opacity-50"
|
|
47
|
+
].join(" ");
|
|
48
|
+
var Input = React.forwardRef(
|
|
49
|
+
(_a, ref) => {
|
|
50
|
+
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
51
|
+
return /* @__PURE__ */ React.createElement("input", __spreadValues({ type, "data-slot": "input", className: cn(baseClassName, className), ref }, props));
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
Input
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=chunk-QF6PFV6M.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../components/ui/input.tsx"],"sourcesContent":["\"use client\";\nimport * as React from 'react';\n\nimport { cn } from '../../utils/ui';\n\nconst baseClassName = [\n 'dark:bg-input/30',\n 'border-input',\n 'focus-visible:border-ring',\n 'focus-visible:ring-ring/50',\n 'aria-invalid:ring-destructive/20',\n 'dark:aria-invalid:ring-destructive/40',\n 'aria-invalid:border-destructive',\n 'dark:aria-invalid:border-destructive/50',\n 'disabled:bg-input/50',\n 'dark:disabled:bg-input/80',\n 'h-8',\n 'rounded-sm',\n 'border',\n 'bg-transparent',\n 'px-2.5',\n 'py-1',\n 'text-base',\n 'transition-colors',\n 'file:h-6',\n 'file:text-sm',\n 'file:font-medium',\n 'focus-visible:ring-3',\n 'aria-invalid:ring-3',\n 'md:text-sm',\n 'w-full',\n 'min-w-0',\n 'outline-none',\n 'file:inline-flex',\n 'file:border-0',\n 'file:bg-transparent',\n 'file:text-foreground',\n 'placeholder:text-muted-foreground',\n 'disabled:pointer-events-none',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n].join(' ');\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(\n ({ className, type, ...props }, ref) => {\n return <input type={type} data-slot=\"input\" className={cn(baseClassName, className)} ref={ref} {...props} />;\n },\n);\n\nexport { Input };\n"],"mappings":";;;;;;;;;AACA,YAAY,WAAW;AAIvB,IAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,GAAG;AAEV,IAAM,QAAc;AAAA,EAClB,CAAC,IAA+B,QAAQ;AAAvC,iBAAE,aAAW,KA5ChB,IA4CG,IAAsB,kBAAtB,IAAsB,CAApB,aAAW;AACZ,WAAO,oCAAC,0BAAM,MAAY,aAAU,SAAQ,WAAW,GAAG,eAAe,SAAS,GAAG,OAAc,MAAO;AAAA,EAC5G;AACF;","names":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
var _chunkPSPAJNNBjs = require('./chunk-PSPAJNNB.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunk2NMEKWO5js = require('./chunk-2NMEKWO5.js');
|
|
9
|
+
|
|
10
|
+
// components/ui/popover.tsx
|
|
11
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
12
|
+
var _radixui = require('radix-ui');
|
|
13
|
+
function Popover(_a) {
|
|
14
|
+
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
15
|
+
return /* @__PURE__ */ React.createElement(_radixui.Popover.Root, _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "popover" }, props));
|
|
16
|
+
}
|
|
17
|
+
function PopoverTrigger(_a) {
|
|
18
|
+
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
19
|
+
return /* @__PURE__ */ React.createElement(_radixui.Popover.Trigger, _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "popover-trigger" }, props));
|
|
20
|
+
}
|
|
21
|
+
function PopoverContent(_a) {
|
|
22
|
+
var _b = _a, {
|
|
23
|
+
className,
|
|
24
|
+
align = "center",
|
|
25
|
+
sideOffset = 4
|
|
26
|
+
} = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, [
|
|
27
|
+
"className",
|
|
28
|
+
"align",
|
|
29
|
+
"sideOffset"
|
|
30
|
+
]);
|
|
31
|
+
return /* @__PURE__ */ React.createElement(_radixui.Popover.Portal, null, /* @__PURE__ */ React.createElement(
|
|
32
|
+
_radixui.Popover.Content,
|
|
33
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
34
|
+
"data-slot": "popover-content",
|
|
35
|
+
align,
|
|
36
|
+
sideOffset,
|
|
37
|
+
className: _chunkPSPAJNNBjs.cn.call(void 0,
|
|
38
|
+
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",
|
|
39
|
+
className
|
|
40
|
+
)
|
|
41
|
+
}, props)
|
|
42
|
+
));
|
|
43
|
+
}
|
|
44
|
+
function PopoverAnchor(_a) {
|
|
45
|
+
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
46
|
+
return /* @__PURE__ */ React.createElement(_radixui.Popover.Anchor, _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "popover-anchor" }, props));
|
|
47
|
+
}
|
|
48
|
+
function PopoverHeader(_a) {
|
|
49
|
+
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
50
|
+
return /* @__PURE__ */ React.createElement("div", _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "popover-header", className: _chunkPSPAJNNBjs.cn.call(void 0, "flex flex-col gap-0.5 text-sm", className) }, props));
|
|
51
|
+
}
|
|
52
|
+
function PopoverTitle(_a) {
|
|
53
|
+
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
54
|
+
return /* @__PURE__ */ React.createElement("div", _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "popover-title", className: _chunkPSPAJNNBjs.cn.call(void 0, "font-medium cn-font-heading", className) }, props));
|
|
55
|
+
}
|
|
56
|
+
function PopoverDescription(_a) {
|
|
57
|
+
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
58
|
+
return /* @__PURE__ */ React.createElement("p", _chunk2NMEKWO5js.__spreadValues.call(void 0, { "data-slot": "popover-description", className: _chunkPSPAJNNBjs.cn.call(void 0, "text-muted-foreground", className) }, props));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverAnchor = PopoverAnchor; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription;
|
|
70
|
+
//# sourceMappingURL=chunk-QHCOMBHI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-QHCOMBHI.js","../components/ui/popover.tsx"],"names":[],"mappings":"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","file":"/home/jahn/projects/shadcn-theme/packages/react/dist/chunk-QHCOMBHI.js","sourcesContent":[null,"\"use client\";\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\n\nimport { cn } from '../../utils/ui';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium cn-font-heading', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n"]}
|