@cullsin/lnc-menu 7.1.2 → 7.1.3

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.
@@ -3,7 +3,7 @@ import RecentActorsOutlinedIcon from "@mui/icons-material/RecentActorsOutlined";
3
3
  import Box from "@mui/material/Box";
4
4
  import Drawer from "@mui/material/Drawer";
5
5
  import List from "@mui/material/List";
6
- import ListItem from "@mui/material/ListItem";
6
+ import ListItemButton from "@mui/material/ListItemButton";
7
7
  import ListItemIcon from "@mui/material/ListItemIcon";
8
8
  import ListItemText from "@mui/material/ListItemText";
9
9
  import Tooltip from "@mui/material/Tooltip";
@@ -85,7 +85,7 @@ function SideMenu({ useDrawer, location, language = 'en', module }) {
85
85
  background: "transparent",
86
86
  },
87
87
  },
88
- }, children: _jsx(List, { sx: { padding: "var(--side-menu-padding, 0)", paddingTop: "8px" }, children: menuItems.map((item, index) => (_jsx(Tooltip, { title: item.text, placement: "right", disableHoverListener: isDrawerOpen, children: _jsxs(ListItem, { button: true, selected: selectedMainMenu === item.text, className: isDrawerOpen ? "menu-open" : "menu-closed", onClick: () => handleMenuClick(item), sx: {
88
+ }, children: _jsx(List, { sx: { padding: "var(--side-menu-padding, 0)", paddingTop: "8px" }, children: menuItems.map((item, index) => (_jsx(Tooltip, { title: item.text, placement: "right", disableHoverListener: isDrawerOpen, children: _jsxs(ListItemButton, { selected: selectedMainMenu === item.text, className: isDrawerOpen ? "menu-open" : "menu-closed", onClick: () => handleMenuClick(item), sx: {
89
89
  padding: "var(--side-menu-item-padding, 8px)",
90
90
  margin: "var(--side-menu-item-margin, 4px 8px)",
91
91
  borderRadius: "var(--side-menu-item-radius, 8px)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cullsin/lnc-menu",
3
- "version": "7.1.2",
3
+ "version": "7.1.3",
4
4
  "description": "Reusable SideMenu component for MedGenome LNC platform using MUI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,8 +19,10 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@mui/icons-material": "^5.14.0",
23
- "@mui/material": "^5.14.0",
22
+ "@emotion/react": "^11.14.0",
23
+ "@emotion/styled": "^11.14.0",
24
+ "@mui/icons-material": "^7.3.5",
25
+ "@mui/material": "^7.3.5",
24
26
  "react-router-dom": "^7.6.2"
25
27
  },
26
28
  "peerDependencies": {