@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/forms.mjs CHANGED
@@ -1308,6 +1308,7 @@ function ResetPasswordForm({
1308
1308
  onSubmit,
1309
1309
  error,
1310
1310
  loading = false,
1311
+ success = false,
1311
1312
  emailAuthConfig,
1312
1313
  appearance = {},
1313
1314
  title = "Reset Password",
@@ -1319,8 +1320,27 @@ function ResetPasswordForm({
1319
1320
  submitButtonText = "Reset Password",
1320
1321
  loadingButtonText = "Resetting...",
1321
1322
  backToSignInText = "",
1322
- backToSignInUrl = "/sign-in"
1323
+ backToSignInUrl = "/sign-in",
1324
+ successTitle = "Password Reset Successful!",
1325
+ successMessage = "Your password has been successfully reset. You can now sign in with your new password."
1323
1326
  }) {
1327
+ if (success) {
1328
+ return /* @__PURE__ */ jsx(
1329
+ AuthContainer,
1330
+ {
1331
+ appearance: {
1332
+ containerClassName: appearance.container,
1333
+ cardClassName: appearance.card
1334
+ },
1335
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4", children: [
1336
+ /* @__PURE__ */ jsx("div", { className: "w-16 h-16 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center", children: /* @__PURE__ */ 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__ */ jsx("path", { d: "M5 13l4 4L19 7" }) }) }),
1337
+ /* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold text-black dark:text-white text-center", children: successTitle }),
1338
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-neutral-600 dark:text-neutral-400 text-center", children: successMessage }),
1339
+ /* @__PURE__ */ jsx("a", { href: backToSignInUrl, className: "mt-4 text-black dark:text-white font-medium", children: "Back to Sign In" })
1340
+ ] })
1341
+ }
1342
+ );
1343
+ }
1324
1344
  return /* @__PURE__ */ jsxs(
1325
1345
  AuthContainer,
1326
1346
  {