UNPKG

1.07 kBTypeScriptView Raw
1import React from 'react';
2export interface HandleProps {
3 prefixCls?: string;
4 className?: string;
5 vertical?: boolean;
6 reverse?: boolean;
7 offset?: number;
8 style?: React.CSSProperties;
9 disabled?: boolean;
10 min?: number;
11 max?: number;
12 value?: number;
13 tabIndex?: number;
14 ariaLabel?: string;
15 ariaLabelledBy?: string;
16 ariaValueTextFormatter?: (val: number) => string;
17 onMouseEnter?: React.MouseEventHandler;
18 onMouseLeave?: React.MouseEventHandler;
19}
20export default class Handle extends React.Component<HandleProps> {
21 state: {
22 clickFocused: boolean;
23 };
24 onMouseUpListener: {
25 remove: () => void;
26 };
27 handle: HTMLElement;
28 componentDidMount(): void;
29 componentWillUnmount(): void;
30 setHandleRef: (node: any) => void;
31 setClickFocus(focused: any): void;
32 handleMouseUp: () => void;
33 handleMouseDown: (e: any) => void;
34 handleBlur: () => void;
35 handleKeyDown: () => void;
36 clickFocus(): void;
37 focus(): void;
38 blur(): void;
39 render(): JSX.Element;
40}