import { default as React, ReactNode } from 'react'; import { Placement } from '../../utils'; import { InputVariant } from '../Input'; export type DatePickerProps = { /** * id for the DatePicker input. * Used it with htmlFor props from FormField */ id?: string; /** * className for the element */ className?: string; /** * Whether the DatePicker should fit its parents or content * @default content */ fit?: 'content' | 'parent'; /** * Whether the DatePicker is disabled. * @default false */ isDisabled?: boolean; /** * Whether the DatePicker is invalid. * @default false */ isInvalid?: boolean; /** * Temporary text that occupies the DatePicker when it is empty. */ placeholder?: string; /** * The current value. */ value: Date | undefined; /** * Handler that is called when the value changes. */ onChange(newDate?: Date): void; /** * The earliest date allowed by the input */ minDate?: Date; /** * The oldest date allowed by the input */ maxDate?: Date; /** * Whether the DatePicker should be aligned at the start or end of the trigger * @default bottom-start */ placement?: Placement; /** * Left addon of the DatePicker. */ leftAddon?: ReactNode; /** * The visual style of the DatePicker. */ variant?: InputVariant; }; /** * Allows user to choose or enter a Date */ export declare const DatePicker: ({ fit, isDisabled, isInvalid, placeholder, value, onChange, minDate, maxDate, placement, ...rest }: DatePickerProps) => React.JSX.Element; //# sourceMappingURL=DatePicker.d.ts.map