1 | import * as React from 'react';
|
2 | import { ClockViewType } from '../../constants/ClockType';
|
3 | import { WithStyles, Theme } from '@material-ui/core/styles';
|
4 | export interface ClockProps extends WithStyles<typeof styles> {
|
5 | type: ClockViewType;
|
6 | value: number;
|
7 | onChange: (value: number, isFinish?: boolean) => void;
|
8 | ampm?: boolean;
|
9 | minutesStep?: number;
|
10 | children: React.ReactElement<any>[];
|
11 | }
|
12 | export declare class Clock extends React.Component<ClockProps> {
|
13 | static propTypes: any;
|
14 | static defaultProps: {
|
15 | ampm: boolean;
|
16 | minutesStep: number;
|
17 | };
|
18 | isMoving: boolean;
|
19 | setTime(e: any, isFinish?: boolean): void;
|
20 | handleTouchMove: (e: React.TouchEvent<Element>) => void;
|
21 | handleTouchEnd: (e: React.TouchEvent<Element>) => void;
|
22 | handleMove: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
23 | handleMouseUp: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
24 | hasSelected: () => boolean;
|
25 | render(): JSX.Element;
|
26 | }
|
27 | export declare const styles: (theme: Theme) => Record<"container" | "clock" | "squareMask" | "pin", import("@material-ui/core/styles/withStyles").CSSProperties | import("@material-ui/core/styles/withStyles").CreateCSSProperties<{}> | ((props: {}) => import("@material-ui/core/styles/withStyles").CreateCSSProperties<{}>)>;
|
28 | declare const _default: React.ComponentType<(Pick<ClockProps, "children" | "value" | "onChange" | "type" | "ampm" | "minutesStep"> & import("@material-ui/core/styles").StyledComponentProps<"container" | "clock" | "squareMask" | "pin">) | (Pick<React.PropsWithChildren<ClockProps>, "children" | "value" | "onChange" | "type" | "ampm" | "minutesStep"> & import("@material-ui/core/styles").StyledComponentProps<"container" | "clock" | "squareMask" | "pin">)>;
|
29 | export default _default;
|
30 |
|
\ | No newline at end of file |