UNPKG

@activecollab/components

Version:

ActiveCollab Components

27 lines 1.19 kB
import { RefObject, MouseEvent } from "react"; export interface IInputHours { value?: string | number; withLeadingZero?: boolean; onSave?: (e: Event) => void; validation?: (...args: any[]) => boolean; allowEmptyValue?: boolean; onCancel?: (e: Event) => void; minuteIncrement?: number; incrementOnlySelected?: boolean; onEnterKeyPress?: (val: string) => void; onChange?: (val: string) => void; onClick?: (event: MouseEvent<HTMLInputElement>) => void; } export declare const useInputHours: ({ value, withLeadingZero, onSave, validation, allowEmptyValue, onCancel, minuteIncrement, incrementOnlySelected, onEnterKeyPress, onChange, onClick, }: IInputHours, inputRef: RefObject<HTMLInputElement | null>) => { inputProps: { value: string; onBlur: (e: any) => void; onKeyDown: (e: any) => void; onChange: (e: any) => void; onClick: (e: any) => void; onDoubleClick: () => void; }; setCurrentValue: import("react").Dispatch<import("react").SetStateAction<string>>; setPrevValue: import("react").Dispatch<import("react").SetStateAction<string>>; }; //# sourceMappingURL=useInputHours.d.ts.map