react-magma-dom 4.11.0-next.18 → 4.11.0-next.20

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.
@@ -9,6 +9,7 @@ interface TreeItemHierarchyContextInterface {
9
9
  parentDepth: number;
10
10
  isTopLevel: boolean;
11
11
  index: number;
12
+ isVirtualized?: boolean;
12
13
  }
13
14
  export declare const TreeItemHierarchyContext: React.Context<TreeItemHierarchyContextInterface>;
14
15
  export {};
@@ -6,15 +6,5 @@ export interface TreeViewProps extends Omit<React.HTMLAttributes<HTMLUListElemen
6
6
  * @default false
7
7
  */
8
8
  enableVirtualization?: boolean;
9
- /**
10
- * Estimated size of each tree item in pixels (used for virtualization).
11
- * @default 40
12
- */
13
- estimateSize?: number;
14
- /**
15
- * Number of items to render above and below the visible area (overscan).
16
- * @default 5
17
- */
18
- overscan?: number;
19
9
  }
20
10
  export declare const TreeView: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<HTMLUListElement>>;
@@ -15,12 +15,6 @@ export interface UseTreeItemProps extends React.HTMLAttributes<HTMLLIElement> {
15
15
  * Icon for the tree item
16
16
  */
17
17
  icon?: React.ReactElement<IconProps>;
18
- /**
19
- * Custom height for this item when virtualization is enabled.
20
- * If not specified, the TreeView's estimateSize will be used.
21
- * @default undefined (uses TreeView's estimateSize)
22
- */
23
- itemSize?: number;
24
18
  /**
25
19
  * If true, element is disabled
26
20
  * @default false
@@ -20,7 +20,7 @@ export declare enum TreeNodeType {
20
20
  * The label element (the div inside the li) gets additional spacing.
21
21
  * In order to highlight the entire line, we need to negate the value for margin.
22
22
  */
23
- export declare function calculateOffset(type: TreeNodeType, depth?: number, labelElem?: boolean, negative?: boolean): string;
23
+ export declare function calculateOffset(type: TreeNodeType, depth?: number, labelElem?: boolean, negative?: boolean, isVirtualized?: boolean): string;
24
24
  export declare function getTreeItemLabelColor(isInverse: boolean, disabled: boolean, theme: ThemeInterface): string;
25
25
  export declare function getTreeItemWrapperCursor(disabled: boolean, selectable: TreeViewSelectable, nodeType: TreeNodeType): "not-allowed" | "pointer" | "default";
26
26
  export declare function getChildrenItemIds(children: any, status?: string): any[];