@elliemae/ds-modal 2.2.0-alpha.4 → 3.0.0-next.2

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.
Files changed (70) hide show
  1. package/cjs/DSModal.js +184 -86
  2. package/cjs/constants.js +28 -67
  3. package/cjs/index.js +18 -39
  4. package/cjs/v1/DSModal.js +130 -159
  5. package/cjs/v1/DSModalType.js +7 -45
  6. package/cjs/v1/DSModalWrapper.js +113 -76
  7. package/cjs/v1/ModalFeedBack/ModalFeedBack.js +72 -77
  8. package/cjs/v2/DSModal.js +186 -143
  9. package/cjs/v2/blocks.js +86 -69
  10. package/cjs/v2/components/DecisionHeader.js +37 -47
  11. package/cjs/v2/components/FeedbackIcon.js +50 -59
  12. package/cjs/v2/components/Footer.js +65 -68
  13. package/cjs/v2/components/FormHeader.js +46 -53
  14. package/cjs/v2/components/ModalContent.js +111 -95
  15. package/cjs/v2/components/SelectionHeader.js +48 -50
  16. package/cjs/v2/components/Title.js +25 -40
  17. package/cjs/v2/helpers.js +40 -49
  18. package/esm/DSModal.js +142 -26
  19. package/esm/constants.js +20 -38
  20. package/esm/index.js +4 -10
  21. package/esm/v1/DSModal.js +121 -130
  22. package/esm/v1/DSModalType.js +3 -16
  23. package/esm/v1/DSModalWrapper.js +105 -45
  24. package/esm/v1/ModalFeedBack/ModalFeedBack.js +66 -48
  25. package/esm/v2/DSModal.js +173 -112
  26. package/esm/v2/blocks.js +77 -42
  27. package/esm/v2/components/DecisionHeader.js +27 -18
  28. package/esm/v2/components/FeedbackIcon.js +36 -25
  29. package/esm/v2/components/Footer.js +54 -39
  30. package/esm/v2/components/FormHeader.js +36 -24
  31. package/esm/v2/components/ModalContent.js +102 -72
  32. package/esm/v2/components/SelectionHeader.js +38 -21
  33. package/esm/v2/components/Title.js +16 -11
  34. package/esm/v2/helpers.js +28 -16
  35. package/package.json +8 -8
  36. package/types/DSModal.d.ts +1 -1
  37. package/cjs/DSModal.js.map +0 -7
  38. package/cjs/constants.js.map +0 -7
  39. package/cjs/index.js.map +0 -7
  40. package/cjs/v1/DSModal.js.map +0 -7
  41. package/cjs/v1/DSModalType.js.map +0 -7
  42. package/cjs/v1/DSModalWrapper.js.map +0 -7
  43. package/cjs/v1/ModalFeedBack/ModalFeedBack.js.map +0 -7
  44. package/cjs/v2/DSModal.js.map +0 -7
  45. package/cjs/v2/blocks.js.map +0 -7
  46. package/cjs/v2/components/DecisionHeader.js.map +0 -7
  47. package/cjs/v2/components/FeedbackIcon.js.map +0 -7
  48. package/cjs/v2/components/Footer.js.map +0 -7
  49. package/cjs/v2/components/FormHeader.js.map +0 -7
  50. package/cjs/v2/components/ModalContent.js.map +0 -7
  51. package/cjs/v2/components/SelectionHeader.js.map +0 -7
  52. package/cjs/v2/components/Title.js.map +0 -7
  53. package/cjs/v2/helpers.js.map +0 -7
  54. package/esm/DSModal.js.map +0 -7
  55. package/esm/constants.js.map +0 -7
  56. package/esm/index.js.map +0 -7
  57. package/esm/v1/DSModal.js.map +0 -7
  58. package/esm/v1/DSModalType.js.map +0 -7
  59. package/esm/v1/DSModalWrapper.js.map +0 -7
  60. package/esm/v1/ModalFeedBack/ModalFeedBack.js.map +0 -7
  61. package/esm/v2/DSModal.js.map +0 -7
  62. package/esm/v2/blocks.js.map +0 -7
  63. package/esm/v2/components/DecisionHeader.js.map +0 -7
  64. package/esm/v2/components/FeedbackIcon.js.map +0 -7
  65. package/esm/v2/components/Footer.js.map +0 -7
  66. package/esm/v2/components/FormHeader.js.map +0 -7
  67. package/esm/v2/components/ModalContent.js.map +0 -7
  68. package/esm/v2/components/SelectionHeader.js.map +0 -7
  69. package/esm/v2/components/Title.js.map +0 -7
  70. package/esm/v2/helpers.js.map +0 -7
