@pdg/react-admin-layout 1.0.53 → 1.0.54
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
|
|
1
|
+
export declare const useChange: (value: any, callback: () => void, skipFirst?: boolean) => void;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DefaultLayoutProps as Props } from './DefaultLayout.types';
|
|
3
|
+
declare const DefaultLayout: ({ children, logo, badgeVariant, menu, menuHideScreen, appBarControl }: Props) => React.JSX.Element;
|
|
2
4
|
export default DefaultLayout;
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { BadgeProps } from '@mui/material';
|
|
3
|
+
import { SxProps } from '@mui/system';
|
|
4
|
+
import { Theme } from '@mui/material/styles';
|
|
5
|
+
export interface SubMenuItem {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
depth: number;
|
|
9
|
+
uri: string;
|
|
10
|
+
badge?: number;
|
|
11
|
+
badgeVariant?: BadgeProps['variant'];
|
|
12
|
+
}
|
|
13
|
+
export interface MenuItem {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
depth: number;
|
|
17
|
+
uri?: string;
|
|
18
|
+
icon?: string;
|
|
19
|
+
badge?: number;
|
|
20
|
+
badgeVariant?: BadgeProps['variant'];
|
|
21
|
+
items?: SubMenuItem[];
|
|
22
|
+
}
|
|
23
|
+
export interface DefaultLayoutProps {
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
sx?: SxProps<Theme>;
|
|
28
|
+
logo: ReactNode;
|
|
29
|
+
badgeVariant?: BadgeProps['variant'];
|
|
30
|
+
menu?: MenuItem[];
|
|
31
|
+
appBarControl?: ReactNode;
|
|
32
|
+
menuHideScreen?: 'xs' | 'sm' | 'md' | 'lg';
|
|
33
|
+
}
|