UNPKG

1.45 kBTypeScriptView Raw
1import * as React from 'react';
2import { WithUtilsProps } from '../../_shared/WithUtils';
3import { ClockTypeType } from '../../constants/ClockType';
4import { MaterialUiPickersDate } from '../../typings/date';
5export interface TimePickerViewProps extends WithUtilsProps {
6 date: MaterialUiPickersDate;
7 type: ClockTypeType;
8 ampm?: boolean;
9 minutesStep?: number;
10 onHourChange: (date: MaterialUiPickersDate, isFinish?: boolean) => void;
11 onMinutesChange: (date: MaterialUiPickersDate, isFinish?: boolean) => void;
12 onSecondsChange: (date: MaterialUiPickersDate, isFinish?: boolean) => void;
13}
14export declare class TimePickerView extends React.PureComponent<TimePickerViewProps> {
15 static propTypes: any;
16 static defaultProps: {
17 ampm: boolean;
18 minutesStep: number;
19 };
20 getViewProps: () => {
21 value: number;
22 children: JSX.Element[];
23 onChange: (hours: number, isFinish?: boolean | undefined) => void;
24 };
25 handleHourChange: (hours: number, isFinish?: boolean | undefined) => void;
26 handleMinutesChange: (minutes: number, isFinish?: boolean | undefined) => void;
27 handleSecondsChange: (seconds: number, isFinish?: boolean | undefined) => void;
28 render(): JSX.Element;
29}
30declare const _default: React.FunctionComponent<Pick<TimePickerViewProps, "ampm" | "date" | "type" | "minutesStep" | "onHourChange" | "onMinutesChange" | "onSecondsChange">>;
31export default _default;