@olwiba/ui 0.0.46 → 0.1.1

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/index.d.ts CHANGED
@@ -275,6 +275,8 @@ interface AuthFormProps {
275
275
  loading?: boolean;
276
276
  /** Render prop for links — use to inject framework-native link components (e.g. TanStack Router Link) */
277
277
  renderLink?: AppShellRenderLink;
278
+ /** Optional content rendered below the form — use for social auth buttons or other additions */
279
+ footer?: React.ReactNode;
278
280
  }
279
281
  interface AuthSectionProps extends AuthFormProps {
280
282
  /** Visual layout of the auth screen. @default 'centered' */
@@ -921,9 +923,9 @@ declare function RegisterHotkeys({ hotkeys }: RegisterHotkeysProps): null;
921
923
 
922
924
  interface RootErrorFallbackProps {
923
925
  error: Error;
924
- resetErrorBoundary?: () => void;
926
+ reset: () => void;
925
927
  }
926
- declare function RootErrorFallback({ error, resetErrorBoundary }: RootErrorFallbackProps): react_jsx_runtime.JSX.Element;
928
+ declare function RootErrorFallback({ error, reset }: RootErrorFallbackProps): react_jsx_runtime.JSX.Element;
927
929
 
928
930
  interface PostCardProps {
929
931
  title: string;
package/dist/index.js CHANGED
@@ -486,7 +486,8 @@ function DefaultForm({
486
486
  brand,
487
487
  error,
488
488
  loading,
489
- renderLink = defaultRenderLink2
489
+ renderLink = defaultRenderLink2,
490
+ footer
490
491
  }) {
491
492
  const isSignUp = mode === "signup";
492
493
  return /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
@@ -539,7 +540,8 @@ function DefaultForm({
539
540
  "New here?",
540
541
  " ",
541
542
  renderLink({ href: signUpHref, className: "text-foreground underline underline-offset-4", children: "Create an account" })
542
- ] }) })
543
+ ] }) }),
544
+ footer && /* @__PURE__ */ jsx("div", { children: footer })
543
545
  ] })
544
546
  ] });
545
547
  }
@@ -2320,14 +2322,14 @@ function RegisterHotkeys({ hotkeys }) {
2320
2322
  }, [hotkeys]);
2321
2323
  return null;
2322
2324
  }
2323
- function RootErrorFallback({ error, resetErrorBoundary }) {
2325
+ function RootErrorFallback({ error, reset }) {
2324
2326
  return /* @__PURE__ */ jsxs("div", { className: "flex min-h-svh flex-col items-center justify-center gap-6 p-8 text-center", children: [
2325
2327
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
2326
2328
  /* @__PURE__ */ jsx(AlertTriangle, { className: "size-12 text-destructive" }),
2327
2329
  /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold", children: "Something went wrong" }),
2328
2330
  /* @__PURE__ */ jsx("p", { className: "max-w-md text-sm text-muted-foreground", children: error.message || "An unexpected error occurred." })
2329
2331
  ] }),
2330
- resetErrorBoundary && /* @__PURE__ */ jsx(Button$1, { onClick: resetErrorBoundary, variant: "outline", children: "Try again" })
2332
+ /* @__PURE__ */ jsx(Button$1, { onClick: reset, variant: "outline", children: "Try again" })
2331
2333
  ] });
2332
2334
  }
2333
2335
  function formatDate(dateStr) {