@elliemae/ds-grid 2.1.0-rc.0 → 2.1.0-rc.1
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 +7 -3
- package/cjs/GridItem.js +2 -2
- package/esm/Grid.js +7 -3
- package/esm/GridItem.js +2 -2
- package/package.json +3 -2
package/cjs/Grid.js
CHANGED
|
@@ -26,7 +26,7 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
|
|
|
26
26
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
27
27
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
28
28
|
|
|
29
|
-
const _excluded = ["rows", "cols", "alignItems", "children", "className", "justify", "gutter", "wrap"];
|
|
29
|
+
const _excluded = ["rows", "cols", "alignItems", "children", "className", "justify", "gutter", "wrap", "width", "height"];
|
|
30
30
|
|
|
31
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
|
|
|
@@ -40,7 +40,9 @@ const Grid = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => {
|
|
|
40
40
|
className,
|
|
41
41
|
justify,
|
|
42
42
|
gutter,
|
|
43
|
-
wrap
|
|
43
|
+
wrap,
|
|
44
|
+
width,
|
|
45
|
+
height
|
|
44
46
|
} = props,
|
|
45
47
|
rest = _objectWithoutProperties__default["default"](props, _excluded);
|
|
46
48
|
|
|
@@ -71,7 +73,9 @@ const Grid = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => {
|
|
|
71
73
|
rows: rows,
|
|
72
74
|
wrap: wrap,
|
|
73
75
|
childNumber: React__default["default"].Children.count(children),
|
|
74
|
-
ref: ref
|
|
76
|
+
ref: ref,
|
|
77
|
+
w: width,
|
|
78
|
+
h: height
|
|
75
79
|
}, rest), {}, {
|
|
76
80
|
children: renderChildren
|
|
77
81
|
}));
|
package/cjs/GridItem.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var styled = require('styled-components');
|
|
6
|
-
var
|
|
6
|
+
var styledComponents = require('@xstyled/styled-components');
|
|
7
7
|
var dsSystem = require('@elliemae/ds-system');
|
|
8
8
|
var styles = require('./utils/styles.js');
|
|
9
9
|
|
|
@@ -24,6 +24,6 @@ const GridItem = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
|
24
24
|
gutter
|
|
25
25
|
} = _ref2;
|
|
26
26
|
return dsSystem.mapGap(gutter);
|
|
27
|
-
},
|
|
27
|
+
}, styledComponents.grids, styledComponents.flexboxes, styledComponents.sizing, styledComponents.space, styledComponents.height, styledComponents.width, styles.manageCols, styles.manageRows, styles.manageSpan);
|
|
28
28
|
|
|
29
29
|
exports.GridItem = GridItem;
|
package/esm/Grid.js
CHANGED
|
@@ -16,7 +16,7 @@ import { GridItem } from './GridItem.js';
|
|
|
16
16
|
import { defaultProps } from './defaultProps.js';
|
|
17
17
|
import { jsx } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
|
-
const _excluded = ["rows", "cols", "alignItems", "children", "className", "justify", "gutter", "wrap"];
|
|
19
|
+
const _excluded = ["rows", "cols", "alignItems", "children", "className", "justify", "gutter", "wrap", "width", "height"];
|
|
20
20
|
|
|
21
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
|
|
|
@@ -30,7 +30,9 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
30
30
|
className,
|
|
31
31
|
justify,
|
|
32
32
|
gutter,
|
|
33
|
-
wrap
|
|
33
|
+
wrap,
|
|
34
|
+
width,
|
|
35
|
+
height
|
|
34
36
|
} = props,
|
|
35
37
|
rest = _objectWithoutProperties(props, _excluded);
|
|
36
38
|
|
|
@@ -61,7 +63,9 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
61
63
|
rows: rows,
|
|
62
64
|
wrap: wrap,
|
|
63
65
|
childNumber: React.Children.count(children),
|
|
64
|
-
ref: ref
|
|
66
|
+
ref: ref,
|
|
67
|
+
w: width,
|
|
68
|
+
h: height
|
|
65
69
|
}, rest), {}, {
|
|
66
70
|
children: renderChildren
|
|
67
71
|
}));
|
package/esm/GridItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
2
|
+
import { grids, flexboxes, sizing, space, height, width } from '@xstyled/styled-components';
|
|
3
3
|
import { mapGap } from '@elliemae/ds-system';
|
|
4
4
|
import { manageCols, manageRows, manageSpan } from './utils/styles.js';
|
|
5
5
|
|
|
@@ -16,6 +16,6 @@ const GridItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
16
16
|
gutter
|
|
17
17
|
} = _ref2;
|
|
18
18
|
return mapGap(gutter);
|
|
19
|
-
},
|
|
19
|
+
}, grids, flexboxes, sizing, space, height, width, manageCols, manageRows, manageSpan);
|
|
20
20
|
|
|
21
21
|
export { GridItem };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-grid",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Grid",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
"build": "node ../../scripts/build/build.js"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@elliemae/ds-system": "2.1.0-rc.
|
|
63
|
+
"@elliemae/ds-system": "2.1.0-rc.1",
|
|
64
|
+
"@xstyled/styled-components": "~3.1.1",
|
|
64
65
|
"react-desc": "~4.1.3"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|