@m5kdev/web-ui 0.6.0 → 0.8.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/dist/src/animations/card.motion.d.ts +7 -2
- package/dist/src/animations/card.motion.js +25 -6
- package/dist/src/animations/card.motion.js.map +1 -0
- package/dist/src/components/AvatarUpload.d.ts +14 -5
- package/dist/src/components/AvatarUpload.js +105 -63
- package/dist/src/components/AvatarUpload.js.map +1 -0
- package/dist/src/components/Button.d.ts +14 -4
- package/dist/src/components/Button.js +13 -4
- package/dist/src/components/Button.js.map +1 -0
- package/dist/src/components/Calendar.d.ts +33 -31
- package/dist/src/components/Calendar.js +14 -6
- package/dist/src/components/Calendar.js.map +1 -0
- package/dist/src/components/{Calendar.css → Calendar2.css} +757 -684
- package/dist/src/components/CardsSelect.d.ts +25 -21
- package/dist/src/components/CardsSelect.js +75 -42
- package/dist/src/components/CardsSelect.js.map +1 -0
- package/dist/src/components/CollapsibleSidebarMenuItem.d.ts +22 -9
- package/dist/src/components/CollapsibleSidebarMenuItem.js +31 -8
- package/dist/src/components/CollapsibleSidebarMenuItem.js.map +1 -0
- package/dist/src/components/ColorPicker.d.ts +15 -4
- package/dist/src/components/ColorPicker.js +46 -16
- package/dist/src/components/ColorPicker.js.map +1 -0
- package/dist/src/components/CopyButton.d.ts +18 -6
- package/dist/src/components/CopyButton.js +28 -19
- package/dist/src/components/CopyButton.js.map +1 -0
- package/dist/src/components/CropDialog.d.ts +20 -8
- package/dist/src/components/CropDialog.js +108 -62
- package/dist/src/components/CropDialog.js.map +1 -0
- package/dist/src/components/DialogProvider.d.ts +22 -14
- package/dist/src/components/DialogProvider.js +67 -45
- package/dist/src/components/DialogProvider.js.map +1 -0
- package/dist/src/components/ErrorFallback.d.ts +13 -4
- package/dist/src/components/ErrorFallback.js +29 -4
- package/dist/src/components/ErrorFallback.js.map +1 -0
- package/dist/src/components/FileDropzone.d.ts +12 -4
- package/dist/src/components/FileDropzone.js +98 -60
- package/dist/src/components/FileDropzone.js.map +1 -0
- package/dist/src/components/MultiSelectDropdown.d.ts +25 -22
- package/dist/src/components/MultiSelectDropdown.js +99 -49
- package/dist/src/components/MultiSelectDropdown.js.map +1 -0
- package/dist/src/components/Orb.d.ts +17 -6
- package/dist/src/components/Orb.js +263 -255
- package/dist/src/components/Orb.js.map +1 -0
- package/dist/src/components/PageAlert.d.ts +20 -15
- package/dist/src/components/PageAlert.js +67 -39
- package/dist/src/components/PageAlert.js.map +1 -0
- package/dist/src/components/SelectChips.d.ts +21 -10
- package/dist/src/components/SelectChips.js +21 -9
- package/dist/src/components/SelectChips.js.map +1 -0
- package/dist/src/components/SidebarItem.d.ts +18 -7
- package/dist/src/components/SidebarItem.js +16 -4
- package/dist/src/components/SidebarItem.js.map +1 -0
- package/dist/src/components/Steps.d.ts +21 -16
- package/dist/src/components/Steps.js +193 -27
- package/dist/src/components/Steps.js.map +1 -0
- package/dist/src/components/TablerIconPicker.d.ts +13 -2
- package/dist/src/components/TablerIconPicker.js +4254 -4234
- package/dist/src/components/TablerIconPicker.js.map +1 -0
- package/dist/src/components/app-header.d.ts +14 -6
- package/dist/src/components/app-header.js +27 -6
- package/dist/src/components/app-header.js.map +1 -0
- package/dist/src/components/blur-card.d.ts +25 -11
- package/dist/src/components/blur-card.js +134 -31
- package/dist/src/components/blur-card.js.map +1 -0
- package/dist/src/components/features-section-demo-1.d.ts +22 -6
- package/dist/src/components/features-section-demo-1.js +119 -47
- package/dist/src/components/features-section-demo-1.js.map +1 -0
- package/dist/src/components/features-section-demo-2.d.ts +7 -1
- package/dist/src/components/features-section-demo-2.js +80 -49
- package/dist/src/components/features-section-demo-2.js.map +1 -0
- package/dist/src/components/features-section-demo-3.d.ts +16 -8
- package/dist/src/components/features-section-demo-3.js +239 -103
- package/dist/src/components/features-section-demo-3.js.map +1 -0
- package/dist/src/components/mode-toggle.d.ts +7 -1
- package/dist/src/components/mode-toggle.js +42 -7
- package/dist/src/components/mode-toggle.js.map +1 -0
- package/dist/src/components/nav-main.d.ts +20 -12
- package/dist/src/components/nav-main.js +31 -5
- package/dist/src/components/nav-main.js.map +1 -0
- package/dist/src/components/pricing-cards.d.ts +7 -1
- package/dist/src/components/pricing-cards.js +125 -24
- package/dist/src/components/pricing-cards.js.map +1 -0
- package/dist/src/components/shared/ButtonCopy.d.ts +17 -6
- package/dist/src/components/shared/ButtonCopy.js +31 -20
- package/dist/src/components/shared/ButtonCopy.js.map +1 -0
- package/dist/src/components/team-switcher.d.ts +16 -8
- package/dist/src/components/team-switcher.js +70 -8
- package/dist/src/components/team-switcher.js.map +1 -0
- package/dist/src/components/theme-provider.d.ts +18 -8
- package/dist/src/components/theme-provider.js +42 -38
- package/dist/src/components/theme-provider.js.map +1 -0
- package/dist/src/components/typewriter.d.ts +35 -14
- package/dist/src/components/typewriter.js +45 -36
- package/dist/src/components/typewriter.js.map +1 -0
- package/dist/src/components/ui/alert-dialog.d.ts +48 -13
- package/dist/src/components/ui/alert-dialog.js +58 -15
- package/dist/src/components/ui/alert-dialog.js.map +1 -0
- package/dist/src/components/ui/alert.d.ts +24 -8
- package/dist/src/components/ui/alert.js +28 -15
- package/dist/src/components/ui/alert.js.map +1 -0
- package/dist/src/components/ui/avatar.d.ts +9 -5
- package/dist/src/components/ui/avatar.js +23 -7
- package/dist/src/components/ui/avatar.js.map +1 -0
- package/dist/src/components/ui/badge.d.ts +17 -8
- package/dist/src/components/ui/badge.js +17 -14
- package/dist/src/components/ui/badge.js.map +1 -0
- package/dist/src/components/ui/bento-grid.d.ts +26 -11
- package/dist/src/components/ui/bento-grid.js +30 -6
- package/dist/src/components/ui/bento-grid.js.map +1 -0
- package/dist/src/components/ui/bento-grid2.d.ts +30 -14
- package/dist/src/components/ui/bento-grid2.js +45 -9
- package/dist/src/components/ui/bento-grid2.js.map +1 -0
- package/dist/src/components/ui/breadcrumb.d.ts +27 -15
- package/dist/src/components/ui/breadcrumb.js +54 -14
- package/dist/src/components/ui/breadcrumb.js.map +1 -0
- package/dist/src/components/ui/button.d.ts +14 -9
- package/dist/src/components/ui/button.js +37 -26
- package/dist/src/components/ui/button.js.map +1 -0
- package/dist/src/components/ui/card.d.ts +12 -8
- package/dist/src/components/ui/card.js +38 -10
- package/dist/src/components/ui/card.js.map +1 -0
- package/dist/src/components/ui/checkbox.d.ts +6 -2
- package/dist/src/components/ui/checkbox.js +17 -5
- package/dist/src/components/ui/checkbox.js.map +1 -0
- package/dist/src/components/ui/collapsible.d.ts +9 -4
- package/dist/src/components/ui/collapsible.js +5 -1
- package/dist/src/components/ui/collapsible.js.map +1 -0
- package/dist/src/components/ui/dialog.d.ts +44 -12
- package/dist/src/components/ui/dialog.js +64 -14
- package/dist/src/components/ui/dialog.js.map +1 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +32 -24
- package/dist/src/components/ui/dropdown-menu.js +64 -14
- package/dist/src/components/ui/dropdown-menu.js.map +1 -0
- package/dist/src/components/ui/floating-navbar.d.ts +18 -9
- package/dist/src/components/ui/floating-navbar.js +49 -35
- package/dist/src/components/ui/floating-navbar.js.map +1 -0
- package/dist/src/components/ui/form.d.ts +30 -21
- package/dist/src/components/ui/form.js +76 -44
- package/dist/src/components/ui/form.js.map +1 -0
- package/dist/src/components/ui/image.d.ts +6 -2
- package/dist/src/components/ui/image.js +51 -11
- package/dist/src/components/ui/image.js.map +1 -0
- package/dist/src/components/ui/input.d.ts +6 -2
- package/dist/src/components/ui/input.js +14 -5
- package/dist/src/components/ui/input.js.map +1 -0
- package/dist/src/components/ui/label.d.ts +8 -3
- package/dist/src/components/ui/label.js +13 -5
- package/dist/src/components/ui/label.js.map +1 -0
- package/dist/src/components/ui/pagination.d.ts +39 -12
- package/dist/src/components/ui/pagination.js +64 -14
- package/dist/src/components/ui/pagination.js.map +1 -0
- package/dist/src/components/ui/progress.d.ts +6 -2
- package/dist/src/components/ui/progress.js +16 -4
- package/dist/src/components/ui/progress.js.map +1 -0
- package/dist/src/components/ui/resizable-navbar.d.ts +84 -43
- package/dist/src/components/ui/resizable-navbar.js +126 -74
- package/dist/src/components/ui/resizable-navbar.js.map +1 -0
- package/dist/src/components/ui/segment-control.d.ts +10 -7
- package/dist/src/components/ui/segment-control.js +83 -38
- package/dist/src/components/ui/segment-control.js.map +1 -0
- package/dist/src/components/ui/select.d.ts +16 -12
- package/dist/src/components/ui/select.js +63 -14
- package/dist/src/components/ui/select.js.map +1 -0
- package/dist/src/components/ui/separator.d.ts +6 -2
- package/dist/src/components/ui/separator.js +14 -4
- package/dist/src/components/ui/separator.js.map +1 -0
- package/dist/src/components/ui/sheet.d.ts +30 -19
- package/dist/src/components/ui/sheet.js +52 -23
- package/dist/src/components/ui/sheet.js.map +1 -0
- package/dist/src/components/ui/sidebar.d.ts +69 -62
- package/dist/src/components/ui/sidebar.js +326 -171
- package/dist/src/components/ui/sidebar.js.map +1 -0
- package/dist/src/components/ui/skeleton.d.ts +9 -1
- package/dist/src/components/ui/skeleton.js +10 -3
- package/dist/src/components/ui/skeleton.js.map +1 -0
- package/dist/src/components/ui/slider.d.ts +6 -2
- package/dist/src/components/ui/slider.js +16 -4
- package/dist/src/components/ui/slider.js.map +1 -0
- package/dist/src/components/ui/sonner.d.ts +10 -3
- package/dist/src/components/ui/sonner.js +18 -11
- package/dist/src/components/ui/sonner.js.map +1 -0
- package/dist/src/components/ui/spinner.d.ts +21 -10
- package/dist/src/components/ui/spinner.js +24 -24
- package/dist/src/components/ui/spinner.js.map +1 -0
- package/dist/src/components/ui/switch.d.ts +6 -2
- package/dist/src/components/ui/switch.js +13 -4
- package/dist/src/components/ui/switch.js.map +1 -0
- package/dist/src/components/ui/table.d.ts +39 -10
- package/dist/src/components/ui/table.js +51 -11
- package/dist/src/components/ui/table.js.map +1 -0
- package/dist/src/components/ui/tabs.d.ts +23 -6
- package/dist/src/components/ui/tabs.js +27 -7
- package/dist/src/components/ui/tabs.js.map +1 -0
- package/dist/src/components/ui/textarea.d.ts +10 -2
- package/dist/src/components/ui/textarea.js +11 -3
- package/dist/src/components/ui/textarea.js.map +1 -0
- package/dist/src/components/ui/timeline.d.ts +16 -9
- package/dist/src/components/ui/timeline.js +87 -24
- package/dist/src/components/ui/timeline.js.map +1 -0
- package/dist/src/components/ui/toast.d.ts +19 -14
- package/dist/src/components/ui/toast.js +48 -22
- package/dist/src/components/ui/toast.js.map +1 -0
- package/dist/src/components/ui/tooltip.d.ts +23 -6
- package/dist/src/components/ui/tooltip.js +27 -7
- package/dist/src/components/ui/tooltip.js.map +1 -0
- package/dist/src/components/ui/typewriter-effect.d.ts +28 -14
- package/dist/src/components/ui/typewriter-effect.js +102 -72
- package/dist/src/components/ui/typewriter-effect.js.map +1 -0
- package/dist/src/hooks/use-mobile.d.ts +5 -1
- package/dist/src/hooks/use-mobile.js +18 -13
- package/dist/src/hooks/use-mobile.js.map +1 -0
- package/dist/src/hooks/useDialog.d.ts +8 -4
- package/dist/src/hooks/useDialog.js +24 -20
- package/dist/src/hooks/useDialog.js.map +1 -0
- package/dist/src/icons/GoogleIcon.d.ts +9 -5
- package/dist/src/icons/GoogleIcon.js +32 -3
- package/dist/src/icons/GoogleIcon.js.map +1 -0
- package/dist/src/icons/LinkedInIcon.d.ts +9 -5
- package/dist/src/icons/LinkedInIcon.js +27 -3
- package/dist/src/icons/LinkedInIcon.js.map +1 -0
- package/dist/src/icons/MicrosoftIcon.d.ts +9 -5
- package/dist/src/icons/MicrosoftIcon.js +31 -3
- package/dist/src/icons/MicrosoftIcon.js.map +1 -0
- package/dist/src/lib/chatwoot.d.ts +19 -10
- package/dist/src/lib/chatwoot.js +25 -27
- package/dist/src/lib/chatwoot.js.map +1 -0
- package/dist/src/lib/utils.d.ts +7 -2
- package/dist/src/lib/utils.js +7 -2
- package/dist/src/lib/utils.js.map +1 -0
- package/dist/src/modules/app/components/AppLoader.d.ts +8 -2
- package/dist/src/modules/app/components/AppLoader.js +14 -3
- package/dist/src/modules/app/components/AppLoader.js.map +1 -0
- package/dist/src/modules/app/components/AppShell.d.ts +15 -6
- package/dist/src/modules/app/components/AppShell.js +14 -5
- package/dist/src/modules/app/components/AppShell.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebar.d.ts +16 -6
- package/dist/src/modules/app/components/AppSidebar.js +17 -4
- package/dist/src/modules/app/components/AppSidebar.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarContent.d.ts +22 -13
- package/dist/src/modules/app/components/AppSidebarContent.js +34 -5
- package/dist/src/modules/app/components/AppSidebarContent.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarHeader.d.ts +18 -8
- package/dist/src/modules/app/components/AppSidebarHeader.js +37 -6
- package/dist/src/modules/app/components/AppSidebarHeader.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarInvites.d.ts +11 -3
- package/dist/src/modules/app/components/AppSidebarInvites.js +39 -8
- package/dist/src/modules/app/components/AppSidebarInvites.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarUser.d.ts +20 -10
- package/dist/src/modules/app/components/AppSidebarUser.js +121 -12
- package/dist/src/modules/app/components/AppSidebarUser.js.map +1 -0
- package/dist/src/modules/auth/components/AdminUserManagement.d.ts +11 -4
- package/dist/src/modules/auth/components/AdminUserManagement.js +970 -418
- package/dist/src/modules/auth/components/AdminUserManagement.js.map +1 -0
- package/dist/src/modules/auth/components/AdminWaitlist.d.ts +11 -4
- package/dist/src/modules/auth/components/AdminWaitlist.js +284 -115
- package/dist/src/modules/auth/components/AdminWaitlist.js.map +1 -0
- package/dist/src/modules/auth/components/AuthLayout.d.ts +12 -4
- package/dist/src/modules/auth/components/AuthLayout.js +17 -3
- package/dist/src/modules/auth/components/AuthLayout.js.map +1 -0
- package/dist/src/modules/auth/components/AuthProviders.d.ts +17 -6
- package/dist/src/modules/auth/components/AuthProviders.js +80 -41
- package/dist/src/modules/auth/components/AuthProviders.js.map +1 -0
- package/dist/src/modules/auth/components/AuthRouter.d.ts +16 -7
- package/dist/src/modules/auth/components/AuthRouter.js +46 -10
- package/dist/src/modules/auth/components/AuthRouter.js.map +1 -0
- package/dist/src/modules/auth/components/ClaimAccountRoute.d.ts +12 -4
- package/dist/src/modules/auth/components/ClaimAccountRoute.js +202 -139
- package/dist/src/modules/auth/components/ClaimAccountRoute.js.map +1 -0
- package/dist/src/modules/auth/components/ErrorAuthRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/ErrorAuthRoute.js +125 -89
- package/dist/src/modules/auth/components/ErrorAuthRoute.js.map +1 -0
- package/dist/src/modules/auth/components/ForgotPasswordForm.d.ts +7 -1
- package/dist/src/modules/auth/components/ForgotPasswordForm.js +49 -23
- package/dist/src/modules/auth/components/ForgotPasswordForm.js.map +1 -0
- package/dist/src/modules/auth/components/ForgotPasswordRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js +34 -6
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js.map +1 -0
- package/dist/src/modules/auth/components/InviteFriends.d.ts +12 -4
- package/dist/src/modules/auth/components/InviteFriends.js +275 -69
- package/dist/src/modules/auth/components/InviteFriends.js.map +1 -0
- package/dist/src/modules/auth/components/LastUsedBadge.d.ts +17 -5
- package/dist/src/modules/auth/components/LastUsedBadge.js +16 -6
- package/dist/src/modules/auth/components/LastUsedBadge.js.map +1 -0
- package/dist/src/modules/auth/components/LoginForm.d.ts +11 -3
- package/dist/src/modules/auth/components/LoginForm.js +107 -40
- package/dist/src/modules/auth/components/LoginForm.js.map +1 -0
- package/dist/src/modules/auth/components/LoginRoute.d.ts +11 -3
- package/dist/src/modules/auth/components/LoginRoute.js +41 -8
- package/dist/src/modules/auth/components/LoginRoute.js.map +1 -0
- package/dist/src/modules/auth/components/LogoutRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/LogoutRoute.js +18 -12
- package/dist/src/modules/auth/components/LogoutRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.d.ts +21 -8
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js +107 -97
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.d.ts +58 -48
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js +448 -349
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationPreferences.d.ts +27 -16
- package/dist/src/modules/auth/components/OrganizationPreferences.js +129 -124
- package/dist/src/modules/auth/components/OrganizationPreferences.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.d.ts +27 -18
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js +184 -144
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSwitcher.d.ts +17 -6
- package/dist/src/modules/auth/components/OrganizationSwitcher.js +91 -69
- package/dist/src/modules/auth/components/OrganizationSwitcher.js.map +1 -0
- package/dist/src/modules/auth/components/PreferencesEditor.d.ts +44 -33
- package/dist/src/modules/auth/components/PreferencesEditor.js +82 -58
- package/dist/src/modules/auth/components/PreferencesEditor.js.map +1 -0
- package/dist/src/modules/auth/components/ProfileRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/ProfileRoute.js +79 -36
- package/dist/src/modules/auth/components/ProfileRoute.js.map +1 -0
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.d.ts +44 -30
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.js +234 -242
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.js.map +1 -0
- package/dist/src/modules/auth/components/ResetPasswordForm.d.ts +7 -1
- package/dist/src/modules/auth/components/ResetPasswordForm.js +97 -35
- package/dist/src/modules/auth/components/ResetPasswordForm.js.map +1 -0
- package/dist/src/modules/auth/components/ResetPasswordRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/ResetPasswordRoute.js +34 -6
- package/dist/src/modules/auth/components/ResetPasswordRoute.js.map +1 -0
- package/dist/src/modules/auth/components/SignupFormRoute.d.ts +15 -5
- package/dist/src/modules/auth/components/SignupFormRoute.js +142 -99
- package/dist/src/modules/auth/components/SignupFormRoute.js.map +1 -0
- package/dist/src/modules/auth/components/SignupRoute.d.ts +13 -5
- package/dist/src/modules/auth/components/SignupRoute.js +59 -13
- package/dist/src/modules/auth/components/SignupRoute.js.map +1 -0
- package/dist/src/modules/auth/components/UserPreferences.d.ts +22 -11
- package/dist/src/modules/auth/components/UserPreferences.js +24 -12
- package/dist/src/modules/auth/components/UserPreferences.js.map +1 -0
- package/dist/src/modules/auth/components/WaitlistCard.d.ts +11 -4
- package/dist/src/modules/auth/components/WaitlistCard.js +63 -28
- package/dist/src/modules/auth/components/WaitlistCard.js.map +1 -0
- package/dist/src/modules/auth/components/WaitlistCodeValidation.d.ts +13 -5
- package/dist/src/modules/auth/components/WaitlistCodeValidation.js +42 -40
- package/dist/src/modules/auth/components/WaitlistCodeValidation.js.map +1 -0
- package/dist/src/modules/billing/components/BillingBetaPage.d.ts +15 -6
- package/dist/src/modules/billing/components/BillingBetaPage.js +155 -8
- package/dist/src/modules/billing/components/BillingBetaPage.js.map +1 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.d.ts +13 -5
- package/dist/src/modules/billing/components/BillingInvoicePage.js +160 -30
- package/dist/src/modules/billing/components/BillingInvoicePage.js.map +1 -0
- package/dist/src/modules/billing/components/BillingPlanSelect.d.ts +11 -4
- package/dist/src/modules/billing/components/BillingPlanSelect.js +10 -7
- package/dist/src/modules/billing/components/BillingPlanSelect.js.map +1 -0
- package/dist/src/modules/billing/components/BillingRouter.d.ts +15 -7
- package/dist/src/modules/billing/components/BillingRouter.js +19 -6
- package/dist/src/modules/billing/components/BillingRouter.js.map +1 -0
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.d.ts +17 -7
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js +163 -42
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js.map +1 -0
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.d.ts +18 -8
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js +81 -38
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js.map +1 -0
- package/dist/src/modules/table/components/NuqsTable.d.ts +33 -21
- package/dist/src/modules/table/components/NuqsTable.js +295 -221
- package/dist/src/modules/table/components/NuqsTable.js.map +1 -0
- package/dist/src/modules/table/components/TableFiltering.d.ts +33 -21
- package/dist/src/modules/table/components/TableFiltering.js +408 -226
- package/dist/src/modules/table/components/TableFiltering.js.map +1 -0
- package/dist/src/modules/table/components/TableGroupBy.d.ts +18 -8
- package/dist/src/modules/table/components/TableGroupBy.js +56 -16
- package/dist/src/modules/table/components/TableGroupBy.js.map +1 -0
- package/dist/src/modules/table/components/TablePagination.d.ts +17 -7
- package/dist/src/modules/table/components/TablePagination.js +64 -32
- package/dist/src/modules/table/components/TablePagination.js.map +1 -0
- package/dist/src/modules/table/components/table.types.d.ts +15 -10
- package/dist/src/modules/table/components/table.types.js +0 -1
- package/dist/src/modules/table/filterTransformers.d.ts +35 -30
- package/dist/src/modules/table/filterTransformers.js +198 -261
- package/dist/src/modules/table/filterTransformers.js.map +1 -0
- package/dist/src/types.d.ts +8 -3
- package/dist/src/types.js +0 -1
- package/package.json +8 -6
- package/dist/translations/en/web-ui.json +0 -209
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
import { Spinner } from "@heroui/react";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/modules/app/components/AppLoader.tsx
|
|
4
|
+
function AppLoader(props) {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6
|
+
className: "flex h-screen w-full justify-center align-center",
|
|
7
|
+
children: /* @__PURE__ */ jsx(Spinner, {
|
|
8
|
+
size: "lg",
|
|
9
|
+
...props
|
|
10
|
+
})
|
|
11
|
+
});
|
|
5
12
|
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AppLoader };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=AppLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppLoader.js","names":[],"sources":["../../../../../src/modules/app/components/AppLoader.tsx"],"sourcesContent":["import { Spinner, type SpinnerProps } from \"@heroui/react\";\r\n\r\nexport function AppLoader(props: SpinnerProps) {\r\n return (\r\n <div className=\"flex h-screen w-full justify-center align-center\">\r\n <Spinner size=\"lg\" {...props} />\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;AAEA,SAAgB,UAAU,OAAqB;AAC7C,QACE,oBAAC,OAAD;EAAK,WAAU;YACb,oBAAC,SAAD;GAAS,MAAK;GAAK,GAAI;GAAS,CAAA;EAC5B,CAAA"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { AppSidebarProps } from "./AppSidebar.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/app/components/AppShell.d.ts
|
|
6
|
+
type AppShellProps = {
|
|
7
|
+
header?: ReactNode;
|
|
8
|
+
sidebar: AppSidebarProps;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
declare function AppShell({
|
|
11
|
+
header,
|
|
12
|
+
sidebar
|
|
13
|
+
}: AppShellProps): _$react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { AppShell, AppShellProps };
|
|
16
|
+
//# sourceMappingURL=AppShell.d.ts.map
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AppSidebar } from "./AppSidebar.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Outlet } from "react-router";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { SidebarInset, SidebarProvider } from "@m5kdev/web-ui/components/ui/sidebar";
|
|
5
|
+
//#region src/modules/app/components/AppShell.tsx
|
|
6
|
+
function AppShell({ header, sidebar }) {
|
|
7
|
+
return /* @__PURE__ */ jsxs(SidebarProvider, { children: [
|
|
8
|
+
header,
|
|
9
|
+
/* @__PURE__ */ jsx(AppSidebar, { ...sidebar }),
|
|
10
|
+
/* @__PURE__ */ jsx(SidebarInset, { children: /* @__PURE__ */ jsx(Outlet, {}) })
|
|
11
|
+
] });
|
|
7
12
|
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AppShell };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=AppShell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShell.js","names":[],"sources":["../../../../../src/modules/app/components/AppShell.tsx"],"sourcesContent":["import { SidebarInset, SidebarProvider } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport type { ReactNode } from \"react\";\r\nimport { Outlet } from \"react-router\";\r\nimport { AppSidebar, type AppSidebarProps } from \"./AppSidebar\";\r\n\r\nexport type AppShellProps = {\r\n header?: ReactNode;\r\n sidebar: AppSidebarProps;\r\n};\r\n\r\nexport function AppShell({ header, sidebar }: AppShellProps) {\r\n return (\r\n <SidebarProvider>\r\n {header}\r\n <AppSidebar {...sidebar} />\r\n <SidebarInset>\r\n <Outlet />\r\n </SidebarInset>\r\n </SidebarProvider>\r\n );\r\n}\r\n"],"mappings":";;;;;AAUA,SAAgB,SAAS,EAAE,QAAQ,WAA0B;AAC3D,QACE,qBAAC,iBAAD,EAAA,UAAA;EACG;EACD,oBAAC,YAAD,EAAY,GAAI,SAAW,CAAA;EAC3B,oBAAC,cAAD,EAAA,UACE,oBAAC,QAAD,EAAU,CAAA,EACG,CAAA;EACC,EAAA,CAAA"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/modules/app/components/AppSidebar.d.ts
|
|
5
|
+
type AppSidebarProps = {
|
|
6
|
+
header: ReactNode;
|
|
7
|
+
content?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
declare function AppSidebar({
|
|
11
|
+
header,
|
|
12
|
+
content,
|
|
13
|
+
footer
|
|
14
|
+
}: AppSidebarProps): _$react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AppSidebar, AppSidebarProps };
|
|
17
|
+
//# sourceMappingURL=AppSidebar.d.ts.map
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarRail } from "../../../components/ui/sidebar.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/modules/app/components/AppSidebar.tsx
|
|
4
|
+
function AppSidebar({ header, content, footer }) {
|
|
5
|
+
return /* @__PURE__ */ jsxs(Sidebar, {
|
|
6
|
+
collapsible: "icon",
|
|
7
|
+
children: [
|
|
8
|
+
/* @__PURE__ */ jsx(SidebarHeader, { children: header }),
|
|
9
|
+
/* @__PURE__ */ jsx(SidebarContent, { children: content }),
|
|
10
|
+
/* @__PURE__ */ jsx(SidebarFooter, { children: footer }),
|
|
11
|
+
/* @__PURE__ */ jsx(SidebarRail, {})
|
|
12
|
+
]
|
|
13
|
+
});
|
|
5
14
|
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AppSidebar };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=AppSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSidebar.js","names":[],"sources":["../../../../../src/modules/app/components/AppSidebar.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\r\nimport {\r\n Sidebar,\r\n SidebarContent,\r\n SidebarFooter,\r\n SidebarHeader,\r\n SidebarRail,\r\n} from \"../../../components/ui/sidebar\";\r\n\r\nexport type AppSidebarProps = {\r\n header: ReactNode;\r\n content?: ReactNode;\r\n\r\n footer?: ReactNode;\r\n};\r\n\r\nexport function AppSidebar({ header, content, footer }: AppSidebarProps) {\r\n return (\r\n <Sidebar collapsible=\"icon\">\r\n <SidebarHeader>{header}</SidebarHeader>\r\n <SidebarContent>{content}</SidebarContent>\r\n <SidebarFooter>{footer}</SidebarFooter>\r\n <SidebarRail />\r\n </Sidebar>\r\n );\r\n}\r\n"],"mappings":";;;AAgBA,SAAgB,WAAW,EAAE,QAAQ,SAAS,UAA2B;AACvE,QACE,qBAAC,SAAD;EAAS,aAAY;YAArB;GACE,oBAAC,eAAD,EAAA,UAAgB,QAAuB,CAAA;GACvC,oBAAC,gBAAD,EAAA,UAAiB,SAAyB,CAAA;GAC1C,oBAAC,eAAD,EAAA,UAAgB,QAAuB,CAAA;GACvC,oBAAC,aAAD,EAAe,CAAA;GACP"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/app/components/AppSidebarContent.d.ts
|
|
1
4
|
type NavigationItem = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
label: string;
|
|
6
|
+
icon: React.ReactNode;
|
|
7
|
+
link: string;
|
|
8
|
+
badge?: React.ReactNode;
|
|
6
9
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
type AppSidebarContentProps = {
|
|
11
|
+
navigationItems: (NavigationItem & {
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
subItems?: NavigationItem[];
|
|
14
|
+
})[];
|
|
15
|
+
navigationState: Record<string, boolean>;
|
|
16
|
+
onNavigationStateChange: (state: Record<string, boolean>) => void;
|
|
14
17
|
};
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
declare function AppSidebarContent({
|
|
19
|
+
navigationItems,
|
|
20
|
+
navigationState,
|
|
21
|
+
onNavigationStateChange
|
|
22
|
+
}: AppSidebarContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { AppSidebarContent, AppSidebarContentProps };
|
|
25
|
+
//# sourceMappingURL=AppSidebarContent.d.ts.map
|
|
@@ -1,7 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SidebarGroup, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from "../../../components/ui/sidebar.js";
|
|
2
|
+
import { CollapsibleSidebarMenuItem } from "../../../components/CollapsibleSidebarMenuItem.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
4
|
import { Link } from "react-router";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
//#region src/modules/app/components/AppSidebarContent.tsx
|
|
6
|
+
function AppSidebarContent({ navigationItems, navigationState, onNavigationStateChange }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(SidebarGroup, { children: /* @__PURE__ */ jsx(SidebarMenu, { children: navigationItems.map((item) => item.subItems ? /* @__PURE__ */ jsx(CollapsibleSidebarMenuItem, {
|
|
8
|
+
defaultOpen: item.defaultOpen,
|
|
9
|
+
open: navigationState[item.label],
|
|
10
|
+
label: item.label,
|
|
11
|
+
icon: item.icon,
|
|
12
|
+
link: item.link,
|
|
13
|
+
badge: item.badge,
|
|
14
|
+
onOpenChange: (open) => onNavigationStateChange({
|
|
15
|
+
...navigationState,
|
|
16
|
+
[item.label]: open
|
|
17
|
+
}),
|
|
18
|
+
children: item.subItems.map((subItem) => /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(SidebarMenuButton, {
|
|
19
|
+
asChild: true,
|
|
20
|
+
children: /* @__PURE__ */ jsxs(Link, {
|
|
21
|
+
to: subItem.link,
|
|
22
|
+
children: [subItem.icon, /* @__PURE__ */ jsx("span", { children: subItem.label })]
|
|
23
|
+
})
|
|
24
|
+
}) }, subItem.label))
|
|
25
|
+
}, item.label) : /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(SidebarMenuButton, {
|
|
26
|
+
asChild: true,
|
|
27
|
+
children: /* @__PURE__ */ jsxs(Link, {
|
|
28
|
+
to: item.link,
|
|
29
|
+
children: [item.icon, /* @__PURE__ */ jsx("span", { children: item.label })]
|
|
30
|
+
})
|
|
31
|
+
}) }, item.label)) }) });
|
|
7
32
|
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { AppSidebarContent };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=AppSidebarContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSidebarContent.js","names":[],"sources":["../../../../../src/modules/app/components/AppSidebarContent.tsx"],"sourcesContent":["import { Link } from \"react-router\";\r\nimport { CollapsibleSidebarMenuItem } from \"../../../components/CollapsibleSidebarMenuItem\";\r\nimport {\r\n SidebarGroup,\r\n SidebarMenu,\r\n SidebarMenuButton,\r\n SidebarMenuItem,\r\n} from \"../../../components/ui/sidebar\";\r\n\r\ntype NavigationItem = {\r\n label: string;\r\n icon: React.ReactNode;\r\n link: string;\r\n badge?: React.ReactNode;\r\n};\r\n\r\nexport type AppSidebarContentProps = {\r\n navigationItems: (NavigationItem & {\r\n defaultOpen?: boolean;\r\n subItems?: NavigationItem[];\r\n })[];\r\n navigationState: Record<string, boolean>;\r\n onNavigationStateChange: (state: Record<string, boolean>) => void;\r\n};\r\n\r\nexport function AppSidebarContent({\r\n navigationItems,\r\n navigationState,\r\n onNavigationStateChange,\r\n}: AppSidebarContentProps) {\r\n return (\r\n <SidebarGroup>\r\n <SidebarMenu>\r\n {navigationItems.map((item) =>\r\n item.subItems ? (\r\n <CollapsibleSidebarMenuItem\r\n key={item.label}\r\n defaultOpen={item.defaultOpen}\r\n open={navigationState[item.label]}\r\n label={item.label}\r\n icon={item.icon}\r\n link={item.link}\r\n badge={item.badge}\r\n onOpenChange={(open) =>\r\n onNavigationStateChange({ ...navigationState, [item.label]: open })\r\n }\r\n >\r\n {item.subItems.map((subItem) => (\r\n <SidebarMenuItem key={subItem.label}>\r\n <SidebarMenuButton asChild>\r\n <Link to={subItem.link}>\r\n {subItem.icon}\r\n <span>{subItem.label}</span>\r\n </Link>\r\n </SidebarMenuButton>\r\n </SidebarMenuItem>\r\n ))}\r\n </CollapsibleSidebarMenuItem>\r\n ) : (\r\n <SidebarMenuItem key={item.label}>\r\n <SidebarMenuButton asChild>\r\n <Link to={item.link}>\r\n {item.icon}\r\n <span>{item.label}</span>\r\n </Link>\r\n </SidebarMenuButton>\r\n </SidebarMenuItem>\r\n )\r\n )}\r\n </SidebarMenu>\r\n </SidebarGroup>\r\n );\r\n}\r\n"],"mappings":";;;;;AAyBA,SAAgB,kBAAkB,EAChC,iBACA,iBACA,2BACyB;AACzB,QACE,oBAAC,cAAD,EAAA,UACE,oBAAC,aAAD,EAAA,UACG,gBAAgB,KAAK,SACpB,KAAK,WACH,oBAAC,4BAAD;EAEE,aAAa,KAAK;EAClB,MAAM,gBAAgB,KAAK;EAC3B,OAAO,KAAK;EACZ,MAAM,KAAK;EACX,MAAM,KAAK;EACX,OAAO,KAAK;EACZ,eAAe,SACb,wBAAwB;GAAE,GAAG;IAAkB,KAAK,QAAQ;GAAM,CAAC;YAGpE,KAAK,SAAS,KAAK,YAClB,oBAAC,iBAAD,EAAA,UACE,oBAAC,mBAAD;GAAmB,SAAA;aACjB,qBAAC,MAAD;IAAM,IAAI,QAAQ;cAAlB,CACG,QAAQ,MACT,oBAAC,QAAD,EAAA,UAAO,QAAQ,OAAa,CAAA,CACvB;;GACW,CAAA,EACJ,EAPI,QAAQ,MAOZ,CAClB;EACyB,EArBtB,KAAK,MAqBiB,GAE7B,oBAAC,iBAAD,EAAA,UACE,oBAAC,mBAAD;EAAmB,SAAA;YACjB,qBAAC,MAAD;GAAM,IAAI,KAAK;aAAf,CACG,KAAK,MACN,oBAAC,QAAD,EAAA,UAAO,KAAK,OAAa,CAAA,CACpB;;EACW,CAAA,EACJ,EAPI,KAAK,MAOT,CAErB,EACW,CAAA,EACD,CAAA"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/app/components/AppSidebarHeader.d.ts
|
|
4
|
+
declare function AppSidebarHeader({
|
|
5
|
+
logo,
|
|
6
|
+
title,
|
|
7
|
+
size
|
|
8
|
+
}: {
|
|
9
|
+
logo: {
|
|
10
|
+
src: string;
|
|
11
|
+
alt: string;
|
|
12
|
+
};
|
|
13
|
+
title: string;
|
|
14
|
+
size?: number;
|
|
15
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { AppSidebarHeader };
|
|
18
|
+
//# sourceMappingURL=AppSidebarHeader.d.ts.map
|
|
@@ -1,10 +1,41 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
import { Button } from "@heroui/react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
|
|
4
|
+
import { Link as Link$1 } from "react-router";
|
|
3
5
|
import { useSidebar } from "@m5kdev/web-ui/components/ui/sidebar";
|
|
4
6
|
import { cn } from "@m5kdev/web-ui/utils";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
//#region src/modules/app/components/AppSidebarHeader.tsx
|
|
8
|
+
function AppSidebarHeader({ logo, title, size = 30 }) {
|
|
9
|
+
const { open, toggleSidebar } = useSidebar();
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11
|
+
className: cn("flex justify-between items-center overflow-hidden gap-2", open ? "w-[239px] px-2 flex-row" : "w-auto flex-col"),
|
|
12
|
+
children: [/* @__PURE__ */ jsxs(Link$1, {
|
|
13
|
+
to: "/",
|
|
14
|
+
className: cn("flex items-center font-medium overflow-hidden gap-2", open ? "w-[239px] px-2" : "w-auto"),
|
|
15
|
+
style: { height: size },
|
|
16
|
+
children: [/* @__PURE__ */ jsx("img", {
|
|
17
|
+
className: "shrink-0",
|
|
18
|
+
src: logo.src,
|
|
19
|
+
alt: logo.alt,
|
|
20
|
+
style: {
|
|
21
|
+
width: size,
|
|
22
|
+
height: size
|
|
23
|
+
}
|
|
24
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
25
|
+
className: "group-data-[collapsible=icon]:hidden font-semibold text-lg text-neutral-900",
|
|
26
|
+
children: title
|
|
27
|
+
})]
|
|
28
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
29
|
+
isIconOnly: true,
|
|
30
|
+
variant: "faded",
|
|
31
|
+
size: "sm",
|
|
32
|
+
className: "w-4 h-6",
|
|
33
|
+
onPress: () => toggleSidebar(),
|
|
34
|
+
children: open ? /* @__PURE__ */ jsx(ChevronsLeftIcon, { className: "w-4 h-4" }) : /* @__PURE__ */ jsx(ChevronsRightIcon, { className: "w-4 h-4" })
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
10
37
|
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { AppSidebarHeader };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=AppSidebarHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSidebarHeader.js","names":["Link"],"sources":["../../../../../src/modules/app/components/AppSidebarHeader.tsx"],"sourcesContent":["import { Button } from \"@heroui/react\";\r\nimport { useSidebar } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport { cn } from \"@m5kdev/web-ui/utils\";\r\nimport { ChevronsLeftIcon, ChevronsRightIcon } from \"lucide-react\";\r\nimport { Link } from \"react-router\";\r\n\r\nexport function AppSidebarHeader({\r\n logo,\r\n title,\r\n size = 30,\r\n}: {\r\n logo: { src: string; alt: string };\r\n title: string;\r\n size?: number;\r\n}) {\r\n const { open, toggleSidebar } = useSidebar();\r\n return (\r\n <div\r\n className={cn(\r\n \"flex justify-between items-center overflow-hidden gap-2\",\r\n open ? \"w-[239px] px-2 flex-row\" : \"w-auto flex-col\"\r\n )}\r\n >\r\n <Link\r\n to=\"/\"\r\n className={cn(\r\n \"flex items-center font-medium overflow-hidden gap-2\",\r\n open ? \"w-[239px] px-2\" : \"w-auto\"\r\n )}\r\n style={{ height: size }}\r\n >\r\n <img\r\n className=\"shrink-0\"\r\n src={logo.src}\r\n alt={logo.alt}\r\n style={{ width: size, height: size }}\r\n />\r\n <span className=\"group-data-[collapsible=icon]:hidden font-semibold text-lg text-neutral-900\">\r\n {title}\r\n </span>\r\n </Link>\r\n <Button\r\n isIconOnly\r\n variant=\"faded\"\r\n size=\"sm\"\r\n className=\"w-4 h-6\"\r\n onPress={() => toggleSidebar()}\r\n >\r\n {open ? (\r\n <ChevronsLeftIcon className=\"w-4 h-4\" />\r\n ) : (\r\n <ChevronsRightIcon className=\"w-4 h-4\" />\r\n )}\r\n </Button>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;AAMA,SAAgB,iBAAiB,EAC/B,MACA,OACA,OAAO,MAKN;CACD,MAAM,EAAE,MAAM,kBAAkB,YAAY;AAC5C,QACE,qBAAC,OAAD;EACE,WAAW,GACT,4DACA,OAAO,4BAA4B,kBACpC;YAJH,CAME,qBAACA,QAAD;GACE,IAAG;GACH,WAAW,GACT,uDACA,OAAO,mBAAmB,SAC3B;GACD,OAAO,EAAE,QAAQ,MAAM;aANzB,CAQE,oBAAC,OAAD;IACE,WAAU;IACV,KAAK,KAAK;IACV,KAAK,KAAK;IACV,OAAO;KAAE,OAAO;KAAM,QAAQ;KAAM;IACpC,CAAA,EACF,oBAAC,QAAD;IAAM,WAAU;cACb;IACI,CAAA,CACF;MACP,oBAAC,QAAD;GACE,YAAA;GACA,SAAQ;GACR,MAAK;GACL,WAAU;GACV,eAAe,eAAe;aAE7B,OACC,oBAAC,kBAAD,EAAkB,WAAU,WAAY,CAAA,GAExC,oBAAC,mBAAD,EAAmB,WAAU,WAAY,CAAA;GAEpC,CAAA,CACL"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/app/components/AppSidebarInvites.d.ts
|
|
4
|
+
declare function AppSidebarInvites({
|
|
5
|
+
count
|
|
6
|
+
}: {
|
|
7
|
+
count: number;
|
|
8
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { AppSidebarInvites };
|
|
11
|
+
//# sourceMappingURL=AppSidebarInvites.d.ts.map
|
|
@@ -1,12 +1,43 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
import { Badge, Button, Tooltip } from "@heroui/react";
|
|
3
|
-
import {
|
|
4
|
-
import { cn } from "@m5kdev/web-ui/utils";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
3
|
import { GiftIcon } from "lucide-react";
|
|
6
4
|
import { useTranslation } from "react-i18next";
|
|
7
|
-
import { Link } from "react-router";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import { Link as Link$1 } from "react-router";
|
|
6
|
+
import { useSidebar } from "@m5kdev/web-ui/components/ui/sidebar";
|
|
7
|
+
import { cn } from "@m5kdev/web-ui/utils";
|
|
8
|
+
//#region src/modules/app/components/AppSidebarInvites.tsx
|
|
9
|
+
function AppSidebarInvites({ count }) {
|
|
10
|
+
const { open } = useSidebar();
|
|
11
|
+
const { t } = useTranslation("web-ui");
|
|
12
|
+
return /* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: cn("flex justify-center w-auto"),
|
|
14
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
15
|
+
content: t("sidebar.invites.title"),
|
|
16
|
+
placement: "right",
|
|
17
|
+
isDisabled: open,
|
|
18
|
+
children: /* @__PURE__ */ jsx(Badge, {
|
|
19
|
+
color: "primary",
|
|
20
|
+
variant: "faded",
|
|
21
|
+
content: count,
|
|
22
|
+
size: "sm",
|
|
23
|
+
isOneChar: true,
|
|
24
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
25
|
+
as: Link$1,
|
|
26
|
+
to: "/invites",
|
|
27
|
+
className: cn("flex items-center gap-2"),
|
|
28
|
+
isIconOnly: !open,
|
|
29
|
+
size: "sm",
|
|
30
|
+
variant: "light",
|
|
31
|
+
children: [/* @__PURE__ */ jsx(GiftIcon, { className: "w-4 h-4 text-neutral-500" }), /* @__PURE__ */ jsx("span", {
|
|
32
|
+
className: "group-data-[collapsible=icon]:hidden text-sm text-neutral-500",
|
|
33
|
+
children: t("sidebar.invites.title")
|
|
34
|
+
})]
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
});
|
|
12
39
|
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { AppSidebarInvites };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=AppSidebarInvites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSidebarInvites.js","names":["Link"],"sources":["../../../../../src/modules/app/components/AppSidebarInvites.tsx"],"sourcesContent":["import { Badge, Button, Tooltip } from \"@heroui/react\";\r\nimport { useSidebar } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport { cn } from \"@m5kdev/web-ui/utils\";\r\nimport { GiftIcon } from \"lucide-react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { Link } from \"react-router\";\r\n\r\nexport function AppSidebarInvites({ count }: { count: number }) {\r\n const { open } = useSidebar();\r\n const { t } = useTranslation(\"web-ui\");\r\n return (\r\n <div className={cn(\"flex justify-center w-auto\")}>\r\n <Tooltip content={t(\"sidebar.invites.title\")} placement=\"right\" isDisabled={open}>\r\n <Badge color=\"primary\" variant=\"faded\" content={count} size=\"sm\" isOneChar>\r\n <Button\r\n as={Link}\r\n to=\"/invites\"\r\n className={cn(\"flex items-center gap-2\")}\r\n isIconOnly={!open}\r\n size=\"sm\"\r\n variant=\"light\"\r\n >\r\n <GiftIcon className=\"w-4 h-4 text-neutral-500\" />\r\n <span className=\"group-data-[collapsible=icon]:hidden text-sm text-neutral-500\">\r\n {t(\"sidebar.invites.title\")}\r\n </span>\r\n </Button>\r\n </Badge>\r\n </Tooltip>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AAOA,SAAgB,kBAAkB,EAAE,SAA4B;CAC9D,MAAM,EAAE,SAAS,YAAY;CAC7B,MAAM,EAAE,MAAM,eAAe,SAAS;AACtC,QACE,oBAAC,OAAD;EAAK,WAAW,GAAG,6BAA6B;YAC9C,oBAAC,SAAD;GAAS,SAAS,EAAE,wBAAwB;GAAE,WAAU;GAAQ,YAAY;aAC1E,oBAAC,OAAD;IAAO,OAAM;IAAU,SAAQ;IAAQ,SAAS;IAAO,MAAK;IAAK,WAAA;cAC/D,qBAAC,QAAD;KACE,IAAIA;KACJ,IAAG;KACH,WAAW,GAAG,0BAA0B;KACxC,YAAY,CAAC;KACb,MAAK;KACL,SAAQ;eANV,CAQE,oBAAC,UAAD,EAAU,WAAU,4BAA6B,CAAA,EACjD,oBAAC,QAAD;MAAM,WAAU;gBACb,EAAE,wBAAwB;MACtB,CAAA,CACA;;IACH,CAAA;GACA,CAAA;EACN,CAAA"}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/app/components/AppSidebarUser.d.ts
|
|
4
|
+
type AppSidebarUserProps = {
|
|
5
|
+
user?: {
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
image?: string | null;
|
|
9
|
+
role?: string | null;
|
|
10
|
+
};
|
|
11
|
+
onSignOut: () => void;
|
|
12
|
+
organizationSettingsPath?: string;
|
|
10
13
|
};
|
|
11
|
-
|
|
14
|
+
declare function AppSidebarUser({
|
|
15
|
+
user,
|
|
16
|
+
onSignOut,
|
|
17
|
+
organizationSettingsPath
|
|
18
|
+
}: AppSidebarUserProps): _$react_jsx_runtime0.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { AppSidebarUser, AppSidebarUserProps };
|
|
21
|
+
//# sourceMappingURL=AppSidebarUser.d.ts.map
|
|
@@ -1,16 +1,125 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Avatar, AvatarFallback, AvatarImage } from "../../../components/ui/avatar.js";
|
|
2
|
+
import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from "../../../components/ui/sidebar.js";
|
|
3
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../../../components/ui/dropdown-menu.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
5
|
import { Building2, ChevronsUpDown, CreditCard, LogOut, Settings, Sparkles, User } from "lucide-react";
|
|
3
6
|
import { useTranslation } from "react-i18next";
|
|
4
7
|
import { Link } from "react-router";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
//#region src/modules/app/components/AppSidebarUser.tsx
|
|
9
|
+
function AppSidebarUser({ user, onSignOut, organizationSettingsPath }) {
|
|
10
|
+
const { name = "User", email = "email@example.com", image, role } = user || {};
|
|
11
|
+
const isAdmin = role === "admin";
|
|
12
|
+
const { isMobile } = useSidebar();
|
|
13
|
+
const { t } = useTranslation("web-ui");
|
|
14
|
+
return /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
15
|
+
asChild: true,
|
|
16
|
+
children: /* @__PURE__ */ jsxs(SidebarMenuButton, {
|
|
17
|
+
size: "lg",
|
|
18
|
+
className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ jsxs(Avatar, {
|
|
21
|
+
className: "h-8 w-8 rounded-lg",
|
|
22
|
+
children: [/* @__PURE__ */ jsx(AvatarImage, {
|
|
23
|
+
src: image ?? void 0,
|
|
24
|
+
alt: name
|
|
25
|
+
}), /* @__PURE__ */ jsx(AvatarFallback, {
|
|
26
|
+
className: "rounded-lg",
|
|
27
|
+
children: "CN"
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsxs("div", {
|
|
31
|
+
className: "grid flex-1 text-left text-sm leading-tight",
|
|
32
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
33
|
+
className: "truncate font-semibold",
|
|
34
|
+
children: name
|
|
35
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
36
|
+
className: "truncate text-xs",
|
|
37
|
+
children: email
|
|
38
|
+
})]
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-auto size-4" })
|
|
41
|
+
]
|
|
42
|
+
})
|
|
43
|
+
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
44
|
+
className: "w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",
|
|
45
|
+
side: isMobile ? "bottom" : "right",
|
|
46
|
+
align: "end",
|
|
47
|
+
sideOffset: 4,
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, {
|
|
50
|
+
className: "p-0 font-normal",
|
|
51
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
52
|
+
className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
|
|
53
|
+
children: [/* @__PURE__ */ jsxs(Avatar, {
|
|
54
|
+
className: "h-8 w-8 rounded-lg",
|
|
55
|
+
children: [/* @__PURE__ */ jsx(AvatarImage, {
|
|
56
|
+
src: image ?? void 0,
|
|
57
|
+
alt: name
|
|
58
|
+
}), /* @__PURE__ */ jsx(AvatarFallback, {
|
|
59
|
+
className: "rounded-lg",
|
|
60
|
+
children: "CN"
|
|
61
|
+
})]
|
|
62
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
63
|
+
className: "grid flex-1 text-left text-sm leading-tight",
|
|
64
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
65
|
+
className: "truncate font-semibold",
|
|
66
|
+
children: name
|
|
67
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
68
|
+
className: "truncate text-xs",
|
|
69
|
+
children: email
|
|
70
|
+
})]
|
|
71
|
+
})]
|
|
72
|
+
})
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
75
|
+
/* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsx(Link, {
|
|
76
|
+
to: "/billing",
|
|
77
|
+
children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
78
|
+
className: "cursor-pointer",
|
|
79
|
+
children: [/* @__PURE__ */ jsx(Sparkles, {}), t("web-ui:sidebar.user.upgradeToPro")]
|
|
80
|
+
})
|
|
81
|
+
}) }),
|
|
82
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
83
|
+
/* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [
|
|
84
|
+
isAdmin && /* @__PURE__ */ jsx(Link, {
|
|
85
|
+
to: "/admin",
|
|
86
|
+
children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
87
|
+
className: "cursor-pointer",
|
|
88
|
+
children: [/* @__PURE__ */ jsx(Settings, {}), t("web-ui:sidebar.user.adminDashboard")]
|
|
89
|
+
})
|
|
90
|
+
}),
|
|
91
|
+
organizationSettingsPath && /* @__PURE__ */ jsx(Link, {
|
|
92
|
+
to: organizationSettingsPath,
|
|
93
|
+
children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
94
|
+
className: "cursor-pointer",
|
|
95
|
+
children: [/* @__PURE__ */ jsx(Building2, {}), t("web-ui:sidebar.user.organizationSettings", { defaultValue: "Organization settings" })]
|
|
96
|
+
})
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ jsx(Link, {
|
|
99
|
+
to: "/profile",
|
|
100
|
+
children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
101
|
+
className: "cursor-pointer",
|
|
102
|
+
children: [/* @__PURE__ */ jsx(User, {}), t("web-ui:sidebar.user.account")]
|
|
103
|
+
})
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ jsx(Link, {
|
|
106
|
+
to: "/billing",
|
|
107
|
+
children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
108
|
+
className: "cursor-pointer",
|
|
109
|
+
children: [/* @__PURE__ */ jsx(CreditCard, {}), t("web-ui:sidebar.user.billing")]
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
114
|
+
/* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
115
|
+
className: "cursor-pointer",
|
|
116
|
+
onClick: onSignOut,
|
|
117
|
+
children: [/* @__PURE__ */ jsx(LogOut, {}), t("web-ui:sidebar.user.logout")]
|
|
118
|
+
})
|
|
119
|
+
]
|
|
120
|
+
})] }) }) });
|
|
16
121
|
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { AppSidebarUser };
|
|
124
|
+
|
|
125
|
+
//# sourceMappingURL=AppSidebarUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSidebarUser.js","names":[],"sources":["../../../../../src/modules/app/components/AppSidebarUser.tsx"],"sourcesContent":["import { Building2, ChevronsUpDown, CreditCard, LogOut, Settings, Sparkles, User } from \"lucide-react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { Link } from \"react-router\";\r\nimport { Avatar, AvatarFallback, AvatarImage } from \"../../../components/ui/avatar\";\r\nimport {\r\n DropdownMenu,\r\n DropdownMenuContent,\r\n DropdownMenuGroup,\r\n DropdownMenuItem,\r\n DropdownMenuLabel,\r\n DropdownMenuSeparator,\r\n DropdownMenuTrigger,\r\n} from \"../../../components/ui/dropdown-menu\";\r\nimport {\r\n SidebarMenu,\r\n SidebarMenuButton,\r\n SidebarMenuItem,\r\n useSidebar,\r\n} from \"../../../components/ui/sidebar\";\r\n\r\nexport type AppSidebarUserProps = {\r\n user?: {\r\n name: string;\r\n email: string;\r\n image?: string | null;\r\n role?: string | null;\r\n };\r\n onSignOut: () => void;\r\n organizationSettingsPath?: string;\r\n};\r\n\r\nexport function AppSidebarUser({ user, onSignOut, organizationSettingsPath }: AppSidebarUserProps) {\r\n const { name = \"User\", email = \"email@example.com\", image, role } = user || {};\r\n const isAdmin = role === \"admin\";\r\n const { isMobile } = useSidebar();\r\n const { t } = useTranslation(\"web-ui\");\r\n\r\n return (\r\n <SidebarMenu>\r\n <SidebarMenuItem>\r\n <DropdownMenu>\r\n <DropdownMenuTrigger asChild>\r\n <SidebarMenuButton\r\n size=\"lg\"\r\n className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\r\n >\r\n <Avatar className=\"h-8 w-8 rounded-lg\">\r\n <AvatarImage src={image ?? undefined} alt={name} />\r\n <AvatarFallback className=\"rounded-lg\">CN</AvatarFallback>\r\n </Avatar>\r\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\r\n <span className=\"truncate font-semibold\">{name}</span>\r\n <span className=\"truncate text-xs\">{email}</span>\r\n </div>\r\n <ChevronsUpDown className=\"ml-auto size-4\" />\r\n </SidebarMenuButton>\r\n </DropdownMenuTrigger>\r\n <DropdownMenuContent\r\n className=\"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg\"\r\n side={isMobile ? \"bottom\" : \"right\"}\r\n align=\"end\"\r\n sideOffset={4}\r\n >\r\n <DropdownMenuLabel className=\"p-0 font-normal\">\r\n <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\r\n <Avatar className=\"h-8 w-8 rounded-lg\">\r\n <AvatarImage src={image ?? undefined} alt={name} />\r\n <AvatarFallback className=\"rounded-lg\">CN</AvatarFallback>\r\n </Avatar>\r\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\r\n <span className=\"truncate font-semibold\">{name}</span>\r\n <span className=\"truncate text-xs\">{email}</span>\r\n </div>\r\n </div>\r\n </DropdownMenuLabel>\r\n <DropdownMenuSeparator />\r\n <DropdownMenuGroup>\r\n <Link to=\"/billing\">\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <Sparkles />\r\n {t(\"web-ui:sidebar.user.upgradeToPro\")}\r\n </DropdownMenuItem>\r\n </Link>\r\n </DropdownMenuGroup>\r\n <DropdownMenuSeparator />\r\n <DropdownMenuGroup>\r\n {isAdmin && (\r\n <Link to=\"/admin\">\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <Settings />\r\n {t(\"web-ui:sidebar.user.adminDashboard\")}\r\n </DropdownMenuItem>\r\n </Link>\r\n )}\r\n {organizationSettingsPath && (\r\n <Link to={organizationSettingsPath}>\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <Building2 />\r\n {t(\"web-ui:sidebar.user.organizationSettings\", {\r\n defaultValue: \"Organization settings\",\r\n })}\r\n </DropdownMenuItem>\r\n </Link>\r\n )}\r\n <Link to=\"/profile\">\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <User />\r\n {t(\"web-ui:sidebar.user.account\")}\r\n </DropdownMenuItem>\r\n </Link>\r\n <Link to=\"/billing\">\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <CreditCard />\r\n {t(\"web-ui:sidebar.user.billing\")}\r\n </DropdownMenuItem>\r\n </Link>\r\n </DropdownMenuGroup>\r\n <DropdownMenuSeparator />\r\n <DropdownMenuItem className=\"cursor-pointer\" onClick={onSignOut}>\r\n <LogOut />\r\n {t(\"web-ui:sidebar.user.logout\")}\r\n </DropdownMenuItem>\r\n </DropdownMenuContent>\r\n </DropdownMenu>\r\n </SidebarMenuItem>\r\n </SidebarMenu>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AA+BA,SAAgB,eAAe,EAAE,MAAM,WAAW,4BAAiD;CACjG,MAAM,EAAE,OAAO,QAAQ,QAAQ,qBAAqB,OAAO,SAAS,QAAQ,EAAE;CAC9E,MAAM,UAAU,SAAS;CACzB,MAAM,EAAE,aAAa,YAAY;CACjC,MAAM,EAAE,MAAM,eAAe,SAAS;AAEtC,QACE,oBAAC,aAAD,EAAA,UACE,oBAAC,iBAAD,EAAA,UACE,qBAAC,cAAD,EAAA,UAAA,CACE,oBAAC,qBAAD;EAAqB,SAAA;YACnB,qBAAC,mBAAD;GACE,MAAK;GACL,WAAU;aAFZ;IAIE,qBAAC,QAAD;KAAQ,WAAU;eAAlB,CACE,oBAAC,aAAD;MAAa,KAAK,SAAS,KAAA;MAAW,KAAK;MAAQ,CAAA,EACnD,oBAAC,gBAAD;MAAgB,WAAU;gBAAa;MAAmB,CAAA,CACnD;;IACT,qBAAC,OAAD;KAAK,WAAU;eAAf,CACE,oBAAC,QAAD;MAAM,WAAU;gBAA0B;MAAY,CAAA,EACtD,oBAAC,QAAD;MAAM,WAAU;gBAAoB;MAAa,CAAA,CAC7C;;IACN,oBAAC,gBAAD,EAAgB,WAAU,kBAAmB,CAAA;IAC3B;;EACA,CAAA,EACtB,qBAAC,qBAAD;EACE,WAAU;EACV,MAAM,WAAW,WAAW;EAC5B,OAAM;EACN,YAAY;YAJd;GAME,oBAAC,mBAAD;IAAmB,WAAU;cAC3B,qBAAC,OAAD;KAAK,WAAU;eAAf,CACE,qBAAC,QAAD;MAAQ,WAAU;gBAAlB,CACE,oBAAC,aAAD;OAAa,KAAK,SAAS,KAAA;OAAW,KAAK;OAAQ,CAAA,EACnD,oBAAC,gBAAD;OAAgB,WAAU;iBAAa;OAAmB,CAAA,CACnD;SACT,qBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,oBAAC,QAAD;OAAM,WAAU;iBAA0B;OAAY,CAAA,EACtD,oBAAC,QAAD;OAAM,WAAU;iBAAoB;OAAa,CAAA,CAC7C;QACF;;IACY,CAAA;GACpB,oBAAC,uBAAD,EAAyB,CAAA;GACzB,oBAAC,mBAAD,EAAA,UACE,oBAAC,MAAD;IAAM,IAAG;cACP,qBAAC,kBAAD;KAAkB,WAAU;eAA5B,CACE,oBAAC,UAAD,EAAY,CAAA,EACX,EAAE,mCAAmC,CACrB;;IACd,CAAA,EACW,CAAA;GACpB,oBAAC,uBAAD,EAAyB,CAAA;GACzB,qBAAC,mBAAD,EAAA,UAAA;IACG,WACC,oBAAC,MAAD;KAAM,IAAG;eACP,qBAAC,kBAAD;MAAkB,WAAU;gBAA5B,CACE,oBAAC,UAAD,EAAY,CAAA,EACX,EAAE,qCAAqC,CACvB;;KACd,CAAA;IAER,4BACC,oBAAC,MAAD;KAAM,IAAI;eACR,qBAAC,kBAAD;MAAkB,WAAU;gBAA5B,CACE,oBAAC,WAAD,EAAa,CAAA,EACZ,EAAE,4CAA4C,EAC7C,cAAc,yBACf,CAAC,CACe;;KACd,CAAA;IAET,oBAAC,MAAD;KAAM,IAAG;eACP,qBAAC,kBAAD;MAAkB,WAAU;gBAA5B,CACE,oBAAC,MAAD,EAAQ,CAAA,EACP,EAAE,8BAA8B,CAChB;;KACd,CAAA;IACP,oBAAC,MAAD;KAAM,IAAG;eACP,qBAAC,kBAAD;MAAkB,WAAU;gBAA5B,CACE,oBAAC,YAAD,EAAc,CAAA,EACb,EAAE,8BAA8B,CAChB;;KACd,CAAA;IACW,EAAA,CAAA;GACpB,oBAAC,uBAAD,EAAyB,CAAA;GACzB,qBAAC,kBAAD;IAAkB,WAAU;IAAiB,SAAS;cAAtD,CACE,oBAAC,QAAD,EAAU,CAAA,EACT,EAAE,6BAA6B,CACf;;GACC;IACT,EAAA,CAAA,EACC,CAAA,EACN,CAAA"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { UseBackendTRPC } from "../../../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/modules/auth/components/AdminUserManagement.d.ts
|
|
2
5
|
interface AdminUserManagementProps {
|
|
3
|
-
|
|
6
|
+
useTRPC?: UseBackendTRPC;
|
|
4
7
|
}
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
declare function AdminUserManagement({
|
|
9
|
+
useTRPC
|
|
10
|
+
}: AdminUserManagementProps): _$react_jsx_runtime0.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { AdminUserManagement };
|
|
13
|
+
//# sourceMappingURL=AdminUserManagement.d.ts.map
|