import { TextInputProps } from "@stenajs-webui/forms"; import * as React from "react"; import { CalendarTheme } from "../../calendar/CalendarTheme"; import { DateTextInputCalendarProps } from "../date-text-input/DateTextInput"; import { OptionalMinMaxDatesAsString } from "../../../types/CalendarTypes"; export interface DateInputProps extends OptionalMinMaxDatesAsString { /** The current value */ value?: Date; /** onChange handler for when the user selects a date. */ onChange?: (date: Date | undefined) => void; /** Variant of the input field. */ variant?: TextInputProps["variant"]; /** If true, calendar will be open when component mounts. */ openOnMount?: boolean; /** Is invoked when user closes the calendar popup. */ onClose?: () => void; /** * The date format in the input field. See date-fns docs. * @default YYYY-MM-dd */ displayFormat?: string; /** * Placeholder when no date has been selected. * @default Enter date */ placeholder?: string; /** * Portal target, HTML element. If not set, window.body is used. */ portalTarget?: HTMLElement; zIndex?: number; width?: string; /** * The calendar theme to use. */ calendarTheme?: CalendarTheme; /** Props to be passed to Calendar, see SingleDateCalendar. */ calendarProps?: DateTextInputCalendarProps; /** * Disables the TextInput, Calendar and Popover. */ disabled?: boolean; } export declare const DateInput: React.FC;