import { ComponentProps } from 'react'; import { BaseComponentProps, SizeValue } from '../../types'; import { DropdownProps } from '../Dropdown'; export interface SelectOption { label: string; value: T; onClick?: (option: SelectOption) => void; disabled?: boolean; } export interface SelectProps extends BaseComponentProps { name?: string; label?: string; placeholder?: string; value?: string; defaultValue?: string; disabled?: boolean; searchable?: boolean; required?: boolean; options: SelectOption[] | Promise[]>; selectProps?: Omit, 'onChange'>; wrapperProps?: ComponentProps<'div'>; dropdownProps?: Partial; width?: SizeValue; onChange?: (value: T) => void; } export interface SelectOptionProps { option: SelectOption; onClick: (option: SelectOption) => void; }