@omnifyjp/ui 0.5.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -6
- package/dist/chunk-2C2HRGM7.js +51 -0
- package/dist/chunk-2C2HRGM7.js.map +1 -0
- package/dist/chunk-2TUWDXAC.js +196 -0
- package/dist/chunk-2TUWDXAC.js.map +1 -0
- package/dist/chunk-34ARZSNP.js +63 -0
- package/dist/chunk-34ARZSNP.js.map +1 -0
- package/dist/chunk-35DNN46W.js +13 -0
- package/dist/chunk-35DNN46W.js.map +1 -0
- package/dist/chunk-35U6QG4P.js +116 -0
- package/dist/chunk-35U6QG4P.js.map +1 -0
- package/dist/chunk-36YYHIJU.js +52 -0
- package/dist/chunk-36YYHIJU.js.map +1 -0
- package/dist/chunk-3EOHW4QN.js +35 -0
- package/dist/chunk-3EOHW4QN.js.map +1 -0
- package/dist/chunk-3VU56V66.js +41 -0
- package/dist/chunk-3VU56V66.js.map +1 -0
- package/dist/chunk-55E7D2HR.js +99 -0
- package/dist/chunk-55E7D2HR.js.map +1 -0
- package/dist/chunk-67YUL2ZS.js +53 -0
- package/dist/chunk-67YUL2ZS.js.map +1 -0
- package/dist/chunk-6DIDQ4TB.js +131 -0
- package/dist/chunk-6DIDQ4TB.js.map +1 -0
- package/dist/chunk-6GWVQB3Q.js +155 -0
- package/dist/chunk-6GWVQB3Q.js.map +1 -0
- package/dist/chunk-75WZR6HF.js +44 -0
- package/dist/chunk-75WZR6HF.js.map +1 -0
- package/dist/chunk-7IRLBU2I.js +114 -0
- package/dist/chunk-7IRLBU2I.js.map +1 -0
- package/dist/chunk-7RMTPT6O.js +99 -0
- package/dist/chunk-7RMTPT6O.js.map +1 -0
- package/dist/chunk-7XH3MGBR.js +128 -0
- 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-BAQWGQJG.js +106 -0
- package/dist/chunk-BAQWGQJG.js.map +1 -0
- package/dist/chunk-BRSM3SZP.js +46 -0
- package/dist/chunk-BRSM3SZP.js.map +1 -0
- package/dist/chunk-C34KSTWA.js +43 -0
- package/dist/chunk-C34KSTWA.js.map +1 -0
- package/dist/chunk-C5NZAOA7.js +54 -0
- package/dist/chunk-C5NZAOA7.js.map +1 -0
- package/dist/chunk-CUZR4JWM.js +23 -0
- package/dist/chunk-CUZR4JWM.js.map +1 -0
- package/dist/chunk-DGPY4WP3.js +11 -0
- package/dist/chunk-DGPY4WP3.js.map +1 -0
- package/dist/chunk-DNCZOUNY.js +239 -0
- package/dist/chunk-DNCZOUNY.js.map +1 -0
- package/dist/chunk-EWBCV7VA.js +65 -0
- package/dist/chunk-EWBCV7VA.js.map +1 -0
- package/dist/chunk-F2ZJLKDP.js +119 -0
- package/dist/chunk-F2ZJLKDP.js.map +1 -0
- package/dist/chunk-FLWMT4DB.js +66 -0
- package/dist/chunk-FLWMT4DB.js.map +1 -0
- package/dist/chunk-FRKG7JQY.js +48 -0
- package/dist/chunk-FRKG7JQY.js.map +1 -0
- package/dist/chunk-G7HTZBUR.js +187 -0
- package/dist/chunk-G7HTZBUR.js.map +1 -0
- package/dist/chunk-HWTW64R5.js +90 -0
- package/dist/chunk-HWTW64R5.js.map +1 -0
- package/dist/chunk-IAWKX5W4.js +219 -0
- package/dist/chunk-IAWKX5W4.js.map +1 -0
- package/dist/chunk-INLM7UJC.js +238 -0
- package/dist/chunk-INLM7UJC.js.map +1 -0
- package/dist/chunk-JAJMM32I.js +18 -0
- package/dist/chunk-JAJMM32I.js.map +1 -0
- package/dist/chunk-JJSVA3TH.js +61 -0
- package/dist/chunk-JJSVA3TH.js.map +1 -0
- package/dist/chunk-JLTBUACL.js +121 -0
- package/dist/chunk-JLTBUACL.js.map +1 -0
- package/dist/chunk-JRU2QX7T.js +38 -0
- package/dist/chunk-JRU2QX7T.js.map +1 -0
- package/dist/chunk-JXGRW2MR.js +17 -0
- package/dist/chunk-JXGRW2MR.js.map +1 -0
- package/dist/chunk-KTBOZ4NE.js +93 -0
- package/dist/chunk-KTBOZ4NE.js.map +1 -0
- package/dist/chunk-LMT327XH.js +56 -0
- package/dist/chunk-LMT327XH.js.map +1 -0
- package/dist/chunk-LTTNCAAA.js +138 -0
- package/dist/chunk-LTTNCAAA.js.map +1 -0
- package/dist/chunk-LVZNNIK4.js +111 -0
- package/dist/chunk-LVZNNIK4.js.map +1 -0
- package/dist/chunk-MJLFJPUG.js +143 -0
- package/dist/chunk-MJLFJPUG.js.map +1 -0
- package/dist/chunk-MZ2P566X.js +65 -0
- package/dist/chunk-MZ2P566X.js.map +1 -0
- package/dist/chunk-N47H4MHX.js +41 -0
- package/dist/chunk-N47H4MHX.js.map +1 -0
- package/dist/chunk-NNJTKHCE.js +160 -0
- package/dist/chunk-NNJTKHCE.js.map +1 -0
- package/dist/chunk-NPL2R5LD.js +171 -0
- package/dist/chunk-NPL2R5LD.js.map +1 -0
- package/dist/chunk-NU56GKGM.js +44 -0
- package/dist/chunk-NU56GKGM.js.map +1 -0
- package/dist/chunk-P3M5TZD2.js +24 -0
- package/dist/chunk-P3M5TZD2.js.map +1 -0
- package/dist/chunk-PGWNOZDX.js +28 -0
- package/dist/chunk-PGWNOZDX.js.map +1 -0
- package/dist/chunk-QB3UWRZH.js +92 -0
- package/dist/chunk-QB3UWRZH.js.map +1 -0
- package/dist/chunk-R2CDE5DO.js +33 -0
- package/dist/chunk-R2CDE5DO.js.map +1 -0
- package/dist/chunk-RQNZDWY3.js +65 -0
- package/dist/chunk-RQNZDWY3.js.map +1 -0
- package/dist/chunk-S6PDRGR5.js +109 -0
- 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-THQUH6WX.js +81 -0
- package/dist/chunk-THQUH6WX.js.map +1 -0
- package/dist/chunk-TJMK2KBE.js +112 -0
- package/dist/chunk-TJMK2KBE.js.map +1 -0
- package/dist/chunk-TTH7TWVX.js +30 -0
- package/dist/chunk-TTH7TWVX.js.map +1 -0
- package/dist/chunk-USIHM7FV.js +211 -0
- package/dist/chunk-USIHM7FV.js.map +1 -0
- package/dist/chunk-VVYSAGB3.js +104 -0
- package/dist/chunk-VVYSAGB3.js.map +1 -0
- package/dist/chunk-WD5KZE25.js +25 -0
- package/dist/chunk-WD5KZE25.js.map +1 -0
- package/dist/chunk-WL4ZO2H3.js +33 -0
- package/dist/chunk-WL4ZO2H3.js.map +1 -0
- package/dist/chunk-WRCHR4AK.js +23 -0
- package/dist/chunk-WRCHR4AK.js.map +1 -0
- package/dist/chunk-WS6E7HBT.js +39 -0
- package/dist/chunk-WS6E7HBT.js.map +1 -0
- package/dist/chunk-XOJJBNDX.js +33 -0
- package/dist/chunk-XOJJBNDX.js.map +1 -0
- package/dist/chunk-YBMEQZX7.js +164 -0
- package/dist/chunk-YBMEQZX7.js.map +1 -0
- package/dist/chunk-Z2QAABLM.js +86 -0
- package/dist/chunk-Z2QAABLM.js.map +1 -0
- package/dist/chunk-ZHEKDP5X.js +41 -0
- package/dist/chunk-ZHEKDP5X.js.map +1 -0
- package/dist/chunk-ZPMXRW2A.js +63 -0
- package/dist/chunk-ZPMXRW2A.js.map +1 -0
- package/dist/chunk-ZYEGBF7G.js +25 -0
- package/dist/chunk-ZYEGBF7G.js.map +1 -0
- package/dist/components/accordion.d.ts +37 -70
- package/dist/components/accordion.js +2 -1
- package/dist/components/accordion.js.map +1 -1
- package/dist/components/alert-dialog.d.ts +56 -1
- package/dist/components/alert-dialog.js +3 -1
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.d.ts +68 -1
- package/dist/components/alert.js +2 -1
- package/dist/components/alert.js.map +1 -1
- package/dist/components/aspect-ratio.d.ts +23 -1
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio.js.map +1 -1
- package/dist/components/avatar.d.ts +48 -1
- package/dist/components/avatar.js +2 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.d.ts +52 -1
- package/dist/components/badge.js +2 -1
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.d.ts +50 -1
- package/dist/components/breadcrumb.js +2 -1
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.d.ts +81 -1
- package/dist/components/button.js +2 -1
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-category-badge.d.ts +24 -1
- package/dist/components/calendar-category-badge.js +3 -1
- package/dist/components/calendar-category-badge.js.map +1 -1
- package/dist/components/calendar-event-chip.d.ts +41 -1
- package/dist/components/calendar-event-chip.js +2 -1
- package/dist/components/calendar-event-chip.js.map +1 -1
- package/dist/components/calendar-event-sheet.d.ts +68 -1
- package/dist/components/calendar-event-sheet.js +7 -1
- package/dist/components/calendar-event-sheet.js.map +1 -1
- package/dist/components/calendar-mini.d.ts +65 -1
- package/dist/components/calendar-mini.js +4 -1
- package/dist/components/calendar-mini.js.map +1 -1
- package/dist/components/calendar-toolbar.d.ts +58 -1
- package/dist/components/calendar-toolbar.js +5 -1
- package/dist/components/calendar-toolbar.js.map +1 -1
- package/dist/components/calendar.d.ts +19 -1
- package/dist/components/calendar.js +3 -1
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/card.d.ts +43 -1
- package/dist/components/card.js +2 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/carousel.d.ts +53 -1
- package/dist/components/carousel.js +3 -1
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/chart.d.ts +125 -1
- package/dist/components/chart.js +2 -1
- package/dist/components/chart.js.map +1 -1
- package/dist/components/checkbox.d.ts +24 -1
- package/dist/components/checkbox.js +2 -1
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.d.ts +28 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/color-picker.d.ts +35 -1
- package/dist/components/color-picker.js +5 -1
- package/dist/components/color-picker.js.map +1 -1
- package/dist/components/combobox.d.ts +98 -1
- package/dist/components/combobox.js +6 -1
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.d.ts +63 -1
- package/dist/components/command.js +3 -1
- package/dist/components/command.js.map +1 -1
- package/dist/components/context-menu.d.ts +70 -1
- package/dist/components/context-menu.js +2 -1
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/date-picker.d.ts +71 -1
- package/dist/components/date-picker.js +5 -1
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/dialog.d.ts +58 -1
- package/dist/components/dialog.js +2 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/drawer.d.ts +60 -1
- package/dist/components/drawer.js +2 -1
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.d.ts +76 -1
- package/dist/components/dropdown-menu.js +2 -1
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/file-upload.d.ts +44 -1
- package/dist/components/file-upload.js +3 -1
- package/dist/components/file-upload.js.map +1 -1
- package/dist/components/form.d.ts +67 -1
- package/dist/components/form.js +3 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/hover-card.d.ts +43 -1
- package/dist/components/hover-card.js +2 -1
- package/dist/components/hover-card.js.map +1 -1
- package/dist/components/input-otp.d.ts +38 -1
- package/dist/components/input-otp.js +2 -1
- package/dist/components/input-otp.js.map +1 -1
- package/dist/components/input.d.ts +38 -1
- package/dist/components/input.js +2 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/label.d.ts +20 -1
- package/dist/components/label.js +2 -1
- package/dist/components/label.js.map +1 -1
- package/dist/components/menubar.d.ts +82 -1
- package/dist/components/menubar.js +2 -1
- package/dist/components/menubar.js.map +1 -1
- package/dist/components/navigation-menu.d.ts +64 -1
- package/dist/components/navigation-menu.js +2 -1
- package/dist/components/navigation-menu.js.map +1 -1
- package/dist/components/pagination.d.ts +59 -1
- package/dist/components/pagination.js +3 -1
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/password-input.d.ts +32 -1
- package/dist/components/password-input.js +3 -1
- package/dist/components/password-input.js.map +1 -1
- package/dist/components/permission-grid.d.ts +67 -1
- package/dist/components/permission-grid.js +3 -1
- package/dist/components/permission-grid.js.map +1 -1
- package/dist/components/popover.d.ts +37 -1
- package/dist/components/popover.js +2 -1
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress.d.ts +20 -1
- package/dist/components/progress.js +2 -1
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio-group.d.ts +38 -1
- package/dist/components/radio-group.js +2 -1
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/rating.d.ts +35 -1
- package/dist/components/rating.js +2 -1
- package/dist/components/rating.js.map +1 -1
- package/dist/components/resizable.d.ts +36 -1
- package/dist/components/resizable.js +2 -1
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/scope-tree.d.ts +78 -1
- package/dist/components/scope-tree.js +3 -1
- package/dist/components/scope-tree.js.map +1 -1
- package/dist/components/scope-type-badge.d.ts +35 -1
- package/dist/components/scope-type-badge.js +3 -1
- package/dist/components/scope-type-badge.js.map +1 -1
- package/dist/components/scroll-area.d.ts +29 -1
- package/dist/components/scroll-area.js +2 -1
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.d.ts +52 -1
- package/dist/components/select.js +2 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.d.ts +24 -1
- package/dist/components/separator.js +2 -1
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.d.ts +51 -1
- package/dist/components/sheet.js +2 -1
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/skeleton.d.ts +25 -1
- package/dist/components/skeleton.js +2 -1
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/slider.d.ts +24 -1
- package/dist/components/slider.js +2 -1
- package/dist/components/slider.js.map +1 -1
- package/dist/components/slug-input.d.ts +50 -1
- package/dist/components/slug-input.js +4 -1
- package/dist/components/slug-input.js.map +1 -1
- package/dist/components/sonner.d.ts +22 -1
- package/dist/components/sonner.js +1 -1
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/stage-type-badge.d.ts +30 -1
- package/dist/components/stage-type-badge.js +3 -1
- package/dist/components/stage-type-badge.js.map +1 -1
- package/dist/components/switch.d.ts +26 -1
- package/dist/components/switch.js +2 -1
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.d.ts +57 -1
- package/dist/components/table.js +2 -1
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.d.ts +39 -1
- package/dist/components/tabs.js +2 -1
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tag-input.d.ts +40 -1
- package/dist/components/tag-input.js +3 -1
- package/dist/components/tag-input.js.map +1 -1
- package/dist/components/textarea.d.ts +21 -1
- package/dist/components/textarea.js +2 -1
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/time-picker.d.ts +57 -1
- package/dist/components/time-picker.js +6 -1
- package/dist/components/time-picker.js.map +1 -1
- package/dist/components/toggle-group.d.ts +45 -1
- package/dist/components/toggle-group.js +3 -1
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/toggle.d.ts +31 -1
- package/dist/components/toggle.js +2 -1
- package/dist/components/toggle.js.map +1 -1
- package/dist/components/tooltip.d.ts +34 -1
- package/dist/components/tooltip.js +2 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/workflow-category-badge.d.ts +32 -1
- package/dist/components/workflow-category-badge.js +3 -1
- package/dist/components/workflow-category-badge.js.map +1 -1
- package/dist/components/workflow-diagram.d.ts +63 -1
- package/dist/components/workflow-diagram.js +3 -1
- package/dist/components/workflow-diagram.js.map +1 -1
- package/dist/components/workflow-status-badge.d.ts +30 -1
- package/dist/components/workflow-status-badge.js +3 -1
- package/dist/components/workflow-status-badge.js.map +1 -1
- package/dist/components/workflow-stepper.d.ts +52 -1
- package/dist/components/workflow-stepper.js +2 -1
- package/dist/components/workflow-stepper.js.map +1 -1
- package/dist/hooks/use-mobile.d.ts +3 -1
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/index.d.ts +108 -13
- package/dist/index.js +69 -11
- package/dist/lib/types.d.ts +84 -1
- package/dist/lib/types.js +1 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/utils.d.ts +5 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/package.json +69 -30
- package/src/styles/fonts.css +0 -0
- package/src/styles/index.css +3 -1
- package/src/styles/tailwind.css +4 -0
- package/src/styles/theme.css +461 -0
- package/dist/chunk-2ZIFL2X3.js +0 -189
- package/dist/chunk-2ZIFL2X3.js.map +0 -1
- package/dist/chunk-5BL4VFRJ.js +0 -57
- package/dist/chunk-5BL4VFRJ.js.map +0 -1
- package/dist/chunk-5D3OAVOZ.js +0 -91
- package/dist/chunk-5D3OAVOZ.js.map +0 -1
- package/dist/chunk-DTM76EJD.js +0 -235
- package/dist/chunk-DTM76EJD.js.map +0 -1
- package/dist/chunk-EJEVW4RO.js +0 -49
- package/dist/chunk-EJEVW4RO.js.map +0 -1
- package/dist/chunk-O25D7DCP.js +0 -72
- package/dist/chunk-O25D7DCP.js.map +0 -1
- package/dist/chunk-OY3PSPA5.js +0 -661
- package/dist/chunk-OY3PSPA5.js.map +0 -1
- package/dist/chunk-RSCXIS4D.js +0 -37
- package/dist/chunk-RSCXIS4D.js.map +0 -1
- package/dist/chunk-SHHZRZMM.js +0 -83
- package/dist/chunk-SHHZRZMM.js.map +0 -1
- package/dist/chunk-X57K24P3.js +0 -224
- package/dist/chunk-X57K24P3.js.map +0 -1
- package/dist/chunk-XDXGUPCR.js +0 -123
- package/dist/chunk-XDXGUPCR.js.map +0 -1
- package/dist/components/AppShell.d.ts +0 -27
- package/dist/components/AppShell.js +0 -11
- package/dist/components/AppShell.js.map +0 -1
- package/dist/components/Header.d.ts +0 -11
- package/dist/components/Header.js +0 -6
- package/dist/components/Header.js.map +0 -1
- package/dist/components/OrganizationSelector.d.ts +0 -8
- package/dist/components/OrganizationSelector.js +0 -4
- package/dist/components/OrganizationSelector.js.map +0 -1
- package/dist/components/OrganizationSetupModal.d.ts +0 -5
- package/dist/components/OrganizationSetupModal.js +0 -4
- package/dist/components/OrganizationSetupModal.js.map +0 -1
- package/dist/components/PageContainer.d.ts +0 -105
- package/dist/components/PageContainer.js +0 -3
- package/dist/components/PageContainer.js.map +0 -1
- package/dist/components/ServiceMenu.d.ts +0 -11
- package/dist/components/ServiceMenu.js +0 -3
- package/dist/components/ServiceMenu.js.map +0 -1
- package/dist/components/Sidebar.d.ts +0 -11
- package/dist/components/Sidebar.js +0 -5
- package/dist/components/Sidebar.js.map +0 -1
- package/dist/contexts/OrganizationContext.d.ts +0 -26
- package/dist/contexts/OrganizationContext.js +0 -3
- package/dist/contexts/OrganizationContext.js.map +0 -1
- package/dist/contexts/ThemeContext.d.ts +0 -14
- package/dist/contexts/ThemeContext.js +0 -3
- package/dist/contexts/ThemeContext.js.map +0 -1
- package/dist/hooks/useDateFormat.d.ts +0 -28
- package/dist/hooks/useDateFormat.js +0 -4
- package/dist/hooks/useDateFormat.js.map +0 -1
- package/dist/i18n.d.ts +0 -38
- package/dist/i18n.js +0 -3
- package/dist/i18n.js.map +0 -1
- package/dist/types.d.ts +0 -89
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
|
@@ -1 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** A single option in the Combobox dropdown. */
|
|
4
|
+
interface ComboboxOption {
|
|
5
|
+
/** Unique value for this option. */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Display label shown in the dropdown list. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Whether this option is non-selectable. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface ComboboxProps {
|
|
13
|
+
/** Available options to display in the dropdown. */
|
|
14
|
+
options: ComboboxOption[];
|
|
15
|
+
/** Currently selected value. */
|
|
16
|
+
value?: string;
|
|
17
|
+
/** Callback fired when the selected value changes. */
|
|
18
|
+
onChange?: (value: string) => void;
|
|
19
|
+
/** Placeholder text shown when no value is selected. */
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
/** Placeholder text for the search input inside the dropdown. */
|
|
22
|
+
searchPlaceholder?: string;
|
|
23
|
+
/** Text shown when no options match the search query. */
|
|
24
|
+
emptyText?: string;
|
|
25
|
+
/** Additional CSS class for the trigger button. */
|
|
26
|
+
className?: string;
|
|
27
|
+
/** Whether the combobox is disabled. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Whether to show a clear button when a value is selected. */
|
|
30
|
+
clearable?: boolean;
|
|
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
|
+
*/
|
|
54
|
+
declare function Combobox({ options, value, onChange, placeholder, searchPlaceholder, emptyText, className, disabled, clearable, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
55
|
+
interface MultiComboboxProps {
|
|
56
|
+
/** Available options to display in the dropdown. */
|
|
57
|
+
options: ComboboxOption[];
|
|
58
|
+
/** Array of currently selected values. */
|
|
59
|
+
value?: string[];
|
|
60
|
+
/** Callback fired when the selection changes. */
|
|
61
|
+
onChange?: (value: string[]) => void;
|
|
62
|
+
/** Placeholder text shown when no values are selected. */
|
|
63
|
+
placeholder?: string;
|
|
64
|
+
/** Placeholder text for the search input inside the dropdown. */
|
|
65
|
+
searchPlaceholder?: string;
|
|
66
|
+
/** Text shown when no options match the search query. */
|
|
67
|
+
emptyText?: string;
|
|
68
|
+
/** Additional CSS class for the trigger button. */
|
|
69
|
+
className?: string;
|
|
70
|
+
/** Whether the combobox is disabled. */
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
/** Maximum number of items that can be selected. */
|
|
73
|
+
maxSelected?: number;
|
|
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
|
+
*/
|
|
96
|
+
declare function MultiCombobox({ options, value, onChange, placeholder, searchPlaceholder, emptyText, className, disabled, maxSelected, }: MultiComboboxProps): react_jsx_runtime.JSX.Element;
|
|
97
|
+
|
|
98
|
+
export { Combobox, type ComboboxOption, MultiCombobox };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
export
|
|
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
|
+
import '../chunk-DGPY4WP3.js';
|
|
2
7
|
//# sourceMappingURL=combobox.js.map
|
|
3
8
|
//# sourceMappingURL=combobox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"combobox.js"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"combobox.js"}
|
|
@@ -1 +1,63 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Command as Command$1 } from 'cmdk';
|
|
4
|
+
import { Dialog } from './dialog.js';
|
|
5
|
+
import '@radix-ui/react-dialog';
|
|
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
|
+
*/
|
|
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. */
|
|
44
|
+
declare function CommandDialog({ title, description, children, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
45
|
+
title?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
}): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Search input field with a magnifying glass icon for filtering command items. */
|
|
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. */
|
|
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. */
|
|
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. */
|
|
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. */
|
|
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. */
|
|
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. */
|
|
61
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from '../chunk-6GWVQB3Q.js';
|
|
2
|
+
import '../chunk-F2ZJLKDP.js';
|
|
3
|
+
import '../chunk-DGPY4WP3.js';
|
|
2
4
|
//# sourceMappingURL=command.js.map
|
|
3
5
|
//# sourceMappingURL=command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"command.js"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"command.js"}
|
|
@@ -1 +1,70 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
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
|
+
*/
|
|
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. */
|
|
35
|
+
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
36
|
+
/** Groups related context menu items together for accessibility. */
|
|
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. */
|
|
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. */
|
|
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. */
|
|
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. */
|
|
45
|
+
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
46
|
+
inset?: boolean;
|
|
47
|
+
}): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Floating container for sub-menu items. */
|
|
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. */
|
|
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. */
|
|
53
|
+
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
54
|
+
inset?: boolean;
|
|
55
|
+
variant?: "default" | "destructive";
|
|
56
|
+
}): react_jsx_runtime.JSX.Element;
|
|
57
|
+
/** Menu item with a checkbox indicator for toggling options. */
|
|
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. */
|
|
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. */
|
|
62
|
+
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
63
|
+
inset?: boolean;
|
|
64
|
+
}): react_jsx_runtime.JSX.Element;
|
|
65
|
+
/** Visual divider between groups of menu items. */
|
|
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. */
|
|
68
|
+
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from '../chunk-USIHM7FV.js';
|
|
2
|
+
import '../chunk-DGPY4WP3.js';
|
|
2
3
|
//# sourceMappingURL=context-menu.js.map
|
|
3
4
|
//# sourceMappingURL=context-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"context-menu.js"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"context-menu.js"}
|
|
@@ -1 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Locale } from 'date-fns';
|
|
3
|
+
|
|
4
|
+
interface DatePickerProps {
|
|
5
|
+
/** Currently selected date. */
|
|
6
|
+
value?: Date;
|
|
7
|
+
/** Callback fired when a date is selected or cleared. */
|
|
8
|
+
onChange?: (date: Date | undefined) => void;
|
|
9
|
+
/** Placeholder text shown when no date is selected. */
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
/** Additional CSS class for the trigger button. */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Whether the date picker is disabled. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** date-fns Locale object for date formatting (e.g., `ja` for Japanese). */
|
|
16
|
+
locale?: Locale;
|
|
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
|
+
*/
|
|
33
|
+
declare function DatePicker({ value, onChange, placeholder, className, disabled, locale, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
34
|
+
interface DateRangePickerProps {
|
|
35
|
+
/** Currently selected date range with `from` and optional `to`. */
|
|
36
|
+
value?: {
|
|
37
|
+
from: Date | undefined;
|
|
38
|
+
to?: Date | undefined;
|
|
39
|
+
};
|
|
40
|
+
/** Callback fired when the date range changes. */
|
|
41
|
+
onChange?: (range: {
|
|
42
|
+
from: Date | undefined;
|
|
43
|
+
to?: Date | undefined;
|
|
44
|
+
} | undefined) => void;
|
|
45
|
+
/** Placeholder text shown when no range is selected. */
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
/** Additional CSS class for the trigger button. */
|
|
48
|
+
className?: string;
|
|
49
|
+
/** Whether the date range picker is disabled. */
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/** date-fns Locale object for date formatting (e.g., `ja` for Japanese). */
|
|
52
|
+
locale?: Locale;
|
|
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
|
+
*/
|
|
69
|
+
declare function DateRangePicker({ value, onChange, placeholder, className, disabled, locale, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
70
|
+
|
|
71
|
+
export { DatePicker, DateRangePicker };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DatePicker, DateRangePicker } from '../chunk-HWTW64R5.js';
|
|
2
|
+
import '../chunk-C34KSTWA.js';
|
|
3
|
+
import '../chunk-QB3UWRZH.js';
|
|
4
|
+
import '../chunk-55E7D2HR.js';
|
|
5
|
+
import '../chunk-DGPY4WP3.js';
|
|
2
6
|
//# sourceMappingURL=date-picker.js.map
|
|
3
7
|
//# sourceMappingURL=date-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"date-picker.js"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"date-picker.js"}
|
|
@@ -1 +1,58 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Modal dialog component built on Radix UI Dialog.
|
|
7
|
+
*
|
|
8
|
+
* Renders a centered overlay panel that interrupts the user with important content
|
|
9
|
+
* and expects a response. Supports controlled (`open`/`onOpenChange`) and
|
|
10
|
+
* uncontrolled usage (via `DialogTrigger`).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Dialog open={open} onOpenChange={setOpen}>
|
|
15
|
+
* <DialogTrigger asChild>
|
|
16
|
+
* <Button>Open Dialog</Button>
|
|
17
|
+
* </DialogTrigger>
|
|
18
|
+
* <DialogContent>
|
|
19
|
+
* <DialogHeader>
|
|
20
|
+
* <DialogTitle>Edit Profile</DialogTitle>
|
|
21
|
+
* <DialogDescription>
|
|
22
|
+
* Make changes to your profile here.
|
|
23
|
+
* </DialogDescription>
|
|
24
|
+
* </DialogHeader>
|
|
25
|
+
* <div className="space-y-4">
|
|
26
|
+
* <Input placeholder="Name" />
|
|
27
|
+
* </div>
|
|
28
|
+
* <DialogFooter>
|
|
29
|
+
* <Button variant="outline" onClick={() => setOpen(false)}>
|
|
30
|
+
* Cancel
|
|
31
|
+
* </Button>
|
|
32
|
+
* <Button>Save Changes</Button>
|
|
33
|
+
* </DialogFooter>
|
|
34
|
+
* </DialogContent>
|
|
35
|
+
* </Dialog>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
39
|
+
/** Element that opens the dialog when clicked. Use `asChild` to merge into your own button. */
|
|
40
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
41
|
+
/** Portal that renders dialog content outside the DOM hierarchy. */
|
|
42
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
/** Button that closes the dialog. Use `asChild` to merge into your own button. */
|
|
44
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
45
|
+
/** Semi-transparent backdrop rendered behind the dialog content. */
|
|
46
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
/** Dialog content panel with overlay backdrop and a built-in close button. */
|
|
48
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
/** Container for DialogTitle and DialogDescription at the top of the dialog. */
|
|
50
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
51
|
+
/** Container for action buttons at the bottom of the dialog. */
|
|
52
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
53
|
+
/** Accessible title rendered inside DialogHeader. */
|
|
54
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
55
|
+
/** Accessible description rendered inside DialogHeader below the title. */
|
|
56
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from '../chunk-F2ZJLKDP.js';
|
|
2
|
+
import '../chunk-DGPY4WP3.js';
|
|
2
3
|
//# sourceMappingURL=dialog.js.map
|
|
3
4
|
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"dialog.js"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"dialog.js"}
|
|
@@ -1 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Swipeable drawer component built on Vaul.
|
|
7
|
+
*
|
|
8
|
+
* Slides from any edge of the screen and can be dismissed by swiping.
|
|
9
|
+
* Set the `direction` prop on the root to control direction (`"top"`, `"bottom"`,
|
|
10
|
+
* `"left"`, `"right"`). Always wrap content in `DrawerBody` for proper scrolling.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Drawer open={open} onOpenChange={setOpen}>
|
|
15
|
+
* <DrawerTrigger asChild>
|
|
16
|
+
* <Button variant="outline">Open Drawer</Button>
|
|
17
|
+
* </DrawerTrigger>
|
|
18
|
+
* <DrawerContent>
|
|
19
|
+
* <DrawerHeader>
|
|
20
|
+
* <DrawerTitle>Task Details</DrawerTitle>
|
|
21
|
+
* <DrawerDescription>
|
|
22
|
+
* View and edit task information.
|
|
23
|
+
* </DrawerDescription>
|
|
24
|
+
* </DrawerHeader>
|
|
25
|
+
* <DrawerBody>
|
|
26
|
+
* <p>Scrollable content goes here.</p>
|
|
27
|
+
* </DrawerBody>
|
|
28
|
+
* <DrawerFooter>
|
|
29
|
+
* <Button>Save</Button>
|
|
30
|
+
* <DrawerClose asChild>
|
|
31
|
+
* <Button variant="outline">Cancel</Button>
|
|
32
|
+
* </DrawerClose>
|
|
33
|
+
* </DrawerFooter>
|
|
34
|
+
* </DrawerContent>
|
|
35
|
+
* </Drawer>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
39
|
+
/** Element that opens the drawer when clicked. Use `asChild` to merge into your own button. */
|
|
40
|
+
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
41
|
+
/** Portal that renders drawer content outside the DOM hierarchy. */
|
|
42
|
+
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
/** Button that closes the drawer. Use `asChild` to merge into your own button. */
|
|
44
|
+
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
45
|
+
/** Semi-transparent backdrop rendered behind the drawer panel. */
|
|
46
|
+
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
47
|
+
/** Drawer content panel that slides in from the configured direction. Includes a drag handle for bottom drawers. */
|
|
48
|
+
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
49
|
+
/** Container for DrawerTitle and DrawerDescription at the top of the drawer. */
|
|
50
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
51
|
+
/** Scrollable body area for drawer content. Always wrap main content in this component. */
|
|
52
|
+
declare function DrawerBody({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
53
|
+
/** Container for action buttons at the bottom of the drawer. Pushed to the bottom via `mt-auto`. */
|
|
54
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
55
|
+
/** Accessible title rendered inside DrawerHeader. */
|
|
56
|
+
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
/** Accessible description rendered inside DrawerHeader below the title. */
|
|
58
|
+
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
60
|
+
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from '../chunk-7XH3MGBR.js';
|
|
2
|
+
import '../chunk-DGPY4WP3.js';
|
|
2
3
|
//# sourceMappingURL=drawer.js.map
|
|
3
4
|
//# sourceMappingURL=drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"drawer.js"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"drawer.js"}
|
|
@@ -1 +1,76 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Dropdown menu component built on Radix UI DropdownMenu.
|
|
7
|
+
*
|
|
8
|
+
* Displays a menu of actions or options triggered by a button click.
|
|
9
|
+
* Supports items, checkbox items, radio items, sub-menus, separators,
|
|
10
|
+
* labels, shortcuts, and destructive variants.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <DropdownMenu>
|
|
15
|
+
* <DropdownMenuTrigger asChild>
|
|
16
|
+
* <Button variant="outline">Actions</Button>
|
|
17
|
+
* </DropdownMenuTrigger>
|
|
18
|
+
* <DropdownMenuContent>
|
|
19
|
+
* <DropdownMenuLabel>My Account</DropdownMenuLabel>
|
|
20
|
+
* <DropdownMenuSeparator />
|
|
21
|
+
* <DropdownMenuItem>
|
|
22
|
+
* <UserIcon className="size-4" />
|
|
23
|
+
* Profile
|
|
24
|
+
* <DropdownMenuShortcut>Ctrl+P</DropdownMenuShortcut>
|
|
25
|
+
* </DropdownMenuItem>
|
|
26
|
+
* <DropdownMenuItem>
|
|
27
|
+
* <SettingsIcon className="size-4" />
|
|
28
|
+
* Settings
|
|
29
|
+
* </DropdownMenuItem>
|
|
30
|
+
* <DropdownMenuSeparator />
|
|
31
|
+
* <DropdownMenuItem variant="destructive">
|
|
32
|
+
* <TrashIcon className="size-4" />
|
|
33
|
+
* Delete
|
|
34
|
+
* </DropdownMenuItem>
|
|
35
|
+
* </DropdownMenuContent>
|
|
36
|
+
* </DropdownMenu>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
/** Portal that renders dropdown content outside the DOM hierarchy. */
|
|
41
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
42
|
+
/** Element that opens the dropdown menu when clicked. Use `asChild` to merge into your own button. */
|
|
43
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
44
|
+
/** Floating container for menu items, positioned relative to the trigger. */
|
|
45
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
46
|
+
/** Groups related menu items together for accessibility. */
|
|
47
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Actionable menu item. Set `variant="destructive"` for dangerous actions, `inset` for left-padding alignment. */
|
|
49
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
50
|
+
inset?: boolean;
|
|
51
|
+
variant?: "default" | "destructive";
|
|
52
|
+
}): react_jsx_runtime.JSX.Element;
|
|
53
|
+
/** Menu item with a checkbox indicator for toggling options. */
|
|
54
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
55
|
+
/** Container for radio menu items where only one can be selected at a time. */
|
|
56
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
/** Menu item with a radio indicator for single-selection groups. */
|
|
58
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
59
|
+
/** Non-interactive label used to title a group of menu items. */
|
|
60
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
61
|
+
inset?: boolean;
|
|
62
|
+
}): react_jsx_runtime.JSX.Element;
|
|
63
|
+
/** Visual divider between groups of menu items. */
|
|
64
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
65
|
+
/** Keyboard shortcut hint displayed at the end of a menu item. */
|
|
66
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
67
|
+
/** Container for a nested sub-menu within the dropdown. */
|
|
68
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
69
|
+
/** Menu item that opens a sub-menu on hover. Displays a chevron indicator. */
|
|
70
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
71
|
+
inset?: boolean;
|
|
72
|
+
}): react_jsx_runtime.JSX.Element;
|
|
73
|
+
/** Floating container for sub-menu items. */
|
|
74
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '../chunk-IAWKX5W4.js';
|
|
2
|
+
import '../chunk-DGPY4WP3.js';
|
|
2
3
|
//# sourceMappingURL=dropdown-menu.js.map
|
|
3
4
|
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"dropdown-menu.js"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"dropdown-menu.js"}
|
|
@@ -1 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface FileUploadProps {
|
|
4
|
+
/** Array of currently uploaded File objects. */
|
|
5
|
+
value?: File[];
|
|
6
|
+
/** Callback fired when files are added or removed. */
|
|
7
|
+
onChange?: (files: File[]) => void;
|
|
8
|
+
/** Accepted file types (e.g., `"image/*,.pdf"`). Maps to the HTML `accept` attribute. */
|
|
9
|
+
accept?: string;
|
|
10
|
+
/** Whether multiple files can be selected at once. Defaults to `false`. */
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
/** Maximum file size in bytes. Defaults to 10 MB. */
|
|
13
|
+
maxSize?: number;
|
|
14
|
+
/** Maximum number of files allowed. */
|
|
15
|
+
maxFiles?: number;
|
|
16
|
+
/** Whether the upload area is disabled. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Additional CSS class for the outer wrapper. */
|
|
19
|
+
className?: string;
|
|
20
|
+
/** Whether to show the file list with previews below the drop zone. Defaults to `true`. */
|
|
21
|
+
showPreview?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* File upload component with drag-and-drop support and file previews.
|
|
25
|
+
* Validates file size and count, shows image thumbnails, and provides remove buttons.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const [files, setFiles] = useState<File[]>([]);
|
|
30
|
+
*
|
|
31
|
+
* <FileUpload
|
|
32
|
+
* value={files}
|
|
33
|
+
* onChange={setFiles}
|
|
34
|
+
* accept="image/*,.pdf"
|
|
35
|
+
* multiple
|
|
36
|
+
* maxSize={5 * 1024 * 1024}
|
|
37
|
+
* maxFiles={3}
|
|
38
|
+
* />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
declare function FileUpload({ value, onChange, accept, multiple, maxSize, // 10MB default
|
|
42
|
+
maxFiles, disabled, className, showPreview, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
44
|
+
export { FileUpload };
|