import type { Ref } from "react"; import type { FormFieldProps } from "../FormField"; import type { FocusEvents, HTMLInputBaseProps, KeyboardEvents, MouseEvents, RebuiltInputCommonProps } from "../sharedHelpers/types"; export interface InputTimeProps extends Omit, FocusEvents, KeyboardEvents, MouseEvents, Omit, Pick { /** * Maximum numerical or date value. */ readonly max?: number; /** * Minimum numerical or date value. */ readonly min?: number; /** * Granularity of the time input, in seconds. Matches the native HTML `step` * attribute. Defaults to `60` so the input displays only hours and minutes; * set to a value less than `60` (e.g. `1`) to display seconds. * * @default 60 */ readonly step?: number; readonly inputRef?: Ref; /** * @deprecated Use `onKeyDown` or `onKeyUp` instead. */ readonly onEnter?: FormFieldProps["onEnter"]; /** * Set the component to the given value. */ readonly value?: Date; /** * Function called when user changes input value. */ onChange?(newValue?: Date): void; }