-
Notifications
You must be signed in to change notification settings - Fork 68
/
index.d.ts
99 lines (92 loc) · 2.24 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
97
98
99
declare module "react-styled-flexboxgrid" {
import { StyledComponent, DefaultTheme, ThemedCssFunction } 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: StyledComponent<"div", any, ReactStyledFlexboxgrid.IGridProps, never>;
export const Row: StyledComponent<"div", any, ReactStyledFlexboxgrid.IRowProps, never>;
export const Col: StyledComponent<"div", any, ReactStyledFlexboxgrid.IColProps, never>;
export const config: (props: any) => {
media: {
xs: ThemedCssFunction<DefaultTheme>;
sm: ThemedCssFunction<DefaultTheme>;
md: ThemedCssFunction<DefaultTheme>;
lg: ThemedCssFunction<DefaultTheme>;
};
};
}