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.
Files changed (34) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +31 -3
  3. package/dist/index.cjs +653 -661
  4. package/dist/index.d.cts +19 -15
  5. package/dist/index.d.ts +19 -15
  6. package/dist/index.js +665 -673
  7. package/dist/metafile-cjs.json +1 -1
  8. package/dist/metafile-esm.json +1 -1
  9. package/dist/tanstack.cjs +1 -1
  10. package/dist/tanstack.js +1 -1
  11. package/package.json +161 -156
  12. package/src/components/organization/organization-cell-view.tsx +2 -2
  13. package/src/components/organization/organization-invitations-card.tsx +3 -1
  14. package/src/components/organization/organization-view.tsx +6 -6
  15. package/src/components/organization/organizations-card.tsx +3 -1
  16. package/src/components/organization/user-invitations-card.tsx +3 -1
  17. package/src/components/ui/alert.tsx +37 -44
  18. package/src/components/ui/avatar.tsx +39 -44
  19. package/src/components/ui/button.tsx +28 -30
  20. package/src/components/ui/card.tsx +66 -82
  21. package/src/components/ui/checkbox.tsx +20 -24
  22. package/src/components/ui/dialog.tsx +92 -113
  23. package/src/components/ui/drawer.tsx +82 -101
  24. package/src/components/ui/dropdown-menu.tsx +183 -224
  25. package/src/components/ui/form.tsx +50 -41
  26. package/src/components/ui/input-otp.tsx +43 -51
  27. package/src/components/ui/input.tsx +16 -15
  28. package/src/components/ui/label.tsx +17 -17
  29. package/src/components/ui/select.tsx +130 -156
  30. package/src/components/ui/separator.tsx +13 -12
  31. package/src/components/ui/skeleton.tsx +5 -3
  32. package/src/components/ui/tabs.tsx +43 -54
  33. package/src/components/ui/textarea.tsx +8 -4
  34. package/src/lib/tanstack/use-tanstack-options.ts +1 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 daveyplate
3
+ Copyright (c) 2024 StackProviders
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @daveyplate/better-auth-ui
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
- - *Own Your Auth*
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
- Coming Soon: API Keys, Organization, and more!
77
+ Organizations and Settings are now supported!
50
78
 
51
79
  ## License
52
80