@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminWaitlist.js","names":[],"sources":["../../../../../src/modules/auth/components/AdminWaitlist.tsx"],"sourcesContent":["import {\r\n Button,\r\n Dropdown,\r\n DropdownItem,\r\n DropdownMenu,\r\n DropdownTrigger,\r\n Input,\r\n Modal,\r\n ModalBody,\r\n ModalContent,\r\n ModalFooter,\r\n ModalHeader,\r\n Spinner,\r\n Table,\r\n TableBody,\r\n TableCell,\r\n TableColumn,\r\n TableHeader,\r\n TableRow,\r\n} from \"@heroui/react\";\r\nimport { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\r\nimport { Mail, MoreHorizontal, Search, Trash2, UserPlus, X } from \"lucide-react\";\r\nimport { useEffect, useId, useState } from \"react\";\r\nimport { toast } from \"sonner\";\r\nimport type { UseBackendTRPC } from \"../../../types\";\r\n\r\ninterface AdminWaitlistProps {\r\n useTRPC: UseBackendTRPC;\r\n}\r\n\r\nexport function AdminWaitlist({ useTRPC }: AdminWaitlistProps) {\r\n const trpc = useTRPC();\r\n const queryClient = useQueryClient();\r\n\r\n const { data: waitlist = [], isLoading } = useQuery(trpc.auth.listAdminWaitlist.queryOptions());\r\n const { mutate: invite, isPending: isInviting } = useMutation(\r\n trpc.auth.inviteFromWaitlist.mutationOptions({\r\n onSuccess: () => {\r\n queryClient.invalidateQueries({ queryKey: trpc.auth.listAdminWaitlist.queryKey() });\r\n toast.success(\"Invitation sent successfully\");\r\n },\r\n onError: (error) => {\r\n toast.error(\r\n `Failed to send invitation: ${error instanceof Error ? error.message : String(error)}`\r\n );\r\n },\r\n })\r\n );\r\n const { mutate: remove, isPending: isRemoving } = useMutation(\r\n trpc.auth.removeFromWaitlist.mutationOptions({\r\n onSuccess: () => {\r\n queryClient.invalidateQueries({ queryKey: trpc.auth.listAdminWaitlist.queryKey() });\r\n toast.success(\"Removed from waitlist successfully\");\r\n },\r\n onError: (error) => {\r\n toast.error(`Failed to remove: ${error instanceof Error ? error.message : String(error)}`);\r\n },\r\n onSettled: () => {\r\n setItemToDelete(null);\r\n },\r\n })\r\n );\r\n const { mutate: add, isPending: isAdding } = useMutation(\r\n trpc.auth.addToWaitlist.mutationOptions({\r\n onSuccess: () => {\r\n queryClient.invalidateQueries({ queryKey: trpc.auth.listAdminWaitlist.queryKey() });\r\n toast.success(\"Added to waitlist successfully\");\r\n },\r\n onError: (error) => {\r\n toast.error(\r\n `Failed to add to waitlist: ${error instanceof Error ? error.message : String(error)}`\r\n );\r\n },\r\n })\r\n );\r\n const emailInputId = useId();\r\n const [searchQuery, setSearchQuery] = useState(\"\");\r\n const [debouncedSearchQuery, setDebouncedSearchQuery] = useState(\"\");\r\n const [itemToDelete, setItemToDelete] = useState<string | null>(null);\r\n const [isAddModalOpen, setIsAddModalOpen] = useState(false);\r\n const [newEmail, setNewEmail] = useState(\"\");\r\n\r\n // Debounce search query\r\n useEffect(() => {\r\n const timer = setTimeout(() => {\r\n setDebouncedSearchQuery(searchQuery);\r\n }, 300);\r\n\r\n return () => clearTimeout(timer);\r\n }, [searchQuery]);\r\n\r\n const filteredWaitlist = waitlist.filter((item) =>\r\n item.email?.toLowerCase().includes(debouncedSearchQuery?.toLowerCase() ?? \"\")\r\n );\r\n\r\n const handleInvite = (id: string) => {\r\n invite({ id });\r\n };\r\n\r\n const handleRemove = () => {\r\n if (itemToDelete) {\r\n remove({ id: itemToDelete });\r\n }\r\n };\r\n\r\n const handleAdd = async () => {\r\n if (!newEmail.trim()) {\r\n toast.error(\"Please enter an email address\");\r\n return;\r\n }\r\n\r\n // Basic email validation\r\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\r\n if (!emailRegex.test(newEmail.trim())) {\r\n toast.error(\"Please enter a valid email address\");\r\n return;\r\n }\r\n\r\n add({ email: newEmail.trim() });\r\n setNewEmail(\"\");\r\n setIsAddModalOpen(false);\r\n };\r\n\r\n const formatDate = (date: Date | string | null) => {\r\n if (!date) return \"N/A\";\r\n const dateObj = typeof date === \"string\" ? new Date(date) : date;\r\n return dateObj.toLocaleDateString(undefined, {\r\n year: \"numeric\",\r\n month: \"short\",\r\n day: \"numeric\",\r\n hour: \"2-digit\",\r\n minute: \"2-digit\",\r\n });\r\n };\r\n\r\n const getStatusBadge = (status: string) => {\r\n const statusLower = status.toLowerCase();\r\n if (statusLower === \"invited\" || statusLower === \"active\") {\r\n return (\r\n <span className=\"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800\">\r\n {status}\r\n </span>\r\n );\r\n }\r\n if (statusLower === \"pending\") {\r\n return (\r\n <span className=\"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800\">\r\n {status}\r\n </span>\r\n );\r\n }\r\n return (\r\n <span className=\"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800\">\r\n {status}\r\n </span>\r\n );\r\n };\r\n\r\n if (isLoading) {\r\n return (\r\n <div className=\"flex justify-center p-8\">\r\n <Spinner />\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <div className=\"space-y-4 p-4\">\r\n <div className=\"flex justify-between items-center\">\r\n <h2 className=\"text-xl font-semibold\">Waitlist Management</h2>\r\n <div className=\"flex items-center gap-2\">\r\n <Button onPress={() => setIsAddModalOpen(true)} size=\"sm\">\r\n <UserPlus className=\"h-4 w-4 mr-2\" />\r\n Add to Waitlist\r\n </Button>\r\n <div className=\"text-sm text-muted-foreground\">Total: {waitlist.length}</div>\r\n </div>\r\n </div>\r\n\r\n {/* Search */}\r\n <div className=\"flex flex-col sm:flex-row gap-3 items-start sm:items-center\">\r\n <form\r\n className=\"relative flex-1\"\r\n onSubmit={(e) => {\r\n e.preventDefault();\r\n setDebouncedSearchQuery(searchQuery);\r\n }}\r\n >\r\n <Search className=\"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground\" />\r\n <Input\r\n aria-label=\"Search by email\"\r\n placeholder=\"Search by email...\"\r\n className=\"pl-8 w-full\"\r\n value={searchQuery}\r\n onChange={(e) => setSearchQuery(e.target.value)}\r\n variant=\"bordered\"\r\n />\r\n {searchQuery && (\r\n <button\r\n type=\"button\"\r\n onClick={() => setSearchQuery(\"\")}\r\n className=\"absolute right-2.5 top-2.5 text-muted-foreground hover:text-foreground\"\r\n aria-label=\"Clear search\"\r\n >\r\n <X className=\"h-4 w-4\" />\r\n </button>\r\n )}\r\n </form>\r\n </div>\r\n\r\n <div className=\"border rounded-lg overflow-hidden\">\r\n <Table aria-label=\"Waitlist table\" removeWrapper>\r\n <TableHeader>\r\n <TableColumn>Email</TableColumn>\r\n <TableColumn>Status</TableColumn>\r\n <TableColumn>Created At</TableColumn>\r\n <TableColumn>Updated At</TableColumn>\r\n <TableColumn className=\"text-right\">Actions</TableColumn>\r\n </TableHeader>\r\n <TableBody\r\n items={filteredWaitlist}\r\n emptyContent={\r\n searchQuery\r\n ? \"No waitlist entries found matching your search\"\r\n : \"No waitlist entries found\"\r\n }\r\n >\r\n {(item) => (\r\n <TableRow key={item.id}>\r\n <TableCell className=\"font-medium\">{item.email}</TableCell>\r\n <TableCell>{getStatusBadge(item.status)}</TableCell>\r\n <TableCell>{formatDate(item.createdAt)}</TableCell>\r\n <TableCell>{formatDate(item.updatedAt)}</TableCell>\r\n <TableCell className=\"text-right\">\r\n <Dropdown placement=\"bottom-end\">\r\n <DropdownTrigger>\r\n <Button variant=\"light\" size=\"sm\" isIconOnly>\r\n <MoreHorizontal className=\"h-4 w-4\" />\r\n </Button>\r\n </DropdownTrigger>\r\n <DropdownMenu aria-label=\"Waitlist actions\">\r\n <DropdownItem\r\n key=\"invite\"\r\n onPress={() => handleInvite(item.id)}\r\n isDisabled={isInviting}\r\n >\r\n {isInviting ? (\r\n <>\r\n <Spinner className=\"mr-2 h-3 w-3\" />\r\n Inviting...\r\n </>\r\n ) : (\r\n <>\r\n <Mail className=\"mr-2 h-4 w-4\" />\r\n Send Invitation\r\n </>\r\n )}\r\n </DropdownItem>\r\n <DropdownItem\r\n key=\"remove\"\r\n className=\"text-danger\"\r\n onClick={() => setItemToDelete(item.id)}\r\n >\r\n <Trash2 className=\"mr-2 h-4 w-4\" />\r\n Remove\r\n </DropdownItem>\r\n </DropdownMenu>\r\n </Dropdown>\r\n </TableCell>\r\n </TableRow>\r\n )}\r\n </TableBody>\r\n </Table>\r\n </div>\r\n\r\n {/* Remove confirmation modal */}\r\n <Modal\r\n isOpen={!!itemToDelete}\r\n onOpenChange={(open) => {\r\n if (!open) setItemToDelete(null);\r\n }}\r\n >\r\n <ModalContent>\r\n {(onClose) => (\r\n <>\r\n <ModalHeader className=\"flex flex-col gap-1\">\r\n <p className=\"text-lg font-semibold\">Are you sure?</p>\r\n <p className=\"text-sm text-default-600\">\r\n This action cannot be undone. This will permanently remove this entry from the\r\n waitlist.\r\n </p>\r\n </ModalHeader>\r\n <ModalFooter>\r\n <Button variant=\"bordered\" onPress={onClose}>\r\n Cancel\r\n </Button>\r\n <Button color=\"danger\" onPress={handleRemove} isLoading={isRemoving}>\r\n Remove\r\n </Button>\r\n </ModalFooter>\r\n </>\r\n )}\r\n </ModalContent>\r\n </Modal>\r\n\r\n {/* Add to waitlist modal */}\r\n <Modal\r\n isOpen={isAddModalOpen}\r\n onOpenChange={(open) => {\r\n if (!open) setIsAddModalOpen(false);\r\n }}\r\n >\r\n <ModalContent>\r\n {(onClose) => (\r\n <form\r\n onSubmit={(e) => {\r\n e.preventDefault();\r\n handleAdd();\r\n }}\r\n className=\"space-y-4\"\r\n >\r\n <ModalHeader className=\"flex flex-col gap-1\">\r\n <p className=\"text-lg font-semibold\">Add to Waitlist</p>\r\n <p className=\"text-sm text-default-600\">\r\n Enter an email address to add someone to the waitlist.\r\n </p>\r\n </ModalHeader>\r\n\r\n <ModalBody className=\"space-y-4\">\r\n <div className=\"space-y-2\">\r\n <Input\r\n id={emailInputId}\r\n label=\"Email *\"\r\n labelPlacement=\"outside\"\r\n type=\"email\"\r\n placeholder=\"Enter email address\"\r\n value={newEmail}\r\n onChange={(e) => setNewEmail(e.target.value)}\r\n variant=\"bordered\"\r\n />\r\n </div>\r\n </ModalBody>\r\n\r\n <ModalFooter>\r\n <Button variant=\"bordered\" type=\"button\" onPress={onClose}>\r\n Cancel\r\n </Button>\r\n <Button type=\"submit\" color=\"primary\" isDisabled={isAdding} isLoading={isAdding}>\r\n {isAdding ? \"Adding...\" : \"Add to Waitlist\"}\r\n </Button>\r\n </ModalFooter>\r\n </form>\r\n )}\r\n </ModalContent>\r\n </Modal>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;AA8BA,SAAgB,cAAc,EAAE,WAA+B;CAC7D,MAAM,OAAO,SAAS;CACtB,MA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ACT,CAAA;GACJ"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/modules/auth/components/AuthLayout.d.ts
|
|
5
|
+
declare function AuthLayout({
|
|
6
|
+
header
|
|
7
|
+
}: {
|
|
8
|
+
header: ReactNode;
|
|
9
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AuthLayout };
|
|
12
|
+
//# sourceMappingURL=AuthLayout.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Outlet } from "react-router";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
//#region src/modules/auth/components/AuthLayout.tsx
|
|
4
|
+
function AuthLayout({ header }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6
|
+
className: "flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10",
|
|
7
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
8
|
+
className: "flex w-full max-w-sm flex-col gap-6",
|
|
9
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
10
|
+
className: "flex items-center gap-2 self-center font-medium",
|
|
11
|
+
children: header
|
|
12
|
+
}), /* @__PURE__ */ jsx(Outlet, {})]
|
|
13
|
+
})
|
|
14
|
+
});
|
|
5
15
|
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { AuthLayout };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=AuthLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthLayout.js","names":[],"sources":["../../../../../src/modules/auth/components/AuthLayout.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\r\nimport { Outlet } from \"react-router\";\r\n\r\nexport function AuthLayout({ header }: { header: ReactNode }) {\r\n return (\r\n <div className=\"flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10\">\r\n <div className=\"flex w-full max-w-sm flex-col gap-6\">\r\n <div className=\"flex items-center gap-2 self-center font-medium\">{header}</div>\r\n <Outlet />\r\n </div>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;AAGA,SAAgB,WAAW,EAAE,UAAiC;AAC5D,QACE,oBAAC,OAAD;EAAK,WAAU;YACb,qBAAC,OAAD;GAAK,WAAU;aAAf,CACE,oBAAC,OAAD;IAAK,WAAU;cAAmD;IAAa,CAAA,EAC/E,oBAAC,QAAD,EAAU,CAAA,CACN;;EACF,CAAA"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/auth/components/AuthProviders.d.ts
|
|
4
|
+
declare function AuthProviders({
|
|
5
|
+
providers,
|
|
6
|
+
lastMethod,
|
|
7
|
+
code,
|
|
8
|
+
requestSignUp
|
|
9
|
+
}: {
|
|
10
|
+
providers?: string[];
|
|
11
|
+
code?: string | null;
|
|
12
|
+
requestSignUp?: boolean;
|
|
13
|
+
lastMethod?: string | null;
|
|
14
|
+
}): _$react_jsx_runtime0.JSX.Element | null;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AuthProviders };
|
|
17
|
+
//# sourceMappingURL=AuthProviders.d.ts.map
|
|
@@ -1,45 +1,84 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GoogleIcon } from "../../../icons/GoogleIcon.js";
|
|
2
|
+
import { LinkedInIcon } from "../../../icons/LinkedInIcon.js";
|
|
3
|
+
import { MicrosoftIcon } from "../../../icons/MicrosoftIcon.js";
|
|
4
|
+
import { LastUsedBadge } from "./LastUsedBadge.js";
|
|
2
5
|
import { Button } from "@heroui/react";
|
|
3
|
-
import {
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
7
|
import { useTranslation } from "react-i18next";
|
|
5
8
|
import { toast } from "sonner";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
9
|
+
import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
|
|
10
|
+
//#region src/modules/auth/components/AuthProviders.tsx
|
|
11
|
+
function AuthProviders({ providers, lastMethod, code, requestSignUp = false }) {
|
|
12
|
+
const { t } = useTranslation();
|
|
13
|
+
if (!providers || providers.length === 0) return null;
|
|
14
|
+
const additionalData = code ? { waitlistInvitationCode: code } : {};
|
|
15
|
+
const handleSignIn = (result) => {
|
|
16
|
+
if (result.error) toast.error(t("web-ui:auth.errors.invitationCodeInvalid"));
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "flex flex-col gap-4",
|
|
20
|
+
children: [
|
|
21
|
+
providers.includes("google") && /* @__PURE__ */ jsx(LastUsedBadge, {
|
|
22
|
+
lastMethod,
|
|
23
|
+
method: "google",
|
|
24
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
25
|
+
type: "button",
|
|
26
|
+
variant: "bordered",
|
|
27
|
+
className: "w-full gap-2",
|
|
28
|
+
onPress: () => {
|
|
29
|
+
authClient.signIn.social({
|
|
30
|
+
provider: "google",
|
|
31
|
+
requestSignUp,
|
|
32
|
+
additionalData
|
|
33
|
+
}).then(handleSignIn);
|
|
34
|
+
},
|
|
35
|
+
children: [/* @__PURE__ */ jsx(GoogleIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.google")]
|
|
36
|
+
})
|
|
37
|
+
}),
|
|
38
|
+
providers.includes("linkedin") && /* @__PURE__ */ jsx(LastUsedBadge, {
|
|
39
|
+
lastMethod,
|
|
40
|
+
method: "linkedin",
|
|
41
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
42
|
+
type: "button",
|
|
43
|
+
variant: "bordered",
|
|
44
|
+
className: "w-full",
|
|
45
|
+
onPress: () => {
|
|
46
|
+
authClient.signIn.social({
|
|
47
|
+
provider: "linkedin",
|
|
48
|
+
requestSignUp,
|
|
49
|
+
additionalData
|
|
50
|
+
}).then(handleSignIn);
|
|
51
|
+
},
|
|
52
|
+
children: [/* @__PURE__ */ jsx(LinkedInIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.linkedin")]
|
|
53
|
+
})
|
|
54
|
+
}),
|
|
55
|
+
providers.includes("microsoft") && /* @__PURE__ */ jsx(LastUsedBadge, {
|
|
56
|
+
lastMethod,
|
|
57
|
+
method: "microsoft",
|
|
58
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
59
|
+
type: "button",
|
|
60
|
+
variant: "bordered",
|
|
61
|
+
className: "w-full",
|
|
62
|
+
onPress: () => {
|
|
63
|
+
authClient.signIn.social({
|
|
64
|
+
provider: "microsoft",
|
|
65
|
+
requestSignUp,
|
|
66
|
+
additionalData
|
|
67
|
+
}).then(handleSignIn);
|
|
68
|
+
},
|
|
69
|
+
children: [/* @__PURE__ */ jsx(MicrosoftIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.microsoft")]
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
74
|
+
className: "relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t after:border-border",
|
|
75
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
76
|
+
className: "relative z-10 bg-background px-2 text-muted-foreground",
|
|
77
|
+
children: t("web-ui:auth.login.orContinueWith")
|
|
78
|
+
})
|
|
79
|
+
})] });
|
|
45
80
|
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { AuthProviders };
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=AuthProviders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthProviders.js","names":[],"sources":["../../../../../src/modules/auth/components/AuthProviders.tsx"],"sourcesContent":["import { Button } from \"@heroui/react\";\r\nimport { authClient } from \"@m5kdev/frontend/modules/auth/auth.lib\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { toast } from \"sonner\";\r\nimport { GoogleIcon } from \"../../../icons/GoogleIcon\";\r\nimport { LinkedInIcon } from \"../../../icons/LinkedInIcon\";\r\nimport { MicrosoftIcon } from \"../../../icons/MicrosoftIcon\";\r\nimport { LastUsedBadge } from \"./LastUsedBadge\";\r\n\r\nexport function AuthProviders({\r\n providers,\r\n lastMethod,\r\n code,\r\n requestSignUp = false,\r\n}: {\r\n providers?: string[];\r\n code?: string | null;\r\n requestSignUp?: boolean;\r\n lastMethod?: string | null;\r\n}) {\r\n const { t } = useTranslation();\r\n if (!providers || providers.length === 0) return null;\r\n const additionalData = code ? { waitlistInvitationCode: code } : {};\r\n\r\n const handleSignIn = (result: any) => {\r\n if (result.error) {\r\n toast.error(t(\"web-ui:auth.errors.invitationCodeInvalid\"));\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n <div className=\"flex flex-col gap-4\">\r\n {providers.includes(\"google\") && (\r\n <LastUsedBadge lastMethod={lastMethod} method=\"google\">\r\n <Button\r\n type=\"button\"\r\n variant=\"bordered\"\r\n className=\"w-full gap-2\"\r\n onPress={() => {\r\n authClient.signIn\r\n .social({\r\n provider: \"google\",\r\n requestSignUp,\r\n additionalData,\r\n })\r\n .then(handleSignIn);\r\n }}\r\n >\r\n <GoogleIcon className=\"h-5 w-5\" />\r\n {t(\"web-ui:auth.login.google\")}\r\n </Button>\r\n </LastUsedBadge>\r\n )}\r\n {providers.includes(\"linkedin\") && (\r\n <LastUsedBadge lastMethod={lastMethod} method=\"linkedin\">\r\n <Button\r\n type=\"button\"\r\n variant=\"bordered\"\r\n className=\"w-full\"\r\n onPress={() => {\r\n authClient.signIn\r\n .social({\r\n provider: \"linkedin\",\r\n requestSignUp,\r\n additionalData,\r\n })\r\n .then(handleSignIn);\r\n }}\r\n >\r\n <LinkedInIcon className=\"h-5 w-5\" />\r\n {t(\"web-ui:auth.login.linkedin\")}\r\n </Button>\r\n </LastUsedBadge>\r\n )}\r\n {providers.includes(\"microsoft\") && (\r\n <LastUsedBadge lastMethod={lastMethod} method=\"microsoft\">\r\n <Button\r\n type=\"button\"\r\n variant=\"bordered\"\r\n className=\"w-full\"\r\n onPress={() => {\r\n authClient.signIn\r\n .social({\r\n provider: \"microsoft\",\r\n requestSignUp,\r\n additionalData,\r\n })\r\n .then(handleSignIn);\r\n }}\r\n >\r\n <MicrosoftIcon className=\"h-5 w-5\" />\r\n {t(\"web-ui:auth.login.microsoft\")}\r\n </Button>\r\n </LastUsedBadge>\r\n )}\r\n </div>\r\n <div className=\"relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t after:border-border\">\r\n <span className=\"relative z-10 bg-background px-2 text-muted-foreground\">\r\n {t(\"web-ui:auth.login.orContinueWith\")}\r\n </span>\r\n </div>\r\n </>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;;;AASA,SAAgB,cAAc,EAC5B,WACA,YACA,MACA,gBAAgB,SAMf;CACD,MAAM,EAAE,M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AAmC;GACjC,CAAA;EACH,CAAA,CACL,EAAA,CAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { UseBackendTRPC } from "../../../types.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/auth/components/AuthRouter.d.ts
|
|
3
6
|
interface AuthRouterProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
header: ReactNode;
|
|
8
|
+
providers?: string[];
|
|
9
|
+
useTRPC?: UseBackendTRPC;
|
|
7
10
|
}
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
declare function AuthRouter({
|
|
12
|
+
header,
|
|
13
|
+
providers,
|
|
14
|
+
useTRPC
|
|
15
|
+
}: AuthRouterProps): _$react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { AuthRouter };
|
|
18
|
+
//# sourceMappingURL=AuthRouter.d.ts.map
|
|
@@ -1,12 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthLayout } from "./AuthLayout.js";
|
|
2
|
+
import { ClaimAccountRoute } from "./ClaimAccountRoute.js";
|
|
3
|
+
import { ErrorAuthRoute } from "./ErrorAuthRoute.js";
|
|
4
|
+
import { ForgotPasswordRoute } from "./ForgotPasswordRoute.js";
|
|
5
|
+
import { LoginRoute } from "./LoginRoute.js";
|
|
6
|
+
import { ResetPasswordRoute } from "./ResetPasswordRoute.js";
|
|
7
|
+
import { SignupRoute } from "./SignupRoute.js";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
9
|
import { Route } from "react-router";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
//#region src/modules/auth/components/AuthRouter.tsx
|
|
11
|
+
function AuthRouter({ header, providers, useTRPC }) {
|
|
12
|
+
return /* @__PURE__ */ jsxs(Route, {
|
|
13
|
+
element: /* @__PURE__ */ jsx(AuthLayout, { header }),
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ jsx(Route, {
|
|
16
|
+
path: "/login",
|
|
17
|
+
element: /* @__PURE__ */ jsx(LoginRoute, { providers })
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ jsx(Route, {
|
|
20
|
+
path: "/signup",
|
|
21
|
+
element: /* @__PURE__ */ jsx(SignupRoute, {
|
|
22
|
+
providers,
|
|
23
|
+
useTRPC
|
|
24
|
+
})
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsx(Route, {
|
|
27
|
+
path: "/forgot-password",
|
|
28
|
+
element: /* @__PURE__ */ jsx(ForgotPasswordRoute, {})
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsx(Route, {
|
|
31
|
+
path: "/reset-password",
|
|
32
|
+
element: /* @__PURE__ */ jsx(ResetPasswordRoute, {})
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ jsx(Route, {
|
|
35
|
+
path: "/claim-account",
|
|
36
|
+
element: /* @__PURE__ */ jsx(ClaimAccountRoute, { useTRPC })
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ jsx(Route, {
|
|
39
|
+
path: "/error-auth",
|
|
40
|
+
element: /* @__PURE__ */ jsx(ErrorAuthRoute, {})
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
});
|
|
12
44
|
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { AuthRouter };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=AuthRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthRouter.js","names":[],"sources":["../../../../../src/modules/auth/components/AuthRouter.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\r\nimport { Route } from \"react-router\";\r\nimport { AuthLayout } from \"./AuthLayout\";\r\nimport { ClaimAccountRoute } from \"./ClaimAccountRoute\";\r\nimport { ErrorAuthRoute } from \"./ErrorAuthRoute\";\r\nimport { ForgotPasswordRoute } from \"./ForgotPasswordRoute\";\r\nimport { LoginRoute } from \"./LoginRoute\";\r\nimport { ResetPasswordRoute } from \"./ResetPasswordRoute\";\r\nimport { SignupRoute } from \"./SignupRoute\";\r\nimport type { UseBackendTRPC } from \"../../../types\";\r\n\r\ninterface AuthRouterProps {\r\n header: ReactNode;\r\n providers?: string[];\r\n useTRPC?: UseBackendTRPC;\r\n}\r\n\r\nexport function AuthRouter({ header, providers, useTRPC }: AuthRouterProps) {\r\n return (\r\n <Route element={<AuthLayout header={header} />}>\r\n <Route path=\"/login\" element={<LoginRoute providers={providers} />} />\r\n <Route path=\"/signup\" element={<SignupRoute providers={providers} useTRPC={useTRPC} />} />\r\n <Route path=\"/forgot-password\" element={<ForgotPasswordRoute />} />\r\n <Route path=\"/reset-password\" element={<ResetPasswordRoute />} />\r\n <Route path=\"/claim-account\" element={<ClaimAccountRoute useTRPC={useTRPC} />} />\r\n <Route path=\"/error-auth\" element={<ErrorAuthRoute />} />\r\n </Route>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;;;AAiBA,SAAgB,WAAW,EAAE,QAAQ,WAAW,WAA4B;AAC1E,QACE,qBAAC,OAAD;EAAO,SAAS,oBAAC,YAAD,EAAoB,QAAU,CAAA;YAA9C;GACE,oBAAC,OAAD;IAAO,MAAK;IAAS,SAAS,oBAAC,YAAD,EAAuB,WAAa,CAAA;IAAI,CAAA;GACtE,oBAAC,OAAD;IAAO,MAAK;IAAU,SAAS,oBAAC,aAAD;KAAwB;KAAoB;KAAW,CAAA;IAAI,CAAA;GAC1F,oBAAC,OAAD;IAAO,MAAK;IAAmB,SAAS,oBAAC,qBAAD,EAAuB,CAAA;IAAI,CAAA;GACnE,oBAAC,OAAD;IAAO,MAAK;IAAkB,SAAS,oBAAC,oBAAD,EAAsB,CAAA;IAAI,CAAA;GACjE,oBAAC,OAAD;IAAO,MAAK;IAAiB,SAAS,oBAAC,mBAAD,EAA4B,SAAW,CAAA;IAAI,CAAA;GACjF,oBAAC,OAAD;IAAO,MAAK;IAAc,SAAS,oBAAC,gBAAD,EAAkB,CAAA;IAAI,CAAA;GACnD"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { UseBackendTRPC } from "../../../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/modules/auth/components/ClaimAccountRoute.d.ts
|
|
5
|
+
declare function ClaimAccountRoute({
|
|
6
|
+
useTRPC
|
|
7
|
+
}: {
|
|
8
|
+
useTRPC?: UseBackendTRPC;
|
|
9
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ClaimAccountRoute };
|
|
12
|
+
//# sourceMappingURL=ClaimAccountRoute.d.ts.map
|