diff --git a/dist/mui/components/custom/resizable-drawer/ResizableDrawer.d.ts b/dist/mui/components/custom/resizable-drawer/ResizableDrawer.d.ts index 95972a6..3bb7165 100644 --- a/dist/mui/components/custom/resizable-drawer/ResizableDrawer.d.ts +++ b/dist/mui/components/custom/resizable-drawer/ResizableDrawer.d.ts @@ -1,3 +1,4 @@ +import { PaperProps } from "@mui/material"; import { DrawerProps } from "@mui/material/Drawer"; import React from "react"; export type MUIDrawerProps = Omit; @@ -5,7 +6,7 @@ export interface ResizableDrawerProps extends MUIDrawerProps { onClose: () => void; refocusChild?: boolean; childIdToRefocus?: string; - paperProps?: object; + paperProps?: PaperProps; containerRef?: React.RefObject; } export default function ResizableDrawer({ children, onClose, refocusChild, childIdToRefocus, paperProps, containerRef, ...drawerProps }: ResizableDrawerProps): React.JSX.Element; diff --git a/dist/mui/components/custom/resizable-drawer/ResizableDrawer.js b/dist/mui/components/custom/resizable-drawer/ResizableDrawer.js index 986fdde..a23730f 100644 --- a/dist/mui/components/custom/resizable-drawer/ResizableDrawer.js +++ b/dist/mui/components/custom/resizable-drawer/ResizableDrawer.js @@ -80,7 +80,6 @@ export default function ResizableDrawer({ children, onClose, refocusChild = fals style: { ...drawerStyles, height, - // @ts-ignore ...((paperProps === null || paperProps === void 0 ? void 0 : paperProps.style) || {}), }, }; diff --git a/src/mui/components/custom/resizable-drawer/ResizableDrawer.tsx b/src/mui/components/custom/resizable-drawer/ResizableDrawer.tsx index 55849fd..9259c09 100644 --- a/src/mui/components/custom/resizable-drawer/ResizableDrawer.tsx +++ b/src/mui/components/custom/resizable-drawer/ResizableDrawer.tsx @@ -1,6 +1,7 @@ import CloseIcon from "@mui/icons-material/Close"; import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp"; +import { PaperProps } from "@mui/material"; import Box from "@mui/material/Box"; import Drawer, { DrawerProps } from "@mui/material/Drawer"; import { styled, Theme } from "@mui/material/styles"; @@ -115,7 +116,7 @@ export interface ResizableDrawerProps extends MUIDrawerProps { onClose: () => void; refocusChild?: boolean; childIdToRefocus?: string; - paperProps?: object; + paperProps?: PaperProps; containerRef?: React.RefObject; } @@ -151,7 +152,6 @@ export default function ResizableDrawer({ style: { ...drawerStyles, height, - // @ts-ignore ...(paperProps?.style || {}), }, };