@better-auth-ui/heroui 1.6.8 → 1.6.10
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/components/auth/api-key/api-key.d.ts +5 -1
- package/dist/components/auth/api-key/api-keys-empty.d.ts +3 -1
- package/dist/components/auth/api-key/api-keys.d.ts +9 -1
- package/dist/components/auth/api-key/create-api-key-dialog.d.ts +3 -1
- package/dist/components/auth/api-key/delete-api-key-dialog.d.ts +3 -1
- package/dist/components/auth/api-key/organization-api-keys.d.ts +14 -0
- package/dist/components/auth/delete-user/danger-zone.d.ts +1 -1
- package/dist/components/auth/delete-user/{delete-user.d.ts → delete-account.d.ts} +2 -2
- package/dist/components/auth/email/organization-invitation-email.d.ts +3 -0
- package/dist/components/auth/multi-session/switch-account-submenu-content.d.ts +3 -1
- package/dist/components/auth/multi-session/switch-account-submenu-item.d.ts +2 -1
- package/dist/components/auth/multi-session/switch-account-submenu.d.ts +2 -1
- package/dist/components/auth/organization/change-organization-logo.d.ts +4 -0
- package/dist/components/auth/organization/create-organization-dialog.d.ts +13 -0
- package/dist/components/auth/organization/delete-organization-dialog.d.ts +7 -0
- package/dist/components/auth/organization/delete-organization-skeleton.d.ts +4 -0
- package/dist/components/auth/organization/delete-organization.d.ts +5 -0
- package/dist/components/auth/organization/invite-member-dialog.d.ts +13 -0
- package/dist/components/auth/organization/leave-organization-dialog.d.ts +7 -0
- package/dist/components/auth/organization/leave-organization.d.ts +4 -0
- package/dist/components/auth/organization/organization-danger-zone.d.ts +16 -0
- package/dist/components/auth/organization/organization-invitation-row-skeleton.d.ts +5 -0
- package/dist/components/auth/organization/organization-invitation-row.d.ts +5 -0
- package/dist/components/auth/organization/organization-invitations-empty.d.ts +8 -0
- package/dist/components/auth/organization/organization-invitations.d.ts +9 -0
- package/dist/components/auth/organization/organization-logo.d.ts +15 -0
- package/dist/components/auth/organization/organization-member-row-skeleton.d.ts +4 -0
- package/dist/components/auth/organization/organization-member-row.d.ts +9 -0
- package/dist/components/auth/organization/organization-members.d.ts +9 -0
- package/dist/components/auth/organization/organization-people.d.ts +10 -0
- package/dist/components/auth/organization/organization-profile.d.ts +9 -0
- package/dist/components/auth/organization/organization-row.d.ts +8 -0
- package/dist/components/auth/organization/organization-settings.d.ts +12 -0
- package/dist/components/auth/organization/organization-switcher.d.ts +20 -0
- package/dist/components/auth/organization/organization-view-skeleton.d.ts +6 -0
- package/dist/components/auth/organization/organization-view.d.ts +15 -0
- package/dist/components/auth/organization/organization.d.ts +17 -0
- package/dist/components/auth/organization/organizations-empty.d.ts +4 -0
- package/dist/components/auth/organization/organizations-settings.d.ts +17 -0
- package/dist/components/auth/organization/organizations.d.ts +10 -0
- package/dist/components/auth/organization/remove-member-dialog.d.ts +9 -0
- package/dist/components/auth/organization/slug-field.d.ts +19 -0
- package/dist/components/auth/organization/user-invitation-row-skeleton.d.ts +4 -0
- package/dist/components/auth/organization/user-invitation-row.d.ts +10 -0
- package/dist/components/auth/organization/user-invitations-empty.d.ts +4 -0
- package/dist/components/auth/organization/user-invitations.d.ts +10 -0
- package/dist/components/auth/settings/settings.d.ts +1 -1
- package/dist/components/auth/user/user-avatar.d.ts +1 -1
- package/dist/components/auth/user/user-button.d.ts +4 -5
- package/dist/components/auth/user/user-view.d.ts +10 -4
- package/dist/email.d.ts +1 -0
- package/dist/email.js +211 -8
- package/dist/index.js +1682 -22
- package/dist/lib/auth/api-key-plugin.d.ts +5 -2
- package/dist/lib/auth/auth-plugin.d.ts +6 -2
- package/dist/lib/auth/delete-user-plugin.d.ts +4 -4
- package/dist/lib/auth/magic-link-plugin.d.ts +2 -2
- package/dist/lib/auth/multi-session-plugin.d.ts +2 -2
- package/dist/lib/auth/organization-plugin.d.ts +37 -0
- package/dist/lib/auth/passkey-plugin.d.ts +2 -2
- package/dist/lib/auth/theme-plugin.d.ts +3 -3
- package/dist/lib/auth/username-plugin.d.ts +8 -8
- package/dist/plugins.d.ts +25 -1
- package/dist/plugins.js +2824 -22
- package/dist/user-view--47tVtJ3.js +113 -0
- package/package.json +23 -18
- package/src/components/auth/api-key/api-key.tsx +25 -16
- package/src/components/auth/api-key/api-keys-empty.tsx +8 -4
- package/src/components/auth/api-key/api-keys.tsx +52 -14
- package/src/components/auth/api-key/create-api-key-dialog.tsx +15 -2
- package/src/components/auth/api-key/delete-api-key-dialog.tsx +10 -2
- package/src/components/auth/api-key/organization-api-keys.tsx +55 -0
- package/src/components/auth/delete-user/danger-zone.tsx +3 -3
- package/src/components/auth/delete-user/{delete-user.tsx → delete-account.tsx} +9 -9
- package/src/components/auth/email/organization-invitation-email.tsx +38 -0
- package/src/components/auth/error-toaster.tsx +28 -10
- package/src/components/auth/forgot-password.tsx +10 -2
- package/src/components/auth/multi-session/manage-accounts.tsx +1 -1
- package/src/components/auth/multi-session/switch-account-submenu-content.tsx +7 -2
- package/src/components/auth/multi-session/switch-account-submenu-item.tsx +4 -2
- package/src/components/auth/multi-session/switch-account-submenu.tsx +8 -4
- package/src/components/auth/organization/change-organization-logo.tsx +171 -0
- package/src/components/auth/organization/create-organization-dialog.tsx +133 -0
- package/src/components/auth/organization/delete-organization-dialog.tsx +97 -0
- package/src/components/auth/organization/delete-organization-skeleton.tsx +17 -0
- package/src/components/auth/organization/delete-organization.tsx +77 -0
- package/src/components/auth/organization/invite-member-dialog.tsx +177 -0
- package/src/components/auth/organization/leave-organization-dialog.tsx +95 -0
- package/src/components/auth/organization/leave-organization.tsx +59 -0
- package/src/components/auth/organization/organization-danger-zone.tsx +68 -0
- package/src/components/auth/organization/organization-invitation-row-skeleton.tsx +29 -0
- package/src/components/auth/organization/organization-invitation-row.tsx +97 -0
- package/src/components/auth/organization/organization-invitations-empty.tsx +39 -0
- package/src/components/auth/organization/organization-invitations.tsx +351 -0
- package/src/components/auth/organization/organization-logo.tsx +64 -0
- package/src/components/auth/organization/organization-member-row-skeleton.tsx +24 -0
- package/src/components/auth/organization/organization-member-row.tsx +157 -0
- package/src/components/auth/organization/organization-members.tsx +284 -0
- package/src/components/auth/organization/organization-people.tsx +26 -0
- package/src/components/auth/organization/organization-profile.tsx +141 -0
- package/src/components/auth/organization/organization-row.tsx +66 -0
- package/src/components/auth/organization/organization-settings.tsx +38 -0
- package/src/components/auth/organization/organization-switcher.tsx +233 -0
- package/src/components/auth/organization/organization-view-skeleton.tsx +36 -0
- package/src/components/auth/organization/organization-view.tsx +109 -0
- package/src/components/auth/organization/organization.tsx +162 -0
- package/src/components/auth/organization/organizations-empty.tsx +35 -0
- package/src/components/auth/organization/organizations-settings.tsx +36 -0
- package/src/components/auth/organization/organizations.tsx +80 -0
- package/src/components/auth/organization/remove-member-dialog.tsx +95 -0
- package/src/components/auth/organization/slug-field.tsx +111 -0
- package/src/components/auth/organization/user-invitation-row-skeleton.tsx +17 -0
- package/src/components/auth/organization/user-invitation-row.tsx +90 -0
- package/src/components/auth/organization/user-invitations-empty.tsx +30 -0
- package/src/components/auth/organization/user-invitations.tsx +59 -0
- package/src/components/auth/settings/account/change-email.tsx +1 -1
- package/src/components/auth/settings/account/user-profile.tsx +5 -5
- package/src/components/auth/settings/security/active-sessions.tsx +6 -4
- package/src/components/auth/settings/security/linked-accounts.tsx +2 -2
- package/src/components/auth/settings/settings.tsx +77 -14
- package/src/components/auth/user/user-avatar.tsx +4 -1
- package/src/components/auth/user/user-button.tsx +14 -11
- package/src/components/auth/user/user-view.tsx +32 -12
- package/src/email.ts +1 -0
- package/src/lib/auth/api-key-plugin.ts +10 -4
- package/src/lib/auth/auth-plugin.ts +6 -1
- package/src/lib/auth/organization-plugin.tsx +32 -0
- package/src/plugins.ts +25 -1
- package/dist/components/auth/additional-field.js +0 -270
- package/dist/components/auth/api-key/api-key-skeleton.js +0 -21
- package/dist/components/auth/api-key/api-key.js +0 -55
- package/dist/components/auth/api-key/api-keys-empty.js +0 -35
- package/dist/components/auth/api-key/api-keys.js +0 -41
- package/dist/components/auth/api-key/create-api-key-dialog.js +0 -74
- package/dist/components/auth/api-key/delete-api-key-dialog.js +0 -51
- package/dist/components/auth/api-key/new-api-key-dialog.js +0 -60
- package/dist/components/auth/auth-provider.js +0 -17
- package/dist/components/auth/auth.js +0 -63
- package/dist/components/auth/delete-user/danger-zone.js +0 -18
- package/dist/components/auth/delete-user/delete-user.js +0 -95
- package/dist/components/auth/email/email-changed-email.js +0 -30
- package/dist/components/auth/email/email-verification-email.js +0 -30
- package/dist/components/auth/email/magic-link-email.js +0 -30
- package/dist/components/auth/email/new-device-email.js +0 -30
- package/dist/components/auth/email/otp-email.js +0 -29
- package/dist/components/auth/email/password-changed-email.js +0 -30
- package/dist/components/auth/email/reset-password-email.js +0 -30
- package/dist/components/auth/error-toaster.js +0 -17
- package/dist/components/auth/field-separator.js +0 -18
- package/dist/components/auth/forgot-password.js +0 -89
- package/dist/components/auth/magic-link/magic-link-button.js +0 -20
- package/dist/components/auth/magic-link/magic-link.js +0 -87
- package/dist/components/auth/multi-session/manage-account.js +0 -49
- package/dist/components/auth/multi-session/manage-accounts.js +0 -34
- package/dist/components/auth/multi-session/switch-account-submenu-content.js +0 -28
- package/dist/components/auth/multi-session/switch-account-submenu-item.js +0 -20
- package/dist/components/auth/multi-session/switch-account-submenu.js +0 -24
- package/dist/components/auth/passkey/add-passkey-dialog.js +0 -65
- package/dist/components/auth/passkey/delete-passkey-dialog.js +0 -47
- package/dist/components/auth/passkey/passkey-button.js +0 -24
- package/dist/components/auth/passkey/passkey-skeleton.js +0 -17
- package/dist/components/auth/passkey/passkey.js +0 -48
- package/dist/components/auth/passkey/passkeys-empty.js +0 -35
- package/dist/components/auth/passkey/passkeys.js +0 -42
- package/dist/components/auth/provider-button.js +0 -25
- package/dist/components/auth/provider-buttons.js +0 -19
- package/dist/components/auth/reset-password.js +0 -147
- package/dist/components/auth/settings/account/account-settings.js +0 -20
- package/dist/components/auth/settings/account/change-avatar.js +0 -89
- package/dist/components/auth/settings/account/change-email.js +0 -54
- package/dist/components/auth/settings/account/user-profile.js +0 -86
- package/dist/components/auth/settings/security/active-session.js +0 -59
- package/dist/components/auth/settings/security/active-sessions.js +0 -34
- package/dist/components/auth/settings/security/change-password.js +0 -189
- package/dist/components/auth/settings/security/linked-account.js +0 -56
- package/dist/components/auth/settings/security/linked-accounts.js +0 -45
- package/dist/components/auth/settings/security/security-settings.js +0 -22
- package/dist/components/auth/settings/settings.js +0 -45
- package/dist/components/auth/sign-in.js +0 -133
- package/dist/components/auth/sign-out.js +0 -27
- package/dist/components/auth/sign-up.js +0 -212
- package/dist/components/auth/theme/appearance.js +0 -72
- package/dist/components/auth/theme/theme-toggle-item.js +0 -62
- package/dist/components/auth/user/user-avatar.js +0 -29
- package/dist/components/auth/user/user-button.js +0 -74
- package/dist/components/auth/user/user-view.js +0 -37
- package/dist/components/auth/username/sign-in-username.js +0 -148
- package/dist/components/auth/username/username-field.js +0 -53
- package/dist/lib/auth/api-key-plugin.js +0 -10
- package/dist/lib/auth/delete-user-plugin.js +0 -10
- package/dist/lib/auth/magic-link-plugin.js +0 -13
- package/dist/lib/auth/multi-session-plugin.js +0 -12
- package/dist/lib/auth/passkey-plugin.js +0 -12
- package/dist/lib/auth/theme-plugin.js +0 -23
- package/dist/lib/auth/username-plugin.js +0 -18
package/dist/email.js
CHANGED
|
@@ -1,9 +1,212 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { cn as e } from "@heroui/react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { EmailChangedEmail as n, EmailVerificationEmail as r, MagicLinkEmail as i, NewDeviceEmail as a, OrganizationInvitationEmail as o, OtpEmail as s, PasswordChangedEmail as c, ResetPasswordEmail as l } from "@better-auth-ui/react/email";
|
|
5
|
+
//#region src/components/auth/email/email-changed-email.tsx
|
|
6
|
+
function u({ colors: r, classNames: i, ...a }) {
|
|
7
|
+
return /* @__PURE__ */ t(n, {
|
|
8
|
+
colors: {
|
|
9
|
+
light: {
|
|
10
|
+
background: "#F5F5F5",
|
|
11
|
+
primary: "#0285F7",
|
|
12
|
+
primaryForeground: "#FCFCFC",
|
|
13
|
+
...r?.light
|
|
14
|
+
},
|
|
15
|
+
dark: {
|
|
16
|
+
background: "#060607",
|
|
17
|
+
primary: "#0584F6",
|
|
18
|
+
primaryForeground: "#FCFCFC",
|
|
19
|
+
...r?.dark
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
classNames: {
|
|
23
|
+
...i,
|
|
24
|
+
card: e("border-none rounded-3xl", i?.card),
|
|
25
|
+
button: e("rounded-full", i?.button)
|
|
26
|
+
},
|
|
27
|
+
...a
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/auth/email/email-verification-email.tsx
|
|
32
|
+
function d({ colors: n, classNames: i, ...a }) {
|
|
33
|
+
return /* @__PURE__ */ t(r, {
|
|
34
|
+
colors: {
|
|
35
|
+
light: {
|
|
36
|
+
background: "#F5F5F5",
|
|
37
|
+
primary: "#0285F7",
|
|
38
|
+
primaryForeground: "#FCFCFC",
|
|
39
|
+
...n?.light
|
|
40
|
+
},
|
|
41
|
+
dark: {
|
|
42
|
+
background: "#060607",
|
|
43
|
+
primary: "#0584F6",
|
|
44
|
+
primaryForeground: "#FCFCFC",
|
|
45
|
+
...n?.dark
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
classNames: {
|
|
49
|
+
...i,
|
|
50
|
+
card: e("border-none rounded-3xl", i?.card),
|
|
51
|
+
button: e("rounded-full", i?.button)
|
|
52
|
+
},
|
|
53
|
+
...a
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/auth/email/magic-link-email.tsx
|
|
58
|
+
function f({ colors: n, classNames: r, ...a }) {
|
|
59
|
+
return /* @__PURE__ */ t(i, {
|
|
60
|
+
colors: {
|
|
61
|
+
light: {
|
|
62
|
+
background: "#F5F5F5",
|
|
63
|
+
primary: "#0285F7",
|
|
64
|
+
primaryForeground: "#FCFCFC",
|
|
65
|
+
...n?.light
|
|
66
|
+
},
|
|
67
|
+
dark: {
|
|
68
|
+
background: "#060607",
|
|
69
|
+
primary: "#0584F6",
|
|
70
|
+
primaryForeground: "#FCFCFC",
|
|
71
|
+
...n?.dark
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
classNames: {
|
|
75
|
+
...r,
|
|
76
|
+
card: e("border-none rounded-3xl", r?.card),
|
|
77
|
+
button: e("rounded-full", r?.button)
|
|
78
|
+
},
|
|
79
|
+
...a
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/components/auth/email/new-device-email.tsx
|
|
84
|
+
function p({ colors: n, classNames: r, ...i }) {
|
|
85
|
+
return /* @__PURE__ */ t(a, {
|
|
86
|
+
colors: {
|
|
87
|
+
light: {
|
|
88
|
+
background: "#F5F5F5",
|
|
89
|
+
primary: "#0285F7",
|
|
90
|
+
primaryForeground: "#FCFCFC",
|
|
91
|
+
...n?.light
|
|
92
|
+
},
|
|
93
|
+
dark: {
|
|
94
|
+
background: "#060607",
|
|
95
|
+
primary: "#0584F6",
|
|
96
|
+
primaryForeground: "#FCFCFC",
|
|
97
|
+
...n?.dark
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
classNames: {
|
|
101
|
+
...r,
|
|
102
|
+
card: e("border-none rounded-3xl", r?.card),
|
|
103
|
+
button: e("rounded-full", r?.button)
|
|
104
|
+
},
|
|
105
|
+
...i
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/auth/email/organization-invitation-email.tsx
|
|
110
|
+
function m({ colors: n, classNames: r, ...i }) {
|
|
111
|
+
return /* @__PURE__ */ t(o, {
|
|
112
|
+
colors: {
|
|
113
|
+
light: {
|
|
114
|
+
background: "#F5F5F5",
|
|
115
|
+
primary: "#0285F7",
|
|
116
|
+
primaryForeground: "#FCFCFC",
|
|
117
|
+
...n?.light
|
|
118
|
+
},
|
|
119
|
+
dark: {
|
|
120
|
+
background: "#060607",
|
|
121
|
+
primary: "#0584F6",
|
|
122
|
+
primaryForeground: "#FCFCFC",
|
|
123
|
+
...n?.dark
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
classNames: {
|
|
127
|
+
...r,
|
|
128
|
+
card: e("border-none rounded-3xl", r?.card),
|
|
129
|
+
button: e("rounded-full", r?.button)
|
|
130
|
+
},
|
|
131
|
+
...i
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/components/auth/email/otp-email.tsx
|
|
136
|
+
function h({ colors: n, classNames: r, ...i }) {
|
|
137
|
+
return /* @__PURE__ */ t(s, {
|
|
138
|
+
colors: {
|
|
139
|
+
light: {
|
|
140
|
+
background: "#F5F5F5",
|
|
141
|
+
primary: "#0285F7",
|
|
142
|
+
primaryForeground: "#FCFCFC",
|
|
143
|
+
...n?.light
|
|
144
|
+
},
|
|
145
|
+
dark: {
|
|
146
|
+
background: "#060607",
|
|
147
|
+
primary: "#0584F6",
|
|
148
|
+
primaryForeground: "#FCFCFC",
|
|
149
|
+
...n?.dark
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
classNames: {
|
|
153
|
+
...r,
|
|
154
|
+
card: e("border-none rounded-3xl", r?.card)
|
|
155
|
+
},
|
|
156
|
+
...i
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/components/auth/email/password-changed-email.tsx
|
|
161
|
+
function g({ colors: n, classNames: r, ...i }) {
|
|
162
|
+
return /* @__PURE__ */ t(c, {
|
|
163
|
+
colors: {
|
|
164
|
+
light: {
|
|
165
|
+
background: "#F5F5F5",
|
|
166
|
+
primary: "#0285F7",
|
|
167
|
+
primaryForeground: "#FCFCFC",
|
|
168
|
+
...n?.light
|
|
169
|
+
},
|
|
170
|
+
dark: {
|
|
171
|
+
background: "#060607",
|
|
172
|
+
primary: "#0584F6",
|
|
173
|
+
primaryForeground: "#FCFCFC",
|
|
174
|
+
...n?.dark
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
classNames: {
|
|
178
|
+
...r,
|
|
179
|
+
card: e("border-none rounded-3xl", r?.card),
|
|
180
|
+
button: e("rounded-full", r?.button)
|
|
181
|
+
},
|
|
182
|
+
...i
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/auth/email/reset-password-email.tsx
|
|
187
|
+
function _({ colors: n, classNames: r, ...i }) {
|
|
188
|
+
return /* @__PURE__ */ t(l, {
|
|
189
|
+
colors: {
|
|
190
|
+
light: {
|
|
191
|
+
background: "#F5F5F5",
|
|
192
|
+
primary: "#0285F7",
|
|
193
|
+
primaryForeground: "#FCFCFC",
|
|
194
|
+
...n?.light
|
|
195
|
+
},
|
|
196
|
+
dark: {
|
|
197
|
+
background: "#060607",
|
|
198
|
+
primary: "#0584F6",
|
|
199
|
+
primaryForeground: "#FCFCFC",
|
|
200
|
+
...n?.dark
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
classNames: {
|
|
204
|
+
...r,
|
|
205
|
+
card: e("border-none rounded-3xl", r?.card),
|
|
206
|
+
button: e("rounded-full", r?.button)
|
|
207
|
+
},
|
|
208
|
+
...i
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
export { u as EmailChangedEmail, d as EmailVerificationEmail, f as MagicLinkEmail, p as NewDeviceEmail, m as OrganizationInvitationEmail, h as OtpEmail, g as PasswordChangedEmail, _ as ResetPasswordEmail };
|