@pdg/react-admin-layout 1.0.53 → 1.0.55

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/README.md CHANGED
@@ -6,3 +6,19 @@ React Admin Layout
6
6
  ```
7
7
  npm install -D @pdg/react-admin-layout
8
8
  ```
9
+
10
+ ## 추가 패키지 설치
11
+ ```
12
+ npm install -D @emotion/react @emotion/styled @mui/icons-material @mui/material simplebar-react
13
+ ```
14
+
15
+ ## simplebar-react css 추가
16
+ - javascript/typescript 에 추가 시
17
+ ```javascript
18
+ import 'simplebar-react/dist/simplebar.min.css';
19
+ ```
20
+
21
+ - css/scss 에 추가 시
22
+ ```css
23
+ @import 'simplebar-react/dist/simplebar.min.css';
24
+ ```
@@ -1 +1 @@
1
- export declare var useChange: (value: any, callback: any, t0: any) => void;
1
+ export declare const useChange: (value: any, callback: () => void, skipFirst?: boolean) => void;
@@ -1,2 +1,4 @@
1
- declare var CardLayout: (t0: any) => any;
1
+ import React from 'react';
2
+ import { CardLayoutProps } from './CardLayout.types';
3
+ declare const CardLayout: ({ children, backgroundColor }: CardLayoutProps) => React.JSX.Element;
2
4
  export default CardLayout;
@@ -1,2 +1,4 @@
1
- declare var DefaultLayout: (t0: any) => any;
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
- export {};
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
+ }