@crystaltech/hsms-shared-ui 0.0.6 → 0.0.8
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/layout/MainLayout/index.d.ts +1 -1
- package/dist/components/layout/{dummyData.d.ts → layoutConfig.d.ts} +9 -4
- package/dist/components/ui/SideDrawer.d.ts +3 -11
- package/dist/index.es.js +4750 -4642
- package/dist/index.js +70 -70
- package/dist/routes/403.d.ts +3 -1
- package/package.json +1 -1
- package/dist/utils/Utils.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { UserInfo } from '../../../routes/ProtectedRoute';
|
|
3
|
-
import { IMenuConfig, ISettingsConfig } from '../
|
|
3
|
+
import { IMenuConfig, ISettingsConfig } from '../layoutConfig';
|
|
4
4
|
export interface IUserManage {
|
|
5
5
|
user: UserInfo;
|
|
6
6
|
redirectUrl: string;
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { SvgIconProps } from '@mui/material';
|
|
2
1
|
import { default as moduleLogo } from '../../assets/images/logo.png';
|
|
3
2
|
export interface MenuItem {
|
|
4
3
|
label: string;
|
|
5
|
-
icon: React.
|
|
4
|
+
icon: React.ReactNode;
|
|
6
5
|
link: string;
|
|
7
|
-
|
|
6
|
+
roles: string[];
|
|
7
|
+
children?: {
|
|
8
|
+
label: string;
|
|
9
|
+
icon: React.ReactNode;
|
|
10
|
+
link: string;
|
|
11
|
+
roles: string[];
|
|
12
|
+
}[];
|
|
8
13
|
}
|
|
9
14
|
export interface IMenuConfig {
|
|
15
|
+
sectionName?: string;
|
|
10
16
|
items: MenuItem[];
|
|
11
17
|
}
|
|
12
18
|
export interface ISettingsConfig {
|
|
13
19
|
logo: string;
|
|
14
20
|
footerText: string;
|
|
15
21
|
}
|
|
16
|
-
export declare const menuConfig: IMenuConfig[];
|
|
17
22
|
export interface ISettingsConfig {
|
|
18
23
|
logo: string;
|
|
19
24
|
title: string;
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
label: string;
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
link?: string;
|
|
6
|
-
children?: MenuItem[];
|
|
7
|
-
}
|
|
8
|
-
interface MenuSection {
|
|
9
|
-
sectionName?: string;
|
|
10
|
-
items: MenuItem[];
|
|
11
|
-
}
|
|
2
|
+
import { IMenuConfig } from '../layout/layoutConfig';
|
|
12
3
|
interface SideDrawerProps {
|
|
13
4
|
isSidebarOpen: boolean;
|
|
14
5
|
toggleSidebar: () => void;
|
|
15
6
|
variant: "permanent" | "temporary";
|
|
16
7
|
drawerWidth: number;
|
|
17
|
-
menuConfig:
|
|
8
|
+
menuConfig: IMenuConfig[];
|
|
18
9
|
showOnlyIcons?: boolean;
|
|
19
10
|
toggleSidebarDesktop?: () => void;
|
|
11
|
+
userRoles: string[];
|
|
20
12
|
}
|
|
21
13
|
declare const SideDrawer: React.FC<SideDrawerProps>;
|
|
22
14
|
export default SideDrawer;
|