forked from leefsmp/Re-Flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
58 lines (47 loc) · 1.73 KB
/
index.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
import * as React from "react";
export type StyleAndClassAndChildren = {
className?: string;
style?: React.CSSProperties;
children?: React.ReactNode;
};
export type ReflexContainerProps = {
orientation?: "horizontal" | "vertical";
maxRecDepth?: number;
windowResizeAware?: boolean;
} & StyleAndClassAndChildren;
export class ReflexContainer extends React.Component<ReflexContainerProps, any> { }
export type PosNeg = -1 | 1;
export type HandlerProps = {
domElement: Element | Text,
component: React.ComponentElement<ReflexElementProps, ReflexElement>
};
export type ReflexElementProps = {
propagateDimensions?: boolean;
propagateDimensionsRate?: number;
resizeHeight?: boolean;
resizeWidth?: boolean;
size?: number;
minSize?: number;
maxSize?: number;
flex?: number;
direction?: PosNeg | [PosNeg, PosNeg];
onStartResize?: (args: HandlerProps) => void;
onStopResize?: (args: HandlerProps) => void;
onResize?: (args: HandlerProps) => void;
name?: string;
} & StyleAndClassAndChildren;
export class ReflexElement extends React.Component<ReflexElementProps, any> { }
export type ReflexSplitterProps = {
propagate?: boolean;
onStartResize?: (args: HandlerProps) => void;
onStopResize?: (args: HandlerProps) => void;
onResize?: (args: HandlerProps) => void;
} & StyleAndClassAndChildren;
export class ReflexSplitter extends React.Component<ReflexSplitterProps, any> { }
export type ReflexHandleProps = {
onStartResize?: (args: HandlerProps) => void;
onStopResize?: (args: HandlerProps) => void;
propagate?: boolean;
onResize?: (args: HandlerProps) => void;
} & StyleAndClassAndChildren;
export class ReflexHandle extends React.Component<any, any> { }