import { forwardRef } from "react"; import * as SelectPrimitive from "@radix-ui/react-select"; import { Check, ChevronDown } from "lucide-react"; import { cn } from "@/lib/utils"; /** * Select stylé maison à partir des primitives Radix. * Style aligné sur Input (1px line, focus ring rubis-glow, radius default 6px). * * Usage minimaliste : * */ export const Select = SelectPrimitive.Root; export const SelectGroup = SelectPrimitive.Group; export const SelectValue = SelectPrimitive.Value; export const SelectTrigger = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( {children} )); SelectTrigger.displayName = SelectPrimitive.Trigger.displayName; export const SelectContent = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, position = "popper", ...props }, ref) => ( {children} )); SelectContent.displayName = SelectPrimitive.Content.displayName; export const SelectItem = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( {children} )); SelectItem.displayName = SelectPrimitive.Item.displayName;