@nodeject/ui-components
Version:
UI library for non-trivial components
28 lines (27 loc) • 929 B
TypeScript
/// <reference types="react" />
import { DnDTreesProps, TreeDataUnflattened, TreeOptions, UseDndTreeActionsProps } from '../dtos';
export declare const DnDTreeContainer: import("unstated-next").Container<{
actions: UseDndTreeActionsProps;
activeNode: string;
events: {
onMouseDownHandle: (nodeId: string) => void;
onMouseUpHandle: (nodeId: string) => void;
};
components: {
TreeMenu?: import("react").FC<any>;
Node: import("react").FC<import("../dtos").NodeProps>;
};
onNodeClicked: (nodeId: string) => void;
treeMode: import("../dtos").TreeMode;
treeOptions: TreeOptions;
state: {
expandedNodes: {
[key: string]: {
isExpanded: boolean;
};
};
draggingId: string;
newNodeId: string;
unflattenedTreeData: TreeDataUnflattened;
};
}, DnDTreesProps>;