sevago-sso-fe 1.0.24 → 1.0.26
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/components/styles/typography.style.d.ts +1 -1
- package/dist/hooks/use-apps.hook.d.ts +1 -1
- package/dist/index.cjs.js +30 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +30 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/dashboard/index.d.ts +1 -0
- package/dist/pages/dashboard/sidebar/index.d.ts +2 -0
- package/dist/pages/dashboard/sidebar/sidebar.provider.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -34209,6 +34209,34 @@ const SystemMonitorScreen = () => {
|
|
|
34209
34209
|
}
|
|
34210
34210
|
);
|
|
34211
34211
|
};
|
|
34212
|
+
const SidebarProvider = ({
|
|
34213
|
+
children
|
|
34214
|
+
}) => {
|
|
34215
|
+
const [isCollapsed, setIsCollapsed] = useState(false);
|
|
34216
|
+
const [activeExpandMenu, setActiveExpandMenu] = useState(
|
|
34217
|
+
null
|
|
34218
|
+
);
|
|
34219
|
+
const { current_access } = useSelector(
|
|
34220
|
+
(state) => state.account
|
|
34221
|
+
);
|
|
34222
|
+
useEffect(() => {
|
|
34223
|
+
setActiveExpandMenu(null);
|
|
34224
|
+
}, [current_access]);
|
|
34225
|
+
const sidebarWidth = activeExpandMenu ? isCollapsed ? WIDTH_COLLAPSE + WIDTH_SIDEBAR_EXPAND : WIDTH_SIDEBAR + WIDTH_SIDEBAR_EXPAND : isCollapsed ? WIDTH_COLLAPSE : WIDTH_SIDEBAR;
|
|
34226
|
+
return /* @__PURE__ */ jsx(
|
|
34227
|
+
SidebarContext.Provider,
|
|
34228
|
+
{
|
|
34229
|
+
value: {
|
|
34230
|
+
isCollapsed,
|
|
34231
|
+
setIsCollapsed,
|
|
34232
|
+
activeExpandMenu,
|
|
34233
|
+
setActiveExpandMenu,
|
|
34234
|
+
sidebarWidth: `${sidebarWidth}px`
|
|
34235
|
+
},
|
|
34236
|
+
children
|
|
34237
|
+
}
|
|
34238
|
+
);
|
|
34239
|
+
};
|
|
34212
34240
|
const renderRoutes = (routes2, account) => routes2.map((route) => {
|
|
34213
34241
|
const {
|
|
34214
34242
|
path,
|
|
@@ -34318,6 +34346,8 @@ export {
|
|
|
34318
34346
|
RouteType,
|
|
34319
34347
|
style_constant as STYLE,
|
|
34320
34348
|
SYSTEM_MODULES,
|
|
34349
|
+
SidebarContext,
|
|
34350
|
+
SidebarProvider,
|
|
34321
34351
|
SmallIcon,
|
|
34322
34352
|
SnackbarProvider,
|
|
34323
34353
|
SnackbarType,
|