@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
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
/** Supported workflow categories with built-in icon and color mappings. */
|
|
4
|
-
type WorkflowCategory = 'leave' | 'expense' | 'purchase' | 'contract' | 'document' | 'other';
|
|
5
|
-
interface WorkflowCategoryBadgeProps {
|
|
6
|
-
/** The category key. Determines the icon and color. */
|
|
7
|
-
category: WorkflowCategory;
|
|
8
|
-
/** The displayed label text. Defaults to a capitalized version of the category. */
|
|
9
|
-
label?: string;
|
|
10
|
-
/** Optional additional className. */
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* WorkflowCategoryBadge renders a badge with an icon and color for a workflow category.
|
|
15
|
-
*
|
|
16
|
-
* Each category has a dedicated icon and color scheme:
|
|
17
|
-
* - leave: Calendar (blue)
|
|
18
|
-
* - expense: Receipt (green)
|
|
19
|
-
* - purchase: ShoppingCart (amber)
|
|
20
|
-
* - contract: FileSignature (purple)
|
|
21
|
-
* - document: FileText (cyan)
|
|
22
|
-
* - other: MoreHorizontal (muted)
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <WorkflowCategoryBadge category="expense" />
|
|
27
|
-
* <WorkflowCategoryBadge category="leave" label="Annual Leave" />
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
declare function WorkflowCategoryBadge({ category, label, className }: WorkflowCategoryBadgeProps): react_jsx_runtime.JSX.Element;
|
|
31
|
-
|
|
32
|
-
export { type WorkflowCategory, WorkflowCategoryBadge, type WorkflowCategoryBadgeProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-category-badge.js"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Supported stage types for the workflow diagram. Each type has a dedicated
|
|
5
|
-
* icon (CheckCircle, Eye, Bell, GitBranch) and color.
|
|
6
|
-
*/
|
|
7
|
-
type WorkflowDiagramStageType = 'approval' | 'review' | 'notification' | 'conditional';
|
|
8
|
-
/** A single stage in the workflow diagram. */
|
|
9
|
-
interface WorkflowDiagramStage {
|
|
10
|
-
/** Unique identifier for this stage. */
|
|
11
|
-
id: string;
|
|
12
|
-
/** Display name shown on the stage card. */
|
|
13
|
-
name: string;
|
|
14
|
-
/** Stage type that determines the icon and color. */
|
|
15
|
-
type: WorkflowDiagramStageType;
|
|
16
|
-
/** List of user IDs assigned as approvers. Count is displayed on the card. */
|
|
17
|
-
approverIds: string[];
|
|
18
|
-
/** Numeric order used to sort stages left-to-right. */
|
|
19
|
-
order: number;
|
|
20
|
-
}
|
|
21
|
-
/** User-visible labels for the workflow diagram. All have English defaults. */
|
|
22
|
-
interface WorkflowDiagramLabels {
|
|
23
|
-
/** Label shown above stage name for each stage type */
|
|
24
|
-
approval?: string;
|
|
25
|
-
review?: string;
|
|
26
|
-
notification?: string;
|
|
27
|
-
conditional?: string;
|
|
28
|
-
/** Text for the approver count (e.g. "approvers") */
|
|
29
|
-
approvers?: string;
|
|
30
|
-
}
|
|
31
|
-
interface WorkflowDiagramProps {
|
|
32
|
-
/** Ordered list of stages to display. Will be sorted by `order`. */
|
|
33
|
-
stages: WorkflowDiagramStage[];
|
|
34
|
-
/** The id of the currently active stage. Highlighted with a blue border. */
|
|
35
|
-
currentStageId?: string;
|
|
36
|
-
/** User-visible labels with English defaults. */
|
|
37
|
-
labels?: WorkflowDiagramLabels;
|
|
38
|
-
/** Optional additional className for the root container. */
|
|
39
|
-
className?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* WorkflowDiagram renders a horizontal flow of workflow stages as cards
|
|
43
|
-
* connected by arrows.
|
|
44
|
-
*
|
|
45
|
-
* Each stage card displays an icon based on stage type, the stage name,
|
|
46
|
-
* and an optional approver count. The current stage is highlighted with
|
|
47
|
-
* a blue border.
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```tsx
|
|
51
|
-
* <WorkflowDiagram
|
|
52
|
-
* stages={[
|
|
53
|
-
* { id: "s1", name: "Manager Review", type: "review", approverIds: ["u1"], order: 1 },
|
|
54
|
-
* { id: "s2", name: "Final Approval", type: "approval", approverIds: ["u2", "u3"], order: 2 },
|
|
55
|
-
* ]}
|
|
56
|
-
* currentStageId="s1"
|
|
57
|
-
* labels={{ approvers: "approvers" }}
|
|
58
|
-
* />
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
declare function WorkflowDiagram({ stages, currentStageId, labels, className, }: WorkflowDiagramProps): react_jsx_runtime.JSX.Element;
|
|
62
|
-
|
|
63
|
-
export { WorkflowDiagram, type WorkflowDiagramLabels, type WorkflowDiagramProps, type WorkflowDiagramStage, type WorkflowDiagramStageType };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-diagram.js"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
/** Common workflow instance statuses with built-in styling. */
|
|
4
|
-
type WorkflowStatus = 'pending' | 'in-progress' | 'approved' | 'rejected' | 'cancelled';
|
|
5
|
-
interface WorkflowStatusBadgeProps {
|
|
6
|
-
/** The status key. Must be one of the predefined statuses. */
|
|
7
|
-
status: WorkflowStatus;
|
|
8
|
-
/** The displayed label text. Defaults to a capitalized version of the status. */
|
|
9
|
-
label?: string;
|
|
10
|
-
/** Optional additional className. */
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* WorkflowStatusBadge renders a color-coded badge for a workflow instance status.
|
|
15
|
-
*
|
|
16
|
-
* - pending: blue
|
|
17
|
-
* - in-progress: amber
|
|
18
|
-
* - approved: green
|
|
19
|
-
* - rejected: red
|
|
20
|
-
* - cancelled: muted
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```tsx
|
|
24
|
-
* <WorkflowStatusBadge status="approved" />
|
|
25
|
-
* <WorkflowStatusBadge status="in-progress" label="In Review" />
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare function WorkflowStatusBadge({ status, label, className }: WorkflowStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
29
|
-
|
|
30
|
-
export { type WorkflowStatus, WorkflowStatusBadge, type WorkflowStatusBadgeProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-status-badge.js"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
/** A single stage in the workflow stepper. */
|
|
4
|
-
interface WorkflowStepperStage {
|
|
5
|
-
/** Unique identifier for this stage. */
|
|
6
|
-
id: string;
|
|
7
|
-
/** Display name shown below the stage circle. */
|
|
8
|
-
name: string;
|
|
9
|
-
/** Numeric order used to sort stages left-to-right. */
|
|
10
|
-
order: number;
|
|
11
|
-
}
|
|
12
|
-
/** A history entry representing a completed (or rejected) stage. */
|
|
13
|
-
interface WorkflowStepperHistoryEntry {
|
|
14
|
-
/** The stage ID this history entry applies to. */
|
|
15
|
-
stageId: string;
|
|
16
|
-
/** The decision made at this stage. "rejected" stages render in red. */
|
|
17
|
-
decision: 'approved' | 'rejected' | 'skipped' | (string & {});
|
|
18
|
-
}
|
|
19
|
-
interface WorkflowStepperProps {
|
|
20
|
-
/** Ordered list of stages to display. Will be sorted by `order`. */
|
|
21
|
-
stages: WorkflowStepperStage[];
|
|
22
|
-
/** History of completed stages. Used to determine which stages are done. */
|
|
23
|
-
history: WorkflowStepperHistoryEntry[];
|
|
24
|
-
/** The id of the currently active stage. */
|
|
25
|
-
currentStageId: string;
|
|
26
|
-
/** Optional additional className for the root container. */
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* WorkflowStepper displays a horizontal progression of workflow stages.
|
|
31
|
-
*
|
|
32
|
-
* Each stage is shown as a numbered circle. Completed stages show a checkmark
|
|
33
|
-
* (green for approved, red for rejected). The current stage pulses with a blue
|
|
34
|
-
* highlight. Stages are connected by a horizontal line that turns green once
|
|
35
|
-
* the preceding stage is completed.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* <WorkflowStepper
|
|
40
|
-
* stages={[
|
|
41
|
-
* { id: "s1", name: "Submit", order: 1 },
|
|
42
|
-
* { id: "s2", name: "Review", order: 2 },
|
|
43
|
-
* { id: "s3", name: "Approve", order: 3 },
|
|
44
|
-
* ]}
|
|
45
|
-
* history={[{ stageId: "s1", decision: "approved" }]}
|
|
46
|
-
* currentStageId="s2"
|
|
47
|
-
* />
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
declare function WorkflowStepper({ stages, history, currentStageId, className, }: WorkflowStepperProps): react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
export { WorkflowStepper, type WorkflowStepperHistoryEntry, type WorkflowStepperProps, type WorkflowStepperStage };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-stepper.js"}
|
package/dist/hooks/use-mobile.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-mobile.js"}
|
package/dist/lib/utils.d.ts
DELETED
package/dist/lib/utils.js
DELETED
package/dist/lib/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"utils.js"}
|
package/dist/types-CBVkScfB.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared UI types for @omnifyjp/ui components.
|
|
3
|
-
*
|
|
4
|
-
* These types enforce consistent APIs across Button, Badge, Alert, and future components.
|
|
5
|
-
* Import from `@omnifyjp/ui` or `@omnifyjp/ui/lib/types`.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* import type { UIColor, UISize } from '@omnifyjp/ui';
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Semantic color intent for UI components.
|
|
14
|
-
*
|
|
15
|
-
* Each color maps to a pair of CSS custom properties in theme.css:
|
|
16
|
-
* `--{color}` (background) and `--{color}-foreground` (text on that background).
|
|
17
|
-
*
|
|
18
|
-
* | Color | CSS Variable | Default (Light) | Use for |
|
|
19
|
-
* |-------|-------------|-----------------|---------|
|
|
20
|
-
* | `primary` | `--primary` | `#030213` | Main actions, active states |
|
|
21
|
-
* | `destructive` | `--destructive` | `#d4183d` | Delete, errors, dangerous actions |
|
|
22
|
-
* | `success` | `--success` | `#10b981` | Confirmed, approved, completed |
|
|
23
|
-
* | `warning` | `--warning` | `#f59e0b` | Caution, needs attention |
|
|
24
|
-
* | `info` | `--info` | `#3b82f6` | Informational, neutral highlights |
|
|
25
|
-
*
|
|
26
|
-
* Consumers override these via CSS custom properties:
|
|
27
|
-
* ```css
|
|
28
|
-
* :root { --primary: #dc2626; }
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```tsx
|
|
33
|
-
* <Button color="success">Approve</Button>
|
|
34
|
-
* <Badge color="warning">Pending</Badge>
|
|
35
|
-
* <Alert color="info">Tip: use keyboard shortcuts</Alert>
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
type UIColor = 'primary' | 'destructive' | 'success' | 'warning' | 'info';
|
|
39
|
-
/**
|
|
40
|
-
* Visual display variant for UI components.
|
|
41
|
-
*
|
|
42
|
-
* Controls **how** the color is rendered, independent of **which** color.
|
|
43
|
-
* Combine with `color` prop for full flexibility: `variant="outline" color="destructive"`.
|
|
44
|
-
*
|
|
45
|
-
* | Variant | Description |
|
|
46
|
-
* |---------|-------------|
|
|
47
|
-
* | `default` | Solid filled background with contrasting text |
|
|
48
|
-
* | `secondary` | Muted/gray background (color-independent) |
|
|
49
|
-
* | `outline` | Border with transparent background, colored text |
|
|
50
|
-
* | `soft` | Light tinted background (10% opacity of color) |
|
|
51
|
-
* | `ghost` | Transparent, shows tinted background on hover |
|
|
52
|
-
* | `link` | Text-only with underline on hover |
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```tsx
|
|
56
|
-
* <Button variant="soft" color="success">Approve</Button>
|
|
57
|
-
* <Button variant="outline" color="destructive">Reject</Button>
|
|
58
|
-
* <Badge variant="soft" color="warning">In Review</Badge>
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
type UIVariant = 'default' | 'secondary' | 'outline' | 'soft' | 'ghost' | 'link';
|
|
62
|
-
/**
|
|
63
|
-
* Standard size scale for UI components.
|
|
64
|
-
*
|
|
65
|
-
* Maps to density tokens in theme.css for consistent sizing across the system.
|
|
66
|
-
*
|
|
67
|
-
* | Size | Height Token | Pixels | Use for |
|
|
68
|
-
* |------|-------------|--------|---------|
|
|
69
|
-
* | `xs` | `h-element-xs` | 24px | Compact tables, inline actions |
|
|
70
|
-
* | `sm` | `h-element-sm` | 28px | Secondary actions, tight layouts |
|
|
71
|
-
* | `default` | `h-element` | 32px | Standard buttons, inputs |
|
|
72
|
-
* | `lg` | `h-element-lg` | 36px | Primary CTAs, form actions |
|
|
73
|
-
* | `xl` | `h-element-xl` | 44px | Login forms, hero sections |
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```tsx
|
|
77
|
-
* <Button size="sm">Edit</Button>
|
|
78
|
-
* <Button size="xl" block>Sign In</Button>
|
|
79
|
-
* <Input size="lg" />
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
type UISize = 'xs' | 'sm' | 'default' | 'lg' | 'xl';
|
|
83
|
-
|
|
84
|
-
export type { UIColor as U, UISize as a, UIVariant as b };
|
package/src/styles/fonts.css
DELETED
|
File without changes
|
package/src/styles/index.css
DELETED
package/src/styles/tailwind.css
DELETED