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