@pdg/react-admin-layout 1.0.40 → 1.0.41
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/dist/index.esm.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +11 -9
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Grid,styled,ListItemIcon,ListItemButton,Icon,ListItemText,Badge,Collapse,List,useTheme,alpha,Box,Toolbar,Typography,AppBar,Drawer,IconButton}from'@mui/material';import React,{useState,useEffect,useCallback,useMemo}from'react';import {useLocation,useNavigate}from'react-router
|
|
1
|
+
import {Grid,styled,ListItemIcon,ListItemButton,Icon,ListItemText,Badge,Collapse,List,useTheme,alpha,Box,Toolbar,Typography,AppBar,Drawer,IconButton}from'@mui/material';import React,{useState,useEffect,useCallback,useMemo}from'react';import {useLocation,useNavigate}from'react-router';import {ExpandMore,Menu}from'@mui/icons-material';import {notEmpty,empty}from'@pdg/util';import SimpleBar from'simplebar-react';function styleInject(css, ref) {
|
|
2
2
|
if ( ref === void 0 ) ref = {};
|
|
3
3
|
var insertAt = ref.insertAt;
|
|
4
4
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var material=require('@mui/material'),React=require('react'),
|
|
1
|
+
'use strict';var material=require('@mui/material'),React=require('react'),reactRouter=require('react-router'),iconsMaterial=require('@mui/icons-material'),util=require('@pdg/util'),SimpleBar=require('simplebar-react');function styleInject(css, ref) {
|
|
2
2
|
if ( ref === void 0 ) ref = {};
|
|
3
3
|
var insertAt = ref.insertAt;
|
|
4
4
|
|
|
@@ -70,8 +70,8 @@ var templateObject_1$4, templateObject_2$2;var SideMenuListItem = function (_a)
|
|
|
70
70
|
* Use
|
|
71
71
|
* ******************************************************************************************************************/
|
|
72
72
|
var info = _a.info, badgeVariant = _a.badgeVariant, expandedBackgroundColor = _a.expandedBackgroundColor;
|
|
73
|
-
var location =
|
|
74
|
-
var navigate =
|
|
73
|
+
var location = reactRouter.useLocation();
|
|
74
|
+
var navigate = reactRouter.useNavigate();
|
|
75
75
|
/********************************************************************************************************************
|
|
76
76
|
* State
|
|
77
77
|
* ******************************************************************************************************************/
|
|
@@ -235,7 +235,7 @@ var DefaultLayout = function (_a) {
|
|
|
235
235
|
* ******************************************************************************************************************/
|
|
236
236
|
var _b, _c, _d, _e, _f, _g;
|
|
237
237
|
var children = _a.children, logo = _a.logo, badgeVariant = _a.badgeVariant, menu = _a.menu, _h = _a.menuHideScreen, menuHideScreen = _h === void 0 ? 'sm' : _h, appBarControl = _a.appBarControl;
|
|
238
|
-
var location =
|
|
238
|
+
var location = reactRouter.useLocation();
|
|
239
239
|
/********************************************************************************************************************
|
|
240
240
|
* State
|
|
241
241
|
* ******************************************************************************************************************/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdg/react-admin-layout",
|
|
3
3
|
"title": "React Admin Layout",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.41",
|
|
5
5
|
"description": "Admin Layout for React",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -42,22 +42,24 @@
|
|
|
42
42
|
"javascript"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
+
"react": ">=17.0.0",
|
|
46
|
+
"react-dom": ">=17.0.0"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
45
49
|
"@emotion/react": "^11.14.0",
|
|
46
50
|
"@emotion/styled": "^11.14.0",
|
|
47
|
-
"@mui/icons-material": "^7.0
|
|
48
|
-
"@mui/material": "^7.0
|
|
49
|
-
"@pdg/util": "^1.0.
|
|
50
|
-
"
|
|
51
|
-
"react": "
|
|
52
|
-
"react-dom": ">=17.0.0",
|
|
53
|
-
"react-router-dom": "^7.5.0",
|
|
54
|
-
"simplebar-react": "3.3.0"
|
|
51
|
+
"@mui/icons-material": "^7.1.0",
|
|
52
|
+
"@mui/material": "^7.1.0",
|
|
53
|
+
"@pdg/util": "^1.0.24",
|
|
54
|
+
"react-router": "^7.6.1",
|
|
55
|
+
"simplebar-react": "^3.3.1"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
58
59
|
"@rollup/plugin-eslint": "^9.0.5",
|
|
59
60
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
60
61
|
"@types/node": "^22.14.0",
|
|
62
|
+
"@types/react": "^19.1.6",
|
|
61
63
|
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
62
64
|
"@typescript-eslint/parser": "^8.29.1",
|
|
63
65
|
"eslint": "8.57.1",
|