pcm-shared-components 0.0.129 → 0.0.130

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.
@@ -5,6 +5,7 @@ import { makeStyles } from '@mui/styles';
5
5
  import ListItemIcon from "@mui/material/ListItemIcon";
6
6
  import ListItemText from "@mui/material/ListItemText";
7
7
  import Switch from "@mui/material/Switch";
8
+ import withStyles from "@mui/styles/withStyles";
8
9
 
9
10
  const GenericSubMenu = ({
10
11
  menu,
@@ -11,7 +11,9 @@ import PropTypes from "prop-types";
11
11
  import GenericSubMenu from './GenericSubMenu';
12
12
  const StyledMenu = withStyles({
13
13
  paper: {
14
- border: "1px solid #d3d4d5"
14
+ border: "1px solid #d3d4d5",
15
+ paddingTop: 4,
16
+ paddingBottom: 4
15
17
  }
16
18
  })(props => /*#__PURE__*/React.createElement(Menu, _extends({
17
19
  elevation: 0,
@@ -26,6 +28,10 @@ const StyledMenu = withStyles({
26
28
  }, props)));
27
29
  const StyledMenuItem = withStyles(() => ({
28
30
  root: {
31
+ minHeight: 50,
32
+ paddingLeft: 12,
33
+ paddingRight: 12,
34
+ minWidth: '100% !important',
29
35
  "&:focus": {
30
36
  backgroundColor: "primary",
31
37
  "& .MuiListItemIcon-root, & .MuiListItemText-primary": {
@@ -62,7 +68,7 @@ const ReusableMenu = props => {
62
68
  classes: classes,
63
69
  onClose: handleClose
64
70
  })) : /*#__PURE__*/React.createElement(StyledMenuItem, {
65
- className: "w-full",
71
+ className: "w-full m-12",
66
72
  onClick: menu.onClick,
67
73
  key: `reusable_menu_item_${idx}`
68
74
  }, menu.icon && /*#__PURE__*/React.createElement(ListItemIcon, null, menu.icon), /*#__PURE__*/React.createElement(ListItemText, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.129",
3
+ "version": "0.0.130",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {