@compill/admin 1.0.80 → 1.0.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compill/admin",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "module": "./index.esm.js",
5
5
  "main": "./index.cjs.js"
6
6
  }
@@ -7,6 +7,8 @@ interface LayoutProps extends SoperioComponent, ParentComponent {
7
7
  logo?: React.ReactNode;
8
8
  title?: string;
9
9
  menuConfig: MenuConfig;
10
+ userMenuConfig?: MenuConfig;
11
+ userSettingsPath: string;
10
12
  }
11
- export declare function AdminLayout({ color, darkMode, logo, title, menuConfig, ...props }: LayoutProps): JSX.Element;
13
+ export declare function AdminLayout({ color, darkMode, logo, title, menuConfig, userMenuConfig, userSettingsPath, ...props }: LayoutProps): JSX.Element;
12
14
  export {};
@@ -8,8 +8,10 @@ interface SidebarProps extends SoperioComponent, ParentComponent {
8
8
  logo?: React.ReactNode;
9
9
  title?: string;
10
10
  menuConfig: MenuConfig;
11
+ userMenuConfig?: MenuConfig;
12
+ userSettingsPath: string;
11
13
  }
12
- export declare function Sidebar({ show, logo, title, menuConfig, color, darkMode, ...props }: SidebarProps): JSX.Element;
14
+ export declare function Sidebar({ show, logo, title, menuConfig, userMenuConfig, userSettingsPath, color, darkMode, ...props }: SidebarProps): JSX.Element;
13
15
  interface LogoProps extends SoperioComponent, ParentComponent {
14
16
  width: number;
15
17
  height: number;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { MenuConfig } from "@compill/admin";
3
+ interface UserBlockProps {
4
+ color: string;
5
+ darkMode?: boolean;
6
+ menuConfig?: MenuConfig;
7
+ path: string;
8
+ }
9
+ export declare function UserBlock({ color, darkMode, menuConfig, path }: UserBlockProps): JSX.Element | null;
10
+ export {};