@insforge/react 0.6.9 → 0.7.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.
@@ -171,6 +171,8 @@ interface UserButtonProps {
171
171
  }
172
172
  /**
173
173
  * User profile button with dropdown menu and sign-out functionality.
174
+ *
175
+ * Styles are powered by Emotion CSS-in-JS to prevent FOUC in SSR environments.
174
176
  */
175
177
  declare function UserButton({ afterSignOutUrl, mode }: UserButtonProps): react_jsx_runtime.JSX.Element | null;
176
178
 
@@ -319,4 +321,29 @@ interface SignUpButtonProps {
319
321
  */
320
322
  declare function SignUpButton({ children, className }: SignUpButtonProps): react_jsx_runtime.JSX.Element;
321
323
 
322
- export { type ConditionalProps$1 as ConditionalProps, ForgotPassword, type ForgotPasswordProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, SignInButton, type SignInButtonProps, type SignInProps, SignUp, SignUpButton, type SignUpButtonProps, type SignUpProps, SignedIn, SignedOut, UserButton, type UserButtonProps, VerifyEmail, type VerifyEmailProps };
324
+ interface SignOutButtonProps {
325
+ children?: React.ReactNode;
326
+ className?: string;
327
+ afterSignOutUrl?: string;
328
+ }
329
+ /**
330
+ * SignOutButton Component
331
+ *
332
+ * A simple unstyled button that signs out the current user.
333
+ * If children is a valid React element, it will be rendered with the sign-out logic attached.
334
+ *
335
+ * @example
336
+ * ```tsx
337
+ * <SignOutButton />
338
+ * ```
339
+ *
340
+ * @example
341
+ * ```tsx
342
+ * <SignOutButton afterSignOutUrl="/goodbye">
343
+ * <button className="custom-button">Logout</button>
344
+ * </SignOutButton>
345
+ * ```
346
+ */
347
+ declare function SignOutButton({ children, className, afterSignOutUrl }: SignOutButtonProps): react_jsx_runtime.JSX.Element;
348
+
349
+ export { type ConditionalProps$1 as ConditionalProps, ForgotPassword, type ForgotPasswordProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, SignInButton, type SignInButtonProps, type SignInProps, SignOutButton, type SignOutButtonProps, SignUp, SignUpButton, type SignUpButtonProps, type SignUpProps, SignedIn, SignedOut, UserButton, type UserButtonProps, VerifyEmail, type VerifyEmailProps };
@@ -171,6 +171,8 @@ interface UserButtonProps {
171
171
  }
172
172
  /**
173
173
  * User profile button with dropdown menu and sign-out functionality.
174
+ *
175
+ * Styles are powered by Emotion CSS-in-JS to prevent FOUC in SSR environments.
174
176
  */
175
177
  declare function UserButton({ afterSignOutUrl, mode }: UserButtonProps): react_jsx_runtime.JSX.Element | null;
176
178
 
@@ -319,4 +321,29 @@ interface SignUpButtonProps {
319
321
  */
320
322
  declare function SignUpButton({ children, className }: SignUpButtonProps): react_jsx_runtime.JSX.Element;
321
323
 
322
- export { type ConditionalProps$1 as ConditionalProps, ForgotPassword, type ForgotPasswordProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, SignInButton, type SignInButtonProps, type SignInProps, SignUp, SignUpButton, type SignUpButtonProps, type SignUpProps, SignedIn, SignedOut, UserButton, type UserButtonProps, VerifyEmail, type VerifyEmailProps };
324
+ interface SignOutButtonProps {
325
+ children?: React.ReactNode;
326
+ className?: string;
327
+ afterSignOutUrl?: string;
328
+ }
329
+ /**
330
+ * SignOutButton Component
331
+ *
332
+ * A simple unstyled button that signs out the current user.
333
+ * If children is a valid React element, it will be rendered with the sign-out logic attached.
334
+ *
335
+ * @example
336
+ * ```tsx
337
+ * <SignOutButton />
338
+ * ```
339
+ *
340
+ * @example
341
+ * ```tsx
342
+ * <SignOutButton afterSignOutUrl="/goodbye">
343
+ * <button className="custom-button">Logout</button>
344
+ * </SignOutButton>
345
+ * ```
346
+ */
347
+ declare function SignOutButton({ children, className, afterSignOutUrl }: SignOutButtonProps): react_jsx_runtime.JSX.Element;
348
+
349
+ export { type ConditionalProps$1 as ConditionalProps, ForgotPassword, type ForgotPasswordProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, SignInButton, type SignInButtonProps, type SignInProps, SignOutButton, type SignOutButtonProps, SignUp, SignUpButton, type SignUpButtonProps, type SignUpProps, SignedIn, SignedOut, UserButton, type UserButtonProps, VerifyEmail, type VerifyEmailProps };