@better-auth-ui/heroui 1.6.23 → 1.6.25

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.
@@ -0,0 +1,18 @@
1
+ export type OpenEmailButtonProps = {
2
+ /** Email address used to detect the provider, e.g. from the verify-email flow. */
3
+ email: string;
4
+ className?: string;
5
+ };
6
+ /**
7
+ * Render a link styled as a button that opens the user's email provider login
8
+ * page in a new tab.
9
+ *
10
+ * The provider is resolved from the email domain via the curated
11
+ * `@mikkelscheike/email-provider-links` dataset (Gmail, Outlook, GMX, etc.).
12
+ * Renders nothing when the domain is empty or not a known provider.
13
+ *
14
+ * @param email - Email address to resolve the provider from.
15
+ * @param className - Additional CSS classes applied to the link.
16
+ * @returns The open-email link element, or `null` when no provider matches.
17
+ */
18
+ export declare function OpenEmailButton({ email, className }: OpenEmailButtonProps): import("react").JSX.Element | null;
@@ -0,0 +1,19 @@
1
+ import { CardProps } from '@heroui/react';
2
+ export type VerifyEmailProps = {
3
+ className?: string;
4
+ variant?: CardProps["variant"];
5
+ };
6
+ /**
7
+ * Render a card prompting the user to verify their email, with a resend button
8
+ * that is rate-limited by a cooldown timer.
9
+ *
10
+ * The target email is read from `sessionStorage` (set when sign-up or sign-in
11
+ * redirects here); if none is stored the user is redirected back to sign-in.
12
+ * The resend button is disabled while a cooldown is active and shows the
13
+ * remaining seconds.
14
+ *
15
+ * @param className - Additional CSS classes applied to the outer card container
16
+ * @param variant - Variant to apply to the card
17
+ * @returns The verify-email card React element
18
+ */
19
+ export declare function VerifyEmail({ className, variant }: VerifyEmailProps): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './components/auth/additional-field';
2
2
  export * from './components/auth/auth';
3
3
  export * from './components/auth/auth-provider';
4
4
  export * from './components/auth/forgot-password';
5
+ export * from './components/auth/open-email-button';
5
6
  export * from './components/auth/provider-button';
6
7
  export * from './components/auth/provider-buttons';
7
8
  export * from './components/auth/reset-password';
@@ -19,3 +20,4 @@ export * from './components/auth/sign-up';
19
20
  export * from './components/auth/user/user-avatar';
20
21
  export * from './components/auth/user/user-button';
21
22
  export * from './components/auth/user/user-view';
23
+ export * from './components/auth/verify-email';