react-magma-dom 4.7.0-next.23 → 4.7.0-next.25
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/Select/shared.d.ts +5 -0
- package/dist/components/TreeView/useTreeItem.d.ts +0 -5
- package/dist/components/TreeView/useTreeView.d.ts +2 -1
- package/dist/components/TreeView/utils.d.ts +1 -0
- package/dist/esm/index.js +111 -49
- package/dist/esm/index.js.map +1 -1
- package/dist/properties.json +102 -82
- package/dist/react-magma-dom.cjs.development.js +109 -46
- 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/dist/utils/index.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
export declare const SelectContainer: import("@emotion/styled").StyledComponent<{
|
|
3
4
|
theme?: import("@emotion/react").Theme;
|
|
4
5
|
as?: import("react").ElementType<any>;
|
|
@@ -12,6 +13,10 @@ export declare const SelectText: import("@emotion/styled").StyledComponent<{
|
|
|
12
13
|
as?: import("react").ElementType<any>;
|
|
13
14
|
} & {
|
|
14
15
|
isClearable?: boolean;
|
|
16
|
+
isShowPlaceholder?: boolean;
|
|
17
|
+
isInverse?: boolean;
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
theme?: ThemeInterface;
|
|
15
20
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
16
21
|
export declare const StyledCard: import("@emotion/styled").StyledComponent<import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
17
22
|
theme?: import("@emotion/react").Theme;
|
|
@@ -27,9 +27,6 @@ export interface UseTreeItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
|
27
27
|
* Icon for the tree item
|
|
28
28
|
*/
|
|
29
29
|
icon?: React.ReactElement<IconProps>;
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
30
|
/**
|
|
34
31
|
* @internal
|
|
35
32
|
*/
|
|
@@ -39,8 +36,6 @@ export interface UseTreeItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
|
39
36
|
*/
|
|
40
37
|
itemDepth?: number;
|
|
41
38
|
/**
|
|
42
|
-
* TODO: improve functionality (issue #1305)
|
|
43
|
-
* @internal
|
|
44
39
|
* If true, element is disabled
|
|
45
40
|
* @default false
|
|
46
41
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TreeItemSelectedInterface, TreeViewItemInterface } from './TreeViewContext';
|
|
3
3
|
import { TreeViewSelectable } from './types';
|
|
4
|
+
export { TreeItemSelectedInterface };
|
|
4
5
|
export interface TreeViewApi {
|
|
5
6
|
selectItem({ itemId, checkedStatus }: Pick<TreeViewItemInterface, 'itemId' | 'checkedStatus'>): void;
|
|
6
7
|
selectAll(): void;
|
|
@@ -71,7 +72,7 @@ export interface UseTreeViewProps {
|
|
|
71
72
|
* selectAll(): void - action that allows to select all items,
|
|
72
73
|
* clearAll(): void - action that allows to unselect all items.
|
|
73
74
|
*/
|
|
74
|
-
apiRef?: React.MutableRefObject<TreeViewApi>;
|
|
75
|
+
apiRef?: React.MutableRefObject<TreeViewApi | undefined>;
|
|
75
76
|
/**
|
|
76
77
|
* If true, every item is disabled
|
|
77
78
|
* @default false
|
|
@@ -57,4 +57,5 @@ export declare const toggleAllMulti: ({ items, checkedStatus, checkChildren, che
|
|
|
57
57
|
export declare const getInitialExpandedIds: ({ items, initialExpandedItems }: {
|
|
58
58
|
items: TreeViewItemInterface[];
|
|
59
59
|
} & Pick<UseTreeViewProps, "initialExpandedItems">) => any[];
|
|
60
|
+
export declare const isEqualArrays: <T>(arrayA: T[], arrayB: T[]) => boolean;
|
|
60
61
|
export declare const isSelectedItemsChanged: (prevSelectedItems: TreeItemSelectedInterface[] | null, selectedItems: TreeItemSelectedInterface[]) => boolean;
|