@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pdg/react-admin-layout",
3
3
  "title": "React Admin Layout",
4
- "version": "1.0.31",
4
+ "version": "1.0.33",
5
5
  "description": "Admin Layout for React",
6
6
  "type": "module",
7
7
  "types": "dist/index.d.ts",
@@ -43,35 +43,35 @@
43
43
  ],
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.11.4",
46
- "@emotion/styled": "^11.11.0",
47
- "@mui/icons-material": "^5.15.13",
48
- "@mui/material": "^5.15.13",
46
+ "@emotion/styled": "^11.11.5",
47
+ "@mui/icons-material": "^5.15.16",
48
+ "@mui/material": "^5.15.16",
49
49
  "@pdg/util": "^1.0.20",
50
50
  "@types/react": "^17.0.0 || ^18.0.0",
51
51
  "react": "^17.0.0 || ^18.0.0",
52
52
  "react-dom": "^17.0.0 || ^18.0.0",
53
- "react-router-dom": "^6.22.3",
54
- "simplebar-react": "3.2.4"
53
+ "react-router-dom": "^6.23.0",
54
+ "simplebar-react": "3.2.5"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@rollup/plugin-commonjs": "^25.0.7",
58
58
  "@rollup/plugin-eslint": "^9.0.5",
59
59
  "@rollup/plugin-node-resolve": "^15.2.3",
60
- "@typescript-eslint/eslint-plugin": "^7.2.0",
61
- "@typescript-eslint/parser": "^7.2.0",
60
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
61
+ "@typescript-eslint/parser": "^7.8.0",
62
62
  "eslint": "8.57.0",
63
63
  "eslint-config-prettier": "^9.1.0",
64
64
  "eslint-plugin-jsx-a11y": "^6.8.0",
65
65
  "eslint-plugin-prettier": "^5.1.3",
66
- "eslint-plugin-react": "^7.34.0",
67
- "eslint-plugin-react-hooks": "^4.6.0",
66
+ "eslint-plugin-react": "^7.34.1",
67
+ "eslint-plugin-react-hooks": "^4.6.2",
68
68
  "prettier": "^3.2.5",
69
- "rollup": "^4.13.0",
69
+ "rollup": "^4.17.2",
70
70
  "rollup-plugin-delete": "^2.0.0",
71
71
  "rollup-plugin-peer-deps-external": "^2.2.4",
72
72
  "rollup-plugin-postcss": "^4.0.2",
73
73
  "rollup-plugin-typescript2": "^0.36.0",
74
- "sass": "^1.72.0",
75
- "typescript": "^4.9.5"
74
+ "sass": "^1.77.0",
75
+ "typescript": "^5.4.5"
76
76
  }
77
77
  }
@@ -1 +0,0 @@
1
- export * from './types';
@@ -1,13 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { Theme } from '@mui/material/styles';
4
- export type PartialPick<T, K extends keyof T> = Partial<Pick<T, K>>;
5
- export type PartialOmit<T, K extends keyof T> = Partial<Omit<T, K>>;
6
- export interface CommonProps {
7
- children?: ReactNode;
8
- className?: string;
9
- style?: CSSProperties;
10
- }
11
- export interface CommonSxProps extends CommonProps {
12
- sx?: SxProps<Theme>;
13
- }
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SIDE_MENU_WIDTH = 220;
3
- export declare const StyledContainerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
- export declare const StyledAppBar: import("@emotion/styled").StyledComponent<import("@mui/material").AppBarOwnProps & Omit<import("@mui/material").PaperOwnProps, "color" | "position" | "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
7
- ref?: ((instance: HTMLElement | null) => void) | import("react").RefObject<HTMLElement> | null | undefined;
8
- }, "style" | "className" | "color" | "children" | "position" | "sx" | "classes" | "elevation" | "square" | "variant" | "enableColorOnDark"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
9
- export declare const StyledSideMenuContainerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
11
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
12
- export declare const StyledSideMenuTemporaryDrawer: import("@emotion/styled").StyledComponent<import("@mui/material").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
13
- export declare const StyledSideMenuPermanentDrawer: import("@emotion/styled").StyledComponent<import("@mui/material").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
- export declare const StyledMainBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
16
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
- export declare const StyledMainContentDiv: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,9 +0,0 @@
1
- export interface MenuTitle {
2
- name: string;
3
- icon?: string;
4
- parentName?: string;
5
- parentIcon?: string;
6
- }
7
- export interface MenuTitleMap {
8
- [key: string]: MenuTitle;
9
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { SideMenuProps } from './SideMenu.types';
3
- declare const SideMenu: React.FC<SideMenuProps>;
4
- export default SideMenu;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledSimpleBar: import("@emotion/styled").StyledComponent<import("simplebar-react").Props & import("react").RefAttributes<import("simplebar-core").default | null> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
- export declare const StyledLogoContainerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,5 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { SideMenuListProps } from '../SideMenuList';
3
- export interface SideMenuProps extends SideMenuListProps {
4
- logo: ReactNode;
5
- }
@@ -1,4 +0,0 @@
1
- import SideMenu from "./SideMenu";
2
- export default SideMenu;
3
- export { SideMenu };
4
- export * from "./SideMenu.types";
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { SideMenuListProps } from './SideMenuList.types';
3
- declare const SideMenuList: React.FC<SideMenuListProps>;
4
- export default SideMenuList;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledList: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
3
- ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
4
- }, "className" | "style" | "classes" | "children" | "dense" | "disablePadding" | "subheader" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,7 +0,0 @@
1
- import { MenuItem } from '../DefaultLayout.types';
2
- import { BadgeProps } from '@mui/material';
3
- export interface SideMenuListProps {
4
- list: MenuItem[];
5
- badgeVariant?: BadgeProps['variant'];
6
- onClick?(menuItem: MenuItem): void;
7
- }
@@ -1,4 +0,0 @@
1
- import SideMenuList from "./SideMenuList";
2
- export default SideMenuList;
3
- export { SideMenuList };
4
- export * from "./SideMenuList.types";
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { SideMenuListItemProps } from './SideMenuListItem.types';
3
- declare const SideMenuListItem: React.FC<SideMenuListItemProps>;
4
- export default SideMenuListItem;
@@ -1,7 +0,0 @@
1
- import { MenuItem } from '../DefaultLayout.types';
2
- import { BadgeProps } from '@mui/material';
3
- export interface SideMenuListItemProps {
4
- info: MenuItem;
5
- badgeVariant?: BadgeProps['variant'];
6
- onClick?(menuItem: MenuItem): void;
7
- }
@@ -1,4 +0,0 @@
1
- import SideMenuListItem from "./SideMenuListItem";
2
- export default SideMenuListItem;
3
- export { SideMenuListItem };
4
- export * from "./SideMenuListItem.types";
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface TitleProps {
3
- title: string;
4
- icon?: string;
5
- headTitle?: string;
6
- headIcon?: string;
7
- }
8
- declare const Title: React.FC<TitleProps>;
9
- export default Title;
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledContainerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const StyledHeadContainerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
- export declare const StyledHeadIconContainerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
- export declare const StyledHeadIcon: import("@emotion/styled").StyledComponent<import("@mui/material").IconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
12
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
13
- }, "style" | "className" | "color" | "children" | "fontSize" | "sx" | "classes" | "baseClassName"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
- export declare const StyledHeadTitleTypography: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
15
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
16
- }, "p" | "style" | "className" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "classes" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
- export declare const StyledTitleContainerDiv: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
- export declare const StyledTitleIconContainerDiv: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;