@dhis2-ui/menu 8.7.0 → 8.7.1
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/menu-item/menu-item.js +1 -1
- package/build/cjs/menu-item/menu-item.styles.js +2 -2
- package/build/cjs/menu-section-header/menu-section-header.js +5 -5
- package/build/es/menu-item/menu-item.js +1 -1
- package/build/es/menu-item/menu-item.styles.js +2 -2
- package/build/es/menu-section-header/menu-section-header.js +5 -5
- package/package.json +8 -8
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uiConstants = require("@dhis2/ui-constants");
|
|
9
9
|
|
|
10
|
-
const _defaultExport = ["li.jsx-
|
|
11
|
-
_defaultExport.__hash = "
|
|
10
|
+
const _defaultExport = ["li.jsx-2002348738{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;padding:0;cursor:pointer;list-style:none;background-color:".concat(_uiConstants.colors.white, ";color:").concat(_uiConstants.colors.grey900, ";fill:").concat(_uiConstants.colors.grey900, ";font-size:14px;line-height:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"), "li.jsx-2002348738:hover{background-color:".concat(_uiConstants.colors.grey200, ";}"), "li.jsx-2002348738:active,li.active.jsx-2002348738{background-color:".concat(_uiConstants.colors.grey300, ";}"), "li.destructive.jsx-2002348738{color:".concat(_uiConstants.colors.red700, ";fill:").concat(_uiConstants.colors.red600, ";}"), "li.destructive.jsx-2002348738:hover{background-color:".concat(_uiConstants.colors.red050, ";}"), "li.destructive.jsx-2002348738:active,li.destructive.active.jsx-2002348738{background-color:".concat(_uiConstants.colors.red100, ";}"), "li.disabled.jsx-2002348738{cursor:not-allowed;color:".concat(_uiConstants.colors.grey500, ";fill:").concat(_uiConstants.colors.grey500, ";}"), "li.disabled.jsx-2002348738:hover{background-color:".concat(_uiConstants.colors.white, ";}"), "a.jsx-2002348738{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 ".concat(_uiConstants.spacers.dp16, ";min-height:40px;-webkit-text-decoration:none;text-decoration:none;color:inherit;}"), "a.jsx-2002348738:focus{outline:3px solid ".concat(_uiConstants.theme.focus, ";outline-offset:-3px;}"), "a.jsx-2002348738:focus.jsx-2002348738:not(:focus-visible){outline:none;}", "li.with-chevron.jsx-2002348738 a.jsx-2002348738{padding-right:".concat(_uiConstants.spacers.dp8, ";}"), "li.dense.jsx-2002348738 a.jsx-2002348738{padding:0 ".concat(_uiConstants.spacers.dp12, ";min-height:32px;}"), "li.with-chevron.dense.jsx-2002348738 a.jsx-2002348738{padding-right:".concat(_uiConstants.spacers.dp4, ";}"), ".label.jsx-2002348738{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:".concat(_uiConstants.spacers.dp12, " 0;}"), "li.dense.jsx-2002348738 .label.jsx-2002348738{padding:".concat(_uiConstants.spacers.dp8, " 0;}"), ".icon.jsx-2002348738{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;margin-right:".concat(_uiConstants.spacers.dp12, ";width:24px;height:24px;}"), ".chevron.jsx-2002348738{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;margin-left:".concat(_uiConstants.spacers.dp24, ";}"), "li.dense.jsx-2002348738 .icon.jsx-2002348738{margin-right:".concat(_uiConstants.spacers.dp8, ";width:16px;height:16px;}"), "li.jsx-2002348738 .icon.jsx-2002348738>svg{width:24px;height:24px;}", "li.dense.jsx-2002348738 .icon.jsx-2002348738>svg,li.jsx-2002348738 .chevron.jsx-2002348738>svg{width:16px;height:16px;}"];
|
|
11
|
+
_defaultExport.__hash = "2002348738";
|
|
12
12
|
var _default = _defaultExport;
|
|
13
13
|
exports.default = _default;
|
|
@@ -29,17 +29,17 @@ const MenuSectionHeader = _ref => {
|
|
|
29
29
|
} = _ref;
|
|
30
30
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
31
31
|
"data-test": dataTest,
|
|
32
|
-
className: _style.default.dynamic([["
|
|
32
|
+
className: _style.default.dynamic([["1160864328", [_uiConstants.colors.white, _uiConstants.spacers.dp8, _uiConstants.spacers.dp16, _uiConstants.spacers.dp8, _uiConstants.spacers.dp16, _uiConstants.colors.grey700, _uiConstants.spacers.dp8, _uiConstants.spacers.dp12, _uiConstants.spacers.dp4, _uiConstants.spacers.dp12]]]) + " " + ((0, _classnames.default)(className, {
|
|
33
33
|
dense
|
|
34
34
|
}) || "")
|
|
35
35
|
}, !hideDivider && /*#__PURE__*/_react.default.createElement(_divider.Divider, {
|
|
36
36
|
dense: dense
|
|
37
37
|
}), /*#__PURE__*/_react.default.createElement("h6", {
|
|
38
|
-
className: _style.default.dynamic([["
|
|
38
|
+
className: _style.default.dynamic([["1160864328", [_uiConstants.colors.white, _uiConstants.spacers.dp8, _uiConstants.spacers.dp16, _uiConstants.spacers.dp8, _uiConstants.spacers.dp16, _uiConstants.colors.grey700, _uiConstants.spacers.dp8, _uiConstants.spacers.dp12, _uiConstants.spacers.dp4, _uiConstants.spacers.dp12]]])
|
|
39
39
|
}, label), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
40
|
-
id: "
|
|
41
|
-
dynamic: [_uiConstants.colors.white, _uiConstants.spacers.dp8, _uiConstants.spacers.
|
|
42
|
-
}, ["li.__jsx-style-dynamic-selector{list-style:none;background-color:".concat(_uiConstants.colors.white, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;line-height:0;}"), "h6.__jsx-style-dynamic-selector{margin:0;padding:".concat(_uiConstants.spacers.dp8, " ").concat(_uiConstants.spacers.
|
|
40
|
+
id: "1160864328",
|
|
41
|
+
dynamic: [_uiConstants.colors.white, _uiConstants.spacers.dp8, _uiConstants.spacers.dp16, _uiConstants.spacers.dp8, _uiConstants.spacers.dp16, _uiConstants.colors.grey700, _uiConstants.spacers.dp8, _uiConstants.spacers.dp12, _uiConstants.spacers.dp4, _uiConstants.spacers.dp12]
|
|
42
|
+
}, ["li.__jsx-style-dynamic-selector{list-style:none;background-color:".concat(_uiConstants.colors.white, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;line-height:0;}"), "h6.__jsx-style-dynamic-selector{margin:0;padding:".concat(_uiConstants.spacers.dp8, " ").concat(_uiConstants.spacers.dp16, " ").concat(_uiConstants.spacers.dp8, " ").concat(_uiConstants.spacers.dp16, ";font-size:13px;line-height:16px;font-weight:500;color:").concat(_uiConstants.colors.grey700, ";}"), "li.dense.__jsx-style-dynamic-selector h6.__jsx-style-dynamic-selector{padding:".concat(_uiConstants.spacers.dp8, " ").concat(_uiConstants.spacers.dp12, " ").concat(_uiConstants.spacers.dp4, " ").concat(_uiConstants.spacers.dp12, ";}")]));
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
exports.MenuSectionHeader = MenuSectionHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { colors, spacers, theme } from '@dhis2/ui-constants';
|
|
2
|
-
const _defaultExport = ["li.jsx-
|
|
3
|
-
_defaultExport.__hash = "
|
|
2
|
+
const _defaultExport = ["li.jsx-2002348738{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;padding:0;cursor:pointer;list-style:none;background-color:".concat(colors.white, ";color:").concat(colors.grey900, ";fill:").concat(colors.grey900, ";font-size:14px;line-height:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"), "li.jsx-2002348738:hover{background-color:".concat(colors.grey200, ";}"), "li.jsx-2002348738:active,li.active.jsx-2002348738{background-color:".concat(colors.grey300, ";}"), "li.destructive.jsx-2002348738{color:".concat(colors.red700, ";fill:").concat(colors.red600, ";}"), "li.destructive.jsx-2002348738:hover{background-color:".concat(colors.red050, ";}"), "li.destructive.jsx-2002348738:active,li.destructive.active.jsx-2002348738{background-color:".concat(colors.red100, ";}"), "li.disabled.jsx-2002348738{cursor:not-allowed;color:".concat(colors.grey500, ";fill:").concat(colors.grey500, ";}"), "li.disabled.jsx-2002348738:hover{background-color:".concat(colors.white, ";}"), "a.jsx-2002348738{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 ".concat(spacers.dp16, ";min-height:40px;-webkit-text-decoration:none;text-decoration:none;color:inherit;}"), "a.jsx-2002348738:focus{outline:3px solid ".concat(theme.focus, ";outline-offset:-3px;}"), "a.jsx-2002348738:focus.jsx-2002348738:not(:focus-visible){outline:none;}", "li.with-chevron.jsx-2002348738 a.jsx-2002348738{padding-right:".concat(spacers.dp8, ";}"), "li.dense.jsx-2002348738 a.jsx-2002348738{padding:0 ".concat(spacers.dp12, ";min-height:32px;}"), "li.with-chevron.dense.jsx-2002348738 a.jsx-2002348738{padding-right:".concat(spacers.dp4, ";}"), ".label.jsx-2002348738{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:".concat(spacers.dp12, " 0;}"), "li.dense.jsx-2002348738 .label.jsx-2002348738{padding:".concat(spacers.dp8, " 0;}"), ".icon.jsx-2002348738{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;margin-right:".concat(spacers.dp12, ";width:24px;height:24px;}"), ".chevron.jsx-2002348738{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;margin-left:".concat(spacers.dp24, ";}"), "li.dense.jsx-2002348738 .icon.jsx-2002348738{margin-right:".concat(spacers.dp8, ";width:16px;height:16px;}"), "li.jsx-2002348738 .icon.jsx-2002348738>svg{width:24px;height:24px;}", "li.dense.jsx-2002348738 .icon.jsx-2002348738>svg,li.jsx-2002348738 .chevron.jsx-2002348738>svg{width:16px;height:16px;}"];
|
|
3
|
+
_defaultExport.__hash = "2002348738";
|
|
4
4
|
export default _defaultExport;
|
|
@@ -15,17 +15,17 @@ const MenuSectionHeader = _ref => {
|
|
|
15
15
|
} = _ref;
|
|
16
16
|
return /*#__PURE__*/React.createElement("li", {
|
|
17
17
|
"data-test": dataTest,
|
|
18
|
-
className: _JSXStyle.dynamic([["
|
|
18
|
+
className: _JSXStyle.dynamic([["1160864328", [colors.white, spacers.dp8, spacers.dp16, spacers.dp8, spacers.dp16, colors.grey700, spacers.dp8, spacers.dp12, spacers.dp4, spacers.dp12]]]) + " " + (cx(className, {
|
|
19
19
|
dense
|
|
20
20
|
}) || "")
|
|
21
21
|
}, !hideDivider && /*#__PURE__*/React.createElement(Divider, {
|
|
22
22
|
dense: dense
|
|
23
23
|
}), /*#__PURE__*/React.createElement("h6", {
|
|
24
|
-
className: _JSXStyle.dynamic([["
|
|
24
|
+
className: _JSXStyle.dynamic([["1160864328", [colors.white, spacers.dp8, spacers.dp16, spacers.dp8, spacers.dp16, colors.grey700, spacers.dp8, spacers.dp12, spacers.dp4, spacers.dp12]]])
|
|
25
25
|
}, label), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
26
|
-
id: "
|
|
27
|
-
dynamic: [colors.white, spacers.dp8, spacers.
|
|
28
|
-
}, ["li.__jsx-style-dynamic-selector{list-style:none;background-color:".concat(colors.white, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;line-height:0;}"), "h6.__jsx-style-dynamic-selector{margin:0;padding:".concat(spacers.dp8, " ").concat(spacers.
|
|
26
|
+
id: "1160864328",
|
|
27
|
+
dynamic: [colors.white, spacers.dp8, spacers.dp16, spacers.dp8, spacers.dp16, colors.grey700, spacers.dp8, spacers.dp12, spacers.dp4, spacers.dp12]
|
|
28
|
+
}, ["li.__jsx-style-dynamic-selector{list-style:none;background-color:".concat(colors.white, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;line-height:0;}"), "h6.__jsx-style-dynamic-selector{margin:0;padding:".concat(spacers.dp8, " ").concat(spacers.dp16, " ").concat(spacers.dp8, " ").concat(spacers.dp16, ";font-size:13px;line-height:16px;font-weight:500;color:").concat(colors.grey700, ";}"), "li.dense.__jsx-style-dynamic-selector h6.__jsx-style-dynamic-selector{padding:".concat(spacers.dp8, " ").concat(spacers.dp12, " ").concat(spacers.dp4, " ").concat(spacers.dp12, ";}")]));
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
MenuSectionHeader.defaultProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/menu",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.1",
|
|
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.7.
|
|
36
|
-
"@dhis2-ui/divider": "8.7.
|
|
37
|
-
"@dhis2-ui/layer": "8.7.
|
|
38
|
-
"@dhis2-ui/popper": "8.7.
|
|
39
|
-
"@dhis2-ui/portal": "8.7.
|
|
40
|
-
"@dhis2/ui-constants": "8.7.
|
|
41
|
-
"@dhis2/ui-icons": "8.7.
|
|
35
|
+
"@dhis2-ui/card": "8.7.1",
|
|
36
|
+
"@dhis2-ui/divider": "8.7.1",
|
|
37
|
+
"@dhis2-ui/layer": "8.7.1",
|
|
38
|
+
"@dhis2-ui/popper": "8.7.1",
|
|
39
|
+
"@dhis2-ui/portal": "8.7.1",
|
|
40
|
+
"@dhis2/ui-constants": "8.7.1",
|
|
41
|
+
"@dhis2/ui-icons": "8.7.1",
|
|
42
42
|
"classnames": "^2.3.1",
|
|
43
43
|
"prop-types": "^15.7.2"
|
|
44
44
|
},
|