@dhis2-ui/menu 8.4.15 → 8.4.16
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.
|
@@ -39,16 +39,16 @@ const FlyoutMenu = _ref => {
|
|
|
39
39
|
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
41
41
|
"data-test": dataTest,
|
|
42
|
-
className: _style.default.dynamic([["
|
|
42
|
+
className: _style.default.dynamic([["3833750986", [_uiConstants.colors.white, _uiConstants.colors.grey200, _uiConstants.elevations.e300, dense ? '128' : '180', maxWidth, maxHeight, _uiConstants.spacers.dp4]]]) + " " + (className || "")
|
|
43
43
|
}, /*#__PURE__*/_react.default.createElement(_index.Menu, {
|
|
44
44
|
dense: dense
|
|
45
45
|
}, _react.Children.map(children, (child, index) => /*#__PURE__*/(0, _react.isValidElement)(child) ? /*#__PURE__*/(0, _react.cloneElement)(child, {
|
|
46
46
|
showSubMenu: openedSubMenu === index,
|
|
47
47
|
toggleSubMenu: toggleSubMenu.bind(void 0, index)
|
|
48
48
|
}) : child)), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
49
|
-
id: "
|
|
49
|
+
id: "3833750986",
|
|
50
50
|
dynamic: [_uiConstants.colors.white, _uiConstants.colors.grey200, _uiConstants.elevations.e300, dense ? '128' : '180', maxWidth, maxHeight, _uiConstants.spacers.dp4]
|
|
51
|
-
}, ["div.__jsx-style-dynamic-selector{background:".concat(_uiConstants.colors.white, ";border:1px solid ").concat(_uiConstants.colors.grey200, ";border-radius:3px;box-shadow:").concat(_uiConstants.elevations.e300, ";display:inline-block;min-width:").concat(dense ? '128' : '180', "px;max-width:").concat(maxWidth, ";max-height:").concat(maxHeight, ";padding:").concat(_uiConstants.spacers.dp4, " 0;}")]));
|
|
51
|
+
}, ["div.__jsx-style-dynamic-selector{background:".concat(_uiConstants.colors.white, ";border:1px solid ").concat(_uiConstants.colors.grey200, ";border-radius:3px;box-shadow:").concat(_uiConstants.elevations.e300, ";display:inline-block;min-width:").concat(dense ? '128' : '180', "px;max-width:").concat(maxWidth, ";max-height:").concat(maxHeight, ";padding:").concat(_uiConstants.spacers.dp4, " 0;overflow:auto;}")]));
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
exports.FlyoutMenu = FlyoutMenu;
|
|
@@ -22,16 +22,16 @@ const FlyoutMenu = _ref => {
|
|
|
22
22
|
|
|
23
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
24
|
"data-test": dataTest,
|
|
25
|
-
className: _JSXStyle.dynamic([["
|
|
25
|
+
className: _JSXStyle.dynamic([["3833750986", [colors.white, colors.grey200, elevations.e300, dense ? '128' : '180', maxWidth, maxHeight, spacers.dp4]]]) + " " + (className || "")
|
|
26
26
|
}, /*#__PURE__*/React.createElement(Menu, {
|
|
27
27
|
dense: dense
|
|
28
28
|
}, Children.map(children, (child, index) => /*#__PURE__*/isValidElement(child) ? /*#__PURE__*/cloneElement(child, {
|
|
29
29
|
showSubMenu: openedSubMenu === index,
|
|
30
30
|
toggleSubMenu: toggleSubMenu.bind(this, index)
|
|
31
31
|
}) : child)), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
32
|
-
id: "
|
|
32
|
+
id: "3833750986",
|
|
33
33
|
dynamic: [colors.white, colors.grey200, elevations.e300, dense ? '128' : '180', maxWidth, maxHeight, spacers.dp4]
|
|
34
|
-
}, ["div.__jsx-style-dynamic-selector{background:".concat(colors.white, ";border:1px solid ").concat(colors.grey200, ";border-radius:3px;box-shadow:").concat(elevations.e300, ";display:inline-block;min-width:").concat(dense ? '128' : '180', "px;max-width:").concat(maxWidth, ";max-height:").concat(maxHeight, ";padding:").concat(spacers.dp4, " 0;}")]));
|
|
34
|
+
}, ["div.__jsx-style-dynamic-selector{background:".concat(colors.white, ";border:1px solid ").concat(colors.grey200, ";border-radius:3px;box-shadow:").concat(elevations.e300, ";display:inline-block;min-width:").concat(dense ? '128' : '180', "px;max-width:").concat(maxWidth, ";max-height:").concat(maxHeight, ";padding:").concat(spacers.dp4, " 0;overflow:auto;}")]));
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
FlyoutMenu.defaultProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/menu",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.16",
|
|
4
4
|
"description": "UI Menu",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@dhis2/prop-types": "^3.1.2",
|
|
35
|
-
"@dhis2-ui/card": "8.4.
|
|
36
|
-
"@dhis2-ui/divider": "8.4.
|
|
37
|
-
"@dhis2-ui/layer": "8.4.
|
|
38
|
-
"@dhis2-ui/popper": "8.4.
|
|
39
|
-
"@dhis2-ui/portal": "8.4.
|
|
40
|
-
"@dhis2/ui-constants": "8.4.
|
|
41
|
-
"@dhis2/ui-icons": "8.4.
|
|
35
|
+
"@dhis2-ui/card": "8.4.16",
|
|
36
|
+
"@dhis2-ui/divider": "8.4.16",
|
|
37
|
+
"@dhis2-ui/layer": "8.4.16",
|
|
38
|
+
"@dhis2-ui/popper": "8.4.16",
|
|
39
|
+
"@dhis2-ui/portal": "8.4.16",
|
|
40
|
+
"@dhis2/ui-constants": "8.4.16",
|
|
41
|
+
"@dhis2/ui-icons": "8.4.16",
|
|
42
42
|
"classnames": "^2.3.1",
|
|
43
43
|
"prop-types": "^15.7.2"
|
|
44
44
|
},
|