@kamod-ch/ui 0.2.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/LICENSE.md +9 -0
- package/README.md +183 -0
- package/dist/Accordion-D1PiNspd.d.ts +39 -0
- package/dist/AlertDialog-ALB541qy.d.ts +64 -0
- package/dist/Button-vQnkiVTI.d.ts +84 -0
- package/dist/CalendarDateTimePanel-B3J8OlSc.d.ts +79 -0
- package/dist/Carousel-BUB4DVuh.d.ts +48 -0
- package/dist/Chart-Ax22S5_N.d.ts +10 -0
- package/dist/Checkbox-DBbLYq6Q.d.ts +12 -0
- package/dist/Collapsible-CW1hQwqV.d.ts +34 -0
- package/dist/ComboboxValue-BGfXgtZt.d.ts +135 -0
- package/dist/CommandSeparator-wZRCsqsT.d.ts +47 -0
- package/dist/DataTable-zNTTdYVU.d.ts +13 -0
- package/dist/DatePicker-AFAYh5Ca.d.ts +20 -0
- package/dist/Dialog-BOIteLfe.d.ts +28 -0
- package/dist/DialogContent-CK1t4m4e.d.ts +24 -0
- package/dist/DialogHeader-CYT7iUDq.d.ts +13 -0
- package/dist/DialogTitle-CerJD0oA.d.ts +13 -0
- package/dist/Direction-25ZOt0gW.d.ts +24 -0
- package/dist/Drawer-B3pZMn5j.d.ts +41 -0
- package/dist/Dropdown-CVbWVKok.d.ts +143 -0
- package/dist/FieldTitle-aSgThW-B.d.ts +100 -0
- package/dist/HoverCard-aVEEtkyO.d.ts +52 -0
- package/dist/Input-Cem05el9.d.ts +27 -0
- package/dist/Menubar-DwYDW4w2.d.ts +88 -0
- package/dist/PopoverTrigger-CH_Kx2mn.d.ts +43 -0
- package/dist/Progress-BGij8Hob.d.ts +13 -0
- package/dist/RadioGroup-BaElzLwa.d.ts +40 -0
- package/dist/ScrollArea-B-vILe3g.d.ts +16 -0
- package/dist/Select-B_mNVh70.d.ts +51 -0
- package/dist/Separator-DCQYrnpB.d.ts +9 -0
- package/dist/Sheet-s0xRF22F.d.ts +29 -0
- package/dist/SidebarProvider-IAihmyD7.d.ts +46 -0
- package/dist/Slider-BQLMBpYs.d.ts +16 -0
- package/dist/Switch-CTTkNdqF.d.ts +31 -0
- package/dist/Tabs-CR-thcs6.d.ts +47 -0
- package/dist/Textarea-DbKkduOG.d.ts +27 -0
- package/dist/ThemeToggle-DfiEM1dZ.d.ts +9 -0
- package/dist/Toggle-CseZl7XN.d.ts +49 -0
- package/dist/ToggleGroup-UeYHzQe7.d.ts +137 -0
- package/dist/Tooltip-Ba3GxE7u.d.ts +40 -0
- package/dist/Typography-ccTtE182.d.ts +64 -0
- package/dist/chunk-26CRIZXP.js +244 -0
- package/dist/chunk-26CRIZXP.js.map +1 -0
- package/dist/chunk-2BQ54337.js +282 -0
- package/dist/chunk-2BQ54337.js.map +1 -0
- package/dist/chunk-2HZCH73K.js +109 -0
- package/dist/chunk-2HZCH73K.js.map +1 -0
- package/dist/chunk-2KY7P27I.js +64 -0
- package/dist/chunk-2KY7P27I.js.map +1 -0
- package/dist/chunk-3DNIMQX6.js +78 -0
- package/dist/chunk-3DNIMQX6.js.map +1 -0
- package/dist/chunk-3KB54OYF.js +81 -0
- package/dist/chunk-3KB54OYF.js.map +1 -0
- package/dist/chunk-4BJJOHZT.js +477 -0
- package/dist/chunk-4BJJOHZT.js.map +1 -0
- package/dist/chunk-4IBTERDG.js +9 -0
- package/dist/chunk-4IBTERDG.js.map +1 -0
- package/dist/chunk-4V3WHQJE.js +510 -0
- package/dist/chunk-4V3WHQJE.js.map +1 -0
- package/dist/chunk-5FBD2NTR.js +103 -0
- package/dist/chunk-5FBD2NTR.js.map +1 -0
- package/dist/chunk-5KS2VSX2.js +94 -0
- package/dist/chunk-5KS2VSX2.js.map +1 -0
- package/dist/chunk-5Q4RBIMZ.js +25 -0
- package/dist/chunk-5Q4RBIMZ.js.map +1 -0
- package/dist/chunk-67J4KBOW.js +124 -0
- package/dist/chunk-67J4KBOW.js.map +1 -0
- package/dist/chunk-6BK3PIRX.js +151 -0
- package/dist/chunk-6BK3PIRX.js.map +1 -0
- package/dist/chunk-6FYSVMH7.js +21 -0
- package/dist/chunk-6FYSVMH7.js.map +1 -0
- package/dist/chunk-6RASPU5N.js +31 -0
- package/dist/chunk-6RASPU5N.js.map +1 -0
- package/dist/chunk-7AJT2E2Y.js +624 -0
- package/dist/chunk-7AJT2E2Y.js.map +1 -0
- package/dist/chunk-7IOAIEIA.js +102 -0
- package/dist/chunk-7IOAIEIA.js.map +1 -0
- package/dist/chunk-7MITRFPE.js +192 -0
- package/dist/chunk-7MITRFPE.js.map +1 -0
- package/dist/chunk-BDK7CDEI.js +22 -0
- package/dist/chunk-BDK7CDEI.js.map +1 -0
- package/dist/chunk-BQP4UA44.js +18 -0
- package/dist/chunk-BQP4UA44.js.map +1 -0
- package/dist/chunk-BYG2ULS3.js +196 -0
- package/dist/chunk-BYG2ULS3.js.map +1 -0
- package/dist/chunk-C7WEQOUA.js +26 -0
- package/dist/chunk-C7WEQOUA.js.map +1 -0
- package/dist/chunk-CLEC2RMU.js +8 -0
- package/dist/chunk-CLEC2RMU.js.map +1 -0
- package/dist/chunk-CMBERB5B.js +9 -0
- package/dist/chunk-CMBERB5B.js.map +1 -0
- package/dist/chunk-COPT6I2D.js +122 -0
- package/dist/chunk-COPT6I2D.js.map +1 -0
- package/dist/chunk-CP55TVOV.js +271 -0
- package/dist/chunk-CP55TVOV.js.map +1 -0
- package/dist/chunk-D3DQ4ICC.js +25 -0
- package/dist/chunk-D3DQ4ICC.js.map +1 -0
- package/dist/chunk-ERBGZZ2U.js +26 -0
- package/dist/chunk-ERBGZZ2U.js.map +1 -0
- package/dist/chunk-FIOKWIJP.js +361 -0
- package/dist/chunk-FIOKWIJP.js.map +1 -0
- package/dist/chunk-G6TV6TF7.js +95 -0
- package/dist/chunk-G6TV6TF7.js.map +1 -0
- package/dist/chunk-GGTDJEE2.js +15 -0
- package/dist/chunk-GGTDJEE2.js.map +1 -0
- package/dist/chunk-GIU6BZTW.js +173 -0
- package/dist/chunk-GIU6BZTW.js.map +1 -0
- package/dist/chunk-HAAXVB3R.js +34 -0
- package/dist/chunk-HAAXVB3R.js.map +1 -0
- package/dist/chunk-HTSAUMF5.js +398 -0
- package/dist/chunk-HTSAUMF5.js.map +1 -0
- package/dist/chunk-IJ4ZRIR4.js +182 -0
- package/dist/chunk-IJ4ZRIR4.js.map +1 -0
- package/dist/chunk-J4DMQV64.js +340 -0
- package/dist/chunk-J4DMQV64.js.map +1 -0
- package/dist/chunk-JKXSX67K.js +95 -0
- package/dist/chunk-JKXSX67K.js.map +1 -0
- package/dist/chunk-JNF7FDJO.js +633 -0
- package/dist/chunk-JNF7FDJO.js.map +1 -0
- package/dist/chunk-JURNPBSW.js +70 -0
- package/dist/chunk-JURNPBSW.js.map +1 -0
- package/dist/chunk-LCMPFPBN.js +141 -0
- package/dist/chunk-LCMPFPBN.js.map +1 -0
- package/dist/chunk-LCWXIQKA.js +36 -0
- package/dist/chunk-LCWXIQKA.js.map +1 -0
- package/dist/chunk-LFJF3M6M.js +171 -0
- package/dist/chunk-LFJF3M6M.js.map +1 -0
- package/dist/chunk-MD6HHORY.js +524 -0
- package/dist/chunk-MD6HHORY.js.map +1 -0
- package/dist/chunk-MJG6UKD4.js +83 -0
- package/dist/chunk-MJG6UKD4.js.map +1 -0
- package/dist/chunk-MKG3UAP6.js +347 -0
- package/dist/chunk-MKG3UAP6.js.map +1 -0
- package/dist/chunk-MS2ZNYCJ.js +9 -0
- package/dist/chunk-MS2ZNYCJ.js.map +1 -0
- package/dist/chunk-NGKQBNZ5.js +29 -0
- package/dist/chunk-NGKQBNZ5.js.map +1 -0
- package/dist/chunk-NKKMM6CK.js +56 -0
- package/dist/chunk-NKKMM6CK.js.map +1 -0
- package/dist/chunk-OCLVMKVC.js +110 -0
- package/dist/chunk-OCLVMKVC.js.map +1 -0
- package/dist/chunk-PFV7YIEP.js +104 -0
- package/dist/chunk-PFV7YIEP.js.map +1 -0
- package/dist/chunk-PGOCR4LG.js +216 -0
- package/dist/chunk-PGOCR4LG.js.map +1 -0
- package/dist/chunk-PPYJQNE5.js +159 -0
- package/dist/chunk-PPYJQNE5.js.map +1 -0
- package/dist/chunk-PU5J5EPY.js +733 -0
- package/dist/chunk-PU5J5EPY.js.map +1 -0
- package/dist/chunk-PZS2D2QM.js +32 -0
- package/dist/chunk-PZS2D2QM.js.map +1 -0
- package/dist/chunk-Q5IUIA6B.js +9 -0
- package/dist/chunk-Q5IUIA6B.js.map +1 -0
- package/dist/chunk-QFDTG2ZJ.js +176 -0
- package/dist/chunk-QFDTG2ZJ.js.map +1 -0
- package/dist/chunk-QZX3RFIC.js +165 -0
- package/dist/chunk-QZX3RFIC.js.map +1 -0
- package/dist/chunk-R565SY7K.js +69 -0
- package/dist/chunk-R565SY7K.js.map +1 -0
- package/dist/chunk-RHNI5UQO.js +455 -0
- package/dist/chunk-RHNI5UQO.js.map +1 -0
- package/dist/chunk-ROKLAZHC.js +550 -0
- package/dist/chunk-ROKLAZHC.js.map +1 -0
- package/dist/chunk-RTIFG4XT.js +9 -0
- package/dist/chunk-RTIFG4XT.js.map +1 -0
- package/dist/chunk-TFLSEEM4.js +88 -0
- package/dist/chunk-TFLSEEM4.js.map +1 -0
- package/dist/chunk-U2UNWXBC.js +242 -0
- package/dist/chunk-U2UNWXBC.js.map +1 -0
- package/dist/chunk-UEGIKBX6.js +385 -0
- package/dist/chunk-UEGIKBX6.js.map +1 -0
- package/dist/chunk-UEXTD7ZB.js +108 -0
- package/dist/chunk-UEXTD7ZB.js.map +1 -0
- package/dist/chunk-UNWEH4Z6.js +83 -0
- package/dist/chunk-UNWEH4Z6.js.map +1 -0
- package/dist/chunk-UXWUFNXY.js +8 -0
- package/dist/chunk-UXWUFNXY.js.map +1 -0
- package/dist/chunk-V2MG5Y5F.js +77 -0
- package/dist/chunk-V2MG5Y5F.js.map +1 -0
- package/dist/chunk-V63YIVKJ.js +326 -0
- package/dist/chunk-V63YIVKJ.js.map +1 -0
- package/dist/chunk-WAPRVVDQ.js +9 -0
- package/dist/chunk-WAPRVVDQ.js.map +1 -0
- package/dist/chunk-X4HPHMYW.js +17 -0
- package/dist/chunk-X4HPHMYW.js.map +1 -0
- package/dist/chunk-XGFJJ2YB.js +36 -0
- package/dist/chunk-XGFJJ2YB.js.map +1 -0
- package/dist/chunk-YJGECAOZ.js +18 -0
- package/dist/chunk-YJGECAOZ.js.map +1 -0
- package/dist/chunk-YTHUHPE5.js +51 -0
- package/dist/chunk-YTHUHPE5.js.map +1 -0
- package/dist/chunk-YTJRKLUR.js +76 -0
- package/dist/chunk-YTJRKLUR.js.map +1 -0
- package/dist/chunk-YVALXJRN.js +49 -0
- package/dist/chunk-YVALXJRN.js.map +1 -0
- package/dist/chunk-YZLPO4B2.js +33 -0
- package/dist/chunk-YZLPO4B2.js.map +1 -0
- package/dist/chunk-ZHAGKFSO.js +16 -0
- package/dist/chunk-ZHAGKFSO.js.map +1 -0
- package/dist/chunk-ZM67EKZC.js +135 -0
- package/dist/chunk-ZM67EKZC.js.map +1 -0
- package/dist/chunk-ZVAW22GX.js +50 -0
- package/dist/chunk-ZVAW22GX.js.map +1 -0
- package/dist/components/accordion/index.d.ts +12 -0
- package/dist/components/accordion/index.js +4 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/alert/index.d.ts +64 -0
- package/dist/components/alert/index.js +4 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/alert-dialog/index.d.ts +22 -0
- package/dist/components/alert-dialog/index.js +9 -0
- package/dist/components/alert-dialog/index.js.map +1 -0
- package/dist/components/aspect-ratio/index.d.ts +11 -0
- package/dist/components/aspect-ratio/index.js +4 -0
- package/dist/components/aspect-ratio/index.js.map +1 -0
- package/dist/components/avatar/index.d.ts +53 -0
- package/dist/components/avatar/index.js +4 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/index.d.ts +175 -0
- package/dist/components/badge/index.js +4 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +38 -0
- package/dist/components/breadcrumb/index.js +4 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/index.d.ts +72 -0
- package/dist/components/button/index.js +5 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/index.d.ts +21 -0
- package/dist/components/button-group/index.js +4 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/calendar/index.d.ts +7 -0
- package/dist/components/calendar/index.js +12 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/index.d.ts +80 -0
- package/dist/components/card/index.js +3 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/carousel/index.d.ts +15 -0
- package/dist/components/carousel/index.js +5 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/chart/index.d.ts +6 -0
- package/dist/components/chart/index.js +4 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +7 -0
- package/dist/components/checkbox/index.js +4 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/collapsible/index.d.ts +11 -0
- package/dist/components/collapsible/index.js +4 -0
- package/dist/components/collapsible/index.js.map +1 -0
- package/dist/components/combobox/index.d.ts +13 -0
- package/dist/components/combobox/index.js +7 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/command/index.d.ts +21 -0
- package/dist/components/command/index.js +10 -0
- package/dist/components/command/index.js.map +1 -0
- package/dist/components/context-menu/index.d.ts +114 -0
- package/dist/components/context-menu/index.js +5 -0
- package/dist/components/context-menu/index.js.map +1 -0
- package/dist/components/data-table/index.d.ts +6 -0
- package/dist/components/data-table/index.js +5 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/date-picker/index.d.ts +7 -0
- package/dist/components/date-picker/index.js +8 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/dialog/index.d.ts +22 -0
- package/dist/components/dialog/index.js +8 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/direction/index.d.ts +7 -0
- package/dist/components/direction/index.js +4 -0
- package/dist/components/direction/index.js.map +1 -0
- package/dist/components/drawer/index.d.ts +19 -0
- package/dist/components/drawer/index.js +8 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/dropdown/index.d.ts +24 -0
- package/dist/components/dropdown/index.js +5 -0
- package/dist/components/dropdown/index.js.map +1 -0
- package/dist/components/dropzone/index.d.ts +26 -0
- package/dist/components/dropzone/index.js +5 -0
- package/dist/components/dropzone/index.js.map +1 -0
- package/dist/components/empty/index.d.ts +59 -0
- package/dist/components/empty/index.js +4 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/field/index.d.ts +8 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/hover-card/index.d.ts +12 -0
- package/dist/components/hover-card/index.js +3 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/image/index.d.ts +6 -0
- package/dist/components/image/index.js +4 -0
- package/dist/components/image/index.js.map +1 -0
- package/dist/components/input/index.d.ts +27 -0
- package/dist/components/input/index.js +4 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input-group/index.d.ts +132 -0
- package/dist/components/input-group/index.js +7 -0
- package/dist/components/input-group/index.js.map +1 -0
- package/dist/components/input-otp/index.d.ts +39 -0
- package/dist/components/input-otp/index.js +4 -0
- package/dist/components/input-otp/index.js.map +1 -0
- package/dist/components/item/index.d.ts +108 -0
- package/dist/components/item/index.js +5 -0
- package/dist/components/item/index.js.map +1 -0
- package/dist/components/kbd/index.d.ts +31 -0
- package/dist/components/kbd/index.js +4 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/label/index.d.ts +49 -0
- package/dist/components/label/index.js +4 -0
- package/dist/components/label/index.js.map +1 -0
- package/dist/components/locale-segment-group/index.d.ts +15 -0
- package/dist/components/locale-segment-group/index.js +4 -0
- package/dist/components/locale-segment-group/index.js.map +1 -0
- package/dist/components/menubar/index.d.ts +23 -0
- package/dist/components/menubar/index.js +5 -0
- package/dist/components/menubar/index.js.map +1 -0
- package/dist/components/native-select/index.d.ts +89 -0
- package/dist/components/native-select/index.js +3 -0
- package/dist/components/native-select/index.js.map +1 -0
- package/dist/components/navigation-menu/index.d.ts +15 -0
- package/dist/components/navigation-menu/index.js +5 -0
- package/dist/components/navigation-menu/index.js.map +1 -0
- package/dist/components/pagination/index.d.ts +44 -0
- package/dist/components/pagination/index.js +5 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/popover/index.d.ts +76 -0
- package/dist/components/popover/index.js +5 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/progress/index.d.ts +6 -0
- package/dist/components/progress/index.js +4 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/prose/index.d.ts +8 -0
- package/dist/components/prose/index.js +4 -0
- package/dist/components/prose/index.js.map +1 -0
- package/dist/components/radio-group/index.d.ts +11 -0
- package/dist/components/radio-group/index.js +5 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/scroll-area/index.d.ts +11 -0
- package/dist/components/scroll-area/index.js +4 -0
- package/dist/components/scroll-area/index.js.map +1 -0
- package/dist/components/select/index.d.ts +17 -0
- package/dist/components/select/index.js +5 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/selectable-card/index.d.ts +11 -0
- package/dist/components/selectable-card/index.js +5 -0
- package/dist/components/selectable-card/index.js.map +1 -0
- package/dist/components/separator/index.d.ts +24 -0
- package/dist/components/separator/index.js +4 -0
- package/dist/components/separator/index.js.map +1 -0
- package/dist/components/sheet/index.d.ts +20 -0
- package/dist/components/sheet/index.js +8 -0
- package/dist/components/sheet/index.js.map +1 -0
- package/dist/components/sidebar/index.d.ts +16 -0
- package/dist/components/sidebar/index.js +3 -0
- package/dist/components/sidebar/index.js.map +1 -0
- package/dist/components/skeleton/index.d.ts +52 -0
- package/dist/components/skeleton/index.js +3 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/slider/index.d.ts +7 -0
- package/dist/components/slider/index.js +4 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/sonner/index.d.ts +7 -0
- package/dist/components/sonner/index.js +3 -0
- package/dist/components/sonner/index.js.map +1 -0
- package/dist/components/spinner/index.d.ts +10 -0
- package/dist/components/spinner/index.js +4 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/switch/index.d.ts +7 -0
- package/dist/components/switch/index.js +4 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/table/index.d.ts +45 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +13 -0
- package/dist/components/tabs/index.js +5 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/textarea/index.d.ts +27 -0
- package/dist/components/textarea/index.js +4 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/theme-toggle/index.d.ts +6 -0
- package/dist/components/theme-toggle/index.js +6 -0
- package/dist/components/theme-toggle/index.js.map +1 -0
- package/dist/components/toast/index.d.ts +27 -0
- package/dist/components/toast/index.js +3 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toggle/index.d.ts +7 -0
- package/dist/components/toggle/index.js +4 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/toggle-group/index.d.ts +11 -0
- package/dist/components/toggle-group/index.js +4 -0
- package/dist/components/toggle-group/index.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +12 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/typography/index.d.ts +8 -0
- package/dist/components/typography/index.js +4 -0
- package/dist/components/typography/index.js.map +1 -0
- package/dist/components/video/index.d.ts +8 -0
- package/dist/components/video/index.js +4 -0
- package/dist/components/video/index.js.map +1 -0
- package/dist/index.d.ts +82 -0
- package/dist/index.js +83 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/interactive/index.d.ts +44 -0
- package/dist/lib/interactive/index.js +3 -0
- package/dist/lib/interactive/index.js.map +1 -0
- package/dist/lib/signals/index.d.ts +15 -0
- package/dist/lib/signals/index.js +3 -0
- package/dist/lib/signals/index.js.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.js +3 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/navigationMenuTriggerStyle-BWnESpon.d.ts +48 -0
- package/dist/sonner-store-Dfdxy8ba.d.ts +11 -0
- package/dist/theme.css +81 -0
- package/package.json +360 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as preact from 'preact';
|
|
2
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
3
|
+
import { C as CommandProps, e as CommandInputProps, l as CommandItemProps, m as CommandListProps } from './CommandSeparator-wZRCsqsT.js';
|
|
4
|
+
import { P as PopoverContentProps, a as PopoverTriggerProps } from './PopoverTrigger-CH_Kx2mn.js';
|
|
5
|
+
import { Signal } from '@preact/signals';
|
|
6
|
+
|
|
7
|
+
type ComboboxChipProps = Omit<JSX.HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
8
|
+
itemKey: string;
|
|
9
|
+
children?: ComponentChildren;
|
|
10
|
+
};
|
|
11
|
+
declare const ComboboxChip: ({ itemKey: chipKey, children, class: className, ...rest }: ComboboxChipProps) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
type ComboboxChipsProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
children?: ComponentChildren;
|
|
15
|
+
};
|
|
16
|
+
/** Multi-select trigger row: wrap chips + `ComboboxChipsInput` (with `liftedFilter`). */
|
|
17
|
+
declare const ComboboxChips: ({ class: className, children, ...rest }: ComboboxChipsProps) => JSX.Element;
|
|
18
|
+
|
|
19
|
+
type ComboboxChipsInputProps = JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
20
|
+
/** Filter field at the end of the chip row; requires `Combobox liftedFilter`. */
|
|
21
|
+
declare const ComboboxChipsInput: ({ class: className, onKeyDown, onInput, onFocus, ...rest }: ComboboxChipsInputProps) => JSX.Element;
|
|
22
|
+
|
|
23
|
+
type ComboboxClearProps = JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
24
|
+
declare const ComboboxClear: ({ class: className, onClick, ...rest }: ComboboxClearProps) => JSX.Element | null;
|
|
25
|
+
|
|
26
|
+
declare const ComboboxCommand: ({ autoHighlight: autoHighlightProp, class: className, children, ...rest }: CommandProps) => preact.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare const ComboboxContent: ({ forceMount: forceMountProp, class: className, ...rest }: PopoverContentProps) => preact.JSX.Element;
|
|
29
|
+
|
|
30
|
+
type ComboboxInlineInputProps = JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
31
|
+
/**
|
|
32
|
+
* Base UI–style trigger: the visible field is the filter input; the list opens in `ComboboxContent`.
|
|
33
|
+
* Requires `Combobox liftedFilter` (and usually `ComboboxTrigger asChild` wrapping a positioned container).
|
|
34
|
+
*/
|
|
35
|
+
declare const ComboboxInlineInput: ({ class: className, onKeyDown, onInput, onFocus, ...rest }: ComboboxInlineInputProps) => JSX.Element;
|
|
36
|
+
|
|
37
|
+
declare const ComboboxInput: ({ class: className, ...rest }: CommandInputProps) => preact.JSX.Element;
|
|
38
|
+
|
|
39
|
+
type ComboboxItemProps = Omit<CommandItemProps, "value" | "onSelect"> & {
|
|
40
|
+
item: unknown;
|
|
41
|
+
};
|
|
42
|
+
declare const ComboboxItem: ({ item, class: className, children, disabled, onClick, ...rest }: ComboboxItemProps) => preact.JSX.Element;
|
|
43
|
+
|
|
44
|
+
type ComboboxListProps = Omit<CommandListProps, "children"> & {
|
|
45
|
+
items?: readonly unknown[];
|
|
46
|
+
children: ComponentChildren | ((item: unknown, index: number) => ComponentChildren);
|
|
47
|
+
};
|
|
48
|
+
declare const ComboboxList: ({ items: itemsProp, children, onMount, ...rest }: ComboboxListProps) => preact.JSX.Element;
|
|
49
|
+
|
|
50
|
+
type ComboboxCommandNav = {
|
|
51
|
+
moveHighlight: (delta: number) => void;
|
|
52
|
+
activateHighlighted: () => void;
|
|
53
|
+
};
|
|
54
|
+
type ComboboxContextValue = {
|
|
55
|
+
items: readonly unknown[];
|
|
56
|
+
leafItems: unknown[];
|
|
57
|
+
itemToString: (item: unknown) => string;
|
|
58
|
+
itemKey: (item: unknown) => string;
|
|
59
|
+
selectedKeys: string[];
|
|
60
|
+
/** First selected key; empty string if none (single-select ergonomics). */
|
|
61
|
+
selectedKey: string;
|
|
62
|
+
multiple: boolean;
|
|
63
|
+
isSelected: (key: string) => boolean;
|
|
64
|
+
selectByItem: (item: unknown) => void;
|
|
65
|
+
toggleByItem: (item: unknown) => void;
|
|
66
|
+
removeKey: (key: string) => void;
|
|
67
|
+
clearSelection: () => void;
|
|
68
|
+
placeholder: string;
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
liftedFilter: boolean;
|
|
71
|
+
filterQuery: Signal<string> | null;
|
|
72
|
+
hasVisibleItems: Signal<boolean> | null;
|
|
73
|
+
autoHighlight: boolean;
|
|
74
|
+
showClear: boolean;
|
|
75
|
+
closeOnSelect: boolean;
|
|
76
|
+
comboboxListRef: {
|
|
77
|
+
current: HTMLDivElement | null;
|
|
78
|
+
};
|
|
79
|
+
commandNavRef: {
|
|
80
|
+
current: ComboboxCommandNav | null;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
declare const useCombobox: () => ComboboxContextValue;
|
|
84
|
+
declare function comboboxSelectionLabel(ctx: ComboboxContextValue): string;
|
|
85
|
+
type ComboboxProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
86
|
+
items?: readonly unknown[];
|
|
87
|
+
itemToStringValue?: (item: unknown) => string;
|
|
88
|
+
itemKey?: (item: unknown) => string;
|
|
89
|
+
value?: string | string[];
|
|
90
|
+
defaultValue?: string | string[];
|
|
91
|
+
/** Emits `string` when `multiple` is false, else `string[]`. */
|
|
92
|
+
onValueChange?: (value: string | string[]) => void;
|
|
93
|
+
placeholder?: string;
|
|
94
|
+
disabled?: boolean;
|
|
95
|
+
open?: boolean;
|
|
96
|
+
defaultOpen?: boolean;
|
|
97
|
+
onOpenChange?: (open: boolean) => void;
|
|
98
|
+
multiple?: boolean;
|
|
99
|
+
/** Share filter text between trigger input and `Command` (Base UI–style single input + list in popover). */
|
|
100
|
+
liftedFilter?: boolean;
|
|
101
|
+
/** Highlight first match and enable ArrowUp/Down + Enter in filter inputs (requires `ComboboxCommand autoHighlight` or preset). */
|
|
102
|
+
autoHighlight?: boolean;
|
|
103
|
+
showClear?: boolean;
|
|
104
|
+
/** When `multiple`, defaults to `false`; when single, defaults to `true`. */
|
|
105
|
+
closeOnSelect?: boolean;
|
|
106
|
+
children?: ComponentChildren;
|
|
107
|
+
};
|
|
108
|
+
declare const Combobox: ({ items, itemToStringValue, itemKey: itemKeyProp, value: valueProp, defaultValue, onValueChange, placeholder, disabled, open: openProp, defaultOpen, onOpenChange, multiple: multipleProp, liftedFilter, autoHighlight, showClear, closeOnSelect: closeOnSelectProp, class: className, children, ...rest }: ComboboxProps) => JSX.Element;
|
|
109
|
+
|
|
110
|
+
type ComboboxOption = {
|
|
111
|
+
label: string;
|
|
112
|
+
value: string;
|
|
113
|
+
};
|
|
114
|
+
type ComboboxSelectProps = Omit<ComboboxProps, "items" | "children" | "itemKey" | "itemToStringValue"> & {
|
|
115
|
+
options: ComboboxOption[];
|
|
116
|
+
searchPlaceholder?: string;
|
|
117
|
+
emptyText?: string;
|
|
118
|
+
triggerClass?: string;
|
|
119
|
+
};
|
|
120
|
+
/** Preset around `{ label, value }[]`: button trigger, inline input trigger, multi chips, clear, and auto-highlight. */
|
|
121
|
+
declare const ComboboxSelect: ({ options, searchPlaceholder, emptyText, triggerClass, showClear, autoHighlight, liftedFilter, multiple, class: className, placeholder, ...rest }: ComboboxSelectProps) => preact.JSX.Element;
|
|
122
|
+
|
|
123
|
+
declare const ComboboxTrigger: ({ class: className, disabled, ...rest }: PopoverTriggerProps) => preact.JSX.Element;
|
|
124
|
+
|
|
125
|
+
type ComboboxValueProps = Omit<JSX.HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
126
|
+
placeholder?: string;
|
|
127
|
+
children?: ((state: {
|
|
128
|
+
label: string;
|
|
129
|
+
empty: boolean;
|
|
130
|
+
keys: string[];
|
|
131
|
+
}) => ComponentChildren) | ComponentChildren;
|
|
132
|
+
};
|
|
133
|
+
declare const ComboboxValue: ({ placeholder: placeholderProp, children, class: className, ...rest }: ComboboxValueProps) => JSX.Element;
|
|
134
|
+
|
|
135
|
+
export { type ComboboxContextValue as A, comboboxSelectionLabel as B, Combobox as C, ComboboxChip as a, type ComboboxChipProps as b, ComboboxChips as c, ComboboxChipsInput as d, type ComboboxChipsInputProps as e, type ComboboxChipsProps as f, ComboboxClear as g, type ComboboxClearProps as h, ComboboxCommand as i, type ComboboxCommandNav as j, ComboboxContent as k, ComboboxInlineInput as l, type ComboboxInlineInputProps as m, ComboboxInput as n, ComboboxItem as o, type ComboboxItemProps as p, ComboboxList as q, type ComboboxListProps as r, type ComboboxOption as s, type ComboboxProps as t, ComboboxSelect as u, type ComboboxSelectProps as v, ComboboxTrigger as w, ComboboxValue as x, type ComboboxValueProps as y, useCombobox as z };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Signal } from '@preact/signals';
|
|
2
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
3
|
+
|
|
4
|
+
type CommandProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
children?: ComponentChildren;
|
|
6
|
+
/** First visible item gets `data-highlighted`; enables ArrowUp/Down + Enter in `CommandInput`. */
|
|
7
|
+
autoHighlight?: boolean;
|
|
8
|
+
/** External filter signal (e.g. combobox inline input shares query with the list). */
|
|
9
|
+
query?: Signal<string>;
|
|
10
|
+
/** External visibility signal; updated by `CommandList` when provided. */
|
|
11
|
+
hasVisibleItems?: Signal<boolean>;
|
|
12
|
+
};
|
|
13
|
+
declare const Command: ({ class: className, children, autoHighlight, query: queryProp, hasVisibleItems: hasVisibleProp, ...rest }: CommandProps) => JSX.Element;
|
|
14
|
+
|
|
15
|
+
type CommandEmptyProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
16
|
+
children?: ComponentChildren;
|
|
17
|
+
};
|
|
18
|
+
declare const CommandEmpty: ({ children, class: className, ...rest }: CommandEmptyProps) => JSX.Element | null;
|
|
19
|
+
|
|
20
|
+
type CommandGroupProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
21
|
+
heading?: string;
|
|
22
|
+
children?: ComponentChildren;
|
|
23
|
+
};
|
|
24
|
+
declare const CommandGroup: ({ heading, class: className, children, ...rest }: CommandGroupProps) => JSX.Element;
|
|
25
|
+
|
|
26
|
+
type CommandInputProps = JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
27
|
+
declare const CommandInput: ({ class: className, onInput, onKeyDown, ...rest }: CommandInputProps) => JSX.Element;
|
|
28
|
+
|
|
29
|
+
type CommandItemProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
30
|
+
/** Used for case-insensitive filtering against the query. */
|
|
31
|
+
value: string;
|
|
32
|
+
children?: ComponentChildren;
|
|
33
|
+
onSelect?: (value: string) => void;
|
|
34
|
+
};
|
|
35
|
+
declare const CommandItem: ({ class: className, value, children, disabled, onClick, onSelect, ...rest }: CommandItemProps) => JSX.Element;
|
|
36
|
+
|
|
37
|
+
type CommandListProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
38
|
+
children?: ComponentChildren;
|
|
39
|
+
/** Notified when the list root mounts (e.g. combobox inline input forwards keyboard to the list). */
|
|
40
|
+
onMount?: (el: HTMLDivElement | null) => void;
|
|
41
|
+
};
|
|
42
|
+
declare const CommandList: ({ class: className, children, onMount, ...rest }: CommandListProps) => JSX.Element;
|
|
43
|
+
|
|
44
|
+
type CommandSeparatorProps = JSX.HTMLAttributes<HTMLHRElement>;
|
|
45
|
+
declare const CommandSeparator: ({ class: className, ...rest }: CommandSeparatorProps) => JSX.Element;
|
|
46
|
+
|
|
47
|
+
export { type CommandProps as C, CommandEmpty as a, type CommandEmptyProps as b, CommandGroup as c, type CommandGroupProps as d, type CommandInputProps as e, CommandSeparator as f, type CommandSeparatorProps as g, Command as h, CommandInput as i, CommandItem as j, CommandList as k, type CommandItemProps as l, type CommandListProps as m };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
2
|
+
|
|
3
|
+
type DataTableProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
children?: ComponentChildren;
|
|
5
|
+
/**
|
|
6
|
+
* When true (default), wraps the table in `overflow-hidden rounded-md border` like shadcn data tables.
|
|
7
|
+
* Set false if you already provide an outer chrome or use a bare `<Table>`.
|
|
8
|
+
*/
|
|
9
|
+
chrome?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const DataTable: ({ chrome, class: className, children, ...rest }: DataTableProps) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { DataTable as D };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
2
|
+
|
|
3
|
+
/** Long date label (~`date-fns` `PPP`) without extra dependencies. */
|
|
4
|
+
declare const formatDatePickerDisplay: (date: Date, locale?: string) => string;
|
|
5
|
+
type DatePickerProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
6
|
+
value?: Date;
|
|
7
|
+
defaultValue?: Date;
|
|
8
|
+
onValueChange?: (next: Date | undefined) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/** Close popover after a day is picked (single mode). @default true */
|
|
11
|
+
closeOnSelect?: boolean;
|
|
12
|
+
align?: "start" | "center" | "end";
|
|
13
|
+
/** Trigger affordance aligned with shadcn demos. @default "chevron" */
|
|
14
|
+
triggerIcon?: "chevron" | "calendar" | "none";
|
|
15
|
+
format?: (date: Date) => string;
|
|
16
|
+
children?: ComponentChildren;
|
|
17
|
+
};
|
|
18
|
+
declare const DatePicker: ({ class: className, value, defaultValue, onValueChange, placeholder, closeOnSelect, align, triggerIcon, format, children, ...rest }: DatePickerProps) => JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { DatePicker as D, formatDatePickerDisplay as f };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as preact from 'preact';
|
|
2
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
3
|
+
|
|
4
|
+
type DialogCloseProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
children?: ComponentChildren;
|
|
7
|
+
"data-slot"?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const DialogClose: ({ asChild, children, onClick, ref: outerRef, "data-slot": dataSlot, ...rest }: DialogCloseProps) => JSX.Element | preact.VNode<{}> | null;
|
|
10
|
+
|
|
11
|
+
type DialogTriggerProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
children?: ComponentChildren;
|
|
14
|
+
"data-slot"?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const DialogTrigger: ({ asChild, children, onClick, onPointerDown, ref: outerRef, "data-slot": dataSlot, ...rest }: DialogTriggerProps) => JSX.Element | preact.VNode<{}> | null;
|
|
17
|
+
|
|
18
|
+
type DialogProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
19
|
+
defaultOpen?: boolean;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
/** When true, locks document scroll while open (shadcn default). */
|
|
23
|
+
lockBodyScroll?: boolean;
|
|
24
|
+
children?: ComponentChildren;
|
|
25
|
+
};
|
|
26
|
+
declare const Dialog: ({ defaultOpen, open: openProp, onOpenChange, lockBodyScroll, children, ...rest }: DialogProps) => JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { Dialog as D, DialogClose as a, DialogTrigger as b, type DialogProps as c, type DialogTriggerProps as d, type DialogCloseProps as e };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as preact from 'preact';
|
|
2
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
3
|
+
|
|
4
|
+
type DialogContentPresentation = "modal" | "slot";
|
|
5
|
+
type DialogContentProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
forceMount?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* `modal` — built-in overlay + centered panel + optional corner close.
|
|
9
|
+
* `slot` — one portaled element only; use when **you** provide overlay + panel (legacy fullscreen `DialogContent` pattern with `fixed inset-0 …`).
|
|
10
|
+
*/
|
|
11
|
+
presentation?: DialogContentPresentation;
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
|
+
children?: ComponentChildren;
|
|
14
|
+
"data-slot"?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Renders dialog body in a portal.
|
|
18
|
+
*
|
|
19
|
+
* - **modal (default):** Backdrop + centered panel; use `class` only for sizing (e.g. `sm:max-w-sm`).
|
|
20
|
+
* - **slot:** Single root node — **required** for legacy/custom layouts that already implement `fixed inset-0` overlay + inner card (otherwise you stack two modals).
|
|
21
|
+
*/
|
|
22
|
+
declare const DialogContent: ({ forceMount, presentation, showCloseButton, class: className, children, onKeyDown, "data-slot": dataSlot, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...rest }: DialogContentProps) => preact.VNode<any> | null;
|
|
23
|
+
|
|
24
|
+
export { DialogContent as D, type DialogContentPresentation as a, type DialogContentProps as b };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
2
|
+
|
|
3
|
+
type DialogFooterProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
children?: ComponentChildren;
|
|
5
|
+
};
|
|
6
|
+
declare const DialogFooter: ({ class: className, children, ...rest }: DialogFooterProps) => JSX.Element;
|
|
7
|
+
|
|
8
|
+
type DialogHeaderProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
children?: ComponentChildren;
|
|
10
|
+
};
|
|
11
|
+
declare const DialogHeader: ({ class: className, children, ...rest }: DialogHeaderProps) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { DialogFooter as D, DialogHeader as a, type DialogHeaderProps as b, type DialogFooterProps as c };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
2
|
+
|
|
3
|
+
type DialogDescriptionProps = JSX.HTMLAttributes<HTMLParagraphElement> & {
|
|
4
|
+
children?: ComponentChildren;
|
|
5
|
+
};
|
|
6
|
+
declare const DialogDescription: ({ class: className, children, id: idProp, ...rest }: DialogDescriptionProps) => JSX.Element;
|
|
7
|
+
|
|
8
|
+
type DialogTitleProps = JSX.HTMLAttributes<HTMLHeadingElement> & {
|
|
9
|
+
children?: ComponentChildren;
|
|
10
|
+
};
|
|
11
|
+
declare const DialogTitle: ({ class: className, children, id: idProp, ...rest }: DialogTitleProps) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { DialogDescription as D, DialogTitle as a, type DialogTitleProps as b, type DialogDescriptionProps as c };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
2
|
+
|
|
3
|
+
type DirectionValue = "ltr" | "rtl";
|
|
4
|
+
/** Returns the active text direction from the nearest `DirectionProvider` / `Direction` wrapper (default `ltr`). */
|
|
5
|
+
declare const useDirection: () => DirectionValue;
|
|
6
|
+
type DirectionProviderProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "dir"> & {
|
|
7
|
+
/** Text direction for the subtree — matches shadcn `DirectionProvider` (`direction` prop). */
|
|
8
|
+
direction?: DirectionValue;
|
|
9
|
+
children?: ComponentChildren;
|
|
10
|
+
"data-slot"?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Sets both React context and the HTML `dir` attribute on a wrapping element so logical CSS (`ms-*`, `me-*`, etc.) resolves correctly.
|
|
14
|
+
* For full-document RTL, also set `dir` on `<html>` (see docs).
|
|
15
|
+
*/
|
|
16
|
+
declare const DirectionProvider: ({ direction, class: className, children, "data-slot": dataSlot, ...rest }: DirectionProviderProps) => JSX.Element;
|
|
17
|
+
type DirectionProps = Omit<DirectionProviderProps, "direction"> & {
|
|
18
|
+
/** Kamod legacy prop — same as `direction` on `DirectionProvider`. */
|
|
19
|
+
dir?: DirectionValue;
|
|
20
|
+
};
|
|
21
|
+
/** Same as `DirectionProvider` but uses prop `dir` instead of `direction` (backwards compatible). */
|
|
22
|
+
declare const Direction: ({ dir, ...rest }: DirectionProps) => JSX.Element;
|
|
23
|
+
|
|
24
|
+
export { Direction as D, type DirectionProps as a, DirectionProvider as b, type DirectionProviderProps as c, type DirectionValue as d, useDirection as u };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as preact from 'preact';
|
|
2
|
+
import { ComponentChildren } from 'preact';
|
|
3
|
+
import { e as DialogCloseProps, d as DialogTriggerProps } from './Dialog-BOIteLfe.js';
|
|
4
|
+
import { c as DialogDescriptionProps, b as DialogTitleProps } from './DialogTitle-CerJD0oA.js';
|
|
5
|
+
import { g as SheetFooterProps, f as SheetHeaderProps, e as SheetContentProps, d as SheetProps } from './Sheet-s0xRF22F.js';
|
|
6
|
+
|
|
7
|
+
type DrawerCloseProps = DialogCloseProps;
|
|
8
|
+
declare const DrawerClose: (props: DrawerCloseProps) => preact.JSX.Element;
|
|
9
|
+
|
|
10
|
+
type DrawerDescriptionProps = DialogDescriptionProps;
|
|
11
|
+
declare const DrawerDescription: (props: DrawerDescriptionProps) => preact.JSX.Element;
|
|
12
|
+
|
|
13
|
+
type DrawerTitleProps = DialogTitleProps;
|
|
14
|
+
declare const DrawerTitle: (props: DrawerTitleProps) => preact.JSX.Element;
|
|
15
|
+
|
|
16
|
+
type DrawerFooterProps = SheetFooterProps;
|
|
17
|
+
declare const DrawerFooter: (props: DrawerFooterProps) => preact.JSX.Element;
|
|
18
|
+
|
|
19
|
+
type DrawerHeaderProps = SheetHeaderProps;
|
|
20
|
+
declare const DrawerHeader: (props: DrawerHeaderProps) => preact.JSX.Element;
|
|
21
|
+
|
|
22
|
+
type DrawerContentProps = Omit<SheetContentProps, "side"> & {
|
|
23
|
+
/** Drag affordance for top/bottom drawers. Default: `true` when `direction` is top or bottom. */
|
|
24
|
+
showHandle?: boolean;
|
|
25
|
+
children?: ComponentChildren;
|
|
26
|
+
};
|
|
27
|
+
declare const DrawerContent: ({ showHandle, showCloseButton, class: className, children, ...rest }: DrawerContentProps) => preact.JSX.Element;
|
|
28
|
+
|
|
29
|
+
type DrawerTriggerProps = DialogTriggerProps;
|
|
30
|
+
declare const DrawerTrigger: (props: DrawerTriggerProps) => preact.JSX.Element;
|
|
31
|
+
|
|
32
|
+
type DrawerDirection = "top" | "right" | "bottom" | "left";
|
|
33
|
+
|
|
34
|
+
type DrawerProps = SheetProps & {
|
|
35
|
+
/** Edge the drawer opens from (shadcn/Vaul `direction`). Default `bottom`. */
|
|
36
|
+
direction?: DrawerDirection;
|
|
37
|
+
children?: ComponentChildren;
|
|
38
|
+
};
|
|
39
|
+
declare const Drawer: ({ direction, children, ...rest }: DrawerProps) => preact.JSX.Element;
|
|
40
|
+
|
|
41
|
+
export { Drawer as D, DrawerClose as a, DrawerContent as b, DrawerDescription as c, type DrawerDirection as d, DrawerFooter as e, DrawerHeader as f, DrawerTitle as g, DrawerTrigger as h, type DrawerProps as i, type DrawerTriggerProps as j, type DrawerContentProps as k, type DrawerHeaderProps as l, type DrawerFooterProps as m, type DrawerTitleProps as n, type DrawerDescriptionProps as o, type DrawerCloseProps as p };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as preact from 'preact';
|
|
2
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
3
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import { VariantProps } from 'tailwind-variants';
|
|
5
|
+
|
|
6
|
+
type DropdownRadioItemProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
7
|
+
value: string;
|
|
8
|
+
children?: ComponentChildren;
|
|
9
|
+
};
|
|
10
|
+
declare const DropdownRadioItem: ({ value, class: className, children, onClick, ...rest }: DropdownRadioItemProps) => JSX.Element;
|
|
11
|
+
|
|
12
|
+
type DropdownRadioGroupProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
children?: ComponentChildren;
|
|
17
|
+
};
|
|
18
|
+
declare const DropdownRadioGroup: ({ value, defaultValue, onValueChange, children, ...rest }: DropdownRadioGroupProps) => JSX.Element;
|
|
19
|
+
|
|
20
|
+
type DropdownCheckboxItemProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
defaultChecked?: boolean;
|
|
23
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
24
|
+
children?: ComponentChildren;
|
|
25
|
+
};
|
|
26
|
+
declare const DropdownCheckboxItem: ({ checked: checkedProp, defaultChecked, onCheckedChange, class: className, children, onClick, ...rest }: DropdownCheckboxItemProps) => JSX.Element;
|
|
27
|
+
|
|
28
|
+
/** No-op wrapper for API parity with shadcn; content stays in the tree (no portal). */
|
|
29
|
+
type DropdownPortalProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
30
|
+
children?: ComponentChildren;
|
|
31
|
+
};
|
|
32
|
+
declare const DropdownPortal: ({ children, ...rest }: DropdownPortalProps) => JSX.Element;
|
|
33
|
+
|
|
34
|
+
type DropdownSubContentProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
35
|
+
children?: ComponentChildren;
|
|
36
|
+
/** `inline-end` (default): opens toward inline end (right in LTR). `inline-start`: toward inline start (left in LTR) — use near the viewport edge to avoid horizontal page scroll. */
|
|
37
|
+
side?: "inline-end" | "inline-start";
|
|
38
|
+
};
|
|
39
|
+
declare const DropdownSubContent: ({ class: className, children, onPointerEnter, side, ...rest }: DropdownSubContentProps) => JSX.Element | null;
|
|
40
|
+
|
|
41
|
+
type DropdownSubTriggerProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
42
|
+
children?: ComponentChildren;
|
|
43
|
+
};
|
|
44
|
+
declare const DropdownSubTrigger: ({ class: className, children, onClick, onPointerEnter, ...rest }: DropdownSubTriggerProps) => JSX.Element;
|
|
45
|
+
|
|
46
|
+
type DropdownSubProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
47
|
+
children?: ComponentChildren;
|
|
48
|
+
};
|
|
49
|
+
declare const DropdownSub: ({ class: className, children, ...rest }: DropdownSubProps) => JSX.Element;
|
|
50
|
+
|
|
51
|
+
type DropdownShortcutProps = JSX.HTMLAttributes<HTMLSpanElement> & {
|
|
52
|
+
children?: ComponentChildren;
|
|
53
|
+
};
|
|
54
|
+
declare const DropdownShortcut: ({ class: className, children, ...rest }: DropdownShortcutProps) => JSX.Element;
|
|
55
|
+
|
|
56
|
+
type DropdownGroupProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
57
|
+
children?: ComponentChildren;
|
|
58
|
+
};
|
|
59
|
+
declare const DropdownGroup: ({ class: className, children, ...rest }: DropdownGroupProps) => JSX.Element;
|
|
60
|
+
|
|
61
|
+
type DropdownSeparatorProps = JSX.HTMLAttributes<HTMLDivElement>;
|
|
62
|
+
declare const DropdownSeparator: ({ class: className, ...rest }: DropdownSeparatorProps) => JSX.Element;
|
|
63
|
+
|
|
64
|
+
type DropdownLabelProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
65
|
+
inset?: boolean;
|
|
66
|
+
children?: ComponentChildren;
|
|
67
|
+
};
|
|
68
|
+
declare const DropdownLabel: ({ inset, class: className, children, ...rest }: DropdownLabelProps) => JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare const dropdownItem: tailwind_variants.TVReturnType<{
|
|
71
|
+
variant: {
|
|
72
|
+
default: string;
|
|
73
|
+
destructive: string;
|
|
74
|
+
};
|
|
75
|
+
inset: {
|
|
76
|
+
true: string;
|
|
77
|
+
};
|
|
78
|
+
}, undefined, string[], {
|
|
79
|
+
variant: {
|
|
80
|
+
default: string;
|
|
81
|
+
destructive: string;
|
|
82
|
+
};
|
|
83
|
+
inset: {
|
|
84
|
+
true: string;
|
|
85
|
+
};
|
|
86
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
87
|
+
variant: {
|
|
88
|
+
default: string;
|
|
89
|
+
destructive: string;
|
|
90
|
+
};
|
|
91
|
+
inset: {
|
|
92
|
+
true: string;
|
|
93
|
+
};
|
|
94
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
95
|
+
type DropdownItemProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof dropdownItem> & {
|
|
96
|
+
children?: ComponentChildren;
|
|
97
|
+
};
|
|
98
|
+
declare const DropdownItem: ({ inset, variant, class: className, children, onClick, ...rest }: DropdownItemProps) => JSX.Element;
|
|
99
|
+
|
|
100
|
+
declare const dropdownContent: tailwind_variants.TVReturnType<{
|
|
101
|
+
side: {
|
|
102
|
+
bottom: string;
|
|
103
|
+
top: string;
|
|
104
|
+
right: string;
|
|
105
|
+
left: string;
|
|
106
|
+
};
|
|
107
|
+
}, undefined, string[], {
|
|
108
|
+
side: {
|
|
109
|
+
bottom: string;
|
|
110
|
+
top: string;
|
|
111
|
+
right: string;
|
|
112
|
+
left: string;
|
|
113
|
+
};
|
|
114
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
115
|
+
side: {
|
|
116
|
+
bottom: string;
|
|
117
|
+
top: string;
|
|
118
|
+
right: string;
|
|
119
|
+
left: string;
|
|
120
|
+
};
|
|
121
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
122
|
+
type DropdownContentProps = JSX.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dropdownContent> & {
|
|
123
|
+
forceMount?: boolean;
|
|
124
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
125
|
+
align?: "start" | "center" | "end";
|
|
126
|
+
sideOffset?: number;
|
|
127
|
+
children?: ComponentChildren;
|
|
128
|
+
};
|
|
129
|
+
declare const DropdownContent: ({ forceMount, side, align, sideOffset, class: className, style, children, onKeyDown, ...rest }: DropdownContentProps) => JSX.Element | null;
|
|
130
|
+
|
|
131
|
+
type DropdownTriggerProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
132
|
+
asChild?: boolean;
|
|
133
|
+
children?: ComponentChildren;
|
|
134
|
+
};
|
|
135
|
+
declare const DropdownTrigger: ({ asChild, class: className, children, onClick, ref: outerRef, ...rest }: DropdownTriggerProps) => JSX.Element | preact.VNode<{}> | null;
|
|
136
|
+
|
|
137
|
+
type DropdownProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
138
|
+
defaultOpen?: boolean;
|
|
139
|
+
children?: ComponentChildren;
|
|
140
|
+
};
|
|
141
|
+
declare const Dropdown: ({ defaultOpen, class: className, children, ...rest }: DropdownProps) => JSX.Element;
|
|
142
|
+
|
|
143
|
+
export { type DropdownCheckboxItemProps as A, type DropdownRadioGroupProps as B, type DropdownRadioItemProps as C, Dropdown as D, DropdownCheckboxItem as a, DropdownContent as b, DropdownGroup as c, DropdownItem as d, DropdownLabel as e, DropdownPortal as f, DropdownRadioGroup as g, DropdownRadioItem as h, DropdownSeparator as i, DropdownShortcut as j, DropdownSub as k, DropdownSubContent as l, DropdownSubTrigger as m, DropdownTrigger as n, type DropdownProps as o, type DropdownTriggerProps as p, type DropdownContentProps as q, type DropdownItemProps as r, type DropdownLabelProps as s, type DropdownSeparatorProps as t, type DropdownGroupProps as u, type DropdownShortcutProps as v, type DropdownSubProps as w, type DropdownSubTriggerProps as x, type DropdownSubContentProps as y, type DropdownPortalProps as z };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
|
|
5
|
+
/** Root layout for composable Field (shadcn fieldVariants). */
|
|
6
|
+
declare const fieldRoot: tailwind_variants.TVReturnType<{
|
|
7
|
+
orientation: {
|
|
8
|
+
vertical: string;
|
|
9
|
+
horizontal: string[];
|
|
10
|
+
responsive: string[];
|
|
11
|
+
};
|
|
12
|
+
}, undefined, string[], {
|
|
13
|
+
orientation: {
|
|
14
|
+
vertical: string;
|
|
15
|
+
horizontal: string[];
|
|
16
|
+
responsive: string[];
|
|
17
|
+
};
|
|
18
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
19
|
+
orientation: {
|
|
20
|
+
vertical: string;
|
|
21
|
+
horizontal: string[];
|
|
22
|
+
responsive: string[];
|
|
23
|
+
};
|
|
24
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
25
|
+
type FieldRootVariants = VariantProps<typeof fieldRoot>;
|
|
26
|
+
|
|
27
|
+
type FieldProps = JSX.HTMLAttributes<HTMLDivElement> & FieldRootVariants & {
|
|
28
|
+
/** Legacy: label text/node (composition: use FieldLabel instead). */
|
|
29
|
+
label?: ComponentChildren;
|
|
30
|
+
/** Legacy: helper below control. */
|
|
31
|
+
description?: ComponentChildren;
|
|
32
|
+
/** Legacy: error below control. */
|
|
33
|
+
error?: ComponentChildren;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
orientation?: "vertical" | "horizontal" | "responsive";
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
invalid?: boolean;
|
|
38
|
+
children?: ComponentChildren;
|
|
39
|
+
};
|
|
40
|
+
declare const Field: ({ class: className, label, description, error, required, orientation, disabled, invalid, children, ...rest }: FieldProps) => JSX.Element;
|
|
41
|
+
|
|
42
|
+
type FieldContentProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
43
|
+
children?: ComponentChildren;
|
|
44
|
+
};
|
|
45
|
+
declare const FieldContent: ({ class: className, children, ...rest }: FieldContentProps) => JSX.Element;
|
|
46
|
+
|
|
47
|
+
type FieldDescriptionProps = JSX.HTMLAttributes<HTMLParagraphElement> & {
|
|
48
|
+
children?: ComponentChildren;
|
|
49
|
+
};
|
|
50
|
+
declare const FieldDescription: ({ class: className, children, ...rest }: FieldDescriptionProps) => JSX.Element;
|
|
51
|
+
|
|
52
|
+
type FieldErrorProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
53
|
+
errors?: Array<{
|
|
54
|
+
message?: string;
|
|
55
|
+
} | undefined>;
|
|
56
|
+
children?: ComponentChildren;
|
|
57
|
+
};
|
|
58
|
+
declare const FieldError: ({ class: className, children, errors, ...rest }: FieldErrorProps) => JSX.Element | null;
|
|
59
|
+
|
|
60
|
+
type FieldGroupProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
61
|
+
children?: ComponentChildren;
|
|
62
|
+
};
|
|
63
|
+
declare const FieldGroup: ({ class: className, children, ...rest }: FieldGroupProps) => JSX.Element;
|
|
64
|
+
|
|
65
|
+
type FieldLabelProps = JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
66
|
+
declare const FieldLabel: ({ class: className, ...rest }: FieldLabelProps) => JSX.Element;
|
|
67
|
+
|
|
68
|
+
declare const fieldLegend: tailwind_variants.TVReturnType<{
|
|
69
|
+
variant: {
|
|
70
|
+
legend: string;
|
|
71
|
+
label: string;
|
|
72
|
+
};
|
|
73
|
+
}, undefined, "", {
|
|
74
|
+
variant: {
|
|
75
|
+
legend: string;
|
|
76
|
+
label: string;
|
|
77
|
+
};
|
|
78
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
79
|
+
variant: {
|
|
80
|
+
legend: string;
|
|
81
|
+
label: string;
|
|
82
|
+
};
|
|
83
|
+
}, undefined, "", unknown, unknown, undefined>>;
|
|
84
|
+
type FieldLegendProps = JSX.HTMLAttributes<HTMLLegendElement> & VariantProps<typeof fieldLegend>;
|
|
85
|
+
declare const FieldLegend: ({ class: className, variant, ...rest }: FieldLegendProps) => JSX.Element;
|
|
86
|
+
|
|
87
|
+
type FieldSeparatorProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
88
|
+
children?: ComponentChildren;
|
|
89
|
+
};
|
|
90
|
+
declare const FieldSeparator: ({ class: className, children, ...rest }: FieldSeparatorProps) => JSX.Element;
|
|
91
|
+
|
|
92
|
+
type FieldSetProps = JSX.FieldsetHTMLAttributes<HTMLFieldSetElement>;
|
|
93
|
+
declare const FieldSet: ({ class: className, ...rest }: FieldSetProps) => JSX.Element;
|
|
94
|
+
|
|
95
|
+
type FieldTitleProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
96
|
+
children?: ComponentChildren;
|
|
97
|
+
};
|
|
98
|
+
declare const FieldTitle: ({ class: className, children, ...rest }: FieldTitleProps) => JSX.Element;
|
|
99
|
+
|
|
100
|
+
export { Field as F, FieldContent as a, FieldDescription as b, FieldError as c, FieldGroup as d, FieldLabel as e, FieldLegend as f, type FieldRootVariants as g, FieldSeparator as h, FieldSet as i, FieldTitle as j, fieldRoot as k };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as preact from 'preact';
|
|
4
|
+
import { JSX, ComponentChildren } from 'preact';
|
|
5
|
+
|
|
6
|
+
declare const hoverCardContent: tailwind_variants.TVReturnType<{
|
|
7
|
+
side: {
|
|
8
|
+
bottom: string;
|
|
9
|
+
top: string;
|
|
10
|
+
right: string;
|
|
11
|
+
left: string;
|
|
12
|
+
};
|
|
13
|
+
}, undefined, string[], {
|
|
14
|
+
side: {
|
|
15
|
+
bottom: string;
|
|
16
|
+
top: string;
|
|
17
|
+
right: string;
|
|
18
|
+
left: string;
|
|
19
|
+
};
|
|
20
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
21
|
+
side: {
|
|
22
|
+
bottom: string;
|
|
23
|
+
top: string;
|
|
24
|
+
right: string;
|
|
25
|
+
left: string;
|
|
26
|
+
};
|
|
27
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
28
|
+
type HoverCardContentProps = JSX.HTMLAttributes<HTMLDivElement> & VariantProps<typeof hoverCardContent> & {
|
|
29
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
30
|
+
align?: "start" | "center" | "end";
|
|
31
|
+
sideOffset?: number;
|
|
32
|
+
children?: ComponentChildren;
|
|
33
|
+
};
|
|
34
|
+
declare const HoverCardContent: ({ side, align, sideOffset, class: className, style, children, onKeyDown, onMouseEnter, onMouseLeave, ...rest }: HoverCardContentProps) => JSX.Element | null;
|
|
35
|
+
|
|
36
|
+
type HoverCardTriggerProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
children?: ComponentChildren;
|
|
39
|
+
};
|
|
40
|
+
declare const HoverCardTrigger: ({ asChild, class: className, children, onFocus, onBlur, onMouseEnter, onMouseLeave, ref: outerRef, ...rest }: HoverCardTriggerProps) => JSX.Element | preact.VNode<{}> | null;
|
|
41
|
+
|
|
42
|
+
type HoverCardProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
|
43
|
+
defaultOpen?: boolean;
|
|
44
|
+
/** Delay before opening (ms). Radix default 700. */
|
|
45
|
+
openDelay?: number;
|
|
46
|
+
/** Delay before closing (ms). Radix default 300. */
|
|
47
|
+
closeDelay?: number;
|
|
48
|
+
children?: ComponentChildren;
|
|
49
|
+
};
|
|
50
|
+
declare const HoverCard: ({ defaultOpen, openDelay, closeDelay, children, ...rest }: HoverCardProps) => JSX.Element;
|
|
51
|
+
|
|
52
|
+
export { HoverCard as H, HoverCardContent as a, HoverCardTrigger as b, type HoverCardProps as c, type HoverCardTriggerProps as d, type HoverCardContentProps as e };
|