package/cjs/DSModal.js CHANGED
@@ -1,88 +1,186 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('core-js/modules/esnext.async-iterator.filter.js');
6
+ require('core-js/modules/esnext.iterator.constructor.js');
7
+ require('core-js/modules/esnext.iterator.filter.js');
8
+ require('core-js/modules/esnext.async-iterator.for-each.js');
9
+ require('core-js/modules/esnext.iterator.for-each.js');
10
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
11
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
12
+ require('react');
13
+ var PropTypes = require('prop-types');
14
+ var constants = require('./constants.js');
15
+ var DSModal$2 = require('./v1/DSModal.js');
16
+ var DSModal$1 = require('./v2/DSModal.js');
17
+ var propTypes = require('@elliemae/ds-shared/prop-types');
18
+ var jsxRuntime = require('react/jsx-runtime');
19
+ var ModalContent = require('./v2/components/ModalContent.js');
20
+
21
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
+
23
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
24
+ var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
25
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
26
+
27
+ const _excluded = ["version"];
28
+
29
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
30
+
31
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32
+
33
+ const DSModal = _ref => {
34
+ let {
35
+ version = 1
36
+ } = _ref,
37
+ rest = _objectWithoutProperties__default["default"](_ref, _excluded);
38
+
39
+ if (version === 2) return /*#__PURE__*/jsxRuntime.jsx(DSModal$1["default"], _objectSpread({}, rest));
40
+ return /*#__PURE__*/jsxRuntime.jsx(DSModal$2, _objectSpread({}, rest));
11
41
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
- }
18
- return target;
42
+
43
+ DSModal$2.propTypes = {
44
+ version: PropTypes__default["default"].oneOf([1, 2]),
45
+ className: PropTypes__default["default"].string,
46
+
47
+ /**
48
+ * Add an additional css class to the footer
49
+ */
50
+ additionalFooterCssClass: PropTypes__default["default"].string,
51
+
52
+ /**
53
+ * Set style for the modal
54
+ */
55
+ style: PropTypes__default["default"].objectOf(PropTypes__default["default"].string),
56
+
57
+ /**
58
+ * Select size for the close icon
59
+ */
60
+ iconCloseSize: PropTypes__default["default"].oneOf(propTypes.iconSizes),
61
+
62
+ /**
63
+ * ['default', 'alert', 'confirm', 'notification', 'warning', 'error', 'success', 'help', 'info']
64
+ */
65
+ modalType: PropTypes__default["default"].oneOf(constants.modalTypes),
66
+
67
+ /**
68
+ * Show the header or not
69
+ */
70
+ showHeader: PropTypes__default["default"].bool,
71
+
72
+ /**
73
+ * Show the footer or not
74
+ */
75
+ showFooter: PropTypes__default["default"].bool,
76
+
77
+ /**
78
+ * Main content of the modal
79
+ */
80
+ children: PropTypes__default["default"].element.isRequired,
81
+
82
+ /**
83
+ * Content is centered or not
84
+ */
85
+ centered: PropTypes__default["default"].bool,
86
+
87
+ /**
88
+ * Text to be added in the confirm button
89
+ */
90
+ confirmLabel: PropTypes__default["default"].string,
91
+
92
+ /**
93
+ * Text to be added in the modal title
94
+ */
95
+ modalTitle: PropTypes__default["default"].string,
96
+
97
+ /**
98
+ * Text to be added in the modal title
99
+ */
100
+ size: PropTypes__default["default"].oneOf(propTypes.sizes),
101
+
102
+ /**
103
+ * Modal is open or not
104
+ */
105
+ isOpen: PropTypes__default["default"].bool,
106
+
107
+ /**
108
+ * Allows a function to be triggered once the modal is closed
109
+ */
110
+ onClose: PropTypes__default["default"].func,
111
+
112
+ /**
113
+ * Allows a function to be triggered once the modal is opened
114
+ */
115
+ onAfterOpen: PropTypes__default["default"].func,
116
+
117
+ /**
118
+ * Allows a function to be triggered once the modal open is confirmed
119
+ */
120
+ onConfirm: PropTypes__default["default"].func,
121
+
122
+ /**
123
+ * Allows a function to be triggered once the modal open is rejected
124
+ */
125
+ onReject: PropTypes__default["default"].func,
126
+
127
+ /**
128
+ * Text to be added in the reject button
129
+ */
130
+ rejectLabel: PropTypes__default["default"].string,
131
+
132
+ /**
133
+ * If modal should close on overlay click
134
+ */
135
+ shouldCloseOnOverlayClick: PropTypes__default["default"].bool,
136
+
137
+ /**
138
+ * Modal has error or not
139
+ */
140
+ hasError: PropTypes__default["default"].bool,
141
+
142
+ /**
143
+ * Modal has warning or not
144
+ */
145
+ hasWarning: PropTypes__default["default"].bool,
146
+
147
+ /**
148
+ * Modal has success or not
149
+ */
150
+ hasSuccess: PropTypes__default["default"].bool,
151
+
152
+ /**
153
+ * Modal has info or not
154
+ */
155
+ hasInfo: PropTypes__default["default"].bool,
156
+
157
+ /**
158
+ * Modal has help or not
159
+ */
160
+ hasHelp: PropTypes__default["default"].bool,
161
+ actionsRef: PropTypes__default["default"].func,
162
+ appElement: PropTypes__default["default"].string,
163
+
164
+ /**
165
+ * Customized props for the confirm button
166
+ */
167
+ overridePropsConfirmButton: PropTypes__default["default"].objectOf(PropTypes__default["default"].shape({})),
168
+
169
+ /**
170
+ * Customized props for the reject button
171
+ */
172
+ overridePropsRejectButton: PropTypes__default["default"].objectOf(PropTypes__default["default"].string),
173
+
174
+ /**
175
+ * Show confirm button
176
+ */
177
+ showConfirmButton: PropTypes__default["default"].bool,
178
+
179
+ /**
180
+ * Show confirm button
181
+ */
182
+ customCloseComponent: PropTypes__default["default"].element
19
183
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
- var DSModal_exports = {};
29
- __export(DSModal_exports, {
30
- DSModal: () => DSModal,
31
- DSModalContent: () => import_DSModal2.DSModalContent,
32
- default: () => DSModal_default
33
- });
34
- var React = __toESM(require("react"));
35
- var import_react = __toESM(require("react"));
36
- var import_prop_types = __toESM(require("prop-types"));
37
- var import_constants = require("./constants");
38
- var import_DSModal = __toESM(require("./v1/DSModal"));
39
- var import_DSModal2 = __toESM(require("./v2/DSModal"));
40
- var import_prop_types2 = require("@elliemae/ds-shared/prop-types");
41
- const DSModal = ({ version = 1, ...rest }) => {
42
- if (version === 2)
43
- return /* @__PURE__ */ import_react.default.createElement(import_DSModal2.default, {
44
- ...rest
45
- });
46
- return /* @__PURE__ */ import_react.default.createElement(import_DSModal.default, {
47
- ...rest
48
- });
49
- };
50
- DSModal.propTypes = {
51
- version: import_prop_types.default.oneOf([1, 2])
52
- };
53
- import_DSModal.default.propTypes = {
54
- version: import_prop_types.default.oneOf([1, 2]),
55
- className: import_prop_types.default.string,
56
- additionalFooterCssClass: import_prop_types.default.string,
57
- style: import_prop_types.default.objectOf(import_prop_types.default.string),
58
- iconCloseSize: import_prop_types.default.oneOf(import_prop_types2.iconSizes),
59
- modalType: import_prop_types.default.oneOf(import_constants.modalTypes),
60
- showHeader: import_prop_types.default.bool,
61
- showFooter: import_prop_types.default.bool,
62
- children: import_prop_types.default.element.isRequired,
63
- centered: import_prop_types.default.bool,
64
- confirmLabel: import_prop_types.default.string,
65
- modalTitle: import_prop_types.default.string,
66
- size: import_prop_types.default.oneOf(import_prop_types2.sizes),
67
- isOpen: import_prop_types.default.bool,
68
- onClose: import_prop_types.default.func,
69
- onAfterOpen: import_prop_types.default.func,
70
- onConfirm: import_prop_types.default.func,
71
- onReject: import_prop_types.default.func,
72
- rejectLabel: import_prop_types.default.string,
73
- shouldCloseOnOverlayClick: import_prop_types.default.bool,
74
- hasError: import_prop_types.default.bool,
75
- hasWarning: import_prop_types.default.bool,
76
- hasSuccess: import_prop_types.default.bool,
77
- hasInfo: import_prop_types.default.bool,
78
- hasHelp: import_prop_types.default.bool,
79
- actionsRef: import_prop_types.default.func,
80
- appElement: import_prop_types.default.string,
81
- overridePropsConfirmButton: import_prop_types.default.objectOf(import_prop_types.default.shape({})),
82
- overridePropsRejectButton: import_prop_types.default.objectOf(import_prop_types.default.string),
83
- showConfirmButton: import_prop_types.default.bool,
84
- customCloseComponent: import_prop_types.default.element
85
- };
86
- var DSModal_default = DSModal;
87
- module.exports = __toCommonJS(DSModal_exports);
88
- //# sourceMappingURL=DSModal.js.map
184
+
185
+ exports.DSModalContent = ModalContent.DSModalContent;
186
+ exports["default"] = DSModal;
package/cjs/constants.js CHANGED
@@ -1,73 +1,34 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
- }
18
- return target;
19
- };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
- var constants_exports = {};
29
- __export(constants_exports, {
30
- MODAL_SUB_TYPE_V2: () => MODAL_SUB_TYPE_V2,
31
- MODAL_TYPE: () => MODAL_TYPE,
32
- MODAL_TYPE_V2: () => MODAL_TYPE_V2,
33
- default: () => constants_default,
34
- modalTypes: () => modalTypes
35
- });
36
- var React = __toESM(require("react"));
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
37
5
  const MODAL_TYPE = {
38
- DEFAULT: "default",
39
- ALERT: "alert",
40
- CONFIRM: "confirm",
41
- NOTIFICATION: "notification",
42
- WARNING: "warning",
43
- ERROR: "error",
44
- SUCCESS: "success",
45
- HELP: "help",
46
- INFO: "info"
6
+ DEFAULT: 'default',
7
+ ALERT: 'alert',
8
+ CONFIRM: 'confirm',
9
+ NOTIFICATION: 'notification',
10
+ WARNING: 'warning',
11
+ ERROR: 'error',
12
+ SUCCESS: 'success',
13
+ HELP: 'help',
14
+ INFO: 'info'
47
15
  };
