forked from LoicMahieu/react-styled-flexboxgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
92 lines (84 loc) · 1.96 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
declare module "react-styled-flexboxgrid" {
import { StyledComponentClass } from "styled-components";
namespace ReactStyledFlexboxgrid {
interface ITheme {
/**
* rem
*/
gridSize?: number;
/**
* rem
*/
gutterWidth?: number;
/**
* rem
*/
outerMargin?: number;
mediaQuery?: string;
container?: {
/**
* rem
*/
sm?: number;
/**
* rem
*/
md?: number;
/**
* rem
*/
lg?: number;
};
breakpoints?: {
/**
* em
*/
xs?: number;
/**
* em
*/
sm?: number;
/**
* em
*/
md?: number;
/**
* em
*/
lg?: number;
};
}
interface IGridProps {
fluid?: boolean;
}
interface IRowProps {
reverse?: boolean;
start?: "xs" | "sm" | "md" | "lg";
center?: "xs" | "sm" | "md" | "lg";
end?: "xs" | "sm" | "md" | "lg";
top?: "xs" | "sm" | "md" | "lg";
middle?: "xs" | "sm" | "md" | "lg";
bottom?: "xs" | "sm" | "md" | "lg";
around?: "xs" | "sm" | "md" | "lg";
between?: "xs" | "sm" | "md" | "lg";
first?: "xs" | "sm" | "md" | "lg";
last?: "xs" | "sm" | "md" | "lg";
children?: React.ReactNode;
}
interface IColProps {
reverse?: boolean;
xs?: boolean | number;
sm?: boolean | number;
md?: boolean | number;
lg?: boolean | number;
xsOffset?: number;
smOffset?: number;
mdOffset?: number;
lgOffset?: number;
}
}
export type ITheme = ReactStyledFlexboxgrid.ITheme;
export const Grid: StyledComponentClass<ReactStyledFlexboxgrid.IGridProps, "div">;
export const Row: StyledComponentClass<ReactStyledFlexboxgrid.IRowProps, "div">;
export const Col: StyledComponentClass<ReactStyledFlexboxgrid.IColProps, "div">;
}