import { FC } from 'react'; import { InputProps } from '../Input'; import { PopoverProps } from '../Popover'; import { TimePickerOptionProps } from './components'; import { PopperProps } from '../../internal'; export interface TimePickerPropsStrict extends Omit, Pick { /** * If false, ignores `step` prop, so that user may fill in intermidiate values. * If true, user only allowed to choose options generated with `step` prop, * and user's input to be automatically rounded to the closest option. * Closest value to be highlighted in a dropdown. * Default is false. */ autoRounding?: boolean; /** Preferable signifier of a value to select on autocomplete when user left the control */ defaultTimeSignifier?: 'AM' | 'PM'; /** * Turns off TimePicker's ability to display a dropdown with options. * Default is false. */ disableDropdown?: boolean; /** * Specified in minutes, default is 30. Should not exceed 1440 (24 hours). * Step used to: * 1. hide intermediate values (these values are still possible to pick by typing) * from TimePicker's dropdown if `autoRounding` is false, or * 2. generate strict values for dropdown options if `autoRounding` is true. */ step?: number; /** * Time format. * Value of `hh:mm` stands for 24-hour format with leading zero. * Default value is `hh:mm xm`. */ format?: 'hh:mm xm' | 'hh:mm'; /** * Minimum time allowed. * String value must have `hh:mm xm` or `hh:mm` format, from 00:00 to 23:59. * Default is `12:00 AM`. */ min?: Date | string; /** * Maximum time allowed. * String value must have `hh:mm xm` or `hh:mm` format, from 00:00 to 23:59. * Default is `11:59 PM`. */ max?: Date | string; /** Called when the user changes the value */ onChange?: (value: TimePickerOptionProps['value']) => void; /** Show a dropdown on render, if `disableDropdown` is unset */ open?: boolean; /** Date object, unrestricted by min and max props */ value?: TimePickerOptionProps['value']; /** Props to be passed to the portaled div */ portalDataAttributes?: PopperProps['portalDataAttributes']; } export interface TimePickerProps extends TimePickerPropsStrict { /** Unstrict Props */ [propName: string]: any; } export declare const TimePicker: FC;