@better-auth-ui/heroui 1.6.19 → 1.6.21
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/components/auth/auth.d.ts +2 -1
- package/dist/components/auth/forgot-password.d.ts +1 -1
- package/dist/components/auth/magic-link/magic-link.d.ts +1 -1
- package/dist/components/auth/reset-password.d.ts +1 -1
- package/dist/components/auth/sign-in.d.ts +1 -1
- package/dist/components/auth/sign-up.d.ts +1 -1
- package/dist/components/auth/username/sign-in-username.d.ts +1 -1
- package/dist/index.js +237 -238
- package/dist/lib/auth/auth-plugin.d.ts +4 -2
- package/dist/plugins.js +908 -922
- package/package.json +10 -10
- package/src/components/auth/additional-field.tsx +11 -9
- package/src/components/auth/auth.tsx +11 -6
- package/src/components/auth/forgot-password.tsx +1 -6
- package/src/components/auth/magic-link/magic-link.tsx +2 -4
- package/src/components/auth/organization/organization-invitations.tsx +10 -33
- package/src/components/auth/organization/organization-members.tsx +6 -29
- package/src/components/auth/reset-password.tsx +1 -6
- package/src/components/auth/sign-in.tsx +8 -10
- package/src/components/auth/sign-up.tsx +2 -4
- package/src/components/auth/theme/appearance.tsx +6 -6
- package/src/components/auth/user/user-button.tsx +2 -2
- package/src/components/auth/username/sign-in-username.tsx +8 -10
- package/src/lib/auth/auth-plugin.ts +4 -2
|
@@ -13,6 +13,7 @@ export type AuthProps = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Render the appropriate authentication view based on the provided `view` or `path`.
|
|
15
15
|
*
|
|
16
|
+
* @param className - Class name applied to the rendered view's card
|
|
16
17
|
* @param path - Route path used to resolve an auth view when `view` is not provided
|
|
17
18
|
* @param socialLayout - Social layout to apply to sign-in/sign-up/magic-link views
|
|
18
19
|
* @param socialPosition - Position for social buttons ("top" or "bottom")
|
|
@@ -20,4 +21,4 @@ export type AuthProps = {
|
|
|
20
21
|
* @param view - Explicit auth view to render (e.g., "signIn", "signUp")
|
|
21
22
|
* @returns The React element for the resolved authentication view
|
|
22
23
|
*/
|
|
23
|
-
export declare function Auth({ path, socialLayout, socialPosition,
|
|
24
|
+
export declare function Auth({ className, path, socialLayout, socialPosition, variant, view }: AuthProps): import("react").JSX.Element | null;
|
|
@@ -12,4 +12,4 @@ export type ForgotPasswordProps = {
|
|
|
12
12
|
* @param className - Optional additional CSS class names applied to the card
|
|
13
13
|
* @returns The forgot-password form UI as a JSX element
|
|
14
14
|
*/
|
|
15
|
-
export declare function ForgotPassword({ className, variant
|
|
15
|
+
export declare function ForgotPassword({ className, variant }: ForgotPasswordProps): import("react").JSX.Element;
|
|
@@ -13,4 +13,4 @@ export type MagicLinkProps = {
|
|
|
13
13
|
* @param socialPosition - `"top"` or `"bottom"`. Defaults to `"bottom"`.
|
|
14
14
|
* @param variant - Card variant.
|
|
15
15
|
*/
|
|
16
|
-
export declare function MagicLink({ className, socialLayout, socialPosition, variant
|
|
16
|
+
export declare function MagicLink({ className, socialLayout, socialPosition, variant }: MagicLinkProps): import("react").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export type ResetPasswordProps = {
|
|
|
8
8
|
*
|
|
9
9
|
* Renders password (and optional confirm-password) inputs with visibility toggles, applies min/max length constraints from the auth configuration, shows field errors, and submits the new password to the auth client.
|
|
10
10
|
*/
|
|
11
|
-
export declare function ResetPassword({ className, variant
|
|
11
|
+
export declare function ResetPassword({ className, variant }: ResetPasswordProps): import("react").JSX.Element;
|
|
@@ -11,4 +11,4 @@ export interface SignInProps {
|
|
|
11
11
|
*
|
|
12
12
|
* @returns The sign-in JSX element containing email/password fields, optional magic-link button, and social provider buttons.
|
|
13
13
|
*/
|
|
14
|
-
export declare function SignIn({ className, socialLayout, socialPosition, variant
|
|
14
|
+
export declare function SignIn({ className, socialLayout, socialPosition, variant }: SignInProps): import("react").JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type SignUpProps = {
|
|
|
16
16
|
* @param socialPosition - Position of social provider buttons relative to the form; `"top"` or `"bottom"` (default `"bottom"`)
|
|
17
17
|
* @returns The sign-up form React element
|
|
18
18
|
*/
|
|
19
|
-
export declare function SignUp({ className, socialLayout, socialPosition, variant
|
|
19
|
+
export declare function SignUp({ className, socialLayout, socialPosition, variant }: SignUpProps): import("react").JSX.Element;
|
|
@@ -11,4 +11,4 @@ export interface SignInUsernameProps {
|
|
|
11
11
|
*
|
|
12
12
|
* @returns The sign-in JSX element containing username/password fields, optional magic-link button, and social provider buttons.
|
|
13
13
|
*/
|
|
14
|
-
export declare function SignInUsername({ className, socialLayout, socialPosition, variant
|
|
14
|
+
export declare function SignInUsername({ className, socialLayout, socialPosition, variant }: SignInUsernameProps): import("react").JSX.Element;
|