@dhis2-ui/center 10.0.0-alpha.5 → 10.0.0-alpha.7
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/build/cjs/center.js +2 -6
- package/build/es/center.js +2 -6
- package/package.json +2 -2
package/build/cjs/center.js
CHANGED
|
@@ -14,9 +14,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
14
14
|
const Center = exports.Center = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
15
15
|
let {
|
|
16
16
|
className,
|
|
17
|
-
dataTest,
|
|
17
|
+
dataTest = 'dhis2-uicore-centeredcontent',
|
|
18
18
|
children,
|
|
19
|
-
position
|
|
19
|
+
position = 'middle'
|
|
20
20
|
} = _ref;
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
22
|
"data-test": dataTest,
|
|
@@ -29,10 +29,6 @@ const Center = exports.Center = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref)
|
|
|
29
29
|
}, [".center.jsx-498096601{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;pointer-events:none;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".center.top.jsx-498096601{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}", ".center.bottom.jsx-498096601{-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}", ".center-inner-content.jsx-498096601{pointer-events:all;}"]));
|
|
30
30
|
});
|
|
31
31
|
Center.displayName = 'Center';
|
|
32
|
-
Center.defaultProps = {
|
|
33
|
-
dataTest: 'dhis2-uicore-centeredcontent',
|
|
34
|
-
position: 'middle'
|
|
35
|
-
};
|
|
36
32
|
Center.propTypes = {
|
|
37
33
|
children: _propTypes.default.node,
|
|
38
34
|
className: _propTypes.default.string,
|
package/build/es/center.js
CHANGED
|
@@ -5,9 +5,9 @@ import React, { forwardRef } from 'react';
|
|
|
5
5
|
export const Center = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6
6
|
let {
|
|
7
7
|
className,
|
|
8
|
-
dataTest,
|
|
8
|
+
dataTest = 'dhis2-uicore-centeredcontent',
|
|
9
9
|
children,
|
|
10
|
-
position
|
|
10
|
+
position = 'middle'
|
|
11
11
|
} = _ref;
|
|
12
12
|
return /*#__PURE__*/React.createElement("div", {
|
|
13
13
|
"data-test": dataTest,
|
|
@@ -20,10 +20,6 @@ export const Center = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
20
20
|
}, [".center.jsx-498096601{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;pointer-events:none;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".center.top.jsx-498096601{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}", ".center.bottom.jsx-498096601{-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}", ".center-inner-content.jsx-498096601{pointer-events:all;}"]));
|
|
21
21
|
});
|
|
22
22
|
Center.displayName = 'Center';
|
|
23
|
-
Center.defaultProps = {
|
|
24
|
-
dataTest: 'dhis2-uicore-centeredcontent',
|
|
25
|
-
position: 'middle'
|
|
26
|
-
};
|
|
27
23
|
Center.propTypes = {
|
|
28
24
|
children: PropTypes.node,
|
|
29
25
|
className: PropTypes.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/center",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.7",
|
|
4
4
|
"description": "UI Center",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2/ui-constants": "10.0.0-alpha.
|
|
36
|
+
"@dhis2/ui-constants": "10.0.0-alpha.7",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2"
|
|
39
39
|
},
|