@pdg/react-admin-layout 1.0.43 → 1.0.45
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 +38 -52
- package/dist/index.js +38 -52
- package/package.json +13 -13
package/dist/index.esm.js
CHANGED
|
@@ -1,30 +1,12 @@
|
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (insertAt === 'top') {
|
|
12
|
-
if (head.firstChild) {
|
|
13
|
-
head.insertBefore(style, head.firstChild);
|
|
14
|
-
} else {
|
|
15
|
-
head.appendChild(style);
|
|
16
|
-
}
|
|
17
|
-
} else {
|
|
18
|
-
head.appendChild(style);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (style.styleSheet) {
|
|
22
|
-
style.styleSheet.cssText = css;
|
|
23
|
-
} else {
|
|
24
|
-
style.appendChild(document.createTextNode(css));
|
|
25
|
-
}
|
|
26
|
-
}var css_248z = ".simplebar-track.simplebar-vertical {\n width: 8px !important;\n}\n.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before {\n opacity: 0.3 !important;\n}\n\n.MuiButtonBase-root.MuiButton-root.MuiButton-outlined {\n padding: 5px 15px 4px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeLarge {\n padding: 7px 21px 6px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeSmall {\n padding: 3px 9px 2px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-contained {\n padding: 6px 16px 5px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeLarge {\n padding: 8px 22px 7px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeSmall {\n padding: 4px 10px 3px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-text {\n padding: 6px 8px 5px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeLarge {\n padding: 8px 11px 7px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeSmall {\n padding: 4px 5px 3px;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo,\nmain,\ninput,\nbutton,\ntextarea,\npre,\nselect,\na {\n font-family: \"Pretendard\", \"Apple Gothic\", \"Dotum\", sans-serif;\n margin: 0;\n padding: 0;\n border: 0;\n vertical-align: top;\n box-sizing: border-box;\n word-break: keep-all;\n line-height: unset;\n}\n\n*:before,\n*:after {\n box-sizing: border-box;\n}";
|
|
27
|
-
styleInject(css_248z);var CardLayout = function (_a) {
|
|
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 insertStyle(css) {
|
|
2
|
+
if (typeof window === 'undefined')
|
|
3
|
+
return;
|
|
4
|
+
const style = document.createElement('style');
|
|
5
|
+
style.setAttribute('type', 'text/css');
|
|
6
|
+
style.innerHTML = css;
|
|
7
|
+
document.head.appendChild(style);
|
|
8
|
+
return css;
|
|
9
|
+
}insertStyle(".simplebar-track.simplebar-vertical{width:8px !important}.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before{opacity:.3 !important}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined{padding:5px 15px 4px}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeLarge{padding:7px 21px 6px}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeSmall{padding:3px 9px 2px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained{padding:6px 16px 5px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeLarge{padding:8px 22px 7px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeSmall{padding:4px 10px 3px}.MuiButtonBase-root.MuiButton-root.MuiButton-text{padding:6px 8px 5px}.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeLarge{padding:8px 11px 7px}.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeSmall{padding:4px 5px 3px}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,main,input,button,textarea,pre,select,a{font-family:\"Pretendard\",\"Apple Gothic\",\"Dotum\",sans-serif;margin:0;padding:0;border:0;vertical-align:top;box-sizing:border-box;word-break:keep-all;line-height:unset}*:before,*:after{box-sizing:border-box}");var CardLayout = function (_a) {
|
|
28
10
|
var children = _a.children, _b = _a.backgroundColor, backgroundColor = _b === void 0 ? '#eff3f8' : _b;
|
|
29
11
|
return (React.createElement(Grid, { container: true, direction: 'column', alignItems: 'center', justifyContent: 'center', bgcolor: backgroundColor, minHeight: '100vh' },
|
|
30
12
|
React.createElement(Grid, null, children)));
|
|
@@ -195,30 +177,7 @@ var templateObject_1$1, templateObject_2$1, templateObject_3, templateObject_4,
|
|
|
195
177
|
React.createElement("div", null, title))));
|
|
196
178
|
};
|
|
197
179
|
var Title$1 = React.memo(Title);var SIDE_MENU_WIDTH = 220;
|
|
198
|
-
var
|
|
199
|
-
var StyledAppBar = styled(AppBar)(function (_a) {
|
|
200
|
-
var theme = _a.theme;
|
|
201
|
-
return theme.unstable_sx({
|
|
202
|
-
backdropFilter: 'blur(20px)',
|
|
203
|
-
backgroundColor: 'rgba(255, 255, 255, 0.7)',
|
|
204
|
-
color: 'text.primary',
|
|
205
|
-
borderBottom: 'thin solid #f5f5f5',
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
var StyledSideMenuTemporaryDrawer = styled(Drawer)(function (_a) {
|
|
209
|
-
var theme = _a.theme;
|
|
210
|
-
return theme.unstable_sx({
|
|
211
|
-
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: SIDE_MENU_WIDTH },
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
var StyledSideMenuPermanentDrawer = styled(Drawer)(function (_a) {
|
|
215
|
-
var theme = _a.theme;
|
|
216
|
-
return theme.unstable_sx({
|
|
217
|
-
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: SIDE_MENU_WIDTH },
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
var StyledMainContentDiv = styled('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n flex: 1;\n"], ["\n display: flex;\n flex-direction: column;\n flex: 1;\n"])));
|
|
221
|
-
var templateObject_1, templateObject_2;var SCREENS = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
180
|
+
var SCREENS = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
222
181
|
var _getNextScreen = function (screen) {
|
|
223
182
|
if (screen === 'xs')
|
|
224
183
|
return 'sm';
|
|
@@ -342,4 +301,31 @@ var DefaultLayout = function (_a) {
|
|
|
342
301
|
React.createElement(Box, { component: 'main', sx: mainBoxSx },
|
|
343
302
|
React.createElement(Toolbar, null),
|
|
344
303
|
React.createElement(StyledMainContentDiv, null, children))));
|
|
345
|
-
};
|
|
304
|
+
};
|
|
305
|
+
/********************************************************************************************************************
|
|
306
|
+
* Styled Components
|
|
307
|
+
* ******************************************************************************************************************/
|
|
308
|
+
var StyledContainerBox = styled(Box)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
309
|
+
var StyledAppBar = styled(AppBar)(function (_a) {
|
|
310
|
+
var theme = _a.theme;
|
|
311
|
+
return theme.unstable_sx({
|
|
312
|
+
backdropFilter: 'blur(20px)',
|
|
313
|
+
backgroundColor: 'rgba(255, 255, 255, 0.7)',
|
|
314
|
+
color: 'text.primary',
|
|
315
|
+
borderBottom: 'thin solid #f5f5f5',
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
var StyledSideMenuTemporaryDrawer = styled(Drawer)(function (_a) {
|
|
319
|
+
var theme = _a.theme;
|
|
320
|
+
return theme.unstable_sx({
|
|
321
|
+
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: SIDE_MENU_WIDTH },
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
var StyledSideMenuPermanentDrawer = styled(Drawer)(function (_a) {
|
|
325
|
+
var theme = _a.theme;
|
|
326
|
+
return theme.unstable_sx({
|
|
327
|
+
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: SIDE_MENU_WIDTH },
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
var StyledMainContentDiv = styled('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n flex: 1;\n"], ["\n display: flex;\n flex-direction: column;\n flex: 1;\n"])));
|
|
331
|
+
var templateObject_1, templateObject_2;export{CardLayout,DefaultLayout};
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,12 @@
|
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (insertAt === 'top') {
|
|
12
|
-
if (head.firstChild) {
|
|
13
|
-
head.insertBefore(style, head.firstChild);
|
|
14
|
-
} else {
|
|
15
|
-
head.appendChild(style);
|
|
16
|
-
}
|
|
17
|
-
} else {
|
|
18
|
-
head.appendChild(style);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (style.styleSheet) {
|
|
22
|
-
style.styleSheet.cssText = css;
|
|
23
|
-
} else {
|
|
24
|
-
style.appendChild(document.createTextNode(css));
|
|
25
|
-
}
|
|
26
|
-
}var css_248z = ".simplebar-track.simplebar-vertical {\n width: 8px !important;\n}\n.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before {\n opacity: 0.3 !important;\n}\n\n.MuiButtonBase-root.MuiButton-root.MuiButton-outlined {\n padding: 5px 15px 4px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeLarge {\n padding: 7px 21px 6px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeSmall {\n padding: 3px 9px 2px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-contained {\n padding: 6px 16px 5px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeLarge {\n padding: 8px 22px 7px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeSmall {\n padding: 4px 10px 3px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-text {\n padding: 6px 8px 5px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeLarge {\n padding: 8px 11px 7px;\n}\n.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeSmall {\n padding: 4px 5px 3px;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo,\nmain,\ninput,\nbutton,\ntextarea,\npre,\nselect,\na {\n font-family: \"Pretendard\", \"Apple Gothic\", \"Dotum\", sans-serif;\n margin: 0;\n padding: 0;\n border: 0;\n vertical-align: top;\n box-sizing: border-box;\n word-break: keep-all;\n line-height: unset;\n}\n\n*:before,\n*:after {\n box-sizing: border-box;\n}";
|
|
27
|
-
styleInject(css_248z);var CardLayout = function (_a) {
|
|
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 insertStyle(css) {
|
|
2
|
+
if (typeof window === 'undefined')
|
|
3
|
+
return;
|
|
4
|
+
const style = document.createElement('style');
|
|
5
|
+
style.setAttribute('type', 'text/css');
|
|
6
|
+
style.innerHTML = css;
|
|
7
|
+
document.head.appendChild(style);
|
|
8
|
+
return css;
|
|
9
|
+
}insertStyle(".simplebar-track.simplebar-vertical{width:8px !important}.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before{opacity:.3 !important}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined{padding:5px 15px 4px}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeLarge{padding:7px 21px 6px}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeSmall{padding:3px 9px 2px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained{padding:6px 16px 5px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeLarge{padding:8px 22px 7px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeSmall{padding:4px 10px 3px}.MuiButtonBase-root.MuiButton-root.MuiButton-text{padding:6px 8px 5px}.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeLarge{padding:8px 11px 7px}.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeSmall{padding:4px 5px 3px}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,main,input,button,textarea,pre,select,a{font-family:\"Pretendard\",\"Apple Gothic\",\"Dotum\",sans-serif;margin:0;padding:0;border:0;vertical-align:top;box-sizing:border-box;word-break:keep-all;line-height:unset}*:before,*:after{box-sizing:border-box}");var CardLayout = function (_a) {
|
|
28
10
|
var children = _a.children, _b = _a.backgroundColor, backgroundColor = _b === void 0 ? '#eff3f8' : _b;
|
|
29
11
|
return (React.createElement(material.Grid, { container: true, direction: 'column', alignItems: 'center', justifyContent: 'center', bgcolor: backgroundColor, minHeight: '100vh' },
|
|
30
12
|
React.createElement(material.Grid, null, children)));
|
|
@@ -195,30 +177,7 @@ var templateObject_1$1, templateObject_2$1, templateObject_3, templateObject_4,
|
|
|
195
177
|
React.createElement("div", null, title))));
|
|
196
178
|
};
|
|
197
179
|
var Title$1 = React.memo(Title);var SIDE_MENU_WIDTH = 220;
|
|
198
|
-
var
|
|
199
|
-
var StyledAppBar = material.styled(material.AppBar)(function (_a) {
|
|
200
|
-
var theme = _a.theme;
|
|
201
|
-
return theme.unstable_sx({
|
|
202
|
-
backdropFilter: 'blur(20px)',
|
|
203
|
-
backgroundColor: 'rgba(255, 255, 255, 0.7)',
|
|
204
|
-
color: 'text.primary',
|
|
205
|
-
borderBottom: 'thin solid #f5f5f5',
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
var StyledSideMenuTemporaryDrawer = material.styled(material.Drawer)(function (_a) {
|
|
209
|
-
var theme = _a.theme;
|
|
210
|
-
return theme.unstable_sx({
|
|
211
|
-
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: SIDE_MENU_WIDTH },
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
var StyledSideMenuPermanentDrawer = material.styled(material.Drawer)(function (_a) {
|
|
215
|
-
var theme = _a.theme;
|
|
216
|
-
return theme.unstable_sx({
|
|
217
|
-
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: SIDE_MENU_WIDTH },
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
var StyledMainContentDiv = material.styled('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n flex: 1;\n"], ["\n display: flex;\n flex-direction: column;\n flex: 1;\n"])));
|
|
221
|
-
var templateObject_1, templateObject_2;var SCREENS = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
180
|
+
var SCREENS = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
222
181
|
var _getNextScreen = function (screen) {
|
|
223
182
|
if (screen === 'xs')
|
|
224
183
|
return 'sm';
|
|
@@ -342,4 +301,31 @@ var DefaultLayout = function (_a) {
|
|
|
342
301
|
React.createElement(material.Box, { component: 'main', sx: mainBoxSx },
|
|
343
302
|
React.createElement(material.Toolbar, null),
|
|
344
303
|
React.createElement(StyledMainContentDiv, null, children))));
|
|
345
|
-
};
|
|
304
|
+
};
|
|
305
|
+
/********************************************************************************************************************
|
|
306
|
+
* Styled Components
|
|
307
|
+
* ******************************************************************************************************************/
|
|
308
|
+
var StyledContainerBox = material.styled(material.Box)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
309
|
+
var StyledAppBar = material.styled(material.AppBar)(function (_a) {
|
|
310
|
+
var theme = _a.theme;
|
|
311
|
+
return theme.unstable_sx({
|
|
312
|
+
backdropFilter: 'blur(20px)',
|
|
313
|
+
backgroundColor: 'rgba(255, 255, 255, 0.7)',
|
|
314
|
+
color: 'text.primary',
|
|
315
|
+
borderBottom: 'thin solid #f5f5f5',
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
var StyledSideMenuTemporaryDrawer = material.styled(material.Drawer)(function (_a) {
|
|
319
|
+
var theme = _a.theme;
|
|
320
|
+
return theme.unstable_sx({
|
|
321
|
+
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: SIDE_MENU_WIDTH },
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
var StyledSideMenuPermanentDrawer = material.styled(material.Drawer)(function (_a) {
|
|
325
|
+
var theme = _a.theme;
|
|
326
|
+
return theme.unstable_sx({
|
|
327
|
+
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: SIDE_MENU_WIDTH },
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
var StyledMainContentDiv = material.styled('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n flex: 1;\n"], ["\n display: flex;\n flex-direction: column;\n flex: 1;\n"])));
|
|
331
|
+
var templateObject_1, templateObject_2;exports.CardLayout=CardLayout;exports.DefaultLayout=DefaultLayout;
|
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.45",
|
|
5
5
|
"description": "Admin Layout for React",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -50,31 +50,31 @@
|
|
|
50
50
|
"@emotion/styled": "^11.14.0",
|
|
51
51
|
"@mui/icons-material": "^7.1.0",
|
|
52
52
|
"@mui/material": "^7.1.0",
|
|
53
|
-
"@pdg/util": "^1.0.
|
|
53
|
+
"@pdg/util": "^1.0.26",
|
|
54
54
|
"react-router": "^7.6.1",
|
|
55
55
|
"simplebar-react": "^3.3.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
+
"@eslint/js": "^9.28.0",
|
|
58
59
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
59
60
|
"@rollup/plugin-eslint": "^9.0.5",
|
|
60
61
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
61
|
-
"@types/node": "^22.
|
|
62
|
+
"@types/node": "^22.15.29",
|
|
62
63
|
"@types/react": "^19.1.6",
|
|
63
|
-
"@typescript-eslint/
|
|
64
|
-
"
|
|
65
|
-
"eslint": "
|
|
66
|
-
"eslint-
|
|
67
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
68
|
-
"eslint-plugin-prettier": "^5.2.6",
|
|
64
|
+
"@typescript-eslint/parser": "^8.33.0",
|
|
65
|
+
"eslint": "9.28.0",
|
|
66
|
+
"eslint-config-prettier": "^10.1.5",
|
|
67
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
69
68
|
"eslint-plugin-react": "^7.37.5",
|
|
70
69
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
71
70
|
"prettier": "^3.5.3",
|
|
72
|
-
"rollup": "^4.
|
|
71
|
+
"rollup": "^4.41.1",
|
|
73
72
|
"rollup-plugin-delete": "^2.2.0",
|
|
74
73
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
75
|
-
"rollup-plugin-
|
|
74
|
+
"rollup-plugin-sass": "^1.15.2",
|
|
76
75
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
77
|
-
"sass": "^1.
|
|
78
|
-
"typescript": "^5.8.3"
|
|
76
|
+
"sass": "^1.89.1",
|
|
77
|
+
"typescript": "^5.8.3",
|
|
78
|
+
"typescript-eslint": "^8.33.0"
|
|
79
79
|
}
|
|
80
80
|
}
|