@elliemae/ds-modal 3.27.0-next.1 → 3.27.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.
- package/dist/cjs/index.js +4 -10
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +3 -10
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +2 -3
- package/package.json +6 -81
- package/dist/cjs/DSModal.js +0 -168
- package/dist/cjs/DSModal.js.map +0 -7
- package/dist/cjs/constants.js +0 -74
- package/dist/cjs/constants.js.map +0 -7
- package/dist/cjs/v1/DSModal.js +0 -265
- package/dist/cjs/v1/DSModal.js.map +0 -7
- package/dist/cjs/v1/DSModalType.js +0 -46
- package/dist/cjs/v1/DSModalType.js.map +0 -7
- package/dist/cjs/v1/DSModalWrapper.js +0 -134
- package/dist/cjs/v1/DSModalWrapper.js.map +0 -7
- package/dist/cjs/v1/ModalFeedBack/ModalFeedBack.js +0 -92
- package/dist/cjs/v1/ModalFeedBack/ModalFeedBack.js.map +0 -7
- package/dist/cjs/v2/DSModal.js +0 -200
- package/dist/cjs/v2/DSModal.js.map +0 -7
- package/dist/cjs/v2/blocks.js +0 -76
- package/dist/cjs/v2/blocks.js.map +0 -7
- package/dist/cjs/v2/components/DecisionHeader.js +0 -50
- package/dist/cjs/v2/components/DecisionHeader.js.map +0 -7
- package/dist/cjs/v2/components/FeedbackIcon.js +0 -57
- package/dist/cjs/v2/components/FeedbackIcon.js.map +0 -7
- package/dist/cjs/v2/components/Footer.js +0 -74
- package/dist/cjs/v2/components/Footer.js.map +0 -7
- package/dist/cjs/v2/components/FormHeader.js +0 -54
- package/dist/cjs/v2/components/FormHeader.js.map +0 -7
- package/dist/cjs/v2/components/ModalContent.js +0 -89
- package/dist/cjs/v2/components/ModalContent.js.map +0 -7
- package/dist/cjs/v2/components/SelectionHeader.js +0 -45
- package/dist/cjs/v2/components/SelectionHeader.js.map +0 -7
- package/dist/cjs/v2/components/Title.js +0 -40
- package/dist/cjs/v2/components/Title.js.map +0 -7
- package/dist/cjs/v2/helpers.js +0 -55
- package/dist/cjs/v2/helpers.js.map +0 -7
- package/dist/esm/DSModal.js +0 -138
- package/dist/esm/DSModal.js.map +0 -7
- package/dist/esm/constants.js +0 -44
- package/dist/esm/constants.js.map +0 -7
- package/dist/esm/v1/DSModal.js +0 -235
- package/dist/esm/v1/DSModal.js.map +0 -7
- package/dist/esm/v1/DSModalType.js +0 -16
- package/dist/esm/v1/DSModalType.js.map +0 -7
- package/dist/esm/v1/DSModalWrapper.js +0 -104
- package/dist/esm/v1/DSModalWrapper.js.map +0 -7
- package/dist/esm/v1/ModalFeedBack/ModalFeedBack.js +0 -62
- package/dist/esm/v1/ModalFeedBack/ModalFeedBack.js.map +0 -7
- package/dist/esm/v2/DSModal.js +0 -170
- package/dist/esm/v2/DSModal.js.map +0 -7
- package/dist/esm/v2/blocks.js +0 -46
- package/dist/esm/v2/blocks.js.map +0 -7
- package/dist/esm/v2/components/DecisionHeader.js +0 -20
- package/dist/esm/v2/components/DecisionHeader.js.map +0 -7
- package/dist/esm/v2/components/FeedbackIcon.js +0 -27
- package/dist/esm/v2/components/FeedbackIcon.js.map +0 -7
- package/dist/esm/v2/components/Footer.js +0 -44
- package/dist/esm/v2/components/Footer.js.map +0 -7
- package/dist/esm/v2/components/FormHeader.js +0 -24
- package/dist/esm/v2/components/FormHeader.js.map +0 -7
- package/dist/esm/v2/components/ModalContent.js +0 -59
- package/dist/esm/v2/components/ModalContent.js.map +0 -7
- package/dist/esm/v2/components/SelectionHeader.js +0 -15
- package/dist/esm/v2/components/SelectionHeader.js.map +0 -7
- package/dist/esm/v2/components/Title.js +0 -10
- package/dist/esm/v2/components/Title.js.map +0 -7
- package/dist/esm/v2/helpers.js +0 -25
- package/dist/esm/v2/helpers.js.map +0 -7
- package/dist/types/DSModal.d.ts +0 -13
- package/dist/types/constants.d.ts +0 -25
- package/dist/types/v1/DSModal.d.ts +0 -142
- package/dist/types/v1/DSModalType.d.ts +0 -1
- package/dist/types/v1/DSModalWrapper.d.ts +0 -133
- package/dist/types/v1/ModalFeedBack/ModalFeedBack.d.ts +0 -10
- package/dist/types/v2/DSModal.d.ts +0 -120
- package/dist/types/v2/blocks.d.ts +0 -9
- package/dist/types/v2/components/DecisionHeader.d.ts +0 -5
- package/dist/types/v2/components/FeedbackIcon.d.ts +0 -4
- package/dist/types/v2/components/Footer.d.ts +0 -12
- package/dist/types/v2/components/FormHeader.d.ts +0 -7
- package/dist/types/v2/components/ModalContent.d.ts +0 -20
- package/dist/types/v2/components/SelectionHeader.d.ts +0 -7
- package/dist/types/v2/components/Title.d.ts +0 -5
- package/dist/types/v2/components/tests/DecisionHeader.test.d.ts +0 -1
- package/dist/types/v2/components/tests/FeedbackIcon.test.d.ts +0 -1
- package/dist/types/v2/components/tests/Footer.test.d.ts +0 -1
- package/dist/types/v2/components/tests/FormHeader.test.d.ts +0 -1
- package/dist/types/v2/components/tests/SelectionHeader.test.d.ts +0 -1
- package/dist/types/v2/helpers.d.ts +0 -16
- package/dist/types/v2/tests/DSModal.test.d.ts +0 -1
package/dist/cjs/v2/DSModal.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var DSModal_exports = {};
|
|
30
|
-
__export(DSModal_exports, {
|
|
31
|
-
DSModalContent: () => import_ModalContent.DSModalContent,
|
|
32
|
-
DSModalWithSchema: () => DSModalWithSchema,
|
|
33
|
-
default: () => DSModal_default
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(DSModal_exports);
|
|
36
|
-
var React = __toESM(require("react"));
|
|
37
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
-
var import_react = require("react");
|
|
39
|
-
var import_ds_system = require("@elliemae/ds-system");
|
|
40
|
-
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
41
|
-
var import_react_modal = __toESM(require("react-modal"));
|
|
42
|
-
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
43
|
-
var import_constants = require("../constants.js");
|
|
44
|
-
var import_ModalContent = require("./components/ModalContent.js");
|
|
45
|
-
const DSModal = ({
|
|
46
|
-
containerProps = {},
|
|
47
|
-
className = "",
|
|
48
|
-
style = {},
|
|
49
|
-
size = "default",
|
|
50
|
-
//
|
|
51
|
-
modalType = import_constants.MODAL_TYPE_V2.INFORMATION,
|
|
52
|
-
modalSubType = null,
|
|
53
|
-
modalTitle = "",
|
|
54
|
-
dataTestId = "ds-modal",
|
|
55
|
-
centered = false,
|
|
56
|
-
showRejectButton = false,
|
|
57
|
-
showClose = true,
|
|
58
|
-
searchProps = {},
|
|
59
|
-
// override
|
|
60
|
-
actionsRef = () => null,
|
|
61
|
-
additionalFooterCssClass,
|
|
62
|
-
overridePropsConfirmButton = {},
|
|
63
|
-
overridePropsRejectButton = {},
|
|
64
|
-
// react modal
|
|
65
|
-
children,
|
|
66
|
-
isOpen = true,
|
|
67
|
-
onClose = () => null,
|
|
68
|
-
onAfterOpen = () => null,
|
|
69
|
-
onConfirm = () => null,
|
|
70
|
-
onReject = () => null,
|
|
71
|
-
rejectLabel = "Discard",
|
|
72
|
-
confirmLabel = "Save",
|
|
73
|
-
shouldCloseOnOverlayClick = false,
|
|
74
|
-
appElement = "body",
|
|
75
|
-
zIndex,
|
|
76
|
-
removePadding = false
|
|
77
|
-
}) => {
|
|
78
|
-
if (typeof document !== "undefined" && true && document && import_react_modal.default.setAppElement) {
|
|
79
|
-
import_react_modal.default.setAppElement(appElement);
|
|
80
|
-
}
|
|
81
|
-
const { cssClassName, classNameBlock, classNameModifier } = (0, import_ds_classnames.convertPropToCssClassName)("modal-v2", className, {
|
|
82
|
-
size
|
|
83
|
-
});
|
|
84
|
-
const theme = (0, import_react.useContext)(import_ds_system.ThemeContext);
|
|
85
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
-
import_react_modal.default,
|
|
87
|
-
{
|
|
88
|
-
testId: dataTestId,
|
|
89
|
-
className: `${cssClassName} ${classNameBlock(`type-${modalType}`)}`,
|
|
90
|
-
contentLabel: modalTitle,
|
|
91
|
-
isOpen,
|
|
92
|
-
onAfterOpen,
|
|
93
|
-
onRequestClose: onClose,
|
|
94
|
-
overlayClassName: `${classNameBlock("overlay")} ${classNameModifier(centered ? "center" : "top")}`,
|
|
95
|
-
shouldCloseOnOverlayClick,
|
|
96
|
-
style: {
|
|
97
|
-
content: {
|
|
98
|
-
...style
|
|
99
|
-
},
|
|
100
|
-
overlay: {
|
|
101
|
-
// position: 'absolute', https://jira.elliemae.io/browse/PUI-1471, the overlay should be positioned based on the browser window rather positioned absolute to its parent
|
|
102
|
-
zIndex: zIndex ?? theme.zIndex.dialog
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
106
|
-
import_ModalContent.DSModalContent,
|
|
107
|
-
{
|
|
108
|
-
actionsRef,
|
|
109
|
-
additionalFooterCssClass,
|
|
110
|
-
confirmLabel,
|
|
111
|
-
containerProps,
|
|
112
|
-
modalSubType,
|
|
113
|
-
modalTitle,
|
|
114
|
-
modalType,
|
|
115
|
-
onClose,
|
|
116
|
-
onConfirm,
|
|
117
|
-
onReject,
|
|
118
|
-
overridePropsConfirmButton,
|
|
119
|
-
overridePropsRejectButton,
|
|
120
|
-
rejectLabel,
|
|
121
|
-
searchProps,
|
|
122
|
-
showClose,
|
|
123
|
-
showRejectButton,
|
|
124
|
-
removePadding,
|
|
125
|
-
children
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
}
|
|
129
|
-
);
|
|
130
|
-
};
|
|
131
|
-
const props = {
|
|
132
|
-
/** inject props to container wrapper */
|
|
133
|
-
containerProps: import_ds_props_helpers.PropTypes.object.description("inject props to container wrapper"),
|
|
134
|
-
/** css class */
|
|
135
|
-
className: import_ds_props_helpers.PropTypes.string.description("css class"),
|
|
136
|
-
/** style object for container wrapper */
|
|
137
|
-
style: import_ds_props_helpers.PropTypes.object.description("style object for container wrapper"),
|
|
138
|
-
/** modal container title */
|
|
139
|
-
modalTitle: import_ds_props_helpers.PropTypes.string.description("modal container title"),
|
|
140
|
-
/** center container */
|
|
141
|
-
centered: import_ds_props_helpers.PropTypes.bool.description("center container"),
|
|
142
|
-
/** show reject button */
|
|
143
|
-
showRejectButton: import_ds_props_helpers.PropTypes.bool.description("show reject button"),
|
|
144
|
-
/** show close button */
|
|
145
|
-
showClose: import_ds_props_helpers.PropTypes.bool.description("show close button"),
|
|
146
|
-
/*
|
|
147
|
-
Props for search component
|
|
148
|
-
*/
|
|
149
|
-
searchProps: import_ds_props_helpers.PropTypes.object.description("Props for search component"),
|
|
150
|
-
/** css class for footer */
|
|
151
|
-
additionalFooterCssClass: import_ds_props_helpers.PropTypes.string.description("css class for footer"),
|
|
152
|
-
/** override props confirm button */
|
|
153
|
-
overridePropsConfirmButton: import_ds_props_helpers.PropTypes.object.description("override props confirm button"),
|
|
154
|
-
/** override props reject button */
|
|
155
|
-
overridePropsRejectButton: import_ds_props_helpers.PropTypes.object.description("override props reject button"),
|
|
156
|
-
/** controlled isOpen flag */
|
|
157
|
-
isOpen: import_ds_props_helpers.PropTypes.bool.description("controlled isOpen flag"),
|
|
158
|
-
/** close callback */
|
|
159
|
-
onClose: import_ds_props_helpers.PropTypes.func.description("close callback"),
|
|
160
|
-
/** after open callback */
|
|
161
|
-
onAfterOpen: import_ds_props_helpers.PropTypes.func.description("after open callback"),
|
|
162
|
-
/** confirm callback */
|
|
163
|
-
onConfirm: import_ds_props_helpers.PropTypes.func.description("confirm callback"),
|
|
164
|
-
/** reject callback */
|
|
165
|
-
onReject: import_ds_props_helpers.PropTypes.func.description("reject callback"),
|
|
166
|
-
/** reject label */
|
|
167
|
-
rejectLabel: import_ds_props_helpers.PropTypes.string.description("reject label"),
|
|
168
|
-
/** confirm text string */
|
|
169
|
-
confirmLabel: import_ds_props_helpers.PropTypes.string.description("confirm text string"),
|
|
170
|
-
/** modal container size */
|
|
171
|
-
size: import_ds_props_helpers.PropTypes.oneOf(["default", "xx-large", "x-large", "large", "medium", "small"]).description(
|
|
172
|
-
"modal container size"
|
|
173
|
-
),
|
|
174
|
-
/** modal sub type */
|
|
175
|
-
modalSubType: import_ds_props_helpers.PropTypes.any.description("modal sub type"),
|
|
176
|
-
/** modal type */
|
|
177
|
-
modalType: import_ds_props_helpers.PropTypes.any.description("modal type"),
|
|
178
|
-
/** ref for modal footer actions */
|
|
179
|
-
actionsRef: import_ds_props_helpers.PropTypes.any.description("ref for modal footer actions"),
|
|
180
|
-
/** modal container children */
|
|
181
|
-
children: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.element, import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.element)]).description(
|
|
182
|
-
"modal container children"
|
|
183
|
-
),
|
|
184
|
-
/** close on click outside container */
|
|
185
|
-
shouldCloseOnOverlayClick: import_ds_props_helpers.PropTypes.bool.description("close on click outside container"),
|
|
186
|
-
/*
|
|
187
|
-
App element ID to inject the modal
|
|
188
|
-
*/
|
|
189
|
-
appElement: import_ds_props_helpers.PropTypes.string.description("App element ID to inject the modal"),
|
|
190
|
-
/** zindex for modal container */
|
|
191
|
-
zIndex: import_ds_props_helpers.PropTypes.number.description("zindex for modal container"),
|
|
192
|
-
/** remove modal builtin padding */
|
|
193
|
-
removePadding: import_ds_props_helpers.PropTypes.bool.description("remove modal builtin padding")
|
|
194
|
-
};
|
|
195
|
-
DSModal.propTypes = props;
|
|
196
|
-
DSModal.displayName = "DSModal";
|
|
197
|
-
const DSModalWithSchema = (0, import_ds_props_helpers.describe)(DSModal);
|
|
198
|
-
DSModalWithSchema.propTypes = props;
|
|
199
|
-
var DSModal_default = DSModal;
|
|
200
|
-
//# sourceMappingURL=DSModal.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/v2/DSModal.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport { ThemeContext } from '@elliemae/ds-system';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport ReactModal from 'react-modal';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { MODAL_TYPE_V2 } from '../constants.js';\nimport { DSModalContent } from './components/ModalContent.js';\n\nconst DSModal = ({\n containerProps = {},\n className = '',\n style = {},\n size = 'default',\n //\n modalType = MODAL_TYPE_V2.INFORMATION,\n modalSubType = null,\n modalTitle = '',\n dataTestId = 'ds-modal',\n centered = false,\n showRejectButton = false,\n showClose = true,\n searchProps = {},\n // override\n actionsRef = () => null,\n additionalFooterCssClass,\n overridePropsConfirmButton = {},\n overridePropsRejectButton = {},\n // react modal\n children,\n isOpen = true,\n onClose = () => null,\n onAfterOpen = () => null,\n onConfirm = () => null,\n onReject = () => null,\n rejectLabel = 'Discard',\n confirmLabel = 'Save',\n shouldCloseOnOverlayClick = false,\n appElement = 'body',\n zIndex,\n removePadding = false,\n}) => {\n if (typeof document !== 'undefined' && process.env.NODE_ENV !== 'test' && document && ReactModal.setAppElement) {\n ReactModal.setAppElement(appElement);\n }\n\n const { cssClassName, classNameBlock, classNameModifier } = convertPropToCssClassName('modal-v2', className, {\n size,\n });\n\n const theme = useContext(ThemeContext);\n\n return (\n <ReactModal\n testId={dataTestId}\n className={`${cssClassName} ${classNameBlock(`type-${modalType}`)}`}\n contentLabel={modalTitle}\n isOpen={isOpen}\n onAfterOpen={onAfterOpen}\n onRequestClose={onClose}\n overlayClassName={`${classNameBlock('overlay')} ${classNameModifier(centered ? 'center' : 'top')}`}\n shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}\n style={{\n content: {\n ...style,\n },\n overlay: {\n // position: 'absolute', https://jira.elliemae.io/browse/PUI-1471, the overlay should be positioned based on the browser window rather positioned absolute to its parent\n zIndex: zIndex ?? theme.zIndex.dialog,\n },\n }}\n >\n <DSModalContent\n actionsRef={actionsRef}\n additionalFooterCssClass={additionalFooterCssClass}\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n modalSubType={modalSubType}\n modalTitle={modalTitle}\n modalType={modalType}\n onClose={onClose}\n onConfirm={onConfirm}\n onReject={onReject}\n overridePropsConfirmButton={overridePropsConfirmButton}\n overridePropsRejectButton={overridePropsRejectButton}\n rejectLabel={rejectLabel}\n searchProps={searchProps}\n showClose={showClose}\n showRejectButton={showRejectButton}\n removePadding={removePadding}\n >\n {children}\n </DSModalContent>\n </ReactModal>\n );\n};\n\nconst props = {\n /** inject props to container wrapper */\n containerProps: PropTypes.object.description('inject props to container wrapper'),\n /** css class */\n className: PropTypes.string.description('css class'),\n /** style object for container wrapper */\n style: PropTypes.object.description('style object for container wrapper'),\n /** modal container title */\n modalTitle: PropTypes.string.description('modal container title'),\n /** center container */\n centered: PropTypes.bool.description('center container'),\n /** show reject button */\n showRejectButton: PropTypes.bool.description('show reject button'),\n /** show close button */\n showClose: PropTypes.bool.description('show close button'),\n /*\n Props for search component\n */\n searchProps: PropTypes.object.description('Props for search component'),\n /** css class for footer */\n additionalFooterCssClass: PropTypes.string.description('css class for footer'),\n /** override props confirm button */\n overridePropsConfirmButton: PropTypes.object.description('override props confirm button'),\n /** override props reject button */\n overridePropsRejectButton: PropTypes.object.description('override props reject button'),\n /** controlled isOpen flag */\n isOpen: PropTypes.bool.description('controlled isOpen flag'),\n /** close callback */\n onClose: PropTypes.func.description('close callback'),\n /** after open callback */\n onAfterOpen: PropTypes.func.description('after open callback'),\n /** confirm callback */\n onConfirm: PropTypes.func.description('confirm callback'),\n /** reject callback */\n onReject: PropTypes.func.description('reject callback'),\n /** reject label */\n rejectLabel: PropTypes.string.description('reject label'),\n /** confirm text string */\n confirmLabel: PropTypes.string.description('confirm text string'),\n /** modal container size */\n size: PropTypes.oneOf(['default', 'xx-large', 'x-large', 'large', 'medium', 'small']).description(\n 'modal container size',\n ),\n /** modal sub type */\n modalSubType: PropTypes.any.description('modal sub type'),\n /** modal type */\n modalType: PropTypes.any.description('modal type'),\n /** ref for modal footer actions */\n actionsRef: PropTypes.any.description('ref for modal footer actions'),\n /** modal container children */\n children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]).description(\n 'modal container children',\n ),\n /** close on click outside container */\n shouldCloseOnOverlayClick: PropTypes.bool.description('close on click outside container'),\n /*\n App element ID to inject the modal\n */\n appElement: PropTypes.string.description('App element ID to inject the modal'),\n /** zindex for modal container */\n zIndex: PropTypes.number.description('zindex for modal container'),\n /** remove modal builtin padding */\n removePadding: PropTypes.bool.description('remove modal builtin padding'),\n};\n\nDSModal.propTypes = props;\nDSModal.displayName = 'DSModal';\nconst DSModalWithSchema = describe(DSModal);\nDSModalWithSchema.propTypes = props;\n\nexport { DSModalContent, DSModalWithSchema };\nexport default DSModal;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": ["ReactModal"]
|
|
7
|
-
}
|
package/dist/cjs/v2/blocks.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var blocks_exports = {};
|
|
30
|
-
__export(blocks_exports, {
|
|
31
|
-
ModalContent: () => ModalContent,
|
|
32
|
-
ModalFeedback: () => ModalFeedback,
|
|
33
|
-
ModalFooter: () => ModalFooter,
|
|
34
|
-
ModalFooterActions: () => ModalFooterActions,
|
|
35
|
-
ModalHeader: () => ModalHeader,
|
|
36
|
-
ModalHeaderTopRight: () => ModalHeaderTopRight,
|
|
37
|
-
ModalTitle: () => ModalTitle,
|
|
38
|
-
ModalWrapper: () => ModalWrapper
|
|
39
|
-
});
|
|
40
|
-
module.exports = __toCommonJS(blocks_exports);
|
|
41
|
-
var React = __toESM(require("react"));
|
|
42
|
-
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
43
|
-
const blockName = "modal-v2";
|
|
44
|
-
const ModalHeader = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "modal-header", ({ type, showClose }) => ({
|
|
45
|
-
[type]: type,
|
|
46
|
-
"with-close": showClose
|
|
47
|
-
}));
|
|
48
|
-
const ModalHeaderTopRight = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "modal-header-close", ({ type }) => ({
|
|
49
|
-
[type]: type
|
|
50
|
-
}));
|
|
51
|
-
const ModalFeedback = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "modal-feedback", ({ type }) => ({
|
|
52
|
-
[type]: type
|
|
53
|
-
}));
|
|
54
|
-
const ModalTitle = (0, import_ds_classnames.aggregatedClasses)("h3")(blockName, "modal-title", ({ type }) => ({
|
|
55
|
-
[type]: type
|
|
56
|
-
}));
|
|
57
|
-
const ModalContent = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "modal-content", ({ type, removePadding }) => ({
|
|
58
|
-
[type]: type,
|
|
59
|
-
"remove-padding": removePadding
|
|
60
|
-
}));
|
|
61
|
-
const ModalWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "modal-wrapper", ({ type, removePadding }) => ({
|
|
62
|
-
[type]: type,
|
|
63
|
-
"remove-padding": removePadding
|
|
64
|
-
}));
|
|
65
|
-
const ModalFooter = (0, import_ds_classnames.aggregatedClasses)("div")(
|
|
66
|
-
blockName,
|
|
67
|
-
"modal-footer",
|
|
68
|
-
({ type, additionalFooterCssClass }) => ({
|
|
69
|
-
[type]: type,
|
|
70
|
-
[additionalFooterCssClass]: additionalFooterCssClass
|
|
71
|
-
})
|
|
72
|
-
);
|
|
73
|
-
const ModalFooterActions = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "modal-footer-actions", ({ type }) => ({
|
|
74
|
-
[type]: type
|
|
75
|
-
}));
|
|
76
|
-
//# sourceMappingURL=blocks.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/v2/blocks.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'modal-v2';\n\nexport const ModalHeader = aggregatedClasses('div')(blockName, 'modal-header', ({ type, showClose }) => ({\n [type]: type,\n 'with-close': showClose,\n}));\n\nexport const ModalHeaderTopRight = aggregatedClasses('div')(blockName, 'modal-header-close', ({ type }) => ({\n [type]: type,\n}));\n\nexport const ModalFeedback = aggregatedClasses('div')(blockName, 'modal-feedback', ({ type }) => ({\n [type]: type,\n}));\n\nexport const ModalTitle = aggregatedClasses('h3')(blockName, 'modal-title', ({ type }) => ({\n [type]: type,\n}));\n\nexport const ModalContent = aggregatedClasses('div')(blockName, 'modal-content', ({ type, removePadding }) => ({\n [type]: type,\n 'remove-padding': removePadding,\n}));\n\nexport const ModalWrapper = aggregatedClasses('div')(blockName, 'modal-wrapper', ({ type, removePadding }) => ({\n [type]: type,\n 'remove-padding': removePadding,\n}));\n\nexport const ModalFooter = aggregatedClasses('div')(\n blockName,\n 'modal-footer',\n ({ type, additionalFooterCssClass }) => ({\n [type]: type,\n [additionalFooterCssClass]: additionalFooterCssClass,\n }),\n);\n\nexport const ModalFooterActions = aggregatedClasses('div')(blockName, 'modal-footer-actions', ({ type }) => ({\n [type]: type,\n}));\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAkC;AAElC,MAAM,YAAY;AAEX,MAAM,kBAAc,wCAAkB,KAAK,EAAE,WAAW,gBAAgB,CAAC,EAAE,MAAM,UAAU,OAAO;AAAA,EACvG,CAAC,IAAI,GAAG;AAAA,EACR,cAAc;AAChB,EAAE;AAEK,MAAM,0BAAsB,wCAAkB,KAAK,EAAE,WAAW,sBAAsB,CAAC,EAAE,KAAK,OAAO;AAAA,EAC1G,CAAC,IAAI,GAAG;AACV,EAAE;AAEK,MAAM,oBAAgB,wCAAkB,KAAK,EAAE,WAAW,kBAAkB,CAAC,EAAE,KAAK,OAAO;AAAA,EAChG,CAAC,IAAI,GAAG;AACV,EAAE;AAEK,MAAM,iBAAa,wCAAkB,IAAI,EAAE,WAAW,eAAe,CAAC,EAAE,KAAK,OAAO;AAAA,EACzF,CAAC,IAAI,GAAG;AACV,EAAE;AAEK,MAAM,mBAAe,wCAAkB,KAAK,EAAE,WAAW,iBAAiB,CAAC,EAAE,MAAM,cAAc,OAAO;AAAA,EAC7G,CAAC,IAAI,GAAG;AAAA,EACR,kBAAkB;AACpB,EAAE;AAEK,MAAM,mBAAe,wCAAkB,KAAK,EAAE,WAAW,iBAAiB,CAAC,EAAE,MAAM,cAAc,OAAO;AAAA,EAC7G,CAAC,IAAI,GAAG;AAAA,EACR,kBAAkB;AACpB,EAAE;AAEK,MAAM,kBAAc,wCAAkB,KAAK;AAAA,EAChD;AAAA,EACA;AAAA,EACA,CAAC,EAAE,MAAM,yBAAyB,OAAO;AAAA,IACvC,CAAC,IAAI,GAAG;AAAA,IACR,CAAC,wBAAwB,GAAG;AAAA,EAC9B;AACF;AAEO,MAAM,yBAAqB,wCAAkB,KAAK,EAAE,WAAW,wBAAwB,CAAC,EAAE,KAAK,OAAO;AAAA,EAC3G,CAAC,IAAI,GAAG;AACV,EAAE;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var DecisionHeader_exports = {};
|
|
30
|
-
__export(DecisionHeader_exports, {
|
|
31
|
-
DecisionHeader: () => DecisionHeader,
|
|
32
|
-
default: () => DecisionHeader_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(DecisionHeader_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
|
38
|
-
var import_ds_button = __toESM(require("@elliemae/ds-button"));
|
|
39
|
-
var import_blocks = require("../blocks.js");
|
|
40
|
-
const DecisionHeader = ({ onClose, showClose }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.ModalHeader, { classProps: { type: "decision", showClose }, children: showClose && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
-
import_ds_button.default,
|
|
42
|
-
{
|
|
43
|
-
buttonType: "link",
|
|
44
|
-
containerProps: { "data-testid": "modal-button-close" },
|
|
45
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Close, { color: ["neutral", "900"] }),
|
|
46
|
-
onClick: onClose
|
|
47
|
-
}
|
|
48
|
-
) });
|
|
49
|
-
var DecisionHeader_default = DecisionHeader;
|
|
50
|
-
//# sourceMappingURL=DecisionHeader.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/v2/components/DecisionHeader.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { Close } from '@elliemae/ds-icons';\nimport DSButton from '@elliemae/ds-button';\nimport { ModalHeader } from '../blocks.js';\n\nexport const DecisionHeader = ({ onClose, showClose }) => (\n <ModalHeader classProps={{ type: 'decision', showClose }}>\n {showClose && (\n <DSButton\n buttonType=\"link\"\n containerProps={{ 'data-testid': 'modal-button-close' }}\n icon={<Close color={['neutral', '900']} />}\n onClick={onClose}\n />\n )}\n </ModalHeader>\n);\n\nexport default DecisionHeader;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADYT;AAVd,sBAAsB;AACtB,uBAAqB;AACrB,oBAA4B;AAErB,MAAM,iBAAiB,CAAC,EAAE,SAAS,UAAU,MAClD,4CAAC,6BAAY,YAAY,EAAE,MAAM,YAAY,UAAU,GACpD,uBACC;AAAA,EAAC,iBAAAA;AAAA,EAAA;AAAA,IACC,YAAW;AAAA,IACX,gBAAgB,EAAE,eAAe,qBAAqB;AAAA,IACtD,MAAM,4CAAC,yBAAM,OAAO,CAAC,WAAW,KAAK,GAAG;AAAA,IACxC,SAAS;AAAA;AACX,GAEJ;AAGF,IAAO,yBAAQ;",
|
|
6
|
-
"names": ["DSButton"]
|
|
7
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var FeedbackIcon_exports = {};
|
|
30
|
-
__export(FeedbackIcon_exports, {
|
|
31
|
-
FeedbackIcon: () => FeedbackIcon,
|
|
32
|
-
default: () => FeedbackIcon_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(FeedbackIcon_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
|
38
|
-
var import_constants = require("../../constants.js");
|
|
39
|
-
var import_blocks = require("../blocks.js");
|
|
40
|
-
const feedbackIconSize = "xxl";
|
|
41
|
-
const getIconType = (subtype) => {
|
|
42
|
-
switch (subtype) {
|
|
43
|
-
case import_constants.MODAL_SUB_TYPE_V2.WARNING:
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.WarningTriangle, { "data-testid": "icon-waring", size: feedbackIconSize });
|
|
45
|
-
case import_constants.MODAL_SUB_TYPE_V2.ERROR:
|
|
46
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ErrorHexegon, { "data-testid": "icon-error", size: feedbackIconSize });
|
|
47
|
-
case import_constants.MODAL_SUB_TYPE_V2.SUCCESS:
|
|
48
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.CheckmarkCircle, { "data-testid": "icon-success", size: feedbackIconSize });
|
|
49
|
-
case import_constants.MODAL_SUB_TYPE_V2.INFORMATION:
|
|
50
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.InfoCircle, { "data-testid": "icon-information", size: feedbackIconSize });
|
|
51
|
-
default:
|
|
52
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.HelpCircle, { "data-testid": "icon-help", size: feedbackIconSize });
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const FeedbackIcon = ({ modalSubType }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.ModalFeedback, { classProps: { type: modalSubType }, children: getIconType(modalSubType) });
|
|
56
|
-
var FeedbackIcon_default = FeedbackIcon;
|
|
57
|
-
//# sourceMappingURL=FeedbackIcon.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/v2/components/FeedbackIcon.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { ErrorHexegon, WarningTriangle, CheckmarkCircle, HelpCircle, InfoCircle } from '@elliemae/ds-icons';\nimport { MODAL_SUB_TYPE_V2 } from '../../constants.js';\nimport { ModalFeedback } from '../blocks.js';\n\nconst feedbackIconSize = 'xxl';\n\nconst getIconType = (subtype) => {\n switch (subtype) {\n case MODAL_SUB_TYPE_V2.WARNING:\n return <WarningTriangle data-testid=\"icon-waring\" size={feedbackIconSize} />;\n case MODAL_SUB_TYPE_V2.ERROR:\n return <ErrorHexegon data-testid=\"icon-error\" size={feedbackIconSize} />;\n case MODAL_SUB_TYPE_V2.SUCCESS:\n return <CheckmarkCircle data-testid=\"icon-success\" size={feedbackIconSize} />;\n case MODAL_SUB_TYPE_V2.INFORMATION:\n return <InfoCircle data-testid=\"icon-information\" size={feedbackIconSize} />;\n default:\n return <HelpCircle data-testid=\"icon-help\" size={feedbackIconSize} />;\n }\n};\n\nexport const FeedbackIcon = ({ modalSubType }) => (\n <ModalFeedback classProps={{ type: modalSubType }}>{getIconType(modalSubType)}</ModalFeedback>\n);\n\nexport default FeedbackIcon;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUV;AATb,sBAAuF;AACvF,uBAAkC;AAClC,oBAA8B;AAE9B,MAAM,mBAAmB;AAEzB,MAAM,cAAc,CAAC,YAAY;AAC/B,UAAQ,SAAS;AAAA,IACf,KAAK,mCAAkB;AACrB,aAAO,4CAAC,mCAAgB,eAAY,eAAc,MAAM,kBAAkB;AAAA,IAC5E,KAAK,mCAAkB;AACrB,aAAO,4CAAC,gCAAa,eAAY,cAAa,MAAM,kBAAkB;AAAA,IACxE,KAAK,mCAAkB;AACrB,aAAO,4CAAC,mCAAgB,eAAY,gBAAe,MAAM,kBAAkB;AAAA,IAC7E,KAAK,mCAAkB;AACrB,aAAO,4CAAC,8BAAW,eAAY,oBAAmB,MAAM,kBAAkB;AAAA,IAC5E;AACE,aAAO,4CAAC,8BAAW,eAAY,aAAY,MAAM,kBAAkB;AAAA,EACvE;AACF;AAEO,MAAM,eAAe,CAAC,EAAE,aAAa,MAC1C,4CAAC,+BAAc,YAAY,EAAE,MAAM,aAAa,GAAI,sBAAY,YAAY,GAAE;AAGhF,IAAO,uBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var Footer_exports = {};
|
|
30
|
-
__export(Footer_exports, {
|
|
31
|
-
Footer: () => Footer,
|
|
32
|
-
default: () => Footer_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(Footer_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_ds_button = __toESM(require("@elliemae/ds-button"));
|
|
38
|
-
var import_blocks = require("../blocks.js");
|
|
39
|
-
const Footer = ({
|
|
40
|
-
additionalFooterCssClass,
|
|
41
|
-
actionsRef,
|
|
42
|
-
rejectLabel,
|
|
43
|
-
onReject,
|
|
44
|
-
overridePropsRejectButton,
|
|
45
|
-
confirmLabel,
|
|
46
|
-
onConfirm,
|
|
47
|
-
overridePropsConfirmButton,
|
|
48
|
-
showRejectButton
|
|
49
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.ModalFooter, { classProps: { additionalFooterCssClass }, "data-testid": "modal-footer-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_blocks.ModalFooterActions, { ref: actionsRef, children: [
|
|
50
|
-
showRejectButton === true && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
51
|
-
import_ds_button.default,
|
|
52
|
-
{
|
|
53
|
-
buttonType: "secondary",
|
|
54
|
-
className: "action-reject",
|
|
55
|
-
containerProps: { "data-testid": "modal-footer-reject-btn" },
|
|
56
|
-
labelText: rejectLabel,
|
|
57
|
-
onClick: onReject,
|
|
58
|
-
...overridePropsRejectButton
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
-
import_ds_button.default,
|
|
63
|
-
{
|
|
64
|
-
buttonType: "primary",
|
|
65
|
-
className: "action-confirm",
|
|
66
|
-
containerProps: { "data-testid": "modal-footer-confirm-btn" },
|
|
67
|
-
labelText: confirmLabel,
|
|
68
|
-
onClick: onConfirm,
|
|
69
|
-
...overridePropsConfirmButton
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
] }) });
|
|
73
|
-
var Footer_default = Footer;
|
|
74
|
-
//# sourceMappingURL=Footer.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/v2/components/Footer.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport DSButton from '@elliemae/ds-button';\nimport { ModalFooter, ModalFooterActions } from '../blocks.js';\n\nexport const Footer = ({\n additionalFooterCssClass,\n actionsRef,\n rejectLabel,\n onReject,\n overridePropsRejectButton,\n confirmLabel,\n onConfirm,\n overridePropsConfirmButton,\n showRejectButton,\n}) => (\n <ModalFooter classProps={{ additionalFooterCssClass }} data-testid=\"modal-footer-wrapper\">\n <ModalFooterActions ref={actionsRef}>\n {showRejectButton === true && (\n <DSButton\n buttonType=\"secondary\"\n className=\"action-reject\"\n containerProps={{ 'data-testid': 'modal-footer-reject-btn' }}\n labelText={rejectLabel}\n onClick={onReject}\n {...overridePropsRejectButton}\n />\n )}\n <DSButton\n buttonType=\"primary\"\n className=\"action-confirm\"\n containerProps={{ 'data-testid': 'modal-footer-confirm-btn' }}\n labelText={confirmLabel}\n onClick={onConfirm}\n {...overridePropsConfirmButton}\n />\n </ModalFooterActions>\n </ModalFooter>\n);\n\nexport default Footer;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiBnB;AAfJ,uBAAqB;AACrB,oBAAgD;AAEzC,MAAM,SAAS,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MACE,4CAAC,6BAAY,YAAY,EAAE,yBAAyB,GAAG,eAAY,wBACjE,uDAAC,oCAAmB,KAAK,YACtB;AAAA,uBAAqB,QACpB;AAAA,IAAC,iBAAAA;AAAA,IAAA;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,gBAAgB,EAAE,eAAe,0BAA0B;AAAA,MAC3D,WAAW;AAAA,MACX,SAAS;AAAA,MACR,GAAG;AAAA;AAAA,EACN;AAAA,EAEF;AAAA,IAAC,iBAAAA;AAAA,IAAA;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,gBAAgB,EAAE,eAAe,2BAA2B;AAAA,MAC5D,WAAW;AAAA,MACX,SAAS;AAAA,MACR,GAAG;AAAA;AAAA,EACN;AAAA,GACF,GACF;AAGF,IAAO,iBAAQ;",
|
|
6
|
-
"names": ["DSButton"]
|
|
7
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var FormHeader_exports = {};
|
|
30
|
-
__export(FormHeader_exports, {
|
|
31
|
-
FormHeader: () => FormHeader,
|
|
32
|
-
default: () => FormHeader_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(FormHeader_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
|
38
|
-
var import_ds_button = __toESM(require("@elliemae/ds-button"));
|
|
39
|
-
var import_blocks = require("../blocks.js");
|
|
40
|
-
var import_Title = require("./Title.js");
|
|
41
|
-
const FormHeader = ({ showClose, modalTitle, modalType, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_blocks.ModalHeader, { classProps: { type: "selection" }, children: [
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Title.Title, { modalTitle, modalType }),
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.ModalHeaderTopRight, { classProps: { type: "form" }, children: showClose && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
-
import_ds_button.default,
|
|
45
|
-
{
|
|
46
|
-
buttonType: "link",
|
|
47
|
-
containerProps: { "data-testid": "modal-close-btn" },
|
|
48
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Close, { color: ["neutral", "900"] }),
|
|
49
|
-
onClick: onClose
|
|
50
|
-
}
|
|
51
|
-
) })
|
|
52
|
-
] });
|
|
53
|
-
var FormHeader_default = FormHeader;
|
|
54
|
-
//# sourceMappingURL=FormHeader.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/v2/components/FormHeader.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { Close } from '@elliemae/ds-icons';\nimport DSButton from '@elliemae/ds-button';\nimport { ModalHeader, ModalHeaderTopRight } from '../blocks.js';\nimport { Title } from './Title.js';\n\nexport const FormHeader = ({ showClose, modalTitle, modalType, onClose }) => (\n <ModalHeader classProps={{ type: 'selection' }}>\n <Title modalTitle={modalTitle} modalType={modalType} />\n <ModalHeaderTopRight classProps={{ type: 'form' }}>\n {showClose && (\n <DSButton\n buttonType=\"link\"\n containerProps={{ 'data-testid': 'modal-close-btn' }}\n icon={<Close color={['neutral', '900']} />}\n onClick={onClose}\n />\n )}\n </ModalHeaderTopRight>\n </ModalHeader>\n);\n\nexport default FormHeader;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADQrB;AANF,sBAAsB;AACtB,uBAAqB;AACrB,oBAAiD;AACjD,mBAAsB;AAEf,MAAM,aAAa,CAAC,EAAE,WAAW,YAAY,WAAW,QAAQ,MACrE,6CAAC,6BAAY,YAAY,EAAE,MAAM,YAAY,GAC3C;AAAA,8CAAC,sBAAM,YAAwB,WAAsB;AAAA,EACrD,4CAAC,qCAAoB,YAAY,EAAE,MAAM,OAAO,GAC7C,uBACC;AAAA,IAAC,iBAAAA;AAAA,IAAA;AAAA,MACC,YAAW;AAAA,MACX,gBAAgB,EAAE,eAAe,kBAAkB;AAAA,MACnD,MAAM,4CAAC,yBAAM,OAAO,CAAC,WAAW,KAAK,GAAG;AAAA,MACxC,SAAS;AAAA;AAAA,EACX,GAEJ;AAAA,GACF;AAGF,IAAO,qBAAQ;",
|
|
6
|
-
"names": ["DSButton"]
|
|
7
|
-
}
|