import type { Values } from '@sfx-ui/utils/types'; import { Size } from './types'; export type SelectSizeType = Values; export type SelectSimpleValueType = string | number | null | undefined; export interface SelectProps extends React.HTMLAttributes { size?: SelectSizeType; error?: boolean; children: React.ReactElementLike; multiple?: boolean; value?: SelectSimpleValueType | SelectSimpleValueType[]; onChange?: (value: SelectSimpleValueType | SelectSimpleValueType[]) => void; } export interface RenderOption { value?: SelectSimpleValueType | SelectSimpleValueType[]; multiple?: boolean; size?: SelectSizeType; onClose?: () => void; onChange?: (value) => void; } export interface RenderValue { value?: SelectSimpleValueType | SelectSimpleValueType[]; multiple?: boolean; children: React.ReactElementLike; }