@touchtech/baselayer-ui 8.2.11 → 8.3.0-alpha.0

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.
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ type DrawerProps = {
3
+ children?: React.ReactNode;
4
+ header?: React.ReactNode;
5
+ footer?: React.ReactNode;
6
+ open: boolean;
7
+ className?: string;
8
+ style?: React.CSSProperties;
9
+ onClose: () => void;
10
+ };
11
+ declare function Drawer({ header, footer, open, children, className, style, onClose, }: DrawerProps): JSX.Element;
12
+ export default Drawer;
@@ -0,0 +1,7 @@
1
+ declare namespace _default {
2
+ export { Drawer as component };
3
+ export const title: string;
4
+ }
5
+ export default _default;
6
+ export function Default(): JSX.Element;
7
+ import Drawer from "./Drawer";
@@ -0,0 +1 @@
1
+ export { default as Drawer } from "./Drawer";
@@ -4,9 +4,10 @@ type Props = {
4
4
  className?: string;
5
5
  closable?: boolean;
6
6
  value?: string;
7
+ id?: string;
7
8
  disabled?: boolean;
8
- onDelete?: (value: string) => void;
9
+ onDelete?: (id: string) => void;
9
10
  onClose?: (event: React.MouseEvent<HTMLElement>, value: string) => void;
10
11
  };
11
- declare function Tag({ children, className, closable, value, onClose, disabled, onDelete }: Props): JSX.Element;
12
+ declare function Tag({ children, className, closable, value, onClose, disabled, onDelete, id, }: Props): JSX.Element;
12
13
  export default Tag;
package/dist/index.d.ts CHANGED
@@ -26,3 +26,4 @@ export * from "./components/TextInput";
26
26
  export * from "./components/Toast";
27
27
  export * from "./components/Tooltip";
28
28
  export * from "./components/Video";
29
+ export * from "./components/Drawer";