import { Value } from '@radix-ui/react-select'; import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react'; import { FormField, FormFieldControl, FormFieldDescription, FormFieldError, FormFieldItem, FormFieldLabel, } from '../form-field'; import { InputAppearanceVariants } from '../input'; import { SelectContent } from './select-content'; import { SelectRoot } from './select-root'; import { SelectTrigger } from './select-trigger'; export type SelectProps = ComponentPropsWithoutRef & Pick, 'placeholder'> & Pick< ComponentPropsWithRef, 'onBlur' | 'onFocus' | 'ref' > & InputAppearanceVariants & { name: string; label: string; description?: string; container?: HTMLElement | null | false; hideLabel?: boolean; errors: string; hideErrorMessage?: boolean; className?: string; }; export function Select({ placeholder, label, children, container, description, name, hideErrorMessage = false, hideLabel = false, disabled, errors, onBlur, onFocus, required, size = 'md', ref, className, tone, variant, ...props }: SelectProps) { return ( {label} {children} {description} ); }