@omnifyjp/ui 0.4.4 → 0.5.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 +379 -133
- package/dist/chunk-2ZIFL2X3.js +189 -0
- package/dist/chunk-2ZIFL2X3.js.map +1 -0
- package/dist/chunk-5BL4VFRJ.js +57 -0
- package/dist/chunk-5BL4VFRJ.js.map +1 -0
- package/dist/chunk-5D3OAVOZ.js +91 -0
- package/dist/chunk-5D3OAVOZ.js.map +1 -0
- package/dist/chunk-DTM76EJD.js +235 -0
- package/dist/chunk-DTM76EJD.js.map +1 -0
- package/dist/chunk-EJEVW4RO.js +49 -0
- package/dist/chunk-EJEVW4RO.js.map +1 -0
- package/dist/chunk-JXFBHSPN.js +37 -0
- package/dist/chunk-JXFBHSPN.js.map +1 -0
- package/dist/chunk-O25D7DCP.js +72 -0
- package/dist/chunk-O25D7DCP.js.map +1 -0
- package/dist/chunk-OY3PSPA5.js +661 -0
- package/dist/chunk-OY3PSPA5.js.map +1 -0
- package/dist/chunk-SHHZRZMM.js +83 -0
- package/dist/chunk-SHHZRZMM.js.map +1 -0
- package/dist/chunk-X57K24P3.js +224 -0
- package/dist/chunk-X57K24P3.js.map +1 -0
- package/dist/chunk-XDXGUPCR.js +123 -0
- package/dist/chunk-XDXGUPCR.js.map +1 -0
- package/dist/components/AppShell.d.ts +27 -0
- package/dist/components/AppShell.js +11 -0
- package/dist/components/AppShell.js.map +1 -0
- package/dist/components/Header.d.ts +11 -0
- package/dist/components/Header.js +6 -0
- package/dist/components/Header.js.map +1 -0
- package/dist/components/OrganizationSelector.d.ts +8 -0
- package/dist/components/OrganizationSelector.js +4 -0
- package/dist/components/OrganizationSelector.js.map +1 -0
- package/dist/components/OrganizationSetupModal.d.ts +5 -0
- package/dist/components/OrganizationSetupModal.js +4 -0
- package/dist/components/OrganizationSetupModal.js.map +1 -0
- package/dist/components/PageContainer.d.ts +105 -0
- package/dist/components/PageContainer.js +3 -0
- package/dist/components/PageContainer.js.map +1 -0
- package/dist/components/ServiceMenu.d.ts +11 -0
- package/dist/components/ServiceMenu.js +3 -0
- package/dist/components/ServiceMenu.js.map +1 -0
- package/dist/components/Sidebar.d.ts +11 -0
- package/dist/components/Sidebar.js +5 -0
- package/dist/components/Sidebar.js.map +1 -0
- package/dist/contexts/OrganizationContext.d.ts +26 -0
- package/dist/contexts/OrganizationContext.js +3 -0
- package/dist/contexts/OrganizationContext.js.map +1 -0
- package/dist/contexts/ThemeContext.d.ts +14 -0
- package/dist/contexts/ThemeContext.js +3 -0
- package/dist/contexts/ThemeContext.js.map +1 -0
- package/dist/hooks/useDateFormat.d.ts +28 -0
- package/dist/hooks/useDateFormat.js +4 -0
- package/dist/hooks/useDateFormat.js.map +1 -0
- package/dist/i18n.d.ts +38 -0
- package/dist/i18n.js +3 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +13 -109
- package/dist/index.js +11 -70
- package/dist/types.d.ts +89 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +23 -70
- package/dist/chunk-2C2HRGM7.js +0 -51
- package/dist/chunk-2C2HRGM7.js.map +0 -1
- package/dist/chunk-2TUWDXAC.js +0 -196
- package/dist/chunk-2TUWDXAC.js.map +0 -1
- package/dist/chunk-34ARZSNP.js +0 -63
- package/dist/chunk-34ARZSNP.js.map +0 -1
- package/dist/chunk-35DNN46W.js +0 -13
- package/dist/chunk-35DNN46W.js.map +0 -1
- package/dist/chunk-35U6QG4P.js +0 -116
- package/dist/chunk-35U6QG4P.js.map +0 -1
- package/dist/chunk-36YYHIJU.js +0 -52
- package/dist/chunk-36YYHIJU.js.map +0 -1
- package/dist/chunk-3EOHW4QN.js +0 -35
- package/dist/chunk-3EOHW4QN.js.map +0 -1
- package/dist/chunk-3UPBCOS4.js +0 -39
- package/dist/chunk-3UPBCOS4.js.map +0 -1
- package/dist/chunk-3VU56V66.js +0 -41
- package/dist/chunk-3VU56V66.js.map +0 -1
- package/dist/chunk-55E7D2HR.js +0 -99
- package/dist/chunk-55E7D2HR.js.map +0 -1
- package/dist/chunk-67YUL2ZS.js +0 -53
- package/dist/chunk-67YUL2ZS.js.map +0 -1
- package/dist/chunk-6DIDQ4TB.js +0 -131
- package/dist/chunk-6DIDQ4TB.js.map +0 -1
- package/dist/chunk-6GWVQB3Q.js +0 -155
- package/dist/chunk-6GWVQB3Q.js.map +0 -1
- package/dist/chunk-75WZR6HF.js +0 -44
- package/dist/chunk-75WZR6HF.js.map +0 -1
- package/dist/chunk-7IRLBU2I.js +0 -114
- package/dist/chunk-7IRLBU2I.js.map +0 -1
- package/dist/chunk-7RMTPT6O.js +0 -99
- package/dist/chunk-7RMTPT6O.js.map +0 -1
- package/dist/chunk-7XH3MGBR.js +0 -128
- package/dist/chunk-7XH3MGBR.js.map +0 -1
- package/dist/chunk-A3BB5ZOC.js +0 -77
- package/dist/chunk-A3BB5ZOC.js.map +0 -1
- package/dist/chunk-B434PORR.js +0 -239
- package/dist/chunk-B434PORR.js.map +0 -1
- package/dist/chunk-BAQWGQJG.js +0 -106
- package/dist/chunk-BAQWGQJG.js.map +0 -1
- package/dist/chunk-BRSM3SZP.js +0 -46
- package/dist/chunk-BRSM3SZP.js.map +0 -1
- package/dist/chunk-C34KSTWA.js +0 -43
- package/dist/chunk-C34KSTWA.js.map +0 -1
- package/dist/chunk-C5NZAOA7.js +0 -54
- package/dist/chunk-C5NZAOA7.js.map +0 -1
- package/dist/chunk-CUZR4JWM.js +0 -23
- package/dist/chunk-CUZR4JWM.js.map +0 -1
- package/dist/chunk-DGPY4WP3.js +0 -11
- package/dist/chunk-DGPY4WP3.js.map +0 -1
- package/dist/chunk-EWBCV7VA.js +0 -65
- package/dist/chunk-EWBCV7VA.js.map +0 -1
- package/dist/chunk-F2ZJLKDP.js +0 -119
- package/dist/chunk-F2ZJLKDP.js.map +0 -1
- package/dist/chunk-FLWMT4DB.js +0 -66
- package/dist/chunk-FLWMT4DB.js.map +0 -1
- package/dist/chunk-FRKG7JQY.js +0 -48
- package/dist/chunk-FRKG7JQY.js.map +0 -1
- package/dist/chunk-G7HTZBUR.js +0 -187
- package/dist/chunk-G7HTZBUR.js.map +0 -1
- package/dist/chunk-HWTW64R5.js +0 -90
- package/dist/chunk-HWTW64R5.js.map +0 -1
- package/dist/chunk-IAWKX5W4.js +0 -219
- package/dist/chunk-IAWKX5W4.js.map +0 -1
- package/dist/chunk-INLM7UJC.js +0 -238
- package/dist/chunk-INLM7UJC.js.map +0 -1
- package/dist/chunk-JAJMM32I.js +0 -18
- package/dist/chunk-JAJMM32I.js.map +0 -1
- package/dist/chunk-JJSVA3TH.js +0 -61
- package/dist/chunk-JJSVA3TH.js.map +0 -1
- package/dist/chunk-JLTBUACL.js +0 -121
- package/dist/chunk-JLTBUACL.js.map +0 -1
- package/dist/chunk-JRU2QX7T.js +0 -38
- package/dist/chunk-JRU2QX7T.js.map +0 -1
- package/dist/chunk-JXGRW2MR.js +0 -17
- package/dist/chunk-JXGRW2MR.js.map +0 -1
- package/dist/chunk-KTBOZ4NE.js +0 -93
- package/dist/chunk-KTBOZ4NE.js.map +0 -1
- package/dist/chunk-LMT327XH.js +0 -56
- package/dist/chunk-LMT327XH.js.map +0 -1
- package/dist/chunk-LTTNCAAA.js +0 -138
- package/dist/chunk-LTTNCAAA.js.map +0 -1
- package/dist/chunk-LVZNNIK4.js +0 -111
- package/dist/chunk-LVZNNIK4.js.map +0 -1
- package/dist/chunk-MJLFJPUG.js +0 -143
- package/dist/chunk-MJLFJPUG.js.map +0 -1
- package/dist/chunk-MZ2P566X.js +0 -65
- package/dist/chunk-MZ2P566X.js.map +0 -1
- package/dist/chunk-N47H4MHX.js +0 -41
- package/dist/chunk-N47H4MHX.js.map +0 -1
- package/dist/chunk-NNJTKHCE.js +0 -160
- package/dist/chunk-NNJTKHCE.js.map +0 -1
- package/dist/chunk-NPL2R5LD.js +0 -171
- package/dist/chunk-NPL2R5LD.js.map +0 -1
- package/dist/chunk-NU56GKGM.js +0 -44
- package/dist/chunk-NU56GKGM.js.map +0 -1
- package/dist/chunk-P3M5TZD2.js +0 -24
- package/dist/chunk-P3M5TZD2.js.map +0 -1
- package/dist/chunk-PGWNOZDX.js +0 -28
- package/dist/chunk-PGWNOZDX.js.map +0 -1
- package/dist/chunk-QB3UWRZH.js +0 -92
- package/dist/chunk-QB3UWRZH.js.map +0 -1
- package/dist/chunk-R2CDE5DO.js +0 -33
- package/dist/chunk-R2CDE5DO.js.map +0 -1
- package/dist/chunk-RQNZDWY3.js +0 -65
- package/dist/chunk-RQNZDWY3.js.map +0 -1
- package/dist/chunk-S6PDRGR5.js +0 -109
- package/dist/chunk-S6PDRGR5.js.map +0 -1
- package/dist/chunk-TGYQ3AKH.js +0 -95
- package/dist/chunk-TGYQ3AKH.js.map +0 -1
- package/dist/chunk-THQUH6WX.js +0 -81
- package/dist/chunk-THQUH6WX.js.map +0 -1
- package/dist/chunk-TJMK2KBE.js +0 -112
- package/dist/chunk-TJMK2KBE.js.map +0 -1
- package/dist/chunk-TTH7TWVX.js +0 -30
- package/dist/chunk-TTH7TWVX.js.map +0 -1
- package/dist/chunk-USIHM7FV.js +0 -211
- package/dist/chunk-USIHM7FV.js.map +0 -1
- package/dist/chunk-VVYSAGB3.js +0 -104
- package/dist/chunk-VVYSAGB3.js.map +0 -1
- package/dist/chunk-WD5KZE25.js +0 -25
- package/dist/chunk-WD5KZE25.js.map +0 -1
- package/dist/chunk-WL4ZO2H3.js +0 -33
- package/dist/chunk-WL4ZO2H3.js.map +0 -1
- package/dist/chunk-WRCHR4AK.js +0 -23
- package/dist/chunk-WRCHR4AK.js.map +0 -1
- package/dist/chunk-XOJJBNDX.js +0 -33
- package/dist/chunk-XOJJBNDX.js.map +0 -1
- package/dist/chunk-XUVLD65E.js +0 -617
- package/dist/chunk-XUVLD65E.js.map +0 -1
- package/dist/chunk-YBMEQZX7.js +0 -164
- package/dist/chunk-YBMEQZX7.js.map +0 -1
- package/dist/chunk-Z2QAABLM.js +0 -86
- package/dist/chunk-Z2QAABLM.js.map +0 -1
- package/dist/chunk-ZHEKDP5X.js +0 -41
- package/dist/chunk-ZHEKDP5X.js.map +0 -1
- package/dist/chunk-ZPMXRW2A.js +0 -63
- package/dist/chunk-ZPMXRW2A.js.map +0 -1
- package/dist/chunk-ZYEGBF7G.js +0 -25
- package/dist/chunk-ZYEGBF7G.js.map +0 -1
- package/dist/components/accordion.d.ts +0 -37
- package/dist/components/accordion.js +0 -4
- package/dist/components/accordion.js.map +0 -1
- package/dist/components/alert-dialog.d.ts +0 -56
- package/dist/components/alert-dialog.js +0 -5
- package/dist/components/alert-dialog.js.map +0 -1
- package/dist/components/alert.d.ts +0 -68
- package/dist/components/alert.js +0 -4
- package/dist/components/alert.js.map +0 -1
- package/dist/components/aspect-ratio.d.ts +0 -23
- package/dist/components/aspect-ratio.js +0 -3
- package/dist/components/aspect-ratio.js.map +0 -1
- package/dist/components/avatar.d.ts +0 -48
- package/dist/components/avatar.js +0 -4
- package/dist/components/avatar.js.map +0 -1
- package/dist/components/badge.d.ts +0 -52
- package/dist/components/badge.js +0 -4
- package/dist/components/badge.js.map +0 -1
- package/dist/components/breadcrumb.d.ts +0 -50
- package/dist/components/breadcrumb.js +0 -4
- package/dist/components/breadcrumb.js.map +0 -1
- package/dist/components/button.d.ts +0 -81
- package/dist/components/button.js +0 -4
- package/dist/components/button.js.map +0 -1
- package/dist/components/calendar-category-badge.d.ts +0 -24
- package/dist/components/calendar-category-badge.js +0 -5
- package/dist/components/calendar-category-badge.js.map +0 -1
- package/dist/components/calendar-event-chip.d.ts +0 -41
- package/dist/components/calendar-event-chip.js +0 -4
- package/dist/components/calendar-event-chip.js.map +0 -1
- package/dist/components/calendar-event-sheet.d.ts +0 -68
- package/dist/components/calendar-event-sheet.js +0 -9
- package/dist/components/calendar-event-sheet.js.map +0 -1
- package/dist/components/calendar-mini.d.ts +0 -65
- package/dist/components/calendar-mini.js +0 -6
- package/dist/components/calendar-mini.js.map +0 -1
- package/dist/components/calendar-toolbar.d.ts +0 -58
- package/dist/components/calendar-toolbar.js +0 -7
- package/dist/components/calendar-toolbar.js.map +0 -1
- package/dist/components/calendar.d.ts +0 -19
- package/dist/components/calendar.js +0 -5
- package/dist/components/calendar.js.map +0 -1
- package/dist/components/card.d.ts +0 -43
- package/dist/components/card.js +0 -4
- package/dist/components/card.js.map +0 -1
- package/dist/components/carousel.d.ts +0 -53
- package/dist/components/carousel.js +0 -5
- package/dist/components/carousel.js.map +0 -1
- package/dist/components/chart.d.ts +0 -103
- package/dist/components/chart.js +0 -4
- package/dist/components/chart.js.map +0 -1
- package/dist/components/checkbox.d.ts +0 -24
- package/dist/components/checkbox.js +0 -4
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/collapsible.d.ts +0 -28
- package/dist/components/collapsible.js +0 -3
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/color-picker.d.ts +0 -35
- package/dist/components/color-picker.js +0 -7
- package/dist/components/color-picker.js.map +0 -1
- package/dist/components/combobox.d.ts +0 -98
- package/dist/components/combobox.js +0 -8
- package/dist/components/combobox.js.map +0 -1
- package/dist/components/command.d.ts +0 -63
- package/dist/components/command.js +0 -5
- package/dist/components/command.js.map +0 -1
- package/dist/components/context-menu.d.ts +0 -70
- package/dist/components/context-menu.js +0 -4
- package/dist/components/context-menu.js.map +0 -1
- package/dist/components/date-picker.d.ts +0 -71
- package/dist/components/date-picker.js +0 -7
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/dialog.d.ts +0 -58
- package/dist/components/dialog.js +0 -4
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/drawer.d.ts +0 -60
- package/dist/components/drawer.js +0 -4
- package/dist/components/drawer.js.map +0 -1
- package/dist/components/dropdown-menu.d.ts +0 -76
- package/dist/components/dropdown-menu.js +0 -4
- package/dist/components/dropdown-menu.js.map +0 -1
- package/dist/components/file-upload.d.ts +0 -44
- package/dist/components/file-upload.js +0 -5
- package/dist/components/file-upload.js.map +0 -1
- package/dist/components/form.d.ts +0 -67
- package/dist/components/form.js +0 -5
- package/dist/components/form.js.map +0 -1
- package/dist/components/hover-card.d.ts +0 -43
- package/dist/components/hover-card.js +0 -4
- package/dist/components/hover-card.js.map +0 -1
- package/dist/components/input-otp.d.ts +0 -38
- package/dist/components/input-otp.js +0 -4
- package/dist/components/input-otp.js.map +0 -1
- package/dist/components/input.d.ts +0 -38
- package/dist/components/input.js +0 -4
- package/dist/components/input.js.map +0 -1
- package/dist/components/label.d.ts +0 -20
- package/dist/components/label.js +0 -4
- package/dist/components/label.js.map +0 -1
- package/dist/components/menubar.d.ts +0 -82
- package/dist/components/menubar.js +0 -4
- package/dist/components/menubar.js.map +0 -1
- package/dist/components/navigation-menu.d.ts +0 -64
- package/dist/components/navigation-menu.js +0 -4
- package/dist/components/navigation-menu.js.map +0 -1
- package/dist/components/pagination.d.ts +0 -59
- package/dist/components/pagination.js +0 -5
- package/dist/components/pagination.js.map +0 -1
- package/dist/components/password-input.d.ts +0 -32
- package/dist/components/password-input.js +0 -5
- package/dist/components/password-input.js.map +0 -1
- package/dist/components/permission-grid.d.ts +0 -67
- package/dist/components/permission-grid.js +0 -5
- package/dist/components/permission-grid.js.map +0 -1
- package/dist/components/popover.d.ts +0 -37
- package/dist/components/popover.js +0 -4
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress.d.ts +0 -20
- package/dist/components/progress.js +0 -4
- package/dist/components/progress.js.map +0 -1
- package/dist/components/radio-group.d.ts +0 -38
- package/dist/components/radio-group.js +0 -4
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/rating.d.ts +0 -35
- package/dist/components/rating.js +0 -4
- package/dist/components/rating.js.map +0 -1
- package/dist/components/resizable.d.ts +0 -36
- package/dist/components/resizable.js +0 -4
- package/dist/components/resizable.js.map +0 -1
- package/dist/components/scope-tree.d.ts +0 -78
- package/dist/components/scope-tree.js +0 -5
- package/dist/components/scope-tree.js.map +0 -1
- package/dist/components/scope-type-badge.d.ts +0 -35
- package/dist/components/scope-type-badge.js +0 -5
- package/dist/components/scope-type-badge.js.map +0 -1
- package/dist/components/scroll-area.d.ts +0 -29
- package/dist/components/scroll-area.js +0 -4
- package/dist/components/scroll-area.js.map +0 -1
- package/dist/components/select.d.ts +0 -52
- package/dist/components/select.js +0 -4
- package/dist/components/select.js.map +0 -1
- package/dist/components/separator.d.ts +0 -24
- package/dist/components/separator.js +0 -4
- package/dist/components/separator.js.map +0 -1
- package/dist/components/sheet.d.ts +0 -51
- package/dist/components/sheet.js +0 -4
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/sidebar.d.ts +0 -169
- package/dist/components/sidebar.js +0 -11
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/skeleton.d.ts +0 -25
- package/dist/components/skeleton.js +0 -4
- package/dist/components/skeleton.js.map +0 -1
- package/dist/components/slider.d.ts +0 -24
- package/dist/components/slider.js +0 -4
- package/dist/components/slider.js.map +0 -1
- package/dist/components/slug-input.d.ts +0 -50
- package/dist/components/slug-input.js +0 -6
- package/dist/components/slug-input.js.map +0 -1
- package/dist/components/sonner.d.ts +0 -22
- package/dist/components/sonner.js +0 -3
- package/dist/components/sonner.js.map +0 -1
- package/dist/components/stage-type-badge.d.ts +0 -30
- package/dist/components/stage-type-badge.js +0 -5
- package/dist/components/stage-type-badge.js.map +0 -1
- package/dist/components/switch.d.ts +0 -26
- package/dist/components/switch.js +0 -4
- package/dist/components/switch.js.map +0 -1
- package/dist/components/table.d.ts +0 -57
- package/dist/components/table.js +0 -4
- package/dist/components/table.js.map +0 -1
- package/dist/components/tabs.d.ts +0 -39
- package/dist/components/tabs.js +0 -4
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/tag-input.d.ts +0 -40
- package/dist/components/tag-input.js +0 -5
- package/dist/components/tag-input.js.map +0 -1
- package/dist/components/textarea.d.ts +0 -21
- package/dist/components/textarea.js +0 -4
- package/dist/components/textarea.js.map +0 -1
- package/dist/components/time-picker.d.ts +0 -57
- package/dist/components/time-picker.js +0 -8
- package/dist/components/time-picker.js.map +0 -1
- package/dist/components/toggle-group.d.ts +0 -45
- package/dist/components/toggle-group.js +0 -5
- package/dist/components/toggle-group.js.map +0 -1
- package/dist/components/toggle.d.ts +0 -31
- package/dist/components/toggle.js +0 -4
- package/dist/components/toggle.js.map +0 -1
- package/dist/components/tooltip.d.ts +0 -34
- package/dist/components/tooltip.js +0 -4
- package/dist/components/tooltip.js.map +0 -1
- package/dist/components/workflow-category-badge.d.ts +0 -32
- package/dist/components/workflow-category-badge.js +0 -5
- package/dist/components/workflow-category-badge.js.map +0 -1
- package/dist/components/workflow-diagram.d.ts +0 -63
- package/dist/components/workflow-diagram.js +0 -5
- package/dist/components/workflow-diagram.js.map +0 -1
- package/dist/components/workflow-status-badge.d.ts +0 -30
- package/dist/components/workflow-status-badge.js +0 -5
- package/dist/components/workflow-status-badge.js.map +0 -1
- package/dist/components/workflow-stepper.d.ts +0 -52
- package/dist/components/workflow-stepper.js +0 -4
- package/dist/components/workflow-stepper.js.map +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -3
- package/dist/hooks/use-mobile.js +0 -3
- package/dist/hooks/use-mobile.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -3
- package/dist/lib/utils.js.map +0 -1
- package/dist/types-CBVkScfB.d.ts +0 -84
- package/src/styles/fonts.css +0 -0
- package/src/styles/index.css +0 -3
- package/src/styles/tailwind.css +0 -4
- package/src/styles/theme.css +0 -461
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/hooks/useDateFormat.ts"],"names":["viLocale","jaLocale"],"mappings":"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","file":"chunk-XDXGUPCR.js","sourcesContent":["import { useCallback, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { format, formatDistanceToNow } from 'date-fns';\nimport { vi as viLocale } from 'date-fns/locale';\nimport { enUS } from 'date-fns/locale';\nimport { ja as jaLocale } from 'date-fns/locale';\nimport type { Locale } from 'date-fns';\nimport { changeLanguage } from '../i18n';\nimport type { SupportedLanguage } from '../i18n';\n\nexport type SupportedTimezone =\n | 'Asia/Ho_Chi_Minh'\n | 'Asia/Tokyo'\n | 'America/New_York'\n | 'America/Los_Angeles'\n | 'Europe/London'\n | 'UTC';\n\nexport const timezoneLabels: Record<SupportedTimezone, string> = {\n 'Asia/Ho_Chi_Minh': '(UTC+7) Ho Chi Minh',\n 'Asia/Tokyo': '(UTC+9) Tokyo',\n 'America/New_York': '(UTC-5) New York',\n 'America/Los_Angeles': '(UTC-8) Los Angeles',\n 'Europe/London': '(UTC+0) London',\n 'UTC': '(UTC+0) UTC',\n};\n\nconst dateFnsLocales: Record<SupportedLanguage, Locale> = {\n vi: viLocale,\n en: enUS,\n ja: jaLocale,\n};\n\nconst dateFormatPatterns: Record<SupportedLanguage, string> = {\n vi: 'dd/MM/yyyy',\n en: 'MM/dd/yyyy',\n ja: 'yyyy/MM/dd',\n};\n\nconst dateTimeFormatPatterns: Record<SupportedLanguage, string> = {\n vi: 'dd/MM/yyyy HH:mm',\n en: 'MM/dd/yyyy HH:mm',\n ja: 'yyyy/MM/dd HH:mm',\n};\n\nconst shortDatePatterns: Record<SupportedLanguage, string> = {\n vi: 'dd/MM',\n en: 'MM/dd',\n ja: 'MM/dd',\n};\n\nconst localeTags: Record<SupportedLanguage, string> = {\n vi: 'vi-VN',\n en: 'en-US',\n ja: 'ja-JP',\n};\n\nfunction toDate(d: Date | string): Date {\n return typeof d === 'string' ? new Date(d) : d;\n}\n\nfunction loadSavedTimezone(): SupportedTimezone {\n if (typeof window === 'undefined') return 'Asia/Ho_Chi_Minh';\n const saved = localStorage.getItem('omnify_timezone');\n if (saved && saved in timezoneLabels) return saved as SupportedTimezone;\n return 'Asia/Ho_Chi_Minh';\n}\n\n/**\n * Hook that provides date formatting utilities.\n * Reads the current language from i18next automatically.\n */\nexport function useDateFormat() {\n const { i18n } = useTranslation();\n const language = (i18n.language || 'vi') as SupportedLanguage;\n const locale = dateFnsLocales[language] || viLocale;\n\n const [timezone, setTimezoneState] = useState<SupportedTimezone>(() => loadSavedTimezone());\n\n const setTimezone = useCallback((tz: SupportedTimezone) => {\n localStorage.setItem('omnify_timezone', tz);\n setTimezoneState(tz);\n }, []);\n\n const setLanguage = useCallback((lang: SupportedLanguage) => {\n changeLanguage(lang);\n }, []);\n\n const formatDate = useCallback(\n (date: Date | string): string => {\n return format(toDate(date), dateFormatPatterns[language] || 'dd/MM/yyyy', { locale });\n },\n [language, locale]\n );\n\n const formatDateTime = useCallback(\n (date: Date | string): string => {\n return format(toDate(date), dateTimeFormatPatterns[language] || 'dd/MM/yyyy HH:mm', { locale });\n },\n [language, locale]\n );\n\n const formatRelativeTime = useCallback(\n (date: Date | string): string => {\n return formatDistanceToNow(toDate(date), { addSuffix: true, locale });\n },\n [locale]\n );\n\n const formatShortDate = useCallback(\n (date: Date | string): string => {\n return format(toDate(date), shortDatePatterns[language] || 'dd/MM', { locale });\n },\n [language, locale]\n );\n\n const formatMonthYear = useCallback(\n (date: Date | string): string => {\n return format(toDate(date), 'MMMM yyyy', { locale });\n },\n [locale]\n );\n\n const formatDayOfWeek = useCallback(\n (date: Date | string): string => {\n return format(toDate(date), 'EEE', { locale });\n },\n [locale]\n );\n\n const formatDateLong = useCallback(\n (date: Date | string): string => {\n return format(toDate(date), 'PPP', { locale });\n },\n [locale]\n );\n\n return {\n language,\n timezone,\n setLanguage,\n setTimezone,\n formatDate,\n formatDateTime,\n formatRelativeTime,\n formatShortDate,\n formatMonthYear,\n formatDayOfWeek,\n formatDateLong,\n dateFnsLocale: locale,\n localeTag: localeTags[language] || 'vi-VN',\n languageNames: { vi: 'Tiếng Việt', en: 'English', ja: '日本語' } as Record<SupportedLanguage, string>,\n };\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ShellConfig } from '../types.js';
|
|
4
|
+
import 'lucide-react';
|
|
5
|
+
|
|
6
|
+
interface AppShellProps {
|
|
7
|
+
config: ShellConfig;
|
|
8
|
+
/** Extra content to render alongside the main content (e.g., ChatWidget) */
|
|
9
|
+
extra?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The main application shell.
|
|
13
|
+
* Use as a route layout element in React Router:
|
|
14
|
+
*
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const router = createBrowserRouter([{
|
|
17
|
+
* path: '/',
|
|
18
|
+
* element: <AppShell config={config} />,
|
|
19
|
+
* children: [
|
|
20
|
+
* { index: true, element: <Dashboard /> },
|
|
21
|
+
* ],
|
|
22
|
+
* }]);
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare function AppShell({ config, extra }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
export { AppShell };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { AppShell } from '../chunk-JXFBHSPN.js';
|
|
2
|
+
import '../chunk-EJEVW4RO.js';
|
|
3
|
+
import '../chunk-OY3PSPA5.js';
|
|
4
|
+
import '../chunk-X57K24P3.js';
|
|
5
|
+
import '../chunk-5D3OAVOZ.js';
|
|
6
|
+
import '../chunk-5BL4VFRJ.js';
|
|
7
|
+
import '../chunk-DTM76EJD.js';
|
|
8
|
+
import '../chunk-2ZIFL2X3.js';
|
|
9
|
+
import '../chunk-SHHZRZMM.js';
|
|
10
|
+
//# sourceMappingURL=AppShell.js.map
|
|
11
|
+
//# sourceMappingURL=AppShell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"AppShell.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ShellConfig } from '../types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'lucide-react';
|
|
5
|
+
|
|
6
|
+
interface HeaderProps {
|
|
7
|
+
config: ShellConfig;
|
|
8
|
+
}
|
|
9
|
+
declare function Header({ config }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { Header };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"Header.js"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface OrganizationSelectorProps {
|
|
4
|
+
variant?: 'header' | 'sidebar';
|
|
5
|
+
}
|
|
6
|
+
declare function OrganizationSelector({ variant }: OrganizationSelectorProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { OrganizationSelector };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"OrganizationSelector.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"OrganizationSetupModal.js"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface PageContainerProps {
|
|
5
|
+
/**
|
|
6
|
+
* Page title
|
|
7
|
+
*/
|
|
8
|
+
title?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Subtitle or description below title
|
|
11
|
+
*/
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Extra content (buttons, actions) displayed on the right side of header
|
|
15
|
+
*/
|
|
16
|
+
extra?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Main page content
|
|
19
|
+
*/
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Footer content displayed at the bottom
|
|
23
|
+
*/
|
|
24
|
+
footer?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Sidebar content displayed on left or right
|
|
27
|
+
*/
|
|
28
|
+
sidebar?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Sidebar position
|
|
31
|
+
* @default 'right'
|
|
32
|
+
*/
|
|
33
|
+
sidebarPosition?: 'left' | 'right';
|
|
34
|
+
/**
|
|
35
|
+
* Sidebar width
|
|
36
|
+
* @default 'w-80'
|
|
37
|
+
*/
|
|
38
|
+
sidebarWidth?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Layout variant
|
|
41
|
+
* - 'standard': Default padded layout with header
|
|
42
|
+
* - 'full': Full width, no padding (for boards, gantt)
|
|
43
|
+
* - 'split': Layout with sidebar inside page
|
|
44
|
+
* @default 'standard'
|
|
45
|
+
*/
|
|
46
|
+
variant?: 'standard' | 'full' | 'split';
|
|
47
|
+
/**
|
|
48
|
+
* Custom container className
|
|
49
|
+
*/
|
|
50
|
+
className?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Custom content className
|
|
53
|
+
*/
|
|
54
|
+
contentClassName?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Show separator below header
|
|
57
|
+
* @default true for standard variant
|
|
58
|
+
*/
|
|
59
|
+
showHeaderSeparator?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* PageContainer - Flexible page layout component
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* // Standard layout with title and actions
|
|
66
|
+
* <PageContainer
|
|
67
|
+
* title="Dashboard"
|
|
68
|
+
* subtitle="Overview of all projects"
|
|
69
|
+
* extra={<Button>Create</Button>}
|
|
70
|
+
* >
|
|
71
|
+
* <div>Content here</div>
|
|
72
|
+
* </PageContainer>
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* // Split layout with right sidebar
|
|
76
|
+
* <PageContainer
|
|
77
|
+
* title="Task Detail"
|
|
78
|
+
* variant="split"
|
|
79
|
+
* sidebar={<CommentSection />}
|
|
80
|
+
* sidebarPosition="right"
|
|
81
|
+
* >
|
|
82
|
+
* <div>Main content</div>
|
|
83
|
+
* </PageContainer>
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* // Full width layout (no padding)
|
|
87
|
+
* <PageContainer variant="full">
|
|
88
|
+
* <KanbanBoard />
|
|
89
|
+
* </PageContainer>
|
|
90
|
+
*/
|
|
91
|
+
declare function PageContainer({ title, subtitle, extra, children, footer, sidebar, sidebarPosition, sidebarWidth, variant, className, contentClassName, showHeaderSeparator, }: PageContainerProps): react_jsx_runtime.JSX.Element;
|
|
92
|
+
/**
|
|
93
|
+
* Convenience wrapper for standard layout
|
|
94
|
+
*/
|
|
95
|
+
declare function StandardPageContainer(props: Omit<PageContainerProps, 'variant'>): react_jsx_runtime.JSX.Element;
|
|
96
|
+
/**
|
|
97
|
+
* Convenience wrapper for split layout with sidebar
|
|
98
|
+
*/
|
|
99
|
+
declare function SplitPageContainer(props: Omit<PageContainerProps, 'variant'>): react_jsx_runtime.JSX.Element;
|
|
100
|
+
/**
|
|
101
|
+
* Convenience wrapper for full width layout
|
|
102
|
+
*/
|
|
103
|
+
declare function FullWidthPageContainer(props: Omit<PageContainerProps, 'variant' | 'title' | 'subtitle' | 'extra'>): react_jsx_runtime.JSX.Element;
|
|
104
|
+
|
|
105
|
+
export { FullWidthPageContainer, PageContainer, type PageContainerProps, SplitPageContainer, StandardPageContainer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"PageContainer.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ServiceCategory } from '../types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'lucide-react';
|
|
5
|
+
|
|
6
|
+
interface ServiceMenuProps {
|
|
7
|
+
categories: ServiceCategory[];
|
|
8
|
+
}
|
|
9
|
+
declare function ServiceMenu({ categories }: ServiceMenuProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { ServiceMenu };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ServiceMenu.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ShellConfig } from '../types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'lucide-react';
|
|
5
|
+
|
|
6
|
+
interface SidebarProps {
|
|
7
|
+
config: ShellConfig;
|
|
8
|
+
}
|
|
9
|
+
declare function Sidebar({ config }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { Sidebar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"Sidebar.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { Organization, Branch } from '../types.js';
|
|
4
|
+
import 'lucide-react';
|
|
5
|
+
|
|
6
|
+
interface OrganizationContextType {
|
|
7
|
+
organizations: Organization[];
|
|
8
|
+
branches: Branch[];
|
|
9
|
+
selectedOrganization: Organization | null;
|
|
10
|
+
selectedBranch: Branch | null;
|
|
11
|
+
setSelectedOrganization: (org: Organization | null) => void;
|
|
12
|
+
setSelectedBranch: (branch: Branch | null) => void;
|
|
13
|
+
getBranchesByOrg: (orgId: string) => Branch[];
|
|
14
|
+
isSetupComplete: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface OrganizationProviderProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
organizations?: Organization[];
|
|
19
|
+
branches?: Branch[];
|
|
20
|
+
onOrganizationChange?: (org: Organization) => void;
|
|
21
|
+
onBranchChange?: (branch: Branch) => void;
|
|
22
|
+
}
|
|
23
|
+
declare function OrganizationProvider({ children, organizations, branches, onOrganizationChange, onBranchChange, }: OrganizationProviderProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function useOrganization(): OrganizationContextType;
|
|
25
|
+
|
|
26
|
+
export { OrganizationProvider, useOrganization };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"OrganizationContext.js"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type Theme = 'light' | 'dark' | 'system';
|
|
5
|
+
interface ThemeContextType {
|
|
6
|
+
theme: Theme;
|
|
7
|
+
setTheme: (theme: Theme) => void;
|
|
8
|
+
}
|
|
9
|
+
declare function ThemeProvider({ children }: {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function useTheme(): ThemeContextType;
|
|
13
|
+
|
|
14
|
+
export { type Theme, ThemeProvider, useTheme };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ThemeContext.js"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Locale } from 'date-fns';
|
|
2
|
+
import { SupportedLanguage } from '../i18n.js';
|
|
3
|
+
import 'i18next';
|
|
4
|
+
|
|
5
|
+
type SupportedTimezone = 'Asia/Ho_Chi_Minh' | 'Asia/Tokyo' | 'America/New_York' | 'America/Los_Angeles' | 'Europe/London' | 'UTC';
|
|
6
|
+
declare const timezoneLabels: Record<SupportedTimezone, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Hook that provides date formatting utilities.
|
|
9
|
+
* Reads the current language from i18next automatically.
|
|
10
|
+
*/
|
|
11
|
+
declare function useDateFormat(): {
|
|
12
|
+
language: SupportedLanguage;
|
|
13
|
+
timezone: SupportedTimezone;
|
|
14
|
+
setLanguage: (lang: SupportedLanguage) => void;
|
|
15
|
+
setTimezone: (tz: SupportedTimezone) => void;
|
|
16
|
+
formatDate: (date: Date | string) => string;
|
|
17
|
+
formatDateTime: (date: Date | string) => string;
|
|
18
|
+
formatRelativeTime: (date: Date | string) => string;
|
|
19
|
+
formatShortDate: (date: Date | string) => string;
|
|
20
|
+
formatMonthYear: (date: Date | string) => string;
|
|
21
|
+
formatDayOfWeek: (date: Date | string) => string;
|
|
22
|
+
formatDateLong: (date: Date | string) => string;
|
|
23
|
+
dateFnsLocale: Locale;
|
|
24
|
+
localeTag: string;
|
|
25
|
+
languageNames: Record<SupportedLanguage, string>;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { type SupportedTimezone, timezoneLabels, useDateFormat };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"useDateFormat.js"}
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as i18next from 'i18next';
|
|
2
|
+
import i18next__default from 'i18next';
|
|
3
|
+
export { default, default as i18n } from 'i18next';
|
|
4
|
+
|
|
5
|
+
type SupportedLanguage = 'vi' | 'en' | 'ja';
|
|
6
|
+
declare const languageNames: Record<SupportedLanguage, string>;
|
|
7
|
+
interface InitOmnifyI18nOptions {
|
|
8
|
+
/** Add service-specific namespace translations */
|
|
9
|
+
namespaces?: Record<string, Record<string, Record<string, unknown>>>;
|
|
10
|
+
/** Override shell translation keys */
|
|
11
|
+
overrides?: Record<string, Record<string, string>>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Initialize Omnify i18n for a service.
|
|
15
|
+
* Call this once in your service's entry point.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { initOmnifyI18n } from '@omnifyjp/ui';
|
|
20
|
+
* import pmVi from './locales/vi.json';
|
|
21
|
+
* import pmEn from './locales/en.json';
|
|
22
|
+
*
|
|
23
|
+
* initOmnifyI18n({
|
|
24
|
+
* namespaces: { pm: { vi: pmVi, en: pmEn } },
|
|
25
|
+
* overrides: {
|
|
26
|
+
* vi: { 'common.save': 'Lưu hồ sơ' },
|
|
27
|
+
* }
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare function initOmnifyI18n(options?: InitOmnifyI18nOptions): void;
|
|
32
|
+
/**
|
|
33
|
+
* Change the current language.
|
|
34
|
+
* Persists to localStorage and updates i18next.
|
|
35
|
+
*/
|
|
36
|
+
declare function changeLanguage(lang: SupportedLanguage): Promise<i18next.TFunction<"translation", undefined>>;
|
|
37
|
+
|
|
38
|
+
export { type InitOmnifyI18nOptions, type SupportedLanguage, changeLanguage, initOmnifyI18n, languageNames };
|
package/dist/i18n.js
ADDED
package/dist/i18n.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.js"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,113 +1,17 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/collapsible.js';
|
|
15
|
-
export { ColorPicker } from './components/color-picker.js';
|
|
16
|
-
export { Combobox, ComboboxOption, MultiCombobox } from './components/combobox.js';
|
|
17
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './components/command.js';
|
|
18
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './components/context-menu.js';
|
|
19
|
-
export { DatePicker, DateRangePicker } from './components/date-picker.js';
|
|
20
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './components/dialog.js';
|
|
21
|
-
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './components/drawer.js';
|
|
22
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/dropdown-menu.js';
|
|
23
|
-
export { FileUpload } from './components/file-upload.js';
|
|
24
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from './components/form.js';
|
|
25
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/hover-card.js';
|
|
26
|
-
export { Input, InputProps, inputVariants } from './components/input.js';
|
|
27
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from './components/input-otp.js';
|
|
28
|
-
export { PasswordInput, PasswordInputProps } from './components/password-input.js';
|
|
29
|
-
export { Label, LabelProps } from './components/label.js';
|
|
30
|
-
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from './components/menubar.js';
|
|
31
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from './components/navigation-menu.js';
|
|
32
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from './components/pagination.js';
|
|
33
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/popover.js';
|
|
34
|
-
export { Progress, ProgressProps } from './components/progress.js';
|
|
35
|
-
export { RadioGroup, RadioGroupItem, RadioGroupItemProps, RadioGroupProps } from './components/radio-group.js';
|
|
36
|
-
export { Rating } from './components/rating.js';
|
|
37
|
-
export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './components/resizable.js';
|
|
38
|
-
export { ScrollArea, ScrollBar } from './components/scroll-area.js';
|
|
39
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './components/select.js';
|
|
40
|
-
export { Separator, SeparatorProps } from './components/separator.js';
|
|
41
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from './components/sheet.js';
|
|
42
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from './components/sidebar.js';
|
|
43
|
-
export { Skeleton, SkeletonProps } from './components/skeleton.js';
|
|
44
|
-
export { Slider, SliderProps } from './components/slider.js';
|
|
45
|
-
export { Toaster } from './components/sonner.js';
|
|
46
|
-
export { Switch, SwitchProps } from './components/switch.js';
|
|
47
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './components/table.js';
|
|
48
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/tabs.js';
|
|
49
|
-
export { TagInput } from './components/tag-input.js';
|
|
50
|
-
export { Textarea, TextareaProps } from './components/textarea.js';
|
|
51
|
-
export { TimeInput, TimePicker } from './components/time-picker.js';
|
|
52
|
-
export { Toggle, ToggleProps, toggleVariants } from './components/toggle.js';
|
|
53
|
-
export { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps } from './components/toggle-group.js';
|
|
54
|
-
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/tooltip.js';
|
|
55
|
-
export { CalendarCategory, CalendarMini, CalendarMiniLabels, CalendarMiniProps } from './components/calendar-mini.js';
|
|
56
|
-
export { CalendarEventChip, CalendarEventChipEvent, CalendarEventChipProps } from './components/calendar-event-chip.js';
|
|
57
|
-
export { CalendarEventSheet, CalendarEventSheetEvent, CalendarEventSheetLabels, CalendarEventSheetProps } from './components/calendar-event-sheet.js';
|
|
58
|
-
export { CalendarToolbar, CalendarToolbarLabels, CalendarToolbarProps, CalendarView } from './components/calendar-toolbar.js';
|
|
59
|
-
export { CalendarCategoryBadge, CalendarCategoryBadgeProps } from './components/calendar-category-badge.js';
|
|
60
|
-
export { WorkflowStepper, WorkflowStepperHistoryEntry, WorkflowStepperProps, WorkflowStepperStage } from './components/workflow-stepper.js';
|
|
61
|
-
export { WorkflowDiagram, WorkflowDiagramLabels, WorkflowDiagramProps, WorkflowDiagramStage, WorkflowDiagramStageType } from './components/workflow-diagram.js';
|
|
62
|
-
export { WorkflowStatus, WorkflowStatusBadge, WorkflowStatusBadgeProps } from './components/workflow-status-badge.js';
|
|
63
|
-
export { WorkflowCategory, WorkflowCategoryBadge, WorkflowCategoryBadgeProps } from './components/workflow-category-badge.js';
|
|
64
|
-
export { StageType, StageTypeBadge, StageTypeBadgeProps } from './components/stage-type-badge.js';
|
|
65
|
-
export { PermissionDefinition, PermissionGrid, PermissionGridLabels, PermissionGridProps, PermissionModule, buildPermissionId } from './components/permission-grid.js';
|
|
66
|
-
export { ScopeTree, ScopeTreeBadge, ScopeTreeLabels, ScopeTreeNode, ScopeTreeProps, ScopeTreeSelectedScope } from './components/scope-tree.js';
|
|
67
|
-
export { ScopeTypeBadge, ScopeTypeBadgeProps, ScopeTypeBadgeStyles } from './components/scope-type-badge.js';
|
|
68
|
-
export { SlugInput, SlugInputLabels, SlugInputProps, generateSlug } from './components/slug-input.js';
|
|
69
|
-
export { U as UIColor, a as UISize, b as UIVariant } from './types-CBVkScfB.js';
|
|
70
|
-
export { cn } from './lib/utils.js';
|
|
71
|
-
export { useIsMobile } from './hooks/use-mobile.js';
|
|
1
|
+
export { AppShell } from './components/AppShell.js';
|
|
2
|
+
export { Sidebar } from './components/Sidebar.js';
|
|
3
|
+
export { Header } from './components/Header.js';
|
|
4
|
+
export { ServiceMenu } from './components/ServiceMenu.js';
|
|
5
|
+
export { OrganizationSelector } from './components/OrganizationSelector.js';
|
|
6
|
+
export { OrganizationSetupModal } from './components/OrganizationSetupModal.js';
|
|
7
|
+
export { FullWidthPageContainer, PageContainer, PageContainerProps, SplitPageContainer, StandardPageContainer } from './components/PageContainer.js';
|
|
8
|
+
export { Theme, ThemeProvider, useTheme } from './contexts/ThemeContext.js';
|
|
9
|
+
export { OrganizationProvider, useOrganization } from './contexts/OrganizationContext.js';
|
|
10
|
+
export { InitOmnifyI18nOptions, SupportedLanguage, changeLanguage, initOmnifyI18n, languageNames } from './i18n.js';
|
|
11
|
+
export { SupportedTimezone, timezoneLabels, useDateFormat } from './hooks/useDateFormat.js';
|
|
12
|
+
export { Branch, Organization, ServiceCategory, ServiceItem, ShellConfig, SidebarMenuItem } from './types.js';
|
|
13
|
+
export { default as i18n } from 'i18next';
|
|
72
14
|
import 'react/jsx-runtime';
|
|
73
15
|
import 'react';
|
|
74
|
-
import '@radix-ui/react-accordion';
|
|
75
|
-
import 'class-variance-authority/types';
|
|
76
|
-
import 'class-variance-authority';
|
|
77
|
-
import '@radix-ui/react-alert-dialog';
|
|
78
|
-
import '@radix-ui/react-aspect-ratio';
|
|
79
|
-
import '@radix-ui/react-avatar';
|
|
80
|
-
import 'react-day-picker';
|
|
81
|
-
import 'embla-carousel-react';
|
|
82
|
-
import 'recharts';
|
|
83
|
-
import '@radix-ui/react-checkbox';
|
|
84
|
-
import '@radix-ui/react-collapsible';
|
|
85
|
-
import 'cmdk';
|
|
86
|
-
import '@radix-ui/react-context-menu';
|
|
87
16
|
import 'date-fns';
|
|
88
|
-
import '@radix-ui/react-dialog';
|
|
89
|
-
import 'vaul';
|
|
90
|
-
import '@radix-ui/react-dropdown-menu';
|
|
91
|
-
import 'react-hook-form';
|
|
92
|
-
import '@radix-ui/react-label';
|
|
93
|
-
import '@radix-ui/react-slot';
|
|
94
|
-
import '@radix-ui/react-hover-card';
|
|
95
|
-
import 'input-otp';
|
|
96
|
-
import '@radix-ui/react-menubar';
|
|
97
|
-
import '@radix-ui/react-navigation-menu';
|
|
98
|
-
import '@radix-ui/react-popover';
|
|
99
|
-
import '@radix-ui/react-progress';
|
|
100
|
-
import '@radix-ui/react-radio-group';
|
|
101
|
-
import 'react-resizable-panels';
|
|
102
|
-
import '@radix-ui/react-scroll-area';
|
|
103
|
-
import '@radix-ui/react-select';
|
|
104
|
-
import '@radix-ui/react-separator';
|
|
105
|
-
import '@radix-ui/react-slider';
|
|
106
|
-
import 'sonner';
|
|
107
|
-
import '@radix-ui/react-switch';
|
|
108
|
-
import '@radix-ui/react-tabs';
|
|
109
|
-
import '@radix-ui/react-toggle';
|
|
110
|
-
import '@radix-ui/react-toggle-group';
|
|
111
|
-
import '@radix-ui/react-tooltip';
|
|
112
17
|
import 'lucide-react';
|
|
113
|
-
import 'clsx';
|