forked from sealninja/react-grid-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
96 lines (89 loc) · 2.13 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
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
declare module 'react-grid-system' {
import * as React from 'react';
enum Align {
Normal = "normal",
Start = "start",
Center = "center",
End = "end"
}
type Offsets = {
xs?: number,
sm?: number,
md?: number,
lg?: number,
xl?: number
}
type Push = {
xs?: boolean,
sm?: boolean,
md?: boolean,
lg?: boolean,
xl?: boolean
}
type Pull = {
xs?: boolean,
sm?: boolean,
md?: boolean,
lg?: boolean,
xl?: boolean
}
type ColProps = {
debug?: boolean,
align?: Align
xs?: number,
sm?: number,
md?: number,
lg?: number,
xl?: number,
offset?: Offsets,
push?: Push,
pull?: Pull,
style?: object
}
type ContainerProps = {
xs?: boolean,
sm?: boolean,
md?: boolean,
lg?: boolean,
xl?: boolean
fluid?: boolean,
style?: object
}
type RowProps = {
align?: Align,
debug?: boolean,
style?: object,
nogutter?: boolean
}
type ClearFixProps = {
xs?: boolean,
sm?: boolean,
md?: boolean,
lg?: boolean,
xl?: boolean
}
type HiddenProps = {
xs?: boolean,
sm?: boolean,
md?: boolean,
lg?: boolean,
xl?: boolean
}
type ScreenClassRenderProps = {
render?: Function
}
type VisibleProps = {
xs?: boolean,
sm?: boolean,
md?: boolean,
lg?: boolean,
xl?: boolean
}
export class Col extends React.Component<ColProps, any> {}
export class Container extends React.Component<ContainerProps, any> {}
export class Row extends React.Component<RowProps, any> {}
export class ClearFix extends React.Component<ClearFixProps, any> {}
export class Hidden extends React.Component<HiddenProps, any> {}
export class ScreenClassRender extends React.Component<ScreenClassRenderProps, any> {}
export class Visible extends React.Component<VisibleProps, any> {}
}