react-magma-dom 4.11.0-next.18 → 4.11.0-next.19
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.
- package/dist/components/TreeView/TreeItemHierarchyContext.d.ts +1 -0
- package/dist/components/TreeView/TreeView.d.ts +0 -10
- package/dist/components/TreeView/useTreeItem.d.ts +0 -6
- package/dist/components/TreeView/utils.d.ts +1 -1
- package/dist/esm/index.js +128 -56
- package/dist/esm/index.js.map +1 -1
- package/dist/properties.json +148 -136
- package/dist/react-magma-dom.cjs.development.js +128 -53
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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[];
|