@omnifyjp/ui 0.1.6 → 0.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/dist/{chunk-XKVHX75G.js → chunk-2C2HRGM7.js} +3 -3
- package/dist/chunk-2C2HRGM7.js.map +1 -0
- package/dist/{chunk-CF2MMEOS.js → chunk-2TUWDXAC.js} +3 -3
- package/dist/chunk-2TUWDXAC.js.map +1 -0
- package/dist/{chunk-DZENMCRL.js → chunk-34ARZSNP.js} +2 -2
- package/dist/chunk-34ARZSNP.js.map +1 -0
- package/dist/{chunk-DIS42JLG.js → chunk-35DNN46W.js} +2 -2
- package/dist/chunk-35DNN46W.js.map +1 -0
- package/dist/{chunk-UCEUTKTQ.js → chunk-35U6QG4P.js} +5 -5
- package/dist/chunk-35U6QG4P.js.map +1 -0
- package/dist/{chunk-74K7VSEO.js → chunk-36YYHIJU.js} +4 -4
- package/dist/chunk-36YYHIJU.js.map +1 -0
- package/dist/{chunk-ANTYNEUU.js → chunk-3EOHW4QN.js} +2 -2
- package/dist/chunk-3EOHW4QN.js.map +1 -0
- package/dist/{chunk-EMHO6GT6.js → chunk-4MHIUUAW.js} +3 -3
- package/dist/chunk-4MHIUUAW.js.map +1 -0
- package/dist/chunk-55E7D2HR.js +99 -0
- package/dist/chunk-55E7D2HR.js.map +1 -0
- package/dist/{chunk-Z47W426M.js → chunk-67YUL2ZS.js} +2 -2
- package/dist/chunk-67YUL2ZS.js.map +1 -0
- package/dist/{chunk-XRGGZOD5.js → chunk-6DIDQ4TB.js} +10 -10
- package/dist/chunk-6DIDQ4TB.js.map +1 -0
- package/dist/{chunk-7ZFYPC74.js → chunk-6GWVQB3Q.js} +3 -3
- package/dist/chunk-6GWVQB3Q.js.map +1 -0
- package/dist/{chunk-DR4GGX45.js → chunk-75WZR6HF.js} +3 -3
- package/dist/chunk-75WZR6HF.js.map +1 -0
- package/dist/{chunk-QMABUSSD.js → chunk-7IRLBU2I.js} +3 -3
- package/dist/chunk-7IRLBU2I.js.map +1 -0
- package/dist/{chunk-WAPGZIAL.js → chunk-7RMTPT6O.js} +2 -2
- package/dist/chunk-7RMTPT6O.js.map +1 -0
- package/dist/{chunk-JPTN62BV.js → chunk-7XH3MGBR.js} +2 -2
- package/dist/chunk-7XH3MGBR.js.map +1 -0
- package/dist/chunk-A3BB5ZOC.js +77 -0
- package/dist/chunk-A3BB5ZOC.js.map +1 -0
- package/dist/{chunk-NFAXCC73.js → chunk-B434PORR.js} +2 -2
- package/dist/chunk-B434PORR.js.map +1 -0
- package/dist/{chunk-MNAT3ZF6.js → chunk-BAQWGQJG.js} +3 -3
- package/dist/chunk-BAQWGQJG.js.map +1 -0
- package/dist/{chunk-6GCAG5FH.js → chunk-BRSM3SZP.js} +2 -2
- package/dist/chunk-BRSM3SZP.js.map +1 -0
- package/dist/{chunk-AZARDPXB.js → chunk-C34KSTWA.js} +2 -2
- package/dist/chunk-C34KSTWA.js.map +1 -0
- package/dist/{chunk-4CT5SCAH.js → chunk-C5NZAOA7.js} +2 -2
- package/dist/chunk-C5NZAOA7.js.map +1 -0
- package/dist/{chunk-4Q2FLTAW.js → chunk-CUZR4JWM.js} +2 -2
- package/dist/chunk-CUZR4JWM.js.map +1 -0
- package/dist/{chunk-QMAMDYRD.js → chunk-EWBCV7VA.js} +2 -2
- package/dist/chunk-EWBCV7VA.js.map +1 -0
- package/dist/{chunk-4N357E44.js → chunk-F2ZJLKDP.js} +2 -2
- package/dist/chunk-F2ZJLKDP.js.map +1 -0
- package/dist/{chunk-KABLXGWK.js → chunk-FLWMT4DB.js} +2 -2
- package/dist/chunk-FLWMT4DB.js.map +1 -0
- package/dist/{chunk-IJIGJGL5.js → chunk-FRKG7JQY.js} +2 -2
- package/dist/chunk-FRKG7JQY.js.map +1 -0
- package/dist/{chunk-KRDWVQZ6.js → chunk-G7HTZBUR.js} +13 -13
- package/dist/chunk-G7HTZBUR.js.map +1 -0
- package/dist/{chunk-23SALQ3G.js → chunk-IAWKX5W4.js} +2 -2
- package/dist/chunk-IAWKX5W4.js.map +1 -0
- package/dist/{chunk-SABAKV4J.js → chunk-INLM7UJC.js} +2 -2
- package/dist/chunk-INLM7UJC.js.map +1 -0
- package/dist/{chunk-TEYOLOZY.js → chunk-JAJMM32I.js} +3 -3
- package/dist/chunk-JAJMM32I.js.map +1 -0
- package/dist/{chunk-TMFQJ7E3.js → chunk-JJSVA3TH.js} +2 -2
- package/dist/chunk-JJSVA3TH.js.map +1 -0
- package/dist/{chunk-KOGOYUEE.js → chunk-JLTBUACL.js} +2 -2
- package/dist/chunk-JLTBUACL.js.map +1 -0
- package/dist/{chunk-EIF6WZAZ.js → chunk-JRU2QX7T.js} +2 -2
- package/dist/chunk-JRU2QX7T.js.map +1 -0
- package/dist/{chunk-VGQC333M.js → chunk-JXGRW2MR.js} +2 -2
- package/dist/chunk-JXGRW2MR.js.map +1 -0
- package/dist/{chunk-CESZTYQQ.js → chunk-KTBOZ4NE.js} +4 -4
- package/dist/chunk-KTBOZ4NE.js.map +1 -0
- package/dist/{chunk-7ALADSN3.js → chunk-LMT327XH.js} +4 -4
- package/dist/chunk-LMT327XH.js.map +1 -0
- package/dist/{chunk-ZPWGR4CM.js → chunk-LTTNCAAA.js} +3 -3
- package/dist/chunk-LTTNCAAA.js.map +1 -0
- package/dist/{chunk-BJO5JCFB.js → chunk-LVZNNIK4.js} +3 -3
- package/dist/chunk-LVZNNIK4.js.map +1 -0
- package/dist/{chunk-YMZJ2RYW.js → chunk-MJLFJPUG.js} +9 -9
- package/dist/chunk-MJLFJPUG.js.map +1 -0
- package/dist/{chunk-3TV2IR7L.js → chunk-MZ2P566X.js} +4 -4
- package/dist/chunk-MZ2P566X.js.map +1 -0
- package/dist/{chunk-4D6FDXCG.js → chunk-N47H4MHX.js} +3 -3
- package/dist/chunk-N47H4MHX.js.map +1 -0
- package/dist/{chunk-BOYSXIM3.js → chunk-NNJTKHCE.js} +2 -2
- package/dist/chunk-NNJTKHCE.js.map +1 -0
- package/dist/{chunk-4OQTTPY4.js → chunk-NPL2R5LD.js} +5 -5
- package/dist/chunk-NPL2R5LD.js.map +1 -0
- package/dist/{chunk-725ICC47.js → chunk-NU56GKGM.js} +2 -2
- package/dist/{chunk-725ICC47.js.map → chunk-NU56GKGM.js.map} +1 -1
- package/dist/{chunk-KXZ7IND6.js → chunk-P3M5TZD2.js} +2 -2
- package/dist/chunk-P3M5TZD2.js.map +1 -0
- package/dist/{chunk-ONAUEREV.js → chunk-PGWNOZDX.js} +2 -2
- package/dist/chunk-PGWNOZDX.js.map +1 -0
- package/dist/{chunk-L46XUK4O.js → chunk-R2CDE5DO.js} +2 -2
- package/dist/chunk-R2CDE5DO.js.map +1 -0
- package/dist/{chunk-LI7CKURD.js → chunk-RQNZDWY3.js} +2 -2
- package/dist/chunk-RQNZDWY3.js.map +1 -0
- package/dist/{chunk-YKJZV2JK.js → chunk-S6PDRGR5.js} +2 -2
- package/dist/chunk-S6PDRGR5.js.map +1 -0
- package/dist/chunk-TGYQ3AKH.js +95 -0
- package/dist/chunk-TGYQ3AKH.js.map +1 -0
- package/dist/{chunk-RIIADVOV.js → chunk-THQUH6WX.js} +6 -6
- package/dist/chunk-THQUH6WX.js.map +1 -0
- package/dist/{chunk-RVJDDGQW.js → chunk-TJMK2KBE.js} +3 -3
- package/dist/chunk-TJMK2KBE.js.map +1 -0
- package/dist/{chunk-5WCL47ZW.js → chunk-TTH7TWVX.js} +2 -2
- package/dist/chunk-TTH7TWVX.js.map +1 -0
- package/dist/{chunk-LW5PTU7D.js → chunk-USIHM7FV.js} +2 -2
- package/dist/chunk-USIHM7FV.js.map +1 -0
- package/dist/{chunk-PCQSHXOQ.js → chunk-VVYSAGB3.js} +6 -6
- package/dist/chunk-VVYSAGB3.js.map +1 -0
- package/dist/{chunk-CDARHMTL.js → chunk-WD5KZE25.js} +2 -2
- package/dist/chunk-WD5KZE25.js.map +1 -0
- package/dist/{chunk-PPZSGU2L.js → chunk-WL4ZO2H3.js} +2 -2
- package/dist/chunk-WL4ZO2H3.js.map +1 -0
- package/dist/{chunk-5M67ZEPM.js → chunk-XOJJBNDX.js} +2 -2
- package/dist/chunk-XOJJBNDX.js.map +1 -0
- package/dist/{chunk-JJHKFW6P.js → chunk-XUVLD65E.js} +7 -7
- package/dist/chunk-XUVLD65E.js.map +1 -0
- package/dist/{chunk-KXT75MXF.js → chunk-YBMEQZX7.js} +2 -2
- package/dist/chunk-YBMEQZX7.js.map +1 -0
- package/dist/{chunk-GJCHZAJO.js → chunk-YS3PMGYC.js} +5 -5
- package/dist/chunk-YS3PMGYC.js.map +1 -0
- package/dist/{chunk-OXQNDQJW.js → chunk-Z2QAABLM.js} +2 -2
- package/dist/chunk-Z2QAABLM.js.map +1 -0
- package/dist/{chunk-YF6WRCTG.js → chunk-ZHEKDP5X.js} +3 -3
- package/dist/chunk-ZHEKDP5X.js.map +1 -0
- package/dist/{chunk-OHBCYKNT.js → chunk-ZPMXRW2A.js} +3 -3
- package/dist/chunk-ZPMXRW2A.js.map +1 -0
- package/dist/{chunk-QCGYYBDZ.js → chunk-ZYEGBF7G.js} +3 -3
- package/dist/chunk-ZYEGBF7G.js.map +1 -0
- package/dist/components/accordion.d.ts +27 -0
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +39 -0
- package/dist/components/alert-dialog.js +2 -2
- package/dist/components/alert.d.ts +57 -2
- package/dist/components/alert.js +1 -1
- package/dist/components/aspect-ratio.d.ts +17 -0
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/avatar.d.ts +43 -4
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.d.ts +43 -4
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.d.ts +36 -0
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/button.d.ts +43 -19
- package/dist/components/button.js +1 -1
- package/dist/components/calendar-category-badge.d.ts +14 -0
- package/dist/components/calendar-category-badge.js +2 -2
- package/dist/components/calendar-event-chip.d.ts +23 -0
- package/dist/components/calendar-event-chip.js +1 -1
- package/dist/components/calendar-event-sheet.d.ts +37 -0
- package/dist/components/calendar-event-sheet.js +6 -6
- package/dist/components/calendar-mini.d.ts +36 -0
- package/dist/components/calendar-mini.js +3 -3
- package/dist/components/calendar-toolbar.d.ts +34 -1
- package/dist/components/calendar-toolbar.js +4 -4
- package/dist/components/calendar.d.ts +12 -0
- package/dist/components/calendar.js +2 -2
- package/dist/components/card.d.ts +31 -0
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.d.ts +29 -0
- package/dist/components/carousel.js +2 -2
- package/dist/components/chart.d.ts +61 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.d.ts +19 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/collapsible.d.ts +20 -0
- package/dist/components/collapsible.js +1 -1
- package/dist/components/color-picker.d.ts +22 -0
- package/dist/components/color-picker.js +3 -3
- package/dist/components/combobox.d.ts +65 -0
- package/dist/components/combobox.js +5 -5
- package/dist/components/command.d.ts +43 -0
- package/dist/components/command.js +2 -2
- package/dist/components/context-menu.d.ts +42 -0
- package/dist/components/context-menu.js +1 -1
- package/dist/components/date-picker.d.ts +42 -2
- package/dist/components/date-picker.js +4 -4
- package/dist/components/dialog.d.ts +42 -0
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.d.ts +43 -0
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.d.ts +48 -0
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/file-upload.d.ts +27 -0
- package/dist/components/file-upload.js +2 -2
- package/dist/components/form.d.ts +39 -0
- package/dist/components/form.js +2 -2
- package/dist/components/hover-card.d.ts +34 -0
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-otp.d.ts +24 -0
- package/dist/components/input-otp.js +1 -1
- package/dist/components/label.d.ts +15 -1
- package/dist/components/label.js +1 -1
- package/dist/components/menubar.d.ts +53 -0
- package/dist/components/menubar.js +1 -1
- package/dist/components/navigation-menu.d.ts +46 -0
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/pagination.d.ts +41 -0
- package/dist/components/pagination.js +2 -2
- package/dist/components/permission-grid.d.ts +37 -0
- package/dist/components/permission-grid.js +2 -2
- package/dist/components/popover.d.ts +27 -0
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.d.ts +15 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +33 -3
- package/dist/components/radio-group.js +1 -1
- package/dist/components/rating.d.ts +21 -0
- package/dist/components/rating.js +1 -1
- package/dist/components/resizable.d.ts +25 -0
- package/dist/components/resizable.js +1 -1
- package/dist/components/scope-tree.d.ts +45 -2
- package/dist/components/scope-tree.js +2 -2
- package/dist/components/scope-type-badge.d.ts +15 -0
- package/dist/components/scope-type-badge.js +2 -2
- package/dist/components/scroll-area.d.ts +21 -0
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/select.d.ts +34 -0
- package/dist/components/select.js +1 -1
- package/dist/components/separator.d.ts +19 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/sheet.d.ts +35 -0
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.d.ts +94 -0
- package/dist/components/sidebar.js +6 -6
- package/dist/components/skeleton.d.ts +22 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.d.ts +19 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/slug-input.d.ts +28 -0
- package/dist/components/slug-input.js +2 -2
- package/dist/components/sonner.d.ts +16 -0
- package/dist/components/sonner.js +1 -1
- package/dist/components/stage-type-badge.d.ts +6 -0
- package/dist/components/stage-type-badge.js +2 -2
- package/dist/components/switch.d.ts +21 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/table.d.ts +44 -0
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.d.ts +29 -0
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag-input.d.ts +25 -0
- package/dist/components/tag-input.js +2 -2
- package/dist/components/textarea.d.ts +17 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/time-picker.d.ts +37 -0
- package/dist/components/time-picker.js +4 -4
- package/dist/components/toggle-group.d.ts +36 -3
- package/dist/components/toggle-group.js +2 -2
- package/dist/components/toggle.d.ts +20 -2
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.d.ts +24 -0
- package/dist/components/tooltip.js +1 -1
- package/dist/components/workflow-category-badge.d.ts +6 -0
- package/dist/components/workflow-category-badge.js +2 -2
- package/dist/components/workflow-diagram.d.ts +21 -1
- package/dist/components/workflow-diagram.js +2 -2
- package/dist/components/workflow-status-badge.d.ts +6 -0
- package/dist/components/workflow-status-badge.js +2 -2
- package/dist/components/workflow-stepper.d.ts +18 -0
- package/dist/components/workflow-stepper.js +1 -1
- package/dist/index.d.ts +14 -13
- package/dist/index.js +66 -66
- package/dist/types-CBVkScfB.d.ts +84 -0
- package/package.json +23 -13
- package/src/styles/theme.css +10 -0
- package/dist/chunk-23SALQ3G.js.map +0 -1
- package/dist/chunk-3TGN2DFB.js +0 -41
- package/dist/chunk-3TGN2DFB.js.map +0 -1
- package/dist/chunk-3TV2IR7L.js.map +0 -1
- package/dist/chunk-4CT5SCAH.js.map +0 -1
- package/dist/chunk-4D6FDXCG.js.map +0 -1
- package/dist/chunk-4N357E44.js.map +0 -1
- package/dist/chunk-4OQTTPY4.js.map +0 -1
- package/dist/chunk-4Q2FLTAW.js.map +0 -1
- package/dist/chunk-5M67ZEPM.js.map +0 -1
- package/dist/chunk-5WCL47ZW.js.map +0 -1
- package/dist/chunk-6GCAG5FH.js.map +0 -1
- package/dist/chunk-74K7VSEO.js.map +0 -1
- package/dist/chunk-7ALADSN3.js.map +0 -1
- package/dist/chunk-7ZFYPC74.js.map +0 -1
- package/dist/chunk-ANTYNEUU.js.map +0 -1
- package/dist/chunk-AZARDPXB.js.map +0 -1
- package/dist/chunk-BJO5JCFB.js.map +0 -1
- package/dist/chunk-BOYSXIM3.js.map +0 -1
- package/dist/chunk-CDARHMTL.js.map +0 -1
- package/dist/chunk-CESZTYQQ.js.map +0 -1
- package/dist/chunk-CF2MMEOS.js.map +0 -1
- package/dist/chunk-DIS42JLG.js.map +0 -1
- package/dist/chunk-DR4GGX45.js.map +0 -1
- package/dist/chunk-DZENMCRL.js.map +0 -1
- package/dist/chunk-EIF6WZAZ.js.map +0 -1
- package/dist/chunk-EMHO6GT6.js.map +0 -1
- package/dist/chunk-FBNG2KGO.js +0 -66
- package/dist/chunk-FBNG2KGO.js.map +0 -1
- package/dist/chunk-GJCHZAJO.js.map +0 -1
- package/dist/chunk-IJIGJGL5.js.map +0 -1
- package/dist/chunk-JJHKFW6P.js.map +0 -1
- package/dist/chunk-JPTN62BV.js.map +0 -1
- package/dist/chunk-KABLXGWK.js.map +0 -1
- package/dist/chunk-KOGOYUEE.js.map +0 -1
- package/dist/chunk-KRDWVQZ6.js.map +0 -1
- package/dist/chunk-KXT75MXF.js.map +0 -1
- package/dist/chunk-KXZ7IND6.js.map +0 -1
- package/dist/chunk-L46XUK4O.js.map +0 -1
- package/dist/chunk-LI7CKURD.js.map +0 -1
- package/dist/chunk-LW5PTU7D.js.map +0 -1
- package/dist/chunk-MNAT3ZF6.js.map +0 -1
- package/dist/chunk-NFAXCC73.js.map +0 -1
- package/dist/chunk-OHBCYKNT.js.map +0 -1
- package/dist/chunk-ONAUEREV.js.map +0 -1
- package/dist/chunk-OXQNDQJW.js.map +0 -1
- package/dist/chunk-PCQSHXOQ.js.map +0 -1
- package/dist/chunk-PPZSGU2L.js.map +0 -1
- package/dist/chunk-QCGYYBDZ.js.map +0 -1
- package/dist/chunk-QMABUSSD.js.map +0 -1
- package/dist/chunk-QMAMDYRD.js.map +0 -1
- package/dist/chunk-RIIADVOV.js.map +0 -1
- package/dist/chunk-RVJDDGQW.js.map +0 -1
- package/dist/chunk-SABAKV4J.js.map +0 -1
- package/dist/chunk-TEYOLOZY.js.map +0 -1
- package/dist/chunk-TMFQJ7E3.js.map +0 -1
- package/dist/chunk-UCEUTKTQ.js.map +0 -1
- package/dist/chunk-VGQC333M.js.map +0 -1
- package/dist/chunk-WAPGZIAL.js.map +0 -1
- package/dist/chunk-XKVHX75G.js.map +0 -1
- package/dist/chunk-XRGGZOD5.js.map +0 -1
- package/dist/chunk-Y65FNGEE.js +0 -52
- package/dist/chunk-Y65FNGEE.js.map +0 -1
- package/dist/chunk-YF6WRCTG.js.map +0 -1
- package/dist/chunk-YKJZV2JK.js.map +0 -1
- package/dist/chunk-YMZJ2RYW.js.map +0 -1
- package/dist/chunk-Z47W426M.js.map +0 -1
- package/dist/chunk-ZPWGR4CM.js.map +0 -1
|
@@ -4,21 +4,50 @@ import useEmblaCarousel from 'embla-carousel-react';
|
|
|
4
4
|
import { Button } from './button.js';
|
|
5
5
|
import 'class-variance-authority/types';
|
|
6
6
|
import 'class-variance-authority';
|
|
7
|
+
import '../types-CBVkScfB.js';
|
|
7
8
|
|
|
8
9
|
type CarouselApi = ReturnType<typeof useEmblaCarousel>[1];
|
|
9
10
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
10
11
|
type CarouselOptions = UseCarouselParameters[0];
|
|
11
12
|
type CarouselPlugin = UseCarouselParameters[1];
|
|
12
13
|
type CarouselProps = {
|
|
14
|
+
/** Embla Carousel options (e.g., `{ loop: true, align: "start" }`). */
|
|
13
15
|
opts?: CarouselOptions;
|
|
16
|
+
/** Embla Carousel plugins (e.g., Autoplay, ClassNames). */
|
|
14
17
|
plugins?: CarouselPlugin;
|
|
18
|
+
/** Scroll axis direction. Defaults to `"horizontal"`. */
|
|
15
19
|
orientation?: "horizontal" | "vertical";
|
|
20
|
+
/** Callback to receive the Embla API instance for external control. */
|
|
16
21
|
setApi?: (api: CarouselApi) => void;
|
|
17
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Carousel/slider component powered by Embla Carousel.
|
|
25
|
+
*
|
|
26
|
+
* Provides a context for child components (`CarouselContent`, `CarouselItem`,
|
|
27
|
+
* `CarouselPrevious`, `CarouselNext`). Supports horizontal/vertical orientation,
|
|
28
|
+
* keyboard navigation (arrow keys), and plugin extensibility.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <Carousel opts={{ loop: true }}>
|
|
33
|
+
* <CarouselContent>
|
|
34
|
+
* <CarouselItem>Slide 1</CarouselItem>
|
|
35
|
+
* <CarouselItem>Slide 2</CarouselItem>
|
|
36
|
+
* <CarouselItem>Slide 3</CarouselItem>
|
|
37
|
+
* </CarouselContent>
|
|
38
|
+
* <CarouselPrevious />
|
|
39
|
+
* <CarouselNext />
|
|
40
|
+
* </Carousel>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
18
43
|
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): react_jsx_runtime.JSX.Element;
|
|
44
|
+
/** Scrollable container for `CarouselItem` elements. Manages the overflow viewport. */
|
|
19
45
|
declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
46
|
+
/** Individual slide within the carousel. Defaults to full-width (`basis-full`). */
|
|
20
47
|
declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Navigation button to scroll to the previous slide. Automatically disabled when at the beginning. */
|
|
21
49
|
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
50
|
+
/** Navigation button to scroll to the next slide. Automatically disabled when at the end. */
|
|
22
51
|
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
23
52
|
|
|
24
53
|
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from '../chunk-2TUWDXAC.js';
|
|
2
|
+
import '../chunk-55E7D2HR.js';
|
|
3
3
|
import '../chunk-DGPY4WP3.js';
|
|
4
4
|
//# sourceMappingURL=carousel.js.map
|
|
5
5
|
//# sourceMappingURL=carousel.js.map
|
|
@@ -6,37 +6,97 @@ declare const THEMES: {
|
|
|
6
6
|
readonly light: "";
|
|
7
7
|
readonly dark: ".dark";
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Configuration object for chart data series. Each key maps to a data series
|
|
11
|
+
* and defines its label, optional icon, and color (either a single color or
|
|
12
|
+
* per-theme colors).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const config: ChartConfig = {
|
|
17
|
+
* revenue: { label: "Revenue", color: "var(--color-blue-500)" },
|
|
18
|
+
* expenses: { label: "Expenses", theme: { light: "#ef4444", dark: "#f87171" } },
|
|
19
|
+
* };
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
9
22
|
type ChartConfig = {
|
|
10
23
|
[k in string]: {
|
|
24
|
+
/** Display label for this data series. */
|
|
11
25
|
label?: React.ReactNode;
|
|
26
|
+
/** Optional icon component displayed in the legend. */
|
|
12
27
|
icon?: React.ComponentType;
|
|
13
28
|
} & ({
|
|
14
29
|
color?: string;
|
|
15
30
|
theme?: never;
|
|
16
31
|
} | {
|
|
17
|
-
color?: never;
|
|
32
|
+
color?: never; /** Per-theme color mapping (light/dark). */
|
|
18
33
|
theme: Record<keyof typeof THEMES, string>;
|
|
19
34
|
});
|
|
20
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Wrapper that provides chart configuration context, injects theme-aware CSS
|
|
38
|
+
* custom properties for data series colors, and renders a Recharts
|
|
39
|
+
* `ResponsiveContainer`.
|
|
40
|
+
*
|
|
41
|
+
* @param config - Chart configuration mapping data keys to labels, icons, and colors.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <ChartContainer config={{ revenue: { label: "Revenue", color: "#3b82f6" } }}>
|
|
46
|
+
* <BarChart data={data}>
|
|
47
|
+
* <Bar dataKey="revenue" fill="var(--color-revenue)" />
|
|
48
|
+
* </BarChart>
|
|
49
|
+
* </ChartContainer>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
21
52
|
declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<"div"> & {
|
|
53
|
+
/** Chart configuration mapping data keys to labels, icons, and colors. */
|
|
22
54
|
config: ChartConfig;
|
|
55
|
+
/** Recharts chart element (e.g. BarChart, LineChart). */
|
|
23
56
|
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
24
57
|
}): react_jsx_runtime.JSX.Element;
|
|
58
|
+
/** Injects a `<style>` tag with CSS custom properties for chart colors, scoped to the chart container. */
|
|
25
59
|
declare const ChartStyle: ({ id, config }: {
|
|
26
60
|
id: string;
|
|
27
61
|
config: ChartConfig;
|
|
28
62
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
63
|
+
/** Re-export of Recharts Tooltip for use with ChartTooltipContent. */
|
|
29
64
|
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
65
|
+
/**
|
|
66
|
+
* Styled tooltip content for use inside `<ChartTooltip content={<ChartTooltipContent />} />`.
|
|
67
|
+
* Renders data series with color indicators, labels from ChartConfig, and formatted values.
|
|
68
|
+
*
|
|
69
|
+
* @param indicator - Shape of the color indicator: `"dot"`, `"line"`, or `"dashed"`.
|
|
70
|
+
* @param hideLabel - Whether to hide the tooltip header label.
|
|
71
|
+
* @param hideIndicator - Whether to hide the color indicator.
|
|
72
|
+
* @param nameKey - Data key to resolve series name from the payload.
|
|
73
|
+
* @param labelKey - Data key to resolve the tooltip header label from config.
|
|
74
|
+
*/
|
|
30
75
|
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
|
|
76
|
+
/** Whether to hide the tooltip header label. */
|
|
31
77
|
hideLabel?: boolean;
|
|
78
|
+
/** Whether to hide the color indicator next to each series. */
|
|
32
79
|
hideIndicator?: boolean;
|
|
80
|
+
/** Shape of the color indicator. Defaults to `"dot"`. */
|
|
33
81
|
indicator?: "line" | "dot" | "dashed";
|
|
82
|
+
/** Data key used to resolve the series name from payload. */
|
|
34
83
|
nameKey?: string;
|
|
84
|
+
/** Data key used to resolve the header label from config. */
|
|
35
85
|
labelKey?: string;
|
|
36
86
|
}): react_jsx_runtime.JSX.Element | null;
|
|
87
|
+
/** Re-export of Recharts Legend for use with ChartLegendContent. */
|
|
37
88
|
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
89
|
+
/**
|
|
90
|
+
* Styled legend content for use inside `<ChartLegend content={<ChartLegendContent />} />`.
|
|
91
|
+
* Renders a horizontal list of series labels with color indicators or custom icons from ChartConfig.
|
|
92
|
+
*
|
|
93
|
+
* @param hideIcon - Whether to hide the color dot / custom icon.
|
|
94
|
+
* @param nameKey - Data key to resolve the series name from payload.
|
|
95
|
+
*/
|
|
38
96
|
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
|
97
|
+
/** Whether to hide the color indicator or custom icon. */
|
|
39
98
|
hideIcon?: boolean;
|
|
99
|
+
/** Data key used to resolve the series name from payload. */
|
|
40
100
|
nameKey?: string;
|
|
41
101
|
}): react_jsx_runtime.JSX.Element | null;
|
|
42
102
|
|
package/dist/components/chart.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from '../chunk-
|
|
1
|
+
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from '../chunk-B434PORR.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=chart.js.map
|
|
4
4
|
//# sourceMappingURL=chart.js.map
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
3
|
|
|
4
|
+
type CheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
|
|
5
|
+
/**
|
|
6
|
+
* Checkable input that allows selecting one or more options from a set.
|
|
7
|
+
* Supports checked, unchecked, and indeterminate states.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* // Basic usage
|
|
12
|
+
* <Checkbox id="terms" />
|
|
13
|
+
* <Label htmlFor="terms">Accept terms</Label>
|
|
14
|
+
*
|
|
15
|
+
* // Controlled
|
|
16
|
+
* <Checkbox checked={accepted} onCheckedChange={setAccepted} />
|
|
17
|
+
*
|
|
18
|
+
* // Indeterminate (partial selection)
|
|
19
|
+
* <Checkbox checked="indeterminate" />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
4
22
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
23
|
|
|
6
|
-
export { Checkbox };
|
|
24
|
+
export { Checkbox, type CheckboxProps };
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Expandable/collapsible container built on Radix Collapsible.
|
|
6
|
+
*
|
|
7
|
+
* Manages open/closed state for a single content region. For multiple
|
|
8
|
+
* collapsible sections, consider using `Accordion` instead.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Collapsible>
|
|
13
|
+
* <CollapsibleTrigger asChild>
|
|
14
|
+
* <Button variant="ghost">Toggle details</Button>
|
|
15
|
+
* </CollapsibleTrigger>
|
|
16
|
+
* <CollapsibleContent>
|
|
17
|
+
* <p>Hidden content revealed on toggle.</p>
|
|
18
|
+
* </CollapsibleContent>
|
|
19
|
+
* </Collapsible>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
4
22
|
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
/** Button or element that toggles the collapsible open/closed state. Supports `asChild` for custom trigger elements. */
|
|
5
24
|
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime.JSX.Element;
|
|
25
|
+
/** Content region that shows/hides when the collapsible is toggled. */
|
|
6
26
|
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime.JSX.Element;
|
|
7
27
|
|
|
8
28
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -1,13 +1,35 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
interface ColorPickerProps {
|
|
4
|
+
/** Currently selected color as a hex string (e.g., `"#3B82F6"`). */
|
|
4
5
|
value?: string;
|
|
6
|
+
/** Callback fired when a color is selected. Receives a hex string. */
|
|
5
7
|
onChange?: (color: string) => void;
|
|
8
|
+
/** Additional CSS class for the trigger button. */
|
|
6
9
|
className?: string;
|
|
10
|
+
/** Whether the color picker is disabled. */
|
|
7
11
|
disabled?: boolean;
|
|
12
|
+
/** Whether to show the preset color grid. Defaults to `true`. */
|
|
8
13
|
showPresets?: boolean;
|
|
14
|
+
/** Whether to show the custom hex input with native color picker. Defaults to `true`. */
|
|
9
15
|
showInput?: boolean;
|
|
10
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Color picker with a popover containing preset color swatches and an optional custom hex input.
|
|
19
|
+
* The trigger button shows the currently selected color swatch and its hex value.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* const [color, setColor] = useState("#3B82F6");
|
|
24
|
+
*
|
|
25
|
+
* <ColorPicker
|
|
26
|
+
* value={color}
|
|
27
|
+
* onChange={setColor}
|
|
28
|
+
* showPresets
|
|
29
|
+
* showInput
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
11
33
|
declare function ColorPicker({ value, onChange, className, disabled, showPresets, showInput, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
12
34
|
|
|
13
35
|
export { ColorPicker };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ColorPicker } from '../chunk-
|
|
1
|
+
export { ColorPicker } from '../chunk-MJLFJPUG.js';
|
|
2
2
|
import '../chunk-3VU56V66.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-C34KSTWA.js';
|
|
4
|
+
import '../chunk-55E7D2HR.js';
|
|
5
5
|
import '../chunk-DGPY4WP3.js';
|
|
6
6
|
//# sourceMappingURL=color-picker.js.map
|
|
7
7
|
//# sourceMappingURL=color-picker.js.map
|
|
@@ -1,33 +1,98 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
/** A single option in the Combobox dropdown. */
|
|
3
4
|
interface ComboboxOption {
|
|
5
|
+
/** Unique value for this option. */
|
|
4
6
|
value: string;
|
|
7
|
+
/** Display label shown in the dropdown list. */
|
|
5
8
|
label: string;
|
|
9
|
+
/** Whether this option is non-selectable. */
|
|
6
10
|
disabled?: boolean;
|
|
7
11
|
}
|
|
8
12
|
interface ComboboxProps {
|
|
13
|
+
/** Available options to display in the dropdown. */
|
|
9
14
|
options: ComboboxOption[];
|
|
15
|
+
/** Currently selected value. */
|
|
10
16
|
value?: string;
|
|
17
|
+
/** Callback fired when the selected value changes. */
|
|
11
18
|
onChange?: (value: string) => void;
|
|
19
|
+
/** Placeholder text shown when no value is selected. */
|
|
12
20
|
placeholder?: string;
|
|
21
|
+
/** Placeholder text for the search input inside the dropdown. */
|
|
13
22
|
searchPlaceholder?: string;
|
|
23
|
+
/** Text shown when no options match the search query. */
|
|
14
24
|
emptyText?: string;
|
|
25
|
+
/** Additional CSS class for the trigger button. */
|
|
15
26
|
className?: string;
|
|
27
|
+
/** Whether the combobox is disabled. */
|
|
16
28
|
disabled?: boolean;
|
|
29
|
+
/** Whether to show a clear button when a value is selected. */
|
|
17
30
|
clearable?: boolean;
|
|
18
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Searchable single-select combobox built on cmdk and Radix Popover.
|
|
34
|
+
* Combines a text search input with a selectable option list.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* const [value, setValue] = useState("");
|
|
39
|
+
*
|
|
40
|
+
* <Combobox
|
|
41
|
+
* options={[
|
|
42
|
+
* { value: "react", label: "React" },
|
|
43
|
+
* { value: "vue", label: "Vue" },
|
|
44
|
+
* { value: "svelte", label: "Svelte" },
|
|
45
|
+
* ]}
|
|
46
|
+
* value={value}
|
|
47
|
+
* onChange={setValue}
|
|
48
|
+
* placeholder="Select framework..."
|
|
49
|
+
* searchPlaceholder="Search..."
|
|
50
|
+
* clearable
|
|
51
|
+
* />
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
19
54
|
declare function Combobox({ options, value, onChange, placeholder, searchPlaceholder, emptyText, className, disabled, clearable, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
20
55
|
interface MultiComboboxProps {
|
|
56
|
+
/** Available options to display in the dropdown. */
|
|
21
57
|
options: ComboboxOption[];
|
|
58
|
+
/** Array of currently selected values. */
|
|
22
59
|
value?: string[];
|
|
60
|
+
/** Callback fired when the selection changes. */
|
|
23
61
|
onChange?: (value: string[]) => void;
|
|
62
|
+
/** Placeholder text shown when no values are selected. */
|
|
24
63
|
placeholder?: string;
|
|
64
|
+
/** Placeholder text for the search input inside the dropdown. */
|
|
25
65
|
searchPlaceholder?: string;
|
|
66
|
+
/** Text shown when no options match the search query. */
|
|
26
67
|
emptyText?: string;
|
|
68
|
+
/** Additional CSS class for the trigger button. */
|
|
27
69
|
className?: string;
|
|
70
|
+
/** Whether the combobox is disabled. */
|
|
28
71
|
disabled?: boolean;
|
|
72
|
+
/** Maximum number of items that can be selected. */
|
|
29
73
|
maxSelected?: number;
|
|
30
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Searchable multi-select combobox that allows selecting multiple values.
|
|
77
|
+
* Selected items are shown as a count in the trigger button.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* const [selected, setSelected] = useState<string[]>([]);
|
|
82
|
+
*
|
|
83
|
+
* <MultiCombobox
|
|
84
|
+
* options={[
|
|
85
|
+
* { value: "react", label: "React" },
|
|
86
|
+
* { value: "vue", label: "Vue" },
|
|
87
|
+
* { value: "svelte", label: "Svelte" },
|
|
88
|
+
* ]}
|
|
89
|
+
* value={selected}
|
|
90
|
+
* onChange={setSelected}
|
|
91
|
+
* placeholder="Select frameworks..."
|
|
92
|
+
* maxSelected={3}
|
|
93
|
+
* />
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
31
96
|
declare function MultiCombobox({ options, value, onChange, placeholder, searchPlaceholder, emptyText, className, disabled, maxSelected, }: MultiComboboxProps): react_jsx_runtime.JSX.Element;
|
|
32
97
|
|
|
33
98
|
export { Combobox, type ComboboxOption, MultiCombobox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { Combobox, MultiCombobox } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { Combobox, MultiCombobox } from '../chunk-NPL2R5LD.js';
|
|
2
|
+
import '../chunk-C34KSTWA.js';
|
|
3
|
+
import '../chunk-6GWVQB3Q.js';
|
|
4
|
+
import '../chunk-F2ZJLKDP.js';
|
|
5
|
+
import '../chunk-55E7D2HR.js';
|
|
6
6
|
import '../chunk-DGPY4WP3.js';
|
|
7
7
|
//# sourceMappingURL=combobox.js.map
|
|
8
8
|
//# sourceMappingURL=combobox.js.map
|
|
@@ -4,17 +4,60 @@ import { Command as Command$1 } from 'cmdk';
|
|
|
4
4
|
import { Dialog } from './dialog.js';
|
|
5
5
|
import '@radix-ui/react-dialog';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Command palette component built on cmdk.
|
|
9
|
+
*
|
|
10
|
+
* Provides a searchable, keyboard-navigable list of commands or options.
|
|
11
|
+
* Use `CommandDialog` for a modal command palette, or `Command` inline
|
|
12
|
+
* for embedded search/filter interfaces like comboboxes.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <CommandDialog open={open} onOpenChange={setOpen}>
|
|
17
|
+
* <CommandInput placeholder="Type a command or search..." />
|
|
18
|
+
* <CommandList>
|
|
19
|
+
* <CommandEmpty>No results found.</CommandEmpty>
|
|
20
|
+
* <CommandGroup heading="Suggestions">
|
|
21
|
+
* <CommandItem>
|
|
22
|
+
* <CalendarIcon className="size-4" />
|
|
23
|
+
* Calendar
|
|
24
|
+
* </CommandItem>
|
|
25
|
+
* <CommandItem>
|
|
26
|
+
* <SearchIcon className="size-4" />
|
|
27
|
+
* Search
|
|
28
|
+
* <CommandShortcut>Ctrl+K</CommandShortcut>
|
|
29
|
+
* </CommandItem>
|
|
30
|
+
* </CommandGroup>
|
|
31
|
+
* <CommandSeparator />
|
|
32
|
+
* <CommandGroup heading="Settings">
|
|
33
|
+
* <CommandItem>
|
|
34
|
+
* <SettingsIcon className="size-4" />
|
|
35
|
+
* Settings
|
|
36
|
+
* </CommandItem>
|
|
37
|
+
* </CommandGroup>
|
|
38
|
+
* </CommandList>
|
|
39
|
+
* </CommandDialog>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
7
42
|
declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
/** Modal wrapper that renders a Command palette inside a Dialog. Accepts optional `title` and `description` for accessibility. */
|
|
8
44
|
declare function CommandDialog({ title, description, children, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
9
45
|
title?: string;
|
|
10
46
|
description?: string;
|
|
11
47
|
}): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Search input field with a magnifying glass icon for filtering command items. */
|
|
12
49
|
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
50
|
+
/** Scrollable container for command groups and items. */
|
|
13
51
|
declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
52
|
+
/** Fallback content shown when no command items match the search query. */
|
|
14
53
|
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
54
|
+
/** Groups related command items under an optional heading. */
|
|
15
55
|
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
56
|
+
/** Visual divider between groups of command items. */
|
|
16
57
|
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
58
|
+
/** Selectable command item that can be navigated with keyboard arrows and activated with Enter. */
|
|
17
59
|
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
60
|
+
/** Keyboard shortcut hint displayed at the end of a command item. */
|
|
18
61
|
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
19
62
|
|
|
20
63
|
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from '../chunk-6GWVQB3Q.js';
|
|
2
|
+
import '../chunk-F2ZJLKDP.js';
|
|
3
3
|
import '../chunk-DGPY4WP3.js';
|
|
4
4
|
//# sourceMappingURL=command.js.map
|
|
5
5
|
//# sourceMappingURL=command.js.map
|
|
@@ -2,27 +2,69 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Right-click context menu built on Radix UI ContextMenu.
|
|
7
|
+
*
|
|
8
|
+
* Displays a menu of actions when the user right-clicks (or long-presses)
|
|
9
|
+
* on the trigger area. Supports items, checkbox items, radio items,
|
|
10
|
+
* sub-menus, separators, labels, and shortcuts.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <ContextMenu>
|
|
15
|
+
* <ContextMenuTrigger className="flex h-40 w-64 items-center justify-center rounded-md border border-dashed">
|
|
16
|
+
* Right click here
|
|
17
|
+
* </ContextMenuTrigger>
|
|
18
|
+
* <ContextMenuContent>
|
|
19
|
+
* <ContextMenuItem>
|
|
20
|
+
* Copy
|
|
21
|
+
* <ContextMenuShortcut>Ctrl+C</ContextMenuShortcut>
|
|
22
|
+
* </ContextMenuItem>
|
|
23
|
+
* <ContextMenuItem>
|
|
24
|
+
* Paste
|
|
25
|
+
* <ContextMenuShortcut>Ctrl+V</ContextMenuShortcut>
|
|
26
|
+
* </ContextMenuItem>
|
|
27
|
+
* <ContextMenuSeparator />
|
|
28
|
+
* <ContextMenuItem variant="destructive">Delete</ContextMenuItem>
|
|
29
|
+
* </ContextMenuContent>
|
|
30
|
+
* </ContextMenu>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
5
33
|
declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
/** Area that opens the context menu on right-click. */
|
|
6
35
|
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
36
|
+
/** Groups related context menu items together for accessibility. */
|
|
7
37
|
declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
38
|
+
/** Portal that renders context menu content outside the DOM hierarchy. */
|
|
8
39
|
declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
/** Container for a nested sub-menu within the context menu. */
|
|
9
41
|
declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
42
|
+
/** Container for radio context menu items where only one can be selected at a time. */
|
|
10
43
|
declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
44
|
+
/** Menu item that opens a sub-menu on hover. Displays a chevron indicator. */
|
|
11
45
|
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
12
46
|
inset?: boolean;
|
|
13
47
|
}): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Floating container for sub-menu items. */
|
|
14
49
|
declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
50
|
+
/** Floating container for context menu items, positioned at the cursor location. */
|
|
15
51
|
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
52
|
+
/** Actionable menu item. Set `variant="destructive"` for dangerous actions, `inset` for left-padding alignment. */
|
|
16
53
|
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
17
54
|
inset?: boolean;
|
|
18
55
|
variant?: "default" | "destructive";
|
|
19
56
|
}): react_jsx_runtime.JSX.Element;
|
|
57
|
+
/** Menu item with a checkbox indicator for toggling options. */
|
|
20
58
|
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
59
|
+
/** Menu item with a radio indicator for single-selection groups. */
|
|
21
60
|
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
61
|
+
/** Non-interactive label used to title a group of menu items. */
|
|
22
62
|
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
23
63
|
inset?: boolean;
|
|
24
64
|
}): react_jsx_runtime.JSX.Element;
|
|
65
|
+
/** Visual divider between groups of menu items. */
|
|
25
66
|
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
67
|
+
/** Keyboard shortcut hint displayed at the end of a menu item. */
|
|
26
68
|
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
27
69
|
|
|
28
70
|
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from '../chunk-
|
|
1
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from '../chunk-USIHM7FV.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=context-menu.js.map
|
|
4
4
|
//# sourceMappingURL=context-menu.js.map
|
|
@@ -2,30 +2,70 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { Locale } from 'date-fns';
|
|
3
3
|
|
|
4
4
|
interface DatePickerProps {
|
|
5
|
+
/** Currently selected date. */
|
|
5
6
|
value?: Date;
|
|
7
|
+
/** Callback fired when a date is selected or cleared. */
|
|
6
8
|
onChange?: (date: Date | undefined) => void;
|
|
9
|
+
/** Placeholder text shown when no date is selected. */
|
|
7
10
|
placeholder?: string;
|
|
11
|
+
/** Additional CSS class for the trigger button. */
|
|
8
12
|
className?: string;
|
|
13
|
+
/** Whether the date picker is disabled. */
|
|
9
14
|
disabled?: boolean;
|
|
10
|
-
/** date-fns
|
|
15
|
+
/** date-fns Locale object for date formatting (e.g., `ja` for Japanese). */
|
|
11
16
|
locale?: Locale;
|
|
12
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Single date picker with a calendar popover.
|
|
20
|
+
* Displays the selected date formatted with date-fns and opens a calendar on click.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* const [date, setDate] = useState<Date>();
|
|
25
|
+
*
|
|
26
|
+
* <DatePicker
|
|
27
|
+
* value={date}
|
|
28
|
+
* onChange={setDate}
|
|
29
|
+
* placeholder="Pick a date"
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
13
33
|
declare function DatePicker({ value, onChange, placeholder, className, disabled, locale, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
14
34
|
interface DateRangePickerProps {
|
|
35
|
+
/** Currently selected date range with `from` and optional `to`. */
|
|
15
36
|
value?: {
|
|
16
37
|
from: Date | undefined;
|
|
17
38
|
to?: Date | undefined;
|
|
18
39
|
};
|
|
40
|
+
/** Callback fired when the date range changes. */
|
|
19
41
|
onChange?: (range: {
|
|
20
42
|
from: Date | undefined;
|
|
21
43
|
to?: Date | undefined;
|
|
22
44
|
} | undefined) => void;
|
|
45
|
+
/** Placeholder text shown when no range is selected. */
|
|
23
46
|
placeholder?: string;
|
|
47
|
+
/** Additional CSS class for the trigger button. */
|
|
24
48
|
className?: string;
|
|
49
|
+
/** Whether the date range picker is disabled. */
|
|
25
50
|
disabled?: boolean;
|
|
26
|
-
/** date-fns
|
|
51
|
+
/** date-fns Locale object for date formatting (e.g., `ja` for Japanese). */
|
|
27
52
|
locale?: Locale;
|
|
28
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Date range picker with a two-month calendar popover.
|
|
56
|
+
* Allows selecting a start and end date displayed as a range string.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* const [range, setRange] = useState<{ from: Date | undefined; to?: Date }>();
|
|
61
|
+
*
|
|
62
|
+
* <DateRangePicker
|
|
63
|
+
* value={range}
|
|
64
|
+
* onChange={setRange}
|
|
65
|
+
* placeholder="Select date range"
|
|
66
|
+
* />
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
29
69
|
declare function DateRangePicker({ value, onChange, placeholder, className, disabled, locale, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
30
70
|
|
|
31
71
|
export { DatePicker, DateRangePicker };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { DatePicker, DateRangePicker } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { DatePicker, DateRangePicker } from '../chunk-YS3PMGYC.js';
|
|
2
|
+
import '../chunk-C34KSTWA.js';
|
|
3
|
+
import '../chunk-4MHIUUAW.js';
|
|
4
|
+
import '../chunk-55E7D2HR.js';
|
|
5
5
|
import '../chunk-DGPY4WP3.js';
|
|
6
6
|
//# sourceMappingURL=date-picker.js.map
|
|
7
7
|
//# sourceMappingURL=date-picker.js.map
|