@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.
- package/README.md +2 -1
- package/dist/atoms.cjs +754 -106
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +728 -84
- package/dist/atoms.js.map +1 -1
- package/dist/components.cjs +1050 -272
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +28 -1
- package/dist/components.d.ts +28 -1
- package/dist/components.js +1044 -271
- package/dist/components.js.map +1 -1
- package/dist/forms.cjs +922 -264
- package/dist/forms.cjs.map +1 -1
- package/dist/forms.js +896 -242
- package/dist/forms.js.map +1 -1
- package/dist/hooks.cjs +2 -0
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.js +2 -0
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +1081 -274
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +114 -2
- package/dist/index.d.ts +114 -2
- package/dist/index.js +1071 -272
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/components.d.cts
CHANGED
|
@@ -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
|
-
|
|
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 };
|
package/dist/components.d.ts
CHANGED
|
@@ -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
|
-
|
|
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 };
|