@devtable/dashboard 14.58.11 → 14.59.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.
@@ -0,0 +1,10 @@
1
+ import { TreeItem } from 'performant-array-to-tree';
2
+ interface SelectedItemsPanelProps {
3
+ selectedItems: TreeItem[];
4
+ itemPaths: Map<string, string>;
5
+ onRemoveItem: (value: string) => void;
6
+ onClearAll: () => void;
7
+ height: number;
8
+ }
9
+ export declare const SelectedItemsPanel: ({ selectedItems, itemPaths, onRemoveItem, onClearAll, height, }: SelectedItemsPanelProps) => import('./react/jsx-runtime').JSX.Element;
10
+ export {};
@@ -0,0 +1,13 @@
1
+ import { TreeItem } from 'performant-array-to-tree';
2
+ /**
3
+ * Custom hook to build hierarchical paths for selected tree items
4
+ *
5
+ * @param treeData - Full tree structure
6
+ * @param selectedItems - Currently selected items
7
+ * @returns Map of value to hierarchical path string
8
+ *
9
+ * @example
10
+ * const paths = useTreePaths(treeData, value);
11
+ * const itemPath = paths.get(item.value); // "Parent > Child > Item"
12
+ */
13
+ export declare function useTreePaths(treeData: TreeItem[], selectedItems: TreeItem[]): Map<string, string>;