@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
package/dist/index.js
CHANGED
|
@@ -1,72 +1,13 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './chunk-C5NZAOA7.js';
|
|
13
|
-
export { useIsMobile } from './chunk-WRCHR4AK.js';
|
|
14
|
-
export { Skeleton } from './chunk-JXGRW2MR.js';
|
|
15
|
-
export { Slider } from './chunk-EWBCV7VA.js';
|
|
16
|
-
export { SlugInput, generateSlug } from './chunk-75WZR6HF.js';
|
|
17
|
-
export { Toaster } from './chunk-CUZR4JWM.js';
|
|
18
|
-
export { StageTypeBadge } from './chunk-ZHEKDP5X.js';
|
|
19
|
-
export { Progress } from './chunk-R2CDE5DO.js';
|
|
20
|
-
export { RadioGroup, RadioGroupItem } from './chunk-BRSM3SZP.js';
|
|
21
|
-
export { Rating } from './chunk-35U6QG4P.js';
|
|
22
|
-
export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './chunk-FRKG7JQY.js';
|
|
23
|
-
export { ScopeTree } from './chunk-BAQWGQJG.js';
|
|
24
|
-
export { ScopeTypeBadge } from './chunk-N47H4MHX.js';
|
|
25
|
-
export { ScrollArea, ScrollBar } from './chunk-JJSVA3TH.js';
|
|
26
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './chunk-NNJTKHCE.js';
|
|
27
|
-
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from './chunk-INLM7UJC.js';
|
|
28
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from './chunk-YBMEQZX7.js';
|
|
29
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from './chunk-7IRLBU2I.js';
|
|
30
|
-
export { PasswordInput } from './chunk-3UPBCOS4.js';
|
|
31
|
-
export { PermissionGrid, buildPermissionId } from './chunk-TJMK2KBE.js';
|
|
32
|
-
export { DatePicker, DateRangePicker } from './chunk-HWTW64R5.js';
|
|
33
|
-
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './chunk-7XH3MGBR.js';
|
|
34
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './chunk-IAWKX5W4.js';
|
|
35
|
-
export { FileUpload } from './chunk-G7HTZBUR.js';
|
|
36
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from './chunk-LVZNNIK4.js';
|
|
37
|
-
export { Label } from './chunk-P3M5TZD2.js';
|
|
38
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger } from './chunk-JRU2QX7T.js';
|
|
39
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from './chunk-RQNZDWY3.js';
|
|
40
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from './chunk-2TUWDXAC.js';
|
|
41
|
-
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from './chunk-B434PORR.js';
|
|
42
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './chunk-3EOHW4QN.js';
|
|
43
|
-
export { ColorPicker } from './chunk-MJLFJPUG.js';
|
|
44
|
-
export { Input, inputVariants } from './chunk-3VU56V66.js';
|
|
45
|
-
export { Combobox, MultiCombobox } from './chunk-NPL2R5LD.js';
|
|
46
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './chunk-C34KSTWA.js';
|
|
47
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './chunk-6GWVQB3Q.js';
|
|
48
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './chunk-F2ZJLKDP.js';
|
|
49
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './chunk-USIHM7FV.js';
|
|
50
|
-
export { CalendarEventChip } from './chunk-TTH7TWVX.js';
|
|
51
|
-
export { CalendarEventSheet } from './chunk-THQUH6WX.js';
|
|
52
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from './chunk-JLTBUACL.js';
|
|
53
|
-
export { CalendarCategoryBadge } from './chunk-JAJMM32I.js';
|
|
54
|
-
export { CalendarMini } from './chunk-KTBOZ4NE.js';
|
|
55
|
-
export { Checkbox } from './chunk-WL4ZO2H3.js';
|
|
56
|
-
export { Separator } from './chunk-PGWNOZDX.js';
|
|
57
|
-
export { CalendarToolbar } from './chunk-36YYHIJU.js';
|
|
58
|
-
export { ToggleGroup, ToggleGroupItem } from './chunk-ZPMXRW2A.js';
|
|
59
|
-
export { Toggle, toggleVariants } from './chunk-NU56GKGM.js';
|
|
60
|
-
export { Calendar } from './chunk-QB3UWRZH.js';
|
|
61
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './chunk-Z2QAABLM.js';
|
|
62
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './chunk-34ARZSNP.js';
|
|
63
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './chunk-LTTNCAAA.js';
|
|
64
|
-
export { Button, buttonVariants } from './chunk-55E7D2HR.js';
|
|
65
|
-
export { Alert, AlertDescription, AlertTitle } from './chunk-TGYQ3AKH.js';
|
|
66
|
-
export { AspectRatio } from './chunk-35DNN46W.js';
|
|
67
|
-
export { Avatar, AvatarFallback, AvatarImage } from './chunk-67YUL2ZS.js';
|
|
68
|
-
export { Badge, badgeVariants } from './chunk-A3BB5ZOC.js';
|
|
69
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from './chunk-7RMTPT6O.js';
|
|
70
|
-
export { cn } from './chunk-DGPY4WP3.js';
|
|
1
|
+
export { timezoneLabels, useDateFormat } from './chunk-XDXGUPCR.js';
|
|
2
|
+
export { AppShell } from './chunk-JXFBHSPN.js';
|
|
3
|
+
export { ThemeProvider, useTheme } from './chunk-EJEVW4RO.js';
|
|
4
|
+
export { changeLanguage, i18n, initOmnifyI18n, languageNames } from './chunk-OY3PSPA5.js';
|
|
5
|
+
export { Sidebar } from './chunk-X57K24P3.js';
|
|
6
|
+
export { Header } from './chunk-5D3OAVOZ.js';
|
|
7
|
+
export { ServiceMenu } from './chunk-5BL4VFRJ.js';
|
|
8
|
+
export { OrganizationSelector } from './chunk-DTM76EJD.js';
|
|
9
|
+
export { OrganizationSetupModal } from './chunk-2ZIFL2X3.js';
|
|
10
|
+
export { OrganizationProvider, useOrganization } from './chunk-SHHZRZMM.js';
|
|
11
|
+
export { FullWidthPageContainer, PageContainer, SplitPageContainer, StandardPageContainer } from './chunk-O25D7DCP.js';
|
|
71
12
|
//# sourceMappingURL=index.js.map
|
|
72
13
|
//# sourceMappingURL=index.js.map
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
|
|
4
|
+
interface Organization {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
logo?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
shortName?: string;
|
|
11
|
+
}
|
|
12
|
+
interface Branch {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
organizationId: string;
|
|
16
|
+
location?: string;
|
|
17
|
+
}
|
|
18
|
+
interface SidebarMenuItem {
|
|
19
|
+
icon: LucideIcon;
|
|
20
|
+
label: string;
|
|
21
|
+
path?: string;
|
|
22
|
+
badge?: number;
|
|
23
|
+
children?: SidebarMenuItem[];
|
|
24
|
+
}
|
|
25
|
+
interface ServiceItem {
|
|
26
|
+
icon: LucideIcon;
|
|
27
|
+
label: string;
|
|
28
|
+
url: string;
|
|
29
|
+
color: string;
|
|
30
|
+
active?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface ServiceCategory {
|
|
33
|
+
category: string;
|
|
34
|
+
items: ServiceItem[];
|
|
35
|
+
}
|
|
36
|
+
interface ShellConfig {
|
|
37
|
+
app: {
|
|
38
|
+
name: string;
|
|
39
|
+
key: string;
|
|
40
|
+
logo: {
|
|
41
|
+
icon: LucideIcon;
|
|
42
|
+
text: string;
|
|
43
|
+
color?: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
sidebar: {
|
|
47
|
+
menuItems: SidebarMenuItem[];
|
|
48
|
+
contextMenu?: {
|
|
49
|
+
paramName: string;
|
|
50
|
+
getItems: (paramValue: string) => SidebarMenuItem[];
|
|
51
|
+
getHeader?: (paramValue: string) => ReactNode;
|
|
52
|
+
getFooterItems?: () => SidebarMenuItem[];
|
|
53
|
+
};
|
|
54
|
+
recentItems?: {
|
|
55
|
+
title: string;
|
|
56
|
+
items: Array<{
|
|
57
|
+
label: string;
|
|
58
|
+
path: string;
|
|
59
|
+
badge?: string;
|
|
60
|
+
color?: string;
|
|
61
|
+
}>;
|
|
62
|
+
};
|
|
63
|
+
footer?: ReactNode;
|
|
64
|
+
};
|
|
65
|
+
services?: ServiceCategory[];
|
|
66
|
+
header?: {
|
|
67
|
+
searchPlaceholder?: string;
|
|
68
|
+
actions?: ReactNode;
|
|
69
|
+
notifications?: {
|
|
70
|
+
count: number;
|
|
71
|
+
content: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
user?: {
|
|
74
|
+
name: string;
|
|
75
|
+
email?: string;
|
|
76
|
+
avatar?: string;
|
|
77
|
+
onLogout?: () => void;
|
|
78
|
+
};
|
|
79
|
+
showSearch?: boolean;
|
|
80
|
+
};
|
|
81
|
+
organization?: {
|
|
82
|
+
organizations: Organization[];
|
|
83
|
+
branches: Branch[];
|
|
84
|
+
onOrganizationChange?: (org: Organization) => void;
|
|
85
|
+
onBranchChange?: (branch: Branch) => void;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type { Branch, Organization, ServiceCategory, ServiceItem, ShellConfig, SidebarMenuItem };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnifyjp/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -15,97 +15,50 @@
|
|
|
15
15
|
"types": "./dist/components/*.d.ts",
|
|
16
16
|
"import": "./dist/components/*.js"
|
|
17
17
|
},
|
|
18
|
-
"./
|
|
19
|
-
"types": "./dist/
|
|
20
|
-
"import": "./dist/
|
|
21
|
-
},
|
|
22
|
-
"./lib/utils": {
|
|
23
|
-
"types": "./dist/lib/utils.d.ts",
|
|
24
|
-
"import": "./dist/lib/utils.js"
|
|
18
|
+
"./contexts/*": {
|
|
19
|
+
"types": "./dist/contexts/*.d.ts",
|
|
20
|
+
"import": "./dist/contexts/*.js"
|
|
25
21
|
},
|
|
26
22
|
"./hooks/*": {
|
|
27
23
|
"types": "./dist/hooks/*.d.ts",
|
|
28
24
|
"import": "./dist/hooks/*.js"
|
|
29
25
|
},
|
|
30
|
-
"./
|
|
26
|
+
"./i18n": {
|
|
27
|
+
"types": "./dist/i18n.d.ts",
|
|
28
|
+
"import": "./dist/i18n.js"
|
|
29
|
+
},
|
|
30
|
+
"./types": {
|
|
31
|
+
"types": "./dist/types.d.ts",
|
|
32
|
+
"import": "./dist/types.js"
|
|
33
|
+
}
|
|
31
34
|
},
|
|
32
35
|
"files": [
|
|
33
|
-
"dist"
|
|
34
|
-
"src/styles"
|
|
36
|
+
"dist"
|
|
35
37
|
],
|
|
36
38
|
"scripts": {
|
|
37
39
|
"build": "tsup",
|
|
38
40
|
"dev": "tsup --watch",
|
|
39
41
|
"lint": "eslint src/",
|
|
40
|
-
"type-check": "tsc --noEmit"
|
|
41
|
-
"test": "vitest run",
|
|
42
|
-
"test:watch": "vitest"
|
|
42
|
+
"type-check": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"date-fns": ">=3",
|
|
46
45
|
"react": ">=19",
|
|
47
46
|
"react-dom": ">=19",
|
|
48
|
-
"react-
|
|
49
|
-
"recharts": ">=2"
|
|
50
|
-
},
|
|
51
|
-
"peerDependenciesMeta": {
|
|
52
|
-
"date-fns": {
|
|
53
|
-
"optional": true
|
|
54
|
-
},
|
|
55
|
-
"recharts": {
|
|
56
|
-
"optional": true
|
|
57
|
-
},
|
|
58
|
-
"react-hook-form": {
|
|
59
|
-
"optional": true
|
|
60
|
-
}
|
|
47
|
+
"react-router": ">=7"
|
|
61
48
|
},
|
|
62
49
|
"dependencies": {
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"@radix-ui/react-collapsible": "1.1.3",
|
|
69
|
-
"@radix-ui/react-context-menu": "2.2.6",
|
|
70
|
-
"@radix-ui/react-dialog": "1.1.6",
|
|
71
|
-
"@radix-ui/react-dropdown-menu": "2.1.6",
|
|
72
|
-
"@radix-ui/react-hover-card": "1.1.6",
|
|
73
|
-
"@radix-ui/react-label": "2.1.2",
|
|
74
|
-
"@radix-ui/react-menubar": "1.1.6",
|
|
75
|
-
"@radix-ui/react-navigation-menu": "1.2.5",
|
|
76
|
-
"@radix-ui/react-popover": "1.1.6",
|
|
77
|
-
"@radix-ui/react-progress": "1.1.2",
|
|
78
|
-
"@radix-ui/react-radio-group": "1.2.3",
|
|
79
|
-
"@radix-ui/react-scroll-area": "1.2.3",
|
|
80
|
-
"@radix-ui/react-select": "2.1.6",
|
|
81
|
-
"@radix-ui/react-separator": "1.1.2",
|
|
82
|
-
"@radix-ui/react-slider": "1.2.3",
|
|
83
|
-
"@radix-ui/react-slot": "1.1.2",
|
|
84
|
-
"@radix-ui/react-switch": "1.1.3",
|
|
85
|
-
"@radix-ui/react-tabs": "1.1.3",
|
|
86
|
-
"@radix-ui/react-toggle": "1.1.2",
|
|
87
|
-
"@radix-ui/react-toggle-group": "1.1.2",
|
|
88
|
-
"@radix-ui/react-tooltip": "1.1.8",
|
|
89
|
-
"class-variance-authority": "0.7.1",
|
|
90
|
-
"clsx": "2.1.1",
|
|
91
|
-
"cmdk": "1.1.1",
|
|
92
|
-
"embla-carousel-react": "8.6.0",
|
|
93
|
-
"input-otp": "1.4.2",
|
|
50
|
+
"@omnifyjp/ui-components": "0.5.0",
|
|
51
|
+
"@omnifyjp/ui-mcp": "^0.5.0",
|
|
52
|
+
"i18next": "^24.0.0",
|
|
53
|
+
"react-i18next": "^15.0.0",
|
|
54
|
+
"date-fns": "3.6.0",
|
|
94
55
|
"lucide-react": "0.487.0",
|
|
95
|
-
"
|
|
96
|
-
"react-resizable-panels": "2.1.7",
|
|
97
|
-
"sonner": "2.0.3",
|
|
98
|
-
"tailwind-merge": "3.2.0",
|
|
99
|
-
"vaul": "1.1.2"
|
|
56
|
+
"sonner": "2.0.3"
|
|
100
57
|
},
|
|
101
58
|
"devDependencies": {
|
|
102
|
-
"@testing-library/jest-dom": "^6.9.1",
|
|
103
|
-
"@testing-library/react": "^16.3.2",
|
|
104
|
-
"@types/react": "^19.2.13",
|
|
105
|
-
"@types/react-dom": "^19.2.3",
|
|
106
|
-
"jsdom": "^28.1.0",
|
|
107
59
|
"tsup": "^8.0.0",
|
|
108
60
|
"typescript": "^5.9.3",
|
|
109
|
-
"
|
|
61
|
+
"@types/react": "^19.2.13",
|
|
62
|
+
"@types/react-dom": "^19.2.3"
|
|
110
63
|
}
|
|
111
64
|
}
|
package/dist/chunk-2C2HRGM7.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Badge } from './chunk-A3BB5ZOC.js';
|
|
2
|
-
import { cn } from './chunk-DGPY4WP3.js';
|
|
3
|
-
import { MoreHorizontal, FileText, FileSignature, ShoppingCart, Receipt, Calendar } from 'lucide-react';
|
|
4
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var categoryConfig = {
|
|
7
|
-
leave: {
|
|
8
|
-
icon: Calendar,
|
|
9
|
-
style: "bg-blue-50 dark:bg-blue-500/15 text-blue-600 dark:text-blue-400 border-blue-200 dark:border-blue-500/30"
|
|
10
|
-
},
|
|
11
|
-
expense: {
|
|
12
|
-
icon: Receipt,
|
|
13
|
-
style: "bg-green-50 dark:bg-green-500/15 text-green-600 dark:text-green-400 border-green-200 dark:border-green-500/30"
|
|
14
|
-
},
|
|
15
|
-
purchase: {
|
|
16
|
-
icon: ShoppingCart,
|
|
17
|
-
style: "bg-amber-50 dark:bg-amber-500/15 text-amber-600 dark:text-amber-400 border-amber-200 dark:border-amber-500/30"
|
|
18
|
-
},
|
|
19
|
-
contract: {
|
|
20
|
-
icon: FileSignature,
|
|
21
|
-
style: "bg-purple-50 dark:bg-purple-500/15 text-purple-600 dark:text-purple-400 border-purple-200 dark:border-purple-500/30"
|
|
22
|
-
},
|
|
23
|
-
document: {
|
|
24
|
-
icon: FileText,
|
|
25
|
-
style: "bg-cyan-50 dark:bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 border-cyan-200 dark:border-cyan-500/30"
|
|
26
|
-
},
|
|
27
|
-
other: {
|
|
28
|
-
icon: MoreHorizontal,
|
|
29
|
-
style: "bg-muted text-muted-foreground"
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
var defaultLabels = {
|
|
33
|
-
leave: "Leave",
|
|
34
|
-
expense: "Expense",
|
|
35
|
-
purchase: "Purchase",
|
|
36
|
-
contract: "Contract",
|
|
37
|
-
document: "Document",
|
|
38
|
-
other: "Other"
|
|
39
|
-
};
|
|
40
|
-
function WorkflowCategoryBadge({ category, label, className }) {
|
|
41
|
-
const config = categoryConfig[category];
|
|
42
|
-
const Icon = config.icon;
|
|
43
|
-
return /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: cn(config.style, className), children: [
|
|
44
|
-
/* @__PURE__ */ jsx(Icon, { className: "w-3 h-3 mr-1" }),
|
|
45
|
-
label ?? defaultLabels[category]
|
|
46
|
-
] });
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { WorkflowCategoryBadge };
|
|
50
|
-
//# sourceMappingURL=chunk-2C2HRGM7.js.map
|
|
51
|
-
//# sourceMappingURL=chunk-2C2HRGM7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/workflow-category-badge.tsx"],"names":[],"mappings":";;;;;AA6BA,IAAM,cAAA,GAAqF;AAAA,EACzF,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,QAAA;AAAA,IACN,KAAA,EACE;AAAA,GACJ;AAAA,EACA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,OAAA;AAAA,IACN,KAAA,EACE;AAAA,GACJ;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,YAAA;AAAA,IACN,KAAA,EACE;AAAA,GACJ;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,aAAA;AAAA,IACN,KAAA,EACE;AAAA,GACJ;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,QAAA;AAAA,IACN,KAAA,EACE;AAAA,GACJ;AAAA,EACA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,cAAA;AAAA,IACN,KAAA,EAAO;AAAA;AAEX,CAAA;AAEA,IAAM,aAAA,GAAkD;AAAA,EACtD,KAAA,EAAO,OAAA;AAAA,EACP,OAAA,EAAS,SAAA;AAAA,EACT,QAAA,EAAU,UAAA;AAAA,EACV,QAAA,EAAU,UAAA;AAAA,EACV,QAAA,EAAU,UAAA;AAAA,EACV,KAAA,EAAO;AACT,CAAA;AAmBO,SAAS,qBAAA,CAAsB,EAAE,QAAA,EAAU,KAAA,EAAO,WAAU,EAA+B;AAChG,EAAA,MAAM,MAAA,GAAS,eAAe,QAAQ,CAAA;AACtC,EAAA,MAAM,OAAO,MAAA,CAAO,IAAA;AAEpB,EAAA,uBACE,IAAA,CAAC,SAAM,OAAA,EAAQ,SAAA,EAAU,WAAW,EAAA,CAAG,MAAA,CAAO,KAAA,EAAO,SAAS,CAAA,EAC5D,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,IAAA,EAAA,EAAK,WAAU,cAAA,EAAe,CAAA;AAAA,IAC9B,KAAA,IAAS,cAAc,QAAQ;AAAA,GAAA,EAClC,CAAA;AAEJ","file":"chunk-2C2HRGM7.js","sourcesContent":["import {\n Calendar,\n Receipt,\n ShoppingCart,\n FileSignature,\n FileText,\n MoreHorizontal,\n} from 'lucide-react';\nimport { cn } from '../lib/utils';\nimport { Badge } from './badge';\n\n/** Supported workflow categories with built-in icon and color mappings. */\nexport type WorkflowCategory =\n | 'leave'\n | 'expense'\n | 'purchase'\n | 'contract'\n | 'document'\n | 'other';\n\nexport interface WorkflowCategoryBadgeProps {\n /** The category key. Determines the icon and color. */\n category: WorkflowCategory;\n /** The displayed label text. Defaults to a capitalized version of the category. */\n label?: string;\n /** Optional additional className. */\n className?: string;\n}\n\nconst categoryConfig: Record<WorkflowCategory, { icon: typeof Calendar; style: string }> = {\n leave: {\n icon: Calendar,\n style:\n 'bg-blue-50 dark:bg-blue-500/15 text-blue-600 dark:text-blue-400 border-blue-200 dark:border-blue-500/30',\n },\n expense: {\n icon: Receipt,\n style:\n 'bg-green-50 dark:bg-green-500/15 text-green-600 dark:text-green-400 border-green-200 dark:border-green-500/30',\n },\n purchase: {\n icon: ShoppingCart,\n style:\n 'bg-amber-50 dark:bg-amber-500/15 text-amber-600 dark:text-amber-400 border-amber-200 dark:border-amber-500/30',\n },\n contract: {\n icon: FileSignature,\n style:\n 'bg-purple-50 dark:bg-purple-500/15 text-purple-600 dark:text-purple-400 border-purple-200 dark:border-purple-500/30',\n },\n document: {\n icon: FileText,\n style:\n 'bg-cyan-50 dark:bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 border-cyan-200 dark:border-cyan-500/30',\n },\n other: {\n icon: MoreHorizontal,\n style: 'bg-muted text-muted-foreground',\n },\n};\n\nconst defaultLabels: Record<WorkflowCategory, string> = {\n leave: 'Leave',\n expense: 'Expense',\n purchase: 'Purchase',\n contract: 'Contract',\n document: 'Document',\n other: 'Other',\n};\n\n/**\n * WorkflowCategoryBadge renders a badge with an icon and color for a workflow category.\n *\n * Each category has a dedicated icon and color scheme:\n * - leave: Calendar (blue)\n * - expense: Receipt (green)\n * - purchase: ShoppingCart (amber)\n * - contract: FileSignature (purple)\n * - document: FileText (cyan)\n * - other: MoreHorizontal (muted)\n *\n * @example\n * ```tsx\n * <WorkflowCategoryBadge category=\"expense\" />\n * <WorkflowCategoryBadge category=\"leave\" label=\"Annual Leave\" />\n * ```\n */\nexport function WorkflowCategoryBadge({ category, label, className }: WorkflowCategoryBadgeProps) {\n const config = categoryConfig[category];\n const Icon = config.icon;\n\n return (\n <Badge variant=\"outline\" className={cn(config.style, className)}>\n <Icon className=\"w-3 h-3 mr-1\" />\n {label ?? defaultLabels[category]}\n </Badge>\n );\n}\n"]}
|
package/dist/chunk-2TUWDXAC.js
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { Button } from './chunk-55E7D2HR.js';
|
|
2
|
-
import { cn } from './chunk-DGPY4WP3.js';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import useEmblaCarousel from 'embla-carousel-react';
|
|
5
|
-
import { ArrowLeft, ArrowRight } from 'lucide-react';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var CarouselContext = React.createContext(null);
|
|
9
|
-
function useCarousel() {
|
|
10
|
-
const context = React.useContext(CarouselContext);
|
|
11
|
-
if (!context) {
|
|
12
|
-
throw new Error("useCarousel must be used within a <Carousel />");
|
|
13
|
-
}
|
|
14
|
-
return context;
|
|
15
|
-
}
|
|
16
|
-
function Carousel({
|
|
17
|
-
orientation = "horizontal",
|
|
18
|
-
opts,
|
|
19
|
-
setApi,
|
|
20
|
-
plugins,
|
|
21
|
-
className,
|
|
22
|
-
children,
|
|
23
|
-
...props
|
|
24
|
-
}) {
|
|
25
|
-
const [carouselRef, api] = useEmblaCarousel(
|
|
26
|
-
{
|
|
27
|
-
...opts,
|
|
28
|
-
axis: orientation === "horizontal" ? "x" : "y"
|
|
29
|
-
},
|
|
30
|
-
plugins
|
|
31
|
-
);
|
|
32
|
-
const [canScrollPrev, setCanScrollPrev] = React.useState(false);
|
|
33
|
-
const [canScrollNext, setCanScrollNext] = React.useState(false);
|
|
34
|
-
const onSelect = React.useCallback((api2) => {
|
|
35
|
-
if (!api2) return;
|
|
36
|
-
setCanScrollPrev(api2.canScrollPrev());
|
|
37
|
-
setCanScrollNext(api2.canScrollNext());
|
|
38
|
-
}, []);
|
|
39
|
-
const scrollPrev = React.useCallback(() => {
|
|
40
|
-
api?.scrollPrev();
|
|
41
|
-
}, [api]);
|
|
42
|
-
const scrollNext = React.useCallback(() => {
|
|
43
|
-
api?.scrollNext();
|
|
44
|
-
}, [api]);
|
|
45
|
-
const handleKeyDown = React.useCallback(
|
|
46
|
-
(event) => {
|
|
47
|
-
if (event.key === "ArrowLeft") {
|
|
48
|
-
event.preventDefault();
|
|
49
|
-
scrollPrev();
|
|
50
|
-
} else if (event.key === "ArrowRight") {
|
|
51
|
-
event.preventDefault();
|
|
52
|
-
scrollNext();
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
[scrollPrev, scrollNext]
|
|
56
|
-
);
|
|
57
|
-
React.useEffect(() => {
|
|
58
|
-
if (!api || !setApi) return;
|
|
59
|
-
setApi(api);
|
|
60
|
-
}, [api, setApi]);
|
|
61
|
-
React.useEffect(() => {
|
|
62
|
-
if (!api) return;
|
|
63
|
-
onSelect(api);
|
|
64
|
-
api.on("reInit", onSelect);
|
|
65
|
-
api.on("select", onSelect);
|
|
66
|
-
return () => {
|
|
67
|
-
api?.off("select", onSelect);
|
|
68
|
-
};
|
|
69
|
-
}, [api, onSelect]);
|
|
70
|
-
return /* @__PURE__ */ jsx(
|
|
71
|
-
CarouselContext.Provider,
|
|
72
|
-
{
|
|
73
|
-
value: {
|
|
74
|
-
carouselRef,
|
|
75
|
-
api,
|
|
76
|
-
opts,
|
|
77
|
-
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
78
|
-
scrollPrev,
|
|
79
|
-
scrollNext,
|
|
80
|
-
canScrollPrev,
|
|
81
|
-
canScrollNext
|
|
82
|
-
},
|
|
83
|
-
children: /* @__PURE__ */ jsx(
|
|
84
|
-
"div",
|
|
85
|
-
{
|
|
86
|
-
onKeyDownCapture: handleKeyDown,
|
|
87
|
-
className: cn("relative", className),
|
|
88
|
-
role: "region",
|
|
89
|
-
"aria-roledescription": "carousel",
|
|
90
|
-
"data-slot": "carousel",
|
|
91
|
-
...props,
|
|
92
|
-
children
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
function CarouselContent({ className, ...props }) {
|
|
99
|
-
const { carouselRef, orientation } = useCarousel();
|
|
100
|
-
return /* @__PURE__ */ jsx(
|
|
101
|
-
"div",
|
|
102
|
-
{
|
|
103
|
-
ref: carouselRef,
|
|
104
|
-
className: "overflow-hidden",
|
|
105
|
-
"data-slot": "carousel-content",
|
|
106
|
-
children: /* @__PURE__ */ jsx(
|
|
107
|
-
"div",
|
|
108
|
-
{
|
|
109
|
-
className: cn(
|
|
110
|
-
"flex",
|
|
111
|
-
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
112
|
-
className
|
|
113
|
-
),
|
|
114
|
-
...props
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
function CarouselItem({ className, ...props }) {
|
|
121
|
-
const { orientation } = useCarousel();
|
|
122
|
-
return /* @__PURE__ */ jsx(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
role: "group",
|
|
126
|
-
"aria-roledescription": "slide",
|
|
127
|
-
"data-slot": "carousel-item",
|
|
128
|
-
className: cn(
|
|
129
|
-
"min-w-0 shrink-0 grow-0 basis-full",
|
|
130
|
-
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
131
|
-
className
|
|
132
|
-
),
|
|
133
|
-
...props
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
function CarouselPrevious({
|
|
138
|
-
className,
|
|
139
|
-
variant = "outline",
|
|
140
|
-
size = "icon",
|
|
141
|
-
...props
|
|
142
|
-
}) {
|
|
143
|
-
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
144
|
-
return /* @__PURE__ */ jsxs(
|
|
145
|
-
Button,
|
|
146
|
-
{
|
|
147
|
-
"data-slot": "carousel-previous",
|
|
148
|
-
variant,
|
|
149
|
-
size,
|
|
150
|
-
className: cn(
|
|
151
|
-
"absolute size-8 rounded-full",
|
|
152
|
-
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
153
|
-
className
|
|
154
|
-
),
|
|
155
|
-
disabled: !canScrollPrev,
|
|
156
|
-
onClick: scrollPrev,
|
|
157
|
-
...props,
|
|
158
|
-
children: [
|
|
159
|
-
/* @__PURE__ */ jsx(ArrowLeft, {}),
|
|
160
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
function CarouselNext({
|
|
166
|
-
className,
|
|
167
|
-
variant = "outline",
|
|
168
|
-
size = "icon",
|
|
169
|
-
...props
|
|
170
|
-
}) {
|
|
171
|
-
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
172
|
-
return /* @__PURE__ */ jsxs(
|
|
173
|
-
Button,
|
|
174
|
-
{
|
|
175
|
-
"data-slot": "carousel-next",
|
|
176
|
-
variant,
|
|
177
|
-
size,
|
|
178
|
-
className: cn(
|
|
179
|
-
"absolute size-8 rounded-full",
|
|
180
|
-
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
181
|
-
className
|
|
182
|
-
),
|
|
183
|
-
disabled: !canScrollNext,
|
|
184
|
-
onClick: scrollNext,
|
|
185
|
-
...props,
|
|
186
|
-
children: [
|
|
187
|
-
/* @__PURE__ */ jsx(ArrowRight, {}),
|
|
188
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
|
|
189
|
-
]
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
195
|
-
//# sourceMappingURL=chunk-2TUWDXAC.js.map
|
|
196
|
-
//# sourceMappingURL=ch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EAAW,EAAA;AAAA,QACT,8BAAA;AAAA,QACA,WAAA,KAAgB,eACZ,oCAAA,GACA,gDAAA;AAAA,QACJ;AAAA,OACF;AAAA,MACA,UAAU,CAAC,aAAA;AAAA,MACX,OAAA,EAAS,UAAA;AAAA,MACR,GAAG,KAAA;AAAA,MAEJ,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,CAAA;AAAA,wBACZ,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,SAAA,EAAU,QAAA,EAAA,YAAA,EAAU;AAAA;AAAA;AAAA,GACtC;AAEJ","file":"chunk-2TUWDXAC.js","sourcesContent":["import * as React from \"react\";\nimport useEmblaCarousel from \"embla-carousel-react\";\nimport { ArrowLeft, ArrowRight } from \"lucide-react\";\n\nimport { cn } from \"../lib/utils\";\nimport { Button } from \"./button\";\n\ntype CarouselApi = ReturnType<typeof useEmblaCarousel>[1];\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\ntype CarouselOptions = UseCarouselParameters[0];\ntype CarouselPlugin = UseCarouselParameters[1];\n\ntype CarouselProps = {\n /** Embla Carousel options (e.g., `{ loop: true, align: \"start\" }`). */\n opts?: CarouselOptions;\n /** Embla Carousel plugins (e.g., Autoplay, ClassNames). */\n plugins?: CarouselPlugin;\n /** Scroll axis direction. Defaults to `\"horizontal\"`. */\n orientation?: \"horizontal\" | \"vertical\";\n /** Callback to receive the Embla API instance for external control. */\n setApi?: (api: CarouselApi) => void;\n};\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\n api: ReturnType<typeof useEmblaCarousel>[1];\n scrollPrev: () => void;\n scrollNext: () => void;\n canScrollPrev: boolean;\n canScrollNext: boolean;\n} & CarouselProps;\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null);\n\n/** Returns the carousel context. Must be called within a `<Carousel>` provider. */\nfunction useCarousel() {\n const context = React.useContext(CarouselContext);\n\n if (!context) {\n throw new Error(\"useCarousel must be used within a <Carousel />\");\n }\n\n return context;\n}\n\n/**\n * Carousel/slider component powered by Embla Carousel.\n *\n * Provides a context for child components (`CarouselContent`, `CarouselItem`,\n * `CarouselPrevious`, `CarouselNext`). Supports horizontal/vertical orientation,\n * keyboard navigation (arrow keys), and plugin extensibility.\n *\n * @example\n * ```tsx\n * <Carousel opts={{ loop: true }}>\n * <CarouselContent>\n * <CarouselItem>Slide 1</CarouselItem>\n * <CarouselItem>Slide 2</CarouselItem>\n * <CarouselItem>Slide 3</CarouselItem>\n * </CarouselContent>\n * <CarouselPrevious />\n * <CarouselNext />\n * </Carousel>\n * ```\n */\nfunction Carousel({\n orientation = \"horizontal\",\n opts,\n setApi,\n plugins,\n className,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & CarouselProps) {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n },\n plugins,\n );\n const [canScrollPrev, setCanScrollPrev] = React.useState(false);\n const [canScrollNext, setCanScrollNext] = React.useState(false);\n\n const onSelect = React.useCallback((api: CarouselApi) => {\n if (!api) return;\n setCanScrollPrev(api.canScrollPrev());\n setCanScrollNext(api.canScrollNext());\n }, []);\n\n const scrollPrev = React.useCallback(() => {\n api?.scrollPrev();\n }, [api]);\n\n const scrollNext = React.useCallback(() => {\n api?.scrollNext();\n }, [api]);\n\n const handleKeyDown = React.useCallback(\n (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"ArrowLeft\") {\n event.preventDefault();\n scrollPrev();\n } else if (event.key === \"ArrowRight\") {\n event.preventDefault();\n scrollNext();\n }\n },\n [scrollPrev, scrollNext],\n );\n\n React.useEffect(() => {\n if (!api || !setApi) return;\n setApi(api);\n }, [api, setApi]);\n\n React.useEffect(() => {\n if (!api) return;\n onSelect(api);\n api.on(\"reInit\", onSelect);\n api.on(\"select\", onSelect);\n\n return () => {\n api?.off(\"select\", onSelect);\n };\n }, [api, onSelect]);\n\n return (\n <CarouselContext.Provider\n value={{\n carouselRef,\n api: api,\n opts,\n orientation:\n orientation || (opts?.axis === \"y\" ? \"vertical\" : \"horizontal\"),\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }}\n >\n <div\n onKeyDownCapture={handleKeyDown}\n className={cn(\"relative\", className)}\n role=\"region\"\n aria-roledescription=\"carousel\"\n data-slot=\"carousel\"\n {...props}\n >\n {children}\n </div>\n </CarouselContext.Provider>\n );\n}\n\n/** Scrollable container for `CarouselItem` elements. Manages the overflow viewport. */\nfunction CarouselContent({ className, ...props }: React.ComponentProps<\"div\">) {\n const { carouselRef, orientation } = useCarousel();\n\n return (\n <div\n ref={carouselRef}\n className=\"overflow-hidden\"\n data-slot=\"carousel-content\"\n >\n <div\n className={cn(\n \"flex\",\n orientation === \"horizontal\" ? \"-ml-4\" : \"-mt-4 flex-col\",\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\n/** Individual slide within the carousel. Defaults to full-width (`basis-full`). */\nfunction CarouselItem({ className, ...props }: React.ComponentProps<\"div\">) {\n const { orientation } = useCarousel();\n\n return (\n <div\n role=\"group\"\n aria-roledescription=\"slide\"\n data-slot=\"carousel-item\"\n className={cn(\n \"min-w-0 shrink-0 grow-0 basis-full\",\n orientation === \"horizontal\" ? \"pl-4\" : \"pt-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** Navigation button to scroll to the previous slide. Automatically disabled when at the beginning. */\nfunction CarouselPrevious({\n className,\n variant = \"outline\",\n size = \"icon\",\n ...props\n}: React.ComponentProps<typeof Button>) {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-previous\"\n variant={variant}\n size={size}\n className={cn(\n \"absolute size-8 rounded-full\",\n orientation === \"horizontal\"\n ? \"top-1/2 -left-12 -translate-y-1/2\"\n : \"-top-12 left-1/2 -translate-x-1/2 rotate-90\",\n className,\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n {...props}\n >\n <ArrowLeft />\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n );\n}\n\n/** Navigation button to scroll to the next slide. Automatically disabled when at the end. */\nfunction CarouselNext({\n className,\n variant = \"outline\",\n size = \"icon\",\n ...props\n}: React.ComponentProps<typeof Button>) {\n const { orientation, scrollNext, canScrollNext } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-next\"\n variant={variant}\n size={size}\n className={cn(\n \"absolute size-8 rounded-full\",\n orientation === \"horizontal\"\n ? \"top-1/2 -right-12 -translate-y-1/2\"\n : \"-bottom-12 left-1/2 -translate-x-1/2 rotate-90\",\n className,\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n {...props}\n >\n <ArrowRight />\n <span className=\"sr-only\">Next slide</span>\n </Button>\n );\n}\n\nexport {\n type CarouselApi,\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselPrevious,\n CarouselNext,\n};\n"]}
|
package/dist/chunk-34ARZSNP.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-DGPY4WP3.js';
|
|
2
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
-
import { ChevronDownIcon } from 'lucide-react';
|
|
4
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function Accordion({
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
|
|
10
|
-
}
|
|
11
|
-
function AccordionItem({
|
|
12
|
-
className,
|
|
13
|
-
...props
|
|
14
|
-
}) {
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
-
AccordionPrimitive.Item,
|
|
17
|
-
{
|
|
18
|
-
"data-slot": "accordion-item",
|
|
19
|
-
className: cn("border-b last:border-b-0", className),
|
|
20
|
-
...props
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
function AccordionTrigger({
|
|
25
|
-
className,
|
|
26
|
-
children,
|
|
27
|
-
...props
|
|
28
|
-
}) {
|
|
29
|
-
return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
30
|
-
AccordionPrimitive.Trigger,
|
|
31
|
-
{
|
|
32
|
-
"data-slot": "accordion-trigger",
|
|
33
|
-
className: cn(
|
|
34
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-[var(--density-accordion)] text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
35
|
-
className
|
|
36
|
-
),
|
|
37
|
-
...props,
|
|
38
|
-
children: [
|
|
39
|
-
children,
|
|
40
|
-
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
) });
|
|
44
|
-
}
|
|
45
|
-
function AccordionContent({
|
|
46
|
-
className,
|
|
47
|
-
children,
|
|
48
|
-
...props
|
|
49
|
-
}) {
|
|
50
|
-
return /* @__PURE__ */ jsx(
|
|
51
|
-
AccordionPrimitive.Content,
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "accordion-content",
|
|
54
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
55
|
-
...props,
|
|
56
|
-
children: /* @__PURE__ */ jsx("div", { className: cn("pt-0 pb-[var(--density-accordion)]", className), children })
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
62
|
-
//# sourceMappingURL=chunk-34ARZSNP.js.map
|
|
63
|
-
//# sourceMappingURL=chunk-34ARZSNP.js.map
|