UNPKG

1.79 kBTypeScriptView Raw
1import * as React from 'react';
2import { ClockViewType } from '../../constants/ClockType';
3import { WithStyles, Theme } from '@material-ui/core/styles';
4export 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}
12export 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}
27export 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<{}>)>;
28declare 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">)>;
29export default _default;
30
\No newline at end of file