@aveonline/ui-react
Version:
Home base for Aveonline design system - ecosystem react
60 lines (59 loc) • 2.14 kB
TypeScript
import DateObject from 'react-date-object';
import { FocusEvent, MouseEventHandler } from 'react';
declare type IValueInput = Array<DateObject> | Array<string> | string | DateObject | Array<null> | null;
interface IDateInputPickerType {
type: 'single' | 'multiple';
valueInput: (item: IValueInput) => void;
textInsideInput?: string;
isError?: boolean;
isDisable?: boolean;
textRangeInput?: boolean;
rangeInitialValueInput?: (Array<string> | Array<DateObject>) | null;
singleInitialValueInput?: string | null;
textRangeInitialValueInput?: string;
labelRangelTextNull?: string;
containerClassName?: string;
withTime?: boolean;
language?: string;
_t?: (text: string) => string;
useT?: boolean;
translateTextProps?: boolean;
}
interface ICustomInput {
openCalendar?: (event: FocusEvent<HTMLInputElement, Element>) => void;
value?: string | undefined;
handleValueChange?: (event: FocusEvent<HTMLInputElement, Element>) => void;
clickDelete?: () => void;
auxInitialValue: number;
textInsideInput?: string;
isError?: boolean;
isDisable?: boolean;
stateColors?: boolean;
withTime: boolean;
}
interface ICustomRangeInput {
openCalendar?: (event: FocusEvent<HTMLInputElement, Element>) => void;
handleValueChange?: (event: FocusEvent<HTMLInputElement, Element>) => void;
value?: Array<string> | string;
clickDelete?: () => void;
textInsideInput?: string;
isError?: boolean;
isDisable?: boolean;
stateColors?: boolean;
}
interface IPluginEspecialDates {
functionCumpustonPlugin: (value: string | null, setValuesInput: Array<string> | Array<DateObject> | null) => void;
initialValue: string | null;
position?: string;
isMobile?: boolean;
language?: string;
}
interface IItemSpecialDates {
name: string;
click: () => void;
}
interface ICustomButton {
direction?: string;
handleClick?: MouseEventHandler<HTMLButtonElement>;
}
export type { IValueInput, DateObject, IDateInputPickerType, IPluginEspecialDates, ICustomInput, ICustomRangeInput, ICustomButton, IItemSpecialDates };