mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 13:10:58 +00:00
12 lines
699 B
TypeScript
12 lines
699 B
TypeScript
import { DatePickerType, DatePickerValue, DateStringValue } from '../../types';
|
|
interface UseUncontrolledDates<Type extends DatePickerType = 'default'> {
|
|
type: Type;
|
|
value: DatePickerValue<Type> | undefined;
|
|
defaultValue: DatePickerValue<Type> | undefined;
|
|
onChange: ((value: DatePickerValue<Type, DateStringValue>) => void) | undefined;
|
|
withTime?: boolean;
|
|
}
|
|
export declare const convertDatesValue: (value: any, withTime: boolean) => string | (string | null | undefined)[] | null | undefined;
|
|
export declare function useUncontrolledDates<Type extends DatePickerType = 'default'>({ type, value, defaultValue, onChange, withTime, }: UseUncontrolledDates<Type>): any[];
|
|
export {};
|