@applica-software-guru/react-admin 1.4.202 → 1.4.204

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": "@applica-software-guru/react-admin",
3
- "version": "1.4.202",
3
+ "version": "1.4.204",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,13 @@
1
+ {
2
+ "folders": [
3
+ {
4
+ "path": ".",
5
+ "name": "Framework"
6
+ },
7
+ {
8
+ "path": "src/playground",
9
+ "name": "Sample App"
10
+ }
11
+ ],
12
+ "settings": {}
13
+ }
@@ -1,12 +1,11 @@
1
1
  import { Box, ClickAwayListener, List, ListItemButton, ListItemIcon, ListItemText, Paper, Popper, Typography, Theme } from '@mui/material';
2
2
  import { DownOutlined, RightOutlined } from '@ant-design/icons';
3
- import { Fragment, useEffect, useState } from 'react';
3
+ import React, { Fragment, useEffect, useState } from 'react';
4
4
  import { styled, useTheme } from '@mui/material/styles';
5
5
  import { useMenuConfig } from '../../../hooks';
6
6
 
7
7
  import NavCollapse from './NavCollapse';
8
8
  import NavItem from './NavItem';
9
- import PropTypes from 'prop-types';
10
9
  import { Transitions } from '../../@extended';
11
10
  import { useTranslate } from 'react-admin';
12
11
  import { useLayoutMediaState } from '../Provider';
@@ -336,15 +335,4 @@ const NavGroup = ({
336
335
  );
337
336
  };
338
337
 
339
- NavGroup.propTypes = {
340
- item: PropTypes.object,
341
- lastItem: PropTypes.number,
342
- remItems: PropTypes.array,
343
- lastItemId: PropTypes.string,
344
- setSelectedItems: PropTypes.func,
345
- selectedItems: PropTypes.string,
346
- setSelectedLevel: PropTypes.func,
347
- selectedLevel: PropTypes.number
348
- };
349
-
350
338
  export { NavGroup };
@@ -5,8 +5,7 @@ export const StyledArrow = styled('span')(({ arrow, theme }) => {
5
5
 
6
6
  const POSITION = -(SIZE / 2);
7
7
 
8
- const borderStyle =
9
- theme.palette.mode === 'dark' ? `solid 1px ${theme.palette.grey[100]}` : `solid 1px ${alpha(theme.palette.grey[500], 0.12)}`;
8
+ const borderStyle = theme.palette.mode === 'dark' ? `none` : `solid 1px ${alpha(theme.palette.grey[500], 0.12)}`;
10
9
 
11
10
  const topStyle = {
12
11
  borderRadius: '0 0 3px 0',
@@ -31,7 +30,7 @@ export const StyledArrow = styled('span')(({ arrow, theme }) => {
31
30
 
32
31
  const rightStyle = {
33
32
  borderRadius: '0 0 0 3px',
34
- right: POSITION - 1,
33
+ right: POSITION,
35
34
  borderBottom: borderStyle,
36
35
  borderLeft: borderStyle
37
36
  };
@@ -1,6 +1,5 @@
1
1
  import { MenuProps } from '../types';
2
- import { createContext, useEffect } from 'react';
3
- import { useLocalStorage } from '../hooks';
2
+ import { createContext, useEffect, useState } from 'react';
4
3
 
5
4
  export type MenuConfigContextProps = {
6
5
  openItem: string[];
@@ -40,7 +39,7 @@ export type MenuConfigProviderProps = {
40
39
  };
41
40
 
42
41
  const MenuConfigProvider = ({ menu, children }: MenuConfigProviderProps) => {
43
- const [menuConfig, setMenuConfig] = useLocalStorage('menu-config', { ...initialState, menu }) as any;
42
+ const [menuConfig, setMenuConfig] = useState({ ...initialState, menu }) as any;
44
43
  const setMenu = (menu: MenuProps) => setMenuConfig((menuConfig: MenuConfigContextProps) => ({ ...menuConfig, menu }));
45
44
  const activeItem = (openItem: string) => setMenuConfig((menuConfig: MenuConfigContextProps) => ({ ...menuConfig, openItem }));
46
45
  const activeID = (selectedID: string) => setMenuConfig((menuConfig: MenuConfigContextProps) => ({ ...menuConfig, selectedID }));
@@ -3,7 +3,7 @@ import { DashboardOutlined, FlagOutlined, NotificationOutlined, TableOutlined, U
3
3
  const config = [
4
4
  {
5
5
  id: 'dashboard',
6
- title: 'Dashboard',
6
+ title: 'Dashboard AA',
7
7
  type: 'group',
8
8
  icon: DashboardOutlined,
9
9
  children: [