@omnifyjp/ui 0.4.5 → 0.5.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 +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-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-RSCXIS4D.js +37 -0
- package/dist/chunk-RSCXIS4D.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/components/accordion.d.ts +70 -37
- package/dist/components/accordion.js +1 -2
- package/dist/components/accordion.js.map +1 -1
- package/dist/components/alert-dialog.d.ts +1 -56
- package/dist/components/alert-dialog.js +1 -3
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.d.ts +1 -68
- package/dist/components/alert.js +1 -2
- package/dist/components/alert.js.map +1 -1
- package/dist/components/aspect-ratio.d.ts +1 -23
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio.js.map +1 -1
- package/dist/components/avatar.d.ts +1 -48
- package/dist/components/avatar.js +1 -2
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.d.ts +1 -52
- package/dist/components/badge.js +1 -2
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.d.ts +1 -50
- package/dist/components/breadcrumb.js +1 -2
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.d.ts +1 -81
- package/dist/components/button.js +1 -2
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-category-badge.d.ts +1 -24
- package/dist/components/calendar-category-badge.js +1 -3
- package/dist/components/calendar-category-badge.js.map +1 -1
- package/dist/components/calendar-event-chip.d.ts +1 -41
- package/dist/components/calendar-event-chip.js +1 -2
- package/dist/components/calendar-event-chip.js.map +1 -1
- package/dist/components/calendar-event-sheet.d.ts +1 -68
- package/dist/components/calendar-event-sheet.js +1 -7
- package/dist/components/calendar-event-sheet.js.map +1 -1
- package/dist/components/calendar-mini.d.ts +1 -65
- package/dist/components/calendar-mini.js +1 -4
- package/dist/components/calendar-mini.js.map +1 -1
- package/dist/components/calendar-toolbar.d.ts +1 -58
- package/dist/components/calendar-toolbar.js +1 -5
- package/dist/components/calendar-toolbar.js.map +1 -1
- package/dist/components/calendar.d.ts +1 -19
- package/dist/components/calendar.js +1 -3
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/card.d.ts +1 -43
- package/dist/components/card.js +1 -2
- package/dist/components/card.js.map +1 -1
- package/dist/components/carousel.d.ts +1 -53
- package/dist/components/carousel.js +1 -3
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/chart.d.ts +1 -103
- package/dist/components/chart.js +1 -2
- package/dist/components/chart.js.map +1 -1
- package/dist/components/checkbox.d.ts +1 -24
- package/dist/components/checkbox.js +1 -2
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.d.ts +1 -28
- package/dist/components/collapsible.js +1 -1
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/color-picker.d.ts +1 -35
- package/dist/components/color-picker.js +1 -5
- package/dist/components/color-picker.js.map +1 -1
- package/dist/components/combobox.d.ts +1 -98
- package/dist/components/combobox.js +1 -6
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.d.ts +1 -63
- package/dist/components/command.js +1 -3
- package/dist/components/command.js.map +1 -1
- package/dist/components/context-menu.d.ts +1 -70
- package/dist/components/context-menu.js +1 -2
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/date-picker.d.ts +1 -71
- package/dist/components/date-picker.js +1 -5
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/dialog.d.ts +1 -58
- package/dist/components/dialog.js +1 -2
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/drawer.d.ts +1 -60
- package/dist/components/drawer.js +1 -2
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.d.ts +1 -76
- package/dist/components/dropdown-menu.js +1 -2
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/file-upload.d.ts +1 -44
- package/dist/components/file-upload.js +1 -3
- package/dist/components/file-upload.js.map +1 -1
- package/dist/components/form.d.ts +1 -67
- package/dist/components/form.js +1 -3
- package/dist/components/form.js.map +1 -1
- package/dist/components/hover-card.d.ts +1 -43
- package/dist/components/hover-card.js +1 -2
- package/dist/components/hover-card.js.map +1 -1
- package/dist/components/input-otp.d.ts +1 -38
- package/dist/components/input-otp.js +1 -2
- package/dist/components/input-otp.js.map +1 -1
- package/dist/components/input.d.ts +1 -38
- package/dist/components/input.js +1 -2
- package/dist/components/input.js.map +1 -1
- package/dist/components/label.d.ts +1 -20
- package/dist/components/label.js +1 -2
- package/dist/components/label.js.map +1 -1
- package/dist/components/menubar.d.ts +1 -82
- package/dist/components/menubar.js +1 -2
- package/dist/components/menubar.js.map +1 -1
- package/dist/components/navigation-menu.d.ts +1 -64
- package/dist/components/navigation-menu.js +1 -2
- package/dist/components/navigation-menu.js.map +1 -1
- package/dist/components/pagination.d.ts +1 -59
- package/dist/components/pagination.js +1 -3
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/password-input.d.ts +1 -32
- package/dist/components/password-input.js +1 -3
- package/dist/components/password-input.js.map +1 -1
- package/dist/components/permission-grid.d.ts +1 -67
- package/dist/components/permission-grid.js +1 -3
- package/dist/components/permission-grid.js.map +1 -1
- package/dist/components/popover.d.ts +1 -37
- package/dist/components/popover.js +1 -2
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress.d.ts +1 -20
- package/dist/components/progress.js +1 -2
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio-group.d.ts +1 -38
- package/dist/components/radio-group.js +1 -2
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/rating.d.ts +1 -35
- package/dist/components/rating.js +1 -2
- package/dist/components/rating.js.map +1 -1
- package/dist/components/resizable.d.ts +1 -36
- package/dist/components/resizable.js +1 -2
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/scope-tree.d.ts +1 -78
- package/dist/components/scope-tree.js +1 -3
- package/dist/components/scope-tree.js.map +1 -1
- package/dist/components/scope-type-badge.d.ts +1 -35
- package/dist/components/scope-type-badge.js +1 -3
- package/dist/components/scope-type-badge.js.map +1 -1
- package/dist/components/scroll-area.d.ts +1 -29
- package/dist/components/scroll-area.js +1 -2
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.d.ts +1 -52
- package/dist/components/select.js +1 -2
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.d.ts +1 -24
- package/dist/components/separator.js +1 -2
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.d.ts +1 -51
- package/dist/components/sheet.js +1 -2
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/skeleton.d.ts +1 -25
- package/dist/components/skeleton.js +1 -2
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/slider.d.ts +1 -24
- package/dist/components/slider.js +1 -2
- package/dist/components/slider.js.map +1 -1
- package/dist/components/slug-input.d.ts +1 -50
- package/dist/components/slug-input.js +1 -4
- package/dist/components/slug-input.js.map +1 -1
- package/dist/components/sonner.d.ts +1 -22
- package/dist/components/sonner.js +1 -1
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/stage-type-badge.d.ts +1 -30
- package/dist/components/stage-type-badge.js +1 -3
- package/dist/components/stage-type-badge.js.map +1 -1
- package/dist/components/switch.d.ts +1 -26
- package/dist/components/switch.js +1 -2
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.d.ts +1 -57
- package/dist/components/table.js +1 -2
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.d.ts +1 -39
- package/dist/components/tabs.js +1 -2
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tag-input.d.ts +1 -40
- package/dist/components/tag-input.js +1 -3
- package/dist/components/tag-input.js.map +1 -1
- package/dist/components/textarea.d.ts +1 -21
- package/dist/components/textarea.js +1 -2
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/time-picker.d.ts +1 -57
- package/dist/components/time-picker.js +1 -6
- package/dist/components/time-picker.js.map +1 -1
- package/dist/components/toggle-group.d.ts +1 -45
- package/dist/components/toggle-group.js +1 -3
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/toggle.d.ts +1 -31
- package/dist/components/toggle.js +1 -2
- package/dist/components/toggle.js.map +1 -1
- package/dist/components/tooltip.d.ts +1 -34
- package/dist/components/tooltip.js +1 -2
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/workflow-category-badge.d.ts +1 -32
- package/dist/components/workflow-category-badge.js +1 -3
- package/dist/components/workflow-category-badge.js.map +1 -1
- package/dist/components/workflow-diagram.d.ts +1 -63
- package/dist/components/workflow-diagram.js +1 -3
- package/dist/components/workflow-diagram.js.map +1 -1
- package/dist/components/workflow-status-badge.d.ts +1 -30
- package/dist/components/workflow-status-badge.js +1 -3
- package/dist/components/workflow-status-badge.js.map +1 -1
- package/dist/components/workflow-stepper.d.ts +1 -52
- package/dist/components/workflow-stepper.js +1 -2
- package/dist/components/workflow-stepper.js.map +1 -1
- 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/use-mobile.d.ts +1 -3
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mobile.js.map +1 -1
- 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/lib/types.d.ts +1 -0
- package/dist/lib/types.js +3 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/utils.d.ts +1 -5
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/types.d.ts +89 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +31 -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/sidebar.d.ts +0 -169
- package/dist/components/sidebar.js +0 -11
- package/dist/components/sidebar.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,123 @@
|
|
|
1
|
+
import { changeLanguage } from './chunk-OY3PSPA5.js';
|
|
2
|
+
import { useState, useCallback } from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { format, formatDistanceToNow } from 'date-fns';
|
|
5
|
+
import { ja, enUS, vi } from 'date-fns/locale';
|
|
6
|
+
|
|
7
|
+
var timezoneLabels = {
|
|
8
|
+
"Asia/Ho_Chi_Minh": "(UTC+7) Ho Chi Minh",
|
|
9
|
+
"Asia/Tokyo": "(UTC+9) Tokyo",
|
|
10
|
+
"America/New_York": "(UTC-5) New York",
|
|
11
|
+
"America/Los_Angeles": "(UTC-8) Los Angeles",
|
|
12
|
+
"Europe/London": "(UTC+0) London",
|
|
13
|
+
"UTC": "(UTC+0) UTC"
|
|
14
|
+
};
|
|
15
|
+
var dateFnsLocales = {
|
|
16
|
+
vi: vi,
|
|
17
|
+
en: enUS,
|
|
18
|
+
ja: ja
|
|
19
|
+
};
|
|
20
|
+
var dateFormatPatterns = {
|
|
21
|
+
vi: "dd/MM/yyyy",
|
|
22
|
+
en: "MM/dd/yyyy",
|
|
23
|
+
ja: "yyyy/MM/dd"
|
|
24
|
+
};
|
|
25
|
+
var dateTimeFormatPatterns = {
|
|
26
|
+
vi: "dd/MM/yyyy HH:mm",
|
|
27
|
+
en: "MM/dd/yyyy HH:mm",
|
|
28
|
+
ja: "yyyy/MM/dd HH:mm"
|
|
29
|
+
};
|
|
30
|
+
var shortDatePatterns = {
|
|
31
|
+
vi: "dd/MM",
|
|
32
|
+
en: "MM/dd",
|
|
33
|
+
ja: "MM/dd"
|
|
34
|
+
};
|
|
35
|
+
var localeTags = {
|
|
36
|
+
vi: "vi-VN",
|
|
37
|
+
en: "en-US",
|
|
38
|
+
ja: "ja-JP"
|
|
39
|
+
};
|
|
40
|
+
function toDate(d) {
|
|
41
|
+
return typeof d === "string" ? new Date(d) : d;
|
|
42
|
+
}
|
|
43
|
+
function loadSavedTimezone() {
|
|
44
|
+
if (typeof window === "undefined") return "Asia/Ho_Chi_Minh";
|
|
45
|
+
const saved = localStorage.getItem("omnify_timezone");
|
|
46
|
+
if (saved && saved in timezoneLabels) return saved;
|
|
47
|
+
return "Asia/Ho_Chi_Minh";
|
|
48
|
+
}
|
|
49
|
+
function useDateFormat() {
|
|
50
|
+
const { i18n } = useTranslation();
|
|
51
|
+
const language = i18n.language || "vi";
|
|
52
|
+
const locale = dateFnsLocales[language] || vi;
|
|
53
|
+
const [timezone, setTimezoneState] = useState(() => loadSavedTimezone());
|
|
54
|
+
const setTimezone = useCallback((tz) => {
|
|
55
|
+
localStorage.setItem("omnify_timezone", tz);
|
|
56
|
+
setTimezoneState(tz);
|
|
57
|
+
}, []);
|
|
58
|
+
const setLanguage = useCallback((lang) => {
|
|
59
|
+
changeLanguage(lang);
|
|
60
|
+
}, []);
|
|
61
|
+
const formatDate = useCallback(
|
|
62
|
+
(date) => {
|
|
63
|
+
return format(toDate(date), dateFormatPatterns[language] || "dd/MM/yyyy", { locale });
|
|
64
|
+
},
|
|
65
|
+
[language, locale]
|
|
66
|
+
);
|
|
67
|
+
const formatDateTime = useCallback(
|
|
68
|
+
(date) => {
|
|
69
|
+
return format(toDate(date), dateTimeFormatPatterns[language] || "dd/MM/yyyy HH:mm", { locale });
|
|
70
|
+
},
|
|
71
|
+
[language, locale]
|
|
72
|
+
);
|
|
73
|
+
const formatRelativeTime = useCallback(
|
|
74
|
+
(date) => {
|
|
75
|
+
return formatDistanceToNow(toDate(date), { addSuffix: true, locale });
|
|
76
|
+
},
|
|
77
|
+
[locale]
|
|
78
|
+
);
|
|
79
|
+
const formatShortDate = useCallback(
|
|
80
|
+
(date) => {
|
|
81
|
+
return format(toDate(date), shortDatePatterns[language] || "dd/MM", { locale });
|
|
82
|
+
},
|
|
83
|
+
[language, locale]
|
|
84
|
+
);
|
|
85
|
+
const formatMonthYear = useCallback(
|
|
86
|
+
(date) => {
|
|
87
|
+
return format(toDate(date), "MMMM yyyy", { locale });
|
|
88
|
+
},
|
|
89
|
+
[locale]
|
|
90
|
+
);
|
|
91
|
+
const formatDayOfWeek = useCallback(
|
|
92
|
+
(date) => {
|
|
93
|
+
return format(toDate(date), "EEE", { locale });
|
|
94
|
+
},
|
|
95
|
+
[locale]
|
|
96
|
+
);
|
|
97
|
+
const formatDateLong = useCallback(
|
|
98
|
+
(date) => {
|
|
99
|
+
return format(toDate(date), "PPP", { locale });
|
|
100
|
+
},
|
|
101
|
+
[locale]
|
|
102
|
+
);
|
|
103
|
+
return {
|
|
104
|
+
language,
|
|
105
|
+
timezone,
|
|
106
|
+
setLanguage,
|
|
107
|
+
setTimezone,
|
|
108
|
+
formatDate,
|
|
109
|
+
formatDateTime,
|
|
110
|
+
formatRelativeTime,
|
|
111
|
+
formatShortDate,
|
|
112
|
+
formatMonthYear,
|
|
113
|
+
formatDayOfWeek,
|
|
114
|
+
formatDateLong,
|
|
115
|
+
dateFnsLocale: locale,
|
|
116
|
+
localeTag: localeTags[language] || "vi-VN",
|
|
117
|
+
languageNames: { vi: "Ti\u1EBFng Vi\u1EC7t", en: "English", ja: "\u65E5\u672C\u8A9E" }
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { timezoneLabels, useDateFormat };
|
|
122
|
+
//# sourceMappingURL=chunk-XDXGUPCR.js.map
|
|
123
|
+
//# sourceMappingURL=chunk-XDXGUPCR.js.map
|
|
@@ -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-RSCXIS4D.js';
|
|
2
|
+
import '../chunk-EJEVW4RO.js';
|
|
3
|
+
import '../chunk-OY3PSPA5.js';
|
|
4
|
+
import '../chunk-5D3OAVOZ.js';
|
|
5
|
+
import '../chunk-2ZIFL2X3.js';
|
|
6
|
+
import '../chunk-5BL4VFRJ.js';
|
|
7
|
+
import '../chunk-X57K24P3.js';
|
|
8
|
+
import '../chunk-DTM76EJD.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"}
|
|
@@ -1,37 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
export * from '@omnifyjp/ui-components/components/accordion';
|
|
2
|
+
import '@omnifyjp/ui-components/components/alert-dialog';
|
|
3
|
+
import '@omnifyjp/ui-components/components/alert';
|
|
4
|
+
import '@omnifyjp/ui-components/components/aspect-ratio';
|
|
5
|
+
import '@omnifyjp/ui-components/components/avatar';
|
|
6
|
+
import '@omnifyjp/ui-components/components/badge';
|
|
7
|
+
import '@omnifyjp/ui-components/components/breadcrumb';
|
|
8
|
+
import '@omnifyjp/ui-components/components/button';
|
|
9
|
+
import '@omnifyjp/ui-components/components/calendar-category-badge';
|
|
10
|
+
import '@omnifyjp/ui-components/components/calendar-event-chip';
|
|
11
|
+
import '@omnifyjp/ui-components/components/calendar-event-sheet';
|
|
12
|
+
import '@omnifyjp/ui-components/components/calendar-mini';
|
|
13
|
+
import '@omnifyjp/ui-components/components/calendar-toolbar';
|
|
14
|
+
import '@omnifyjp/ui-components/components/calendar';
|
|
15
|
+
import '@omnifyjp/ui-components/components/card';
|
|
16
|
+
import '@omnifyjp/ui-components/components/carousel';
|
|
17
|
+
import '@omnifyjp/ui-components/components/chart';
|
|
18
|
+
import '@omnifyjp/ui-components/components/checkbox';
|
|
19
|
+
import '@omnifyjp/ui-components/components/collapsible';
|
|
20
|
+
import '@omnifyjp/ui-components/components/color-picker';
|
|
21
|
+
import '@omnifyjp/ui-components/components/combobox';
|
|
22
|
+
import '@omnifyjp/ui-components/components/command';
|
|
23
|
+
import '@omnifyjp/ui-components/components/context-menu';
|
|
24
|
+
import '@omnifyjp/ui-components/components/date-picker';
|
|
25
|
+
import '@omnifyjp/ui-components/components/dialog';
|
|
26
|
+
import '@omnifyjp/ui-components/components/drawer';
|
|
27
|
+
import '@omnifyjp/ui-components/components/dropdown-menu';
|
|
28
|
+
import '@omnifyjp/ui-components/components/file-upload';
|
|
29
|
+
import '@omnifyjp/ui-components/components/form';
|
|
30
|
+
import '@omnifyjp/ui-components/components/hover-card';
|
|
31
|
+
import '@omnifyjp/ui-components/components/input-otp';
|
|
32
|
+
import '@omnifyjp/ui-components/components/input';
|
|
33
|
+
import '@omnifyjp/ui-components/components/label';
|
|
34
|
+
import '@omnifyjp/ui-components/components/menubar';
|
|
35
|
+
import '@omnifyjp/ui-components/components/navigation-menu';
|
|
36
|
+
import '@omnifyjp/ui-components/components/pagination';
|
|
37
|
+
import '@omnifyjp/ui-components/components/password-input';
|
|
38
|
+
import '@omnifyjp/ui-components/components/permission-grid';
|
|
39
|
+
import '@omnifyjp/ui-components/components/popover';
|
|
40
|
+
import '@omnifyjp/ui-components/components/progress';
|
|
41
|
+
import '@omnifyjp/ui-components/components/radio-group';
|
|
42
|
+
import '@omnifyjp/ui-components/components/rating';
|
|
43
|
+
import '@omnifyjp/ui-components/components/resizable';
|
|
44
|
+
import '@omnifyjp/ui-components/components/scope-tree';
|
|
45
|
+
import '@omnifyjp/ui-components/components/scope-type-badge';
|
|
46
|
+
import '@omnifyjp/ui-components/components/scroll-area';
|
|
47
|
+
import '@omnifyjp/ui-components/components/select';
|
|
48
|
+
import '@omnifyjp/ui-components/components/separator';
|
|
49
|
+
import '@omnifyjp/ui-components/components/sheet';
|
|
50
|
+
import '@omnifyjp/ui-components/components/skeleton';
|
|
51
|
+
import '@omnifyjp/ui-components/components/slider';
|
|
52
|
+
import '@omnifyjp/ui-components/components/slug-input';
|
|
53
|
+
import '@omnifyjp/ui-components/components/sonner';
|
|
54
|
+
import '@omnifyjp/ui-components/components/stage-type-badge';
|
|
55
|
+
import '@omnifyjp/ui-components/components/switch';
|
|
56
|
+
import '@omnifyjp/ui-components/components/table';
|
|
57
|
+
import '@omnifyjp/ui-components/components/tabs';
|
|
58
|
+
import '@omnifyjp/ui-components/components/tag-input';
|
|
59
|
+
import '@omnifyjp/ui-components/components/textarea';
|
|
60
|
+
import '@omnifyjp/ui-components/components/time-picker';
|
|
61
|
+
import '@omnifyjp/ui-components/components/toggle-group';
|
|
62
|
+
import '@omnifyjp/ui-components/components/toggle';
|
|
63
|
+
import '@omnifyjp/ui-components/components/tooltip';
|
|
64
|
+
import '@omnifyjp/ui-components/components/workflow-category-badge';
|
|
65
|
+
import '@omnifyjp/ui-components/components/workflow-diagram';
|
|
66
|
+
import '@omnifyjp/ui-components/components/workflow-status-badge';
|
|
67
|
+
import '@omnifyjp/ui-components/components/workflow-stepper';
|
|
68
|
+
import '@omnifyjp/ui-components/hooks/use-mobile';
|
|
69
|
+
import '@omnifyjp/ui-components/lib/utils';
|
|
70
|
+
import '@omnifyjp/ui-components/lib/types';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '../chunk-DGPY4WP3.js';
|
|
1
|
+
export * from '@omnifyjp/ui-components/components/accordion';
|
|
3
2
|
//# sourceMappingURL=accordion.js.map
|
|
4
3
|
//# sourceMappingURL=accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"accordion.js"}
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"accordion.js","sourcesContent":[]}
|
|
@@ -1,56 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Confirmation dialog built on Radix UI AlertDialog.
|
|
7
|
-
*
|
|
8
|
-
* Unlike `Dialog`, an alert dialog requires an explicit user action to dismiss
|
|
9
|
-
* (no click-outside or Escape by default). Use it for destructive actions or
|
|
10
|
-
* important confirmations.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <AlertDialog open={open} onOpenChange={setOpen}>
|
|
15
|
-
* <AlertDialogTrigger asChild>
|
|
16
|
-
* <Button variant="destructive">Delete Item</Button>
|
|
17
|
-
* </AlertDialogTrigger>
|
|
18
|
-
* <AlertDialogContent>
|
|
19
|
-
* <AlertDialogHeader>
|
|
20
|
-
* <AlertDialogTitle>Are you sure?</AlertDialogTitle>
|
|
21
|
-
* <AlertDialogDescription>
|
|
22
|
-
* This action cannot be undone. This will permanently delete
|
|
23
|
-
* your item and remove it from our servers.
|
|
24
|
-
* </AlertDialogDescription>
|
|
25
|
-
* </AlertDialogHeader>
|
|
26
|
-
* <AlertDialogFooter>
|
|
27
|
-
* <AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
28
|
-
* <AlertDialogAction>Delete</AlertDialogAction>
|
|
29
|
-
* </AlertDialogFooter>
|
|
30
|
-
* </AlertDialogContent>
|
|
31
|
-
* </AlertDialog>
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
35
|
-
/** Element that opens the alert dialog when clicked. Use `asChild` to merge into your own button. */
|
|
36
|
-
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
37
|
-
/** Portal that renders alert dialog content outside the DOM hierarchy. */
|
|
38
|
-
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
39
|
-
/** Semi-transparent backdrop rendered behind the alert dialog content. */
|
|
40
|
-
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
41
|
-
/** Alert dialog content panel with overlay backdrop. */
|
|
42
|
-
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
43
|
-
/** Container for AlertDialogTitle and AlertDialogDescription. */
|
|
44
|
-
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
45
|
-
/** Container for AlertDialogAction and AlertDialogCancel buttons. */
|
|
46
|
-
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
47
|
-
/** Accessible title for the alert dialog. */
|
|
48
|
-
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
49
|
-
/** Accessible description explaining the consequences of the action. */
|
|
50
|
-
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
51
|
-
/** Primary action button that confirms and closes the alert dialog. */
|
|
52
|
-
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
|
|
53
|
-
/** Cancel button that dismisses the alert dialog without taking action. Styled as outline variant. */
|
|
54
|
-
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
55
|
-
|
|
56
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
1
|
+
export * from '@omnifyjp/ui-components/components/alert-dialog';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '../chunk-55E7D2HR.js';
|
|
3
|
-
import '../chunk-DGPY4WP3.js';
|
|
1
|
+
export * from '@omnifyjp/ui-components/components/alert-dialog';
|
|
4
2
|
//# sourceMappingURL=alert-dialog.js.map
|
|
5
3
|
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"alert-dialog.js"}
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"alert-dialog.js","sourcesContent":[]}
|