@dhis2-ui/box 9.12.0-alpha.4 → 9.13.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/build/cjs/box.js +1 -4
- package/build/es/box.js +1 -4
- package/package.json +6 -6
package/build/cjs/box.js
CHANGED
|
@@ -19,7 +19,7 @@ const Box = _ref => {
|
|
|
19
19
|
maxWidth,
|
|
20
20
|
marginTop,
|
|
21
21
|
children,
|
|
22
|
-
dataTest,
|
|
22
|
+
dataTest = 'dhis2-uicore-box',
|
|
23
23
|
className
|
|
24
24
|
} = _ref;
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -31,9 +31,6 @@ const Box = _ref => {
|
|
|
31
31
|
}, [`div.__jsx-style-dynamic-selector{${marginTop ? `margin-top: ${marginTop};` : ''} ${height ? `height: ${height};` : ''} ${minHeight ? `min-height: ${minHeight};` : ''} ${maxHeight ? `max-height: ${maxHeight};` : ''} ${width ? `width: ${width};` : ''} ${minWidth ? `min-width: ${minWidth};` : ''} ${maxWidth ? `max-width: ${maxWidth};` : ''} ${overflow ? `overflow: ${overflow};` : ''};}`]));
|
|
32
32
|
};
|
|
33
33
|
exports.Box = Box;
|
|
34
|
-
Box.defaultProps = {
|
|
35
|
-
dataTest: 'dhis2-uicore-box'
|
|
36
|
-
};
|
|
37
34
|
Box.propTypes = {
|
|
38
35
|
children: _propTypes.default.node,
|
|
39
36
|
className: _propTypes.default.string,
|
package/build/es/box.js
CHANGED
|
@@ -12,7 +12,7 @@ export const Box = _ref => {
|
|
|
12
12
|
maxWidth,
|
|
13
13
|
marginTop,
|
|
14
14
|
children,
|
|
15
|
-
dataTest,
|
|
15
|
+
dataTest = 'dhis2-uicore-box',
|
|
16
16
|
className
|
|
17
17
|
} = _ref;
|
|
18
18
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -23,9 +23,6 @@ export const Box = _ref => {
|
|
|
23
23
|
dynamic: [marginTop ? `margin-top: ${marginTop};` : '', height ? `height: ${height};` : '', minHeight ? `min-height: ${minHeight};` : '', maxHeight ? `max-height: ${maxHeight};` : '', width ? `width: ${width};` : '', minWidth ? `min-width: ${minWidth};` : '', maxWidth ? `max-width: ${maxWidth};` : '', overflow ? `overflow: ${overflow};` : '']
|
|
24
24
|
}, [`div.__jsx-style-dynamic-selector{${marginTop ? `margin-top: ${marginTop};` : ''} ${height ? `height: ${height};` : ''} ${minHeight ? `min-height: ${minHeight};` : ''} ${maxHeight ? `max-height: ${maxHeight};` : ''} ${width ? `width: ${width};` : ''} ${minWidth ? `min-width: ${minWidth};` : ''} ${maxWidth ? `max-width: ${maxWidth};` : ''} ${overflow ? `overflow: ${overflow};` : ''};}`]));
|
|
25
25
|
};
|
|
26
|
-
Box.defaultProps = {
|
|
27
|
-
dataTest: 'dhis2-uicore-box'
|
|
28
|
-
};
|
|
29
26
|
Box.propTypes = {
|
|
30
27
|
children: PropTypes.node,
|
|
31
28
|
className: PropTypes.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/box",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.13.0",
|
|
4
4
|
"description": "UI Box",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"react": "^16.13",
|
|
31
|
-
"react-dom": "^16.13",
|
|
30
|
+
"react": "^16.13 || ^18",
|
|
31
|
+
"react-dom": "^16.13 || ^18",
|
|
32
32
|
"styled-jsx": "^4"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2/ui-constants": "9.
|
|
36
|
+
"@dhis2/ui-constants": "9.13.0",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2"
|
|
39
39
|
},
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"types"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"react": "
|
|
46
|
-
"react-dom": "
|
|
45
|
+
"react": "^18.3.1",
|
|
46
|
+
"react-dom": "^18.3.1",
|
|
47
47
|
"styled-jsx": "^4.0.1"
|
|
48
48
|
},
|
|
49
49
|
"types": "types"
|