From b7c038c9d7d71374f8c18f5822b88e86f11f7b47 Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Wed, 28 Oct 2026 10:31:53 +1000 Subject: [PATCH] SearchInput: bordered like Input, matching Select in FilterBar Co-Authored-By: Claude Opus 5.5 --- src/kit/search-input.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kit/search-input.tsx b/src/kit/search-input.tsx index 02dd9de..cf6c5ca 100644 --- a/src/kit/search-input.tsx +++ b/src/kit/search-input.tsx @@ -3,7 +3,7 @@ import { SearchIcon, XIcon } from "lucide-react" import { cn } from "../lib/utils" -/** Поле поиска на мягкой подложке: иконка, крестик очистки. */ +/** Поле поиска: иконка, крестик очистки. */ export const SearchInput = React.forwardRef< HTMLInputElement, Omit, "value" | "onChange" | "size"> & { @@ -38,8 +38,9 @@ export const SearchInput = React.forwardRef< onKeyDown?.(e) }} className={cn( - "w-full rounded-lg border border-transparent bg-muted/70 transition outline-none placeholder:text-muted-foreground/80 [&::-webkit-search-cancel-button]:hidden", - "focus:border-primary/40 focus:bg-card focus:ring-4 focus:ring-primary/10", + // как Input: рамка на белом, та же подсветка фокуса — в строке фильтров стоит рядом с Select + "w-full min-w-0 rounded-md border border-input bg-transparent shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground dark:bg-input/30 [&::-webkit-search-cancel-button]:hidden", + "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50", size === "sm" && "h-8 pr-8 pl-9 text-sm", size === "md" && "h-9 pr-8 pl-9 text-sm", size === "lg" && "h-12 rounded-xl pr-12 pl-12 text-base",