@olwiba/ui 0.0.46 → 0.1.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/dist/index.d.ts +2 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/app/AuthSection.tsx +4 -0
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' */
|
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
|
}
|