import { SizeType } from 'antd/lib/config-provider/SizeContext'; import { CSSProperties, HTMLAttributes, ReactNode } from 'react'; import { DateToFormatOptions } from '@synerise/ds-core'; import { DataAttributes } from '@synerise/ds-utils'; import { DatePickerProps } from '../../DatePicker.types'; type InputProps = DatePickerProps['inputProps']; export type Props = InputProps & { autoFocus?: boolean; size?: SizeType; /** * @deprecated use `valueFormatOptions` instead */ format?: string; valueFormatOptions?: DateToFormatOptions; showTime?: boolean; allowClear?: boolean; value?: Date | string; onChange?: (dateValue: Date | undefined | null, stringifiedDate: string) => void; style?: CSSProperties; placeholder?: string; disabled?: boolean; readOnly?: boolean; onClick?: () => void; onClear?: () => void; clearTooltip?: ReactNode; highlight?: boolean; error?: boolean; errorText?: ReactNode; prefixel?: ReactNode; suffixel?: ReactNode; triggerHTMLAttributes?: HTMLAttributes & DataAttributes; }; export type PickerInputProps = Props; export {};