@xk2800/nextjs-template 0.7.1-beta.10 → 0.7.1-beta.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/components/ui/badge.tsx
CHANGED
|
@@ -17,6 +17,8 @@ const badgeVariants = cva(
|
|
|
17
17
|
"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
18
18
|
outline:
|
|
19
19
|
"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
20
|
+
success:
|
|
21
|
+
"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90",
|
|
20
22
|
},
|
|
21
23
|
},
|
|
22
24
|
defaultVariants: {
|
package/components/ui/switch.tsx
CHANGED
|
@@ -10,14 +10,14 @@ function Switch({
|
|
|
10
10
|
size = "default",
|
|
11
11
|
...props
|
|
12
12
|
}: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
13
|
-
size?: "sm" | "default"
|
|
13
|
+
size?: "sm" | "default" | "md" | "lg" | "xl" | "2xl"
|
|
14
14
|
}) {
|
|
15
15
|
return (
|
|
16
16
|
<SwitchPrimitive.Root
|
|
17
17
|
data-slot="switch"
|
|
18
18
|
data-size={size}
|
|
19
19
|
className={cn(
|
|
20
|
-
"peer group/switch inline-flex shrink-0 items-center rounded-(--pill-radius) border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",
|
|
20
|
+
"peer group/switch inline-flex shrink-0 items-center rounded-(--pill-radius) border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[size=md]:h-[1.375rem] data-[size=md]:w-10 data-[size=lg]:h-[1.625rem] data-[size=lg]:w-12 data-[size=xl]:h-[1.875rem] data-[size=xl]:w-14 data-[size=2xl]:h-[2.125rem] data-[size=2xl]:w-16 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",
|
|
21
21
|
className
|
|
22
22
|
)}
|
|
23
23
|
{...props}
|
|
@@ -25,7 +25,7 @@ function Switch({
|
|
|
25
25
|
<SwitchPrimitive.Thumb
|
|
26
26
|
data-slot="switch-thumb"
|
|
27
27
|
className={cn(
|
|
28
|
-
"pointer-events-none block rounded-(--pill-radius) bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground"
|
|
28
|
+
"pointer-events-none block rounded-(--pill-radius) bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=md]/switch:size-5 group-data-[size=lg]/switch:size-6 group-data-[size=xl]/switch:size-7 group-data-[size=2xl]/switch:size-8 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground"
|
|
29
29
|
)}
|
|
30
30
|
/>
|
|
31
31
|
</SwitchPrimitive.Root>
|
package/dist/auth/helpers.d.mts
CHANGED
|
@@ -27,8 +27,8 @@ declare const getCurrentSession: () => Promise<{
|
|
|
27
27
|
image?: string | null | undefined | undefined;
|
|
28
28
|
role: string | null | undefined;
|
|
29
29
|
banned: boolean | null | undefined;
|
|
30
|
-
banReason?: string | null | undefined;
|
|
31
30
|
banExpires?: Date | null | undefined;
|
|
31
|
+
banReason?: string | null | undefined;
|
|
32
32
|
twoFactorEnabled: boolean | null | undefined;
|
|
33
33
|
};
|
|
34
34
|
} | null>;
|
|
@@ -61,8 +61,8 @@ declare const requireAuth: () => Promise<{
|
|
|
61
61
|
image?: string | null | undefined | undefined;
|
|
62
62
|
role: string | null | undefined;
|
|
63
63
|
banned: boolean | null | undefined;
|
|
64
|
-
banReason?: string | null | undefined;
|
|
65
64
|
banExpires?: Date | null | undefined;
|
|
65
|
+
banReason?: string | null | undefined;
|
|
66
66
|
twoFactorEnabled: boolean | null | undefined;
|
|
67
67
|
};
|
|
68
68
|
}>;
|
|
@@ -95,8 +95,8 @@ declare function requireRole(requiredRole: 'user' | 'admin'): Promise<{
|
|
|
95
95
|
image?: string | null | undefined | undefined;
|
|
96
96
|
role: string | null | undefined;
|
|
97
97
|
banned: boolean | null | undefined;
|
|
98
|
-
banReason?: string | null | undefined;
|
|
99
98
|
banExpires?: Date | null | undefined;
|
|
99
|
+
banReason?: string | null | undefined;
|
|
100
100
|
twoFactorEnabled: boolean | null | undefined;
|
|
101
101
|
};
|
|
102
102
|
}>;
|
package/dist/auth/helpers.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ declare const getCurrentSession: () => Promise<{
|
|
|
27
27
|
image?: string | null | undefined | undefined;
|
|
28
28
|
role: string | null | undefined;
|
|
29
29
|
banned: boolean | null | undefined;
|
|
30
|
-
banReason?: string | null | undefined;
|
|
31
30
|
banExpires?: Date | null | undefined;
|
|
31
|
+
banReason?: string | null | undefined;
|
|
32
32
|
twoFactorEnabled: boolean | null | undefined;
|
|
33
33
|
};
|
|
34
34
|
} | null>;
|
|
@@ -61,8 +61,8 @@ declare const requireAuth: () => Promise<{
|
|
|
61
61
|
image?: string | null | undefined | undefined;
|
|
62
62
|
role: string | null | undefined;
|
|
63
63
|
banned: boolean | null | undefined;
|
|
64
|
-
banReason?: string | null | undefined;
|
|
65
64
|
banExpires?: Date | null | undefined;
|
|
65
|
+
banReason?: string | null | undefined;
|
|
66
66
|
twoFactorEnabled: boolean | null | undefined;
|
|
67
67
|
};
|
|
68
68
|
}>;
|
|
@@ -95,8 +95,8 @@ declare function requireRole(requiredRole: 'user' | 'admin'): Promise<{
|
|
|
95
95
|
image?: string | null | undefined | undefined;
|
|
96
96
|
role: string | null | undefined;
|
|
97
97
|
banned: boolean | null | undefined;
|
|
98
|
-
banReason?: string | null | undefined;
|
|
99
98
|
banExpires?: Date | null | undefined;
|
|
99
|
+
banReason?: string | null | undefined;
|
|
100
100
|
twoFactorEnabled: boolean | null | undefined;
|
|
101
101
|
};
|
|
102
102
|
}>;
|
|
@@ -826,8 +826,8 @@ declare const authClient: better_auth_react.ReactAuthClient<{
|
|
|
826
826
|
$Infer: {
|
|
827
827
|
body: {
|
|
828
828
|
permissions: {
|
|
829
|
-
readonly user?: ("
|
|
830
|
-
readonly session?: ("
|
|
829
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
830
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
831
831
|
};
|
|
832
832
|
} & {
|
|
833
833
|
userId?: string | undefined;
|
|
@@ -916,8 +916,8 @@ declare const authClient: better_auth_react.ReactAuthClient<{
|
|
|
916
916
|
admin: {
|
|
917
917
|
checkRolePermission: <R extends "user" | "admin">(data: {
|
|
918
918
|
permissions: {
|
|
919
|
-
readonly user?: ("
|
|
920
|
-
readonly session?: ("
|
|
919
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
920
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
921
921
|
};
|
|
922
922
|
} & {
|
|
923
923
|
role: R;
|
|
@@ -2423,8 +2423,8 @@ declare const useSession: () => {
|
|
|
2423
2423
|
banned: boolean | null | undefined;
|
|
2424
2424
|
} & {
|
|
2425
2425
|
role?: string | null | undefined;
|
|
2426
|
-
banReason?: string | null | undefined;
|
|
2427
2426
|
banExpires?: Date | null | undefined;
|
|
2427
|
+
banReason?: string | null | undefined;
|
|
2428
2428
|
} & {
|
|
2429
2429
|
twoFactorEnabled: boolean | null | undefined;
|
|
2430
2430
|
} & {}>;
|
|
@@ -2450,7 +2450,7 @@ declare const useSession: () => {
|
|
|
2450
2450
|
};
|
|
2451
2451
|
declare const signIn: {
|
|
2452
2452
|
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
2453
|
-
provider:
|
|
2453
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2454
2454
|
callbackURL?: string | undefined;
|
|
2455
2455
|
newUserCallbackURL?: string | undefined;
|
|
2456
2456
|
errorCallbackURL?: string | undefined;
|
|
@@ -2475,7 +2475,7 @@ declare const signIn: {
|
|
|
2475
2475
|
additionalParams?: Record<string, string> | undefined;
|
|
2476
2476
|
additionalData?: Record<string, any> | undefined;
|
|
2477
2477
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, string | undefined> | undefined>>(data_0: better_auth.Prettify<Omit<{
|
|
2478
|
-
provider:
|
|
2478
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2479
2479
|
callbackURL?: string | undefined;
|
|
2480
2480
|
newUserCallbackURL?: string | undefined;
|
|
2481
2481
|
errorCallbackURL?: string | undefined;
|
|
@@ -2502,7 +2502,7 @@ declare const signIn: {
|
|
|
2502
2502
|
} & {
|
|
2503
2503
|
fetchOptions?: FetchOptions | undefined;
|
|
2504
2504
|
}, "provider"> & {
|
|
2505
|
-
provider:
|
|
2505
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2506
2506
|
fetchOptions?: FetchOptions | undefined;
|
|
2507
2507
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
2508
2508
|
redirect: boolean;
|
|
@@ -2533,8 +2533,8 @@ declare const signIn: {
|
|
|
2533
2533
|
banned: boolean | null | undefined;
|
|
2534
2534
|
} & {
|
|
2535
2535
|
role?: string | null | undefined;
|
|
2536
|
-
banReason?: string | null | undefined;
|
|
2537
2536
|
banExpires?: Date | null | undefined;
|
|
2537
|
+
banReason?: string | null | undefined;
|
|
2538
2538
|
} & {
|
|
2539
2539
|
twoFactorEnabled: boolean | null | undefined;
|
|
2540
2540
|
} & {}>;
|
|
@@ -2581,8 +2581,8 @@ declare const signIn: {
|
|
|
2581
2581
|
banned: boolean | null | undefined;
|
|
2582
2582
|
} & {
|
|
2583
2583
|
role?: string | null | undefined;
|
|
2584
|
-
banReason?: string | null | undefined;
|
|
2585
2584
|
banExpires?: Date | null | undefined;
|
|
2585
|
+
banReason?: string | null | undefined;
|
|
2586
2586
|
} & {
|
|
2587
2587
|
twoFactorEnabled: boolean | null | undefined;
|
|
2588
2588
|
} & {}>;
|
|
@@ -3481,8 +3481,8 @@ declare const signUp: {
|
|
|
3481
3481
|
$Infer: {
|
|
3482
3482
|
body: {
|
|
3483
3483
|
permissions: {
|
|
3484
|
-
readonly user?: ("
|
|
3485
|
-
readonly session?: ("
|
|
3484
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3485
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3486
3486
|
};
|
|
3487
3487
|
} & {
|
|
3488
3488
|
userId?: string | undefined;
|
|
@@ -3571,8 +3571,8 @@ declare const signUp: {
|
|
|
3571
3571
|
admin: {
|
|
3572
3572
|
checkRolePermission: <R extends "user" | "admin">(data: {
|
|
3573
3573
|
permissions: {
|
|
3574
|
-
readonly user?: ("
|
|
3575
|
-
readonly session?: ("
|
|
3574
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3575
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3576
3576
|
};
|
|
3577
3577
|
} & {
|
|
3578
3578
|
role: R;
|
|
@@ -5155,8 +5155,8 @@ declare const signUp: {
|
|
|
5155
5155
|
banned: boolean | null | undefined;
|
|
5156
5156
|
} & {
|
|
5157
5157
|
role?: string | null | undefined;
|
|
5158
|
-
banReason?: string | null | undefined;
|
|
5159
5158
|
banExpires?: Date | null | undefined;
|
|
5159
|
+
banReason?: string | null | undefined;
|
|
5160
5160
|
} & {
|
|
5161
5161
|
twoFactorEnabled: boolean | null | undefined;
|
|
5162
5162
|
} & {}>;
|
|
@@ -5184,8 +5184,8 @@ declare const signUp: {
|
|
|
5184
5184
|
banned: boolean | null | undefined;
|
|
5185
5185
|
} & {
|
|
5186
5186
|
role?: string | null | undefined;
|
|
5187
|
-
banReason?: string | null | undefined;
|
|
5188
5187
|
banExpires?: Date | null | undefined;
|
|
5188
|
+
banReason?: string | null | undefined;
|
|
5189
5189
|
} & {
|
|
5190
5190
|
twoFactorEnabled: boolean | null | undefined;
|
|
5191
5191
|
} & {}>;
|
|
@@ -826,8 +826,8 @@ declare const authClient: better_auth_react.ReactAuthClient<{
|
|
|
826
826
|
$Infer: {
|
|
827
827
|
body: {
|
|
828
828
|
permissions: {
|
|
829
|
-
readonly user?: ("
|
|
830
|
-
readonly session?: ("
|
|
829
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
830
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
831
831
|
};
|
|
832
832
|
} & {
|
|
833
833
|
userId?: string | undefined;
|
|
@@ -916,8 +916,8 @@ declare const authClient: better_auth_react.ReactAuthClient<{
|
|
|
916
916
|
admin: {
|
|
917
917
|
checkRolePermission: <R extends "user" | "admin">(data: {
|
|
918
918
|
permissions: {
|
|
919
|
-
readonly user?: ("
|
|
920
|
-
readonly session?: ("
|
|
919
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
920
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
921
921
|
};
|
|
922
922
|
} & {
|
|
923
923
|
role: R;
|
|
@@ -2423,8 +2423,8 @@ declare const useSession: () => {
|
|
|
2423
2423
|
banned: boolean | null | undefined;
|
|
2424
2424
|
} & {
|
|
2425
2425
|
role?: string | null | undefined;
|
|
2426
|
-
banReason?: string | null | undefined;
|
|
2427
2426
|
banExpires?: Date | null | undefined;
|
|
2427
|
+
banReason?: string | null | undefined;
|
|
2428
2428
|
} & {
|
|
2429
2429
|
twoFactorEnabled: boolean | null | undefined;
|
|
2430
2430
|
} & {}>;
|
|
@@ -2450,7 +2450,7 @@ declare const useSession: () => {
|
|
|
2450
2450
|
};
|
|
2451
2451
|
declare const signIn: {
|
|
2452
2452
|
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
2453
|
-
provider:
|
|
2453
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2454
2454
|
callbackURL?: string | undefined;
|
|
2455
2455
|
newUserCallbackURL?: string | undefined;
|
|
2456
2456
|
errorCallbackURL?: string | undefined;
|
|
@@ -2475,7 +2475,7 @@ declare const signIn: {
|
|
|
2475
2475
|
additionalParams?: Record<string, string> | undefined;
|
|
2476
2476
|
additionalData?: Record<string, any> | undefined;
|
|
2477
2477
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, string | undefined> | undefined>>(data_0: better_auth.Prettify<Omit<{
|
|
2478
|
-
provider:
|
|
2478
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2479
2479
|
callbackURL?: string | undefined;
|
|
2480
2480
|
newUserCallbackURL?: string | undefined;
|
|
2481
2481
|
errorCallbackURL?: string | undefined;
|
|
@@ -2502,7 +2502,7 @@ declare const signIn: {
|
|
|
2502
2502
|
} & {
|
|
2503
2503
|
fetchOptions?: FetchOptions | undefined;
|
|
2504
2504
|
}, "provider"> & {
|
|
2505
|
-
provider:
|
|
2505
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2506
2506
|
fetchOptions?: FetchOptions | undefined;
|
|
2507
2507
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
2508
2508
|
redirect: boolean;
|
|
@@ -2533,8 +2533,8 @@ declare const signIn: {
|
|
|
2533
2533
|
banned: boolean | null | undefined;
|
|
2534
2534
|
} & {
|
|
2535
2535
|
role?: string | null | undefined;
|
|
2536
|
-
banReason?: string | null | undefined;
|
|
2537
2536
|
banExpires?: Date | null | undefined;
|
|
2537
|
+
banReason?: string | null | undefined;
|
|
2538
2538
|
} & {
|
|
2539
2539
|
twoFactorEnabled: boolean | null | undefined;
|
|
2540
2540
|
} & {}>;
|
|
@@ -2581,8 +2581,8 @@ declare const signIn: {
|
|
|
2581
2581
|
banned: boolean | null | undefined;
|
|
2582
2582
|
} & {
|
|
2583
2583
|
role?: string | null | undefined;
|
|
2584
|
-
banReason?: string | null | undefined;
|
|
2585
2584
|
banExpires?: Date | null | undefined;
|
|
2585
|
+
banReason?: string | null | undefined;
|
|
2586
2586
|
} & {
|
|
2587
2587
|
twoFactorEnabled: boolean | null | undefined;
|
|
2588
2588
|
} & {}>;
|
|
@@ -3481,8 +3481,8 @@ declare const signUp: {
|
|
|
3481
3481
|
$Infer: {
|
|
3482
3482
|
body: {
|
|
3483
3483
|
permissions: {
|
|
3484
|
-
readonly user?: ("
|
|
3485
|
-
readonly session?: ("
|
|
3484
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3485
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3486
3486
|
};
|
|
3487
3487
|
} & {
|
|
3488
3488
|
userId?: string | undefined;
|
|
@@ -3571,8 +3571,8 @@ declare const signUp: {
|
|
|
3571
3571
|
admin: {
|
|
3572
3572
|
checkRolePermission: <R extends "user" | "admin">(data: {
|
|
3573
3573
|
permissions: {
|
|
3574
|
-
readonly user?: ("
|
|
3575
|
-
readonly session?: ("
|
|
3574
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3575
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3576
3576
|
};
|
|
3577
3577
|
} & {
|
|
3578
3578
|
role: R;
|
|
@@ -5155,8 +5155,8 @@ declare const signUp: {
|
|
|
5155
5155
|
banned: boolean | null | undefined;
|
|
5156
5156
|
} & {
|
|
5157
5157
|
role?: string | null | undefined;
|
|
5158
|
-
banReason?: string | null | undefined;
|
|
5159
5158
|
banExpires?: Date | null | undefined;
|
|
5159
|
+
banReason?: string | null | undefined;
|
|
5160
5160
|
} & {
|
|
5161
5161
|
twoFactorEnabled: boolean | null | undefined;
|
|
5162
5162
|
} & {}>;
|
|
@@ -5184,8 +5184,8 @@ declare const signUp: {
|
|
|
5184
5184
|
banned: boolean | null | undefined;
|
|
5185
5185
|
} & {
|
|
5186
5186
|
role?: string | null | undefined;
|
|
5187
|
-
banReason?: string | null | undefined;
|
|
5188
5187
|
banExpires?: Date | null | undefined;
|
|
5188
|
+
banReason?: string | null | undefined;
|
|
5189
5189
|
} & {
|
|
5190
5190
|
twoFactorEnabled: boolean | null | undefined;
|
|
5191
5191
|
} & {}>;
|
package/package.json
CHANGED
package/styles/theme.css
CHANGED
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
--color-input: var(--input);
|
|
28
28
|
--color-border: var(--border);
|
|
29
29
|
--color-destructive: var(--destructive);
|
|
30
|
+
--color-success: var(--success);
|
|
31
|
+
--color-success-foreground: var(--success-foreground);
|
|
30
32
|
--color-accent-foreground: var(--accent-foreground);
|
|
31
33
|
--color-accent: var(--accent);
|
|
32
34
|
--color-muted-foreground: var(--muted-foreground);
|
|
@@ -76,6 +78,8 @@
|
|
|
76
78
|
--accent: oklch(0.97 0 0);
|
|
77
79
|
--accent-foreground: oklch(0.205 0 0);
|
|
78
80
|
--destructive: oklch(0.577 0.245 27.325);
|
|
81
|
+
--success: oklch(0.55 0.15 145);
|
|
82
|
+
--success-foreground: oklch(0.984 0.003 247.858);
|
|
79
83
|
--border: oklch(0.922 0 0);
|
|
80
84
|
--input: oklch(0.922 0 0);
|
|
81
85
|
--ring: oklch(0.708 0 0);
|
|
@@ -110,6 +114,8 @@
|
|
|
110
114
|
--accent: oklch(0.269 0 0);
|
|
111
115
|
--accent-foreground: oklch(0.985 0 0);
|
|
112
116
|
--destructive: oklch(0.704 0.191 22.216);
|
|
117
|
+
--success: oklch(0.7 0.16 145);
|
|
118
|
+
--success-foreground: oklch(0.15 0.05 145);
|
|
113
119
|
--border: oklch(1 0 0 / 10%);
|
|
114
120
|
--input: oklch(1 0 0 / 15%);
|
|
115
121
|
--ring: oklch(0.556 0 0);
|