@omnifyjp/ui 0.5.3 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-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-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-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-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-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-TJMK2KBE.js +112 -0
- package/dist/chunk-TJMK2KBE.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 -0
- package/dist/components/accordion.js +4 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +56 -0
- package/dist/components/alert-dialog.js +5 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +68 -0
- package/dist/components/alert.js +4 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/aspect-ratio.d.ts +23 -0
- package/dist/components/aspect-ratio.js +3 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/avatar.d.ts +48 -0
- package/dist/components/avatar.js +4 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +52 -0
- package/dist/components/badge.js +4 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +50 -0
- package/dist/components/breadcrumb.js +4 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button.d.ts +81 -0
- package/dist/components/button.js +4 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar-category-badge.d.ts +24 -0
- package/dist/components/calendar-category-badge.js +5 -0
- package/dist/components/calendar-category-badge.js.map +1 -0
- package/dist/components/calendar-event-chip.d.ts +41 -0
- package/dist/components/calendar-event-chip.js +30 -0
- package/dist/components/calendar-event-chip.js.map +1 -0
- package/dist/components/calendar-event-sheet.d.ts +68 -0
- package/dist/components/calendar-event-sheet.js +83 -0
- package/dist/components/calendar-event-sheet.js.map +1 -0
- package/dist/components/calendar-mini.d.ts +65 -0
- package/dist/components/calendar-mini.js +93 -0
- package/dist/components/calendar-mini.js.map +1 -0
- package/dist/components/calendar-toolbar.d.ts +58 -0
- package/dist/components/calendar-toolbar.js +54 -0
- package/dist/components/calendar-toolbar.js.map +1 -0
- package/dist/components/calendar.d.ts +19 -0
- package/dist/components/calendar.js +5 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.d.ts +43 -0
- package/dist/components/card.js +4 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel.d.ts +53 -0
- package/dist/components/carousel.js +5 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/chart.d.ts +125 -0
- package/dist/components/chart.js +239 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.d.ts +24 -0
- package/dist/components/checkbox.js +4 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/collapsible.d.ts +28 -0
- package/dist/components/collapsible.js +3 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/color-picker.d.ts +35 -0
- package/dist/components/color-picker.js +7 -0
- package/dist/components/color-picker.js.map +1 -0
- package/dist/components/combobox.d.ts +98 -0
- package/dist/components/combobox.js +8 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/command.d.ts +63 -0
- package/dist/components/command.js +5 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/context-menu.d.ts +70 -0
- package/dist/components/context-menu.js +4 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/date-picker.d.ts +71 -0
- package/dist/components/date-picker.js +90 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/dialog.d.ts +58 -0
- package/dist/components/dialog.js +4 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/drawer.d.ts +60 -0
- package/dist/components/drawer.js +4 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +76 -0
- package/dist/components/dropdown-menu.js +4 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/file-upload.d.ts +44 -0
- package/dist/components/file-upload.js +5 -0
- package/dist/components/file-upload.js.map +1 -0
- package/dist/components/form.d.ts +67 -0
- package/dist/components/form.js +111 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/hover-card.d.ts +43 -0
- package/dist/components/hover-card.js +4 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-otp.d.ts +38 -0
- package/dist/components/input-otp.js +4 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.d.ts +38 -0
- package/dist/components/input.js +4 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.d.ts +20 -0
- package/dist/components/label.js +4 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/menubar.d.ts +82 -0
- package/dist/components/menubar.js +4 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/navigation-menu.d.ts +64 -0
- package/dist/components/navigation-menu.js +4 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/pagination.d.ts +59 -0
- package/dist/components/pagination.js +5 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/password-input.d.ts +32 -0
- package/dist/components/password-input.js +5 -0
- package/dist/components/password-input.js.map +1 -0
- package/dist/components/permission-grid.d.ts +67 -0
- package/dist/components/permission-grid.js +5 -0
- package/dist/components/permission-grid.js.map +1 -0
- package/dist/components/popover.d.ts +37 -0
- package/dist/components/popover.js +4 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +20 -0
- package/dist/components/progress.js +4 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.d.ts +38 -0
- package/dist/components/radio-group.js +4 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/rating.d.ts +35 -0
- package/dist/components/rating.js +4 -0
- package/dist/components/rating.js.map +1 -0
- package/dist/components/resizable.d.ts +36 -0
- package/dist/components/resizable.js +4 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scope-tree.d.ts +78 -0
- package/dist/components/scope-tree.js +5 -0
- package/dist/components/scope-tree.js.map +1 -0
- package/dist/components/scope-type-badge.d.ts +35 -0
- package/dist/components/scope-type-badge.js +5 -0
- package/dist/components/scope-type-badge.js.map +1 -0
- package/dist/components/scroll-area.d.ts +29 -0
- package/dist/components/scroll-area.js +4 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.d.ts +52 -0
- package/dist/components/select.js +4 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +24 -0
- package/dist/components/separator.js +4 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.d.ts +51 -0
- package/dist/components/sheet.js +4 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/skeleton.d.ts +25 -0
- package/dist/components/skeleton.js +4 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +24 -0
- package/dist/components/slider.js +4 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/slug-input.d.ts +50 -0
- package/dist/components/slug-input.js +6 -0
- package/dist/components/slug-input.js.map +1 -0
- package/dist/components/sonner.d.ts +22 -0
- package/dist/components/sonner.js +3 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/stage-type-badge.d.ts +30 -0
- package/dist/components/stage-type-badge.js +5 -0
- package/dist/components/stage-type-badge.js.map +1 -0
- package/dist/components/switch.d.ts +26 -0
- package/dist/components/switch.js +4 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +57 -0
- package/dist/components/table.js +4 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +39 -0
- package/dist/components/tabs.js +4 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/tag-input.d.ts +40 -0
- package/dist/components/tag-input.js +5 -0
- package/dist/components/tag-input.js.map +1 -0
- package/dist/components/textarea.d.ts +21 -0
- package/dist/components/textarea.js +4 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/time-picker.d.ts +57 -0
- package/dist/components/time-picker.js +8 -0
- package/dist/components/time-picker.js.map +1 -0
- package/dist/components/toggle-group.d.ts +45 -0
- package/dist/components/toggle-group.js +5 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +31 -0
- package/dist/components/toggle.js +4 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.d.ts +34 -0
- package/dist/components/tooltip.js +4 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/workflow-category-badge.d.ts +32 -0
- package/dist/components/workflow-category-badge.js +5 -0
- package/dist/components/workflow-category-badge.js.map +1 -0
- package/dist/components/workflow-diagram.d.ts +63 -0
- package/dist/components/workflow-diagram.js +5 -0
- package/dist/components/workflow-diagram.js.map +1 -0
- package/dist/components/workflow-status-badge.d.ts +30 -0
- package/dist/components/workflow-status-badge.js +5 -0
- package/dist/components/workflow-status-badge.js.map +1 -0
- package/dist/components/workflow-stepper.d.ts +52 -0
- package/dist/components/workflow-stepper.js +4 -0
- package/dist/components/workflow-stepper.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +3 -3
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/index.d.ts +98 -16
- package/dist/index.js +62 -13
- 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 +68 -31
- 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-2GN4WIOV.js +0 -240
- package/dist/chunk-2GN4WIOV.js.map +0 -1
- package/dist/chunk-5BL4VFRJ.js +0 -57
- package/dist/chunk-5BL4VFRJ.js.map +0 -1
- package/dist/chunk-735JNJJO.js +0 -27
- package/dist/chunk-735JNJJO.js.map +0 -1
- package/dist/chunk-EJEVW4RO.js +0 -49
- package/dist/chunk-EJEVW4RO.js.map +0 -1
- package/dist/chunk-FVOQZTHE.js +0 -191
- package/dist/chunk-FVOQZTHE.js.map +0 -1
- package/dist/chunk-ITXOZ4IR.js +0 -85
- package/dist/chunk-ITXOZ4IR.js.map +0 -1
- package/dist/chunk-NVPNMQSR.js +0 -30
- package/dist/chunk-NVPNMQSR.js.map +0 -1
- package/dist/chunk-O25D7DCP.js +0 -72
- package/dist/chunk-O25D7DCP.js.map +0 -1
- package/dist/chunk-O2ADW2GC.js +0 -224
- package/dist/chunk-O2ADW2GC.js.map +0 -1
- package/dist/chunk-OY3PSPA5.js +0 -661
- package/dist/chunk-OY3PSPA5.js.map +0 -1
- package/dist/chunk-UASABUQA.js +0 -39
- package/dist/chunk-UASABUQA.js.map +0 -1
- package/dist/chunk-UR2QLIS2.js +0 -93
- package/dist/chunk-UR2QLIS2.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 -13
- package/dist/components/AppShell.js.map +0 -1
- package/dist/components/Header.d.ts +0 -11
- package/dist/components/Header.js +0 -9
- package/dist/components/Header.js.map +0 -1
- package/dist/components/LanguageSelector.d.ts +0 -11
- package/dist/components/LanguageSelector.js +0 -5
- package/dist/components/LanguageSelector.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/LanguageContext.d.ts +0 -17
- package/dist/contexts/LanguageContext.js +0 -4
- package/dist/contexts/LanguageContext.js.map +0 -1
- package/dist/contexts/OrganizationContext.d.ts +0 -28
- 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 -91
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
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
|
+
*/
|
|
22
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
|
|
24
|
+
export { Checkbox, type CheckboxProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"checkbox.js"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
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
|
+
*/
|
|
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. */
|
|
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. */
|
|
26
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"collapsible.js"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface ColorPickerProps {
|
|
4
|
+
/** Currently selected color as a hex string (e.g., `"#3B82F6"`). */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** Callback fired when a color is selected. Receives a hex string. */
|
|
7
|
+
onChange?: (color: string) => void;
|
|
8
|
+
/** Additional CSS class for the trigger button. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Whether the color picker is disabled. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Whether to show the preset color grid. Defaults to `true`. */
|
|
13
|
+
showPresets?: boolean;
|
|
14
|
+
/** Whether to show the custom hex input with native color picker. Defaults to `true`. */
|
|
15
|
+
showInput?: boolean;
|
|
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
|
+
*/
|
|
33
|
+
declare function ColorPicker({ value, onChange, className, disabled, showPresets, showInput, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
export { ColorPicker };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ColorPicker } from '../chunk-MJLFJPUG.js';
|
|
2
|
+
import '../chunk-3VU56V66.js';
|
|
3
|
+
import '../chunk-C34KSTWA.js';
|
|
4
|
+
import '../chunk-55E7D2HR.js';
|
|
5
|
+
import '../chunk-DGPY4WP3.js';
|
|
6
|
+
//# sourceMappingURL=color-picker.js.map
|
|
7
|
+
//# sourceMappingURL=color-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"color-picker.js"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 };
|
|
@@ -0,0 +1,8 @@
|
|
|
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';
|
|
7
|
+
//# sourceMappingURL=combobox.js.map
|
|
8
|
+
//# sourceMappingURL=combobox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"combobox.js"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 };
|
|
@@ -0,0 +1,5 @@
|
|
|
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';
|
|
4
|
+
//# sourceMappingURL=command.js.map
|
|
5
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"command.js"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 };
|
|
@@ -0,0 +1,4 @@
|
|
|
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';
|
|
3
|
+
//# sourceMappingURL=context-menu.js.map
|
|
4
|
+
//# sourceMappingURL=context-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"context-menu.js"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-C34KSTWA.js';
|
|
2
|
+
import { Calendar as Calendar$1 } from '../chunk-QB3UWRZH.js';
|
|
3
|
+
import { Button } from '../chunk-55E7D2HR.js';
|
|
4
|
+
import { cn } from '../chunk-DGPY4WP3.js';
|
|
5
|
+
import { format } from 'date-fns';
|
|
6
|
+
import { Calendar } from 'lucide-react';
|
|
7
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function DatePicker({
|
|
10
|
+
value,
|
|
11
|
+
onChange,
|
|
12
|
+
placeholder = "Select date",
|
|
13
|
+
className,
|
|
14
|
+
disabled,
|
|
15
|
+
locale
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
18
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
19
|
+
Button,
|
|
20
|
+
{
|
|
21
|
+
variant: "outline",
|
|
22
|
+
disabled,
|
|
23
|
+
className: cn(
|
|
24
|
+
"w-full justify-start text-left font-normal",
|
|
25
|
+
!value && "text-muted-foreground",
|
|
26
|
+
className
|
|
27
|
+
),
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ jsx(Calendar, { className: "mr-2 h-4 w-4" }),
|
|
30
|
+
value ? format(value, "PPP", locale ? { locale } : void 0) : /* @__PURE__ */ jsx("span", { children: placeholder })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
) }),
|
|
34
|
+
/* @__PURE__ */ jsx(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx(
|
|
35
|
+
Calendar$1,
|
|
36
|
+
{
|
|
37
|
+
mode: "single",
|
|
38
|
+
selected: value,
|
|
39
|
+
onSelect: onChange,
|
|
40
|
+
autoFocus: true
|
|
41
|
+
}
|
|
42
|
+
) })
|
|
43
|
+
] });
|
|
44
|
+
}
|
|
45
|
+
function DateRangePicker({
|
|
46
|
+
value,
|
|
47
|
+
onChange,
|
|
48
|
+
placeholder = "Select date range",
|
|
49
|
+
className,
|
|
50
|
+
disabled,
|
|
51
|
+
locale
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
54
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
55
|
+
Button,
|
|
56
|
+
{
|
|
57
|
+
variant: "outline",
|
|
58
|
+
disabled,
|
|
59
|
+
className: cn(
|
|
60
|
+
"w-full justify-start text-left font-normal",
|
|
61
|
+
!value && "text-muted-foreground",
|
|
62
|
+
className
|
|
63
|
+
),
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsx(Calendar, { className: "mr-2 h-4 w-4" }),
|
|
66
|
+
value?.from ? value.to ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
67
|
+
format(value.from, "PPP", locale ? { locale } : void 0),
|
|
68
|
+
" -",
|
|
69
|
+
" ",
|
|
70
|
+
format(value.to, "PPP", locale ? { locale } : void 0)
|
|
71
|
+
] }) : format(value.from, "PPP", locale ? { locale } : void 0) : /* @__PURE__ */ jsx("span", { children: placeholder })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
) }),
|
|
75
|
+
/* @__PURE__ */ jsx(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx(
|
|
76
|
+
Calendar$1,
|
|
77
|
+
{
|
|
78
|
+
mode: "range",
|
|
79
|
+
selected: value,
|
|
80
|
+
onSelect: onChange,
|
|
81
|
+
numberOfMonths: 2,
|
|
82
|
+
autoFocus: true
|
|
83
|
+
}
|
|
84
|
+
) })
|
|
85
|
+
] });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { DatePicker, DateRangePicker };
|
|
89
|
+
//# sourceMappingURL=date-picker.js.map
|
|
90
|
+
//# sourceMappingURL=date-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/date-picker.tsx"],"names":["CalendarIcon","Calendar"],"mappings":";;;;;;;;AAuCO,SAAS,UAAA,CAAW;AAAA,EACzB,KAAA;AAAA,EACA,QAAA;AAAA,EACA,WAAA,GAAc,aAAA;AAAA,EACd,SAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF,CAAA,EAAoB;AAClB,EAAA,4BACG,OAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,cAAA,EAAA,EAAe,SAAO,IAAA,EACrB,QAAA,kBAAA,IAAA;AAAA,MAAC,MAAA;AAAA,MAAA;AAAA,QACC,OAAA,EAAQ,SAAA;AAAA,QACR,QAAA;AAAA,QACA,SAAA,EAAW,EAAA;AAAA,UACT,4CAAA;AAAA,UACA,CAAC,KAAA,IAAS,uBAAA;AAAA,UACV;AAAA,SACF;AAAA,QAEA,QAAA,EAAA;AAAA,0BAAA,GAAA,CAACA,QAAA,EAAA,EAAa,WAAU,cAAA,EAAe,CAAA;AAAA,UACtC,KAAA,GAAQ,MAAA,CAAO,KAAA,EAAO,KAAA,EAAO,MAAA,GAAS,EAAE,MAAA,EAAO,GAAI,MAAS,CAAA,mBAAI,GAAA,CAAC,MAAA,EAAA,EAAM,QAAA,EAAA,WAAA,EAAY;AAAA;AAAA;AAAA,KACtF,EACF,CAAA;AAAA,oBACA,GAAA,CAAC,cAAA,EAAA,EAAe,SAAA,EAAU,YAAA,EAAa,OAAM,OAAA,EAC3C,QAAA,kBAAA,GAAA;AAAA,MAACC,UAAA;AAAA,MAAA;AAAA,QACC,IAAA,EAAK,QAAA;AAAA,QACL,QAAA,EAAU,KAAA;AAAA,QACV,QAAA,EAAU,QAAA;AAAA,QACV,SAAA,EAAS;AAAA;AAAA,KACX,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;AAgCO,SAAS,eAAA,CAAgB;AAAA,EAC9B,KAAA;AAAA,EACA,QAAA;AAAA,EACA,WAAA,GAAc,mBAAA;AAAA,EACd,SAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF,CAAA,EAAyB;AACvB,EAAA,4BACG,OAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,cAAA,EAAA,EAAe,SAAO,IAAA,EACrB,QAAA,kBAAA,IAAA;AAAA,MAAC,MAAA;AAAA,MAAA;AAAA,QACC,OAAA,EAAQ,SAAA;AAAA,QACR,QAAA;AAAA,QACA,SAAA,EAAW,EAAA;AAAA,UACT,4CAAA;AAAA,UACA,CAAC,KAAA,IAAS,uBAAA;AAAA,UACV;AAAA,SACF;AAAA,QAEA,QAAA,EAAA;AAAA,0BAAA,GAAA,CAACD,QAAA,EAAA,EAAa,WAAU,cAAA,EAAe,CAAA;AAAA,UACtC,KAAA,EAAO,IAAA,GACN,KAAA,CAAM,EAAA,mBACJ,IAAA,CAAA,QAAA,EAAA,EACG,QAAA,EAAA;AAAA,YAAA,MAAA,CAAO,MAAM,IAAA,EAAM,KAAA,EAAO,SAAS,EAAE,MAAA,KAAW,MAAS,CAAA;AAAA,YAAE,IAAA;AAAA,YAAG,GAAA;AAAA,YAC9D,MAAA,CAAO,MAAM,EAAA,EAAI,KAAA,EAAO,SAAS,EAAE,MAAA,KAAW,MAAS;AAAA,WAAA,EAC1D,CAAA,GAEA,MAAA,CAAO,KAAA,CAAM,IAAA,EAAM,KAAA,EAAO,MAAA,GAAS,EAAE,MAAA,EAAO,GAAI,MAAS,CAAA,mBAG3D,GAAA,CAAC,UAAM,QAAA,EAAA,WAAA,EAAY;AAAA;AAAA;AAAA,KAEvB,EACF,CAAA;AAAA,oBACA,GAAA,CAAC,cAAA,EAAA,EAAe,SAAA,EAAU,YAAA,EAAa,OAAM,OAAA,EAC3C,QAAA,kBAAA,GAAA;AAAA,MAACC,UAAA;AAAA,MAAA;AAAA,QACC,IAAA,EAAK,OAAA;AAAA,QACL,QAAA,EAAU,KAAA;AAAA,QACV,QAAA,EAAU,QAAA;AAAA,QACV,cAAA,EAAgB,CAAA;AAAA,QAChB,SAAA,EAAS;AAAA;AAAA,KACX,EACF;AAAA,GAAA,EACF,CAAA;AAEJ","file":"date-picker.js","sourcesContent":["import { format } from \"date-fns\";\nimport { Calendar as CalendarIcon } from \"lucide-react\";\nimport type { Locale } from \"date-fns\";\n\nimport { cn } from \"../lib/utils\";\nimport { Button } from \"./button\";\nimport { Calendar } from \"./calendar\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"./popover\";\n\ninterface DatePickerProps {\n /** Currently selected date. */\n value?: Date;\n /** Callback fired when a date is selected or cleared. */\n onChange?: (date: Date | undefined) => void;\n /** Placeholder text shown when no date is selected. */\n placeholder?: string;\n /** Additional CSS class for the trigger button. */\n className?: string;\n /** Whether the date picker is disabled. */\n disabled?: boolean;\n /** date-fns Locale object for date formatting (e.g., `ja` for Japanese). */\n locale?: Locale;\n}\n\n/**\n * Single date picker with a calendar popover.\n * Displays the selected date formatted with date-fns and opens a calendar on click.\n *\n * @example\n * ```tsx\n * const [date, setDate] = useState<Date>();\n *\n * <DatePicker\n * value={date}\n * onChange={setDate}\n * placeholder=\"Pick a date\"\n * />\n * ```\n */\nexport function DatePicker({\n value,\n onChange,\n placeholder = \"Select date\",\n className,\n disabled,\n locale,\n}: DatePickerProps) {\n return (\n <Popover>\n <PopoverTrigger asChild>\n <Button\n variant=\"outline\"\n disabled={disabled}\n className={cn(\n \"w-full justify-start text-left font-normal\",\n !value && \"text-muted-foreground\",\n className\n )}\n >\n <CalendarIcon className=\"mr-2 h-4 w-4\" />\n {value ? format(value, \"PPP\", locale ? { locale } : undefined) : <span>{placeholder}</span>}\n </Button>\n </PopoverTrigger>\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\n <Calendar\n mode=\"single\"\n selected={value}\n onSelect={onChange}\n autoFocus\n />\n </PopoverContent>\n </Popover>\n );\n}\n\ninterface DateRangePickerProps {\n /** Currently selected date range with `from` and optional `to`. */\n value?: { from: Date | undefined; to?: Date | undefined };\n /** Callback fired when the date range changes. */\n onChange?: (range: { from: Date | undefined; to?: Date | undefined } | undefined) => void;\n /** Placeholder text shown when no range is selected. */\n placeholder?: string;\n /** Additional CSS class for the trigger button. */\n className?: string;\n /** Whether the date range picker is disabled. */\n disabled?: boolean;\n /** date-fns Locale object for date formatting (e.g., `ja` for Japanese). */\n locale?: Locale;\n}\n\n/**\n * Date range picker with a two-month calendar popover.\n * Allows selecting a start and end date displayed as a range string.\n *\n * @example\n * ```tsx\n * const [range, setRange] = useState<{ from: Date | undefined; to?: Date }>();\n *\n * <DateRangePicker\n * value={range}\n * onChange={setRange}\n * placeholder=\"Select date range\"\n * />\n * ```\n */\nexport function DateRangePicker({\n value,\n onChange,\n placeholder = \"Select date range\",\n className,\n disabled,\n locale,\n}: DateRangePickerProps) {\n return (\n <Popover>\n <PopoverTrigger asChild>\n <Button\n variant=\"outline\"\n disabled={disabled}\n className={cn(\n \"w-full justify-start text-left font-normal\",\n !value && \"text-muted-foreground\",\n className\n )}\n >\n <CalendarIcon className=\"mr-2 h-4 w-4\" />\n {value?.from ? (\n value.to ? (\n <>\n {format(value.from, \"PPP\", locale ? { locale } : undefined)} -{\" \"}\n {format(value.to, \"PPP\", locale ? { locale } : undefined)}\n </>\n ) : (\n format(value.from, \"PPP\", locale ? { locale } : undefined)\n )\n ) : (\n <span>{placeholder}</span>\n )}\n </Button>\n </PopoverTrigger>\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\n <Calendar\n mode=\"range\"\n selected={value}\n onSelect={onChange}\n numberOfMonths={2}\n autoFocus\n />\n </PopoverContent>\n </Popover>\n );\n}\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from '../chunk-F2ZJLKDP.js';
|
|
2
|
+
import '../chunk-DGPY4WP3.js';
|
|
3
|
+
//# sourceMappingURL=dialog.js.map
|
|
4
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"dialog.js"}
|