@elliemae/ds-modal 1.60.0 → 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 +59 -68
- package/cjs/constants.js +5 -6
- package/cjs/index.js +6 -29
- package/cjs/v1/DSModal.js +142 -13
- package/cjs/v1/DSModalType.js +1 -2
- package/cjs/v1/DSModalWrapper.js +116 -143
- package/cjs/v1/ModalFeedBack/ModalFeedBack.js +54 -55
- package/cjs/v2/DSModal.js +63 -102
- package/cjs/v2/blocks.js +65 -43
- package/cjs/v2/components/DecisionHeader.js +15 -15
- package/cjs/v2/components/FeedbackIcon.js +24 -23
- package/cjs/v2/components/Footer.js +50 -40
- package/cjs/v2/components/FormHeader.js +19 -19
- package/cjs/v2/components/ModalContent.js +99 -112
- package/cjs/v2/components/SelectionHeader.js +28 -19
- package/cjs/v2/components/Title.js +12 -13
- package/cjs/v2/helpers.js +17 -8
- package/esm/DSModal.js +23 -32
- package/esm/constants.js +4 -5
- package/esm/index.js +0 -23
- package/esm/v1/DSModal.js +138 -12
- package/esm/v1/DSModalType.js +1 -2
- package/esm/v1/DSModalWrapper.js +115 -137
- package/esm/v1/ModalFeedBack/ModalFeedBack.js +53 -54
- package/esm/v2/DSModal.js +54 -93
- package/esm/v2/blocks.js +65 -39
- package/esm/v2/components/DecisionHeader.js +12 -12
- package/esm/v2/components/FeedbackIcon.js +21 -20
- package/esm/v2/components/Footer.js +46 -36
- package/esm/v2/components/FormHeader.js +15 -15
- package/esm/v2/components/ModalContent.js +89 -103
- package/esm/v2/components/SelectionHeader.js +23 -15
- package/esm/v2/components/Title.js +9 -10
- package/esm/v2/helpers.js +17 -8
- package/package.json +101 -14
- package/types/DSModal.d.ts +14 -0
- package/types/constants.d.ts +25 -0
- package/types/index.d.ts +4 -0
- package/types/v1/DSModal.d.ts +143 -0
- package/types/v1/DSModalType.d.ts +1 -0
- package/types/v1/ModalFeedBack/ModalFeedBack.d.ts +11 -0
- package/types/v2/DSModal.d.ts +260 -0
- package/types/v2/blocks.d.ts +9 -0
- package/types/v2/components/DecisionHeader.d.ts +6 -0
- package/types/v2/components/FeedbackIcon.d.ts +5 -0
- package/types/v2/components/Footer.d.ts +13 -0
- package/types/v2/components/FormHeader.d.ts +8 -0
- package/types/v2/components/ModalContent.d.ts +21 -0
- package/types/v2/components/SelectionHeader.d.ts +8 -0
- package/types/v2/components/Title.d.ts +6 -0
- package/types/v2/components/tests/DecisionHeader.test.d.ts +1 -0
- package/types/v2/components/tests/FeedbackIcon.test.d.ts +1 -0
- package/types/v2/components/tests/Footer.test.d.ts +1 -0
- package/types/v2/components/tests/FormHeader.test.d.ts +1 -0
- package/types/v2/components/tests/SelectionHeader.test.d.ts +1 -0
- package/types/v2/helpers.d.ts +16 -0
- package/types/v2/tests/DSModal.test.d.ts +1 -0
- package/DSModal/package.json +0 -10
- package/cjs/DSModal-3126a986.js +0 -316
- package/cjs/DSModal-3126a986.js.map +0 -1
- package/cjs/DSModal.js.map +0 -1
- package/cjs/constants.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/v1/DSModal.js.map +0 -1
- package/cjs/v1/DSModalType.js.map +0 -1
- package/cjs/v1/DSModalWrapper.js.map +0 -1
- package/cjs/v1/ModalFeedBack/ModalFeedBack.js.map +0 -1
- package/cjs/v2/DSModal.js.map +0 -1
- package/cjs/v2/blocks.js.map +0 -1
- package/cjs/v2/components/DecisionHeader.js.map +0 -1
- package/cjs/v2/components/FeedbackIcon.js.map +0 -1
- package/cjs/v2/components/Footer.js.map +0 -1
- package/cjs/v2/components/FormHeader.js.map +0 -1
- package/cjs/v2/components/ModalContent.js.map +0 -1
- package/cjs/v2/components/SelectionHeader.js.map +0 -1
- package/cjs/v2/components/Title.js.map +0 -1
- package/cjs/v2/helpers.js.map +0 -1
- package/constants/package.json +0 -10
- package/esm/DSModal-a8b0fbf0.js +0 -303
- package/esm/DSModal-a8b0fbf0.js.map +0 -1
- package/esm/DSModal.js.map +0 -1
- package/esm/constants.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/v1/DSModal.js.map +0 -1
- package/esm/v1/DSModalType.js.map +0 -1
- package/esm/v1/DSModalWrapper.js.map +0 -1
- package/esm/v1/ModalFeedBack/ModalFeedBack.js.map +0 -1
- package/esm/v2/DSModal.js.map +0 -1
- package/esm/v2/blocks.js.map +0 -1
- package/esm/v2/components/DecisionHeader.js.map +0 -1
- package/esm/v2/components/FeedbackIcon.js.map +0 -1
- package/esm/v2/components/Footer.js.map +0 -1
- package/esm/v2/components/FormHeader.js.map +0 -1
- package/esm/v2/components/ModalContent.js.map +0 -1
- package/esm/v2/components/SelectionHeader.js.map +0 -1
- package/esm/v2/components/Title.js.map +0 -1
- package/esm/v2/helpers.js.map +0 -1
- package/v1/DSModal/package.json +0 -10
- package/v1/DSModalType/package.json +0 -10
- package/v1/DSModalWrapper/package.json +0 -10
- package/v1/ModalFeedBack/ModalFeedBack/package.json +0 -10
- package/v2/DSModal/package.json +0 -10
- package/v2/blocks/package.json +0 -10
- package/v2/components/DecisionHeader/package.json +0 -10
- package/v2/components/FeedbackIcon/package.json +0 -10
- package/v2/components/Footer/package.json +0 -10
- package/v2/components/FormHeader/package.json +0 -10
- package/v2/components/ModalContent/package.json +0 -10
- package/v2/components/SelectionHeader/package.json +0 -10
- package/v2/components/Title/package.json +0 -10
- package/v2/helpers/package.json +0 -10
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
8
|
+
import 'react';
|
|
2
9
|
import { MODAL_TYPE_V2 } from '../../constants.js';
|
|
3
10
|
import { SelectionHeader } from './SelectionHeader.js';
|
|
4
11
|
import { DecisionHeader } from './DecisionHeader.js';
|
|
@@ -8,110 +15,89 @@ import { Footer } from './Footer.js';
|
|
|
8
15
|
import { Title } from './Title.js';
|
|
9
16
|
import { showForm, showSelection, showDecision, showFeedBack, showFooter } from '../helpers.js';
|
|
10
17
|
import { ModalWrapper, ModalContent } from '../blocks.js';
|
|
11
|
-
import '
|
|
12
|
-
import '@elliemae/ds-icons';
|
|
13
|
-
import '@elliemae/ds-button';
|
|
14
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
15
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
16
|
-
import '@elliemae/ds-classnames';
|
|
18
|
+
import { jsxs } from 'react/jsx-runtime';
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
removePadding: removePadding
|
|
99
|
-
}
|
|
100
|
-
}, children), showFooter({
|
|
101
|
-
modalType: modalType,
|
|
102
|
-
modalSubType: modalSubType
|
|
103
|
-
}) && /*#__PURE__*/React.createElement(Footer, {
|
|
104
|
-
actionsRef: actionsRef,
|
|
105
|
-
additionalFooterCssClass: additionalFooterCssClass,
|
|
106
|
-
confirmLabel: confirmLabel,
|
|
107
|
-
onConfirm: onConfirm,
|
|
108
|
-
onReject: onReject,
|
|
109
|
-
overridePropsConfirmButton: overridePropsConfirmButton,
|
|
110
|
-
overridePropsRejectButton: overridePropsRejectButton,
|
|
111
|
-
rejectLabel: rejectLabel,
|
|
112
|
-
showRejectButton: showRejectButton
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
23
|
+
const DSModalContent = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
containerProps = {},
|
|
26
|
+
//
|
|
27
|
+
modalType = MODAL_TYPE_V2.INFORMATION,
|
|
28
|
+
modalSubType = null,
|
|
29
|
+
modalTitle = '',
|
|
30
|
+
showRejectButton = false,
|
|
31
|
+
showClose = true,
|
|
32
|
+
searchProps = {},
|
|
33
|
+
// override
|
|
34
|
+
actionsRef = () => null,
|
|
35
|
+
additionalFooterCssClass,
|
|
36
|
+
overridePropsConfirmButton = {},
|
|
37
|
+
overridePropsRejectButton = {},
|
|
38
|
+
// react modal
|
|
39
|
+
children,
|
|
40
|
+
onClose = () => null,
|
|
41
|
+
onConfirm = () => null,
|
|
42
|
+
onReject = () => null,
|
|
43
|
+
rejectLabel = 'Discard',
|
|
44
|
+
confirmLabel = 'Save',
|
|
45
|
+
removePadding = false
|
|
46
|
+
} = _ref;
|
|
47
|
+
return /*#__PURE__*/jsxs(ModalWrapper, _objectSpread(_objectSpread({}, containerProps), {}, {
|
|
48
|
+
children: [showForm({
|
|
49
|
+
modalType,
|
|
50
|
+
modalSubType
|
|
51
|
+
}) && /*#__PURE__*/_jsx(FormHeader, {
|
|
52
|
+
modalTitle: modalTitle,
|
|
53
|
+
modalType: modalType,
|
|
54
|
+
onClose: onClose,
|
|
55
|
+
showClose: showClose
|
|
56
|
+
}), showSelection({
|
|
57
|
+
modalType,
|
|
58
|
+
modalSubType
|
|
59
|
+
}) && /*#__PURE__*/_jsx(SelectionHeader, {
|
|
60
|
+
modalTitle: modalTitle,
|
|
61
|
+
modalType: modalType,
|
|
62
|
+
searchProps: searchProps,
|
|
63
|
+
showClose: showClose
|
|
64
|
+
}), showDecision({
|
|
65
|
+
modalType,
|
|
66
|
+
modalSubType
|
|
67
|
+
}) && /*#__PURE__*/_jsx(DecisionHeader, {
|
|
68
|
+
onClose: onClose,
|
|
69
|
+
showClose: showClose
|
|
70
|
+
}), showFeedBack({
|
|
71
|
+
modalType,
|
|
72
|
+
modalSubType
|
|
73
|
+
}) && /*#__PURE__*/_jsx(FeedbackIcon, {
|
|
74
|
+
modalSubType: modalSubType
|
|
75
|
+
}), showDecision({
|
|
76
|
+
modalType,
|
|
77
|
+
modalSubType
|
|
78
|
+
}) && /*#__PURE__*/_jsx(Title, {
|
|
79
|
+
modalTitle: modalTitle,
|
|
80
|
+
modalType: modalType
|
|
81
|
+
}), /*#__PURE__*/_jsx(ModalContent, {
|
|
82
|
+
classProps: {
|
|
83
|
+
type: modalType,
|
|
84
|
+
removePadding
|
|
85
|
+
}
|
|
86
|
+
}, void 0, children), showFooter({
|
|
87
|
+
modalType,
|
|
88
|
+
modalSubType
|
|
89
|
+
}) && /*#__PURE__*/_jsx(Footer, {
|
|
90
|
+
actionsRef: actionsRef,
|
|
91
|
+
additionalFooterCssClass: additionalFooterCssClass,
|
|
92
|
+
confirmLabel: confirmLabel,
|
|
93
|
+
onConfirm: onConfirm,
|
|
94
|
+
onReject: onReject,
|
|
95
|
+
overridePropsConfirmButton: overridePropsConfirmButton,
|
|
96
|
+
overridePropsRejectButton: overridePropsRejectButton,
|
|
97
|
+
rejectLabel: rejectLabel,
|
|
98
|
+
showRejectButton: showRejectButton
|
|
99
|
+
})]
|
|
113
100
|
}));
|
|
114
101
|
};
|
|
115
102
|
|
|
116
103
|
export { DSModalContent };
|
|
117
|
-
//# sourceMappingURL=ModalContent.js.map
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
8
|
+
import 'react';
|
|
2
9
|
import { DSSearchBox } from '@elliemae/ds-form';
|
|
3
10
|
import { ModalHeader, ModalHeaderTopRight } from '../blocks.js';
|
|
4
11
|
import { Title } from './Title.js';
|
|
5
|
-
import '
|
|
6
|
-
import '@elliemae/ds-classnames';
|
|
12
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
13
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
+
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
17
|
+
const SelectionHeader = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
searchProps = {},
|
|
20
|
+
modalTitle,
|
|
21
|
+
modalType,
|
|
22
|
+
showClose
|
|
23
|
+
} = _ref;
|
|
24
|
+
return /*#__PURE__*/_jsx(ModalHeader, {
|
|
16
25
|
classProps: {
|
|
17
26
|
type: 'selection'
|
|
18
27
|
}
|
|
19
|
-
}, /*#__PURE__*/
|
|
28
|
+
}, void 0, /*#__PURE__*/_jsx(Title, {
|
|
20
29
|
modalTitle: modalTitle,
|
|
21
30
|
modalType: modalType
|
|
22
|
-
}), showClose && /*#__PURE__*/
|
|
31
|
+
}), showClose && /*#__PURE__*/_jsx(ModalHeaderTopRight, {
|
|
23
32
|
classProps: {
|
|
24
33
|
type: 'selection'
|
|
25
34
|
},
|
|
26
35
|
"data-testid": "modal-search-box"
|
|
27
|
-
}, /*#__PURE__*/
|
|
36
|
+
}, void 0, /*#__PURE__*/jsx(DSSearchBox, _objectSpread({}, searchProps))));
|
|
28
37
|
};
|
|
29
38
|
|
|
30
39
|
export { SelectionHeader, SelectionHeader as default };
|
|
31
|
-
//# sourceMappingURL=SelectionHeader.js.map
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'react';
|
|
2
3
|
import { ModalTitle } from '../blocks.js';
|
|
3
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
4
|
-
import '@elliemae/ds-classnames';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const Title = _ref => {
|
|
6
|
+
let {
|
|
7
|
+
modalTitle,
|
|
8
|
+
modalType
|
|
9
|
+
} = _ref;
|
|
10
|
+
return /*#__PURE__*/_jsx(ModalTitle, {
|
|
11
11
|
classProps: {
|
|
12
12
|
type: modalType
|
|
13
13
|
}
|
|
14
|
-
}, modalTitle);
|
|
14
|
+
}, void 0, modalTitle);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export { Title, Title as default };
|
|
18
|
-
//# sourceMappingURL=Title.js.map
|
package/esm/v2/helpers.js
CHANGED
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
import { MODAL_TYPE_V2, MODAL_SUB_TYPE_V2 } from '../constants.js';
|
|
2
2
|
|
|
3
3
|
function showDecision(_ref) {
|
|
4
|
-
|
|
4
|
+
let {
|
|
5
|
+
modalType
|
|
6
|
+
} = _ref;
|
|
5
7
|
return [MODAL_TYPE_V2.INFORMATION, MODAL_TYPE_V2.DECISION].indexOf(modalType) > -1;
|
|
6
8
|
}
|
|
7
9
|
function showFeedBack(_ref2) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
let {
|
|
11
|
+
modalType,
|
|
12
|
+
modalSubType
|
|
13
|
+
} = _ref2;
|
|
10
14
|
return showDecision({
|
|
11
|
-
modalType
|
|
15
|
+
modalType
|
|
12
16
|
}) && Object.values(MODAL_SUB_TYPE_V2).indexOf(modalSubType) > -1;
|
|
13
17
|
}
|
|
14
18
|
function showFooter(_ref3) {
|
|
15
|
-
|
|
19
|
+
let {
|
|
20
|
+
modalType
|
|
21
|
+
} = _ref3;
|
|
16
22
|
return modalType !== MODAL_TYPE_V2.INFORMATION;
|
|
17
23
|
}
|
|
18
24
|
function showSelection(_ref4) {
|
|
19
|
-
|
|
25
|
+
let {
|
|
26
|
+
modalType
|
|
27
|
+
} = _ref4;
|
|
20
28
|
return modalType === MODAL_TYPE_V2.SELECTION;
|
|
21
29
|
}
|
|
22
30
|
function showForm(_ref5) {
|
|
23
|
-
|
|
31
|
+
let {
|
|
32
|
+
modalType
|
|
33
|
+
} = _ref5;
|
|
24
34
|
return modalType === MODAL_TYPE_V2.FORM;
|
|
25
35
|
}
|
|
26
36
|
|
|
27
37
|
export { showDecision, showFeedBack, showFooter, showForm, showSelection };
|
|
28
|
-
//# sourceMappingURL=helpers.js.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,94 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.12",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
5
|
+
"description": "ICE MT - Dimsum - Modal",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./v2/helpers": {
|
|
15
|
+
"import": "./esm/v2/helpers.js",
|
|
16
|
+
"require": "./cjs/v2/helpers.js"
|
|
17
|
+
},
|
|
18
|
+
"./v2/DSModal": {
|
|
19
|
+
"import": "./esm/v2/DSModal.js",
|
|
20
|
+
"require": "./cjs/v2/DSModal.js"
|
|
21
|
+
},
|
|
22
|
+
"./v2/components/Title": {
|
|
23
|
+
"import": "./esm/v2/components/Title.js",
|
|
24
|
+
"require": "./cjs/v2/components/Title.js"
|
|
25
|
+
},
|
|
26
|
+
"./v2/components/SelectionHeader": {
|
|
27
|
+
"import": "./esm/v2/components/SelectionHeader.js",
|
|
28
|
+
"require": "./cjs/v2/components/SelectionHeader.js"
|
|
29
|
+
},
|
|
30
|
+
"./v2/components/ModalContent": {
|
|
31
|
+
"import": "./esm/v2/components/ModalContent.js",
|
|
32
|
+
"require": "./cjs/v2/components/ModalContent.js"
|
|
33
|
+
},
|
|
34
|
+
"./v2/components/FormHeader": {
|
|
35
|
+
"import": "./esm/v2/components/FormHeader.js",
|
|
36
|
+
"require": "./cjs/v2/components/FormHeader.js"
|
|
37
|
+
},
|
|
38
|
+
"./v2/components/Footer": {
|
|
39
|
+
"import": "./esm/v2/components/Footer.js",
|
|
40
|
+
"require": "./cjs/v2/components/Footer.js"
|
|
41
|
+
},
|
|
42
|
+
"./v2/components/FeedbackIcon": {
|
|
43
|
+
"import": "./esm/v2/components/FeedbackIcon.js",
|
|
44
|
+
"require": "./cjs/v2/components/FeedbackIcon.js"
|
|
45
|
+
},
|
|
46
|
+
"./v2/components/DecisionHeader": {
|
|
47
|
+
"import": "./esm/v2/components/DecisionHeader.js",
|
|
48
|
+
"require": "./cjs/v2/components/DecisionHeader.js"
|
|
49
|
+
},
|
|
50
|
+
"./v2/blocks": {
|
|
51
|
+
"import": "./esm/v2/blocks.js",
|
|
52
|
+
"require": "./cjs/v2/blocks.js"
|
|
53
|
+
},
|
|
54
|
+
"./v1/ModalFeedBack/ModalFeedBack": {
|
|
55
|
+
"import": "./esm/v1/ModalFeedBack/ModalFeedBack.js",
|
|
56
|
+
"require": "./cjs/v1/ModalFeedBack/ModalFeedBack.js"
|
|
57
|
+
},
|
|
58
|
+
"./v1/DSModalWrapper": {
|
|
59
|
+
"import": "./esm/v1/DSModalWrapper.js",
|
|
60
|
+
"require": "./cjs/v1/DSModalWrapper.js"
|
|
61
|
+
},
|
|
62
|
+
"./v1/DSModalType": {
|
|
63
|
+
"import": "./esm/v1/DSModalType.js",
|
|
64
|
+
"require": "./cjs/v1/DSModalType.js"
|
|
65
|
+
},
|
|
66
|
+
"./v1/DSModal": {
|
|
67
|
+
"import": "./esm/v1/DSModal.js",
|
|
68
|
+
"require": "./cjs/v1/DSModal.js"
|
|
69
|
+
},
|
|
70
|
+
"./DSModal": {
|
|
71
|
+
"import": "./esm/DSModal.js",
|
|
72
|
+
"require": "./cjs/DSModal.js"
|
|
73
|
+
},
|
|
74
|
+
"./constants": {
|
|
75
|
+
"import": "./esm/constants.js",
|
|
76
|
+
"require": "./cjs/constants.js"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
8
79
|
"sideEffects": [
|
|
9
80
|
"*.css",
|
|
10
81
|
"*.scss"
|
|
11
82
|
],
|
|
83
|
+
"repository": {
|
|
84
|
+
"type": "git",
|
|
85
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
86
|
+
},
|
|
87
|
+
"engines": {
|
|
88
|
+
"npm": ">=7",
|
|
89
|
+
"node": ">=14"
|
|
90
|
+
},
|
|
91
|
+
"author": "ICE MT",
|
|
12
92
|
"scripts": {
|
|
13
93
|
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
14
94
|
"prebuild": "exit 0",
|
|
@@ -16,22 +96,29 @@
|
|
|
16
96
|
"build": "node ../../scripts/build/build.js"
|
|
17
97
|
},
|
|
18
98
|
"dependencies": {
|
|
19
|
-
"@elliemae/ds-
|
|
20
|
-
"@elliemae/ds-classnames": "
|
|
21
|
-
"@elliemae/ds-
|
|
22
|
-
"@elliemae/ds-
|
|
23
|
-
"@elliemae/ds-
|
|
99
|
+
"@elliemae/ds-button": "2.0.0-alpha.12",
|
|
100
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.12",
|
|
101
|
+
"@elliemae/ds-form": "2.0.0-alpha.12",
|
|
102
|
+
"@elliemae/ds-icon": "2.0.0-alpha.12",
|
|
103
|
+
"@elliemae/ds-icons": "2.0.0-alpha.12",
|
|
104
|
+
"@elliemae/ds-shared": "2.0.0-alpha.12",
|
|
105
|
+
"@elliemae/ds-system": "2.0.0-alpha.12",
|
|
24
106
|
"prop-types": "~15.7.2",
|
|
25
|
-
"react-desc": "
|
|
107
|
+
"react-desc": "~4.1.3",
|
|
26
108
|
"react-modal": "~3.12.1"
|
|
27
109
|
},
|
|
110
|
+
"devDependencies": {
|
|
111
|
+
"@testing-library/jest-dom": "~5.15.0",
|
|
112
|
+
"@testing-library/react": "~12.1.2"
|
|
113
|
+
},
|
|
28
114
|
"peerDependencies": {
|
|
29
|
-
"lodash": "^4.17.
|
|
30
|
-
"react": "~17.0.
|
|
31
|
-
"react-dom": "^17.0.
|
|
115
|
+
"lodash": "^4.17.21",
|
|
116
|
+
"react": "~17.0.2",
|
|
117
|
+
"react-dom": "^17.0.2"
|
|
32
118
|
},
|
|
33
119
|
"publishConfig": {
|
|
34
120
|
"access": "public",
|
|
35
|
-
"directory": "dist"
|
|
121
|
+
"directory": "dist",
|
|
122
|
+
"generateSubmodules": true
|
|
36
123
|
}
|
|
37
124
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { DSModalContent } from './v2/DSModal';
|
|
4
|
+
declare const DSModal: {
|
|
5
|
+
({ version, ...rest }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
version?: number | undefined;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
propTypes: {
|
|
10
|
+
version: PropTypes.Requireable<number>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { DSModalContent };
|
|
14
|
+
export default DSModal;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const MODAL_TYPE: {
|
|
2
|
+
DEFAULT: string;
|
|
3
|
+
ALERT: string;
|
|
4
|
+
CONFIRM: string;
|
|
5
|
+
NOTIFICATION: string;
|
|
6
|
+
WARNING: string;
|
|
7
|
+
ERROR: string;
|
|
8
|
+
SUCCESS: string;
|
|
9
|
+
HELP: string;
|
|
10
|
+
INFO: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const modalTypes: string[];
|
|
13
|
+
export declare const MODAL_TYPE_V2: {
|
|
14
|
+
INFORMATION: string;
|
|
15
|
+
DECISION: string;
|
|
16
|
+
SELECTION: string;
|
|
17
|
+
FORM: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const MODAL_SUB_TYPE_V2: {
|
|
20
|
+
SUCCESS: string;
|
|
21
|
+
WARNING: string;
|
|
22
|
+
ERROR: string;
|
|
23
|
+
INFORMATION: string;
|
|
24
|
+
};
|
|
25
|
+
export default MODAL_TYPE;
|
package/types/index.d.ts
ADDED