@kamod-ch/ui 1.0.1 → 1.2.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/README.md +15 -3
- package/dist/{Accordion-D1PiNspd.d.ts → Accordion-BiCBkB8o.d.ts} +7 -1
- package/dist/{AlertDialog-GadhKjPC.d.ts → AlertDialog-CZ2taZg4.d.ts} +3 -3
- package/dist/Button-OI3VvO-J.d.ts +84 -0
- package/dist/{Collapsible-CW1hQwqV.d.ts → Collapsible-BdQqvk35.d.ts} +6 -1
- package/dist/{ComboboxValue-BGfXgtZt.d.ts → ComboboxValue-Cq6zoDkt.d.ts} +1 -1
- package/dist/{Dialog-BOIteLfe.d.ts → Dialog-DdD1sMwk.d.ts} +12 -1
- package/dist/{DialogContent-cQHSRQdT.d.ts → DialogContent-YWzwWdSv.d.ts} +6 -1
- package/dist/{Drawer-CdjXZxxK.d.ts → Drawer-8xfn9KLf.d.ts} +2 -2
- package/dist/{Dropdown-CVbWVKok.d.ts → Dropdown-CzDJJgXQ.d.ts} +32 -27
- package/dist/{FieldTitle-aSgThW-B.d.ts → FieldTitle-hsI0Y6Zm.d.ts} +13 -13
- package/dist/{HoverCard-aVEEtkyO.d.ts → HoverCard-CBBr-tT9.d.ts} +14 -14
- package/dist/{Input-Cem05el9.d.ts → Input-C_X0Xpn2.d.ts} +11 -11
- package/dist/{PopoverTrigger-CH_Kx2mn.d.ts → PopoverTrigger-CIPAh0h0.d.ts} +14 -14
- package/dist/{RadioGroup-BaElzLwa.d.ts → RadioGroup-BDF3NaXQ.d.ts} +8 -8
- package/dist/{Sheet-DZ-p-aHY.d.ts → Sheet-DVt5iTiK.d.ts} +1 -1
- package/dist/SidebarProvider-CoVCItNd.d.ts +160 -0
- package/dist/{Switch-CTTkNdqF.d.ts → Switch-BcNJFeRY.d.ts} +8 -8
- package/dist/{Tabs-CR-thcs6.d.ts → Tabs-CrXH3YED.d.ts} +18 -9
- package/dist/{Textarea-DbKkduOG.d.ts → Textarea-CST17pYW.d.ts} +11 -11
- package/dist/Toggle-BgvkYUI8.d.ts +49 -0
- package/dist/{ToggleGroup-UeYHzQe7.d.ts → ToggleGroup-CqYICGsS.d.ts} +42 -42
- package/dist/Typography-Df9IVmw2.d.ts +64 -0
- package/dist/{chunk-ZM67EKZC.js → chunk-22G3DW5M.js} +4 -4
- package/dist/{chunk-ZM67EKZC.js.map → chunk-22G3DW5M.js.map} +1 -1
- package/dist/{chunk-BDK7CDEI.js → chunk-2F3PWEDR.js} +3 -3
- package/dist/{chunk-BDK7CDEI.js.map → chunk-2F3PWEDR.js.map} +1 -1
- package/dist/{chunk-ZHAGKFSO.js → chunk-2SPOI3MX.js} +3 -3
- package/dist/{chunk-ZHAGKFSO.js.map → chunk-2SPOI3MX.js.map} +1 -1
- package/dist/chunk-2UTJHQTS.js +162 -0
- package/dist/chunk-2UTJHQTS.js.map +1 -0
- package/dist/{chunk-NKKMM6CK.js → chunk-3AFRSB5R.js} +3 -3
- package/dist/{chunk-NKKMM6CK.js.map → chunk-3AFRSB5R.js.map} +1 -1
- package/dist/{chunk-LCMPFPBN.js → chunk-3ETRJPBL.js} +3 -3
- package/dist/{chunk-LCMPFPBN.js.map → chunk-3ETRJPBL.js.map} +1 -1
- package/dist/{chunk-WAPRVVDQ.js → chunk-3HBKDY64.js} +3 -3
- package/dist/{chunk-WAPRVVDQ.js.map → chunk-3HBKDY64.js.map} +1 -1
- package/dist/{chunk-PPYJQNE5.js → chunk-3XMFQKWB.js} +9 -5
- package/dist/chunk-3XMFQKWB.js.map +1 -0
- package/dist/{chunk-HCTZJYHK.js → chunk-4SQKSVBH.js} +6 -6
- package/dist/chunk-4SQKSVBH.js.map +1 -0
- package/dist/{chunk-ZVAW22GX.js → chunk-4ZFKDNSK.js} +3 -3
- package/dist/{chunk-ZVAW22GX.js.map → chunk-4ZFKDNSK.js.map} +1 -1
- package/dist/{chunk-IJ4ZRIR4.js → chunk-53FZEAOJ.js} +5 -5
- package/dist/{chunk-IJ4ZRIR4.js.map → chunk-53FZEAOJ.js.map} +1 -1
- package/dist/{chunk-BYG2ULS3.js → chunk-5ATODZ6L.js} +5 -7
- package/dist/chunk-5ATODZ6L.js.map +1 -0
- package/dist/{chunk-TXKPDNRD.js → chunk-5I7ULBDP.js} +3 -3
- package/dist/{chunk-TXKPDNRD.js.map → chunk-5I7ULBDP.js.map} +1 -1
- package/dist/{chunk-UEXTD7ZB.js → chunk-6HFTTHSY.js} +3 -3
- package/dist/{chunk-UEXTD7ZB.js.map → chunk-6HFTTHSY.js.map} +1 -1
- package/dist/{chunk-6RASPU5N.js → chunk-7LWAWZHM.js} +4 -11
- package/dist/chunk-7LWAWZHM.js.map +1 -0
- package/dist/{chunk-RHNI5UQO.js → chunk-A6ZZZFZN.js} +4 -4
- package/dist/{chunk-RHNI5UQO.js.map → chunk-A6ZZZFZN.js.map} +1 -1
- package/dist/{chunk-V63YIVKJ.js → chunk-APZXMU2X.js} +4 -4
- package/dist/{chunk-V63YIVKJ.js.map → chunk-APZXMU2X.js.map} +1 -1
- package/dist/{chunk-6FYSVMH7.js → chunk-AYLEWD77.js} +3 -3
- package/dist/{chunk-6FYSVMH7.js.map → chunk-AYLEWD77.js.map} +1 -1
- package/dist/{chunk-D3DQ4ICC.js → chunk-BZMD4EZC.js} +4 -11
- package/dist/chunk-BZMD4EZC.js.map +1 -0
- package/dist/{chunk-PU5J5EPY.js → chunk-C7TARE5T.js} +5 -5
- package/dist/{chunk-PU5J5EPY.js.map → chunk-C7TARE5T.js.map} +1 -1
- package/dist/{chunk-5FBD2NTR.js → chunk-DDRX6NNW.js} +6 -9
- package/dist/chunk-DDRX6NNW.js.map +1 -0
- package/dist/{chunk-HHLQYMPT.js → chunk-DUTKHOH3.js} +4 -4
- package/dist/{chunk-HHLQYMPT.js.map → chunk-DUTKHOH3.js.map} +1 -1
- package/dist/chunk-EBXTNL52.js +719 -0
- package/dist/chunk-EBXTNL52.js.map +1 -0
- package/dist/{chunk-STRBBF45.js → chunk-FOQ32NEP.js} +5 -5
- package/dist/chunk-FOQ32NEP.js.map +1 -0
- package/dist/{chunk-UIA74JVN.js → chunk-FXG53XY2.js} +5 -5
- package/dist/chunk-FXG53XY2.js.map +1 -0
- package/dist/{chunk-2KY7P27I.js → chunk-G7LTWXRN.js} +3 -3
- package/dist/{chunk-2KY7P27I.js.map → chunk-G7LTWXRN.js.map} +1 -1
- package/dist/{chunk-6BK3PIRX.js → chunk-GD3VBO44.js} +6 -6
- package/dist/{chunk-6BK3PIRX.js.map → chunk-GD3VBO44.js.map} +1 -1
- package/dist/{chunk-MD6HHORY.js → chunk-GPRE2VWB.js} +3 -3
- package/dist/{chunk-MD6HHORY.js.map → chunk-GPRE2VWB.js.map} +1 -1
- package/dist/{chunk-QZX3RFIC.js → chunk-HJF5AV4L.js} +11 -34
- package/dist/chunk-HJF5AV4L.js.map +1 -0
- package/dist/{chunk-QFDTG2ZJ.js → chunk-HWPROYKB.js} +3 -3
- package/dist/{chunk-QFDTG2ZJ.js.map → chunk-HWPROYKB.js.map} +1 -1
- package/dist/chunk-ISISDJ3Z.js +205 -0
- package/dist/chunk-ISISDJ3Z.js.map +1 -0
- package/dist/{chunk-7AJT2E2Y.js → chunk-IW43BO47.js} +57 -19
- package/dist/chunk-IW43BO47.js.map +1 -0
- package/dist/{chunk-CLEC2RMU.js → chunk-JKEILBHG.js} +3 -3
- package/dist/{chunk-CLEC2RMU.js.map → chunk-JKEILBHG.js.map} +1 -1
- package/dist/{chunk-TFLSEEM4.js → chunk-KCN3GXRK.js} +3 -3
- package/dist/{chunk-TFLSEEM4.js.map → chunk-KCN3GXRK.js.map} +1 -1
- package/dist/{chunk-EMUPVA2F.js → chunk-KHV3WV6T.js} +4 -4
- package/dist/{chunk-EMUPVA2F.js.map → chunk-KHV3WV6T.js.map} +1 -1
- package/dist/{chunk-G6TV6TF7.js → chunk-KJ5PYCJG.js} +4 -12
- package/dist/chunk-KJ5PYCJG.js.map +1 -0
- package/dist/{chunk-5KS2VSX2.js → chunk-LAM4GIME.js} +4 -4
- package/dist/chunk-LAM4GIME.js.map +1 -0
- package/dist/{chunk-OCLVMKVC.js → chunk-MDXTENZ4.js} +8 -31
- package/dist/chunk-MDXTENZ4.js.map +1 -0
- package/dist/{chunk-CP55TVOV.js → chunk-MJUKNUFV.js} +3 -3
- package/dist/{chunk-CP55TVOV.js.map → chunk-MJUKNUFV.js.map} +1 -1
- package/dist/{chunk-GGTDJEE2.js → chunk-MTNLY7AY.js} +3 -3
- package/dist/{chunk-GGTDJEE2.js.map → chunk-MTNLY7AY.js.map} +1 -1
- package/dist/{chunk-67J4KBOW.js → chunk-NBIBBLP6.js} +10 -52
- package/dist/chunk-NBIBBLP6.js.map +1 -0
- package/dist/chunk-NBP4J2QF.js +200 -0
- package/dist/chunk-NBP4J2QF.js.map +1 -0
- package/dist/{chunk-NGKQBNZ5.js → chunk-NJYJCMKY.js} +3 -3
- package/dist/{chunk-NGKQBNZ5.js.map → chunk-NJYJCMKY.js.map} +1 -1
- package/dist/{chunk-COPT6I2D.js → chunk-NSEY5IC6.js} +9 -10
- package/dist/chunk-NSEY5IC6.js.map +1 -0
- package/dist/{chunk-UARVH66B.js → chunk-O4PHGLXF.js} +5 -5
- package/dist/{chunk-UARVH66B.js.map → chunk-O4PHGLXF.js.map} +1 -1
- package/dist/{chunk-J4DMQV64.js → chunk-OCZC4PDM.js} +3 -3
- package/dist/{chunk-J4DMQV64.js.map → chunk-OCZC4PDM.js.map} +1 -1
- package/dist/{chunk-IQH3XSOI.js → chunk-ODYHA3O5.js} +4 -4
- package/dist/{chunk-IQH3XSOI.js.map → chunk-ODYHA3O5.js.map} +1 -1
- package/dist/chunk-OJEZZVZB.js +9 -0
- package/dist/{chunk-CMBERB5B.js.map → chunk-OJEZZVZB.js.map} +1 -1
- package/dist/{chunk-7IOAIEIA.js → chunk-OTXP2QJ7.js} +6 -6
- package/dist/{chunk-7IOAIEIA.js.map → chunk-OTXP2QJ7.js.map} +1 -1
- package/dist/{chunk-JSHUWI3C.js → chunk-OUVUK3E7.js} +9 -9
- package/dist/chunk-OUVUK3E7.js.map +1 -0
- package/dist/{chunk-3KB54OYF.js → chunk-P6ICWO5B.js} +3 -3
- package/dist/{chunk-3KB54OYF.js.map → chunk-P6ICWO5B.js.map} +1 -1
- package/dist/{chunk-GIU6BZTW.js → chunk-P7PPE4P5.js} +8 -11
- package/dist/chunk-P7PPE4P5.js.map +1 -0
- package/dist/{chunk-XGFJJ2YB.js → chunk-PVQUVEZV.js} +4 -11
- package/dist/chunk-PVQUVEZV.js.map +1 -0
- package/dist/{chunk-LCWXIQKA.js → chunk-Q3RL7TOY.js} +4 -4
- package/dist/chunk-Q3RL7TOY.js.map +1 -0
- package/dist/{chunk-5Q4RBIMZ.js → chunk-Q5B6ROW6.js} +3 -3
- package/dist/{chunk-5Q4RBIMZ.js.map → chunk-Q5B6ROW6.js.map} +1 -1
- package/dist/{chunk-262EK2XT.js → chunk-Q7ZDP6DS.js} +9 -7
- package/dist/chunk-Q7ZDP6DS.js.map +1 -0
- package/dist/{chunk-4IBTERDG.js → chunk-QFTOABOJ.js} +3 -3
- package/dist/{chunk-4IBTERDG.js.map → chunk-QFTOABOJ.js.map} +1 -1
- package/dist/{chunk-JURNPBSW.js → chunk-QINEFXUA.js} +3 -3
- package/dist/{chunk-JURNPBSW.js.map → chunk-QINEFXUA.js.map} +1 -1
- package/dist/{chunk-FIOKWIJP.js → chunk-QWSD34JA.js} +4 -4
- package/dist/{chunk-FIOKWIJP.js.map → chunk-QWSD34JA.js.map} +1 -1
- package/dist/{chunk-Q5IUIA6B.js → chunk-RLBAA7WW.js} +3 -3
- package/dist/{chunk-Q5IUIA6B.js.map → chunk-RLBAA7WW.js.map} +1 -1
- package/dist/{chunk-2BQ54337.js → chunk-SEC7UN45.js} +5 -5
- package/dist/chunk-SEC7UN45.js.map +1 -0
- package/dist/chunk-SIA46B4Q.js +9 -0
- package/dist/{chunk-RTIFG4XT.js.map → chunk-SIA46B4Q.js.map} +1 -1
- package/dist/{chunk-X4HPHMYW.js → chunk-TMPADU74.js} +4 -4
- package/dist/{chunk-X4HPHMYW.js.map → chunk-TMPADU74.js.map} +1 -1
- package/dist/{chunk-YTHUHPE5.js → chunk-USPWL4KC.js} +3 -3
- package/dist/{chunk-YTHUHPE5.js.map → chunk-USPWL4KC.js.map} +1 -1
- package/dist/{chunk-U2UNWXBC.js → chunk-VEQ7X2PO.js} +7 -6
- package/dist/chunk-VEQ7X2PO.js.map +1 -0
- package/dist/{chunk-YZLPO4B2.js → chunk-WRXXU5F6.js} +4 -11
- package/dist/chunk-WRXXU5F6.js.map +1 -0
- package/dist/{chunk-XNYAQZIB.js → chunk-X4B6I3M4.js} +4 -4
- package/dist/{chunk-XNYAQZIB.js.map → chunk-X4B6I3M4.js.map} +1 -1
- package/dist/{chunk-JNF7FDJO.js → chunk-XCYEWILH.js} +4 -4
- package/dist/{chunk-JNF7FDJO.js.map → chunk-XCYEWILH.js.map} +1 -1
- package/dist/{chunk-V2MG5Y5F.js → chunk-XGVQXRLA.js} +4 -4
- package/dist/chunk-XGVQXRLA.js.map +1 -0
- package/dist/chunk-XIANSPQO.js +11 -0
- package/dist/chunk-XIANSPQO.js.map +1 -0
- package/dist/{chunk-UNWEH4Z6.js → chunk-XOMPJYYA.js} +4 -4
- package/dist/chunk-XOMPJYYA.js.map +1 -0
- package/dist/{chunk-UXWUFNXY.js → chunk-XSYSV3R3.js} +3 -3
- package/dist/{chunk-UXWUFNXY.js.map → chunk-XSYSV3R3.js.map} +1 -1
- package/dist/{chunk-ERBGZZ2U.js → chunk-XZYJUJED.js} +4 -4
- package/dist/chunk-XZYJUJED.js.map +1 -0
- package/dist/{chunk-PFV7YIEP.js → chunk-Z4JNYSV3.js} +4 -4
- package/dist/{chunk-PFV7YIEP.js.map → chunk-Z4JNYSV3.js.map} +1 -1
- package/dist/{chunk-4V3WHQJE.js → chunk-ZLSCHWTN.js} +4 -4
- package/dist/{chunk-4V3WHQJE.js.map → chunk-ZLSCHWTN.js.map} +1 -1
- package/dist/chunk-ZQ2WOX4X.js +29 -0
- package/dist/chunk-ZQ2WOX4X.js.map +1 -0
- package/dist/{chunk-NILG56Z7.js → chunk-ZROHNZDC.js} +4 -4
- package/dist/{chunk-NILG56Z7.js.map → chunk-ZROHNZDC.js.map} +1 -1
- package/dist/{chunk-PGOCR4LG.js → chunk-ZVYCUG4N.js} +4 -4
- package/dist/chunk-ZVYCUG4N.js.map +1 -0
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/index.js +3 -2
- package/dist/components/alert/index.d.ts +26 -26
- package/dist/components/alert/index.js +2 -2
- package/dist/components/alert-dialog/index.d.ts +6 -5
- package/dist/components/alert-dialog/index.js +6 -6
- package/dist/components/aspect-ratio/index.js +2 -2
- package/dist/components/avatar/index.d.ts +11 -11
- package/dist/components/avatar/index.js +2 -2
- package/dist/components/badge/index.d.ts +112 -112
- package/dist/components/badge/index.js +2 -2
- package/dist/components/breadcrumb/index.js +2 -2
- package/dist/components/button/index.d.ts +51 -51
- package/dist/components/button/index.js +3 -3
- package/dist/components/button-group/index.js +2 -2
- package/dist/components/calendar/index.js +10 -10
- package/dist/components/card/index.d.ts +22 -22
- package/dist/components/card/index.js +2 -1
- package/dist/components/carousel/index.js +3 -3
- package/dist/components/chart/index.js +2 -2
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/collapsible/index.js +3 -2
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/combobox/index.js +5 -5
- package/dist/components/command/index.js +7 -7
- package/dist/components/context-menu/index.d.ts +11 -11
- package/dist/components/context-menu/index.js +3 -3
- package/dist/components/data-table/index.js +3 -3
- package/dist/components/date-picker/index.js +6 -6
- package/dist/components/dialog/index.d.ts +26 -5
- package/dist/components/dialog/index.js +5 -5
- package/dist/components/direction/index.js +2 -2
- package/dist/components/drawer/index.d.ts +5 -4
- package/dist/components/drawer/index.js +5 -5
- package/dist/components/dropdown/index.d.ts +3 -3
- package/dist/components/dropdown/index.js +3 -3
- package/dist/components/dropzone/index.js +3 -3
- package/dist/components/empty/index.d.ts +6 -6
- package/dist/components/empty/index.js +2 -2
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/field/index.js +4 -4
- package/dist/components/hover-card/index.d.ts +2 -2
- package/dist/components/hover-card/index.js +2 -1
- package/dist/components/image/index.js +2 -2
- package/dist/components/input/index.d.ts +12 -12
- package/dist/components/input/index.js +3 -2
- package/dist/components/input-group/index.d.ts +56 -56
- package/dist/components/input-group/index.js +5 -5
- package/dist/components/input-otp/index.js +2 -2
- package/dist/components/item/index.d.ts +31 -31
- package/dist/components/item/index.js +3 -3
- package/dist/components/kbd/index.d.ts +8 -8
- package/dist/components/kbd/index.js +2 -2
- package/dist/components/label/index.d.ts +22 -22
- package/dist/components/label/index.js +3 -2
- package/dist/components/locale-segment-group/index.js +2 -2
- package/dist/components/menubar/index.js +3 -3
- package/dist/components/native-select/index.d.ts +34 -34
- package/dist/components/native-select/index.js +2 -1
- package/dist/components/navigation-menu/index.d.ts +2 -2
- package/dist/components/navigation-menu/index.js +3 -3
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.js +3 -3
- package/dist/components/popover/index.d.ts +22 -22
- package/dist/components/popover/index.js +4 -3
- package/dist/components/progress/index.js +2 -2
- package/dist/components/prose/index.js +2 -2
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/radio-group/index.js +3 -3
- package/dist/components/scroll-area/index.js +2 -2
- package/dist/components/select/index.js +3 -3
- package/dist/components/selectable-card/index.js +3 -3
- package/dist/components/separator/index.d.ts +8 -8
- package/dist/components/separator/index.js +3 -2
- package/dist/components/sheet/index.d.ts +5 -4
- package/dist/components/sheet/index.js +5 -5
- package/dist/components/sidebar/index.d.ts +15 -10
- package/dist/components/sidebar/index.js +13 -1
- package/dist/components/skeleton/index.d.ts +22 -22
- package/dist/components/skeleton/index.js +2 -1
- package/dist/components/slider/index.js +2 -2
- package/dist/components/spinner/index.js +2 -2
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +2 -2
- package/dist/components/table/index.js +3 -3
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/index.js +3 -3
- package/dist/components/textarea/index.d.ts +12 -12
- package/dist/components/textarea/index.js +3 -2
- package/dist/components/theme-toggle/index.js +4 -4
- package/dist/components/toggle/index.d.ts +1 -1
- package/dist/components/toggle/index.js +2 -2
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/toggle-group/index.js +2 -2
- package/dist/components/typography/index.d.ts +2 -2
- package/dist/components/typography/index.js +2 -2
- package/dist/components/video/index.js +2 -2
- package/dist/index.d.ts +24 -24
- package/dist/index.js +80 -79
- package/dist/lib/interactive/index.js +1 -1
- package/dist/lib/utils.d.ts +2 -1
- package/dist/lib/utils.js +1 -1
- package/dist/{navigationMenuTriggerStyle-BWnESpon.d.ts → navigationMenuTriggerStyle-DUhqCYxO.d.ts} +1 -1
- package/dist/theme.css +16 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +3 -0
- package/dist/utils.js.map +1 -0
- package/package.json +17 -13
- package/dist/Button-vQnkiVTI.d.ts +0 -84
- package/dist/SidebarProvider-IAihmyD7.d.ts +0 -46
- package/dist/Toggle-CseZl7XN.d.ts +0 -49
- package/dist/Typography-ccTtE182.d.ts +0 -64
- package/dist/chunk-262EK2XT.js.map +0 -1
- package/dist/chunk-2BQ54337.js.map +0 -1
- package/dist/chunk-5FBD2NTR.js.map +0 -1
- package/dist/chunk-5KS2VSX2.js.map +0 -1
- package/dist/chunk-67J4KBOW.js.map +0 -1
- package/dist/chunk-6RASPU5N.js.map +0 -1
- package/dist/chunk-7AJT2E2Y.js.map +0 -1
- package/dist/chunk-BYG2ULS3.js.map +0 -1
- package/dist/chunk-CMBERB5B.js +0 -9
- package/dist/chunk-COPT6I2D.js.map +0 -1
- package/dist/chunk-D3DQ4ICC.js.map +0 -1
- package/dist/chunk-ERBGZZ2U.js.map +0 -1
- package/dist/chunk-G6TV6TF7.js.map +0 -1
- package/dist/chunk-GIU6BZTW.js.map +0 -1
- package/dist/chunk-HCTZJYHK.js.map +0 -1
- package/dist/chunk-JSHUWI3C.js.map +0 -1
- package/dist/chunk-LCWXIQKA.js.map +0 -1
- package/dist/chunk-MKG3UAP6.js +0 -347
- package/dist/chunk-MKG3UAP6.js.map +0 -1
- package/dist/chunk-MS2ZNYCJ.js +0 -9
- package/dist/chunk-MS2ZNYCJ.js.map +0 -1
- package/dist/chunk-OCLVMKVC.js.map +0 -1
- package/dist/chunk-PGOCR4LG.js.map +0 -1
- package/dist/chunk-PPYJQNE5.js.map +0 -1
- package/dist/chunk-QZX3RFIC.js.map +0 -1
- package/dist/chunk-R565SY7K.js +0 -69
- package/dist/chunk-R565SY7K.js.map +0 -1
- package/dist/chunk-RTIFG4XT.js +0 -9
- package/dist/chunk-STRBBF45.js.map +0 -1
- package/dist/chunk-U2UNWXBC.js.map +0 -1
- package/dist/chunk-UEGIKBX6.js +0 -385
- package/dist/chunk-UEGIKBX6.js.map +0 -1
- package/dist/chunk-UIA74JVN.js.map +0 -1
- package/dist/chunk-UNWEH4Z6.js.map +0 -1
- package/dist/chunk-V2MG5Y5F.js.map +0 -1
- package/dist/chunk-X2YUFNK7.js +0 -18
- package/dist/chunk-X2YUFNK7.js.map +0 -1
- package/dist/chunk-XGFJJ2YB.js.map +0 -1
- package/dist/chunk-YZLPO4B2.js.map +0 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
4
|
+
import { a as InputProps } from './Input-C_X0Xpn2.js';
|
|
5
|
+
import { a as SeparatorProps } from './Separator-DCQYrnpB.js';
|
|
6
|
+
|
|
7
|
+
type SidebarMenuProps = JSX.HTMLAttributes<HTMLUListElement> & {
|
|
8
|
+
children?: ComponentChildren;
|
|
9
|
+
};
|
|
10
|
+
declare const SidebarMenu: ({ class: className, children, ...rest }: SidebarMenuProps) => JSX.Element;
|
|
11
|
+
type SidebarMenuItemProps = JSX.HTMLAttributes<HTMLLIElement> & {
|
|
12
|
+
children?: ComponentChildren;
|
|
13
|
+
};
|
|
14
|
+
declare const SidebarMenuItem: ({ class: className, children, ...rest }: SidebarMenuItemProps) => JSX.Element;
|
|
15
|
+
declare const sidebarMenuButton: tailwind_variants.TVReturnType<{
|
|
16
|
+
variant: {
|
|
17
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground";
|
|
18
|
+
outline: "bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]";
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
default: "h-8 text-sm";
|
|
22
|
+
sm: "h-7 text-xs";
|
|
23
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!";
|
|
24
|
+
};
|
|
25
|
+
}, undefined, string[], {
|
|
26
|
+
variant: {
|
|
27
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground";
|
|
28
|
+
outline: "bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]";
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
default: "h-8 text-sm";
|
|
32
|
+
sm: "h-7 text-xs";
|
|
33
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!";
|
|
34
|
+
};
|
|
35
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
36
|
+
variant: {
|
|
37
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground";
|
|
38
|
+
outline: "bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]";
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
default: "h-8 text-sm";
|
|
42
|
+
sm: "h-7 text-xs";
|
|
43
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!";
|
|
44
|
+
};
|
|
45
|
+
}, undefined>>;
|
|
46
|
+
type SidebarMenuButtonProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof sidebarMenuButton> & {
|
|
47
|
+
asChild?: boolean;
|
|
48
|
+
isActive?: boolean;
|
|
49
|
+
tooltip?: string | JSX.HTMLAttributes<HTMLDivElement>;
|
|
50
|
+
children?: ComponentChildren;
|
|
51
|
+
};
|
|
52
|
+
declare const SidebarMenuButton: ({ asChild, isActive, variant, size, tooltip, class: className, children, ...rest }: SidebarMenuButtonProps) => JSX.Element;
|
|
53
|
+
type SidebarMenuActionProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
54
|
+
asChild?: boolean;
|
|
55
|
+
showOnHover?: boolean;
|
|
56
|
+
children?: ComponentChildren;
|
|
57
|
+
};
|
|
58
|
+
declare const SidebarMenuAction: ({ class: className, asChild, showOnHover, children, ...rest }: SidebarMenuActionProps) => JSX.Element;
|
|
59
|
+
type SidebarMenuBadgeProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
60
|
+
children?: ComponentChildren;
|
|
61
|
+
};
|
|
62
|
+
declare const SidebarMenuBadge: ({ class: className, children, ...rest }: SidebarMenuBadgeProps) => JSX.Element;
|
|
63
|
+
type SidebarMenuSkeletonProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
64
|
+
showIcon?: boolean;
|
|
65
|
+
};
|
|
66
|
+
declare const SidebarMenuSkeleton: ({ class: className, showIcon, ...rest }: SidebarMenuSkeletonProps) => JSX.Element;
|
|
67
|
+
type SidebarMenuSubProps = JSX.HTMLAttributes<HTMLUListElement> & {
|
|
68
|
+
children?: ComponentChildren;
|
|
69
|
+
};
|
|
70
|
+
declare const SidebarMenuSub: ({ class: className, children, ...rest }: SidebarMenuSubProps) => JSX.Element;
|
|
71
|
+
type SidebarMenuSubItemProps = JSX.HTMLAttributes<HTMLLIElement> & {
|
|
72
|
+
children?: ComponentChildren;
|
|
73
|
+
};
|
|
74
|
+
declare const SidebarMenuSubItem: ({ class: className, children, ...rest }: SidebarMenuSubItemProps) => JSX.Element;
|
|
75
|
+
type SidebarMenuSubButtonProps = JSX.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
size?: "sm" | "md";
|
|
78
|
+
isActive?: boolean;
|
|
79
|
+
children?: ComponentChildren;
|
|
80
|
+
};
|
|
81
|
+
declare const SidebarMenuSubButton: ({ asChild, size, isActive, class: className, children, ...rest }: SidebarMenuSubButtonProps) => JSX.Element;
|
|
82
|
+
|
|
83
|
+
type SidebarInputProps = InputProps;
|
|
84
|
+
declare const SidebarInput: ({ class: className, ...rest }: SidebarInputProps) => JSX.Element;
|
|
85
|
+
type SidebarSeparatorProps = SeparatorProps;
|
|
86
|
+
declare const SidebarSeparator: ({ class: className, ...rest }: SidebarSeparatorProps) => JSX.Element;
|
|
87
|
+
type SidebarGroupProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
88
|
+
children?: ComponentChildren;
|
|
89
|
+
};
|
|
90
|
+
declare const SidebarGroup: ({ class: className, children, ...rest }: SidebarGroupProps) => JSX.Element;
|
|
91
|
+
type SidebarGroupLabelProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
92
|
+
asChild?: boolean;
|
|
93
|
+
children?: ComponentChildren;
|
|
94
|
+
};
|
|
95
|
+
declare const SidebarGroupLabel: ({ class: className, asChild, children, ...rest }: SidebarGroupLabelProps) => JSX.Element;
|
|
96
|
+
type SidebarGroupActionProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
97
|
+
asChild?: boolean;
|
|
98
|
+
children?: ComponentChildren;
|
|
99
|
+
};
|
|
100
|
+
declare const SidebarGroupAction: ({ class: className, asChild, children, ...rest }: SidebarGroupActionProps) => JSX.Element;
|
|
101
|
+
type SidebarGroupContentProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
102
|
+
children?: ComponentChildren;
|
|
103
|
+
};
|
|
104
|
+
declare const SidebarGroupContent: ({ class: className, children, ...rest }: SidebarGroupContentProps) => JSX.Element;
|
|
105
|
+
|
|
106
|
+
type SidebarRailProps = JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
107
|
+
declare const SidebarRail: ({ class: className, ...rest }: SidebarRailProps) => JSX.Element;
|
|
108
|
+
|
|
109
|
+
type SidebarInsetProps = JSX.HTMLAttributes<HTMLElement> & {
|
|
110
|
+
children?: ComponentChildren;
|
|
111
|
+
};
|
|
112
|
+
declare const SidebarInset: ({ class: className, children, ...rest }: SidebarInsetProps) => JSX.Element;
|
|
113
|
+
|
|
114
|
+
type SidebarFooterProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
115
|
+
children?: ComponentChildren;
|
|
116
|
+
};
|
|
117
|
+
declare const SidebarFooter: ({ class: className, children, ...rest }: SidebarFooterProps) => JSX.Element;
|
|
118
|
+
|
|
119
|
+
type SidebarContentProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
120
|
+
children?: ComponentChildren;
|
|
121
|
+
};
|
|
122
|
+
declare const SidebarContent: ({ class: className, children, ...rest }: SidebarContentProps) => JSX.Element;
|
|
123
|
+
|
|
124
|
+
type SidebarHeaderProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
125
|
+
children?: ComponentChildren;
|
|
126
|
+
};
|
|
127
|
+
declare const SidebarHeader: ({ class: className, children, ...rest }: SidebarHeaderProps) => JSX.Element;
|
|
128
|
+
|
|
129
|
+
type SidebarTriggerProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & {
|
|
130
|
+
class?: string;
|
|
131
|
+
};
|
|
132
|
+
declare const SidebarTrigger: ({ class: className, onClick, ...rest }: SidebarTriggerProps) => JSX.Element;
|
|
133
|
+
|
|
134
|
+
type SidebarProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
135
|
+
side?: "left" | "right";
|
|
136
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
137
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
138
|
+
children?: ComponentChildren;
|
|
139
|
+
};
|
|
140
|
+
declare const Sidebar: ({ side, variant, collapsible, class: className, children, ...rest }: SidebarProps) => JSX.Element;
|
|
141
|
+
|
|
142
|
+
type SidebarContextValue = {
|
|
143
|
+
state: "expanded" | "collapsed";
|
|
144
|
+
open: boolean;
|
|
145
|
+
setOpen: (open: boolean | ((prev: boolean) => boolean)) => void;
|
|
146
|
+
openMobile: boolean;
|
|
147
|
+
setOpenMobile: (open: boolean | ((prev: boolean) => boolean)) => void;
|
|
148
|
+
isMobile: boolean;
|
|
149
|
+
toggleSidebar: () => void;
|
|
150
|
+
};
|
|
151
|
+
declare const useSidebar: () => SidebarContextValue;
|
|
152
|
+
type SidebarProviderProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
153
|
+
defaultOpen?: boolean;
|
|
154
|
+
open?: boolean;
|
|
155
|
+
onOpenChange?: (open: boolean) => void;
|
|
156
|
+
children?: ComponentChildren;
|
|
157
|
+
};
|
|
158
|
+
declare const SidebarProvider: ({ defaultOpen, open: openProp, onOpenChange: setOpenProp, class: className, style, children, ...rest }: SidebarProviderProps) => JSX.Element;
|
|
159
|
+
|
|
160
|
+
export { type SidebarHeaderProps as A, type SidebarContentProps as B, type SidebarFooterProps as C, type SidebarInsetProps as D, type SidebarRailProps as E, type SidebarGroupProps as F, type SidebarMenuProps as G, Sidebar as S, SidebarContent as a, SidebarFooter as b, SidebarGroup as c, SidebarGroupAction as d, SidebarGroupContent as e, SidebarGroupLabel as f, SidebarHeader as g, SidebarInput as h, SidebarInset as i, SidebarMenu as j, SidebarMenuAction as k, SidebarMenuBadge as l, SidebarMenuButton as m, SidebarMenuItem as n, SidebarMenuSkeleton as o, SidebarMenuSub as p, SidebarMenuSubButton as q, SidebarMenuSubItem as r, type SidebarProps as s, SidebarProvider as t, type SidebarProviderProps as u, SidebarRail as v, SidebarSeparator as w, SidebarTrigger as x, useSidebar as y, type SidebarTriggerProps as z };
|
|
@@ -4,20 +4,20 @@ import { JSX, ComponentChildren } from 'preact';
|
|
|
4
4
|
|
|
5
5
|
declare const switchRoot: tailwind_variants.TVReturnType<{
|
|
6
6
|
size: {
|
|
7
|
-
default:
|
|
8
|
-
sm:
|
|
7
|
+
default: "h-6 w-11";
|
|
8
|
+
sm: "h-5 w-9";
|
|
9
9
|
};
|
|
10
10
|
}, undefined, string[], {
|
|
11
11
|
size: {
|
|
12
|
-
default:
|
|
13
|
-
sm:
|
|
12
|
+
default: "h-6 w-11";
|
|
13
|
+
sm: "h-5 w-9";
|
|
14
14
|
};
|
|
15
|
-
}, undefined, tailwind_variants.
|
|
15
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
16
16
|
size: {
|
|
17
|
-
default:
|
|
18
|
-
sm:
|
|
17
|
+
default: "h-6 w-11";
|
|
18
|
+
sm: "h-5 w-9";
|
|
19
19
|
};
|
|
20
|
-
}, undefined
|
|
20
|
+
}, undefined>>;
|
|
21
21
|
type SwitchVariants = VariantProps<typeof switchRoot>;
|
|
22
22
|
type SwitchProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "class"> & SwitchVariants & {
|
|
23
23
|
class?: string;
|
|
@@ -17,25 +17,34 @@ declare const TabsTrigger: ({ value, class: className, children, onClick, onKeyD
|
|
|
17
17
|
|
|
18
18
|
declare const tabsList: tailwind_variants.TVReturnType<{
|
|
19
19
|
variant: {
|
|
20
|
-
default:
|
|
21
|
-
line:
|
|
20
|
+
default: "";
|
|
21
|
+
line: "gap-1 rounded-none bg-transparent p-0 ring-0 group-data-[orientation=horizontal]/tabs:rounded-none";
|
|
22
22
|
};
|
|
23
23
|
}, undefined, string[], {
|
|
24
24
|
variant: {
|
|
25
|
-
default:
|
|
26
|
-
line:
|
|
25
|
+
default: "";
|
|
26
|
+
line: "gap-1 rounded-none bg-transparent p-0 ring-0 group-data-[orientation=horizontal]/tabs:rounded-none";
|
|
27
27
|
};
|
|
28
|
-
}, undefined, tailwind_variants.
|
|
28
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
29
29
|
variant: {
|
|
30
|
-
default:
|
|
31
|
-
line:
|
|
30
|
+
default: "";
|
|
31
|
+
line: "gap-1 rounded-none bg-transparent p-0 ring-0 group-data-[orientation=horizontal]/tabs:rounded-none";
|
|
32
32
|
};
|
|
33
|
-
}, undefined
|
|
33
|
+
}, undefined>>;
|
|
34
34
|
type TabsListProps = JSX.HTMLAttributes<HTMLDivElement> & VariantProps<typeof tabsList> & {
|
|
35
35
|
children?: ComponentChildren;
|
|
36
36
|
};
|
|
37
37
|
declare const TabsList: ({ variant, class: className, children, ...rest }: TabsListProps) => JSX.Element;
|
|
38
38
|
|
|
39
|
+
type TabsContextValue = {
|
|
40
|
+
value: string;
|
|
41
|
+
setValue: (next: string) => void;
|
|
42
|
+
orientation: "horizontal" | "vertical";
|
|
43
|
+
baseId: string;
|
|
44
|
+
triggerId: (tabValue: string) => string;
|
|
45
|
+
contentId: (tabValue: string) => string;
|
|
46
|
+
};
|
|
47
|
+
declare const useTabs: () => TabsContextValue;
|
|
39
48
|
type TabsProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
40
49
|
defaultValue: string;
|
|
41
50
|
syncKey?: string;
|
|
@@ -44,4 +53,4 @@ type TabsProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
|
44
53
|
};
|
|
45
54
|
declare const Tabs: ({ defaultValue, syncKey, orientation, class: className, children, ...rest }: TabsProps) => JSX.Element;
|
|
46
55
|
|
|
47
|
-
export { Tabs as T, TabsContent as a, TabsList as b, TabsTrigger as c, type TabsProps as d, type TabsListProps as e, type TabsTriggerProps as f, type TabsContentProps as g };
|
|
56
|
+
export { Tabs as T, TabsContent as a, TabsList as b, TabsTrigger as c, type TabsProps as d, type TabsListProps as e, type TabsTriggerProps as f, type TabsContentProps as g, useTabs as u };
|
|
@@ -4,23 +4,23 @@ import { JSX } from 'preact';
|
|
|
4
4
|
|
|
5
5
|
declare const textarea: tailwind_variants.TVReturnType<{
|
|
6
6
|
size: {
|
|
7
|
-
sm:
|
|
8
|
-
md:
|
|
9
|
-
lg:
|
|
7
|
+
sm: "min-h-16 px-2.5 py-1.5 text-sm";
|
|
8
|
+
md: "min-h-16 px-3 py-2 text-base";
|
|
9
|
+
lg: "min-h-24 px-4 py-3 text-lg";
|
|
10
10
|
};
|
|
11
11
|
}, undefined, string[], {
|
|
12
12
|
size: {
|
|
13
|
-
sm:
|
|
14
|
-
md:
|
|
15
|
-
lg:
|
|
13
|
+
sm: "min-h-16 px-2.5 py-1.5 text-sm";
|
|
14
|
+
md: "min-h-16 px-3 py-2 text-base";
|
|
15
|
+
lg: "min-h-24 px-4 py-3 text-lg";
|
|
16
16
|
};
|
|
17
|
-
}, undefined, tailwind_variants.
|
|
17
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
18
18
|
size: {
|
|
19
|
-
sm:
|
|
20
|
-
md:
|
|
21
|
-
lg:
|
|
19
|
+
sm: "min-h-16 px-2.5 py-1.5 text-sm";
|
|
20
|
+
md: "min-h-16 px-3 py-2 text-base";
|
|
21
|
+
lg: "min-h-24 px-4 py-3 text-lg";
|
|
22
22
|
};
|
|
23
|
-
}, undefined
|
|
23
|
+
}, undefined>>;
|
|
24
24
|
type TextareaProps = Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & VariantProps<typeof textarea>;
|
|
25
25
|
declare const Textarea: ({ size, class: className, ...rest }: TextareaProps) => JSX.Element;
|
|
26
26
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
4
|
+
|
|
5
|
+
declare const toggle: tailwind_variants.TVReturnType<{
|
|
6
|
+
variant: {
|
|
7
|
+
default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
|
|
8
|
+
outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
sm: "h-7 min-w-7 px-1.5 text-[11px] leading-none";
|
|
12
|
+
default: "h-8 min-w-8 px-2";
|
|
13
|
+
lg: "h-9 min-w-9 px-2.5 text-sm";
|
|
14
|
+
icon: "size-8 p-0";
|
|
15
|
+
};
|
|
16
|
+
}, undefined, string[], {
|
|
17
|
+
variant: {
|
|
18
|
+
default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
|
|
19
|
+
outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
sm: "h-7 min-w-7 px-1.5 text-[11px] leading-none";
|
|
23
|
+
default: "h-8 min-w-8 px-2";
|
|
24
|
+
lg: "h-9 min-w-9 px-2.5 text-sm";
|
|
25
|
+
icon: "size-8 p-0";
|
|
26
|
+
};
|
|
27
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
28
|
+
variant: {
|
|
29
|
+
default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
|
|
30
|
+
outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
|
|
31
|
+
};
|
|
32
|
+
size: {
|
|
33
|
+
sm: "h-7 min-w-7 px-1.5 text-[11px] leading-none";
|
|
34
|
+
default: "h-8 min-w-8 px-2";
|
|
35
|
+
lg: "h-9 min-w-9 px-2.5 text-sm";
|
|
36
|
+
icon: "size-8 p-0";
|
|
37
|
+
};
|
|
38
|
+
}, undefined>>;
|
|
39
|
+
type ToggleVariants = VariantProps<typeof toggle>;
|
|
40
|
+
type ToggleProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "class"> & ToggleVariants & {
|
|
41
|
+
class?: string;
|
|
42
|
+
defaultPressed?: boolean;
|
|
43
|
+
pressed?: boolean;
|
|
44
|
+
onPressedChange?: (next: boolean) => void;
|
|
45
|
+
children?: ComponentChildren;
|
|
46
|
+
};
|
|
47
|
+
declare const Toggle: ({ defaultPressed, pressed, onPressedChange, variant, size, class: className, children, onClick, ...rest }: ToggleProps) => JSX.Element;
|
|
48
|
+
|
|
49
|
+
export { Toggle as T };
|
|
@@ -4,38 +4,38 @@ import { JSX, ComponentChildren } from 'preact';
|
|
|
4
4
|
|
|
5
5
|
declare const toggleGroupItem$1: tailwind_variants.TVReturnType<{
|
|
6
6
|
variant: {
|
|
7
|
-
default:
|
|
8
|
-
outline:
|
|
9
|
-
pill:
|
|
7
|
+
default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
|
|
8
|
+
outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
|
|
9
|
+
pill: "rounded-full border border-transparent bg-muted/60 hover:bg-muted";
|
|
10
10
|
};
|
|
11
11
|
size: {
|
|
12
|
-
sm:
|
|
13
|
-
default:
|
|
14
|
-
lg:
|
|
12
|
+
sm: "h-7 min-w-7 gap-0.5 px-1.5 text-[11px] leading-none";
|
|
13
|
+
default: "h-8 min-w-8 gap-1 px-2";
|
|
14
|
+
lg: "h-9 min-w-9 gap-1.5 px-2.5 text-sm";
|
|
15
15
|
};
|
|
16
16
|
}, undefined, string[], {
|
|
17
17
|
variant: {
|
|
18
|
-
default:
|
|
19
|
-
outline:
|
|
20
|
-
pill:
|
|
18
|
+
default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
|
|
19
|
+
outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
|
|
20
|
+
pill: "rounded-full border border-transparent bg-muted/60 hover:bg-muted";
|
|
21
21
|
};
|
|
22
22
|
size: {
|
|
23
|
-
sm:
|
|
24
|
-
default:
|
|
25
|
-
lg:
|
|
23
|
+
sm: "h-7 min-w-7 gap-0.5 px-1.5 text-[11px] leading-none";
|
|
24
|
+
default: "h-8 min-w-8 gap-1 px-2";
|
|
25
|
+
lg: "h-9 min-w-9 gap-1.5 px-2.5 text-sm";
|
|
26
26
|
};
|
|
27
|
-
}, undefined, tailwind_variants.
|
|
27
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
28
28
|
variant: {
|
|
29
|
-
default:
|
|
30
|
-
outline:
|
|
31
|
-
pill:
|
|
29
|
+
default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
|
|
30
|
+
outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
|
|
31
|
+
pill: "rounded-full border border-transparent bg-muted/60 hover:bg-muted";
|
|
32
32
|
};
|
|
33
33
|
size: {
|
|
34
|
-
sm:
|
|
35
|
-
default:
|
|
36
|
-
lg:
|
|
34
|
+
sm: "h-7 min-w-7 gap-0.5 px-1.5 text-[11px] leading-none";
|
|
35
|
+
default: "h-8 min-w-8 gap-1 px-2";
|
|
36
|
+
lg: "h-9 min-w-9 gap-1.5 px-2.5 text-sm";
|
|
37
37
|
};
|
|
38
|
-
}, undefined
|
|
38
|
+
}, undefined>>;
|
|
39
39
|
type ToggleGroupItemVariants$1 = VariantProps<typeof toggleGroupItem$1>;
|
|
40
40
|
type ToggleGroupItemProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "class"> & ToggleGroupItemVariants$1 & {
|
|
41
41
|
class?: string;
|
|
@@ -47,38 +47,38 @@ declare const ToggleGroupItem: ({ class: className, value, variant, size, disabl
|
|
|
47
47
|
type ToggleGroupType = "single" | "multiple";
|
|
48
48
|
declare const toggleGroup: tailwind_variants.TVReturnType<{
|
|
49
49
|
orientation: {
|
|
50
|
-
horizontal:
|
|
51
|
-
vertical:
|
|
50
|
+
horizontal: "flex-row items-center";
|
|
51
|
+
vertical: "flex-col items-start";
|
|
52
52
|
};
|
|
53
53
|
spacing: {
|
|
54
|
-
none:
|
|
55
|
-
sm:
|
|
56
|
-
default:
|
|
57
|
-
lg:
|
|
54
|
+
none: "gap-0";
|
|
55
|
+
sm: "gap-0.5";
|
|
56
|
+
default: "gap-1";
|
|
57
|
+
lg: "gap-1.5";
|
|
58
58
|
};
|
|
59
59
|
}, undefined, "inline-flex items-center justify-center", {
|
|
60
60
|
orientation: {
|
|
61
|
-
horizontal:
|
|
62
|
-
vertical:
|
|
61
|
+
horizontal: "flex-row items-center";
|
|
62
|
+
vertical: "flex-col items-start";
|
|
63
63
|
};
|
|
64
64
|
spacing: {
|
|
65
|
-
none:
|
|
66
|
-
sm:
|
|
67
|
-
default:
|
|
68
|
-
lg:
|
|
65
|
+
none: "gap-0";
|
|
66
|
+
sm: "gap-0.5";
|
|
67
|
+
default: "gap-1";
|
|
68
|
+
lg: "gap-1.5";
|
|
69
69
|
};
|
|
70
|
-
}, undefined, tailwind_variants.
|
|
70
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
71
71
|
orientation: {
|
|
72
|
-
horizontal:
|
|
73
|
-
vertical:
|
|
72
|
+
horizontal: "flex-row items-center";
|
|
73
|
+
vertical: "flex-col items-start";
|
|
74
74
|
};
|
|
75
75
|
spacing: {
|
|
76
|
-
none:
|
|
77
|
-
sm:
|
|
78
|
-
default:
|
|
79
|
-
lg:
|
|
76
|
+
none: "gap-0";
|
|
77
|
+
sm: "gap-0.5";
|
|
78
|
+
default: "gap-1";
|
|
79
|
+
lg: "gap-1.5";
|
|
80
80
|
};
|
|
81
|
-
}, undefined
|
|
81
|
+
}, undefined>>;
|
|
82
82
|
declare const toggleGroupItem: tailwind_variants.TVReturnType<{
|
|
83
83
|
variant: {
|
|
84
84
|
default: undefined;
|
|
@@ -101,7 +101,7 @@ declare const toggleGroupItem: tailwind_variants.TVReturnType<{
|
|
|
101
101
|
default: undefined;
|
|
102
102
|
lg: undefined;
|
|
103
103
|
};
|
|
104
|
-
}, undefined, tailwind_variants.
|
|
104
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
105
105
|
variant: {
|
|
106
106
|
default: undefined;
|
|
107
107
|
outline: undefined;
|
|
@@ -112,7 +112,7 @@ declare const toggleGroupItem: tailwind_variants.TVReturnType<{
|
|
|
112
112
|
default: undefined;
|
|
113
113
|
lg: undefined;
|
|
114
114
|
};
|
|
115
|
-
}, undefined
|
|
115
|
+
}, undefined>>;
|
|
116
116
|
type ToggleGroupItemVariants = VariantProps<typeof toggleGroupItem>;
|
|
117
117
|
type ToggleGroupBaseProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "class"> & VariantProps<typeof toggleGroup> & ToggleGroupItemVariants & {
|
|
118
118
|
class?: string;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
4
|
+
|
|
5
|
+
declare const typography: tailwind_variants.TVReturnType<{
|
|
6
|
+
variant: {
|
|
7
|
+
h1: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl";
|
|
8
|
+
h2: "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0";
|
|
9
|
+
h3: "scroll-m-20 text-2xl font-semibold tracking-tight";
|
|
10
|
+
h4: "scroll-m-20 text-xl font-semibold tracking-tight";
|
|
11
|
+
p: "leading-7 [&:not(:first-child)]:mt-6";
|
|
12
|
+
blockquote: "mt-6 border-l-2 pl-6 italic";
|
|
13
|
+
code: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
|
|
14
|
+
inlineCode: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
|
|
15
|
+
list: "my-6 ml-6 list-disc [&>li]:mt-2";
|
|
16
|
+
table: "my-6 w-full overflow-y-auto";
|
|
17
|
+
lead: "text-xl text-muted-foreground";
|
|
18
|
+
large: "text-lg font-semibold";
|
|
19
|
+
muted: "text-sm text-muted-foreground";
|
|
20
|
+
small: "text-sm font-medium leading-none";
|
|
21
|
+
};
|
|
22
|
+
}, undefined, "text-foreground", {
|
|
23
|
+
variant: {
|
|
24
|
+
h1: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl";
|
|
25
|
+
h2: "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0";
|
|
26
|
+
h3: "scroll-m-20 text-2xl font-semibold tracking-tight";
|
|
27
|
+
h4: "scroll-m-20 text-xl font-semibold tracking-tight";
|
|
28
|
+
p: "leading-7 [&:not(:first-child)]:mt-6";
|
|
29
|
+
blockquote: "mt-6 border-l-2 pl-6 italic";
|
|
30
|
+
code: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
|
|
31
|
+
inlineCode: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
|
|
32
|
+
list: "my-6 ml-6 list-disc [&>li]:mt-2";
|
|
33
|
+
table: "my-6 w-full overflow-y-auto";
|
|
34
|
+
lead: "text-xl text-muted-foreground";
|
|
35
|
+
large: "text-lg font-semibold";
|
|
36
|
+
muted: "text-sm text-muted-foreground";
|
|
37
|
+
small: "text-sm font-medium leading-none";
|
|
38
|
+
};
|
|
39
|
+
}, undefined, tailwind_variants.TVReturnTypeLike<{
|
|
40
|
+
variant: {
|
|
41
|
+
h1: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl";
|
|
42
|
+
h2: "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0";
|
|
43
|
+
h3: "scroll-m-20 text-2xl font-semibold tracking-tight";
|
|
44
|
+
h4: "scroll-m-20 text-xl font-semibold tracking-tight";
|
|
45
|
+
p: "leading-7 [&:not(:first-child)]:mt-6";
|
|
46
|
+
blockquote: "mt-6 border-l-2 pl-6 italic";
|
|
47
|
+
code: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
|
|
48
|
+
inlineCode: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
|
|
49
|
+
list: "my-6 ml-6 list-disc [&>li]:mt-2";
|
|
50
|
+
table: "my-6 w-full overflow-y-auto";
|
|
51
|
+
lead: "text-xl text-muted-foreground";
|
|
52
|
+
large: "text-lg font-semibold";
|
|
53
|
+
muted: "text-sm text-muted-foreground";
|
|
54
|
+
small: "text-sm font-medium leading-none";
|
|
55
|
+
};
|
|
56
|
+
}, undefined>>;
|
|
57
|
+
type TypographyVariants = VariantProps<typeof typography>;
|
|
58
|
+
type TypographyProps = JSX.HTMLAttributes<HTMLElementTagNameMap[keyof HTMLElementTagNameMap]> & TypographyVariants & {
|
|
59
|
+
as?: keyof HTMLElementTagNameMap;
|
|
60
|
+
children?: ComponentChildren;
|
|
61
|
+
};
|
|
62
|
+
declare const Typography: ({ as, variant, class: className, children, ...rest }: TypographyProps) => JSX.Element;
|
|
63
|
+
|
|
64
|
+
export { Typography as T, type TypographyVariants as a, typography as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { button } from './chunk-
|
|
2
|
-
import { cn } from './chunk-
|
|
1
|
+
import { button } from './chunk-DDRX6NNW.js';
|
|
2
|
+
import { cn } from './chunk-XIANSPQO.js';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'preact/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
var Pagination = ({ class: className, children, ...rest }) => /* @__PURE__ */ jsx(
|
|
@@ -131,5 +131,5 @@ var PaginationPrevious = ({
|
|
|
131
131
|
);
|
|
132
132
|
|
|
133
133
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
134
|
-
//# sourceMappingURL=chunk-
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
134
|
+
//# sourceMappingURL=chunk-22G3DW5M.js.map
|
|
135
|
+
//# sourceMappingURL=chunk-22G3DW5M.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/pagination/Pagination.tsx","../src/components/pagination/PaginationContent.tsx","../src/components/pagination/pagination-icons.tsx","../src/components/pagination/PaginationEllipsis.tsx","../src/components/pagination/PaginationItem.tsx","../src/components/pagination/PaginationLink.tsx","../src/components/pagination/PaginationNext.tsx","../src/components/pagination/PaginationPrevious.tsx"],"names":["jsx","jsxs","Fragment"],"mappings":";;;;AAOO,IAAM,UAAA,GAAa,CAAC,EAAE,KAAA,EAAO,WAAW,QAAA,EAAU,GAAG,MAAK,qBAC/D,GAAA;AAAA,EAAC,KAAA;AAAA,EAAA;AAAA,IACC,YAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAU,YAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,oCAAA,EAAsC,SAAS,CAAA;AAAA,IACxD,GAAG,IAAA;AAAA,IAEH;AAAA;AACH;ACRK,IAAM,oBAAoB,CAAC;AAAA,EAChC,KAAA,EAAO,SAAA;AAAA,EACP,QAAA;AAAA,EACA,GAAG;AACL,CAAA,qBACEA,GAAAA;AAAA,EAAC,IAAA;AAAA,EAAA;AAAA,IACC,WAAA,EAAU,oBAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,4CAAA,EAA8C,SAAS,CAAA;AAAA,IAChE,GAAG,IAAA;AAAA,IAEH;AAAA;AACH;ACfF,IAAM,OAAA,GAA4C;AAAA,EAChD,KAAA,EAAO,4BAAA;AAAA,EACP,IAAA,EAAM,MAAA;AAAA,EACN,MAAA,EAAQ,cAAA;AAAA,EACR,cAAA,EAAgB,CAAA;AAAA,EAChB,gBAAA,EAAkB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EACE,QAAA,EAAA;AAAA,sBAAAF,IAAC,qBAAA,EAAA,EAAsB,CAAA;AAAA,sBACvBA,GAAAA,CAAC,MAAA,EAAA,EAAK,KAAA,EAAM,oBAAoB,QAAA,EAAA,IAAA,EAAK;AAAA,KAAA,EACvC;AAAA;AAEJ","file":"chunk-ZM67EKZC.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type PaginationProps = JSX.HTMLAttributes<HTMLElement> & {\n children?: ComponentChildren;\n};\n\nexport const Pagination = ({ class: className, children, ...rest }: PaginationProps) => (\n <nav\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n class={cn(\"mx-auto flex w-full justify-center\", className)}\n {...rest}\n >\n {children}\n </nav>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type PaginationContentProps = JSX.HTMLAttributes<HTMLUListElement> & {\n children?: ComponentChildren;\n};\n\nexport const PaginationContent = ({\n class: className,\n children,\n ...rest\n}: PaginationContentProps) => (\n <ul\n data-slot=\"pagination-content\"\n class={cn(\"flex flex-row items-center gap-1 list-none\", className)}\n {...rest}\n >\n {children}\n </ul>\n);\n","import type { JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nconst svgBase: JSX.SVGAttributes<SVGSVGElement> = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"aria-hidden\": true,\n};\n\nexport const PaginationChevronLeft = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n);\n\nexport const PaginationChevronRight = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n);\n\nexport const PaginationMoreHorizontal = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <circle cx=\"12\" cy=\"12\" r=\"1\" />\n <circle cx=\"19\" cy=\"12\" r=\"1\" />\n <circle cx=\"5\" cy=\"12\" r=\"1\" />\n </svg>\n);\n","import type { JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationMoreHorizontal } from \"./pagination-icons\";\n\nexport type PaginationEllipsisProps = JSX.HTMLAttributes<HTMLSpanElement>;\n\nexport const PaginationEllipsis = ({ class: className, ...rest }: PaginationEllipsisProps) => (\n <span\n data-slot=\"pagination-ellipsis\"\n aria-hidden\n class={cn(\"text-muted-foreground flex size-9 items-center justify-center\", className)}\n {...rest}\n >\n <PaginationMoreHorizontal />\n <span class=\"sr-only\">More pages</span>\n </span>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\n\nexport type PaginationItemProps = JSX.HTMLAttributes<HTMLLIElement> & {\n children?: ComponentChildren;\n};\n\nexport const PaginationItem = ({ children, ...rest }: PaginationItemProps) => (\n <li data-slot=\"pagination-item\" {...rest}>\n {children}\n </li>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\nimport type { VariantProps } from \"tailwind-variants\";\nimport { cn } from \"../../lib/utils\";\nimport { button } from \"../button/Button\";\n\nexport type PaginationLinkProps = Omit<JSX.AnchorHTMLAttributes<HTMLAnchorElement>, \"size\"> & {\n isActive?: boolean;\n size?: VariantProps<typeof button>[\"size\"];\n children?: ComponentChildren;\n \"data-slot\"?: string;\n};\n\nexport const PaginationLink = ({\n isActive = false,\n size = \"default\",\n class: className,\n \"data-slot\": dataSlot = \"pagination-link\",\n children,\n ...rest\n}: PaginationLinkProps) => {\n const r = rest as Record<string, unknown>;\n const restStyleClass = (r.class ?? r.className) as string | undefined;\n const { class: _c, className: _cn, ...anchorRest } = r;\n\n return (\n <a\n {...(anchorRest as JSX.AnchorHTMLAttributes<HTMLAnchorElement>)}\n data-slot={dataSlot}\n aria-current={isActive ? \"page\" : undefined}\n class={cn(\n button({ variant: isActive ? \"outline\" : \"ghost\", size }),\n \"h-9 min-w-9 justify-center px-2.5 [&_svg]:size-4 [&_svg]:shrink-0\",\n className,\n restStyleClass,\n )}\n >\n {children}\n </a>\n );\n};\n","import type { ComponentChildren } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationLink, type PaginationLinkProps } from \"./PaginationLink\";\nimport { PaginationChevronRight } from \"./pagination-icons\";\n\nexport type PaginationNextProps = Omit<PaginationLinkProps, \"children\"> & {\n children?: ComponentChildren;\n text?: string;\n};\n\nexport const PaginationNext = ({\n children,\n text = \"Next\",\n class: className,\n ...rest\n}: PaginationNextProps) => (\n <PaginationLink\n data-slot=\"pagination-next\"\n aria-label=\"Go to next page\"\n size=\"default\"\n class={cn(\"gap-1 pr-2.5 sm:pl-2.5\", className)}\n {...rest}\n >\n {children !== undefined && children !== null ? (\n children\n ) : (\n <>\n <span class=\"hidden sm:inline\">{text}</span>\n <PaginationChevronRight />\n </>\n )}\n </PaginationLink>\n);\n","import type { ComponentChildren } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationLink, type PaginationLinkProps } from \"./PaginationLink\";\nimport { PaginationChevronLeft } from \"./pagination-icons\";\n\nexport type PaginationPreviousProps = Omit<PaginationLinkProps, \"children\"> & {\n children?: ComponentChildren;\n text?: string;\n};\n\nexport const PaginationPrevious = ({\n children,\n text = \"Previous\",\n class: className,\n ...rest\n}: PaginationPreviousProps) => (\n <PaginationLink\n data-slot=\"pagination-previous\"\n aria-label=\"Go to previous page\"\n size=\"default\"\n class={cn(\"gap-1 pl-2.5 sm:pr-2.5\", className)}\n {...rest}\n >\n {children !== undefined && children !== null ? (\n children\n ) : (\n <>\n <PaginationChevronLeft />\n <span class=\"hidden sm:inline\">{text}</span>\n </>\n )}\n </PaginationLink>\n);\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/components/pagination/Pagination.tsx","../src/components/pagination/PaginationContent.tsx","../src/components/pagination/pagination-icons.tsx","../src/components/pagination/PaginationEllipsis.tsx","../src/components/pagination/PaginationItem.tsx","../src/components/pagination/PaginationLink.tsx","../src/components/pagination/PaginationNext.tsx","../src/components/pagination/PaginationPrevious.tsx"],"names":["jsx","jsxs","Fragment"],"mappings":";;;;AAOO,IAAM,UAAA,GAAa,CAAC,EAAE,KAAA,EAAO,WAAW,QAAA,EAAU,GAAG,MAAK,qBAC/D,GAAA;AAAA,EAAC,KAAA;AAAA,EAAA;AAAA,IACC,YAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAU,YAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,oCAAA,EAAsC,SAAS,CAAA;AAAA,IACxD,GAAG,IAAA;AAAA,IAEH;AAAA;AACH;ACRK,IAAM,oBAAoB,CAAC;AAAA,EAChC,KAAA,EAAO,SAAA;AAAA,EACP,QAAA;AAAA,EACA,GAAG;AACL,CAAA,qBACEA,GAAAA;AAAA,EAAC,IAAA;AAAA,EAAA;AAAA,IACC,WAAA,EAAU,oBAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,4CAAA,EAA8C,SAAS,CAAA;AAAA,IAChE,GAAG,IAAA;AAAA,IAEH;AAAA;AACH;ACfF,IAAM,OAAA,GAA4C;AAAA,EAChD,KAAA,EAAO,4BAAA;AAAA,EACP,IAAA,EAAM,MAAA;AAAA,EACN,MAAA,EAAQ,cAAA;AAAA,EACR,cAAA,EAAgB,CAAA;AAAA,EAChB,gBAAA,EAAkB,OAAA;AAAA,EAClB,iBAAA,EAAmB,OAAA;AAAA,EACnB,aAAA,EAAe;AACjB,CAAA;AAEO,IAAM,wBAAwB,CAAC;AAAA,EACpC,KAAA,EAAO,SAAA;AAAA,EACP,GAAG;AACL,CAAA,qBACEA,GAAAA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AAA;AAEJ","file":"chunk-22G3DW5M.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type PaginationProps = JSX.HTMLAttributes<HTMLElement> & {\n children?: ComponentChildren;\n};\n\nexport const Pagination = ({ class: className, children, ...rest }: PaginationProps) => (\n <nav\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n class={cn(\"mx-auto flex w-full justify-center\", className)}\n {...rest}\n >\n {children}\n </nav>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type PaginationContentProps = JSX.HTMLAttributes<HTMLUListElement> & {\n children?: ComponentChildren;\n};\n\nexport const PaginationContent = ({\n class: className,\n children,\n ...rest\n}: PaginationContentProps) => (\n <ul\n data-slot=\"pagination-content\"\n class={cn(\"flex flex-row items-center gap-1 list-none\", className)}\n {...rest}\n >\n {children}\n </ul>\n);\n","import type { JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nconst svgBase: JSX.SVGAttributes<SVGSVGElement> = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"aria-hidden\": true,\n};\n\nexport const PaginationChevronLeft = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n);\n\nexport const PaginationChevronRight = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n);\n\nexport const PaginationMoreHorizontal = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <circle cx=\"12\" cy=\"12\" r=\"1\" />\n <circle cx=\"19\" cy=\"12\" r=\"1\" />\n <circle cx=\"5\" cy=\"12\" r=\"1\" />\n </svg>\n);\n","import type { JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationMoreHorizontal } from \"./pagination-icons\";\n\nexport type PaginationEllipsisProps = JSX.HTMLAttributes<HTMLSpanElement>;\n\nexport const PaginationEllipsis = ({ class: className, ...rest }: PaginationEllipsisProps) => (\n <span\n data-slot=\"pagination-ellipsis\"\n aria-hidden\n class={cn(\"text-muted-foreground flex size-9 items-center justify-center\", className)}\n {...rest}\n >\n <PaginationMoreHorizontal />\n <span class=\"sr-only\">More pages</span>\n </span>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\n\nexport type PaginationItemProps = JSX.HTMLAttributes<HTMLLIElement> & {\n children?: ComponentChildren;\n};\n\nexport const PaginationItem = ({ children, ...rest }: PaginationItemProps) => (\n <li data-slot=\"pagination-item\" {...rest}>\n {children}\n </li>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\nimport type { VariantProps } from \"tailwind-variants\";\nimport { cn } from \"../../lib/utils\";\nimport { button } from \"../button/Button\";\n\nexport type PaginationLinkProps = Omit<JSX.AnchorHTMLAttributes<HTMLAnchorElement>, \"size\"> & {\n isActive?: boolean;\n size?: VariantProps<typeof button>[\"size\"];\n children?: ComponentChildren;\n \"data-slot\"?: string;\n};\n\nexport const PaginationLink = ({\n isActive = false,\n size = \"default\",\n class: className,\n \"data-slot\": dataSlot = \"pagination-link\",\n children,\n ...rest\n}: PaginationLinkProps) => {\n const r = rest as Record<string, unknown>;\n const restStyleClass = (r.class ?? r.className) as string | undefined;\n const { class: _c, className: _cn, ...anchorRest } = r;\n\n return (\n <a\n {...(anchorRest as JSX.AnchorHTMLAttributes<HTMLAnchorElement>)}\n data-slot={dataSlot}\n aria-current={isActive ? \"page\" : undefined}\n class={cn(\n button({ variant: isActive ? \"outline\" : \"ghost\", size }),\n \"h-9 min-w-9 justify-center px-2.5 [&_svg]:size-4 [&_svg]:shrink-0\",\n className,\n restStyleClass,\n )}\n >\n {children}\n </a>\n );\n};\n","import type { ComponentChildren } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationLink, type PaginationLinkProps } from \"./PaginationLink\";\nimport { PaginationChevronRight } from \"./pagination-icons\";\n\nexport type PaginationNextProps = Omit<PaginationLinkProps, \"children\"> & {\n children?: ComponentChildren;\n text?: string;\n};\n\nexport const PaginationNext = ({\n children,\n text = \"Next\",\n class: className,\n ...rest\n}: PaginationNextProps) => (\n <PaginationLink\n data-slot=\"pagination-next\"\n aria-label=\"Go to next page\"\n size=\"default\"\n class={cn(\"gap-1 pr-2.5 sm:pl-2.5\", className)}\n {...rest}\n >\n {children !== undefined && children !== null ? (\n children\n ) : (\n <>\n <span class=\"hidden sm:inline\">{text}</span>\n <PaginationChevronRight />\n </>\n )}\n </PaginationLink>\n);\n","import type { ComponentChildren } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationLink, type PaginationLinkProps } from \"./PaginationLink\";\nimport { PaginationChevronLeft } from \"./pagination-icons\";\n\nexport type PaginationPreviousProps = Omit<PaginationLinkProps, \"children\"> & {\n children?: ComponentChildren;\n text?: string;\n};\n\nexport const PaginationPrevious = ({\n children,\n text = \"Previous\",\n class: className,\n ...rest\n}: PaginationPreviousProps) => (\n <PaginationLink\n data-slot=\"pagination-previous\"\n aria-label=\"Go to previous page\"\n size=\"default\"\n class={cn(\"gap-1 pl-2.5 sm:pr-2.5\", className)}\n {...rest}\n >\n {children !== undefined && children !== null ? (\n children\n ) : (\n <>\n <PaginationChevronLeft />\n <span class=\"hidden sm:inline\">{text}</span>\n </>\n )}\n </PaginationLink>\n);\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn } from './chunk-
|
|
1
|
+
import { cn } from './chunk-XIANSPQO.js';
|
|
2
2
|
import { createContext } from 'preact';
|
|
3
3
|
import { useContext } from 'preact/hooks';
|
|
4
4
|
import { jsx } from 'preact/jsx-runtime';
|
|
@@ -18,5 +18,5 @@ var Direction = ({ dir = "ltr", ...rest }) => /* @__PURE__ */ jsx(DirectionProvi
|
|
|
18
18
|
var direction_default = Direction;
|
|
19
19
|
|
|
20
20
|
export { Direction, DirectionProvider, direction_default, useDirection };
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-2F3PWEDR.js.map
|
|
22
|
+
//# sourceMappingURL=chunk-2F3PWEDR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/direction/Direction.tsx","../src/components/direction/index.ts"],"names":[],"mappings":";;;;;AAOA,IAAM,gBAAA,GAAmB,cAA8B,KAAK,CAAA;AAGrD,IAAM,YAAA,GAAe,MAAM,UAAA,CAAW,gBAAgB;AAatD,IAAM,oBAAoB,CAAC;AAAA,EAChC,SAAA,GAAY,KAAA;AAAA,EACZ,KAAA,EAAO,SAAA;AAAA,EACP,QAAA;AAAA,EACA,aAAa,QAAA,GAAW,oBAAA;AAAA,EACxB,GAAG;AACL,CAAA,yBACG,gBAAA,CAAiB,QAAA,EAAjB,EAA0B,KAAA,EAAO,SAAA,EAChC,8BAAC,KAAA,EAAA,EAAI,GAAA,EAAK,WAAW,WAAA,EAAW,QAAA,EAAU,OAAO,EAAA,CAAG,SAAS,GAAI,GAAG,IAAA,EACjE,UACH,CAAA,EACF;AASK,IAAM,SAAA,GAAY,CAAC,EAAE,GAAA,GAAM,OAAO,GAAG,IAAA,EAAK,qBAC/C,GAAA,CAAC,qBAAkB,SAAA,EAAW,GAAA,EAAK,WAAA,EAAU,WAAA,EAAa,GAAG,IAAA,EAAM;;;ACvCrE,IAAO,iBAAA,GAAQ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/components/direction/Direction.tsx","../src/components/direction/index.ts"],"names":[],"mappings":";;;;;AAOA,IAAM,gBAAA,GAAmB,cAA8B,KAAK,CAAA;AAGrD,IAAM,YAAA,GAAe,MAAM,UAAA,CAAW,gBAAgB;AAatD,IAAM,oBAAoB,CAAC;AAAA,EAChC,SAAA,GAAY,KAAA;AAAA,EACZ,KAAA,EAAO,SAAA;AAAA,EACP,QAAA;AAAA,EACA,aAAa,QAAA,GAAW,oBAAA;AAAA,EACxB,GAAG;AACL,CAAA,yBACG,gBAAA,CAAiB,QAAA,EAAjB,EAA0B,KAAA,EAAO,SAAA,EAChC,8BAAC,KAAA,EAAA,EAAI,GAAA,EAAK,WAAW,WAAA,EAAW,QAAA,EAAU,OAAO,EAAA,CAAG,SAAS,GAAI,GAAG,IAAA,EACjE,UACH,CAAA,EACF;AASK,IAAM,SAAA,GAAY,CAAC,EAAE,GAAA,GAAM,OAAO,GAAG,IAAA,EAAK,qBAC/C,GAAA,CAAC,qBAAkB,SAAA,EAAW,GAAA,EAAK,WAAA,EAAU,WAAA,EAAa,GAAG,IAAA,EAAM;;;ACvCrE,IAAO,iBAAA,GAAQ","file":"chunk-2F3PWEDR.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { createContext } from \"preact\";\nimport { useContext } from \"preact/hooks\";\nimport { cn } from \"../../lib/utils\";\n\nexport type DirectionValue = \"ltr\" | \"rtl\";\n\nconst DirectionContext = createContext<DirectionValue>(\"ltr\");\n\n/** Returns the active text direction from the nearest `DirectionProvider` / `Direction` wrapper (default `ltr`). */\nexport const useDirection = () => useContext(DirectionContext);\n\nexport type DirectionProviderProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, \"dir\"> & {\n /** Text direction for the subtree — matches shadcn `DirectionProvider` (`direction` prop). */\n direction?: DirectionValue;\n children?: ComponentChildren;\n \"data-slot\"?: string;\n};\n\n/**\n * Sets both React context and the HTML `dir` attribute on a wrapping element so logical CSS (`ms-*`, `me-*`, etc.) resolves correctly.\n * For full-document RTL, also set `dir` on `<html>` (see docs).\n */\nexport const DirectionProvider = ({\n direction = \"ltr\",\n class: className,\n children,\n \"data-slot\": dataSlot = \"direction-provider\",\n ...rest\n}: DirectionProviderProps) => (\n <DirectionContext.Provider value={direction}>\n <div dir={direction} data-slot={dataSlot} class={cn(className)} {...rest}>\n {children}\n </div>\n </DirectionContext.Provider>\n);\n\nexport type DirectionProps = Omit<DirectionProviderProps, \"direction\"> & {\n /** Kamod legacy prop — same as `direction` on `DirectionProvider`. */\n dir?: DirectionValue;\n};\n\n/** Same as `DirectionProvider` but uses prop `dir` instead of `direction` (backwards compatible). */\nexport const Direction = ({ dir = \"ltr\", ...rest }: DirectionProps) => (\n <DirectionProvider direction={dir} data-slot=\"direction\" {...rest} />\n);\n","import { Direction, DirectionProvider, useDirection } from \"./Direction\";\n\nexport type { DirectionProps, DirectionProviderProps, DirectionValue } from \"./Direction\";\nexport { Direction, DirectionProvider, useDirection };\n\nexport default Direction;\n"]}
|