better-auth-ui 3.2.5 → 3.2.11
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/LICENSE +1 -1
- package/README.md +31 -3
- package/dist/index.cjs +653 -661
- package/dist/index.d.cts +19 -15
- package/dist/index.d.ts +19 -15
- package/dist/index.js +665 -673
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tanstack.cjs +1 -1
- package/dist/tanstack.js +1 -1
- package/package.json +161 -156
- package/src/components/organization/organization-cell-view.tsx +2 -2
- package/src/components/organization/organization-invitations-card.tsx +3 -1
- package/src/components/organization/organization-view.tsx +6 -6
- package/src/components/organization/organizations-card.tsx +3 -1
- package/src/components/organization/user-invitations-card.tsx +3 -1
- package/src/components/ui/alert.tsx +37 -44
- package/src/components/ui/avatar.tsx +39 -44
- package/src/components/ui/button.tsx +28 -30
- package/src/components/ui/card.tsx +66 -82
- package/src/components/ui/checkbox.tsx +20 -24
- package/src/components/ui/dialog.tsx +92 -113
- package/src/components/ui/drawer.tsx +82 -101
- package/src/components/ui/dropdown-menu.tsx +183 -224
- package/src/components/ui/form.tsx +50 -41
- package/src/components/ui/input-otp.tsx +43 -51
- package/src/components/ui/input.tsx +16 -15
- package/src/components/ui/label.tsx +17 -17
- package/src/components/ui/select.tsx +130 -156
- package/src/components/ui/separator.tsx +13 -12
- package/src/components/ui/skeleton.tsx +5 -3
- package/src/components/ui/tabs.tsx +43 -54
- package/src/components/ui/textarea.tsx +8 -4
- package/src/lib/tanstack/use-tanstack-options.ts +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# better-auth-ui
|
|
2
2
|
|
|
3
3
|
<picture>
|
|
4
4
|
<source srcset="docs/public/better-auth-ui-promo-dark.png" media="(prefers-color-scheme: dark)">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
Plug & play shadcn/ui auth components for [better-auth](https://better-auth.com).
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- _Own Your Auth_
|
|
14
14
|
|
|
15
15
|
[Demo](https://newtech.dev/auth/login) - [Documentation](https://better-auth-ui.com) - [Roadmap](https://betterauthui.featurebase.app/roadmap)
|
|
16
16
|
|
|
@@ -42,11 +42,39 @@ Plug & play shadcn/ui auth components for [better-auth](https://better-auth.com)
|
|
|
42
42
|
|
|
43
43
|
<img src="docs/public/screenshots/settings-cards-dark.png" alt="Settings Cards Dark" width="384" /><img src="docs/public/screenshots/settings-cards-light.png" alt="Settings Cards Light" width="384" />
|
|
44
44
|
|
|
45
|
+
## Installation
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pnpm add better-auth-ui
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Quick Start
|
|
52
|
+
|
|
53
|
+
1. **Wrap your app** with the `AuthUIProvider`:
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
import { AuthUIProvider } from "better-auth-ui";
|
|
57
|
+
|
|
58
|
+
export default function RootLayout({ children }) {
|
|
59
|
+
return <AuthUIProvider>{children}</AuthUIProvider>;
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
2. **Use the components** anywhere in your app:
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
import { SignInCard } from "better-auth-ui";
|
|
67
|
+
|
|
68
|
+
export default function LoginPage() {
|
|
69
|
+
return <SignInCard />;
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
45
73
|
---
|
|
46
74
|
|
|
47
75
|
Fully customizable!
|
|
48
76
|
|
|
49
|
-
|
|
77
|
+
Organizations and Settings are now supported!
|
|
50
78
|
|
|
51
79
|
## License
|
|
52
80
|
|