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.
@@ -1 +1 @@
1
- export declare const TypographyFilter: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "position" | "p" | "style" | "children" | "zIndex" | "typography" | "fontFamily" | "fontSize" | "fontWeight" | "textTransform" | "m" | "classes" | "className" | "color" | "top" | "bottom" | "left" | "right" | "border" | "boxShadow" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textAlign" | "textOverflow" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
1
+ export declare const TypographyFilter: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "position" | "children" | "p" | "style" | "zIndex" | "typography" | "fontFamily" | "fontSize" | "fontWeight" | "textTransform" | "m" | "classes" | "className" | "color" | "top" | "bottom" | "left" | "right" | "border" | "boxShadow" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textAlign" | "textOverflow" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  import { AppCategory } from '../common/enums/app-category.enum';
2
- export declare const useApps: (tab?: AppCategory) => import('../common/enums/app-category.enum').AppModule[];
2
+ export declare const useApps: (tab: AppCategory) => import('../common/enums/app-category.enum').AppModule[];
3
3
  export declare const useIsSystemMonitor: () => boolean;
4
4
  export declare const useAllApps: () => import('../common/enums/app-category.enum').AppModule[];
5
5
  export declare const useActiveSidebar: () => import('../common/enums/app-category.enum').AppModule | undefined;
package/dist/index.cjs.js CHANGED
@@ -34227,6 +34227,34 @@ const SystemMonitorScreen = () => {
34227
34227
  }
34228
34228
  );
34229
34229
  };
34230
+ const SidebarProvider = ({
34231
+ children
34232
+ }) => {
34233
+ const [isCollapsed, setIsCollapsed] = React.useState(false);
34234
+ const [activeExpandMenu, setActiveExpandMenu] = React.useState(
34235
+ null
34236
+ );
34237
+ const { current_access } = reactRedux.useSelector(
34238
+ (state) => state.account
34239
+ );
34240
+ React.useEffect(() => {
34241
+ setActiveExpandMenu(null);
34242
+ }, [current_access]);
34243
+ const sidebarWidth = activeExpandMenu ? isCollapsed ? WIDTH_COLLAPSE + WIDTH_SIDEBAR_EXPAND : WIDTH_SIDEBAR + WIDTH_SIDEBAR_EXPAND : isCollapsed ? WIDTH_COLLAPSE : WIDTH_SIDEBAR;
34244
+ return /* @__PURE__ */ jsxRuntime.jsx(
34245
+ SidebarContext.Provider,
34246
+ {
34247
+ value: {
34248
+ isCollapsed,
34249
+ setIsCollapsed,
34250
+ activeExpandMenu,
34251
+ setActiveExpandMenu,
34252
+ sidebarWidth: `${sidebarWidth}px`
34253
+ },
34254
+ children
34255
+ }
34256
+ );
34257
+ };
34230
34258
  const renderRoutes = (routes2, account) => routes2.map((route) => {
34231
34259
  const {
34232
34260
  path,
@@ -34335,6 +34363,8 @@ exports.ResetPasswordType = ResetPasswordType;
34335
34363
  exports.RouteType = RouteType;
34336
34364
  exports.STYLE = style_constant;
34337
34365
  exports.SYSTEM_MODULES = SYSTEM_MODULES;
34366
+ exports.SidebarContext = SidebarContext;
34367
+ exports.SidebarProvider = SidebarProvider;
34338
34368
  exports.SmallIcon = SmallIcon;
34339
34369
  exports.SnackbarProvider = SnackbarProvider;
34340
34370
  exports.SnackbarType = SnackbarType;