Skip to content

Commit ad74074

Browse files
committed
fix(react): Ensure all components + props are exported
1 parent 7a38280 commit ad74074

File tree

3 files changed

+18
-21
lines changed

3 files changed

+18
-21
lines changed

packages/react/src/auth/index.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,18 @@
1414
* limitations under the License.
1515
*/
1616

17-
/** Export screens */
18-
export { EmailLinkAuthScreen, type EmailLinkAuthScreenProps } from "./screens/email-link-auth-screen";
19-
export { SignInAuthScreen, type SignInAuthScreenProps } from "./screens/sign-in-auth-screen";
17+
export { EmailLinkAuthForm, type EmailLinkAuthFormProps } from "./forms/email-link-auth-form";
18+
export { ForgotPasswordAuthForm, type ForgotPasswordAuthFormProps } from "./forms/forgot-password-auth-form";
19+
export { PhoneAuthForm, type PhoneAuthFormProps } from "./forms/phone-auth-form";
20+
export { SignInAuthForm, type SignInAuthFormProps } from "./forms/sign-in-auth-form";
21+
export { SignUpAuthForm, type SignUpAuthFormProps } from "./forms/sign-up-auth-form";
2022

23+
export { EmailLinkAuthScreen, type EmailLinkAuthScreenProps } from "./screens/email-link-auth-screen";
24+
export { ForgotPasswordAuthScreen, type ForgotPasswordAuthScreenProps } from "./screens/forgot-password-auth-screen";
25+
export { OAuthScreen, type OAuthScreenProps } from "./screens/oauth-screen";
2126
export { PhoneAuthScreen, type PhoneAuthScreenProps } from "./screens/phone-auth-screen";
22-
27+
export { SignInAuthScreen, type SignInAuthScreenProps } from "./screens/sign-in-auth-screen";
2328
export { SignUpAuthScreen, type SignUpAuthScreenProps } from "./screens/sign-up-auth-screen";
2429

25-
export { OAuthScreen, type OAuthScreenProps } from "./screens/oauth-screen";
26-
27-
export { ForgotPasswordAuthScreen, type ForgotPasswordAuthScreenProps } from "./screens/forgot-password-auth-screen";
28-
29-
export { SignInAuthForm, type SignInAuthFormProps } from "./forms/sign-in-auth-form";
30-
31-
export { SignUpAuthForm, type SignUpAuthFormProps } from "./forms/sign-up-auth-form";
32-
33-
/** Export Buttons */
34-
export { GoogleSignInButton } from "./oauth/google-sign-in-button";
30+
export { GoogleSignInButton, GoogleIcon, type GoogleSignInButtonProps } from "./oauth/google-sign-in-button";
31+
export { OAuthButton, type OAuthButtonProps } from "./oauth/oauth-button";

packages/react/src/components/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import type { ComponentProps, PropsWithChildren } from "react";
1818
import { cn } from "~/utils/cn";
1919

20-
type CardProps = PropsWithChildren<ComponentProps<"div">>;
20+
export type CardProps = PropsWithChildren<ComponentProps<"div">>;
2121

2222
export function Card({ children, className, ...props }: CardProps) {
2323
return (

packages/react/src/components/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
export * from "././button";
18-
export * from "./card";
19-
export * from "./country-selector";
20-
export * from "./field-info";
21-
export * from "./policies";
22-
export * from "./divider";
17+
export { Button, type ButtonProps } from "./button";
18+
export { Card, CardHeader, CardTitle, CardSubtitle, CardContent, type CardProps } from "./card";
19+
export { CountrySelector, type CountrySelectorProps } from "./country-selector";
20+
export { FieldInfo, type FieldInfoProps } from "./field-info";
21+
export { Policies, type PolicyProps, type PolicyURL } from "./policies";
22+
export { Divider, type DividerProps } from "./divider";

0 commit comments

Comments
 (0)