@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,35 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface RatingProps {
|
|
4
|
-
/** Current rating value (e.g., `3` or `3.5` with half stars). */
|
|
5
|
-
value?: number;
|
|
6
|
-
/** Callback fired when the user clicks a star. Receives the new rating number. */
|
|
7
|
-
onChange?: (value: number) => void;
|
|
8
|
-
/** Maximum number of stars. Defaults to `5`. */
|
|
9
|
-
max?: number;
|
|
10
|
-
/** Size of the star icons. Defaults to `"md"`. */
|
|
11
|
-
size?: "sm" | "md" | "lg";
|
|
12
|
-
/** Whether the rating is display-only (non-interactive). Defaults to `false`. */
|
|
13
|
-
readonly?: boolean;
|
|
14
|
-
/** Whether half-star ratings are enabled. Defaults to `false`. */
|
|
15
|
-
allowHalf?: boolean;
|
|
16
|
-
/** Additional CSS class for the outer container. */
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Star rating component with hover preview and optional half-star support.
|
|
21
|
-
* Shows filled/empty/half star icons and displays the numeric value beside the stars.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* const [rating, setRating] = useState(0);
|
|
26
|
-
*
|
|
27
|
-
* <Rating value={rating} onChange={setRating} max={5} />
|
|
28
|
-
*
|
|
29
|
-
* // Read-only display with half stars:
|
|
30
|
-
* <Rating value={3.5} readonly allowHalf />
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
declare function Rating({ value, onChange, max, size, readonly, allowHalf, className, }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
export { Rating };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"rating.js"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Resizable panel layout built on `react-resizable-panels`.
|
|
7
|
-
*
|
|
8
|
-
* Groups multiple `ResizablePanel` components separated by `ResizableHandle` drag handles.
|
|
9
|
-
* Supports horizontal (default) and vertical layouts via the `direction` prop.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <ResizablePanelGroup direction="horizontal">
|
|
14
|
-
* <ResizablePanel defaultSize={50}>
|
|
15
|
-
* <div className="p-4">Left panel</div>
|
|
16
|
-
* </ResizablePanel>
|
|
17
|
-
* <ResizableHandle withHandle />
|
|
18
|
-
* <ResizablePanel defaultSize={50}>
|
|
19
|
-
* <div className="p-4">Right panel</div>
|
|
20
|
-
* </ResizablePanel>
|
|
21
|
-
* </ResizablePanelGroup>
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>): react_jsx_runtime.JSX.Element;
|
|
25
|
-
/** Individual resizable panel. Use `defaultSize` (percentage) to set the initial width/height. */
|
|
26
|
-
declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>): react_jsx_runtime.JSX.Element;
|
|
27
|
-
/**
|
|
28
|
-
* Draggable handle between resizable panels.
|
|
29
|
-
*
|
|
30
|
-
* @param withHandle - When true, renders a visible grip icon on the handle for better discoverability.
|
|
31
|
-
*/
|
|
32
|
-
declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
33
|
-
withHandle?: boolean;
|
|
34
|
-
}): react_jsx_runtime.JSX.Element;
|
|
35
|
-
|
|
36
|
-
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"resizable.js"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { LucideIcon } from 'lucide-react';
|
|
3
|
-
|
|
4
|
-
/** A small badge displayed next to a tree node name. */
|
|
5
|
-
interface ScopeTreeBadge {
|
|
6
|
-
/** Badge display text. */
|
|
7
|
-
label: string;
|
|
8
|
-
/** Optional className to style this badge. */
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
/** A node in the scope tree hierarchy. */
|
|
12
|
-
interface ScopeTreeNode {
|
|
13
|
-
/** Unique identifier for this node, or `null` for root/global nodes. */
|
|
14
|
-
id: string | null;
|
|
15
|
-
/** Display name of this scope. */
|
|
16
|
-
name: string;
|
|
17
|
-
/** Scope type key (e.g. "global", "organization", "branch", "location"). Determines the icon. */
|
|
18
|
-
type: string;
|
|
19
|
-
/** Optional child nodes for nested hierarchy. */
|
|
20
|
-
children?: ScopeTreeNode[];
|
|
21
|
-
/** Optional badges displayed next to the node name. */
|
|
22
|
-
badges?: ScopeTreeBadge[];
|
|
23
|
-
}
|
|
24
|
-
/** Represents the currently selected scope in the tree. */
|
|
25
|
-
interface ScopeTreeSelectedScope {
|
|
26
|
-
/** The scope type key of the selected node. */
|
|
27
|
-
type: string;
|
|
28
|
-
/** The ID of the selected node, or `null` for root/global nodes. */
|
|
29
|
-
id: string | null;
|
|
30
|
-
}
|
|
31
|
-
/** Localizable labels for the scope tree. Currently reserved for future extensibility. */
|
|
32
|
-
interface ScopeTreeLabels {
|
|
33
|
-
/** No labels are required by default; provided for future extensibility. */
|
|
34
|
-
[key: string]: string;
|
|
35
|
-
}
|
|
36
|
-
interface ScopeTreeProps {
|
|
37
|
-
/** Tree data: an array of root-level scope nodes. */
|
|
38
|
-
nodes: ScopeTreeNode[];
|
|
39
|
-
/** The currently selected scope (type + id). Used for highlighting. */
|
|
40
|
-
selectedScope?: ScopeTreeSelectedScope;
|
|
41
|
-
/** Callback when a node is clicked. */
|
|
42
|
-
onSelect?: (scope: ScopeTreeSelectedScope) => void;
|
|
43
|
-
/** Localizable labels. Currently reserved for future extensibility. */
|
|
44
|
-
labels?: Partial<ScopeTreeLabels>;
|
|
45
|
-
/** Default expansion depth. Nodes at depth < this value start expanded. Defaults to `1`. */
|
|
46
|
-
defaultExpandDepth?: number;
|
|
47
|
-
/** Custom icon map keyed by scope type. Falls back to built-in icons for global/organization/branch/location. */
|
|
48
|
-
iconMap?: Record<string, LucideIcon>;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Hierarchical tree view for selecting organizational scopes (e.g. global,
|
|
52
|
-
* organization, branch, location). Nodes are expandable/collapsible with
|
|
53
|
-
* chevron icons. Each node type has a dedicated icon. Supports custom icons
|
|
54
|
-
* via `iconMap` and optional badges on nodes.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```tsx
|
|
58
|
-
* const nodes: ScopeTreeNode[] = [
|
|
59
|
-
* {
|
|
60
|
-
* id: null, name: "Global", type: "global",
|
|
61
|
-
* children: [
|
|
62
|
-
* { id: "org-1", name: "Acme Corp", type: "organization", children: [
|
|
63
|
-
* { id: "br-1", name: "Tokyo HQ", type: "branch" },
|
|
64
|
-
* ]},
|
|
65
|
-
* ],
|
|
66
|
-
* },
|
|
67
|
-
* ];
|
|
68
|
-
*
|
|
69
|
-
* <ScopeTree
|
|
70
|
-
* nodes={nodes}
|
|
71
|
-
* selectedScope={{ type: "branch", id: "br-1" }}
|
|
72
|
-
* onSelect={(scope) => setSelected(scope)}
|
|
73
|
-
* />
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
declare function ScopeTree({ nodes, selectedScope, onSelect, defaultExpandDepth, iconMap, }: ScopeTreeProps): react_jsx_runtime.JSX.Element;
|
|
77
|
-
|
|
78
|
-
export { ScopeTree, type ScopeTreeBadge, type ScopeTreeLabels, type ScopeTreeNode, type ScopeTreeProps, type ScopeTreeSelectedScope };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"scope-tree.js"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { LucideIcon } from 'lucide-react';
|
|
3
|
-
|
|
4
|
-
/** Custom style and icon overrides for a scope type badge. */
|
|
5
|
-
interface ScopeTypeBadgeStyles {
|
|
6
|
-
/** Tailwind className string for the badge background, text, and border colors. */
|
|
7
|
-
className: string;
|
|
8
|
-
/** Lucide icon component to display in the badge. */
|
|
9
|
-
icon: LucideIcon;
|
|
10
|
-
}
|
|
11
|
-
interface ScopeTypeBadgeProps {
|
|
12
|
-
/** The scope type key (e.g. "global", "organization", "branch", "location"). */
|
|
13
|
-
type: string;
|
|
14
|
-
/** The display label for the badge. */
|
|
15
|
-
label: string;
|
|
16
|
-
/** Optional className to append to the badge. */
|
|
17
|
-
className?: string;
|
|
18
|
-
/** Override default styles and icon for the given type. */
|
|
19
|
-
styles?: Partial<ScopeTypeBadgeStyles>;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Color-coded badge with an icon indicating a scope type. Ships with built-in
|
|
23
|
-
* styles for global (blue/Globe), organization (purple/Building2), branch
|
|
24
|
-
* (amber/GitBranch), and location (green/MapPin). Custom types fall back to
|
|
25
|
-
* global styling unless overridden via `styles`.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```tsx
|
|
29
|
-
* <ScopeTypeBadge type="organization" label="Organization" />
|
|
30
|
-
* <ScopeTypeBadge type="branch" label="Branch" />
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
declare function ScopeTypeBadge({ type, label, className, styles: styleOverrides, }: ScopeTypeBadgeProps): react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
export { ScopeTypeBadge, type ScopeTypeBadgeProps, type ScopeTypeBadgeStyles };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"scope-type-badge.js"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Custom scrollable container with styled scrollbar built on Radix ScrollArea.
|
|
7
|
-
*
|
|
8
|
-
* Replaces native browser scrollbars with a thin, themed scrollbar.
|
|
9
|
-
* Includes a vertical `ScrollBar` by default. Add a horizontal `ScrollBar`
|
|
10
|
-
* as a child if needed.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <ScrollArea className="h-72 w-48 rounded-md border">
|
|
15
|
-
* <div className="p-4">
|
|
16
|
-
* {items.map((item) => (
|
|
17
|
-
* <div key={item} className="py-2 text-sm">
|
|
18
|
-
* {item}
|
|
19
|
-
* </div>
|
|
20
|
-
* ))}
|
|
21
|
-
* </div>
|
|
22
|
-
* </ScrollArea>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
26
|
-
/** Styled scrollbar track and thumb. Set `orientation` to `"horizontal"` or `"vertical"` (default). */
|
|
27
|
-
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
28
|
-
|
|
29
|
-
export { ScrollArea, ScrollBar };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"scroll-area.js"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Select dropdown component built on Radix UI Select.
|
|
7
|
-
* Provides a styled, accessible dropdown for selecting a single value from a list.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* <Select value={value} onValueChange={setValue}>
|
|
12
|
-
* <SelectTrigger>
|
|
13
|
-
* <SelectValue placeholder="Choose..." />
|
|
14
|
-
* </SelectTrigger>
|
|
15
|
-
* <SelectContent>
|
|
16
|
-
* <SelectGroup>
|
|
17
|
-
* <SelectLabel>Fruits</SelectLabel>
|
|
18
|
-
* <SelectItem value="apple">Apple</SelectItem>
|
|
19
|
-
* <SelectItem value="banana">Banana</SelectItem>
|
|
20
|
-
* </SelectGroup>
|
|
21
|
-
* <SelectSeparator />
|
|
22
|
-
* <SelectGroup>
|
|
23
|
-
* <SelectLabel>Vegetables</SelectLabel>
|
|
24
|
-
* <SelectItem value="carrot">Carrot</SelectItem>
|
|
25
|
-
* </SelectGroup>
|
|
26
|
-
* </SelectContent>
|
|
27
|
-
* </Select>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
31
|
-
/** Groups related select items under an optional label. */
|
|
32
|
-
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
33
|
-
/** Displays the currently selected value or a placeholder. */
|
|
34
|
-
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
|
|
35
|
-
/** Button that toggles the select dropdown open/closed. */
|
|
36
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
37
|
-
size?: "sm" | "default";
|
|
38
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
39
|
-
/** Dropdown content container rendered in a portal. */
|
|
40
|
-
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
41
|
-
/** Non-interactive label rendered inside a SelectGroup. */
|
|
42
|
-
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
43
|
-
/** A selectable option within the dropdown. */
|
|
44
|
-
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
45
|
-
/** Visual separator between select groups or items. */
|
|
46
|
-
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
47
|
-
/** Scroll-up indicator shown when the list is scrollable. */
|
|
48
|
-
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
49
|
-
/** Scroll-down indicator shown when the list is scrollable. */
|
|
50
|
-
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from '../chunk-NNJTKHCE.js';
|
|
2
|
-
import '../chunk-DGPY4WP3.js';
|
|
3
|
-
//# sourceMappingURL=select.js.map
|
|
4
|
-
//# sourceMappingURL=select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"select.js"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
4
|
-
|
|
5
|
-
type SeparatorProps = React.ComponentProps<typeof SeparatorPrimitive.Root>;
|
|
6
|
-
/**
|
|
7
|
-
* Visual divider between content sections, rendered as a horizontal or vertical line.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* // Horizontal (default)
|
|
12
|
-
* <Separator />
|
|
13
|
-
*
|
|
14
|
-
* // Vertical divider in a flex row
|
|
15
|
-
* <div className="flex items-center gap-4">
|
|
16
|
-
* <span>Left</span>
|
|
17
|
-
* <Separator orientation="vertical" className="h-4" />
|
|
18
|
-
* <span>Right</span>
|
|
19
|
-
* </div>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
export { Separator, type SeparatorProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"separator.js"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Slide-out panel component built on Radix UI Dialog.
|
|
7
|
-
*
|
|
8
|
-
* A sheet slides in from the edge of the screen, ideal for navigation,
|
|
9
|
-
* filters, or supplementary content. Supports `top`, `right`, `bottom`,
|
|
10
|
-
* and `left` sides via the `side` prop on `SheetContent`.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <Sheet open={open} onOpenChange={setOpen}>
|
|
15
|
-
* <SheetTrigger asChild>
|
|
16
|
-
* <Button variant="outline">Open Sheet</Button>
|
|
17
|
-
* </SheetTrigger>
|
|
18
|
-
* <SheetContent side="right">
|
|
19
|
-
* <SheetHeader>
|
|
20
|
-
* <SheetTitle>Settings</SheetTitle>
|
|
21
|
-
* <SheetDescription>
|
|
22
|
-
* Adjust your preferences below.
|
|
23
|
-
* </SheetDescription>
|
|
24
|
-
* </SheetHeader>
|
|
25
|
-
* <div className="p-4">Content here</div>
|
|
26
|
-
* <SheetFooter>
|
|
27
|
-
* <Button onClick={() => setOpen(false)}>Done</Button>
|
|
28
|
-
* </SheetFooter>
|
|
29
|
-
* </SheetContent>
|
|
30
|
-
* </Sheet>
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
34
|
-
/** Element that opens the sheet when clicked. Use `asChild` to merge into your own button. */
|
|
35
|
-
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
36
|
-
/** Button that closes the sheet. Use `asChild` to merge into your own button. */
|
|
37
|
-
declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
38
|
-
/** Sliding content panel. Set `side` to control which edge it slides from (default: `"right"`). */
|
|
39
|
-
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
40
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
41
|
-
}): react_jsx_runtime.JSX.Element;
|
|
42
|
-
/** Container for SheetTitle and SheetDescription at the top of the sheet. */
|
|
43
|
-
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
44
|
-
/** Container for action buttons at the bottom of the sheet. Pushed to the bottom via `mt-auto`. */
|
|
45
|
-
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
46
|
-
/** Accessible title rendered inside SheetHeader. */
|
|
47
|
-
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
48
|
-
/** Accessible description rendered inside SheetHeader below the title. */
|
|
49
|
-
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
50
|
-
|
|
51
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
package/dist/components/sheet.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"sheet.js"}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import { Button } from './button.js';
|
|
6
|
-
import { Input } from './input.js';
|
|
7
|
-
import { Separator } from './separator.js';
|
|
8
|
-
import { TooltipContent } from './tooltip.js';
|
|
9
|
-
import '../types-CBVkScfB.js';
|
|
10
|
-
import '@radix-ui/react-separator';
|
|
11
|
-
import '@radix-ui/react-tooltip';
|
|
12
|
-
|
|
13
|
-
type SidebarContextProps = {
|
|
14
|
-
/** Current sidebar state: "expanded" or "collapsed". */
|
|
15
|
-
state: "expanded" | "collapsed";
|
|
16
|
-
/** Whether the sidebar is open (desktop). */
|
|
17
|
-
open: boolean;
|
|
18
|
-
/** Set the sidebar open state (desktop). */
|
|
19
|
-
setOpen: (open: boolean) => void;
|
|
20
|
-
/** Whether the sidebar is open (mobile). */
|
|
21
|
-
openMobile: boolean;
|
|
22
|
-
/** Set the sidebar open state (mobile). */
|
|
23
|
-
setOpenMobile: (open: boolean) => void;
|
|
24
|
-
/** Whether the current viewport is mobile-sized. */
|
|
25
|
-
isMobile: boolean;
|
|
26
|
-
/** Toggle the sidebar open/closed. */
|
|
27
|
-
toggleSidebar: () => void;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Hook to access sidebar state and controls.
|
|
31
|
-
* Must be used within a {@link SidebarProvider}.
|
|
32
|
-
*
|
|
33
|
-
* @returns The sidebar context value including `state`, `open`, `toggleSidebar`, etc.
|
|
34
|
-
* @throws If used outside of a SidebarProvider.
|
|
35
|
-
*/
|
|
36
|
-
declare function useSidebar(): SidebarContextProps;
|
|
37
|
-
/**
|
|
38
|
-
* Context provider that manages sidebar open/collapsed state, mobile detection,
|
|
39
|
-
* keyboard shortcut (Cmd/Ctrl+B), and cookie persistence.
|
|
40
|
-
* Wrap your layout with this provider before using any Sidebar components.
|
|
41
|
-
*
|
|
42
|
-
* @param defaultOpen - Initial open state for uncontrolled mode. Defaults to `true`.
|
|
43
|
-
* @param open - Controlled open state.
|
|
44
|
-
* @param onOpenChange - Callback when open state changes (controlled mode).
|
|
45
|
-
*/
|
|
46
|
-
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
47
|
-
/** Initial open state for uncontrolled usage. Defaults to `true`. */
|
|
48
|
-
defaultOpen?: boolean;
|
|
49
|
-
/** Controlled open state. */
|
|
50
|
-
open?: boolean;
|
|
51
|
-
/** Callback fired when the sidebar open state changes. */
|
|
52
|
-
onOpenChange?: (open: boolean) => void;
|
|
53
|
-
}): react_jsx_runtime.JSX.Element;
|
|
54
|
-
/**
|
|
55
|
-
* Application sidebar with collapsible groups, menus, and responsive behavior.
|
|
56
|
-
* Built on top of Sheet for mobile and native sidebar for desktop.
|
|
57
|
-
*
|
|
58
|
-
* @param side - Which side of the viewport the sidebar appears on. Defaults to `"left"`.
|
|
59
|
-
* @param variant - Visual variant: `"sidebar"` (default), `"floating"`, or `"inset"`.
|
|
60
|
-
* @param collapsible - Collapse behavior: `"offcanvas"` (default), `"icon"`, or `"none"`.
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```tsx
|
|
64
|
-
* <SidebarProvider>
|
|
65
|
-
* <Sidebar>
|
|
66
|
-
* <SidebarHeader>Logo</SidebarHeader>
|
|
67
|
-
* <SidebarContent>
|
|
68
|
-
* <SidebarGroup>
|
|
69
|
-
* <SidebarGroupLabel>Menu</SidebarGroupLabel>
|
|
70
|
-
* <SidebarMenu>
|
|
71
|
-
* <SidebarMenuItem>
|
|
72
|
-
* <SidebarMenuButton>Dashboard</SidebarMenuButton>
|
|
73
|
-
* </SidebarMenuItem>
|
|
74
|
-
* </SidebarMenu>
|
|
75
|
-
* </SidebarGroup>
|
|
76
|
-
* </SidebarContent>
|
|
77
|
-
* <SidebarFooter>Footer</SidebarFooter>
|
|
78
|
-
* </Sidebar>
|
|
79
|
-
* </SidebarProvider>
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
83
|
-
/** Which side the sidebar appears on. Defaults to `"left"`. */
|
|
84
|
-
side?: "left" | "right";
|
|
85
|
-
/** Visual variant. Defaults to `"sidebar"`. */
|
|
86
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
87
|
-
/** Collapse behavior. Defaults to `"offcanvas"`. */
|
|
88
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
89
|
-
}): react_jsx_runtime.JSX.Element;
|
|
90
|
-
/** Button that toggles the sidebar open/closed. Renders a `PanelLeftIcon` ghost button. */
|
|
91
|
-
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
92
|
-
/** Thin vertical rail on the sidebar edge that toggles the sidebar on click. */
|
|
93
|
-
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
|
|
94
|
-
/** Main content area that sits beside the sidebar. Use with `variant="inset"`. */
|
|
95
|
-
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
|
|
96
|
-
/** Search input styled for use inside the sidebar. */
|
|
97
|
-
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
98
|
-
/** Container for the top section of the sidebar (logo, org selector, etc.). */
|
|
99
|
-
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
100
|
-
/** Container for the bottom section of the sidebar (user menu, settings, etc.). */
|
|
101
|
-
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
102
|
-
/** Horizontal separator styled with sidebar border color. */
|
|
103
|
-
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
104
|
-
/** Scrollable content area between SidebarHeader and SidebarFooter. Houses SidebarGroup components. */
|
|
105
|
-
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
106
|
-
/** Logical grouping of sidebar items. Typically contains a SidebarGroupLabel and SidebarMenu. */
|
|
107
|
-
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
108
|
-
/** Small heading label for a SidebarGroup (e.g. "Navigation", "Projects"). */
|
|
109
|
-
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
110
|
-
asChild?: boolean;
|
|
111
|
-
}): react_jsx_runtime.JSX.Element;
|
|
112
|
-
/** Action button positioned at the top-right of a SidebarGroup (e.g. "Add" button). */
|
|
113
|
-
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
114
|
-
asChild?: boolean;
|
|
115
|
-
}): react_jsx_runtime.JSX.Element;
|
|
116
|
-
/** Wrapper for content inside a SidebarGroup, below the label. */
|
|
117
|
-
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
118
|
-
/** Unordered list container for SidebarMenuItem components. */
|
|
119
|
-
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
120
|
-
/** List item wrapper for a single sidebar menu entry. Contains a SidebarMenuButton. */
|
|
121
|
-
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
122
|
-
declare const sidebarMenuButtonVariants: (props?: ({
|
|
123
|
-
variant?: "default" | "outline" | null | undefined;
|
|
124
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
125
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
126
|
-
/**
|
|
127
|
-
* Clickable button inside a SidebarMenuItem. Supports size/variant variants,
|
|
128
|
-
* active state highlighting, and an optional tooltip shown when collapsed to icon mode.
|
|
129
|
-
*
|
|
130
|
-
* @param isActive - Whether this item is the current active route.
|
|
131
|
-
* @param tooltip - Tooltip text or TooltipContent props shown in collapsed icon mode.
|
|
132
|
-
* @param asChild - Merge props onto the child element instead of rendering a button.
|
|
133
|
-
*/
|
|
134
|
-
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
|
|
135
|
-
/** Render as child element via Radix Slot. */
|
|
136
|
-
asChild?: boolean;
|
|
137
|
-
/** Whether this menu item represents the active route. */
|
|
138
|
-
isActive?: boolean;
|
|
139
|
-
/** Tooltip shown when sidebar is collapsed to icon mode. */
|
|
140
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
141
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
142
|
-
/** Action button that appears to the right of a SidebarMenuButton (e.g. "more" or "delete"). */
|
|
143
|
-
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
|
|
144
|
-
asChild?: boolean;
|
|
145
|
-
/** When true, only shows on hover/focus of the parent menu item. */
|
|
146
|
-
showOnHover?: boolean;
|
|
147
|
-
}): react_jsx_runtime.JSX.Element;
|
|
148
|
-
/** Small count or status badge displayed to the right of a SidebarMenuButton. */
|
|
149
|
-
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
150
|
-
/** Loading skeleton placeholder for a sidebar menu item. */
|
|
151
|
-
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
152
|
-
/** Whether to show an icon skeleton alongside the text skeleton. */
|
|
153
|
-
showIcon?: boolean;
|
|
154
|
-
}): react_jsx_runtime.JSX.Element;
|
|
155
|
-
/** Nested sub-menu list with a left border, used for collapsible sub-navigation. */
|
|
156
|
-
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
157
|
-
/** List item wrapper for a single sub-menu entry inside SidebarMenuSub. */
|
|
158
|
-
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
159
|
-
/** Clickable link/button inside a SidebarMenuSubItem. Renders as an anchor by default. */
|
|
160
|
-
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
|
|
161
|
-
/** Render as child element via Radix Slot. */
|
|
162
|
-
asChild?: boolean;
|
|
163
|
-
/** Text size: `"sm"` (12px) or `"md"` (14px). Defaults to `"md"`. */
|
|
164
|
-
size?: "sm" | "md";
|
|
165
|
-
/** Whether this sub-menu item represents the active route. */
|
|
166
|
-
isActive?: boolean;
|
|
167
|
-
}): react_jsx_runtime.JSX.Element;
|
|
168
|
-
|
|
169
|
-
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 };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from '../chunk-XUVLD65E.js';
|
|
2
|
-
import '../chunk-C5NZAOA7.js';
|
|
3
|
-
import '../chunk-WRCHR4AK.js';
|
|
4
|
-
import '../chunk-JXGRW2MR.js';
|
|
5
|
-
import '../chunk-3VU56V66.js';
|
|
6
|
-
import '../chunk-JLTBUACL.js';
|
|
7
|
-
import '../chunk-PGWNOZDX.js';
|
|
8
|
-
import '../chunk-55E7D2HR.js';
|
|
9
|
-
import '../chunk-DGPY4WP3.js';
|
|
10
|
-
//# sourceMappingURL=sidebar.js.map
|
|
11
|
-
//# sourceMappingURL=sidebar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"sidebar.js"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
type SkeletonProps = React.ComponentProps<"div">;
|
|
4
|
-
/**
|
|
5
|
-
* Placeholder loading indicator with a pulse animation, used to represent
|
|
6
|
-
* content that is being fetched or rendered.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* // Text placeholder
|
|
11
|
-
* <Skeleton className="h-4 w-48" />
|
|
12
|
-
*
|
|
13
|
-
* // Circular avatar placeholder
|
|
14
|
-
* <Skeleton className="size-10 rounded-full" />
|
|
15
|
-
*
|
|
16
|
-
* // Card skeleton
|
|
17
|
-
* <div className="space-y-2">
|
|
18
|
-
* <Skeleton className="h-4 w-full" />
|
|
19
|
-
* <Skeleton className="h-4 w-3/4" />
|
|
20
|
-
* </div>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare function Skeleton({ className, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
24
|
-
|
|
25
|
-
export { Skeleton, type SkeletonProps };
|