@pdg/react-admin-layout 1.0.31 → 1.0.33
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/CardLayout/CardLayout.d.ts +4 -4
- package/dist/CardLayout/CardLayout.types.d.ts +6 -6
- package/dist/CardLayout/index.d.ts +3 -3
- package/dist/DefaultLayout/DefaultLayout.d.ts +4 -4
- package/dist/DefaultLayout/DefaultLayout.types.d.ts +33 -29
- package/dist/DefaultLayout/index.d.ts +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +309 -347
- package/dist/index.js +308 -346
- package/package.json +13 -13
- package/dist/@types/index.d.ts +0 -1
- package/dist/@types/types.d.ts +0 -13
- package/dist/DefaultLayout/DefaultLayout.style.d.ts +0 -17
- package/dist/DefaultLayout/DefaultLayout.types.private.d.ts +0 -9
- package/dist/DefaultLayout/SideMenu/SideMenu.d.ts +0 -4
- package/dist/DefaultLayout/SideMenu/SideMenu.style.d.ts +0 -5
- package/dist/DefaultLayout/SideMenu/SideMenu.types.d.ts +0 -5
- package/dist/DefaultLayout/SideMenu/index.d.ts +0 -4
- package/dist/DefaultLayout/SideMenuList/SideMenuList.d.ts +0 -4
- package/dist/DefaultLayout/SideMenuList/SideMenuList.style.d.ts +0 -4
- package/dist/DefaultLayout/SideMenuList/SideMenuList.types.d.ts +0 -7
- package/dist/DefaultLayout/SideMenuList/index.d.ts +0 -4
- package/dist/DefaultLayout/SideMenuListItem/SideMenuListItem.d.ts +0 -4
- package/dist/DefaultLayout/SideMenuListItem/SideMenuListItem.types.d.ts +0 -7
- package/dist/DefaultLayout/SideMenuListItem/index.d.ts +0 -4
- package/dist/DefaultLayout/Title.d.ts +0 -9
- package/dist/DefaultLayout/Title.style.d.ts +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardLayoutProps } from './CardLayout.types';
|
|
3
|
-
declare const CardLayout: React.
|
|
4
|
-
export default CardLayout;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardLayoutProps } from './CardLayout.types';
|
|
3
|
+
declare const CardLayout: ({ children, backgroundColor }: CardLayoutProps) => React.JSX.Element;
|
|
4
|
+
export default CardLayout;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CardProps } from '@mui/material';
|
|
3
|
-
export interface CardLayoutProps extends Partial<CardProps> {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
}
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CardProps } from '@mui/material';
|
|
3
|
+
export interface CardLayoutProps extends Partial<CardProps> {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import CardLayout from './CardLayout';
|
|
2
|
-
export default CardLayout;
|
|
3
|
-
export { CardLayout };
|
|
1
|
+
import CardLayout from './CardLayout';
|
|
2
|
+
export default CardLayout;
|
|
3
|
+
export { CardLayout };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DefaultLayoutProps } from './DefaultLayout.types';
|
|
3
|
-
declare const DefaultLayout: React.
|
|
4
|
-
export default DefaultLayout;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DefaultLayoutProps as Props } from './DefaultLayout.types';
|
|
3
|
+
declare const DefaultLayout: ({ children, logo, badgeVariant, menu, menuHideScreen: initMenuHideScreen, appBarControl, }: Props) => React.JSX.Element;
|
|
4
|
+
export default DefaultLayout;
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import DefaultLayout from './DefaultLayout';
|
|
2
|
-
export default DefaultLayout;
|
|
3
|
-
export { DefaultLayout };
|
|
4
|
-
export * from './DefaultLayout.types';
|
|
1
|
+
import DefaultLayout from './DefaultLayout';
|
|
2
|
+
export default DefaultLayout;
|
|
3
|
+
export { DefaultLayout };
|
|
4
|
+
export * from './DefaultLayout.types';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './sass/index.scss';
|
|
2
|
-
export * from './CardLayout';
|
|
3
|
-
export * from './DefaultLayout';
|
|
1
|
+
import './sass/index.scss';
|
|
2
|
+
export * from './CardLayout';
|
|
3
|
+
export * from './DefaultLayout';
|