@touchtech/baselayer-ui 8.3.5-alpha.6 → 8.3.5
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/components/Drawer/Drawer.d.ts +3 -10
- package/dist/index.js +2 -2
- package/dist/styles.css +8 -8
- package/package.json +1 -1
- package/dist/components/Drawer/DrawerContent/DrawerContent.d.ts +0 -7
- package/dist/components/Drawer/DrawerContent/index.d.ts +0 -1
- package/dist/components/Drawer/DrawerFooter/DrawerFooter.d.ts +0 -7
- package/dist/components/Drawer/DrawerFooter/index.d.ts +0 -1
- package/dist/components/Drawer/DrawerHeader/DrawerHeader.d.ts +0 -7
- package/dist/components/Drawer/DrawerHeader/index.d.ts +0 -1
- package/dist/utils.d.ts +0 -2
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DrawerFooter } from "./DrawerFooter";
|
|
3
|
-
import { DrawerHeader } from "./DrawerHeader";
|
|
4
|
-
import { DrawerContent } from "./DrawerContent";
|
|
5
2
|
type DrawerProps = {
|
|
6
3
|
children?: React.ReactNode;
|
|
4
|
+
header?: React.ReactNode;
|
|
5
|
+
footer?: React.ReactNode;
|
|
7
6
|
open: boolean;
|
|
8
7
|
className?: string;
|
|
9
8
|
style?: React.CSSProperties;
|
|
10
9
|
noCloseIcon?: boolean;
|
|
11
10
|
unmountOnExit?: boolean;
|
|
12
|
-
mountOnEnter?: boolean;
|
|
13
11
|
portalContainer?: Element | DocumentFragment;
|
|
14
12
|
onClose?: () => void;
|
|
15
13
|
onClosed?: () => void;
|
|
16
14
|
};
|
|
17
|
-
declare function Drawer({ open, className, style, noCloseIcon, children, unmountOnExit,
|
|
18
|
-
declare namespace Drawer {
|
|
19
|
-
var Header: typeof DrawerHeader;
|
|
20
|
-
var Content: typeof DrawerContent;
|
|
21
|
-
var Footer: typeof DrawerFooter;
|
|
22
|
-
}
|
|
15
|
+
declare function Drawer({ header, footer, open, className, style, noCloseIcon, children, unmountOnExit, portalContainer, onClose, onClosed, }: DrawerProps): React.ReactPortal;
|
|
23
16
|
export default Drawer;
|