@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.
- package/dist/components/Drawer/Drawer.d.ts +12 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +7 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Tag/Tag.d.ts +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/styles.css +68 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/tag.d.ts +4 -0
- package/package.json +4 -2
|
@@ -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 @@
|
|
|
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?: (
|
|
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