import { StringSchema, ObjectSchema } from 'yup';
import { EInputComponentType, EInputType } from '@/UI-kit/types';
import { ISelectProps } from '@/UI-kit/types/UI/ui-select.type';

export interface IDocsSchemaType {
    label?: string;
    type?: EInputType;
    name: string;
    validator?: StringSchema<string> | ObjectSchema<object>;
    initialValue?: string | null;
    validateOnChange?: boolean;
    disabled?: boolean;
    readonly?: boolean;
    masked?: boolean;
    mask?: string;
    placeholder?: string;
    components?: EInputComponentType;
    radioButtonData?: IRadio[];
    select?: ISelectProps;
    isDate?: boolean;
    isShowClear?: boolean;
    isCapitalize?: boolean;
    helperImg?: string;
}

interface IRadio {
    label: string;
    value: string;
}
