@elliemae/ds-grid 2.0.0-rc.9 → 2.1.0-rc.0
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/cjs/Grid.js +2 -2
- package/esm/Grid.js +2 -2
- package/package.json +2 -2
- package/types/propTypes.d.ts +38 -38
- package/types/types.d.ts +21 -4
package/cjs/Grid.js
CHANGED
|
@@ -28,9 +28,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
28
28
|
|
|
29
29
|
const _excluded = ["rows", "cols", "alignItems", "children", "className", "justify", "gutter", "wrap"];
|
|
30
30
|
|
|
31
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
31
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32
32
|
|
|
33
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
33
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
34
34
|
const Grid = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => {
|
|
35
35
|
const {
|
|
36
36
|
rows,
|
package/esm/Grid.js
CHANGED
|
@@ -18,9 +18,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
18
18
|
|
|
19
19
|
const _excluded = ["rows", "cols", "alignItems", "children", "className", "justify", "gutter", "wrap"];
|
|
20
20
|
|
|
21
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
21
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22
22
|
|
|
23
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
23
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
24
|
const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
25
25
|
const {
|
|
26
26
|
rows,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-grid",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Grid",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"build": "node ../../scripts/build/build.js"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@elliemae/ds-system": "2.
|
|
63
|
+
"@elliemae/ds-system": "2.1.0-rc.0",
|
|
64
64
|
"react-desc": "~4.1.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
package/types/propTypes.d.ts
CHANGED
|
@@ -7,22 +7,22 @@ export declare const propTypes: {
|
|
|
7
7
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
8
8
|
};
|
|
9
9
|
span: {
|
|
10
|
-
defaultValue
|
|
10
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
11
11
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
12
|
};
|
|
13
|
-
isRequired: import("react-desc").
|
|
13
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
14
14
|
};
|
|
15
15
|
alignItems: {
|
|
16
|
-
defaultValue
|
|
16
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
17
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
18
|
};
|
|
19
|
-
isRequired: import("react-desc").
|
|
19
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
20
|
};
|
|
21
21
|
children: {
|
|
22
|
-
defaultValue
|
|
22
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
23
23
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
24
|
};
|
|
25
|
-
isRequired: import("react-desc").
|
|
25
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
26
26
|
};
|
|
27
27
|
className: {
|
|
28
28
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -37,99 +37,99 @@ export declare const propTypes: {
|
|
|
37
37
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
38
|
};
|
|
39
39
|
height: {
|
|
40
|
-
defaultValue
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
41
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
42
|
};
|
|
43
|
-
isRequired: import("react-desc").
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
44
|
};
|
|
45
45
|
width: {
|
|
46
|
-
defaultValue
|
|
46
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
47
47
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
48
48
|
};
|
|
49
|
-
isRequired: import("react-desc").
|
|
49
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
50
50
|
};
|
|
51
51
|
p: {
|
|
52
|
-
defaultValue
|
|
52
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
53
53
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
54
54
|
};
|
|
55
|
-
isRequired: import("react-desc").
|
|
55
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
56
56
|
};
|
|
57
57
|
m: {
|
|
58
|
-
defaultValue
|
|
58
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
59
59
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
60
|
};
|
|
61
|
-
isRequired: import("react-desc").
|
|
61
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
62
62
|
};
|
|
63
63
|
px: {
|
|
64
|
-
defaultValue
|
|
64
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
65
65
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
66
66
|
};
|
|
67
|
-
isRequired: import("react-desc").
|
|
67
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
68
68
|
};
|
|
69
69
|
mx: {
|
|
70
|
-
defaultValue
|
|
70
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
71
71
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
72
72
|
};
|
|
73
|
-
isRequired: import("react-desc").
|
|
73
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
74
74
|
};
|
|
75
75
|
py: {
|
|
76
|
-
defaultValue
|
|
76
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
77
77
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
78
78
|
};
|
|
79
|
-
isRequired: import("react-desc").
|
|
79
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
80
80
|
};
|
|
81
81
|
my: {
|
|
82
|
-
defaultValue
|
|
82
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
83
83
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
84
84
|
};
|
|
85
|
-
isRequired: import("react-desc").
|
|
85
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
86
86
|
};
|
|
87
87
|
ml: {
|
|
88
|
-
defaultValue
|
|
88
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
89
89
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
90
90
|
};
|
|
91
|
-
isRequired: import("react-desc").
|
|
91
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
92
92
|
};
|
|
93
93
|
mr: {
|
|
94
|
-
defaultValue
|
|
94
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
95
95
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
96
96
|
};
|
|
97
|
-
isRequired: import("react-desc").
|
|
97
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
98
98
|
};
|
|
99
99
|
mt: {
|
|
100
|
-
defaultValue
|
|
100
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
101
101
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
102
102
|
};
|
|
103
|
-
isRequired: import("react-desc").
|
|
103
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
104
104
|
};
|
|
105
105
|
mb: {
|
|
106
|
-
defaultValue
|
|
106
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
107
107
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
108
108
|
};
|
|
109
|
-
isRequired: import("react-desc").
|
|
109
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
110
110
|
};
|
|
111
111
|
pl: {
|
|
112
|
-
defaultValue
|
|
112
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
113
113
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
114
114
|
};
|
|
115
|
-
isRequired: import("react-desc").
|
|
115
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
116
116
|
};
|
|
117
117
|
pr: {
|
|
118
|
-
defaultValue
|
|
118
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
119
119
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
120
120
|
};
|
|
121
|
-
isRequired: import("react-desc").
|
|
121
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
122
122
|
};
|
|
123
123
|
pt: {
|
|
124
|
-
defaultValue
|
|
124
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
125
125
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
126
126
|
};
|
|
127
|
-
isRequired: import("react-desc").
|
|
127
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
128
128
|
};
|
|
129
129
|
pb: {
|
|
130
|
-
defaultValue
|
|
130
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
131
131
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
132
132
|
};
|
|
133
|
-
isRequired: import("react-desc").
|
|
133
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
134
134
|
};
|
|
135
135
|
};
|
package/types/types.d.ts
CHANGED
|
@@ -11,21 +11,38 @@ interface SpanBreakpoints {
|
|
|
11
11
|
large?: number;
|
|
12
12
|
}
|
|
13
13
|
export interface GridPropsT {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
height?: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
rows?: string[] | string | number[] | RowColBreakpoints;
|
|
17
|
+
cols?: string[] | string | number[] | RowColBreakpoints;
|
|
18
|
+
justifyContent?: typeof justifyPlacement[number];
|
|
16
19
|
alignItems?: typeof alignItemsPlacement[number];
|
|
17
|
-
children?: React.
|
|
20
|
+
children?: React.ReactNode;
|
|
18
21
|
className?: string;
|
|
19
22
|
justify?: typeof justifyPlacement[number];
|
|
20
23
|
gutter?: string | number;
|
|
21
24
|
wrap?: typeof wrap[number];
|
|
22
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;
|
|
23
40
|
}
|
|
24
41
|
export interface GridPropsWithDefaultT {
|
|
25
42
|
rows: string | number[] | RowColBreakpoints;
|
|
26
43
|
cols: string | number[] | RowColBreakpoints;
|
|
27
44
|
alignItems: typeof alignItemsPlacement[number];
|
|
28
|
-
children?: React.
|
|
45
|
+
children?: React.ReactNode;
|
|
29
46
|
className: string;
|
|
30
47
|
justify: typeof justifyPlacement[number];
|
|
31
48
|
gutter: string | number;
|