@elliemae/ds-modal 2.0.0-alpha.11 → 2.0.0-alpha.12
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/cjs/DSModal.js +5 -0
- package/cjs/v1/DSModal.js +44 -39
- package/cjs/v1/DSModalWrapper.js +23 -17
- package/cjs/v1/ModalFeedBack/ModalFeedBack.js +24 -29
- package/cjs/v2/DSModal.js +40 -33
- package/cjs/v2/blocks.js +72 -48
- package/cjs/v2/components/DecisionHeader.js +21 -19
- package/cjs/v2/components/FeedbackIcon.js +16 -22
- package/cjs/v2/components/Footer.js +43 -35
- package/cjs/v2/components/FormHeader.js +30 -28
- package/cjs/v2/components/ModalContent.js +84 -76
- package/cjs/v2/components/SelectionHeader.js +27 -20
- package/cjs/v2/components/Title.js +11 -8
- package/cjs/v2/helpers.js +21 -16
- package/esm/DSModal.js +5 -0
- package/esm/v1/DSModal.js +44 -38
- package/esm/v1/DSModalWrapper.js +23 -17
- package/esm/v1/ModalFeedBack/ModalFeedBack.js +19 -20
- package/esm/v2/DSModal.js +40 -33
- package/esm/v2/blocks.js +72 -48
- package/esm/v2/components/DecisionHeader.js +21 -18
- package/esm/v2/components/FeedbackIcon.js +11 -12
- package/esm/v2/components/Footer.js +43 -35
- package/esm/v2/components/FormHeader.js +30 -27
- package/esm/v2/components/ModalContent.js +84 -76
- package/esm/v2/components/SelectionHeader.js +27 -19
- package/esm/v2/components/Title.js +11 -8
- package/esm/v2/helpers.js +21 -16
- package/package.json +13 -4
- package/types/v1/DSModal.d.ts +1 -1
- package/types/v2/DSModal.d.ts +197 -28
- package/types/v2/components/SelectionHeader.d.ts +1 -1
package/types/v2/DSModal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
import { DSModalContent } from './components/ModalContent';
|
|
3
4
|
declare const DSModal: {
|
|
@@ -33,59 +34,227 @@ declare const DSModal: {
|
|
|
33
34
|
}): JSX.Element;
|
|
34
35
|
propTypes: {
|
|
35
36
|
/** inject props to container wrapper */
|
|
36
|
-
containerProps:
|
|
37
|
+
containerProps: {
|
|
38
|
+
defaultValue<T = unknown>(arg: T): {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
37
43
|
/** css class */
|
|
38
|
-
className:
|
|
44
|
+
className: {
|
|
45
|
+
defaultValue<T = unknown>(arg: T): {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
39
50
|
/** style object for container wrapper */
|
|
40
|
-
style:
|
|
51
|
+
style: {
|
|
52
|
+
defaultValue<T = unknown>(arg: T): {
|
|
53
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
55
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
41
57
|
/** modal container title */
|
|
42
|
-
modalTitle:
|
|
58
|
+
modalTitle: {
|
|
59
|
+
defaultValue<T = unknown>(arg: T): {
|
|
60
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
62
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
43
64
|
/** center container */
|
|
44
|
-
centered:
|
|
65
|
+
centered: {
|
|
66
|
+
defaultValue<T = unknown>(arg: T): {
|
|
67
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
68
|
+
};
|
|
69
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
45
71
|
/** show reject button */
|
|
46
|
-
showRejectButton:
|
|
72
|
+
showRejectButton: {
|
|
73
|
+
defaultValue<T = unknown>(arg: T): {
|
|
74
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
75
|
+
};
|
|
76
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
47
78
|
/** show close button */
|
|
48
|
-
showClose:
|
|
49
|
-
|
|
79
|
+
showClose: {
|
|
80
|
+
defaultValue<T = unknown>(arg: T): {
|
|
81
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
82
|
+
};
|
|
83
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
84
|
+
};
|
|
85
|
+
searchProps: {
|
|
86
|
+
defaultValue<T = unknown>(arg: T): {
|
|
87
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
88
|
+
};
|
|
89
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
90
|
+
};
|
|
50
91
|
/** css class for footer */
|
|
51
|
-
additionalFooterCssClass:
|
|
92
|
+
additionalFooterCssClass: {
|
|
93
|
+
defaultValue<T = unknown>(arg: T): {
|
|
94
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
95
|
+
};
|
|
96
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
97
|
+
};
|
|
52
98
|
/** override props confirm button */
|
|
53
|
-
overridePropsConfirmButton:
|
|
99
|
+
overridePropsConfirmButton: {
|
|
100
|
+
defaultValue<T = unknown>(arg: T): {
|
|
101
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
102
|
+
};
|
|
103
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
104
|
+
};
|
|
54
105
|
/** override props reject button */
|
|
55
|
-
overridePropsRejectButton:
|
|
106
|
+
overridePropsRejectButton: {
|
|
107
|
+
defaultValue<T = unknown>(arg: T): {
|
|
108
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
109
|
+
};
|
|
110
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
111
|
+
};
|
|
56
112
|
/** controlled isOpen flag */
|
|
57
|
-
isOpen:
|
|
113
|
+
isOpen: {
|
|
114
|
+
defaultValue<T = unknown>(arg: T): {
|
|
115
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
116
|
+
};
|
|
117
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
118
|
+
};
|
|
58
119
|
/** close callback */
|
|
59
|
-
onClose:
|
|
120
|
+
onClose: {
|
|
121
|
+
defaultValue<T = unknown>(arg: T): {
|
|
122
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
123
|
+
};
|
|
124
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
125
|
+
};
|
|
60
126
|
/** after open callback */
|
|
61
|
-
onAfterOpen:
|
|
127
|
+
onAfterOpen: {
|
|
128
|
+
defaultValue<T = unknown>(arg: T): {
|
|
129
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
130
|
+
};
|
|
131
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
132
|
+
};
|
|
62
133
|
/** confirm callback */
|
|
63
|
-
onConfirm:
|
|
134
|
+
onConfirm: {
|
|
135
|
+
defaultValue<T = unknown>(arg: T): {
|
|
136
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
137
|
+
};
|
|
138
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
139
|
+
};
|
|
64
140
|
/** reject callback */
|
|
65
|
-
onReject:
|
|
141
|
+
onReject: {
|
|
142
|
+
defaultValue<T = unknown>(arg: T): {
|
|
143
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
144
|
+
};
|
|
145
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
146
|
+
};
|
|
66
147
|
/** reject label */
|
|
67
|
-
rejectLabel:
|
|
148
|
+
rejectLabel: {
|
|
149
|
+
defaultValue<T = unknown>(arg: T): {
|
|
150
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
151
|
+
};
|
|
152
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
153
|
+
};
|
|
68
154
|
/** confirm text string */
|
|
69
|
-
confirmLabel:
|
|
155
|
+
confirmLabel: {
|
|
156
|
+
defaultValue<T = unknown>(arg: T): {
|
|
157
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
158
|
+
};
|
|
159
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
160
|
+
};
|
|
70
161
|
/** modal container size */
|
|
71
|
-
size:
|
|
162
|
+
size: {
|
|
163
|
+
defaultValue<T = unknown>(arg: T): {
|
|
164
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
165
|
+
};
|
|
166
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
167
|
+
};
|
|
72
168
|
/** modal sub type */
|
|
73
|
-
modalSubType:
|
|
169
|
+
modalSubType: {
|
|
170
|
+
defaultValue<T = unknown>(arg: T): {
|
|
171
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
172
|
+
};
|
|
173
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
174
|
+
};
|
|
74
175
|
/** modal type */
|
|
75
|
-
modalType:
|
|
176
|
+
modalType: {
|
|
177
|
+
defaultValue<T = unknown>(arg: T): {
|
|
178
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
179
|
+
};
|
|
180
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
181
|
+
};
|
|
76
182
|
/** ref for modal footer actions */
|
|
77
|
-
actionsRef:
|
|
183
|
+
actionsRef: {
|
|
184
|
+
defaultValue<T = unknown>(arg: T): {
|
|
185
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
186
|
+
};
|
|
187
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
188
|
+
};
|
|
78
189
|
/** modal container children */
|
|
79
|
-
children:
|
|
190
|
+
children: {
|
|
191
|
+
defaultValue<T = unknown>(arg: T): {
|
|
192
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
193
|
+
};
|
|
194
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
195
|
+
};
|
|
80
196
|
/** close on click outside container */
|
|
81
|
-
shouldCloseOnOverlayClick:
|
|
82
|
-
|
|
197
|
+
shouldCloseOnOverlayClick: {
|
|
198
|
+
defaultValue<T = unknown>(arg: T): {
|
|
199
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
200
|
+
};
|
|
201
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
202
|
+
};
|
|
203
|
+
appElement: {
|
|
204
|
+
defaultValue<T = unknown>(arg: T): {
|
|
205
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
206
|
+
};
|
|
207
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
208
|
+
};
|
|
83
209
|
/** zindex for modal container */
|
|
84
|
-
zIndex:
|
|
210
|
+
zIndex: {
|
|
211
|
+
defaultValue<T = unknown>(arg: T): {
|
|
212
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
213
|
+
};
|
|
214
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
215
|
+
};
|
|
85
216
|
/** remove modal builtin padding */
|
|
86
|
-
removePadding:
|
|
217
|
+
removePadding: {
|
|
218
|
+
defaultValue<T = unknown>(arg: T): {
|
|
219
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
220
|
+
};
|
|
221
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
222
|
+
};
|
|
87
223
|
};
|
|
88
224
|
};
|
|
89
|
-
declare const DSModalWithSchema:
|
|
225
|
+
declare const DSModalWithSchema: {
|
|
226
|
+
(props?: {
|
|
227
|
+
containerProps?: {} | undefined;
|
|
228
|
+
className?: string | undefined;
|
|
229
|
+
style?: {} | undefined;
|
|
230
|
+
size?: string | undefined;
|
|
231
|
+
modalType?: string | undefined;
|
|
232
|
+
modalSubType?: null | undefined;
|
|
233
|
+
modalTitle?: string | undefined;
|
|
234
|
+
dataTestId?: string | undefined;
|
|
235
|
+
centered?: boolean | undefined;
|
|
236
|
+
showRejectButton?: boolean | undefined;
|
|
237
|
+
showClose?: boolean | undefined;
|
|
238
|
+
searchProps?: {} | undefined;
|
|
239
|
+
actionsRef?: (() => null) | undefined;
|
|
240
|
+
additionalFooterCssClass: any;
|
|
241
|
+
overridePropsConfirmButton?: {} | undefined;
|
|
242
|
+
overridePropsRejectButton?: {} | undefined;
|
|
243
|
+
children: any;
|
|
244
|
+
isOpen?: boolean | undefined;
|
|
245
|
+
onClose?: (() => null) | undefined;
|
|
246
|
+
onAfterOpen?: (() => null) | undefined;
|
|
247
|
+
onConfirm?: (() => null) | undefined;
|
|
248
|
+
onReject?: (() => null) | undefined;
|
|
249
|
+
rejectLabel?: string | undefined;
|
|
250
|
+
confirmLabel?: string | undefined;
|
|
251
|
+
shouldCloseOnOverlayClick?: boolean | undefined;
|
|
252
|
+
appElement?: string | undefined;
|
|
253
|
+
zIndex?: number | undefined;
|
|
254
|
+
removePadding?: boolean | undefined;
|
|
255
|
+
} | undefined): JSX.Element;
|
|
256
|
+
propTypes: unknown;
|
|
257
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
258
|
+
};
|
|
90
259
|
export { DSModalContent, DSModalWithSchema };
|
|
91
260
|
export default DSModal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SelectionHeader: ({ searchProps, modalTitle, modalType, showClose
|
|
2
|
+
export declare const SelectionHeader: ({ searchProps, modalTitle, modalType, showClose }: {
|
|
3
3
|
searchProps?: {} | undefined;
|
|
4
4
|
modalTitle: any;
|
|
5
5
|
modalType: any;
|