@insforge/react 0.3.1 → 0.3.2
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.js +29 -2
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +29 -2
- package/dist/components.mjs.map +1 -1
- package/dist/forms.d.mts +1 -1
- package/dist/forms.d.ts +1 -1
- package/dist/forms.js +21 -1
- package/dist/forms.js.map +1 -1
- package/dist/forms.mjs +21 -1
- package/dist/forms.mjs.map +1 -1
- package/dist/index.js +29 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +3 -0
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/forms.d.mts
CHANGED
|
@@ -150,7 +150,7 @@ declare function ForgotPasswordForm({ email, onEmailChange, onSubmit, error, loa
|
|
|
150
150
|
* />
|
|
151
151
|
* ```
|
|
152
152
|
*/
|
|
153
|
-
declare function ResetPasswordForm({ newPassword, confirmPassword, onNewPasswordChange, onConfirmPasswordChange, onSubmit, error, loading, emailAuthConfig, appearance, title, subtitle, newPasswordLabel, newPasswordPlaceholder, confirmPasswordLabel, confirmPasswordPlaceholder, submitButtonText, loadingButtonText, backToSignInText, backToSignInUrl, }: ResetPasswordFormProps): react_jsx_runtime.JSX.Element;
|
|
153
|
+
declare function ResetPasswordForm({ newPassword, confirmPassword, onNewPasswordChange, onConfirmPasswordChange, onSubmit, error, loading, success, emailAuthConfig, appearance, title, subtitle, newPasswordLabel, newPasswordPlaceholder, confirmPasswordLabel, confirmPasswordPlaceholder, submitButtonText, loadingButtonText, backToSignInText, backToSignInUrl, successTitle, successMessage, }: ResetPasswordFormProps): react_jsx_runtime.JSX.Element;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* Email verification status display component (UI only, no business logic).
|
package/dist/forms.d.ts
CHANGED
|
@@ -150,7 +150,7 @@ declare function ForgotPasswordForm({ email, onEmailChange, onSubmit, error, loa
|
|
|
150
150
|
* />
|
|
151
151
|
* ```
|
|
152
152
|
*/
|
|
153
|
-
declare function ResetPasswordForm({ newPassword, confirmPassword, onNewPasswordChange, onConfirmPasswordChange, onSubmit, error, loading, emailAuthConfig, appearance, title, subtitle, newPasswordLabel, newPasswordPlaceholder, confirmPasswordLabel, confirmPasswordPlaceholder, submitButtonText, loadingButtonText, backToSignInText, backToSignInUrl, }: ResetPasswordFormProps): react_jsx_runtime.JSX.Element;
|
|
153
|
+
declare function ResetPasswordForm({ newPassword, confirmPassword, onNewPasswordChange, onConfirmPasswordChange, onSubmit, error, loading, success, emailAuthConfig, appearance, title, subtitle, newPasswordLabel, newPasswordPlaceholder, confirmPasswordLabel, confirmPasswordPlaceholder, submitButtonText, loadingButtonText, backToSignInText, backToSignInUrl, successTitle, successMessage, }: ResetPasswordFormProps): react_jsx_runtime.JSX.Element;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* Email verification status display component (UI only, no business logic).
|
package/dist/forms.js
CHANGED
|
@@ -1310,6 +1310,7 @@ function ResetPasswordForm({
|
|
|
1310
1310
|
onSubmit,
|
|
1311
1311
|
error,
|
|
1312
1312
|
loading = false,
|
|
1313
|
+
success = false,
|
|
1313
1314
|
emailAuthConfig,
|
|
1314
1315
|
appearance = {},
|
|
1315
1316
|
title = "Reset Password",
|
|
@@ -1321,8 +1322,27 @@ function ResetPasswordForm({
|
|
|
1321
1322
|
submitButtonText = "Reset Password",
|
|
1322
1323
|
loadingButtonText = "Resetting...",
|
|
1323
1324
|
backToSignInText = "",
|
|
1324
|
-
backToSignInUrl = "/sign-in"
|
|
1325
|
+
backToSignInUrl = "/sign-in",
|
|
1326
|
+
successTitle = "Password Reset Successful!",
|
|
1327
|
+
successMessage = "Your password has been successfully reset. You can now sign in with your new password."
|
|
1325
1328
|
}) {
|
|
1329
|
+
if (success) {
|
|
1330
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1331
|
+
AuthContainer,
|
|
1332
|
+
{
|
|
1333
|
+
appearance: {
|
|
1334
|
+
containerClassName: appearance.container,
|
|
1335
|
+
cardClassName: appearance.card
|
|
1336
|
+
},
|
|
1337
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
1338
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-8 h-8 text-green-600 dark:text-green-400", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 13l4 4L19 7" }) }) }),
|
|
1339
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-semibold text-black dark:text-white text-center", children: successTitle }),
|
|
1340
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-neutral-600 dark:text-neutral-400 text-center", children: successMessage }),
|
|
1341
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: backToSignInUrl, className: "mt-4 text-black dark:text-white font-medium", children: "Back to Sign In" })
|
|
1342
|
+
] })
|
|
1343
|
+
}
|
|
1344
|
+
);
|
|
1345
|
+
}
|
|
1326
1346
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1327
1347
|
AuthContainer,
|
|
1328
1348
|
{
|