muffin-admin 9.5.0 → 9.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muffin-admin",
3
- "version": "9.5.0",
3
+ "version": "9.5.1",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
@@ -47,19 +47,16 @@ function MenuGroup({ name, resources }: { name: string; resources: AdminResource
47
47
  const basename = useBasename()
48
48
  const { pathname } = useLocation()
49
49
  const match = resources.some(
50
- (resource) =>
51
- !!matchPath(
52
- {
53
- path: `${basename}/${resource.name}/*`,
54
- },
55
- pathname
56
- )
50
+ (resource) => !!matchPath({ path: `${basename}/${resource.name}/*` }, pathname)
57
51
  )
58
52
  const [groupOpen, setGroupOpen] = useState(match)
59
53
 
60
54
  return (
61
55
  <div>
62
- <ListItemButton onClick={() => setGroupOpen(!groupOpen)}>
56
+ <ListItemButton
57
+ onClick={() => setGroupOpen(!groupOpen)}
58
+ sx={{ color: match ? "rgba(0, 0, 0, 0.87)" : "rgba(0, 0, 0, 0.6)" }}
59
+ >
63
60
  {Icon && (
64
61
  <ListItemIcon sx={{ minWidth: 40 }}>
65
62
  <Icon />
package/src/index.tsx CHANGED
@@ -37,4 +37,4 @@ export async function initAdmin(prefix = "", containerId: string = "root") {
37
37
  )
38
38
  }
39
39
 
40
- export const VERSION = "9.5.0"
40
+ export const VERSION = "9.5.1"
package/src/themes.ts CHANGED
@@ -8,8 +8,8 @@ export const muffinLightTheme: typeof defaultLightTheme = {
8
8
  styleOverrides: {
9
9
  root: {
10
10
  "&.RaMenuItemLink-active": {
11
- backgroundColor: "#f0f0f0",
12
11
  borderRadius: "4px",
12
+ backgroundColor: "#f0f0f0",
13
13
  },
14
14
  },
15
15
  },
@@ -25,8 +25,8 @@ export const muffinDarkTheme: typeof defaultDarkTheme = {
25
25
  styleOverrides: {
26
26
  root: {
27
27
  "&.RaMenuItemLink-active": {
28
- backgroundColor: "#424242",
29
28
  borderRadius: "4px",
29
+ backgroundColor: "#424242",
30
30
  },
31
31
  },
32
32
  },