@omnifyjp/ui 0.5.3 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -6
- package/dist/chunk-2C2HRGM7.js +51 -0
- package/dist/chunk-2C2HRGM7.js.map +1 -0
- package/dist/chunk-2TUWDXAC.js +196 -0
- package/dist/chunk-2TUWDXAC.js.map +1 -0
- package/dist/chunk-34ARZSNP.js +63 -0
- package/dist/chunk-34ARZSNP.js.map +1 -0
- package/dist/chunk-35DNN46W.js +13 -0
- package/dist/chunk-35DNN46W.js.map +1 -0
- package/dist/chunk-35U6QG4P.js +116 -0
- package/dist/chunk-35U6QG4P.js.map +1 -0
- package/dist/chunk-3EOHW4QN.js +35 -0
- package/dist/chunk-3EOHW4QN.js.map +1 -0
- package/dist/chunk-3VU56V66.js +41 -0
- package/dist/chunk-3VU56V66.js.map +1 -0
- package/dist/chunk-55E7D2HR.js +99 -0
- package/dist/chunk-55E7D2HR.js.map +1 -0
- package/dist/chunk-67YUL2ZS.js +53 -0
- package/dist/chunk-67YUL2ZS.js.map +1 -0
- package/dist/chunk-6DIDQ4TB.js +131 -0
- package/dist/chunk-6DIDQ4TB.js.map +1 -0
- package/dist/chunk-6GWVQB3Q.js +155 -0
- package/dist/chunk-6GWVQB3Q.js.map +1 -0
- package/dist/chunk-75WZR6HF.js +44 -0
- package/dist/chunk-75WZR6HF.js.map +1 -0
- package/dist/chunk-7IRLBU2I.js +114 -0
- package/dist/chunk-7IRLBU2I.js.map +1 -0
- package/dist/chunk-7RMTPT6O.js +99 -0
- package/dist/chunk-7RMTPT6O.js.map +1 -0
- package/dist/chunk-7XH3MGBR.js +128 -0
- package/dist/chunk-7XH3MGBR.js.map +1 -0
- package/dist/chunk-A3BB5ZOC.js +77 -0
- package/dist/chunk-A3BB5ZOC.js.map +1 -0
- package/dist/chunk-BAQWGQJG.js +106 -0
- package/dist/chunk-BAQWGQJG.js.map +1 -0
- package/dist/chunk-BRSM3SZP.js +46 -0
- package/dist/chunk-BRSM3SZP.js.map +1 -0
- package/dist/chunk-C34KSTWA.js +43 -0
- package/dist/chunk-C34KSTWA.js.map +1 -0
- package/dist/chunk-C5NZAOA7.js +54 -0
- package/dist/chunk-C5NZAOA7.js.map +1 -0
- package/dist/chunk-CUZR4JWM.js +23 -0
- package/dist/chunk-CUZR4JWM.js.map +1 -0
- package/dist/chunk-DGPY4WP3.js +11 -0
- package/dist/chunk-DGPY4WP3.js.map +1 -0
- package/dist/chunk-EWBCV7VA.js +65 -0
- package/dist/chunk-EWBCV7VA.js.map +1 -0
- package/dist/chunk-F2ZJLKDP.js +119 -0
- package/dist/chunk-F2ZJLKDP.js.map +1 -0
- package/dist/chunk-FLWMT4DB.js +66 -0
- package/dist/chunk-FLWMT4DB.js.map +1 -0
- package/dist/chunk-FRKG7JQY.js +48 -0
- package/dist/chunk-FRKG7JQY.js.map +1 -0
- package/dist/chunk-G7HTZBUR.js +187 -0
- package/dist/chunk-G7HTZBUR.js.map +1 -0
- package/dist/chunk-IAWKX5W4.js +219 -0
- package/dist/chunk-IAWKX5W4.js.map +1 -0
- package/dist/chunk-INLM7UJC.js +238 -0
- package/dist/chunk-INLM7UJC.js.map +1 -0
- package/dist/chunk-JAJMM32I.js +18 -0
- package/dist/chunk-JAJMM32I.js.map +1 -0
- package/dist/chunk-JJSVA3TH.js +61 -0
- package/dist/chunk-JJSVA3TH.js.map +1 -0
- package/dist/chunk-JLTBUACL.js +121 -0
- package/dist/chunk-JLTBUACL.js.map +1 -0
- package/dist/chunk-JRU2QX7T.js +38 -0
- package/dist/chunk-JRU2QX7T.js.map +1 -0
- package/dist/chunk-JXGRW2MR.js +17 -0
- package/dist/chunk-JXGRW2MR.js.map +1 -0
- package/dist/chunk-LMT327XH.js +56 -0
- package/dist/chunk-LMT327XH.js.map +1 -0
- package/dist/chunk-LTTNCAAA.js +138 -0
- package/dist/chunk-LTTNCAAA.js.map +1 -0
- package/dist/chunk-MJLFJPUG.js +143 -0
- package/dist/chunk-MJLFJPUG.js.map +1 -0
- package/dist/chunk-MZ2P566X.js +65 -0
- package/dist/chunk-MZ2P566X.js.map +1 -0
- package/dist/chunk-N47H4MHX.js +41 -0
- package/dist/chunk-N47H4MHX.js.map +1 -0
- package/dist/chunk-NNJTKHCE.js +160 -0
- package/dist/chunk-NNJTKHCE.js.map +1 -0
- package/dist/chunk-NPL2R5LD.js +171 -0
- package/dist/chunk-NPL2R5LD.js.map +1 -0
- package/dist/chunk-NU56GKGM.js +44 -0
- package/dist/chunk-NU56GKGM.js.map +1 -0
- package/dist/chunk-P3M5TZD2.js +24 -0
- package/dist/chunk-P3M5TZD2.js.map +1 -0
- package/dist/chunk-PGWNOZDX.js +28 -0
- package/dist/chunk-PGWNOZDX.js.map +1 -0
- package/dist/chunk-QB3UWRZH.js +92 -0
- package/dist/chunk-QB3UWRZH.js.map +1 -0
- package/dist/chunk-R2CDE5DO.js +33 -0
- package/dist/chunk-R2CDE5DO.js.map +1 -0
- package/dist/chunk-RQNZDWY3.js +65 -0
- package/dist/chunk-RQNZDWY3.js.map +1 -0
- package/dist/chunk-S6PDRGR5.js +109 -0
- package/dist/chunk-S6PDRGR5.js.map +1 -0
- package/dist/chunk-TGYQ3AKH.js +95 -0
- package/dist/chunk-TGYQ3AKH.js.map +1 -0
- package/dist/chunk-TJMK2KBE.js +112 -0
- package/dist/chunk-TJMK2KBE.js.map +1 -0
- package/dist/chunk-USIHM7FV.js +211 -0
- package/dist/chunk-USIHM7FV.js.map +1 -0
- package/dist/chunk-VVYSAGB3.js +104 -0
- package/dist/chunk-VVYSAGB3.js.map +1 -0
- package/dist/chunk-WD5KZE25.js +25 -0
- package/dist/chunk-WD5KZE25.js.map +1 -0
- package/dist/chunk-WL4ZO2H3.js +33 -0
- package/dist/chunk-WL4ZO2H3.js.map +1 -0
- package/dist/chunk-WRCHR4AK.js +23 -0
- package/dist/chunk-WRCHR4AK.js.map +1 -0
- package/dist/chunk-WS6E7HBT.js +39 -0
- package/dist/chunk-WS6E7HBT.js.map +1 -0
- package/dist/chunk-XOJJBNDX.js +33 -0
- package/dist/chunk-XOJJBNDX.js.map +1 -0
- package/dist/chunk-YBMEQZX7.js +164 -0
- package/dist/chunk-YBMEQZX7.js.map +1 -0
- package/dist/chunk-Z2QAABLM.js +86 -0
- package/dist/chunk-Z2QAABLM.js.map +1 -0
- package/dist/chunk-ZHEKDP5X.js +41 -0
- package/dist/chunk-ZHEKDP5X.js.map +1 -0
- package/dist/chunk-ZPMXRW2A.js +63 -0
- package/dist/chunk-ZPMXRW2A.js.map +1 -0
- package/dist/chunk-ZYEGBF7G.js +25 -0
- package/dist/chunk-ZYEGBF7G.js.map +1 -0
- package/dist/components/accordion.d.ts +37 -0
- package/dist/components/accordion.js +4 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +56 -0
- package/dist/components/alert-dialog.js +5 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +68 -0
- package/dist/components/alert.js +4 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/aspect-ratio.d.ts +23 -0
- package/dist/components/aspect-ratio.js +3 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/avatar.d.ts +48 -0
- package/dist/components/avatar.js +4 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +52 -0
- package/dist/components/badge.js +4 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +50 -0
- package/dist/components/breadcrumb.js +4 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button.d.ts +81 -0
- package/dist/components/button.js +4 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar-category-badge.d.ts +24 -0
- package/dist/components/calendar-category-badge.js +5 -0
- package/dist/components/calendar-category-badge.js.map +1 -0
- package/dist/components/calendar-event-chip.d.ts +41 -0
- package/dist/components/calendar-event-chip.js +30 -0
- package/dist/components/calendar-event-chip.js.map +1 -0
- package/dist/components/calendar-event-sheet.d.ts +68 -0
- package/dist/components/calendar-event-sheet.js +83 -0
- package/dist/components/calendar-event-sheet.js.map +1 -0
- package/dist/components/calendar-mini.d.ts +65 -0
- package/dist/components/calendar-mini.js +93 -0
- package/dist/components/calendar-mini.js.map +1 -0
- package/dist/components/calendar-toolbar.d.ts +58 -0
- package/dist/components/calendar-toolbar.js +54 -0
- package/dist/components/calendar-toolbar.js.map +1 -0
- package/dist/components/calendar.d.ts +19 -0
- package/dist/components/calendar.js +5 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.d.ts +43 -0
- package/dist/components/card.js +4 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel.d.ts +53 -0
- package/dist/components/carousel.js +5 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/chart.d.ts +125 -0
- package/dist/components/chart.js +239 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.d.ts +24 -0
- package/dist/components/checkbox.js +4 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/collapsible.d.ts +28 -0
- package/dist/components/collapsible.js +3 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/color-picker.d.ts +35 -0
- package/dist/components/color-picker.js +7 -0
- package/dist/components/color-picker.js.map +1 -0
- package/dist/components/combobox.d.ts +98 -0
- package/dist/components/combobox.js +8 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/command.d.ts +63 -0
- package/dist/components/command.js +5 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/context-menu.d.ts +70 -0
- package/dist/components/context-menu.js +4 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/date-picker.d.ts +71 -0
- package/dist/components/date-picker.js +90 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/dialog.d.ts +58 -0
- package/dist/components/dialog.js +4 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/drawer.d.ts +60 -0
- package/dist/components/drawer.js +4 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +76 -0
- package/dist/components/dropdown-menu.js +4 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/file-upload.d.ts +44 -0
- package/dist/components/file-upload.js +5 -0
- package/dist/components/file-upload.js.map +1 -0
- package/dist/components/form.d.ts +67 -0
- package/dist/components/form.js +111 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/hover-card.d.ts +43 -0
- package/dist/components/hover-card.js +4 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-otp.d.ts +38 -0
- package/dist/components/input-otp.js +4 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.d.ts +38 -0
- package/dist/components/input.js +4 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.d.ts +20 -0
- package/dist/components/label.js +4 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/menubar.d.ts +82 -0
- package/dist/components/menubar.js +4 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/navigation-menu.d.ts +64 -0
- package/dist/components/navigation-menu.js +4 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/pagination.d.ts +59 -0
- package/dist/components/pagination.js +5 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/password-input.d.ts +32 -0
- package/dist/components/password-input.js +5 -0
- package/dist/components/password-input.js.map +1 -0
- package/dist/components/permission-grid.d.ts +67 -0
- package/dist/components/permission-grid.js +5 -0
- package/dist/components/permission-grid.js.map +1 -0
- package/dist/components/popover.d.ts +37 -0
- package/dist/components/popover.js +4 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +20 -0
- package/dist/components/progress.js +4 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.d.ts +38 -0
- package/dist/components/radio-group.js +4 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/rating.d.ts +35 -0
- package/dist/components/rating.js +4 -0
- package/dist/components/rating.js.map +1 -0
- package/dist/components/resizable.d.ts +36 -0
- package/dist/components/resizable.js +4 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scope-tree.d.ts +78 -0
- package/dist/components/scope-tree.js +5 -0
- package/dist/components/scope-tree.js.map +1 -0
- package/dist/components/scope-type-badge.d.ts +35 -0
- package/dist/components/scope-type-badge.js +5 -0
- package/dist/components/scope-type-badge.js.map +1 -0
- package/dist/components/scroll-area.d.ts +29 -0
- package/dist/components/scroll-area.js +4 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.d.ts +52 -0
- package/dist/components/select.js +4 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +24 -0
- package/dist/components/separator.js +4 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.d.ts +51 -0
- package/dist/components/sheet.js +4 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/skeleton.d.ts +25 -0
- package/dist/components/skeleton.js +4 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +24 -0
- package/dist/components/slider.js +4 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/slug-input.d.ts +50 -0
- package/dist/components/slug-input.js +6 -0
- package/dist/components/slug-input.js.map +1 -0
- package/dist/components/sonner.d.ts +22 -0
- package/dist/components/sonner.js +3 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/stage-type-badge.d.ts +30 -0
- package/dist/components/stage-type-badge.js +5 -0
- package/dist/components/stage-type-badge.js.map +1 -0
- package/dist/components/switch.d.ts +26 -0
- package/dist/components/switch.js +4 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +57 -0
- package/dist/components/table.js +4 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +39 -0
- package/dist/components/tabs.js +4 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/tag-input.d.ts +40 -0
- package/dist/components/tag-input.js +5 -0
- package/dist/components/tag-input.js.map +1 -0
- package/dist/components/textarea.d.ts +21 -0
- package/dist/components/textarea.js +4 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/time-picker.d.ts +57 -0
- package/dist/components/time-picker.js +8 -0
- package/dist/components/time-picker.js.map +1 -0
- package/dist/components/toggle-group.d.ts +45 -0
- package/dist/components/toggle-group.js +5 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +31 -0
- package/dist/components/toggle.js +4 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.d.ts +34 -0
- package/dist/components/tooltip.js +4 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/workflow-category-badge.d.ts +32 -0
- package/dist/components/workflow-category-badge.js +5 -0
- package/dist/components/workflow-category-badge.js.map +1 -0
- package/dist/components/workflow-diagram.d.ts +63 -0
- package/dist/components/workflow-diagram.js +5 -0
- package/dist/components/workflow-diagram.js.map +1 -0
- package/dist/components/workflow-status-badge.d.ts +30 -0
- package/dist/components/workflow-status-badge.js +5 -0
- package/dist/components/workflow-status-badge.js.map +1 -0
- package/dist/components/workflow-stepper.d.ts +52 -0
- package/dist/components/workflow-stepper.js +4 -0
- package/dist/components/workflow-stepper.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +3 -3
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/index.d.ts +98 -16
- package/dist/index.js +62 -13
- package/dist/lib/types.d.ts +84 -1
- package/dist/lib/types.js +1 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/utils.d.ts +5 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/package.json +68 -31
- package/src/styles/fonts.css +0 -0
- package/src/styles/index.css +3 -1
- package/src/styles/tailwind.css +4 -0
- package/src/styles/theme.css +461 -0
- package/dist/chunk-2GN4WIOV.js +0 -240
- package/dist/chunk-2GN4WIOV.js.map +0 -1
- package/dist/chunk-5BL4VFRJ.js +0 -57
- package/dist/chunk-5BL4VFRJ.js.map +0 -1
- package/dist/chunk-735JNJJO.js +0 -27
- package/dist/chunk-735JNJJO.js.map +0 -1
- package/dist/chunk-EJEVW4RO.js +0 -49
- package/dist/chunk-EJEVW4RO.js.map +0 -1
- package/dist/chunk-FVOQZTHE.js +0 -191
- package/dist/chunk-FVOQZTHE.js.map +0 -1
- package/dist/chunk-ITXOZ4IR.js +0 -85
- package/dist/chunk-ITXOZ4IR.js.map +0 -1
- package/dist/chunk-NVPNMQSR.js +0 -30
- package/dist/chunk-NVPNMQSR.js.map +0 -1
- package/dist/chunk-O25D7DCP.js +0 -72
- package/dist/chunk-O25D7DCP.js.map +0 -1
- package/dist/chunk-O2ADW2GC.js +0 -224
- package/dist/chunk-O2ADW2GC.js.map +0 -1
- package/dist/chunk-OY3PSPA5.js +0 -661
- package/dist/chunk-OY3PSPA5.js.map +0 -1
- package/dist/chunk-UASABUQA.js +0 -39
- package/dist/chunk-UASABUQA.js.map +0 -1
- package/dist/chunk-UR2QLIS2.js +0 -93
- package/dist/chunk-UR2QLIS2.js.map +0 -1
- package/dist/chunk-XDXGUPCR.js +0 -123
- package/dist/chunk-XDXGUPCR.js.map +0 -1
- package/dist/components/AppShell.d.ts +0 -27
- package/dist/components/AppShell.js +0 -13
- package/dist/components/AppShell.js.map +0 -1
- package/dist/components/Header.d.ts +0 -11
- package/dist/components/Header.js +0 -9
- package/dist/components/Header.js.map +0 -1
- package/dist/components/LanguageSelector.d.ts +0 -11
- package/dist/components/LanguageSelector.js +0 -5
- package/dist/components/LanguageSelector.js.map +0 -1
- package/dist/components/OrganizationSelector.d.ts +0 -8
- package/dist/components/OrganizationSelector.js +0 -4
- package/dist/components/OrganizationSelector.js.map +0 -1
- package/dist/components/OrganizationSetupModal.d.ts +0 -5
- package/dist/components/OrganizationSetupModal.js +0 -4
- package/dist/components/OrganizationSetupModal.js.map +0 -1
- package/dist/components/PageContainer.d.ts +0 -105
- package/dist/components/PageContainer.js +0 -3
- package/dist/components/PageContainer.js.map +0 -1
- package/dist/components/ServiceMenu.d.ts +0 -11
- package/dist/components/ServiceMenu.js +0 -3
- package/dist/components/ServiceMenu.js.map +0 -1
- package/dist/components/Sidebar.d.ts +0 -11
- package/dist/components/Sidebar.js +0 -5
- package/dist/components/Sidebar.js.map +0 -1
- package/dist/contexts/LanguageContext.d.ts +0 -17
- package/dist/contexts/LanguageContext.js +0 -4
- package/dist/contexts/LanguageContext.js.map +0 -1
- package/dist/contexts/OrganizationContext.d.ts +0 -28
- package/dist/contexts/OrganizationContext.js +0 -3
- package/dist/contexts/OrganizationContext.js.map +0 -1
- package/dist/contexts/ThemeContext.d.ts +0 -14
- package/dist/contexts/ThemeContext.js +0 -3
- package/dist/contexts/ThemeContext.js.map +0 -1
- package/dist/hooks/useDateFormat.d.ts +0 -28
- package/dist/hooks/useDateFormat.js +0 -4
- package/dist/hooks/useDateFormat.js.map +0 -1
- package/dist/i18n.d.ts +0 -38
- package/dist/i18n.js +0 -3
- package/dist/i18n.js.map +0 -1
- package/dist/types.d.ts +0 -91
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"scope-tree.js"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"scope-type-badge.js"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"scroll-area.js"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 };
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"select.js"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"separator.js"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"sheet.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"skeleton.js"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
|
+
|
|
5
|
+
type SliderProps = React.ComponentProps<typeof SliderPrimitive.Root>;
|
|
6
|
+
/**
|
|
7
|
+
* Draggable range input for selecting a numeric value or range within a given min/max.
|
|
8
|
+
* Supports single-thumb and multi-thumb modes, as well as vertical orientation.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Single value
|
|
13
|
+
* <Slider defaultValue={[50]} max={100} step={1} />
|
|
14
|
+
*
|
|
15
|
+
* // Range (two thumbs)
|
|
16
|
+
* <Slider defaultValue={[25, 75]} max={100} step={5} />
|
|
17
|
+
*
|
|
18
|
+
* // Controlled
|
|
19
|
+
* <Slider value={[volume]} onValueChange={([v]) => setVolume(v)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
export { Slider, type SliderProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"slider.js"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Customizable labels for the SlugInput component. */
|
|
4
|
+
interface SlugInputLabels {
|
|
5
|
+
/** Label text above the slug input field. */
|
|
6
|
+
slug: string;
|
|
7
|
+
/** Helper text below the slug input. */
|
|
8
|
+
autoGenerated: string;
|
|
9
|
+
/** Placeholder shown inside the slug input. */
|
|
10
|
+
placeholder: string;
|
|
11
|
+
}
|
|
12
|
+
interface SlugInputProps {
|
|
13
|
+
/** Source title string from which the slug is auto-generated. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** Current slug value. */
|
|
16
|
+
slug: string;
|
|
17
|
+
/** Callback fired when the slug changes (auto-generated or manually edited). */
|
|
18
|
+
onSlugChange: (slug: string) => void;
|
|
19
|
+
/** Whether auto-generation from title is disabled and slug is manually editable only. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Override default label strings for localization. */
|
|
22
|
+
labels?: Partial<SlugInputLabels>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Generates a URL-friendly slug from a text string.
|
|
26
|
+
* Handles Vietnamese diacritics and other special characters.
|
|
27
|
+
*/
|
|
28
|
+
declare function generateSlug(text: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* URL slug input that auto-generates a slug from a title string.
|
|
31
|
+
* Handles Vietnamese diacritics and special characters via `generateSlug`.
|
|
32
|
+
* The slug updates automatically when the title changes (unless `disabled` is true).
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* const [title, setTitle] = useState("My Blog Post");
|
|
37
|
+
* const [slug, setSlug] = useState("");
|
|
38
|
+
*
|
|
39
|
+
* <Input value={title} onChange={(e) => setTitle(e.target.value)} />
|
|
40
|
+
* <SlugInput
|
|
41
|
+
* title={title}
|
|
42
|
+
* slug={slug}
|
|
43
|
+
* onSlugChange={setSlug}
|
|
44
|
+
* />
|
|
45
|
+
* // slug will auto-populate as "my-blog-post"
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare function SlugInput({ title, slug, onSlugChange, disabled, labels: labelOverrides, }: SlugInputProps): react_jsx_runtime.JSX.Element;
|
|
49
|
+
|
|
50
|
+
export { SlugInput, type SlugInputLabels, type SlugInputProps, generateSlug };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"slug-input.js"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ToasterProps } from 'sonner';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Toast notification container powered by the Sonner library.
|
|
6
|
+
* Renders toast messages at a configurable position on screen.
|
|
7
|
+
* Place this once at the root of your app, then use `toast()` to trigger notifications.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* // In your root layout:
|
|
12
|
+
* <Toaster />
|
|
13
|
+
*
|
|
14
|
+
* // Anywhere in your app:
|
|
15
|
+
* import { toast } from "sonner";
|
|
16
|
+
* toast.success("Changes saved");
|
|
17
|
+
* toast.error("Something went wrong");
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { Toaster };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"sonner.js"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Supported stage types with built-in icon and color mappings. */
|
|
4
|
+
type StageType = 'approval' | 'review' | 'notification' | 'conditional';
|
|
5
|
+
interface StageTypeBadgeProps {
|
|
6
|
+
/** The stage type key. Determines the icon and color. */
|
|
7
|
+
type: StageType;
|
|
8
|
+
/** The displayed label text. Defaults to a capitalized version of the type. */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Optional additional className. */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* StageTypeBadge renders a badge with an icon and color for a workflow stage type.
|
|
15
|
+
*
|
|
16
|
+
* Each type has a dedicated icon and color scheme:
|
|
17
|
+
* - approval: CheckCircle (green)
|
|
18
|
+
* - review: Eye (blue)
|
|
19
|
+
* - notification: Bell (amber)
|
|
20
|
+
* - conditional: GitBranch (purple)
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <StageTypeBadge type="approval" />
|
|
25
|
+
* <StageTypeBadge type="review" label="Peer Review" />
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare function StageTypeBadge({ type, label, className }: StageTypeBadgeProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
export { type StageType, StageTypeBadge, type StageTypeBadgeProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"stage-type-badge.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
4
|
+
|
|
5
|
+
type SwitchProps = React.ComponentProps<typeof SwitchPrimitives.Root>;
|
|
6
|
+
/**
|
|
7
|
+
* Toggle switch for boolean on/off states, styled as a sliding pill.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* // Uncontrolled
|
|
12
|
+
* <Switch defaultChecked />
|
|
13
|
+
*
|
|
14
|
+
* // Controlled
|
|
15
|
+
* <Switch checked={enabled} onCheckedChange={setEnabled} />
|
|
16
|
+
*
|
|
17
|
+
* // With label
|
|
18
|
+
* <div className="flex items-center gap-2">
|
|
19
|
+
* <Switch id="notifications" />
|
|
20
|
+
* <Label htmlFor="notifications">Enable notifications</Label>
|
|
21
|
+
* </div>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare function Switch({ className, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { Switch, type SwitchProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"switch.js"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Data table component with header, body, footer, row, head, cell, and caption sub-components.
|
|
6
|
+
*
|
|
7
|
+
* Renders inside a horizontally scrollable container. Uses density tokens for
|
|
8
|
+
* consistent header height (`h-table-head`) and cell padding.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Table>
|
|
13
|
+
* <TableHeader>
|
|
14
|
+
* <TableRow>
|
|
15
|
+
* <TableHead>Name</TableHead>
|
|
16
|
+
* <TableHead>Email</TableHead>
|
|
17
|
+
* <TableHead>Role</TableHead>
|
|
18
|
+
* </TableRow>
|
|
19
|
+
* </TableHeader>
|
|
20
|
+
* <TableBody>
|
|
21
|
+
* <TableRow>
|
|
22
|
+
* <TableCell>Alice</TableCell>
|
|
23
|
+
* <TableCell>alice@example.com</TableCell>
|
|
24
|
+
* <TableCell>Admin</TableCell>
|
|
25
|
+
* </TableRow>
|
|
26
|
+
* <TableRow>
|
|
27
|
+
* <TableCell>Bob</TableCell>
|
|
28
|
+
* <TableCell>bob@example.com</TableCell>
|
|
29
|
+
* <TableCell>Member</TableCell>
|
|
30
|
+
* </TableRow>
|
|
31
|
+
* </TableBody>
|
|
32
|
+
* <TableFooter>
|
|
33
|
+
* <TableRow>
|
|
34
|
+
* <TableCell colSpan={3}>2 users total</TableCell>
|
|
35
|
+
* </TableRow>
|
|
36
|
+
* </TableFooter>
|
|
37
|
+
* <TableCaption>A list of team members.</TableCaption>
|
|
38
|
+
* </Table>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
declare function Table({ className, ...props }: React.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
|
|
42
|
+
/** Table header container. Groups `TableRow` elements for column headings. */
|
|
43
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
|
|
44
|
+
/** Table body container. Groups `TableRow` elements for data rows. */
|
|
45
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
|
|
46
|
+
/** Table footer container. Renders with a muted background and top border. */
|
|
47
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Table row with hover highlight and selected state support via `data-state="selected"`. */
|
|
49
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
|
|
50
|
+
/** Table head cell. Renders as a `<th>` with density-based height (`h-table-head`). */
|
|
51
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
|
|
52
|
+
/** Table data cell. Renders as a `<td>` with consistent padding and alignment. */
|
|
53
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
|
|
54
|
+
/** Table caption displayed below the table in muted text. */
|
|
55
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"table.js"}
|