@touchtech/baselayer-ui 8.3.4 → 8.3.5-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.
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { DrawerFooter } from "./DrawerFooter";
2
3
  type DrawerProps = {
3
4
  children?: React.ReactNode;
4
5
  header?: React.ReactNode;
@@ -7,7 +8,13 @@ type DrawerProps = {
7
8
  className?: string;
8
9
  style?: React.CSSProperties;
9
10
  noCloseIcon?: boolean;
11
+ unmountOnExit?: boolean;
12
+ portalContainer?: Element | DocumentFragment;
10
13
  onClose?: () => void;
14
+ onClosed?: () => void;
11
15
  };
12
- declare function Drawer({ header, footer, open, children, className, style, noCloseIcon, onClose, }: DrawerProps): JSX.Element;
16
+ declare function Drawer({ header, footer: propsFooter, open, className, style, noCloseIcon, children, unmountOnExit, portalContainer, onClose, onClosed, }: DrawerProps): React.ReactPortal;
17
+ declare namespace Drawer {
18
+ var Footer: typeof DrawerFooter;
19
+ }
13
20
  export default Drawer;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ type DrawerFooterProps = {
3
+ children?: React.ReactNode;
4
+ };
5
+ declare function DrawerFooter({ children }: DrawerFooterProps): JSX.Element;
6
+ export default DrawerFooter;
@@ -0,0 +1 @@
1
+ export { default as DrawerFooter } from "./DrawerFooter";