@banyan_cloud/roots 2.0.28 → 2.0.29
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.
|
@@ -4,7 +4,6 @@ interface Item {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
count?: number;
|
|
6
6
|
list?: Item[] | boolean;
|
|
7
|
-
[key: string]: any;
|
|
8
7
|
}
|
|
9
8
|
interface HierarchyBrowserProps {
|
|
10
9
|
className?: string;
|
|
@@ -15,9 +14,7 @@ interface HierarchyBrowserProps {
|
|
|
15
14
|
maxWidth?: number;
|
|
16
15
|
borderSize?: number;
|
|
17
16
|
resizable?: boolean;
|
|
18
|
-
setItemProps?: (item: Item, pathString: string) => Record<string,
|
|
19
|
-
title?: string;
|
|
20
|
-
count?: string;
|
|
17
|
+
setItemProps?: (item: Item, pathString: string) => Record<string, unknown>;
|
|
21
18
|
}
|
|
22
|
-
declare const HierarchyBrowser: ({ className, metadata, onItemClick, onItemDoubleClick, minWidth, maxWidth, borderSize, resizable, setItemProps,
|
|
19
|
+
declare const HierarchyBrowser: ({ className, metadata, onItemClick, onItemDoubleClick, minWidth, maxWidth, borderSize, resizable, setItemProps, }: HierarchyBrowserProps) => ReactElement;
|
|
23
20
|
export default HierarchyBrowser;
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
type IconPlacement = 'left' | 'right' | 'none';
|
|
3
|
+
interface Item {
|
|
4
|
+
id?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
count?: number;
|
|
7
|
+
}
|
|
3
8
|
interface HierarchyItemProps {
|
|
4
9
|
defaultOpen?: boolean;
|
|
5
10
|
iconPlacement?: IconPlacement;
|
|
6
11
|
title: ReactNode;
|
|
7
|
-
count?: string;
|
|
12
|
+
count?: string | number;
|
|
8
13
|
children: ReactNode;
|
|
9
14
|
onClick?: (state: boolean) => void;
|
|
10
15
|
onDoubleClick?: (state: boolean) => void;
|
|
11
16
|
active?: boolean;
|
|
12
17
|
isLastItem?: boolean;
|
|
13
|
-
isSingleItem?: boolean;
|
|
14
18
|
leftComponent: ReactNode;
|
|
15
19
|
name: string;
|
|
16
|
-
onSearchSubmit?: (text: string, path: string) => void;
|
|
20
|
+
onSearchSubmit?: (text: string | undefined, path: string) => void;
|
|
17
21
|
pathString: string;
|
|
18
|
-
lastActive?:
|
|
22
|
+
lastActive?: boolean;
|
|
19
23
|
isSearching: boolean;
|
|
20
24
|
onSearchStart?: () => void;
|
|
21
|
-
list?: boolean;
|
|
25
|
+
list?: Item[] | boolean;
|
|
22
26
|
}
|
|
23
27
|
declare const HierarchyItem: (props: HierarchyItemProps) => ReactElement;
|
|
24
28
|
export default HierarchyItem;
|