@dhis2-ui/node 10.0.0-alpha.6 → 10.0.0-alpha.8
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/node.js +1 -4
- package/build/es/node.js +1 -4
- package/package.json +7 -7
package/build/cjs/node.js
CHANGED
|
@@ -21,7 +21,7 @@ const Node = _ref => {
|
|
|
21
21
|
icon,
|
|
22
22
|
onOpen,
|
|
23
23
|
onClose,
|
|
24
|
-
dataTest
|
|
24
|
+
dataTest = 'dhis2-uicore-node'
|
|
25
25
|
} = _ref;
|
|
26
26
|
const hasLeaves = !!_react.default.Children.toArray(children).filter(i => i).length;
|
|
27
27
|
const showArrow = !icon && hasLeaves;
|
|
@@ -51,9 +51,6 @@ const Node = _ref => {
|
|
|
51
51
|
}, [".node.jsx-1433072554{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}"]));
|
|
52
52
|
};
|
|
53
53
|
exports.Node = Node;
|
|
54
|
-
Node.defaultProps = {
|
|
55
|
-
dataTest: 'dhis2-uicore-node'
|
|
56
|
-
};
|
|
57
54
|
Node.propTypes = {
|
|
58
55
|
/** Content below this level of the hierarchy; children are revealed when this leaf is 'open' */
|
|
59
56
|
children: _propTypes.default.node,
|
package/build/es/node.js
CHANGED
|
@@ -14,7 +14,7 @@ export const Node = _ref => {
|
|
|
14
14
|
icon,
|
|
15
15
|
onOpen,
|
|
16
16
|
onClose,
|
|
17
|
-
dataTest
|
|
17
|
+
dataTest = 'dhis2-uicore-node'
|
|
18
18
|
} = _ref;
|
|
19
19
|
const hasLeaves = !!React.Children.toArray(children).filter(i => i).length;
|
|
20
20
|
const showArrow = !icon && hasLeaves;
|
|
@@ -43,9 +43,6 @@ export const Node = _ref => {
|
|
|
43
43
|
id: "1433072554"
|
|
44
44
|
}, [".node.jsx-1433072554{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}"]));
|
|
45
45
|
};
|
|
46
|
-
Node.defaultProps = {
|
|
47
|
-
dataTest: 'dhis2-uicore-node'
|
|
48
|
-
};
|
|
49
46
|
Node.propTypes = {
|
|
50
47
|
/** Content below this level of the hierarchy; children are revealed when this leaf is 'open' */
|
|
51
48
|
children: PropTypes.node,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/node",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.8",
|
|
4
4
|
"description": "UI Node",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,14 +27,14 @@
|
|
|
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/loader": "10.0.0-alpha.
|
|
37
|
-
"@dhis2/ui-constants": "10.0.0-alpha.
|
|
36
|
+
"@dhis2-ui/loader": "10.0.0-alpha.8",
|
|
37
|
+
"@dhis2/ui-constants": "10.0.0-alpha.8",
|
|
38
38
|
"classnames": "^2.3.1",
|
|
39
39
|
"prop-types": "^15.7.2"
|
|
40
40
|
},
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"types"
|
|
44
44
|
],
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"react": "
|
|
47
|
-
"react-dom": "
|
|
46
|
+
"react": "^18.3.1",
|
|
47
|
+
"react-dom": "^18.3.1",
|
|
48
48
|
"styled-jsx": "^4.0.1"
|
|
49
49
|
},
|
|
50
50
|
"types": "types"
|