@elliemae/ds-resizeable-container 2.0.0-rc.6 → 2.0.0
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/package.json +6 -3
- package/types/Resizable.d.ts +43 -6
- package/types/props.d.ts +31 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-resizeable-container",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Resizeable Container",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -44,11 +44,14 @@
|
|
|
44
44
|
"build": "node ../../scripts/build/build.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@elliemae/ds-grid": "2.0.0
|
|
48
|
-
"@elliemae/ds-system": "2.0.0
|
|
47
|
+
"@elliemae/ds-grid": "2.0.0",
|
|
48
|
+
"@elliemae/ds-system": "2.0.0",
|
|
49
49
|
"react-desc": "~4.1.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
+
"@testing-library/jest-dom": "~5.15.0",
|
|
53
|
+
"@testing-library/react": "~12.1.2",
|
|
54
|
+
"@testing-library/user-event": "~13.5.0",
|
|
52
55
|
"styled-components": "~5.3.3"
|
|
53
56
|
},
|
|
54
57
|
"peerDependencies": {
|
package/types/Resizable.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare function ResizableContainer({ children, cols, rows, vertical, horizontal, ...rest }: {
|
|
3
4
|
[x: string]: any;
|
|
@@ -9,17 +10,53 @@ declare function ResizableContainer({ children, cols, rows, vertical, horizontal
|
|
|
9
10
|
}): JSX.Element;
|
|
10
11
|
declare namespace ResizableContainer {
|
|
11
12
|
var propTypes: {
|
|
12
|
-
children:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
children: {
|
|
14
|
+
defaultValue<T = unknown>(arg: T): {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
vertical: {
|
|
20
|
+
defaultValue<T = unknown>(arg: T): {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
horizontal: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
31
|
+
rows: {
|
|
32
|
+
defaultValue<T = unknown>(arg: T): {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
cols: {
|
|
38
|
+
defaultValue<T = unknown>(arg: T): {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
17
43
|
};
|
|
18
44
|
var defaultProps: {
|
|
19
45
|
vertical: boolean;
|
|
20
46
|
horizontal: boolean;
|
|
21
47
|
};
|
|
22
48
|
}
|
|
23
|
-
declare const DSResizableContainerWithSchema:
|
|
49
|
+
declare const DSResizableContainerWithSchema: {
|
|
50
|
+
(props?: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
children: any;
|
|
53
|
+
cols: any;
|
|
54
|
+
rows: any;
|
|
55
|
+
vertical: any;
|
|
56
|
+
horizontal: any;
|
|
57
|
+
} | undefined): JSX.Element;
|
|
58
|
+
propTypes: unknown;
|
|
59
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
60
|
+
};
|
|
24
61
|
export { ResizableContainer, DSResizableContainerWithSchema };
|
|
25
62
|
export default ResizableContainer;
|
package/types/props.d.ts
CHANGED
|
@@ -1,12 +1,38 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
export declare const props: {
|
|
2
3
|
/** grid item content */
|
|
3
|
-
children:
|
|
4
|
+
children: {
|
|
5
|
+
defaultValue<T = unknown>(arg: T): {
|
|
6
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
|
+
};
|
|
8
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
4
10
|
/** vertical resizing */
|
|
5
|
-
vertical:
|
|
11
|
+
vertical: {
|
|
12
|
+
defaultValue<T = unknown>(arg: T): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
6
17
|
/** horizontal resizing */
|
|
7
|
-
horizontal:
|
|
18
|
+
horizontal: {
|
|
19
|
+
defaultValue<T = unknown>(arg: T): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
8
24
|
/** Row layout cells */
|
|
9
|
-
rows:
|
|
25
|
+
rows: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
10
31
|
/** Column layout cells */
|
|
11
|
-
cols:
|
|
32
|
+
cols: {
|
|
33
|
+
defaultValue<T = unknown>(arg: T): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
12
38
|
};
|