🎨 form control polish — rounded-md, hover states, consistent bg-background
Browse files at this commite7a24458dfcce6e9e13a90bd0e34ffb1ebac1a69Parent: 31d0b97- style
- 🎨 form control polish — rounded-md, hover states, consistent bg-background
6 changed files +9 -9
- src/components/ui/alert.tsx +2 -2
- src/components/ui/confirm-dialog.tsx +3 -3
- src/components/ui/data-table.tsx +1 -1
- src/components/ui/input.tsx +1 -1
- src/components/ui/select.tsx +1 -1
- src/components/ui/textarea.tsx +1 -1
src/components/ui/alert.tsxmodified+2 -2
| @@ -8,9 +8,9 @@ export function Alert(props: ParentProps<ComponentProps<"div"> & { variant?: "de | |||
| 8 | <div | 8 | <div |
| 9 | role="alert" | 9 | role="alert" |
| 10 | class={cn( | 10 | class={cn( |
| 11 | - "relative w-full rounded-sm border px-4 py-3 text-sm", | 11 | + "relative w-full rounded-md border px-4 py-3 text-sm shadow-sm", |
| 12 | local.variant === "destructive" | 12 | local.variant === "destructive" |
| 13 | - ? "border-destructive/50 text-destructive" | 13 | + ? "border-destructive/30 bg-destructive/10 text-destructive" |
| 14 | : "bg-background text-foreground", | 14 | : "bg-background text-foreground", |
| 15 | local.class, | 15 | local.class, |
| 16 | )} | 16 | )} |
src/components/ui/confirm-dialog.tsxmodified+3 -3
| @@ -47,8 +47,8 @@ export function ConfirmDialog(props: ConfirmDialogProps) { | |||
| 47 | <AlertDialogHeader> | 47 | <AlertDialogHeader> |
| 48 | <span | 48 | <span |
| 49 | class={cn( | 49 | class={cn( |
| 50 | - "mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-sm", | 50 | + "mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-md border", |
| 51 | - destructive() ? "bg-destructive/10 text-destructive" : "bg-primary/10 text-primary", | 51 | + destructive() ? "border-destructive/20 bg-destructive/10 text-destructive" : "border-primary/20 bg-primary/10 text-primary", |
| 52 | )} | 52 | )} |
| 53 | > | 53 | > |
| 54 | <Show when={destructive()} fallback={<IconAlert class="h-4 w-4" />}> | 54 | <Show when={destructive()} fallback={<IconAlert class="h-4 w-4" />}> |
| @@ -65,7 +65,7 @@ export function ConfirmDialog(props: ConfirmDialogProps) { | |||
| 65 | <p class="text-xs font-semibold uppercase tracking-wider text-muted-foreground"> | 65 | <p class="text-xs font-semibold uppercase tracking-wider text-muted-foreground"> |
| 66 | {t("confirm.summary")} | 66 | {t("confirm.summary")} |
| 67 | </p> | 67 | </p> |
| 68 | - <div class="rounded-sm border border-border bg-muted/40 px-3 py-3 text-sm leading-relaxed"> | 68 | + <div class="rounded-md border border-border bg-muted/40 px-3 py-3 text-sm leading-relaxed"> |
| 69 | {props.summary} | 69 | {props.summary} |
| 70 | </div> | 70 | </div> |
| 71 | </AlertDialogBody> | 71 | </AlertDialogBody> |
src/components/ui/data-table.tsxmodified+1 -1
| @@ -8,7 +8,7 @@ export function DataTableFrame(props: ParentProps<{ class?: string }>) { | |||
| 8 | 8 | ||
| 9 | export function DataTableEmpty(props: ParentProps<{ class?: string }>) { | 9 | export function DataTableEmpty(props: ParentProps<{ class?: string }>) { |
| 10 | return ( | 10 | return ( |
| 11 | - <div class={cn("rounded-lg border border-dashed border-border/80 bg-muted/20 px-4 py-8 text-center text-sm text-muted-foreground", props.class)}> | 11 | + <div class={cn("rounded-lg border border-dashed border-border/80 bg-muted/20 px-4 py-10 text-center text-sm leading-6 text-muted-foreground", props.class)}> |
| 12 | {props.children} | 12 | {props.children} |
| 13 | </div> | 13 | </div> |
| 14 | ); | 14 | ); |
src/components/ui/input.tsxmodified+1 -1
| @@ -9,7 +9,7 @@ export function Input(props: InputProps) { | |||
| 9 | return ( | 9 | return ( |
| 10 | <input | 10 | <input |
| 11 | class={cn( | 11 | class={cn( |
| 12 | - "flex h-9 w-full rounded-sm border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", | 12 | + "flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", |
| 13 | local.class, | 13 | local.class, |
| 14 | )} | 14 | )} |
| 15 | {...rest} | 15 | {...rest} |
src/components/ui/select.tsxmodified+1 -1
| @@ -10,7 +10,7 @@ export function Select(props: SelectProps) { | |||
| 10 | return ( | 10 | return ( |
| 11 | <select | 11 | <select |
| 12 | class={cn( | 12 | class={cn( |
| 13 | - "flex h-9 w-full rounded-sm border border-input bg-background px-3 py-1 text-sm text-foreground shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>option]:bg-popover [&>option]:text-popover-foreground", | 13 | + "flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm text-foreground shadow-sm transition-colors hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>option]:bg-popover [&>option]:text-popover-foreground", |
| 14 | local.class, | 14 | local.class, |
| 15 | )} | 15 | )} |
| 16 | {...rest} | 16 | {...rest} |
src/components/ui/textarea.tsxmodified+1 -1
| @@ -9,7 +9,7 @@ export function Textarea(props: TextareaProps) { | |||
| 9 | return ( | 9 | return ( |
| 10 | <textarea | 10 | <textarea |
| 11 | class={cn( | 11 | class={cn( |
| 12 | - "flex min-h-[80px] w-full rounded-sm border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", | 12 | + "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm transition-colors placeholder:text-muted-foreground hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", |
| 13 | local.class, | 13 | local.class, |
| 14 | )} | 14 | )} |
| 15 | {...rest} | 15 | {...rest} |