UNPKG

@innovaccer/design-system

Version:

React components library project for Innovaccer Design System

27 lines (26 loc) 918 B
import * as React from 'react'; import { InputMaskProps } from "../../../index.type"; import { Validators } from "../../../utils/types"; export declare type AMPMType = 'AM' | 'PM'; export declare type InputFormat = 'hh:mm AM' | 'hh:mm'; export declare type TimeType = number | string; export interface TimePickerInputProps { time?: TimeType; inputOptions: Omit<InputMaskProps, 'mask' | 'value' | 'validators'>; inputFormat: InputFormat; outputFormat: InputFormat; validators: Validators; onTimeChange?: (timeVal?: string) => void; error?: boolean; } export declare const TimePickerWithInput: { (props: TimePickerInputProps): React.JSX.Element; defaultProps: { inputFormat: string; outputFormat: string; inputOptions: {}; validators: ((val: string, format: string) => boolean)[]; }; displayName: string; }; export default TimePickerWithInput;