@dhis2-ui/popper 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/popper.js +7 -9
- package/build/es/popper.js +6 -8
- package/package.json +2 -2
package/build/cjs/popper.js
CHANGED
|
@@ -23,16 +23,19 @@ const flipPlacement = placement => {
|
|
|
23
23
|
}
|
|
24
24
|
return placement;
|
|
25
25
|
};
|
|
26
|
+
|
|
27
|
+
// Stable object reference
|
|
28
|
+
const staticArray = [];
|
|
26
29
|
const Popper = _ref => {
|
|
27
30
|
let {
|
|
28
31
|
children,
|
|
29
32
|
className,
|
|
30
|
-
dataTest,
|
|
31
|
-
modifiers,
|
|
33
|
+
dataTest = 'dhis2-uicore-popper',
|
|
34
|
+
modifiers = staticArray,
|
|
32
35
|
observePopperResize,
|
|
33
36
|
observeReferenceResize,
|
|
34
37
|
onFirstUpdate,
|
|
35
|
-
placement,
|
|
38
|
+
placement = 'auto',
|
|
36
39
|
reference,
|
|
37
40
|
strategy
|
|
38
41
|
} = _ref;
|
|
@@ -66,14 +69,9 @@ const Popper = _ref => {
|
|
|
66
69
|
tabIndex: 0
|
|
67
70
|
}), children);
|
|
68
71
|
};
|
|
69
|
-
exports.Popper = Popper;
|
|
70
|
-
Popper.defaultProps = {
|
|
71
|
-
dataTest: 'dhis2-uicore-popper',
|
|
72
|
-
modifiers: [],
|
|
73
|
-
placement: 'auto'
|
|
74
|
-
};
|
|
75
72
|
|
|
76
73
|
// Prop names follow the names here: https://popper.js.org/docs/v2/constructors/
|
|
74
|
+
exports.Popper = Popper;
|
|
77
75
|
Popper.propTypes = {
|
|
78
76
|
/** Content inside the Popper */
|
|
79
77
|
children: _propTypes.default.node.isRequired,
|
package/build/es/popper.js
CHANGED
|
@@ -14,16 +14,19 @@ const flipPlacement = placement => {
|
|
|
14
14
|
}
|
|
15
15
|
return placement;
|
|
16
16
|
};
|
|
17
|
+
|
|
18
|
+
// Stable object reference
|
|
19
|
+
const staticArray = [];
|
|
17
20
|
const Popper = _ref => {
|
|
18
21
|
let {
|
|
19
22
|
children,
|
|
20
23
|
className,
|
|
21
|
-
dataTest,
|
|
22
|
-
modifiers,
|
|
24
|
+
dataTest = 'dhis2-uicore-popper',
|
|
25
|
+
modifiers = staticArray,
|
|
23
26
|
observePopperResize,
|
|
24
27
|
observeReferenceResize,
|
|
25
28
|
onFirstUpdate,
|
|
26
|
-
placement,
|
|
29
|
+
placement = 'auto',
|
|
27
30
|
reference,
|
|
28
31
|
strategy
|
|
29
32
|
} = _ref;
|
|
@@ -57,11 +60,6 @@ const Popper = _ref => {
|
|
|
57
60
|
tabIndex: 0
|
|
58
61
|
}), children);
|
|
59
62
|
};
|
|
60
|
-
Popper.defaultProps = {
|
|
61
|
-
dataTest: 'dhis2-uicore-popper',
|
|
62
|
-
modifiers: [],
|
|
63
|
-
placement: 'auto'
|
|
64
|
-
};
|
|
65
63
|
|
|
66
64
|
// Prop names follow the names here: https://popper.js.org/docs/v2/constructors/
|
|
67
65
|
Popper.propTypes = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/popper",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.7",
|
|
4
4
|
"description": "UI Popper",
|
|
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
|
"@popperjs/core": "^2.10.1",
|
|
38
38
|
"classnames": "^2.3.1",
|
|
39
39
|
"prop-types": "^15.7.2",
|