@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/use-mobile.ts"],"names":[],"mappings":";;;AAEA,IAAM,iBAAA,GAAoB,GAAA;AAEnB,SAAS,WAAA,GAAc;AAC5B,EAAA,MAAM,CAAC,QAAA,EAAU,WAAW,CAAA,GAAU,KAAA,CAAA,QAAA;AAAA,IACpC;AAAA,GACF;AAEA,EAAM,gBAAU,MAAM;AACpB,IAAA,MAAM,MAAM,MAAA,CAAO,UAAA,CAAW,CAAA,YAAA,EAAe,iBAAA,GAAoB,CAAC,CAAA,GAAA,CAAK,CAAA;AACvE,IAAA,MAAM,WAAW,MAAM;AACrB,MAAA,WAAA,CAAY,MAAA,CAAO,aAAa,iBAAiB,CAAA;AAAA,IACnD,CAAA;AACA,IAAA,GAAA,CAAI,gBAAA,CAAiB,UAAU,QAAQ,CAAA;AACvC,IAAA,WAAA,CAAY,MAAA,CAAO,aAAa,iBAAiB,CAAA;AACjD,IAAA,OAAO,MAAM,GAAA,CAAI,mBAAA,CAAoB,QAAA,EAAU,QAAQ,CAAA;AAAA,EACzD,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,OAAO,CAAC,CAAC,QAAA;AACX","file":"chunk-WRCHR4AK.js","sourcesContent":["import * as React from \"react\";\n\nconst MOBILE_BREAKPOINT = 768;\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = React.useState<boolean | undefined>(\n undefined,\n );\n\n React.useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n };\n mql.addEventListener(\"change\", onChange);\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n return () => mql.removeEventListener(\"change\", onChange);\n }, []);\n\n return !!isMobile;\n}\n"]}
|
package/dist/chunk-XOJJBNDX.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-DGPY4WP3.js';
|
|
2
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function Switch({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
SwitchPrimitives.Root,
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "switch",
|
|
13
|
-
className: cn(
|
|
14
|
-
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-background focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
15
|
-
className
|
|
16
|
-
),
|
|
17
|
-
...props,
|
|
18
|
-
children: /* @__PURE__ */ jsx(
|
|
19
|
-
SwitchPrimitives.Thumb,
|
|
20
|
-
{
|
|
21
|
-
"data-slot": "switch-thumb",
|
|
22
|
-
className: cn(
|
|
23
|
-
"bg-card dark:data-[state=unchecked]:bg-card-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { Switch };
|
|
32
|
-
//# sourceMappingURL=chunk-XOJJBNDX.js.map
|
|
33
|
-
//# sourceMappingURL=chunk-XOJJBNDX.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/switch.tsx"],"names":[],"mappings":";;;;AAyBA,SAAS,MAAA,CAAO;AAAA,EACd,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAgB;AACd,EAAA,uBACE,GAAA;AAAA,IAAkB,gBAAA,CAAA,IAAA;AAAA,IAAjB;AAAA,MACC,WAAA,EAAU,QAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACT,6WAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA;AAAA,QAAkB,gBAAA,CAAA,KAAA;AAAA,QAAjB;AAAA,UACC,WAAA,EAAU,cAAA;AAAA,UACV,SAAA,EAAW,EAAA;AAAA,YACT;AAAA;AACF;AAAA;AACF;AAAA,GACF;AAEJ","file":"chunk-XOJJBNDX.js","sourcesContent":["import * as React from \"react\";\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\";\n\nimport { cn } from \"../lib/utils\";\n\ntype SwitchProps = React.ComponentProps<typeof SwitchPrimitives.Root>;\n\n/**\n * Toggle switch for boolean on/off states, styled as a sliding pill.\n *\n * @example\n * ```tsx\n * // Uncontrolled\n * <Switch defaultChecked />\n *\n * // Controlled\n * <Switch checked={enabled} onCheckedChange={setEnabled} />\n *\n * // With label\n * <div className=\"flex items-center gap-2\">\n * <Switch id=\"notifications\" />\n * <Label htmlFor=\"notifications\">Enable notifications</Label>\n * </div>\n * ```\n */\nfunction Switch({\n className,\n ...props\n}: SwitchProps) {\n return (\n <SwitchPrimitives.Root\n data-slot=\"switch\"\n className={cn(\n \"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-background focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n <SwitchPrimitives.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n \"bg-card dark:data-[state=unchecked]:bg-card-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0\",\n )}\n />\n </SwitchPrimitives.Root>\n );\n}\n\nexport { Switch };\nexport type { SwitchProps };\n"]}
|
package/dist/chunk-XUVLD65E.js
DELETED
|
@@ -1,617 +0,0 @@
|
|
|
1
|
-
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from './chunk-C5NZAOA7.js';
|
|
2
|
-
import { useIsMobile } from './chunk-WRCHR4AK.js';
|
|
3
|
-
import { Skeleton } from './chunk-JXGRW2MR.js';
|
|
4
|
-
import { Input } from './chunk-3VU56V66.js';
|
|
5
|
-
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from './chunk-JLTBUACL.js';
|
|
6
|
-
import { Separator } from './chunk-PGWNOZDX.js';
|
|
7
|
-
import { Button } from './chunk-55E7D2HR.js';
|
|
8
|
-
import { cn } from './chunk-DGPY4WP3.js';
|
|
9
|
-
import * as React from 'react';
|
|
10
|
-
import { PanelLeftIcon } from 'lucide-react';
|
|
11
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
12
|
-
import { cva } from 'class-variance-authority';
|
|
13
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
|
-
|
|
15
|
-
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
16
|
-
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
17
|
-
var SIDEBAR_WIDTH = "16rem";
|
|
18
|
-
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
19
|
-
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
20
|
-
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
21
|
-
var SidebarContext = React.createContext(null);
|
|
22
|
-
function useSidebar() {
|
|
23
|
-
const context = React.useContext(SidebarContext);
|
|
24
|
-
if (!context) {
|
|
25
|
-
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
26
|
-
}
|
|
27
|
-
return context;
|
|
28
|
-
}
|
|
29
|
-
function SidebarProvider({
|
|
30
|
-
defaultOpen = true,
|
|
31
|
-
open: openProp,
|
|
32
|
-
onOpenChange: setOpenProp,
|
|
33
|
-
className,
|
|
34
|
-
style,
|
|
35
|
-
children,
|
|
36
|
-
...props
|
|
37
|
-
}) {
|
|
38
|
-
const isMobile = useIsMobile();
|
|
39
|
-
const [openMobile, setOpenMobile] = React.useState(false);
|
|
40
|
-
const [_open, _setOpen] = React.useState(defaultOpen);
|
|
41
|
-
const open = openProp ?? _open;
|
|
42
|
-
const setOpen = React.useCallback(
|
|
43
|
-
(value) => {
|
|
44
|
-
const openState = typeof value === "function" ? value(open) : value;
|
|
45
|
-
if (setOpenProp) {
|
|
46
|
-
setOpenProp(openState);
|
|
47
|
-
} else {
|
|
48
|
-
_setOpen(openState);
|
|
49
|
-
}
|
|
50
|
-
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
51
|
-
},
|
|
52
|
-
[setOpenProp, open]
|
|
53
|
-
);
|
|
54
|
-
const toggleSidebar = React.useCallback(() => {
|
|
55
|
-
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
56
|
-
}, [isMobile, setOpen, setOpenMobile]);
|
|
57
|
-
React.useEffect(() => {
|
|
58
|
-
const handleKeyDown = (event) => {
|
|
59
|
-
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
60
|
-
event.preventDefault();
|
|
61
|
-
toggleSidebar();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
window.addEventListener("keydown", handleKeyDown);
|
|
65
|
-
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
66
|
-
}, [toggleSidebar]);
|
|
67
|
-
const state = open ? "expanded" : "collapsed";
|
|
68
|
-
const contextValue = React.useMemo(
|
|
69
|
-
() => ({
|
|
70
|
-
state,
|
|
71
|
-
open,
|
|
72
|
-
setOpen,
|
|
73
|
-
isMobile,
|
|
74
|
-
openMobile,
|
|
75
|
-
setOpenMobile,
|
|
76
|
-
toggleSidebar
|
|
77
|
-
}),
|
|
78
|
-
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
79
|
-
);
|
|
80
|
-
return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx(
|
|
81
|
-
"div",
|
|
82
|
-
{
|
|
83
|
-
"data-slot": "sidebar-wrapper",
|
|
84
|
-
style: {
|
|
85
|
-
"--sidebar-width": SIDEBAR_WIDTH,
|
|
86
|
-
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
87
|
-
...style
|
|
88
|
-
},
|
|
89
|
-
className: cn(
|
|
90
|
-
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
91
|
-
className
|
|
92
|
-
),
|
|
93
|
-
...props,
|
|
94
|
-
children
|
|
95
|
-
}
|
|
96
|
-
) }) });
|
|
97
|
-
}
|
|
98
|
-
function Sidebar({
|
|
99
|
-
side = "left",
|
|
100
|
-
variant = "sidebar",
|
|
101
|
-
collapsible = "offcanvas",
|
|
102
|
-
className,
|
|
103
|
-
children,
|
|
104
|
-
...props
|
|
105
|
-
}) {
|
|
106
|
-
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
107
|
-
if (collapsible === "none") {
|
|
108
|
-
return /* @__PURE__ */ jsx(
|
|
109
|
-
"div",
|
|
110
|
-
{
|
|
111
|
-
"data-slot": "sidebar",
|
|
112
|
-
className: cn(
|
|
113
|
-
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
114
|
-
className
|
|
115
|
-
),
|
|
116
|
-
...props,
|
|
117
|
-
children
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
if (isMobile) {
|
|
122
|
-
return /* @__PURE__ */ jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs(
|
|
123
|
-
SheetContent,
|
|
124
|
-
{
|
|
125
|
-
"data-sidebar": "sidebar",
|
|
126
|
-
"data-slot": "sidebar",
|
|
127
|
-
"data-mobile": "true",
|
|
128
|
-
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
129
|
-
style: {
|
|
130
|
-
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
131
|
-
},
|
|
132
|
-
side,
|
|
133
|
-
children: [
|
|
134
|
-
/* @__PURE__ */ jsxs(SheetHeader, { className: "sr-only", children: [
|
|
135
|
-
/* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }),
|
|
136
|
-
/* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
137
|
-
] }),
|
|
138
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-full w-full flex-col", children })
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
) });
|
|
142
|
-
}
|
|
143
|
-
return /* @__PURE__ */ jsxs(
|
|
144
|
-
"div",
|
|
145
|
-
{
|
|
146
|
-
className: "group peer text-sidebar-foreground hidden md:block",
|
|
147
|
-
"data-state": state,
|
|
148
|
-
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
149
|
-
"data-variant": variant,
|
|
150
|
-
"data-side": side,
|
|
151
|
-
"data-slot": "sidebar",
|
|
152
|
-
children: [
|
|
153
|
-
/* @__PURE__ */ jsx(
|
|
154
|
-
"div",
|
|
155
|
-
{
|
|
156
|
-
"data-slot": "sidebar-gap",
|
|
157
|
-
className: cn(
|
|
158
|
-
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
159
|
-
"group-data-[collapsible=offcanvas]:w-0",
|
|
160
|
-
"group-data-[side=right]:rotate-180",
|
|
161
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
162
|
-
)
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
/* @__PURE__ */ jsx(
|
|
166
|
-
"div",
|
|
167
|
-
{
|
|
168
|
-
"data-slot": "sidebar-container",
|
|
169
|
-
className: cn(
|
|
170
|
-
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
171
|
-
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
172
|
-
// Adjust the padding for floating and inset variants.
|
|
173
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
174
|
-
className
|
|
175
|
-
),
|
|
176
|
-
...props,
|
|
177
|
-
children: /* @__PURE__ */ jsx(
|
|
178
|
-
"div",
|
|
179
|
-
{
|
|
180
|
-
"data-sidebar": "sidebar",
|
|
181
|
-
"data-slot": "sidebar-inner",
|
|
182
|
-
className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
|
|
183
|
-
children
|
|
184
|
-
}
|
|
185
|
-
)
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
]
|
|
189
|
-
}
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
function SidebarTrigger({
|
|
193
|
-
className,
|
|
194
|
-
onClick,
|
|
195
|
-
...props
|
|
196
|
-
}) {
|
|
197
|
-
const { toggleSidebar } = useSidebar();
|
|
198
|
-
return /* @__PURE__ */ jsxs(
|
|
199
|
-
Button,
|
|
200
|
-
{
|
|
201
|
-
"data-sidebar": "trigger",
|
|
202
|
-
"data-slot": "sidebar-trigger",
|
|
203
|
-
variant: "ghost",
|
|
204
|
-
size: "icon",
|
|
205
|
-
className: cn("size-7", className),
|
|
206
|
-
onClick: (event) => {
|
|
207
|
-
onClick?.(event);
|
|
208
|
-
toggleSidebar();
|
|
209
|
-
},
|
|
210
|
-
...props,
|
|
211
|
-
children: [
|
|
212
|
-
/* @__PURE__ */ jsx(PanelLeftIcon, {}),
|
|
213
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
function SidebarRail({ className, ...props }) {
|
|
219
|
-
const { toggleSidebar } = useSidebar();
|
|
220
|
-
return /* @__PURE__ */ jsx(
|
|
221
|
-
"button",
|
|
222
|
-
{
|
|
223
|
-
"data-sidebar": "rail",
|
|
224
|
-
"data-slot": "sidebar-rail",
|
|
225
|
-
"aria-label": "Toggle Sidebar",
|
|
226
|
-
tabIndex: -1,
|
|
227
|
-
onClick: toggleSidebar,
|
|
228
|
-
title: "Toggle Sidebar",
|
|
229
|
-
className: cn(
|
|
230
|
-
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
|
|
231
|
-
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
232
|
-
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
233
|
-
"hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
|
|
234
|
-
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
235
|
-
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
236
|
-
className
|
|
237
|
-
),
|
|
238
|
-
...props
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
function SidebarInset({ className, ...props }) {
|
|
243
|
-
return /* @__PURE__ */ jsx(
|
|
244
|
-
"main",
|
|
245
|
-
{
|
|
246
|
-
"data-slot": "sidebar-inset",
|
|
247
|
-
className: cn(
|
|
248
|
-
"bg-background relative flex w-full flex-1 flex-col",
|
|
249
|
-
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
250
|
-
className
|
|
251
|
-
),
|
|
252
|
-
...props
|
|
253
|
-
}
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
function SidebarInput({
|
|
257
|
-
className,
|
|
258
|
-
...props
|
|
259
|
-
}) {
|
|
260
|
-
return /* @__PURE__ */ jsx(
|
|
261
|
-
Input,
|
|
262
|
-
{
|
|
263
|
-
"data-slot": "sidebar-input",
|
|
264
|
-
"data-sidebar": "input",
|
|
265
|
-
className: cn("bg-background h-8 w-full shadow-none", className),
|
|
266
|
-
...props
|
|
267
|
-
}
|
|
268
|
-
);
|
|
269
|
-
}
|
|
270
|
-
function SidebarHeader({ className, ...props }) {
|
|
271
|
-
return /* @__PURE__ */ jsx(
|
|
272
|
-
"div",
|
|
273
|
-
{
|
|
274
|
-
"data-slot": "sidebar-header",
|
|
275
|
-
"data-sidebar": "header",
|
|
276
|
-
className: cn("flex flex-col gap-2 p-2", className),
|
|
277
|
-
...props
|
|
278
|
-
}
|
|
279
|
-
);
|
|
280
|
-
}
|
|
281
|
-
function SidebarFooter({ className, ...props }) {
|
|
282
|
-
return /* @__PURE__ */ jsx(
|
|
283
|
-
"div",
|
|
284
|
-
{
|
|
285
|
-
"data-slot": "sidebar-footer",
|
|
286
|
-
"data-sidebar": "footer",
|
|
287
|
-
className: cn("flex flex-col gap-2 p-2", className),
|
|
288
|
-
...props
|
|
289
|
-
}
|
|
290
|
-
);
|
|
291
|
-
}
|
|
292
|
-
function SidebarSeparator({
|
|
293
|
-
className,
|
|
294
|
-
...props
|
|
295
|
-
}) {
|
|
296
|
-
return /* @__PURE__ */ jsx(
|
|
297
|
-
Separator,
|
|
298
|
-
{
|
|
299
|
-
"data-slot": "sidebar-separator",
|
|
300
|
-
"data-sidebar": "separator",
|
|
301
|
-
className: cn("bg-sidebar-border mx-2 w-auto", className),
|
|
302
|
-
...props
|
|
303
|
-
}
|
|
304
|
-
);
|
|
305
|
-
}
|
|
306
|
-
function SidebarContent({ className, ...props }) {
|
|
307
|
-
return /* @__PURE__ */ jsx(
|
|
308
|
-
"div",
|
|
309
|
-
{
|
|
310
|
-
"data-slot": "sidebar-content",
|
|
311
|
-
"data-sidebar": "content",
|
|
312
|
-
className: cn(
|
|
313
|
-
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
314
|
-
className
|
|
315
|
-
),
|
|
316
|
-
...props
|
|
317
|
-
}
|
|
318
|
-
);
|
|
319
|
-
}
|
|
320
|
-
function SidebarGroup({ className, ...props }) {
|
|
321
|
-
return /* @__PURE__ */ jsx(
|
|
322
|
-
"div",
|
|
323
|
-
{
|
|
324
|
-
"data-slot": "sidebar-group",
|
|
325
|
-
"data-sidebar": "group",
|
|
326
|
-
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
327
|
-
...props
|
|
328
|
-
}
|
|
329
|
-
);
|
|
330
|
-
}
|
|
331
|
-
function SidebarGroupLabel({
|
|
332
|
-
className,
|
|
333
|
-
asChild = false,
|
|
334
|
-
...props
|
|
335
|
-
}) {
|
|
336
|
-
const Comp = asChild ? Slot : "div";
|
|
337
|
-
return /* @__PURE__ */ jsx(
|
|
338
|
-
Comp,
|
|
339
|
-
{
|
|
340
|
-
"data-slot": "sidebar-group-label",
|
|
341
|
-
"data-sidebar": "group-label",
|
|
342
|
-
className: cn(
|
|
343
|
-
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
344
|
-
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
345
|
-
className
|
|
346
|
-
),
|
|
347
|
-
...props
|
|
348
|
-
}
|
|
349
|
-
);
|
|
350
|
-
}
|
|
351
|
-
function SidebarGroupAction({
|
|
352
|
-
className,
|
|
353
|
-
asChild = false,
|
|
354
|
-
...props
|
|
355
|
-
}) {
|
|
356
|
-
const Comp = asChild ? Slot : "button";
|
|
357
|
-
return /* @__PURE__ */ jsx(
|
|
358
|
-
Comp,
|
|
359
|
-
{
|
|
360
|
-
"data-slot": "sidebar-group-action",
|
|
361
|
-
"data-sidebar": "group-action",
|
|
362
|
-
className: cn(
|
|
363
|
-
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
364
|
-
// Increases the hit area of the button on mobile.
|
|
365
|
-
"after:absolute after:-inset-2 md:after:hidden",
|
|
366
|
-
"group-data-[collapsible=icon]:hidden",
|
|
367
|
-
className
|
|
368
|
-
),
|
|
369
|
-
...props
|
|
370
|
-
}
|
|
371
|
-
);
|
|
372
|
-
}
|
|
373
|
-
function SidebarGroupContent({
|
|
374
|
-
className,
|
|
375
|
-
...props
|
|
376
|
-
}) {
|
|
377
|
-
return /* @__PURE__ */ jsx(
|
|
378
|
-
"div",
|
|
379
|
-
{
|
|
380
|
-
"data-slot": "sidebar-group-content",
|
|
381
|
-
"data-sidebar": "group-content",
|
|
382
|
-
className: cn("w-full text-sm", className),
|
|
383
|
-
...props
|
|
384
|
-
}
|
|
385
|
-
);
|
|
386
|
-
}
|
|
387
|
-
function SidebarMenu({ className, ...props }) {
|
|
388
|
-
return /* @__PURE__ */ jsx(
|
|
389
|
-
"ul",
|
|
390
|
-
{
|
|
391
|
-
"data-slot": "sidebar-menu",
|
|
392
|
-
"data-sidebar": "menu",
|
|
393
|
-
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
394
|
-
...props
|
|
395
|
-
}
|
|
396
|
-
);
|
|
397
|
-
}
|
|
398
|
-
function SidebarMenuItem({ className, ...props }) {
|
|
399
|
-
return /* @__PURE__ */ jsx(
|
|
400
|
-
"li",
|
|
401
|
-
{
|
|
402
|
-
"data-slot": "sidebar-menu-item",
|
|
403
|
-
"data-sidebar": "menu-item",
|
|
404
|
-
className: cn("group/menu-item relative", className),
|
|
405
|
-
...props
|
|
406
|
-
}
|
|
407
|
-
);
|
|
408
|
-
}
|
|
409
|
-
var sidebarMenuButtonVariants = cva(
|
|
410
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
411
|
-
{
|
|
412
|
-
variants: {
|
|
413
|
-
variant: {
|
|
414
|
-
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
415
|
-
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
416
|
-
},
|
|
417
|
-
size: {
|
|
418
|
-
default: "h-8 text-sm",
|
|
419
|
-
sm: "h-7 text-xs",
|
|
420
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
defaultVariants: {
|
|
424
|
-
variant: "default",
|
|
425
|
-
size: "default"
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
);
|
|
429
|
-
function SidebarMenuButton({
|
|
430
|
-
asChild = false,
|
|
431
|
-
isActive = false,
|
|
432
|
-
variant = "default",
|
|
433
|
-
size = "default",
|
|
434
|
-
tooltip,
|
|
435
|
-
className,
|
|
436
|
-
...props
|
|
437
|
-
}) {
|
|
438
|
-
const Comp = asChild ? Slot : "button";
|
|
439
|
-
const { isMobile, state } = useSidebar();
|
|
440
|
-
const button = /* @__PURE__ */ jsx(
|
|
441
|
-
Comp,
|
|
442
|
-
{
|
|
443
|
-
"data-slot": "sidebar-menu-button",
|
|
444
|
-
"data-sidebar": "menu-button",
|
|
445
|
-
"data-size": size,
|
|
446
|
-
"data-active": isActive,
|
|
447
|
-
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
448
|
-
...props
|
|
449
|
-
}
|
|
450
|
-
);
|
|
451
|
-
if (!tooltip) {
|
|
452
|
-
return button;
|
|
453
|
-
}
|
|
454
|
-
if (typeof tooltip === "string") {
|
|
455
|
-
tooltip = {
|
|
456
|
-
children: tooltip
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
460
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: button }),
|
|
461
|
-
/* @__PURE__ */ jsx(
|
|
462
|
-
TooltipContent,
|
|
463
|
-
{
|
|
464
|
-
side: "right",
|
|
465
|
-
align: "center",
|
|
466
|
-
hidden: state !== "collapsed" || isMobile,
|
|
467
|
-
...tooltip
|
|
468
|
-
}
|
|
469
|
-
)
|
|
470
|
-
] });
|
|
471
|
-
}
|
|
472
|
-
function SidebarMenuAction({
|
|
473
|
-
className,
|
|
474
|
-
asChild = false,
|
|
475
|
-
showOnHover = false,
|
|
476
|
-
...props
|
|
477
|
-
}) {
|
|
478
|
-
const Comp = asChild ? Slot : "button";
|
|
479
|
-
return /* @__PURE__ */ jsx(
|
|
480
|
-
Comp,
|
|
481
|
-
{
|
|
482
|
-
"data-slot": "sidebar-menu-action",
|
|
483
|
-
"data-sidebar": "menu-action",
|
|
484
|
-
className: cn(
|
|
485
|
-
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
486
|
-
// Increases the hit area of the button on mobile.
|
|
487
|
-
"after:absolute after:-inset-2 md:after:hidden",
|
|
488
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
489
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
490
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
491
|
-
"group-data-[collapsible=icon]:hidden",
|
|
492
|
-
showOnHover && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
|
|
493
|
-
className
|
|
494
|
-
),
|
|
495
|
-
...props
|
|
496
|
-
}
|
|
497
|
-
);
|
|
498
|
-
}
|
|
499
|
-
function SidebarMenuBadge({
|
|
500
|
-
className,
|
|
501
|
-
...props
|
|
502
|
-
}) {
|
|
503
|
-
return /* @__PURE__ */ jsx(
|
|
504
|
-
"div",
|
|
505
|
-
{
|
|
506
|
-
"data-slot": "sidebar-menu-badge",
|
|
507
|
-
"data-sidebar": "menu-badge",
|
|
508
|
-
className: cn(
|
|
509
|
-
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
|
|
510
|
-
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
511
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
512
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
513
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
514
|
-
"group-data-[collapsible=icon]:hidden",
|
|
515
|
-
className
|
|
516
|
-
),
|
|
517
|
-
...props
|
|
518
|
-
}
|
|
519
|
-
);
|
|
520
|
-
}
|
|
521
|
-
function SidebarMenuSkeleton({
|
|
522
|
-
className,
|
|
523
|
-
showIcon = false,
|
|
524
|
-
...props
|
|
525
|
-
}) {
|
|
526
|
-
const width = React.useMemo(() => {
|
|
527
|
-
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
528
|
-
}, []);
|
|
529
|
-
return /* @__PURE__ */ jsxs(
|
|
530
|
-
"div",
|
|
531
|
-
{
|
|
532
|
-
"data-slot": "sidebar-menu-skeleton",
|
|
533
|
-
"data-sidebar": "menu-skeleton",
|
|
534
|
-
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
535
|
-
...props,
|
|
536
|
-
children: [
|
|
537
|
-
showIcon && /* @__PURE__ */ jsx(
|
|
538
|
-
Skeleton,
|
|
539
|
-
{
|
|
540
|
-
className: "size-4 rounded-md",
|
|
541
|
-
"data-sidebar": "menu-skeleton-icon"
|
|
542
|
-
}
|
|
543
|
-
),
|
|
544
|
-
/* @__PURE__ */ jsx(
|
|
545
|
-
Skeleton,
|
|
546
|
-
{
|
|
547
|
-
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
548
|
-
"data-sidebar": "menu-skeleton-text",
|
|
549
|
-
style: {
|
|
550
|
-
"--skeleton-width": width
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
)
|
|
554
|
-
]
|
|
555
|
-
}
|
|
556
|
-
);
|
|
557
|
-
}
|
|
558
|
-
function SidebarMenuSub({ className, ...props }) {
|
|
559
|
-
return /* @__PURE__ */ jsx(
|
|
560
|
-
"ul",
|
|
561
|
-
{
|
|
562
|
-
"data-slot": "sidebar-menu-sub",
|
|
563
|
-
"data-sidebar": "menu-sub",
|
|
564
|
-
className: cn(
|
|
565
|
-
"border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
|
|
566
|
-
"group-data-[collapsible=icon]:hidden",
|
|
567
|
-
className
|
|
568
|
-
),
|
|
569
|
-
...props
|
|
570
|
-
}
|
|
571
|
-
);
|
|
572
|
-
}
|
|
573
|
-
function SidebarMenuSubItem({
|
|
574
|
-
className,
|
|
575
|
-
...props
|
|
576
|
-
}) {
|
|
577
|
-
return /* @__PURE__ */ jsx(
|
|
578
|
-
"li",
|
|
579
|
-
{
|
|
580
|
-
"data-slot": "sidebar-menu-sub-item",
|
|
581
|
-
"data-sidebar": "menu-sub-item",
|
|
582
|
-
className: cn("group/menu-sub-item relative", className),
|
|
583
|
-
...props
|
|
584
|
-
}
|
|
585
|
-
);
|
|
586
|
-
}
|
|
587
|
-
function SidebarMenuSubButton({
|
|
588
|
-
asChild = false,
|
|
589
|
-
size = "md",
|
|
590
|
-
isActive = false,
|
|
591
|
-
className,
|
|
592
|
-
...props
|
|
593
|
-
}) {
|
|
594
|
-
const Comp = asChild ? Slot : "a";
|
|
595
|
-
return /* @__PURE__ */ jsx(
|
|
596
|
-
Comp,
|
|
597
|
-
{
|
|
598
|
-
"data-slot": "sidebar-menu-sub-button",
|
|
599
|
-
"data-sidebar": "menu-sub-button",
|
|
600
|
-
"data-size": size,
|
|
601
|
-
"data-active": isActive,
|
|
602
|
-
className: cn(
|
|
603
|
-
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
604
|
-
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
605
|
-
size === "sm" && "text-xs",
|
|
606
|
-
size === "md" && "text-sm",
|
|
607
|
-
"group-data-[collapsible=icon]:hidden",
|
|
608
|
-
className
|
|
609
|
-
),
|
|
610
|
-
...props
|
|
611
|
-
}
|
|
612
|
-
);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
616
|
-
//# sourceMappingURL=chunk-XUVLD65E.js.map
|
|
617
|
-
//# sourceMappingURL=chunk-XUVLD65E.js.map
|