48
- const modalTypes = [
49
- MODAL_TYPE.DEFAULT,
50
- MODAL_TYPE.ALERT,
51
- MODAL_TYPE.CONFIRM,
52
- MODAL_TYPE.NOTIFICATION,
53
- MODAL_TYPE.WARNING,
54
- MODAL_TYPE.ERROR,
55
- MODAL_TYPE.SUCCESS,
56
- MODAL_TYPE.HELP,
57
- MODAL_TYPE.INFO
58
- ];
16
+ const modalTypes = [MODAL_TYPE.DEFAULT, MODAL_TYPE.ALERT, MODAL_TYPE.CONFIRM, MODAL_TYPE.NOTIFICATION, MODAL_TYPE.WARNING, MODAL_TYPE.ERROR, MODAL_TYPE.SUCCESS, MODAL_TYPE.HELP, MODAL_TYPE.INFO];
59
17
  const MODAL_TYPE_V2 = {
60
- INFORMATION: "information",
61
- DECISION: "decision",
62
- SELECTION: "selection",
63
- FORM: "form"
18
+ INFORMATION: 'information',
19
+ DECISION: 'decision',
20
+ SELECTION: 'selection',
21
+ FORM: 'form'
64
22
  };
65
23
  const MODAL_SUB_TYPE_V2 = {
66
- SUCCESS: "success",
67
- WARNING: "warning",
68
- ERROR: "error",
69
- INFORMATION: "information"
24
+ SUCCESS: 'success',
25
+ WARNING: 'warning',
26
+ ERROR: 'error',
27
+ INFORMATION: 'information'
70
28
  };
