登录页面与组件样式调整

This commit is contained in:
2025-03-19 15:49:18 +08:00
parent eaae095d0e
commit 906693be10
28 changed files with 1405 additions and 206 deletions

View File

@@ -13,7 +13,7 @@ import {
type FieldValues,
} from "react-hook-form"
import { cn } from "@/lib/utils"
import { merge } from "@/lib/utils"
import { Label } from "@/components/ui/label"
const Form = FormProvider
@@ -80,7 +80,7 @@ function FormItem({ className, ...props }: React.ComponentProps<"div">) {
<FormItemContext.Provider value={{ id }}>
<div
data-slot="form-item"
className={cn("grid gap-2", className)}
className={merge("grid gap-2", className)}
{...props}
/>
</FormItemContext.Provider>
@@ -97,7 +97,7 @@ function FormLabel({
<Label
data-slot="form-label"
data-error={!!error}
className={cn("data-[error=true]:text-destructive", className)}
className={merge("data-[error=true]:text-destructive", className)}
htmlFor={formItemId}
{...props}
/>
@@ -129,7 +129,7 @@ function FormDescription({ className, ...props }: React.ComponentProps<"p">) {
<p
data-slot="form-description"
id={formDescriptionId}
className={cn("text-muted-foreground text-sm", className)}
className={merge("text-muted-foreground text-sm", className)}
{...props}
/>
)
@@ -147,7 +147,7 @@ function FormMessage({ className, ...props }: React.ComponentProps<"p">) {
<p
data-slot="form-message"
id={formMessageId}
className={cn("text-destructive text-sm", className)}
className={merge("text-destructive text-sm", className)}
{...props}
>
{body}