@elliemae/ds-grid 2.3.0-alpha.8 → 2.3.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/Grid.d.ts +11 -0
- package/dist/types/GridItem.d.ts +2 -0
- package/dist/types/defaultProps.d.ts +9 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/propTypes.d.ts +135 -0
- package/dist/types/tests/DSGrid.events.test.d.ts +1 -0
- package/dist/types/types.d.ts +66 -0
- package/dist/types/utils/constants.d.ts +3 -0
- package/dist/types/utils/styles.d.ts +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { GridPropsT } from './types';
|
|
4
|
+
declare const Grid: React.ForwardRefExoticComponent<GridPropsT & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const DSGridWithSchema: {
|
|
6
|
+
(props?: unknown): JSX.Element;
|
|
7
|
+
propTypes: unknown;
|
|
8
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
9
|
+
};
|
|
10
|
+
export default Grid;
|
|
11
|
+
export { DSGridWithSchema, Grid };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, Grid, default as GridContainer, default as GridItem, DSGridWithSchema } from './Grid';
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
rows: {
|
|
4
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
5
|
+
};
|
|
6
|
+
cols: {
|
|
7
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
};
|
|
9
|
+
span: {
|
|
10
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
11
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
|
+
};
|
|
13
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
14
|
+
};
|
|
15
|
+
alignItems: {
|
|
16
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
|
+
};
|
|
21
|
+
children: {
|
|
22
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
23
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
26
|
+
};
|
|
27
|
+
className: {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
justifyContent: {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
gutter: {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
wrap: {
|
|
37
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
height: {
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
|
+
};
|
|
45
|
+
width: {
|
|
46
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
47
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
49
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
50
|
+
};
|
|
51
|
+
p: {
|
|
52
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
53
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
55
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
56
|
+
};
|
|
57
|
+
m: {
|
|
58
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
59
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
62
|
+
};
|
|
63
|
+
px: {
|
|
64
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
65
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
66
|
+
};
|
|
67
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
68
|
+
};
|
|
69
|
+
mx: {
|
|
70
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
71
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
73
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
74
|
+
};
|
|
75
|
+
py: {
|
|
76
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
77
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
78
|
+
};
|
|
79
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
80
|
+
};
|
|
81
|
+
my: {
|
|
82
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
83
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
84
|
+
};
|
|
85
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
86
|
+
};
|
|
87
|
+
ml: {
|
|
88
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
89
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
90
|
+
};
|
|
91
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
92
|
+
};
|
|
93
|
+
mr: {
|
|
94
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
95
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
96
|
+
};
|
|
97
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
98
|
+
};
|
|
99
|
+
mt: {
|
|
100
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
101
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
102
|
+
};
|
|
103
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
104
|
+
};
|
|
105
|
+
mb: {
|
|
106
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
107
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
108
|
+
};
|
|
109
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
110
|
+
};
|
|
111
|
+
pl: {
|
|
112
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
113
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
114
|
+
};
|
|
115
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
116
|
+
};
|
|
117
|
+
pr: {
|
|
118
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
119
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
120
|
+
};
|
|
121
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
122
|
+
};
|
|
123
|
+
pt: {
|
|
124
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
125
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
126
|
+
};
|
|
127
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
128
|
+
};
|
|
129
|
+
pb: {
|
|
130
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
131
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
132
|
+
};
|
|
133
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { alignItemsPlacement, justifyPlacement, wrap } from './utils/constants';
|
|
3
|
+
interface RowColBreakpoints {
|
|
4
|
+
small?: string | number[];
|
|
5
|
+
medium?: string | number[];
|
|
6
|
+
large?: string | number[];
|
|
7
|
+
}
|
|
8
|
+
interface SpanBreakpoints {
|
|
9
|
+
small?: number;
|
|
10
|
+
medium?: number;
|
|
11
|
+
large?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface GridPropsT {
|
|
14
|
+
height?: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
rows?: string[] | string | number[] | RowColBreakpoints;
|
|
17
|
+
cols?: string[] | string | number[] | RowColBreakpoints;
|
|
18
|
+
justifyContent?: typeof justifyPlacement[number];
|
|
19
|
+
alignItems?: typeof alignItemsPlacement[number];
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
justify?: typeof justifyPlacement[number];
|
|
23
|
+
gutter?: string | number;
|
|
24
|
+
wrap?: typeof wrap[number];
|
|
25
|
+
span?: number;
|
|
26
|
+
p?: string | number;
|
|
27
|
+
m?: string | number;
|
|
28
|
+
px?: string | number;
|
|
29
|
+
mx?: string | number;
|
|
30
|
+
py?: string | number;
|
|
31
|
+
my?: string | number;
|
|
32
|
+
ml?: string | number;
|
|
33
|
+
mr?: string | number;
|
|
34
|
+
mt?: string | number;
|
|
35
|
+
mb?: string | number;
|
|
36
|
+
pl?: string | number;
|
|
37
|
+
pr?: string | number;
|
|
38
|
+
pt?: string | number;
|
|
39
|
+
pb?: string | number;
|
|
40
|
+
}
|
|
41
|
+
export interface GridPropsWithDefaultT {
|
|
42
|
+
rows: string | number[] | RowColBreakpoints;
|
|
43
|
+
cols: string | number[] | RowColBreakpoints;
|
|
44
|
+
alignItems: typeof alignItemsPlacement[number];
|
|
45
|
+
children?: React.ReactNode;
|
|
46
|
+
className: string;
|
|
47
|
+
justify: typeof justifyPlacement[number];
|
|
48
|
+
gutter: string | number;
|
|
49
|
+
wrap: typeof wrap[number];
|
|
50
|
+
span: number | SpanBreakpoints;
|
|
51
|
+
}
|
|
52
|
+
export interface GridItemPropsT {
|
|
53
|
+
rows: string | number[] | RowColBreakpoints;
|
|
54
|
+
cols: string | number[] | RowColBreakpoints;
|
|
55
|
+
alignItems: typeof alignItemsPlacement[number];
|
|
56
|
+
children: React.ReactElement[];
|
|
57
|
+
className: string;
|
|
58
|
+
justify: typeof justifyPlacement[number];
|
|
59
|
+
gutter: string | number;
|
|
60
|
+
wrap: typeof wrap[number];
|
|
61
|
+
childNumber: number;
|
|
62
|
+
isSpanParent: boolean;
|
|
63
|
+
span?: number | SpanBreakpoints;
|
|
64
|
+
ref: React.ForwardedRef<HTMLDivElement>;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const justifyPlacement: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
|
|
2
|
+
export declare const alignItemsPlacement: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
|
|
3
|
+
export declare const wrap: readonly ["wrap", "nowrap", "wrap-reverse"];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const manageSpan: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
2
|
+
export declare const manageCols: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
3
|
+
export declare const manageRows: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-grid",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Grid",
|
|
6
6
|
"files": [
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"author": "ICE MT",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@elliemae/ds-system": "2.3.0-alpha.
|
|
60
|
+
"@elliemae/ds-system": "2.3.0-alpha.9",
|
|
61
61
|
"@xstyled/styled-components": "~3.1.2",
|
|
62
62
|
"react-desc": "~4.1.3"
|
|
63
63
|
},
|