@dhis2-ui/menu 10.5.1 → 10.7.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.
@@ -57,16 +57,16 @@ const FlyoutMenu = _ref => {
57
57
  "data-test": dataTest,
58
58
  tabIndex: 0,
59
59
  ref: divRef,
60
- className: _style.default.dynamic([["3833750986", [_uiConstants.colors.white, _uiConstants.colors.grey200, _uiConstants.elevations.e300, dense ? '128' : '180', maxWidth, maxHeight, _uiConstants.spacers.dp4]]]) + " " + (className || "")
60
+ className: _style.default.dynamic([["713904175", [_uiConstants.colors.white, _uiConstants.elevations.popover, dense ? '128' : '180', maxWidth, maxHeight, _uiConstants.spacers.dp4]]]) + " " + (className || "")
61
61
  }, /*#__PURE__*/_react.default.createElement(_index.Menu, {
62
62
  dense: dense
63
63
  }, _react.Children.map(children, (child, index) => /*#__PURE__*/(0, _react.isValidElement)(child) ? /*#__PURE__*/(0, _react.cloneElement)(child, {
64
64
  showSubMenu: openedSubMenu === index,
65
65
  toggleSubMenu: toggleSubMenu.bind(void 0, index)
66
66
  }) : child)), /*#__PURE__*/_react.default.createElement(_style.default, {
67
- id: "3833750986",
68
- dynamic: [_uiConstants.colors.white, _uiConstants.colors.grey200, _uiConstants.elevations.e300, dense ? '128' : '180', maxWidth, maxHeight, _uiConstants.spacers.dp4]
69
- }, [`div.__jsx-style-dynamic-selector{background:${_uiConstants.colors.white};border:1px solid ${_uiConstants.colors.grey200};border-radius:3px;box-shadow:${_uiConstants.elevations.e300};display:inline-block;min-width:${dense ? '128' : '180'}px;max-width:${maxWidth};max-height:${maxHeight};padding:${_uiConstants.spacers.dp4} 0;overflow:auto;}`]));
67
+ id: "713904175",
68
+ dynamic: [_uiConstants.colors.white, _uiConstants.elevations.popover, dense ? '128' : '180', maxWidth, maxHeight, _uiConstants.spacers.dp4]
69
+ }, [`div.__jsx-style-dynamic-selector{background:${_uiConstants.colors.white};border-radius:3px;box-shadow:${_uiConstants.elevations.popover};display:inline-block;min-width:${dense ? '128' : '180'}px;max-width:${maxWidth};max-height:${maxHeight};padding:${_uiConstants.spacers.dp4} 0;overflow:auto;}`]));
70
70
  };
71
71
  exports.FlyoutMenu = FlyoutMenu;
72
72
  FlyoutMenu.propTypes = {
@@ -48,16 +48,16 @@ const FlyoutMenu = _ref => {
48
48
  "data-test": dataTest,
49
49
  tabIndex: 0,
50
50
  ref: divRef,
51
- className: _JSXStyle.dynamic([["3833750986", [colors.white, colors.grey200, elevations.e300, dense ? '128' : '180', maxWidth, maxHeight, spacers.dp4]]]) + " " + (className || "")
51
+ className: _JSXStyle.dynamic([["713904175", [colors.white, elevations.popover, dense ? '128' : '180', maxWidth, maxHeight, spacers.dp4]]]) + " " + (className || "")
52
52
  }, /*#__PURE__*/React.createElement(Menu, {
53
53
  dense: dense
54
54
  }, Children.map(children, (child, index) => /*#__PURE__*/isValidElement(child) ? /*#__PURE__*/cloneElement(child, {
55
55
  showSubMenu: openedSubMenu === index,
56
56
  toggleSubMenu: toggleSubMenu.bind(this, index)
57
57
  }) : child)), /*#__PURE__*/React.createElement(_JSXStyle, {
58
- id: "3833750986",
59
- dynamic: [colors.white, colors.grey200, elevations.e300, dense ? '128' : '180', maxWidth, maxHeight, spacers.dp4]
60
- }, [`div.__jsx-style-dynamic-selector{background:${colors.white};border:1px solid ${colors.grey200};border-radius:3px;box-shadow:${elevations.e300};display:inline-block;min-width:${dense ? '128' : '180'}px;max-width:${maxWidth};max-height:${maxHeight};padding:${spacers.dp4} 0;overflow:auto;}`]));
58
+ id: "713904175",
59
+ dynamic: [colors.white, elevations.popover, dense ? '128' : '180', maxWidth, maxHeight, spacers.dp4]
60
+ }, [`div.__jsx-style-dynamic-selector{background:${colors.white};border-radius:3px;box-shadow:${elevations.popover};display:inline-block;min-width:${dense ? '128' : '180'}px;max-width:${maxWidth};max-height:${maxHeight};padding:${spacers.dp4} 0;overflow:auto;}`]));
61
61
  };
62
62
  FlyoutMenu.propTypes = {
63
63
  /** Typically, but not limited to, `MenuItem` components */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/menu",
3
- "version": "10.5.1",
3
+ "version": "10.7.0",
4
4
  "description": "UI Menu",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,13 +33,13 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/card": "10.5.1",
37
- "@dhis2-ui/divider": "10.5.1",
38
- "@dhis2-ui/layer": "10.5.1",
39
- "@dhis2-ui/popper": "10.5.1",
40
- "@dhis2-ui/portal": "10.5.1",
41
- "@dhis2/ui-constants": "10.5.1",
42
- "@dhis2/ui-icons": "10.5.1",
36
+ "@dhis2-ui/card": "10.7.0",
37
+ "@dhis2-ui/divider": "10.7.0",
38
+ "@dhis2-ui/layer": "10.7.0",
39
+ "@dhis2-ui/popper": "10.7.0",
40
+ "@dhis2-ui/portal": "10.7.0",
41
+ "@dhis2/ui-constants": "10.7.0",
42
+ "@dhis2/ui-icons": "10.7.0",
43
43
  "classnames": "^2.3.1",
44
44
  "prop-types": "^15.7.2"
45
45
  },