@omnifyjp/ui 0.5.3 → 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 -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 +4 -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 +9 -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 +6 -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 +7 -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 +4 -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 +7 -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 +5 -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 +108 -15
- package/dist/index.js +69 -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,39 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Tabbed interface component with list, trigger, and content sub-components.
|
|
7
|
+
*
|
|
8
|
+
* Built on Radix Tabs with density-aware sizing (`h-element` for the tab list).
|
|
9
|
+
* Supports keyboard navigation and focus management out of the box.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Tabs defaultValue="overview">
|
|
14
|
+
* <TabsList>
|
|
15
|
+
* <TabsTrigger value="overview">Overview</TabsTrigger>
|
|
16
|
+
* <TabsTrigger value="analytics">Analytics</TabsTrigger>
|
|
17
|
+
* <TabsTrigger value="settings">Settings</TabsTrigger>
|
|
18
|
+
* </TabsList>
|
|
19
|
+
* <TabsContent value="overview">
|
|
20
|
+
* <p>Overview content here.</p>
|
|
21
|
+
* </TabsContent>
|
|
22
|
+
* <TabsContent value="analytics">
|
|
23
|
+
* <p>Analytics content here.</p>
|
|
24
|
+
* </TabsContent>
|
|
25
|
+
* <TabsContent value="settings">
|
|
26
|
+
* <p>Settings content here.</p>
|
|
27
|
+
* </TabsContent>
|
|
28
|
+
* </Tabs>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
32
|
+
/** Container for `TabsTrigger` elements. Renders as a rounded pill with muted background. */
|
|
33
|
+
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
/** Individual tab button. Highlights with a card background when active. Requires a `value` prop matching a `TabsContent`. */
|
|
35
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
36
|
+
/** Content panel shown when its `value` matches the active tab. */
|
|
37
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tabs.js"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface TagInputProps {
|
|
4
|
+
/** Array of current tag strings. */
|
|
5
|
+
value?: string[];
|
|
6
|
+
/** Callback fired when the tags array changes. */
|
|
7
|
+
onChange?: (tags: string[]) => void;
|
|
8
|
+
/** Placeholder text shown when there are no tags. */
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/** Additional CSS class for the outer container. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Whether the tag input is disabled. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Maximum number of tags allowed. */
|
|
15
|
+
maxTags?: number;
|
|
16
|
+
/** Whether duplicate tag values are allowed. Defaults to `false`. */
|
|
17
|
+
allowDuplicates?: boolean;
|
|
18
|
+
/** Character or pattern used to split pasted text into tags. Defaults to `","`. */
|
|
19
|
+
delimiter?: string | RegExp;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Tag input that lets users add and remove string tags.
|
|
23
|
+
* Tags are added by pressing Enter or the delimiter key, and by pasting comma-separated text.
|
|
24
|
+
* Backspace removes the last tag when the input is empty.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* const [tags, setTags] = useState<string[]>(["react", "typescript"]);
|
|
29
|
+
*
|
|
30
|
+
* <TagInput
|
|
31
|
+
* value={tags}
|
|
32
|
+
* onChange={setTags}
|
|
33
|
+
* placeholder="Add a tag..."
|
|
34
|
+
* maxTags={10}
|
|
35
|
+
* />
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function TagInput({ value, onChange, placeholder, className, disabled, maxTags, allowDuplicates, delimiter, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
export { TagInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tag-input.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type TextareaProps = React.ComponentProps<"textarea">;
|
|
4
|
+
/**
|
|
5
|
+
* Multi-line text input with auto-sizing via `field-sizing-content`.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* // Basic usage
|
|
10
|
+
* <Textarea placeholder="Enter a description..." />
|
|
11
|
+
*
|
|
12
|
+
* // Controlled
|
|
13
|
+
* <Textarea value={content} onChange={(e) => setContent(e.target.value)} />
|
|
14
|
+
*
|
|
15
|
+
* // With rows constraint
|
|
16
|
+
* <Textarea rows={5} placeholder="Feedback" />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const Textarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
20
|
+
|
|
21
|
+
export { Textarea, type TextareaProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"textarea.js"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface TimePickerProps {
|
|
4
|
+
/** Currently selected time in `"HH:mm"` format (e.g., `"14:30"`). */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** Callback fired when a time is selected. Receives a `"HH:mm"` string. */
|
|
7
|
+
onChange?: (time: string) => void;
|
|
8
|
+
/** Placeholder text shown when no time is selected. */
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/** Additional CSS class for the trigger button. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Whether the time picker is disabled. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Use 24-hour format (0-23). When false, shows 12-hour (1-12). Defaults to `true`. */
|
|
15
|
+
format24h?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Time picker with a scrollable hour/minute popover.
|
|
19
|
+
* Opens a two-column dropdown for selecting hours and minutes.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* const [time, setTime] = useState<string>();
|
|
24
|
+
*
|
|
25
|
+
* <TimePicker
|
|
26
|
+
* value={time}
|
|
27
|
+
* onChange={setTime}
|
|
28
|
+
* placeholder="Select time"
|
|
29
|
+
* format24h
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
declare function TimePicker({ value, onChange, placeholder, className, disabled, format24h, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
34
|
+
interface TimeInputProps {
|
|
35
|
+
/** Current time value in `"HH:mm"` format. */
|
|
36
|
+
value?: string;
|
|
37
|
+
/** Callback fired on blur with a valid `"HH:mm"` string. */
|
|
38
|
+
onChange?: (time: string) => void;
|
|
39
|
+
/** Additional CSS class for the input wrapper. */
|
|
40
|
+
className?: string;
|
|
41
|
+
/** Whether the input is disabled. */
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Inline text input for typing a time value directly.
|
|
46
|
+
* Automatically formats input as `HH:mm` and validates on blur.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* const [time, setTime] = useState("09:00");
|
|
51
|
+
*
|
|
52
|
+
* <TimeInput value={time} onChange={setTime} />
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare function TimeInput({ value, onChange, className, disabled, }: TimeInputProps): react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
export { TimeInput, TimePicker };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { TimeInput, TimePicker } from '../chunk-6DIDQ4TB.js';
|
|
2
|
+
import '../chunk-JJSVA3TH.js';
|
|
3
|
+
import '../chunk-3VU56V66.js';
|
|
4
|
+
import '../chunk-C34KSTWA.js';
|
|
5
|
+
import '../chunk-55E7D2HR.js';
|
|
6
|
+
import '../chunk-DGPY4WP3.js';
|
|
7
|
+
//# sourceMappingURL=time-picker.js.map
|
|
8
|
+
//# sourceMappingURL=time-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"time-picker.js"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { toggleVariants } from './toggle.js';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import '@radix-ui/react-toggle';
|
|
8
|
+
|
|
9
|
+
type ToggleGroupProps = React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>;
|
|
10
|
+
/**
|
|
11
|
+
* Group of toggle buttons where one or multiple items can be active.
|
|
12
|
+
* Provides shared `variant` and `size` context to child {@link ToggleGroupItem} components.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* // Single selection
|
|
17
|
+
* <ToggleGroup type="single" defaultValue="center">
|
|
18
|
+
* <ToggleGroupItem value="left"><AlignLeftIcon /></ToggleGroupItem>
|
|
19
|
+
* <ToggleGroupItem value="center"><AlignCenterIcon /></ToggleGroupItem>
|
|
20
|
+
* <ToggleGroupItem value="right"><AlignRightIcon /></ToggleGroupItem>
|
|
21
|
+
* </ToggleGroup>
|
|
22
|
+
*
|
|
23
|
+
* // Multiple selection with outline variant
|
|
24
|
+
* <ToggleGroup type="multiple" variant="outline" size="sm">
|
|
25
|
+
* <ToggleGroupItem value="bold"><BoldIcon /></ToggleGroupItem>
|
|
26
|
+
* <ToggleGroupItem value="italic"><ItalicIcon /></ToggleGroupItem>
|
|
27
|
+
* </ToggleGroup>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
type ToggleGroupItemProps = React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>;
|
|
32
|
+
/**
|
|
33
|
+
* Individual toggle item within a {@link ToggleGroup}.
|
|
34
|
+
* Inherits `variant` and `size` from the parent group context unless overridden.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <ToggleGroupItem value="bold" aria-label="Toggle bold">
|
|
39
|
+
* <BoldIcon className="size-4" />
|
|
40
|
+
* </ToggleGroupItem>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: ToggleGroupItemProps): react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
export { ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"toggle-group.js"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
declare const toggleVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "outline" | null | undefined;
|
|
9
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
interface ToggleProps extends React.ComponentProps<typeof TogglePrimitive.Root>, VariantProps<typeof toggleVariants> {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Two-state button that can be toggled on or off, with variant and size options.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* // Basic toggle
|
|
19
|
+
* <Toggle aria-label="Toggle bold">
|
|
20
|
+
* <BoldIcon className="size-4" />
|
|
21
|
+
* </Toggle>
|
|
22
|
+
*
|
|
23
|
+
* // Outline variant, small size
|
|
24
|
+
* <Toggle variant="outline" size="sm">
|
|
25
|
+
* <ItalicIcon className="size-4" />
|
|
26
|
+
* </Toggle>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare function Toggle({ className, variant, size, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
export { Toggle, type ToggleProps, toggleVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"toggle.js"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
4
|
+
|
|
5
|
+
/** Provider that configures shared tooltip settings like delay duration. */
|
|
6
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* Tooltip component built on Radix UI Tooltip.
|
|
9
|
+
*
|
|
10
|
+
* Displays a short informational label when the user hovers over or focuses
|
|
11
|
+
* an element. Includes a built-in `TooltipProvider` with zero delay.
|
|
12
|
+
* Renders with an arrow pointer for visual anchoring.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Tooltip>
|
|
17
|
+
* <TooltipTrigger asChild>
|
|
18
|
+
* <Button variant="ghost" size="icon">
|
|
19
|
+
* <InfoIcon className="size-4" />
|
|
20
|
+
* </Button>
|
|
21
|
+
* </TooltipTrigger>
|
|
22
|
+
* <TooltipContent>
|
|
23
|
+
* <p>This is a helpful tooltip</p>
|
|
24
|
+
* </TooltipContent>
|
|
25
|
+
* </Tooltip>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
29
|
+
/** Element that shows the tooltip on hover/focus. Use `asChild` to merge into your own element. */
|
|
30
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
31
|
+
/** Floating label that appears near the trigger. Includes an arrow indicator. */
|
|
32
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tooltip.js"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Supported workflow categories with built-in icon and color mappings. */
|
|
4
|
+
type WorkflowCategory = 'leave' | 'expense' | 'purchase' | 'contract' | 'document' | 'other';
|
|
5
|
+
interface WorkflowCategoryBadgeProps {
|
|
6
|
+
/** The category key. Determines the icon and color. */
|
|
7
|
+
category: WorkflowCategory;
|
|
8
|
+
/** The displayed label text. Defaults to a capitalized version of the category. */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Optional additional className. */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* WorkflowCategoryBadge renders a badge with an icon and color for a workflow category.
|
|
15
|
+
*
|
|
16
|
+
* Each category has a dedicated icon and color scheme:
|
|
17
|
+
* - leave: Calendar (blue)
|
|
18
|
+
* - expense: Receipt (green)
|
|
19
|
+
* - purchase: ShoppingCart (amber)
|
|
20
|
+
* - contract: FileSignature (purple)
|
|
21
|
+
* - document: FileText (cyan)
|
|
22
|
+
* - other: MoreHorizontal (muted)
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <WorkflowCategoryBadge category="expense" />
|
|
27
|
+
* <WorkflowCategoryBadge category="leave" label="Annual Leave" />
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
declare function WorkflowCategoryBadge({ category, label, className }: WorkflowCategoryBadgeProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
export { type WorkflowCategory, WorkflowCategoryBadge, type WorkflowCategoryBadgeProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-category-badge.js"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Supported stage types for the workflow diagram. Each type has a dedicated
|
|
5
|
+
* icon (CheckCircle, Eye, Bell, GitBranch) and color.
|
|
6
|
+
*/
|
|
7
|
+
type WorkflowDiagramStageType = 'approval' | 'review' | 'notification' | 'conditional';
|
|
8
|
+
/** A single stage in the workflow diagram. */
|
|
9
|
+
interface WorkflowDiagramStage {
|
|
10
|
+
/** Unique identifier for this stage. */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Display name shown on the stage card. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Stage type that determines the icon and color. */
|
|
15
|
+
type: WorkflowDiagramStageType;
|
|
16
|
+
/** List of user IDs assigned as approvers. Count is displayed on the card. */
|
|
17
|
+
approverIds: string[];
|
|
18
|
+
/** Numeric order used to sort stages left-to-right. */
|
|
19
|
+
order: number;
|
|
20
|
+
}
|
|
21
|
+
/** User-visible labels for the workflow diagram. All have English defaults. */
|
|
22
|
+
interface WorkflowDiagramLabels {
|
|
23
|
+
/** Label shown above stage name for each stage type */
|
|
24
|
+
approval?: string;
|
|
25
|
+
review?: string;
|
|
26
|
+
notification?: string;
|
|
27
|
+
conditional?: string;
|
|
28
|
+
/** Text for the approver count (e.g. "approvers") */
|
|
29
|
+
approvers?: string;
|
|
30
|
+
}
|
|
31
|
+
interface WorkflowDiagramProps {
|
|
32
|
+
/** Ordered list of stages to display. Will be sorted by `order`. */
|
|
33
|
+
stages: WorkflowDiagramStage[];
|
|
34
|
+
/** The id of the currently active stage. Highlighted with a blue border. */
|
|
35
|
+
currentStageId?: string;
|
|
36
|
+
/** User-visible labels with English defaults. */
|
|
37
|
+
labels?: WorkflowDiagramLabels;
|
|
38
|
+
/** Optional additional className for the root container. */
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* WorkflowDiagram renders a horizontal flow of workflow stages as cards
|
|
43
|
+
* connected by arrows.
|
|
44
|
+
*
|
|
45
|
+
* Each stage card displays an icon based on stage type, the stage name,
|
|
46
|
+
* and an optional approver count. The current stage is highlighted with
|
|
47
|
+
* a blue border.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <WorkflowDiagram
|
|
52
|
+
* stages={[
|
|
53
|
+
* { id: "s1", name: "Manager Review", type: "review", approverIds: ["u1"], order: 1 },
|
|
54
|
+
* { id: "s2", name: "Final Approval", type: "approval", approverIds: ["u2", "u3"], order: 2 },
|
|
55
|
+
* ]}
|
|
56
|
+
* currentStageId="s1"
|
|
57
|
+
* labels={{ approvers: "approvers" }}
|
|
58
|
+
* />
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare function WorkflowDiagram({ stages, currentStageId, labels, className, }: WorkflowDiagramProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
export { WorkflowDiagram, type WorkflowDiagramLabels, type WorkflowDiagramProps, type WorkflowDiagramStage, type WorkflowDiagramStageType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-diagram.js"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Common workflow instance statuses with built-in styling. */
|
|
4
|
+
type WorkflowStatus = 'pending' | 'in-progress' | 'approved' | 'rejected' | 'cancelled';
|
|
5
|
+
interface WorkflowStatusBadgeProps {
|
|
6
|
+
/** The status key. Must be one of the predefined statuses. */
|
|
7
|
+
status: WorkflowStatus;
|
|
8
|
+
/** The displayed label text. Defaults to a capitalized version of the status. */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Optional additional className. */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* WorkflowStatusBadge renders a color-coded badge for a workflow instance status.
|
|
15
|
+
*
|
|
16
|
+
* - pending: blue
|
|
17
|
+
* - in-progress: amber
|
|
18
|
+
* - approved: green
|
|
19
|
+
* - rejected: red
|
|
20
|
+
* - cancelled: muted
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <WorkflowStatusBadge status="approved" />
|
|
25
|
+
* <WorkflowStatusBadge status="in-progress" label="In Review" />
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare function WorkflowStatusBadge({ status, label, className }: WorkflowStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
export { type WorkflowStatus, WorkflowStatusBadge, type WorkflowStatusBadgeProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-status-badge.js"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** A single stage in the workflow stepper. */
|
|
4
|
+
interface WorkflowStepperStage {
|
|
5
|
+
/** Unique identifier for this stage. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Display name shown below the stage circle. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Numeric order used to sort stages left-to-right. */
|
|
10
|
+
order: number;
|
|
11
|
+
}
|
|
12
|
+
/** A history entry representing a completed (or rejected) stage. */
|
|
13
|
+
interface WorkflowStepperHistoryEntry {
|
|
14
|
+
/** The stage ID this history entry applies to. */
|
|
15
|
+
stageId: string;
|
|
16
|
+
/** The decision made at this stage. "rejected" stages render in red. */
|
|
17
|
+
decision: 'approved' | 'rejected' | 'skipped' | (string & {});
|
|
18
|
+
}
|
|
19
|
+
interface WorkflowStepperProps {
|
|
20
|
+
/** Ordered list of stages to display. Will be sorted by `order`. */
|
|
21
|
+
stages: WorkflowStepperStage[];
|
|
22
|
+
/** History of completed stages. Used to determine which stages are done. */
|
|
23
|
+
history: WorkflowStepperHistoryEntry[];
|
|
24
|
+
/** The id of the currently active stage. */
|
|
25
|
+
currentStageId: string;
|
|
26
|
+
/** Optional additional className for the root container. */
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* WorkflowStepper displays a horizontal progression of workflow stages.
|
|
31
|
+
*
|
|
32
|
+
* Each stage is shown as a numbered circle. Completed stages show a checkmark
|
|
33
|
+
* (green for approved, red for rejected). The current stage pulses with a blue
|
|
34
|
+
* highlight. Stages are connected by a horizontal line that turns green once
|
|
35
|
+
* the preceding stage is completed.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <WorkflowStepper
|
|
40
|
+
* stages={[
|
|
41
|
+
* { id: "s1", name: "Submit", order: 1 },
|
|
42
|
+
* { id: "s2", name: "Review", order: 2 },
|
|
43
|
+
* { id: "s3", name: "Approve", order: 3 },
|
|
44
|
+
* ]}
|
|
45
|
+
* history={[{ stageId: "s1", decision: "approved" }]}
|
|
46
|
+
* currentStageId="s2"
|
|
47
|
+
* />
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare function WorkflowStepper({ stages, history, currentStageId, className, }: WorkflowStepperProps): react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
export { WorkflowStepper, type WorkflowStepperHistoryEntry, type WorkflowStepperProps, type WorkflowStepperStage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-stepper.js"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare function useIsMobile(): boolean;
|
|
2
|
+
|
|
3
|
+
export { useIsMobile };
|
package/dist/hooks/use-mobile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-mobile.js"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-mobile.js"}
|