@elliemae/ds-modal-slide 2.0.0-rc.5 → 2.0.0-rc.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal-slide",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal Slide",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -48,14 +48,17 @@
|
|
|
48
48
|
"build": "node ../../scripts/build/build.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-
|
|
52
|
-
"@elliemae/ds-classnames": "2.0.0-rc.
|
|
53
|
-
"@elliemae/ds-
|
|
54
|
-
"@elliemae/ds-
|
|
51
|
+
"@elliemae/ds-button": "2.0.0-rc.9",
|
|
52
|
+
"@elliemae/ds-classnames": "2.0.0-rc.9",
|
|
53
|
+
"@elliemae/ds-grid": "2.0.0-rc.9",
|
|
54
|
+
"@elliemae/ds-icons": "2.0.0-rc.9",
|
|
55
|
+
"@elliemae/ds-separator": "2.0.0-rc.9",
|
|
56
|
+
"@elliemae/ds-system": "2.0.0-rc.9",
|
|
55
57
|
"prop-types": "~15.7.2",
|
|
56
58
|
"react-desc": "~4.1.3"
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
61
|
+
"@testing-library/react": "~12.1.2",
|
|
59
62
|
"styled-components": "~5.3.3"
|
|
60
63
|
},
|
|
61
64
|
"peerDependencies": {
|
package/types/DSModalSlide.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import ModalHeader from './components/Header';
|
|
3
4
|
import ModalFooter from './components/Footer';
|
|
@@ -18,11 +19,21 @@ declare const DSModalSlide: {
|
|
|
18
19
|
/**
|
|
19
20
|
* If the modal slide is centered or not
|
|
20
21
|
*/
|
|
21
|
-
centered:
|
|
22
|
+
centered: {
|
|
23
|
+
defaultValue<T = unknown>(arg: T): {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
22
28
|
/**
|
|
23
29
|
* If the modal slide is visible or not
|
|
24
30
|
*/
|
|
25
|
-
isOpen:
|
|
31
|
+
isOpen: {
|
|
32
|
+
defaultValue<T = unknown>(arg: T): {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
26
37
|
/**
|
|
27
38
|
* Main content of the modal
|
|
28
39
|
*/
|
|
@@ -30,25 +41,65 @@ declare const DSModalSlide: {
|
|
|
30
41
|
/**
|
|
31
42
|
* If the modal slide takes the full width or not
|
|
32
43
|
*/
|
|
33
|
-
fullWidth:
|
|
44
|
+
fullWidth: {
|
|
45
|
+
defaultValue<T = unknown>(arg: T): {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
34
50
|
/**
|
|
35
51
|
* If the modal slide has a header, only available for full width option
|
|
36
52
|
*/
|
|
37
|
-
header:
|
|
53
|
+
header: {
|
|
54
|
+
defaultValue<T = unknown>(arg: T): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
38
59
|
/**
|
|
39
60
|
* Ratio of fade out
|
|
40
61
|
*/
|
|
41
|
-
fadeOut:
|
|
62
|
+
fadeOut: {
|
|
63
|
+
defaultValue<T = unknown>(arg: T): {
|
|
64
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
42
68
|
/**
|
|
43
69
|
* Ratio of fade in
|
|
44
70
|
*/
|
|
45
|
-
fadeIn:
|
|
71
|
+
fadeIn: {
|
|
72
|
+
defaultValue<T = unknown>(arg: T): {
|
|
73
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
74
|
+
};
|
|
75
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
76
|
+
};
|
|
46
77
|
/**
|
|
47
78
|
* Override the panel height to scroll height of the container
|
|
48
79
|
*/
|
|
49
|
-
overrideHeight:
|
|
80
|
+
overrideHeight: {
|
|
81
|
+
defaultValue<T = unknown>(arg: T): {
|
|
82
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
83
|
+
};
|
|
84
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
50
86
|
};
|
|
51
87
|
};
|
|
52
|
-
declare const DSModalSlideWithSchema:
|
|
88
|
+
declare const DSModalSlideWithSchema: {
|
|
89
|
+
(props?: {
|
|
90
|
+
isOpen?: boolean | undefined;
|
|
91
|
+
children: any;
|
|
92
|
+
getContainer: any;
|
|
93
|
+
centered?: boolean | undefined;
|
|
94
|
+
fullWidth?: boolean | undefined;
|
|
95
|
+
header?: null | undefined;
|
|
96
|
+
footer?: null | undefined;
|
|
97
|
+
fadeOut?: number | undefined;
|
|
98
|
+
fadeIn?: number | undefined;
|
|
99
|
+
overrideHeight?: boolean | undefined;
|
|
100
|
+
} | undefined): JSX.Element;
|
|
101
|
+
propTypes: unknown;
|
|
102
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
103
|
+
};
|
|
53
104
|
export { ModalHeader, ModalFooter, DSModalSlide, DSModalSlideWithSchema };
|
|
54
105
|
export default DSModalSlide;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const ModalFooter: {
|
|
3
4
|
({ confirmLabel, rejectLabel, onConfirm, onReject, confirmProps, rejectProps, }: {
|
|
@@ -16,29 +17,74 @@ declare const ModalFooter: {
|
|
|
16
17
|
/**
|
|
17
18
|
* Confirm Label
|
|
18
19
|
*/
|
|
19
|
-
confirmLabel:
|
|
20
|
+
confirmLabel: {
|
|
21
|
+
defaultValue<T = unknown>(arg: T): {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
20
26
|
/**
|
|
21
27
|
* Reject Label
|
|
22
28
|
*/
|
|
23
|
-
rejectLabel:
|
|
29
|
+
rejectLabel: {
|
|
30
|
+
defaultValue<T = unknown>(arg: T): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
24
35
|
/**
|
|
25
36
|
* Callback
|
|
26
37
|
*/
|
|
27
|
-
onConfirm:
|
|
38
|
+
onConfirm: {
|
|
39
|
+
defaultValue<T = unknown>(arg: T): {
|
|
40
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
42
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
28
44
|
/**
|
|
29
45
|
* Callback
|
|
30
46
|
*/
|
|
31
|
-
onReject:
|
|
47
|
+
onReject: {
|
|
48
|
+
defaultValue<T = unknown>(arg: T): {
|
|
49
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
+
};
|
|
51
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
52
|
+
};
|
|
32
53
|
/**
|
|
33
54
|
* Extra DSButton props for confirm btn.
|
|
34
55
|
*/
|
|
35
|
-
confirmProps:
|
|
56
|
+
confirmProps: {
|
|
57
|
+
defaultValue<T = unknown>(arg: T): {
|
|
58
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
59
|
+
};
|
|
60
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
36
62
|
/**
|
|
37
63
|
* Extra DSButton props for reject btn.
|
|
38
64
|
*/
|
|
39
|
-
rejectProps:
|
|
65
|
+
rejectProps: {
|
|
66
|
+
defaultValue<T = unknown>(arg: T): {
|
|
67
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
68
|
+
};
|
|
69
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
40
71
|
};
|
|
41
72
|
};
|
|
42
|
-
declare const DSModalSlideFooterWithSchema:
|
|
73
|
+
declare const DSModalSlideFooterWithSchema: {
|
|
74
|
+
(props?: {
|
|
75
|
+
confirmLabel?: string | undefined;
|
|
76
|
+
rejectLabel?: string | undefined;
|
|
77
|
+
onConfirm: any;
|
|
78
|
+
onReject: any;
|
|
79
|
+
confirmProps?: {
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
} | undefined;
|
|
82
|
+
rejectProps?: {
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
} | undefined;
|
|
85
|
+
} | undefined): JSX.Element;
|
|
86
|
+
propTypes: unknown;
|
|
87
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
88
|
+
};
|
|
43
89
|
export { DSModalSlideFooterWithSchema };
|
|
44
90
|
export default ModalFooter;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const ModalHeader: {
|
|
3
4
|
({ title: headerTitle, onClose, toolbar }: {
|
|
@@ -7,13 +8,36 @@ declare const ModalHeader: {
|
|
|
7
8
|
}): JSX.Element;
|
|
8
9
|
propTypes: {
|
|
9
10
|
/** on modal close callback */
|
|
10
|
-
onClose:
|
|
11
|
+
onClose: {
|
|
12
|
+
defaultValue<T = unknown>(arg: T): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
11
17
|
/** modal toolbar component */
|
|
12
|
-
toolbar:
|
|
18
|
+
toolbar: {
|
|
19
|
+
defaultValue<T = unknown>(arg: T): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
13
24
|
/** modal title */
|
|
14
|
-
title:
|
|
25
|
+
title: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
15
31
|
};
|
|
16
32
|
};
|
|
17
|
-
declare const DSModalSlideHeaderWithSchema:
|
|
33
|
+
declare const DSModalSlideHeaderWithSchema: {
|
|
34
|
+
(props?: {
|
|
35
|
+
title?: string | undefined;
|
|
36
|
+
onClose?: (() => null) | undefined;
|
|
37
|
+
toolbar?: null | undefined;
|
|
38
|
+
} | undefined): JSX.Element;
|
|
39
|
+
propTypes: unknown;
|
|
40
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
41
|
+
};
|
|
18
42
|
export { DSModalSlideHeaderWithSchema };
|
|
19
43
|
export default ModalHeader;
|