"use client" import * as React from "react" import { cn } from "../core/cn" import { ChevronDown } from "lucide-react" // ── Native select wrapper ───────────────────────────────────────────────── interface SelectProps extends React.ComponentPropsWithoutRef<"select"> { placeholder?: string } const Select = React.forwardRef( ({ className, children, placeholder, ...props }, ref) => { return (
) }, ) Select.displayName = "Select" // ── Sub-components (thin wrappers for API compatibility) ────────────────── function SelectItem({ className, ...props }: React.ComponentPropsWithoutRef<"option">) { return } function SelectGroupLabel(_props: { children?: React.ReactNode }) { // optgroup uses `label` attr, this is a no-op for compatibility return null } // Stubs for barrel export compatibility — these are no-ops with native select function SelectContent({ children }: { children?: React.ReactNode; className?: string }) { return <>{children} } function SelectTrigger({ children }: { children?: React.ReactNode; className?: string }) { return <>{children} } function SelectValue(_props: { placeholder?: string }) { return null } function SelectPortal({ children }: { children?: React.ReactNode }) { return <>{children} } function SelectSeparator({ className, ...props }: React.ComponentProps<"div">) { return
} export { Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, }