react-magma-dom 4.10.0-next.7 → 4.10.0-next.9

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.
@@ -27,6 +27,11 @@ export interface DrawerProps extends Omit<ModalProps, 'size'> {
27
27
  * @default DrawerPosition.top
28
28
  */
29
29
  position?: DrawerPosition;
30
+ /**
31
+ * Shows a background overlay when the drawer is open.
32
+ * @default true
33
+ */
34
+ showBackgroundOverlay?: boolean;
30
35
  isInverse?: boolean;
31
36
  }
32
37
  export declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
@@ -46,7 +46,7 @@ export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
46
46
  */
47
47
  isBackgroundClickDisabled?: boolean;
48
48
  /**
49
- * If true, the close button the the modal will be suppressed
49
+ * If true, the close button the modal will be suppressed
50
50
  * @default false
51
51
  */
52
52
  isCloseButtonHidden?: boolean;
@@ -83,6 +83,11 @@ export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
83
83
  * @default ModalSize.medium
84
84
  */
85
85
  size?: ModalSize;
86
+ /**
87
+ * @internal
88
+ * @default true
89
+ */
90
+ showBackgroundOverlay?: boolean;
86
91
  /**
87
92
  * @internal
88
93
  */
@@ -10,6 +10,7 @@ export interface TreeViewApi {
10
10
  showLess(): void;
11
11
  expandAll(): void;
12
12
  collapseAll(): void;
13
+ addItem(item: TreeViewItemInterface): void;
13
14
  }
14
15
  export interface UseTreeViewProps {
15
16
  /**
@@ -34,7 +34,9 @@ export declare const getChildrenIds: ({ items, itemId, }: {
34
34
  items: TreeViewItemInterface[];
35
35
  itemId: TreeViewItemInterface['itemId'];
36
36
  }) => any;
37
- export declare const getInitialItems: ({ children, preselectedItems: rawPreselectedItems, checkParents, checkChildren, selectable, isDisabled: isTreeViewDisabled, isTopLevelSelectable, }: Pick<UseTreeViewProps, 'children' | 'preselectedItems' | 'checkParents' | 'checkChildren' | 'selectable' | 'isDisabled' | 'isTopLevelSelectable'>) => any;
37
+ export declare const getInitialItems: ({ children, preselectedItems: rawPreselectedItems, checkParents, checkChildren, selectable, isDisabled: isTreeViewDisabled, isTopLevelSelectable, items, }: Pick<UseTreeViewProps, "isDisabled" | "checkChildren" | "selectable" | "preselectedItems" | "checkParents" | "children" | "isTopLevelSelectable"> & {
38
+ items?: TreeViewItemInterface[];
39
+ }) => any;
38
40
  export declare const selectSingle: ({ items, itemId, checkedStatus, }: {
39
41
  items: TreeViewItemInterface[];
40
42
  itemId: TreeViewItemInterface['itemId'];