@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olwiba/ui",
3
- "version": "0.0.46",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -82,6 +82,8 @@ export interface AuthFormProps {
82
82
  loading?: boolean;
83
83
  /** Render prop for links — use to inject framework-native link components (e.g. TanStack Router Link) */
84
84
  renderLink?: AppShellRenderLink;
85
+ /** Optional content rendered below the form — use for social auth buttons or other additions */
86
+ footer?: React.ReactNode;
85
87
  }
86
88
 
87
89
  function DefaultForm({
@@ -95,6 +97,7 @@ function DefaultForm({
95
97
  error,
96
98
  loading,
97
99
  renderLink = defaultRenderLink,
100
+ footer,
98
101
  }: AuthFormProps) {
99
102
  const isSignUp = mode === 'signup';
100
103
 
@@ -167,6 +170,7 @@ function DefaultForm({
167
170
  )
168
171
  )}
169
172
  </p>
173
+ {footer && <div>{footer}</div>}
170
174
  </CardContent>
171
175
  </Card>
172
176
  );
@@ -6,10 +6,10 @@ import { Button } from '@olwiba/cn';
6
6
 
7
7
  interface RootErrorFallbackProps {
8
8
  error: Error;
9
- resetErrorBoundary?: () => void;
9
+ reset: () => void;
10
10
  }
11
11
 
12
- export function RootErrorFallback({ error, resetErrorBoundary }: RootErrorFallbackProps) {
12
+ export function RootErrorFallback({ error, reset }: RootErrorFallbackProps) {
13
13
  return (
14
14
  <div className="flex min-h-svh flex-col items-center justify-center gap-6 p-8 text-center">
15
15
  <div className="flex flex-col items-center gap-3">
@@ -19,11 +19,9 @@ export function RootErrorFallback({ error, resetErrorBoundary }: RootErrorFallba
19
19
  {error.message || 'An unexpected error occurred.'}
20
20
  </p>
21
21
  </div>
22
- {resetErrorBoundary && (
23
- <Button onClick={resetErrorBoundary} variant="outline">
24
- Try again
25
- </Button>
26
- )}
22
+ <Button onClick={reset} variant="outline">
23
+ Try again
24
+ </Button>
27
25
  </div>
28
26
  );
29
27
  }