better-auth-ui 3.2.6 → 3.2.11

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/index.d.cts CHANGED
@@ -23,7 +23,7 @@ import 'inspector';
23
23
  import 'better-auth/client/plugins';
24
24
  import 'better-auth/plugins/passkey';
25
25
 
26
- declare function Card({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
26
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
27
27
 
28
28
  type Profile = {
29
29
  id?: string | number;
@@ -41,7 +41,7 @@ type Profile = {
41
41
  avatarUrl?: string | null;
42
42
  };
43
43
 
44
- declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime.JSX.Element;
44
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
45
45
 
46
46
  interface UserAvatarClassNames {
47
47
  base?: string;
@@ -295,7 +295,7 @@ interface AcceptInvitationCardProps {
295
295
  }
296
296
  declare function AcceptInvitationCard({ className, classNames, localization: localizationProp }: AcceptInvitationCardProps): react_jsx_runtime.JSX.Element;
297
297
 
298
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
298
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
299
299
 
300
300
  interface CreateOrganizationDialogProps extends ComponentProps<typeof Dialog> {
301
301
  className?: string;
@@ -343,7 +343,7 @@ interface OrganizationViewClassNames {
343
343
  subtitle?: string;
344
344
  skeleton?: string;
345
345
  }
346
- interface OrganizationViewProps {
346
+ interface OrganizationCellViewProps {
347
347
  className?: string;
348
348
  classNames?: OrganizationViewClassNames;
349
349
  isPending?: boolean;
@@ -355,11 +355,12 @@ interface OrganizationViewProps {
355
355
  */
356
356
  localization?: AuthLocalization;
357
357
  }
358
- declare function OrganizationCellView({ className, classNames, isPending, size, organization, localization: propLocalization }: OrganizationViewProps): react_jsx_runtime.JSX.Element;
358
+ declare function OrganizationCellView({ className, classNames, isPending, size, organization, localization: propLocalization }: OrganizationCellViewProps): react_jsx_runtime.JSX.Element;
359
359
 
360
- declare function OrganizationInvitationsCard({ className, classNames, localization: localizationProp, slug: slugProp, ...props }: SettingsCardProps & {
360
+ type OrganizationInvitationsCardProps = SettingsCardProps & {
361
361
  slug?: string;
362
- }): react_jsx_runtime.JSX.Element | null;
362
+ };
363
+ declare function OrganizationInvitationsCard({ className, classNames, localization: localizationProp, slug: slugProp, ...props }: OrganizationInvitationsCardProps): react_jsx_runtime.JSX.Element | null;
363
364
 
364
365
  interface OrganizationLogoCardProps extends ComponentProps<typeof Card> {
365
366
  className?: string;
@@ -398,9 +399,10 @@ declare const buttonVariants: (props?: ({
398
399
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
399
400
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
400
401
  } & class_variance_authority_types.ClassProp) | undefined) => string;
401
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
402
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
402
403
  asChild?: boolean;
403
- }): react_jsx_runtime.JSX.Element;
404
+ }
405
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
404
406
 
405
407
  interface UserViewClassNames {
406
408
  base?: string;
@@ -482,17 +484,19 @@ interface OrganizationSwitcherProps extends Omit<ComponentProps<typeof Button>,
482
484
  */
483
485
  declare function OrganizationSwitcher({ className, classNames, align, alignOffset, side, sideOffset, trigger, localization: localizationProp, slug: slugProp, size, onSetActive, hidePersonal, ...props }: OrganizationSwitcherProps): react_jsx_runtime.JSX.Element;
484
486
 
485
- type OrganizationViewPageProps = Omit<AccountViewProps, "view"> & {
487
+ type OrganizationViewProps = Omit<AccountViewProps, "view"> & {
486
488
  slug?: string;
487
489
  view?: OrganizationViewPath;
488
490
  };
489
- declare function OrganizationView({ className, classNames, localization: localizationProp, path: pathProp, pathname, view: viewProp, hideNav, slug: slugProp }: OrganizationViewPageProps): react_jsx_runtime.JSX.Element;
491
+ declare function OrganizationView({ className, classNames, localization: localizationProp, path: pathProp, pathname, view: viewProp, hideNav, slug: slugProp }: OrganizationViewProps): react_jsx_runtime.JSX.Element;
490
492
 
491
- declare function OrganizationsCard({ className, classNames, localization, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element;
493
+ type OrganizationsCardProps = SettingsCardProps;
494
+ declare function OrganizationsCard({ className, classNames, localization, ...props }: OrganizationsCardProps): react_jsx_runtime.JSX.Element;
492
495
 
493
- declare function UserInvitationsCard({ className, classNames, localization: localizationProp, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element | null;
496
+ type UserInvitationsCardProps = SettingsCardProps;
497
+ declare function UserInvitationsCard({ className, classNames, localization: localizationProp, ...props }: UserInvitationsCardProps): react_jsx_runtime.JSX.Element | null;
494
498
 
495
- declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
499
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
496
500
 
497
501
  declare function PasswordInput({ className, enableToggle, onChange, ...props }: ComponentProps<typeof Input> & {
498
502
  enableToggle?: boolean;
@@ -768,4 +772,4 @@ declare function useCurrentOrganization({ slug: slugProp }?: {
768
772
  refetch: (() => void) | undefined;
769
773
  };
770
774
 
771
- export { AcceptInvitationCard, type AcceptInvitationCardProps, AccountSettingsCards, AccountView, AccountViewPath, type AccountViewProps, AccountsCard, type AccountsCardProps, ApiKeysCard, type ApiKeysCardProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLoading, AuthLocalization, AuthView, type AuthViewClassNames, AuthViewPath, AuthViewPaths, type AuthViewProps, ChangeEmailCard, ChangePasswordCard, type ChangePasswordCardProps, CreateOrganizationDialog, type CreateOrganizationDialogProps, DeleteAccountCard, type DeleteAccountCardProps, DeleteOrganizationCard, ForgotPasswordForm, type ForgotPasswordFormProps, InputFieldSkeleton, MagicLinkForm, type MagicLinkFormProps, OrganizationCellView, OrganizationInvitationsCard, OrganizationLogo, OrganizationLogoCard, type OrganizationLogoCardProps, type OrganizationLogoClassNames, type OrganizationLogoProps, OrganizationMembersCard, OrganizationNameCard, type OrganizationNameCardProps, OrganizationSettingsCards, type OrganizationSettingsCardsProps, OrganizationSlugCard, type OrganizationSlugCardProps, OrganizationSwitcher, type OrganizationSwitcherClassNames, type OrganizationSwitcherProps, OrganizationView, type OrganizationViewClassNames, type OrganizationViewPageProps, OrganizationViewPath, type OrganizationViewProps, OrganizationsCard, PasskeysCard, type PasskeysCardProps, PasswordInput, ProvidersCard, type ProvidersCardProps, RecoverAccountForm, type RecoverAccountFormProps, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, type ResetPasswordFormProps, SecuritySettingsCards, SessionsCard, type SessionsCardProps, SettingsCard, type SettingsCardClassNames, type SettingsCardProps, SettingsCellSkeleton, SignInForm, type SignInFormProps, SignOut, SignUpForm, type SignUpFormProps, SignedIn, SignedOut, TwoFactorCard, type TwoFactorCardProps, TwoFactorForm, type TwoFactorFormProps, UpdateAvatarCard, type UpdateAvatarCardProps, UpdateFieldCard, type UpdateFieldCardProps, UpdateNameCard, UpdateUsernameCard, UserAvatar, type UserAvatarClassNames, type UserAvatarProps, UserButton, type UserButtonClassNames, type UserButtonProps, UserInvitationsCard, UserView, type UserViewClassNames, type UserViewProps, useAuthData, useAuthenticate, useCurrentOrganization };
775
+ export { AcceptInvitationCard, type AcceptInvitationCardProps, AccountSettingsCards, AccountView, AccountViewPath, type AccountViewProps, AccountsCard, type AccountsCardProps, ApiKeysCard, type ApiKeysCardProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLoading, AuthLocalization, AuthView, type AuthViewClassNames, AuthViewPath, AuthViewPaths, type AuthViewProps, ChangeEmailCard, ChangePasswordCard, type ChangePasswordCardProps, CreateOrganizationDialog, type CreateOrganizationDialogProps, DeleteAccountCard, type DeleteAccountCardProps, DeleteOrganizationCard, ForgotPasswordForm, type ForgotPasswordFormProps, InputFieldSkeleton, MagicLinkForm, type MagicLinkFormProps, OrganizationCellView, type OrganizationCellViewProps, OrganizationInvitationsCard, type OrganizationInvitationsCardProps, OrganizationLogo, OrganizationLogoCard, type OrganizationLogoCardProps, type OrganizationLogoClassNames, type OrganizationLogoProps, OrganizationMembersCard, OrganizationNameCard, type OrganizationNameCardProps, OrganizationSettingsCards, type OrganizationSettingsCardsProps, OrganizationSlugCard, type OrganizationSlugCardProps, OrganizationSwitcher, type OrganizationSwitcherClassNames, type OrganizationSwitcherProps, OrganizationView, type OrganizationViewClassNames, OrganizationViewPath, type OrganizationViewProps, OrganizationsCard, type OrganizationsCardProps, PasskeysCard, type PasskeysCardProps, PasswordInput, ProvidersCard, type ProvidersCardProps, RecoverAccountForm, type RecoverAccountFormProps, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, type ResetPasswordFormProps, SecuritySettingsCards, SessionsCard, type SessionsCardProps, SettingsCard, type SettingsCardClassNames, type SettingsCardProps, SettingsCellSkeleton, SignInForm, type SignInFormProps, SignOut, SignUpForm, type SignUpFormProps, SignedIn, SignedOut, TwoFactorCard, type TwoFactorCardProps, TwoFactorForm, type TwoFactorFormProps, UpdateAvatarCard, type UpdateAvatarCardProps, UpdateFieldCard, type UpdateFieldCardProps, UpdateNameCard, UpdateUsernameCard, UserAvatar, type UserAvatarClassNames, type UserAvatarProps, UserButton, type UserButtonClassNames, type UserButtonProps, UserInvitationsCard, type UserInvitationsCardProps, UserView, type UserViewClassNames, type UserViewProps, useAuthData, useAuthenticate, useCurrentOrganization };
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ import 'inspector';
23
23
  import 'better-auth/client/plugins';
24
24
  import 'better-auth/plugins/passkey';
25
25
 
26
- declare function Card({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
26
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
27
27
 
28
28
  type Profile = {
29
29
  id?: string | number;
@@ -41,7 +41,7 @@ type Profile = {
41
41
  avatarUrl?: string | null;
42
42
  };
43
43
 
44
- declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime.JSX.Element;
44
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
45
45
 
46
46
  interface UserAvatarClassNames {
47
47
  base?: string;
@@ -295,7 +295,7 @@ interface AcceptInvitationCardProps {
295
295
  }
296
296
  declare function AcceptInvitationCard({ className, classNames, localization: localizationProp }: AcceptInvitationCardProps): react_jsx_runtime.JSX.Element;
297
297
 
298
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
298
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
299
299
 
300
300
  interface CreateOrganizationDialogProps extends ComponentProps<typeof Dialog> {
301
301
  className?: string;
@@ -343,7 +343,7 @@ interface OrganizationViewClassNames {
343
343
  subtitle?: string;
344
344
  skeleton?: string;
345
345
  }
346
- interface OrganizationViewProps {
346
+ interface OrganizationCellViewProps {
347
347
  className?: string;
348
348
  classNames?: OrganizationViewClassNames;
349
349
  isPending?: boolean;
@@ -355,11 +355,12 @@ interface OrganizationViewProps {
355
355
  */
356
356
  localization?: AuthLocalization;
357
357
  }
358
- declare function OrganizationCellView({ className, classNames, isPending, size, organization, localization: propLocalization }: OrganizationViewProps): react_jsx_runtime.JSX.Element;
358
+ declare function OrganizationCellView({ className, classNames, isPending, size, organization, localization: propLocalization }: OrganizationCellViewProps): react_jsx_runtime.JSX.Element;
359
359
 
360
- declare function OrganizationInvitationsCard({ className, classNames, localization: localizationProp, slug: slugProp, ...props }: SettingsCardProps & {
360
+ type OrganizationInvitationsCardProps = SettingsCardProps & {
361
361
  slug?: string;
362
- }): react_jsx_runtime.JSX.Element | null;
362
+ };
363
+ declare function OrganizationInvitationsCard({ className, classNames, localization: localizationProp, slug: slugProp, ...props }: OrganizationInvitationsCardProps): react_jsx_runtime.JSX.Element | null;
363
364
 
364
365
  interface OrganizationLogoCardProps extends ComponentProps<typeof Card> {
365
366
  className?: string;
@@ -398,9 +399,10 @@ declare const buttonVariants: (props?: ({
398
399
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
399
400
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
400
401
  } & class_variance_authority_types.ClassProp) | undefined) => string;
401
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
402
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
402
403
  asChild?: boolean;
403
- }): react_jsx_runtime.JSX.Element;
404
+ }
405
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
404
406
 
405
407
  interface UserViewClassNames {
406
408
  base?: string;
@@ -482,17 +484,19 @@ interface OrganizationSwitcherProps extends Omit<ComponentProps<typeof Button>,
482
484
  */
483
485
  declare function OrganizationSwitcher({ className, classNames, align, alignOffset, side, sideOffset, trigger, localization: localizationProp, slug: slugProp, size, onSetActive, hidePersonal, ...props }: OrganizationSwitcherProps): react_jsx_runtime.JSX.Element;
484
486
 
485
- type OrganizationViewPageProps = Omit<AccountViewProps, "view"> & {
487
+ type OrganizationViewProps = Omit<AccountViewProps, "view"> & {
486
488
  slug?: string;
487
489
  view?: OrganizationViewPath;
488
490
  };
489
- declare function OrganizationView({ className, classNames, localization: localizationProp, path: pathProp, pathname, view: viewProp, hideNav, slug: slugProp }: OrganizationViewPageProps): react_jsx_runtime.JSX.Element;
491
+ declare function OrganizationView({ className, classNames, localization: localizationProp, path: pathProp, pathname, view: viewProp, hideNav, slug: slugProp }: OrganizationViewProps): react_jsx_runtime.JSX.Element;
490
492
 
491
- declare function OrganizationsCard({ className, classNames, localization, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element;
493
+ type OrganizationsCardProps = SettingsCardProps;
494
+ declare function OrganizationsCard({ className, classNames, localization, ...props }: OrganizationsCardProps): react_jsx_runtime.JSX.Element;
492
495
 
493
- declare function UserInvitationsCard({ className, classNames, localization: localizationProp, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element | null;
496
+ type UserInvitationsCardProps = SettingsCardProps;
497
+ declare function UserInvitationsCard({ className, classNames, localization: localizationProp, ...props }: UserInvitationsCardProps): react_jsx_runtime.JSX.Element | null;
494
498
 
495
- declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
499
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
496
500
 
497
501
  declare function PasswordInput({ className, enableToggle, onChange, ...props }: ComponentProps<typeof Input> & {
498
502
  enableToggle?: boolean;
@@ -768,4 +772,4 @@ declare function useCurrentOrganization({ slug: slugProp }?: {
768
772
  refetch: (() => void) | undefined;
769
773
  };
770
774
 
771
- export { AcceptInvitationCard, type AcceptInvitationCardProps, AccountSettingsCards, AccountView, AccountViewPath, type AccountViewProps, AccountsCard, type AccountsCardProps, ApiKeysCard, type ApiKeysCardProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLoading, AuthLocalization, AuthView, type AuthViewClassNames, AuthViewPath, AuthViewPaths, type AuthViewProps, ChangeEmailCard, ChangePasswordCard, type ChangePasswordCardProps, CreateOrganizationDialog, type CreateOrganizationDialogProps, DeleteAccountCard, type DeleteAccountCardProps, DeleteOrganizationCard, ForgotPasswordForm, type ForgotPasswordFormProps, InputFieldSkeleton, MagicLinkForm, type MagicLinkFormProps, OrganizationCellView, OrganizationInvitationsCard, OrganizationLogo, OrganizationLogoCard, type OrganizationLogoCardProps, type OrganizationLogoClassNames, type OrganizationLogoProps, OrganizationMembersCard, OrganizationNameCard, type OrganizationNameCardProps, OrganizationSettingsCards, type OrganizationSettingsCardsProps, OrganizationSlugCard, type OrganizationSlugCardProps, OrganizationSwitcher, type OrganizationSwitcherClassNames, type OrganizationSwitcherProps, OrganizationView, type OrganizationViewClassNames, type OrganizationViewPageProps, OrganizationViewPath, type OrganizationViewProps, OrganizationsCard, PasskeysCard, type PasskeysCardProps, PasswordInput, ProvidersCard, type ProvidersCardProps, RecoverAccountForm, type RecoverAccountFormProps, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, type ResetPasswordFormProps, SecuritySettingsCards, SessionsCard, type SessionsCardProps, SettingsCard, type SettingsCardClassNames, type SettingsCardProps, SettingsCellSkeleton, SignInForm, type SignInFormProps, SignOut, SignUpForm, type SignUpFormProps, SignedIn, SignedOut, TwoFactorCard, type TwoFactorCardProps, TwoFactorForm, type TwoFactorFormProps, UpdateAvatarCard, type UpdateAvatarCardProps, UpdateFieldCard, type UpdateFieldCardProps, UpdateNameCard, UpdateUsernameCard, UserAvatar, type UserAvatarClassNames, type UserAvatarProps, UserButton, type UserButtonClassNames, type UserButtonProps, UserInvitationsCard, UserView, type UserViewClassNames, type UserViewProps, useAuthData, useAuthenticate, useCurrentOrganization };
775
+ export { AcceptInvitationCard, type AcceptInvitationCardProps, AccountSettingsCards, AccountView, AccountViewPath, type AccountViewProps, AccountsCard, type AccountsCardProps, ApiKeysCard, type ApiKeysCardProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLoading, AuthLocalization, AuthView, type AuthViewClassNames, AuthViewPath, AuthViewPaths, type AuthViewProps, ChangeEmailCard, ChangePasswordCard, type ChangePasswordCardProps, CreateOrganizationDialog, type CreateOrganizationDialogProps, DeleteAccountCard, type DeleteAccountCardProps, DeleteOrganizationCard, ForgotPasswordForm, type ForgotPasswordFormProps, InputFieldSkeleton, MagicLinkForm, type MagicLinkFormProps, OrganizationCellView, type OrganizationCellViewProps, OrganizationInvitationsCard, type OrganizationInvitationsCardProps, OrganizationLogo, OrganizationLogoCard, type OrganizationLogoCardProps, type OrganizationLogoClassNames, type OrganizationLogoProps, OrganizationMembersCard, OrganizationNameCard, type OrganizationNameCardProps, OrganizationSettingsCards, type OrganizationSettingsCardsProps, OrganizationSlugCard, type OrganizationSlugCardProps, OrganizationSwitcher, type OrganizationSwitcherClassNames, type OrganizationSwitcherProps, OrganizationView, type OrganizationViewClassNames, OrganizationViewPath, type OrganizationViewProps, OrganizationsCard, type OrganizationsCardProps, PasskeysCard, type PasskeysCardProps, PasswordInput, ProvidersCard, type ProvidersCardProps, RecoverAccountForm, type RecoverAccountFormProps, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, type ResetPasswordFormProps, SecuritySettingsCards, SessionsCard, type SessionsCardProps, SettingsCard, type SettingsCardClassNames, type SettingsCardProps, SettingsCellSkeleton, SignInForm, type SignInFormProps, SignOut, SignUpForm, type SignUpFormProps, SignedIn, SignedOut, TwoFactorCard, type TwoFactorCardProps, TwoFactorForm, type TwoFactorFormProps, UpdateAvatarCard, type UpdateAvatarCardProps, UpdateFieldCard, type UpdateFieldCardProps, UpdateNameCard, UpdateUsernameCard, UserAvatar, type UserAvatarClassNames, type UserAvatarProps, UserButton, type UserButtonClassNames, type UserButtonProps, UserInvitationsCard, type UserInvitationsCardProps, UserView, type UserViewClassNames, type UserViewProps, useAuthData, useAuthenticate, useCurrentOrganization };