import { Omit } from "@stenajs-webui/core"; import { TextInputProps } from "@stenajs-webui/forms"; import * as React from "react"; import { SingleDateCalendarProps } from "../../calendar-types/single-date-calendar/SingleDateCalendar"; import { CalendarTheme } from "../../calendar/CalendarTheme"; import { OptionalMinMaxDatesAsString } from "../../../types/CalendarTypes"; export type DateTextInputCalendarProps = Omit, "value" | "onChange" | "theme">; export interface DateTextInputProps extends Omit, OptionalMinMaxDatesAsString { /** Props to be passed to Calendar, see SingleDateCalendar. */ calendarProps?: DateTextInputCalendarProps; /** Close calendar when date is selected, @default true */ closeOnCalendarSelectDate?: boolean; /** Valid date format, @default YYYY-MM-DD */ dateFormat?: string; /** Make the icon not clickable, @default false */ disableCalender?: boolean; /** Show or hide the calender icon, @default false */ hideCalenderIcon?: boolean; /** Placeholder for the input, @default YYYY-MM-DD */ placeholder?: string; /** The date text input theme to use. */ calendarTheme?: CalendarTheme; /** * Portal target for the popover, HTML element. If not set, window.body is used. */ portalTarget?: HTMLElement; zIndex?: number; } export declare const DateTextInput: React.FC>;