71
- var constants_default = MODAL_TYPE;
72
- module.exports = __toCommonJS(constants_exports);
73
- //# sourceMappingURL=constants.js.map
29
+
30
+ exports.MODAL_SUB_TYPE_V2 = MODAL_SUB_TYPE_V2;
31
+ exports.MODAL_TYPE = MODAL_TYPE;
32
+ exports.MODAL_TYPE_V2 = MODAL_TYPE_V2;
33
+ exports["default"] = MODAL_TYPE;
34
+ exports.modalTypes = modalTypes;
package/cjs/index.js CHANGED
@@ -1,39 +1,18 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
- }
18
- return target;
19
- };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
- var src_exports = {};
29
- __export(src_exports, {
30
- DSModalWithSchema: () => import_DSModal.DSModalWithSchema,
31
- default: () => import_DSModal2.default
32
- });
33
- var React = __toESM(require("react"));
34
- __reExport(src_exports, require("./DSModal"));
35
- __reExport(src_exports, require("./constants"));
36
- var import_DSModal = require("./v2/DSModal");
37
- var import_DSModal2 = require("./DSModal");
38
- module.exports = __toCommonJS(src_exports);
39
- //# sourceMappingURL=index.js.map
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var DSModal$1 = require('./DSModal.js');
6
+ var constants = require('./constants.js');
7
+ var DSModal = require('./v2/DSModal.js');
8
+ var ModalContent = require('./v2/components/ModalContent.js');
9
+
10
+
11
+
12
+ exports["default"] = DSModal$1["default"];
13
+ exports.MODAL_SUB_TYPE_V2 = constants.MODAL_SUB_TYPE_V2;
14
+ exports.MODAL_TYPE = constants.MODAL_TYPE;
15
+ exports.MODAL_TYPE_V2 = constants.MODAL_TYPE_V2;
16
+ exports.modalTypes = constants.modalTypes;
17
+ exports.DSModalWithSchema = DSModal.DSModalWithSchema;
18
+ exports.DSModalContent = ModalContent.DSModalContent;