react-magma-dom 4.7.0-next.37 → 4.7.0-next.39

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.
@@ -3,7 +3,7 @@ import { TreeItemSelectedInterface, TreeViewItemInterface } from './TreeViewCont
3
3
  import { TreeViewSelectable } from './types';
4
4
  export { TreeItemSelectedInterface };
5
5
  export interface TreeViewApi {
6
- selectItem({ itemId, checkedStatus }: Pick<TreeViewItemInterface, 'itemId' | 'checkedStatus'>): void;
6
+ selectItem({ itemId, checkedStatus, }: Pick<TreeViewItemInterface, 'itemId' | 'checkedStatus'>): void;
7
7
  selectAll(): void;
8
8
  clearAll(): void;
9
9
  }
@@ -64,7 +64,7 @@ export interface UseTreeViewProps {
64
64
  * @default true
65
65
  */
66
66
  checkChildren?: boolean;
67
- children?: React.ReactNode[];
67
+ children?: React.ReactNode[] | React.ReactNode;
68
68
  /**
69
69
  * The ref object that allows TreeView manipulation.
70
70
  * Actions available:
@@ -95,7 +95,7 @@ export declare function useTreeView(props: UseTreeViewProps): {
95
95
  checkChildren: boolean;
96
96
  checkParents: boolean;
97
97
  items: any;
98
- selectItem: ({ itemId, checkedStatus }: Pick<TreeViewItemInterface, 'itemId'> & Partial<Pick<TreeViewItemInterface, 'checkedStatus'>>) => void;
98
+ selectItem: ({ itemId, checkedStatus, }: Pick<TreeViewItemInterface, 'itemId'> & Partial<Pick<TreeViewItemInterface, 'checkedStatus'>>) => void;
99
99
  };
100
100
  };
101
101
  export declare type UseTreeViewReturn = ReturnType<typeof useTreeView>;
@@ -31,8 +31,8 @@ export declare function filterNullEntries(obj: any): {
31
31
  } | {
32
32
  current?: undefined;
33
33
  };
34
- export declare const getInitialItems: ({ children, preselectedItems: rawPreselectedItems, checkParents, checkChildren, selectable, isDisabled: isTreeViewDisabled }: Pick<UseTreeViewProps, 'children' | 'preselectedItems' | 'checkParents' | 'checkChildren' | 'selectable' | 'isDisabled'>) => any;
35
- export declare const selectSingle: ({ items, itemId, checkedStatus }: {
34
+ export declare const getInitialItems: ({ children, preselectedItems: rawPreselectedItems, checkParents, checkChildren, selectable, isDisabled: isTreeViewDisabled, }: Pick<UseTreeViewProps, 'children' | 'preselectedItems' | 'checkParents' | 'checkChildren' | 'selectable' | 'isDisabled'>) => any;
35
+ export declare const selectSingle: ({ items, itemId, checkedStatus, }: {
36
36
  items: TreeViewItemInterface[];
37
37
  itemId: TreeViewItemInterface['itemId'];
38
38
  checkedStatus: TreeViewItemInterface['checkedStatus'];
@@ -44,17 +44,17 @@ export declare const selectSingle: ({ items, itemId, checkedStatus }: {
44
44
  hasOwnTreeItems: boolean;
45
45
  isDisabled?: boolean;
46
46
  }[];
47
- export declare const toggleMulti: ({ items, itemId, checkedStatus: rawCheckedStatus, forceCheckedStatus, checkChildren, checkParents }: {
47
+ export declare const toggleMulti: ({ items, itemId, checkedStatus: rawCheckedStatus, forceCheckedStatus, checkChildren, checkParents, }: {
48
48
  items: TreeViewItemInterface[];
49
49
  itemId: TreeViewItemInterface['itemId'];
50
50
  checkedStatus: TreeViewItemInterface['checkedStatus'];
51
51
  forceCheckedStatus?: boolean;
52
52
  } & Pick<UseTreeViewProps, "checkChildren" | "checkParents">) => any;
53
- export declare const toggleAllMulti: ({ items, checkedStatus, checkChildren, checkParents }: {
53
+ export declare const toggleAllMulti: ({ items, checkedStatus, checkChildren, checkParents, }: {
54
54
  items: TreeViewItemInterface[];
55
55
  checkedStatus: TreeViewItemInterface['checkedStatus'];
56
56
  } & Pick<UseTreeViewProps, "checkChildren" | "checkParents">) => any;
57
- export declare const getInitialExpandedIds: ({ items, initialExpandedItems }: {
57
+ export declare const getInitialExpandedIds: ({ items, initialExpandedItems, }: {
58
58
  items: TreeViewItemInterface[];
59
59
  } & Pick<UseTreeViewProps, "initialExpandedItems">) => any[];
60
60
  export declare const isEqualArrays: <T>(arrayA: T[], arrayB: T[]) => boolean;