import * as React from "react"; import * as SelectPrimitive from "@radix-ui/react-select"; import { Check, ChevronDown, ChevronUp } from "lucide-react"; import { floatingSurfaceElevationClassName, floatingItemClassName } from "@/components/ui/floating-surface"; import { useFloatingPortal } from "@/components/ui/floating-portal"; import { cn } from "@/lib/utils"; import { ControlChevron } from "@/components/ui/control-chevron"; export const Select = SelectPrimitive.Root; export const SelectValue = SelectPrimitive.Value; export const SelectSeparator = SelectPrimitive.Separator; export const SelectTrigger = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( span:first-child]:truncate", className)}> {children} )); SelectTrigger.displayName = "SelectTrigger"; export function SelectContent({ children, ...props }: Pick< React.ComponentPropsWithoutRef, "children" | "onPointerUpCapture" | "onPointerDownOutside" | "onKeyDownCapture" | "onEscapeKeyDown" | "onCloseAutoFocus" >) { const container = useFloatingPortal(); return ( {children} ); } export function SelectItem({ children, className, ...props }: React.ComponentPropsWithoutRef) { return ( {children} ); }