@elliemae/ds-modal 3.5.0-rc.9 → 3.6.0-next.0
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/DSModal.js +3 -3
- package/dist/cjs/DSModal.js.map +2 -2
- package/dist/cjs/v1/DSModal.js +64 -43
- package/dist/cjs/v1/DSModal.js.map +2 -2
- package/dist/cjs/v1/ModalFeedBack/ModalFeedBack.js +10 -9
- package/dist/cjs/v1/ModalFeedBack/ModalFeedBack.js.map +2 -2
- package/dist/cjs/v2/DSModal.js +25 -22
- package/dist/cjs/v2/DSModal.js.map +2 -2
- package/dist/cjs/v2/components/DecisionHeader.js +10 -9
- package/dist/cjs/v2/components/DecisionHeader.js.map +2 -2
- package/dist/cjs/v2/components/FeedbackIcon.js +10 -9
- package/dist/cjs/v2/components/FeedbackIcon.js.map +2 -2
- package/dist/cjs/v2/components/Footer.js +25 -20
- package/dist/cjs/v2/components/Footer.js.map +2 -2
- package/dist/cjs/v2/components/FormHeader.js +19 -14
- package/dist/cjs/v2/components/FormHeader.js.map +2 -2
- package/dist/cjs/v2/components/ModalContent.js +44 -34
- package/dist/cjs/v2/components/ModalContent.js.map +2 -2
- package/dist/cjs/v2/components/SelectionHeader.js +16 -11
- package/dist/cjs/v2/components/SelectionHeader.js.map +2 -2
- package/dist/cjs/v2/components/Title.js +5 -4
- package/dist/cjs/v2/components/Title.js.map +2 -2
- package/dist/esm/DSModal.js +3 -3
- package/dist/esm/DSModal.js.map +2 -2
- package/dist/esm/v1/DSModal.js +64 -43
- package/dist/esm/v1/DSModal.js.map +2 -2
- package/dist/esm/v1/ModalFeedBack/ModalFeedBack.js +10 -9
- package/dist/esm/v1/ModalFeedBack/ModalFeedBack.js.map +2 -2
- package/dist/esm/v2/DSModal.js +25 -22
- package/dist/esm/v2/DSModal.js.map +2 -2
- package/dist/esm/v2/components/DecisionHeader.js +10 -9
- package/dist/esm/v2/components/DecisionHeader.js.map +2 -2
- package/dist/esm/v2/components/FeedbackIcon.js +10 -9
- package/dist/esm/v2/components/FeedbackIcon.js.map +2 -2
- package/dist/esm/v2/components/Footer.js +25 -20
- package/dist/esm/v2/components/Footer.js.map +2 -2
- package/dist/esm/v2/components/FormHeader.js +19 -14
- package/dist/esm/v2/components/FormHeader.js.map +2 -2
- package/dist/esm/v2/components/ModalContent.js +44 -34
- package/dist/esm/v2/components/ModalContent.js.map +2 -2
- package/dist/esm/v2/components/SelectionHeader.js +16 -11
- package/dist/esm/v2/components/SelectionHeader.js.map +2 -2
- package/dist/esm/v2/components/Title.js +5 -4
- package/dist/esm/v2/components/Title.js.map +2 -2
- package/package.json +9 -9
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/DSModal.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport { ThemeContext } from '@elliemae/ds-system';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport ReactModal from 'react-modal';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { MODAL_TYPE_V2 } from '../constants';\nimport { DSModalContent } from './components/ModalContent';\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 = '#root',\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"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Close } from "@elliemae/ds-icons";
|
|
4
4
|
import DSButton from "@elliemae/ds-button";
|
|
5
5
|
import { ModalHeader } from "../blocks";
|
|
6
|
-
const DecisionHeader = ({ onClose, showClose }) => /* @__PURE__ */
|
|
7
|
-
classProps: { type: "decision", showClose }
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
6
|
+
const DecisionHeader = ({ onClose, showClose }) => /* @__PURE__ */ jsx(ModalHeader, {
|
|
7
|
+
classProps: { type: "decision", showClose },
|
|
8
|
+
children: showClose && /* @__PURE__ */ jsx(DSButton, {
|
|
9
|
+
buttonType: "link",
|
|
10
|
+
containerProps: { "data-testid": "modal-button-close" },
|
|
11
|
+
icon: /* @__PURE__ */ jsx(Close, {}),
|
|
12
|
+
onClick: onClose
|
|
13
|
+
})
|
|
14
|
+
});
|
|
14
15
|
var DecisionHeader_default = DecisionHeader;
|
|
15
16
|
export {
|
|
16
17
|
DecisionHeader,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/DecisionHeader.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { Close } from '@elliemae/ds-icons';\nimport DSButton from '@elliemae/ds-button';\nimport { ModalHeader } from '../blocks';\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 />}\n onClick={onClose}\n />\n )}\n </ModalHeader>\n);\n\nexport default DecisionHeader;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAEA,SAAS,aAAa;AACtB,OAAO,cAAc;AACrB,SAAS,mBAAmB;AAErB,MAAM,iBAAiB,CAAC,EAAE,SAAS,UAAU,MAClD,oBAAC;AAAA,EAAY,YAAY,EAAE,MAAM,YAAY,UAAU;AAAA,EACpD,uBACC,oBAAC;AAAA,IACC,YAAW;AAAA,IACX,gBAAgB,EAAE,eAAe,qBAAqB;AAAA,IACtD,MAAM,oBAAC,SAAM;AAAA,IACb,SAAS;AAAA,GACX;AAAA,CAEJ;AAGF,IAAO,yBAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ErrorHexegon, WarningTriangle, CheckmarkCircle, HelpCircle, InfoCircle } from "@elliemae/ds-icons";
|
|
4
4
|
import { MODAL_SUB_TYPE_V2 } from "../../constants";
|
|
5
5
|
import { ModalFeedback } from "../blocks";
|
|
@@ -7,35 +7,36 @@ const feedbackIconSize = "xxl";
|
|
|
7
7
|
const getIconType = (subtype) => {
|
|
8
8
|
switch (subtype) {
|
|
9
9
|
case MODAL_SUB_TYPE_V2.WARNING:
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsx(WarningTriangle, {
|
|
11
11
|
"data-testid": "icon-waring",
|
|
12
12
|
size: feedbackIconSize
|
|
13
13
|
});
|
|
14
14
|
case MODAL_SUB_TYPE_V2.ERROR:
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(ErrorHexegon, {
|
|
16
16
|
"data-testid": "icon-error",
|
|
17
17
|
size: feedbackIconSize
|
|
18
18
|
});
|
|
19
19
|
case MODAL_SUB_TYPE_V2.SUCCESS:
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ jsx(CheckmarkCircle, {
|
|
21
21
|
"data-testid": "icon-success",
|
|
22
22
|
size: feedbackIconSize
|
|
23
23
|
});
|
|
24
24
|
case MODAL_SUB_TYPE_V2.INFORMATION:
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ jsx(InfoCircle, {
|
|
26
26
|
"data-testid": "icon-information",
|
|
27
27
|
size: feedbackIconSize
|
|
28
28
|
});
|
|
29
29
|
default:
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ jsx(HelpCircle, {
|
|
31
31
|
"data-testid": "icon-help",
|
|
32
32
|
size: feedbackIconSize
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
const FeedbackIcon = ({ modalSubType }) => /* @__PURE__ */
|
|
37
|
-
classProps: { type: modalSubType }
|
|
38
|
-
|
|
36
|
+
const FeedbackIcon = ({ modalSubType }) => /* @__PURE__ */ jsx(ModalFeedback, {
|
|
37
|
+
classProps: { type: modalSubType },
|
|
38
|
+
children: getIconType(modalSubType)
|
|
39
|
+
});
|
|
39
40
|
var FeedbackIcon_default = FeedbackIcon;
|
|
40
41
|
export {
|
|
41
42
|
FeedbackIcon,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/FeedbackIcon.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { ErrorHexegon, WarningTriangle, CheckmarkCircle, HelpCircle, InfoCircle } from '@elliemae/ds-icons';\n\nimport { MODAL_SUB_TYPE_V2 } from '../../constants';\nimport { ModalFeedback } from '../blocks';\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"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,SAAS,cAAc,iBAAiB,iBAAiB,YAAY,kBAAkB;AAEvF,SAAS,yBAAyB;AAClC,SAAS,qBAAqB;AAE9B,MAAM,mBAAmB;AAEzB,MAAM,cAAc,CAAC,YAAY;AAC/B,UAAQ;AAAA,SACD,kBAAkB;AACrB,aAAO,oBAAC;AAAA,QAAgB,eAAY;AAAA,QAAc,MAAM;AAAA,OAAkB;AAAA,SACvE,kBAAkB;AACrB,aAAO,oBAAC;AAAA,QAAa,eAAY;AAAA,QAAa,MAAM;AAAA,OAAkB;AAAA,SACnE,kBAAkB;AACrB,aAAO,oBAAC;AAAA,QAAgB,eAAY;AAAA,QAAe,MAAM;AAAA,OAAkB;AAAA,SACxE,kBAAkB;AACrB,aAAO,oBAAC;AAAA,QAAW,eAAY;AAAA,QAAmB,MAAM;AAAA,OAAkB;AAAA;AAE1E,aAAO,oBAAC;AAAA,QAAW,eAAY;AAAA,QAAY,MAAM;AAAA,OAAkB;AAAA;AAEzE;AAEO,MAAM,eAAe,CAAC,EAAE,aAAa,MAC1C,oBAAC;AAAA,EAAc,YAAY,EAAE,MAAM,aAAa;AAAA,EAAI,sBAAY,YAAY;AAAA,CAAE;AAGhF,IAAO,uBAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import DSButton from "@elliemae/ds-button";
|
|
4
4
|
import { ModalFooter, ModalFooterActions } from "../blocks";
|
|
5
5
|
const Footer = ({
|
|
@@ -12,26 +12,31 @@ const Footer = ({
|
|
|
12
12
|
onConfirm,
|
|
13
13
|
overridePropsConfirmButton,
|
|
14
14
|
showRejectButton
|
|
15
|
-
}) => /* @__PURE__ */
|
|
15
|
+
}) => /* @__PURE__ */ jsx(ModalFooter, {
|
|
16
16
|
classProps: { additionalFooterCssClass },
|
|
17
|
-
"data-testid": "modal-footer-wrapper"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
"data-testid": "modal-footer-wrapper",
|
|
18
|
+
children: /* @__PURE__ */ jsxs(ModalFooterActions, {
|
|
19
|
+
ref: actionsRef,
|
|
20
|
+
children: [
|
|
21
|
+
showRejectButton === true && /* @__PURE__ */ jsx(DSButton, {
|
|
22
|
+
buttonType: "secondary",
|
|
23
|
+
className: "action-reject",
|
|
24
|
+
containerProps: { "data-testid": "modal-footer-reject-btn" },
|
|
25
|
+
labelText: rejectLabel,
|
|
26
|
+
onClick: onReject,
|
|
27
|
+
...overridePropsRejectButton
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ jsx(DSButton, {
|
|
30
|
+
buttonType: "primary",
|
|
31
|
+
className: "action-confirm",
|
|
32
|
+
containerProps: { "data-testid": "modal-footer-confirm-btn" },
|
|
33
|
+
labelText: confirmLabel,
|
|
34
|
+
onClick: onConfirm,
|
|
35
|
+
...overridePropsConfirmButton
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
35
40
|
var Footer_default = Footer;
|
|
36
41
|
export {
|
|
37
42
|
Footer,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/Footer.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport DSButton from '@elliemae/ds-button';\nimport { ModalFooter, ModalFooterActions } from '../blocks';\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"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAEA,OAAO,cAAc;AACrB,SAAS,aAAa,0BAA0B;AAEzC,MAAM,SAAS,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MACE,oBAAC;AAAA,EAAY,YAAY,EAAE,yBAAyB;AAAA,EAAG,eAAY;AAAA,EACjE,+BAAC;AAAA,IAAmB,KAAK;AAAA,IACtB;AAAA,2BAAqB,QACpB,oBAAC;AAAA,QACC,YAAW;AAAA,QACX,WAAU;AAAA,QACV,gBAAgB,EAAE,eAAe,0BAA0B;AAAA,QAC3D,WAAW;AAAA,QACX,SAAS;AAAA,QACR,GAAG;AAAA,OACN;AAAA,MAEF,oBAAC;AAAA,QACC,YAAW;AAAA,QACX,WAAU;AAAA,QACV,gBAAgB,EAAE,eAAe,2BAA2B;AAAA,QAC5D,WAAW;AAAA,QACX,SAAS;AAAA,QACR,GAAG;AAAA,OACN;AAAA;AAAA,GACF;AAAA,CACF;AAGF,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Close } from "@elliemae/ds-icons";
|
|
4
4
|
import DSButton from "@elliemae/ds-button";
|
|
5
5
|
import { ModalHeader, ModalHeaderTopRight } from "../blocks";
|
|
6
6
|
import { Title } from "./Title";
|
|
7
|
-
const FormHeader = ({ showClose, modalTitle, modalType, onClose }) => /* @__PURE__ */
|
|
8
|
-
classProps: { type: "selection" }
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
7
|
+
const FormHeader = ({ showClose, modalTitle, modalType, onClose }) => /* @__PURE__ */ jsxs(ModalHeader, {
|
|
8
|
+
classProps: { type: "selection" },
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ jsx(Title, {
|
|
11
|
+
modalTitle,
|
|
12
|
+
modalType
|
|
13
|
+
}),
|
|
14
|
+
/* @__PURE__ */ jsx(ModalHeaderTopRight, {
|
|
15
|
+
classProps: { type: "form" },
|
|
16
|
+
children: showClose && /* @__PURE__ */ jsx(DSButton, {
|
|
17
|
+
buttonType: "link",
|
|
18
|
+
containerProps: { "data-testid": "modal-close-btn" },
|
|
19
|
+
icon: /* @__PURE__ */ jsx(Close, {}),
|
|
20
|
+
onClick: onClose
|
|
21
|
+
})
|
|
22
|
+
})
|
|
23
|
+
]
|
|
24
|
+
});
|
|
20
25
|
var FormHeader_default = FormHeader;
|
|
21
26
|
export {
|
|
22
27
|
FormHeader,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/FormHeader.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* 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';\nimport { Title } from './Title';\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 />}\n onClick={onClose}\n />\n )}\n </ModalHeaderTopRight>\n </ModalHeader>\n);\n\nexport default FormHeader;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAEA,SAAS,aAAa;AACtB,OAAO,cAAc;AACrB,SAAS,aAAa,2BAA2B;AACjD,SAAS,aAAa;AAEf,MAAM,aAAa,CAAC,EAAE,WAAW,YAAY,WAAW,QAAQ,MACrE,qBAAC;AAAA,EAAY,YAAY,EAAE,MAAM,YAAY;AAAA,EAC3C;AAAA,wBAAC;AAAA,MAAM;AAAA,MAAwB;AAAA,KAAsB;AAAA,IACrD,oBAAC;AAAA,MAAoB,YAAY,EAAE,MAAM,OAAO;AAAA,MAC7C,uBACC,oBAAC;AAAA,QACC,YAAW;AAAA,QACX,gBAAgB,EAAE,eAAe,kBAAkB;AAAA,QACnD,MAAM,oBAAC,SAAM;AAAA,QACb,SAAS;AAAA,OACX;AAAA,KAEJ;AAAA;AAAA,CACF;AAGF,IAAO,qBAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { MODAL_TYPE_V2 } from "../../constants";
|
|
4
4
|
import { SelectionHeader } from "./SelectionHeader";
|
|
5
5
|
import { DecisionHeader } from "./DecisionHeader";
|
|
@@ -34,39 +34,49 @@ const DSModalContent = ({
|
|
|
34
34
|
rejectLabel = "Discard",
|
|
35
35
|
confirmLabel = "Save",
|
|
36
36
|
removePadding = false
|
|
37
|
-
}) => /* @__PURE__ */
|
|
38
|
-
...containerProps
|
|
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
|
-
|
|
37
|
+
}) => /* @__PURE__ */ jsxs(ModalWrapper, {
|
|
38
|
+
...containerProps,
|
|
39
|
+
children: [
|
|
40
|
+
showForm({ modalType, modalSubType }) && /* @__PURE__ */ jsx(FormHeader, {
|
|
41
|
+
modalTitle,
|
|
42
|
+
modalType,
|
|
43
|
+
onClose,
|
|
44
|
+
showClose
|
|
45
|
+
}),
|
|
46
|
+
showSelection({ modalType, modalSubType }) && /* @__PURE__ */ jsx(SelectionHeader, {
|
|
47
|
+
modalTitle,
|
|
48
|
+
modalType,
|
|
49
|
+
searchProps,
|
|
50
|
+
showClose
|
|
51
|
+
}),
|
|
52
|
+
showDecision({ modalType, modalSubType }) && /* @__PURE__ */ jsx(DecisionHeader, {
|
|
53
|
+
onClose,
|
|
54
|
+
showClose
|
|
55
|
+
}),
|
|
56
|
+
showFeedBack({ modalType, modalSubType }) && /* @__PURE__ */ jsx(FeedbackIcon, {
|
|
57
|
+
modalSubType
|
|
58
|
+
}),
|
|
59
|
+
showDecision({ modalType, modalSubType }) && /* @__PURE__ */ jsx(Title, {
|
|
60
|
+
modalTitle,
|
|
61
|
+
modalType
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ jsx(ModalContent, {
|
|
64
|
+
classProps: { type: modalType, removePadding },
|
|
65
|
+
children
|
|
66
|
+
}),
|
|
67
|
+
showFooter({ modalType, modalSubType }) && /* @__PURE__ */ jsx(Footer, {
|
|
68
|
+
actionsRef,
|
|
69
|
+
additionalFooterCssClass,
|
|
70
|
+
confirmLabel,
|
|
71
|
+
onConfirm,
|
|
72
|
+
onReject,
|
|
73
|
+
overridePropsConfirmButton,
|
|
74
|
+
overridePropsRejectButton,
|
|
75
|
+
rejectLabel,
|
|
76
|
+
showRejectButton
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
});
|
|
70
80
|
export {
|
|
71
81
|
DSModalContent
|
|
72
82
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/ModalContent.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { MODAL_TYPE_V2 } from '../../constants';\nimport { SelectionHeader } from './SelectionHeader';\nimport { DecisionHeader } from './DecisionHeader';\nimport { FormHeader } from './FormHeader';\nimport { FeedbackIcon } from './FeedbackIcon';\nimport { Footer } from './Footer';\nimport { Title } from './Title';\nimport {\n showDecision,\n showFeedBack,\n showFooter,\n showSelection,\n showForm,\n} from '../helpers';\nimport { ModalContent, ModalWrapper } from '../blocks';\n\nexport const DSModalContent = ({\n containerProps = {},\n //\n modalType = MODAL_TYPE_V2.INFORMATION,\n modalSubType = null,\n modalTitle = '',\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 onClose = () => null,\n onConfirm = () => null,\n onReject = () => null,\n rejectLabel = 'Discard',\n confirmLabel = 'Save',\n removePadding = false,\n}) => (\n <ModalWrapper {...containerProps}>\n {showForm({ modalType, modalSubType }) && (\n <FormHeader\n modalTitle={modalTitle}\n modalType={modalType}\n onClose={onClose}\n showClose={showClose}\n />\n )}\n {showSelection({ modalType, modalSubType }) && (\n <SelectionHeader\n modalTitle={modalTitle}\n modalType={modalType}\n searchProps={searchProps}\n showClose={showClose}\n />\n )}\n {showDecision({ modalType, modalSubType }) && (\n <DecisionHeader onClose={onClose} showClose={showClose} />\n )}\n {showFeedBack({ modalType, modalSubType }) && (\n <FeedbackIcon modalSubType={modalSubType} />\n )}\n {showDecision({ modalType, modalSubType }) && (\n <Title modalTitle={modalTitle} modalType={modalType} />\n )}\n <ModalContent classProps={{ type: modalType, removePadding }}>\n {children}\n </ModalContent>\n {showFooter({ modalType, modalSubType }) && (\n <Footer\n actionsRef={actionsRef}\n additionalFooterCssClass={additionalFooterCssClass}\n confirmLabel={confirmLabel}\n onConfirm={onConfirm}\n onReject={onReject}\n overridePropsConfirmButton={overridePropsConfirmButton}\n overridePropsRejectButton={overridePropsRejectButton}\n rejectLabel={rejectLabel}\n showRejectButton={showRejectButton}\n />\n )}\n </ModalWrapper>\n);\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAEA,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AACvB,SAAS,aAAa;AACtB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAAc,oBAAoB;AAEpC,MAAM,iBAAiB,CAAC;AAAA,EAC7B,iBAAiB,CAAC;AAAA,EAElB,YAAY,cAAc;AAAA,EAC1B,eAAe;AAAA,EACf,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,cAAc,CAAC;AAAA,EAEf,aAAa,MAAM;AAAA,EACnB;AAAA,EACA,6BAA6B,CAAC;AAAA,EAC9B,4BAA4B,CAAC;AAAA,EAE7B;AAAA,EACA,UAAU,MAAM;AAAA,EAChB,YAAY,MAAM;AAAA,EAClB,WAAW,MAAM;AAAA,EACjB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,gBAAgB;AAClB,MACE,qBAAC;AAAA,EAAc,GAAG;AAAA,EACf;AAAA,aAAS,EAAE,WAAW,aAAa,CAAC,KACnC,oBAAC;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,KACF;AAAA,IAED,cAAc,EAAE,WAAW,aAAa,CAAC,KACxC,oBAAC;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,KACF;AAAA,IAED,aAAa,EAAE,WAAW,aAAa,CAAC,KACvC,oBAAC;AAAA,MAAe;AAAA,MAAkB;AAAA,KAAsB;AAAA,IAEzD,aAAa,EAAE,WAAW,aAAa,CAAC,KACvC,oBAAC;AAAA,MAAa;AAAA,KAA4B;AAAA,IAE3C,aAAa,EAAE,WAAW,aAAa,CAAC,KACvC,oBAAC;AAAA,MAAM;AAAA,MAAwB;AAAA,KAAsB;AAAA,IAEvD,oBAAC;AAAA,MAAa,YAAY,EAAE,MAAM,WAAW,cAAc;AAAA,MACxD;AAAA,KACH;AAAA,IACC,WAAW,EAAE,WAAW,aAAa,CAAC,KACrC,oBAAC;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,KACF;AAAA;AAAA,CAEJ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { DSSearchBox } from "@elliemae/ds-form";
|
|
4
4
|
import { ModalHeader, ModalHeaderTopRight } from "../blocks";
|
|
5
5
|
import { Title } from "./Title";
|
|
6
|
-
const SelectionHeader = ({ searchProps = {}, modalTitle, modalType, showClose }) => /* @__PURE__ */
|
|
7
|
-
classProps: { type: "selection" }
|
|
8
|
-
}, /* @__PURE__ */ React2.createElement(Title, {
|
|
9
|
-
modalTitle,
|
|
10
|
-
modalType
|
|
11
|
-
}), showClose && /* @__PURE__ */ React2.createElement(ModalHeaderTopRight, {
|
|
6
|
+
const SelectionHeader = ({ searchProps = {}, modalTitle, modalType, showClose }) => /* @__PURE__ */ jsxs(ModalHeader, {
|
|
12
7
|
classProps: { type: "selection" },
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ jsx(Title, {
|
|
10
|
+
modalTitle,
|
|
11
|
+
modalType
|
|
12
|
+
}),
|
|
13
|
+
showClose && /* @__PURE__ */ jsx(ModalHeaderTopRight, {
|
|
14
|
+
classProps: { type: "selection" },
|
|
15
|
+
"data-testid": "modal-search-box",
|
|
16
|
+
children: /* @__PURE__ */ jsx(DSSearchBox, {
|
|
17
|
+
...searchProps
|
|
18
|
+
})
|
|
19
|
+
})
|
|
20
|
+
]
|
|
21
|
+
});
|
|
17
22
|
var SelectionHeader_default = SelectionHeader;
|
|
18
23
|
export {
|
|
19
24
|
SelectionHeader,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/SelectionHeader.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { DSSearchBox } from '@elliemae/ds-form';\nimport { ModalHeader, ModalHeaderTopRight } from '../blocks';\nimport { Title } from './Title';\n\nexport const SelectionHeader = ({ searchProps = {}, modalTitle, modalType, showClose }) => (\n <ModalHeader classProps={{ type: 'selection' }}>\n <Title modalTitle={modalTitle} modalType={modalType} />\n {showClose && (\n <ModalHeaderTopRight classProps={{ type: 'selection' }} data-testid=\"modal-search-box\">\n <DSSearchBox {...searchProps} />\n </ModalHeaderTopRight>\n )}\n </ModalHeader>\n);\n\nexport default SelectionHeader;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAEA,SAAS,mBAAmB;AAC5B,SAAS,aAAa,2BAA2B;AACjD,SAAS,aAAa;AAEf,MAAM,kBAAkB,CAAC,EAAE,cAAc,CAAC,GAAG,YAAY,WAAW,UAAU,MACnF,qBAAC;AAAA,EAAY,YAAY,EAAE,MAAM,YAAY;AAAA,EAC3C;AAAA,wBAAC;AAAA,MAAM;AAAA,MAAwB;AAAA,KAAsB;AAAA,IACpD,aACC,oBAAC;AAAA,MAAoB,YAAY,EAAE,MAAM,YAAY;AAAA,MAAG,eAAY;AAAA,MAClE,8BAAC;AAAA,QAAa,GAAG;AAAA,OAAa;AAAA,KAChC;AAAA;AAAA,CAEJ;AAGF,IAAO,0BAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ModalTitle } from "../blocks";
|
|
4
|
-
const Title = ({ modalTitle, modalType }) => /* @__PURE__ */
|
|
5
|
-
classProps: { type: modalType }
|
|
6
|
-
|
|
4
|
+
const Title = ({ modalTitle, modalType }) => /* @__PURE__ */ jsx(ModalTitle, {
|
|
5
|
+
classProps: { type: modalType },
|
|
6
|
+
children: modalTitle
|
|
7
|
+
});
|
|
7
8
|
var Title_default = Title;
|
|
8
9
|
export {
|
|
9
10
|
Title,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/Title.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { ModalTitle } from '../blocks';\n\nexport const Title = ({ modalTitle, modalType }) => (\n <ModalTitle classProps={{ type: modalType }}>{modalTitle}</ModalTitle>\n);\n\nexport default Title;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAEA,SAAS,kBAAkB;AAEpB,MAAM,QAAQ,CAAC,EAAE,YAAY,UAAU,MAC5C,oBAAC;AAAA,EAAW,YAAY,EAAE,MAAM,UAAU;AAAA,EAAI;AAAA,CAAW;AAG3D,IAAO,gBAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal",
|
|
6
6
|
"files": [
|
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
"indent": 4
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@elliemae/ds-button": "3.
|
|
103
|
-
"@elliemae/ds-classnames": "3.
|
|
104
|
-
"@elliemae/ds-form": "3.
|
|
105
|
-
"@elliemae/ds-icon": "3.
|
|
106
|
-
"@elliemae/ds-icons": "3.
|
|
107
|
-
"@elliemae/ds-shared": "3.
|
|
108
|
-
"@elliemae/ds-system": "3.
|
|
109
|
-
"@elliemae/ds-utilities": "3.
|
|
102
|
+
"@elliemae/ds-button": "3.6.0-next.0",
|
|
103
|
+
"@elliemae/ds-classnames": "3.6.0-next.0",
|
|
104
|
+
"@elliemae/ds-form": "3.6.0-next.0",
|
|
105
|
+
"@elliemae/ds-icon": "3.6.0-next.0",
|
|
106
|
+
"@elliemae/ds-icons": "3.6.0-next.0",
|
|
107
|
+
"@elliemae/ds-shared": "3.6.0-next.0",
|
|
108
|
+
"@elliemae/ds-system": "3.6.0-next.0",
|
|
109
|
+
"@elliemae/ds-utilities": "3.6.0-next.0",
|
|
110
110
|
"prop-types": "~15.8.1",
|
|
111
111
|
"react-modal": "~3.15.1",
|
|
112
112
|
"styled-components": "~5.3.5"
|