1 | import * as React from "react";
|
2 | import { type TimePickerProps } from "../../common";
|
3 | export interface TimePickerState {
|
4 | hourText?: string;
|
5 | minuteText?: string;
|
6 | secondText?: string;
|
7 | millisecondText?: string;
|
8 | value?: Date;
|
9 | isPm?: boolean;
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare class TimePicker extends React.Component<TimePickerProps, TimePickerState> {
|
17 | static defaultProps: TimePickerProps;
|
18 | static displayName: string;
|
19 | constructor(props?: TimePickerProps);
|
20 | private timeInputIds;
|
21 | render(): React.JSX.Element;
|
22 | componentDidUpdate(prevProps: TimePickerProps): void;
|
23 | private maybeRenderArrowButton;
|
24 | private renderDivider;
|
25 | private renderInput;
|
26 | private maybeRenderAmPm;
|
27 | private getInputChangeHandler;
|
28 | private getInputBlurHandler;
|
29 | private getInputFocusHandler;
|
30 | private getInputKeyDownHandler;
|
31 | private getInputKeyUpHandler;
|
32 | private handleAmPmChange;
|
33 | /**
|
34 | * Generates a full TimePickerState object with all text fields set to formatted strings based on value
|
35 | */
|
36 | private getFullStateFromValue;
|
37 | private incrementTime;
|
38 | private decrementTime;
|
39 | private shiftTime;
|
40 | private updateTime;
|
41 | private updateState;
|
42 | private getInitialValue;
|
43 | }
|