forked from jradtilbrook/he-react-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.d.ts
98 lines (93 loc) · 2.3 KB
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
declare module '*.scss' {
interface IClassNames {
[className: string]: string;
}
const classNames: IClassNames;
export = classNames;
}
declare module 'react-cosmos-test/enzyme' {
const createTestContext: (
fixture: any,
) => {
mount: () => void;
unmount: () => void;
getWrapper: () => any;
};
export = createTestContext;
}
declare module 'react-tippy' {
export type Position =
| 'top'
| 'top-start'
| 'top-end'
| 'bottom'
| 'bottom-start'
| 'bottom-end'
| 'left'
| 'left-start'
| 'left-end'
| 'right'
| 'right-start'
| 'right-end';
export type Trigger = 'mouseenter' | 'focus' | 'click' | 'manual';
export type Animation = 'shift' | 'perspective' | 'fade scale' | 'none';
export type Size = 'small' | 'regular' | 'big';
export type Theme = 'dark' | 'light' | 'transparent';
export interface TooltipProps {
title?: string;
disabled?: boolean;
open?: boolean;
useContext?: boolean;
onRequestClose?: () => void;
position?: Position;
trigger?: Trigger;
tabIndex?: number;
interactive?: boolean;
interactiveBorder?: number;
delay?: number;
hideDelay?: number;
animation?: Animation;
arrow?: boolean;
arrowSize?: Size;
animateFill?: boolean;
duration?: number;
hideDuration?: number;
distance?: number;
offset?: number;
hideOnClick?: boolean | 'persistent';
multiple?: boolean;
followCursor?: boolean;
inertia?: boolean;
transitionFlip?: boolean;
popperOptions?: any;
html?: React.ReactElement<any>;
unmountHTMLWhenHide?: boolean;
size?: Size;
sticky?: boolean;
stickyDuration?: boolean;
beforeShown?: () => void;
shown?: () => void;
beforeHidden?: () => void;
hidden?: () => void;
theme?: Theme;
className?: string;
style?: React.CSSProperties;
}
export class Tooltip extends React.Component<TooltipProps> {}
}
declare module 'react-media' {
const main: React.ComponentType<{ query: { maxWidth?: number } }>;
export = main;
}
declare module 'react-cosmos-router-proxy' {
const create: () => void;
export = create;
}
declare module 'enzyme-react-adapter-future' {
class Adapter {}
export = Adapter;
}
declare module 'is-url-external' {
const main: (it: string) => boolean;
export = main;
}