| 1 |
import { Component } from 'react'; |
| 2 |
export interface TreeViewRootProps { |
| 3 |
/** Child nodes of the tree view */ |
| 4 |
children: React.ReactNode; |
| 5 |
/** Flag indicating if the tree view has checkboxes. */ |
| 6 |
hasCheckboxes?: boolean; |
| 7 |
/** Flag indicating if tree view has guide lines. */ |
| 8 |
hasGuides?: boolean; |
| 9 |
/** Variant presentation styles for the tree view. */ |
| 10 |
variant?: 'default' | 'compact' | 'compactNoBackground'; |
| 11 |
/** Class to add to add if not passed a parentItem */ |
| 12 |
className?: string; |
| 13 |
/** Flag indicating that tree nodes should be independently selectable, even when having children */ |
| 14 |
hasSelectableNodes?: boolean; |
| 15 |
} |
| 16 |
declare class TreeViewRoot extends Component<TreeViewRootProps> { |
| 17 |
displayName: string; |
| 18 |
private treeRef; |
| 19 |
componentDidMount(): void; |
| 20 |
componentWillUnmount(): void; |
| 21 |
handleKeys: (event: KeyboardEvent) => void; |
| 22 |
handleKeysCheckbox: (event: KeyboardEvent) => void; |
| 23 |
variantStyleModifiers: { |
| 24 |
[key in TreeViewRootProps['variant']]: string | string[]; |
| 25 |
}; |
| 26 |
render(): import("react/jsx-runtime").JSX.Element; |
| 27 |
} |
| 28 |
export { TreeViewRoot }; |
| 29 |
//# sourceMappingURL=TreeViewRoot.d.ts.map |