@elliemae/ds-modal 2.3.0-next.0 → 3.0.0-alpha.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 +88 -0
- package/dist/cjs/DSModal.js.map +7 -0
- package/dist/cjs/constants.js +73 -0
- package/dist/cjs/constants.js.map +7 -0
- package/dist/cjs/index.js +43 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/v1/DSModal.js +177 -0
- package/dist/cjs/v1/DSModal.js.map +7 -0
- package/dist/cjs/v1/DSModalType.js +45 -0
- package/dist/cjs/v1/DSModalType.js.map +7 -0
- package/dist/cjs/v1/DSModalWrapper.js +129 -0
- package/dist/cjs/v1/DSModalWrapper.js.map +7 -0
- package/dist/cjs/v1/ModalFeedBack/ModalFeedBack.js +103 -0
- package/dist/cjs/v1/ModalFeedBack/ModalFeedBack.js.map +7 -0
- package/dist/cjs/v2/DSModal.js +160 -0
- package/dist/cjs/v2/DSModal.js.map +7 -0
- package/dist/cjs/v2/blocks.js +71 -0
- package/dist/cjs/v2/blocks.js.map +7 -0
- package/dist/cjs/v2/components/DecisionHeader.js +48 -0
- package/dist/cjs/v2/components/DecisionHeader.js.map +7 -0
- package/dist/cjs/v2/components/FeedbackIcon.js +73 -0
- package/dist/cjs/v2/components/FeedbackIcon.js.map +7 -0
- package/dist/cjs/v2/components/Footer.js +69 -0
- package/dist/cjs/v2/components/Footer.js.map +7 -0
- package/dist/cjs/v2/components/FormHeader.js +54 -0
- package/dist/cjs/v2/components/FormHeader.js.map +7 -0
- package/dist/cjs/v2/components/ModalContent.js +96 -0
- package/dist/cjs/v2/components/ModalContent.js.map +7 -0
- package/dist/cjs/v2/components/SelectionHeader.js +51 -0
- package/dist/cjs/v2/components/SelectionHeader.js.map +7 -0
- package/dist/cjs/v2/components/Title.js +41 -0
- package/dist/cjs/v2/components/Title.js.map +7 -0
- package/dist/cjs/v2/helpers.js +54 -0
- package/dist/cjs/v2/helpers.js.map +7 -0
- package/dist/esm/DSModal.js +59 -0
- package/dist/esm/DSModal.js.map +7 -0
- package/dist/esm/constants.js +44 -0
- package/dist/esm/constants.js.map +7 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/v1/DSModal.js +148 -0
- package/dist/esm/v1/DSModal.js.map +7 -0
- package/dist/esm/v1/DSModalType.js +16 -0
- package/dist/esm/v1/DSModalType.js.map +7 -0
- package/dist/esm/v1/DSModalWrapper.js +100 -0
- package/dist/esm/v1/DSModalWrapper.js.map +7 -0
- package/dist/esm/v1/ModalFeedBack/ModalFeedBack.js +74 -0
- package/dist/esm/v1/ModalFeedBack/ModalFeedBack.js.map +7 -0
- package/dist/esm/v2/DSModal.js +131 -0
- package/dist/esm/v2/DSModal.js.map +7 -0
- package/dist/esm/v2/blocks.js +42 -0
- package/dist/esm/v2/blocks.js.map +7 -0
- package/dist/esm/v2/components/DecisionHeader.js +19 -0
- package/dist/esm/v2/components/DecisionHeader.js.map +7 -0
- package/dist/esm/v2/components/FeedbackIcon.js +44 -0
- package/dist/esm/v2/components/FeedbackIcon.js.map +7 -0
- package/dist/esm/v2/components/Footer.js +40 -0
- package/dist/esm/v2/components/Footer.js.map +7 -0
- package/dist/esm/v2/components/FormHeader.js +25 -0
- package/dist/esm/v2/components/FormHeader.js.map +7 -0
- package/dist/esm/v2/components/ModalContent.js +73 -0
- package/dist/esm/v2/components/ModalContent.js.map +7 -0
- package/dist/esm/v2/components/SelectionHeader.js +22 -0
- package/dist/esm/v2/components/SelectionHeader.js.map +7 -0
- package/dist/esm/v2/components/Title.js +12 -0
- package/dist/esm/v2/components/Title.js.map +7 -0
- package/dist/esm/v2/helpers.js +25 -0
- package/dist/esm/v2/helpers.js.map +7 -0
- package/{types → dist/types}/DSModal.d.ts +1 -1
- package/{types → dist/types}/constants.d.ts +0 -0
- package/dist/types/index.d.ts +3 -0
- package/{types → dist/types}/v1/DSModal.d.ts +0 -0
- package/{types → dist/types}/v1/DSModalType.d.ts +0 -0
- package/{types → dist/types}/v1/ModalFeedBack/ModalFeedBack.d.ts +0 -0
- package/{types → dist/types}/v2/DSModal.d.ts +0 -0
- package/{types → dist/types}/v2/blocks.d.ts +0 -0
- package/{types → dist/types}/v2/components/DecisionHeader.d.ts +0 -0
- package/{types → dist/types}/v2/components/FeedbackIcon.d.ts +0 -0
- package/{types → dist/types}/v2/components/Footer.d.ts +0 -0
- package/{types → dist/types}/v2/components/FormHeader.d.ts +0 -0
- package/{types → dist/types}/v2/components/ModalContent.d.ts +0 -0
- package/{types → dist/types}/v2/components/SelectionHeader.d.ts +0 -0
- package/{types → dist/types}/v2/components/Title.d.ts +0 -0
- package/{types → dist/types}/v2/components/tests/DecisionHeader.test.d.ts +0 -0
- package/{types → dist/types}/v2/components/tests/FeedbackIcon.test.d.ts +0 -0
- package/{types → dist/types}/v2/components/tests/Footer.test.d.ts +0 -0
- package/{types → dist/types}/v2/components/tests/FormHeader.test.d.ts +0 -0
- package/{types → dist/types}/v2/components/tests/SelectionHeader.test.d.ts +0 -0
- package/{types → dist/types}/v2/helpers.d.ts +0 -0
- package/{types → dist/types}/v2/tests/DSModal.test.d.ts +0 -0
- package/package.json +63 -55
- package/cjs/DSModal.js +0 -186
- package/cjs/constants.js +0 -34
- package/cjs/index.js +0 -18
- package/cjs/v1/DSModal.js +0 -148
- package/cjs/v1/DSModalType.js +0 -7
- package/cjs/v1/DSModalWrapper.js +0 -166
- package/cjs/v1/ModalFeedBack/ModalFeedBack.js +0 -98
- package/cjs/v2/DSModal.js +0 -203
- package/cjs/v2/blocks.js +0 -88
- package/cjs/v2/components/DecisionHeader.js +0 -38
- package/cjs/v2/components/FeedbackIcon.js +0 -64
- package/cjs/v2/components/Footer.js +0 -66
- package/cjs/v2/components/FormHeader.js +0 -47
- package/cjs/v2/components/ModalContent.js +0 -112
- package/cjs/v2/components/SelectionHeader.js +0 -49
- package/cjs/v2/components/Title.js +0 -26
- package/cjs/v2/helpers.js +0 -45
- package/esm/DSModal.js +0 -175
- package/esm/constants.js +0 -26
- package/esm/index.js +0 -4
- package/esm/v1/DSModal.js +0 -139
- package/esm/v1/DSModalType.js +0 -3
- package/esm/v1/DSModalWrapper.js +0 -160
- package/esm/v1/ModalFeedBack/ModalFeedBack.js +0 -92
- package/esm/v2/DSModal.js +0 -192
- package/esm/v2/blocks.js +0 -77
- package/esm/v2/components/DecisionHeader.js +0 -28
- package/esm/v2/components/FeedbackIcon.js +0 -55
- package/esm/v2/components/Footer.js +0 -55
- package/esm/v2/components/FormHeader.js +0 -37
- package/esm/v2/components/ModalContent.js +0 -103
- package/esm/v2/components/SelectionHeader.js +0 -39
- package/esm/v2/components/Title.js +0 -17
- package/esm/v2/helpers.js +0 -37
- package/types/index.d.ts +0 -4
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { ErrorHexegon, WarningTriangle, CheckmarkCircle, HelpCircle, InfoCircle } from "@elliemae/ds-icons";
|
|
4
|
+
import { MODAL_SUB_TYPE_V2 } from "../../constants";
|
|
5
|
+
import { ModalFeedback } from "../blocks";
|
|
6
|
+
const feedbackIconSize = "xxl";
|
|
7
|
+
const getIconType = (subtype) => {
|
|
8
|
+
switch (subtype) {
|
|
9
|
+
case MODAL_SUB_TYPE_V2.WARNING:
|
|
10
|
+
return /* @__PURE__ */ React2.createElement(WarningTriangle, {
|
|
11
|
+
"data-testid": "icon-waring",
|
|
12
|
+
size: feedbackIconSize
|
|
13
|
+
});
|
|
14
|
+
case MODAL_SUB_TYPE_V2.ERROR:
|
|
15
|
+
return /* @__PURE__ */ React2.createElement(ErrorHexegon, {
|
|
16
|
+
"data-testid": "icon-error",
|
|
17
|
+
size: feedbackIconSize
|
|
18
|
+
});
|
|
19
|
+
case MODAL_SUB_TYPE_V2.SUCCESS:
|
|
20
|
+
return /* @__PURE__ */ React2.createElement(CheckmarkCircle, {
|
|
21
|
+
"data-testid": "icon-success",
|
|
22
|
+
size: feedbackIconSize
|
|
23
|
+
});
|
|
24
|
+
case MODAL_SUB_TYPE_V2.INFORMATION:
|
|
25
|
+
return /* @__PURE__ */ React2.createElement(InfoCircle, {
|
|
26
|
+
"data-testid": "icon-information",
|
|
27
|
+
size: feedbackIconSize
|
|
28
|
+
});
|
|
29
|
+
default:
|
|
30
|
+
return /* @__PURE__ */ React2.createElement(HelpCircle, {
|
|
31
|
+
"data-testid": "icon-help",
|
|
32
|
+
size: feedbackIconSize
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const FeedbackIcon = ({ modalSubType }) => /* @__PURE__ */ React2.createElement(ModalFeedback, {
|
|
37
|
+
classProps: { type: modalSubType }
|
|
38
|
+
}, getIconType(modalSubType));
|
|
39
|
+
var FeedbackIcon_default = FeedbackIcon;
|
|
40
|
+
export {
|
|
41
|
+
FeedbackIcon,
|
|
42
|
+
FeedbackIcon_default as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=FeedbackIcon.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/FeedbackIcon.tsx"],
|
|
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;ACAA;AACA;AAEA;AACA;AAEA,MAAM,mBAAmB;AAEzB,MAAM,cAAc,CAAC,YAAY;AAC/B,UAAQ;AAAA,SACD,kBAAkB;AACrB,aAAO,qCAAC,iBAAD;AAAA,QAAiB,eAAY;AAAA,QAAc,MAAM;AAAA;AAAA,SACrD,kBAAkB;AACrB,aAAO,qCAAC,cAAD;AAAA,QAAc,eAAY;AAAA,QAAa,MAAM;AAAA;AAAA,SACjD,kBAAkB;AACrB,aAAO,qCAAC,iBAAD;AAAA,QAAiB,eAAY;AAAA,QAAe,MAAM;AAAA;AAAA,SACtD,kBAAkB;AACrB,aAAO,qCAAC,YAAD;AAAA,QAAY,eAAY;AAAA,QAAmB,MAAM;AAAA;AAAA;AAExD,aAAO,qCAAC,YAAD;AAAA,QAAY,eAAY;AAAA,QAAY,MAAM;AAAA;AAAA;AAAA;AAIhD,MAAM,eAAe,CAAC,EAAE,mBAC7B,qCAAC,eAAD;AAAA,EAAe,YAAY,EAAE,MAAM;AAAA,GAAiB,YAAY;AAGlE,IAAO,uBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import DSButton from "@elliemae/ds-button";
|
|
4
|
+
import { ModalFooter, ModalFooterActions } from "../blocks";
|
|
5
|
+
const Footer = ({
|
|
6
|
+
additionalFooterCssClass,
|
|
7
|
+
actionsRef,
|
|
8
|
+
rejectLabel,
|
|
9
|
+
onReject,
|
|
10
|
+
overridePropsRejectButton,
|
|
11
|
+
confirmLabel,
|
|
12
|
+
onConfirm,
|
|
13
|
+
overridePropsConfirmButton,
|
|
14
|
+
showRejectButton
|
|
15
|
+
}) => /* @__PURE__ */ React2.createElement(ModalFooter, {
|
|
16
|
+
classProps: { additionalFooterCssClass },
|
|
17
|
+
"data-testid": "modal-footer-wrapper"
|
|
18
|
+
}, /* @__PURE__ */ React2.createElement(ModalFooterActions, {
|
|
19
|
+
ref: actionsRef
|
|
20
|
+
}, showRejectButton === true && /* @__PURE__ */ React2.createElement(DSButton, {
|
|
21
|
+
buttonType: "secondary",
|
|
22
|
+
className: "action-reject",
|
|
23
|
+
containerProps: { "data-testid": "modal-footer-reject-btn" },
|
|
24
|
+
labelText: rejectLabel,
|
|
25
|
+
onClick: onReject,
|
|
26
|
+
...overridePropsRejectButton
|
|
27
|
+
}), /* @__PURE__ */ React2.createElement(DSButton, {
|
|
28
|
+
buttonType: "primary",
|
|
29
|
+
className: "action-confirm",
|
|
30
|
+
containerProps: { "data-testid": "modal-footer-confirm-btn" },
|
|
31
|
+
labelText: confirmLabel,
|
|
32
|
+
onClick: onConfirm,
|
|
33
|
+
...overridePropsConfirmButton
|
|
34
|
+
})));
|
|
35
|
+
var Footer_default = Footer;
|
|
36
|
+
export {
|
|
37
|
+
Footer,
|
|
38
|
+
Footer_default as default
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=Footer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/Footer.tsx"],
|
|
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;ACCA;AACA;AACA;AAEO,MAAM,SAAS,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MAEA,qCAAC,aAAD;AAAA,EAAa,YAAY,EAAE;AAAA,EAA4B,eAAY;AAAA,GACjE,qCAAC,oBAAD;AAAA,EAAoB,KAAK;AAAA,GACtB,qBAAqB,QACpB,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,KACL;AAAA,IAGR,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,KACL;AAAA;AAMZ,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { Close } from "@elliemae/ds-icons";
|
|
4
|
+
import DSButton from "@elliemae/ds-button";
|
|
5
|
+
import { ModalHeader, ModalHeaderTopRight } from "../blocks";
|
|
6
|
+
import { Title } from "./Title";
|
|
7
|
+
const FormHeader = ({ showClose, modalTitle, modalType, onClose }) => /* @__PURE__ */ React2.createElement(ModalHeader, {
|
|
8
|
+
classProps: { type: "selection" }
|
|
9
|
+
}, /* @__PURE__ */ React2.createElement(Title, {
|
|
10
|
+
modalTitle,
|
|
11
|
+
modalType
|
|
12
|
+
}), /* @__PURE__ */ React2.createElement(ModalHeaderTopRight, {
|
|
13
|
+
classProps: { type: "form" }
|
|
14
|
+
}, showClose && /* @__PURE__ */ React2.createElement(DSButton, {
|
|
15
|
+
buttonType: "link",
|
|
16
|
+
containerProps: { "data-testid": "modal-close-btn" },
|
|
17
|
+
icon: /* @__PURE__ */ React2.createElement(Close, null),
|
|
18
|
+
onClick: onClose
|
|
19
|
+
})));
|
|
20
|
+
var FormHeader_default = FormHeader;
|
|
21
|
+
export {
|
|
22
|
+
FormHeader,
|
|
23
|
+
FormHeader_default as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=FormHeader.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/FormHeader.tsx"],
|
|
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;ACCA;AACA;AACA;AACA;AACA;AAEO,MAAM,aAAa,CAAC,EAAE,WAAW,YAAY,WAAW,cAC7D,qCAAC,aAAD;AAAA,EAAa,YAAY,EAAE,MAAM;AAAA,GAC/B,qCAAC,OAAD;AAAA,EAAO;AAAA,EAAwB;AAAA,IAC/B,qCAAC,qBAAD;AAAA,EAAqB,YAAY,EAAE,MAAM;AAAA,GACtC,aACC,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,gBAAgB,EAAE,eAAe;AAAA,EACjC,MAAM,qCAAC,OAAD;AAAA,EACN,SAAS;AAAA;AAOnB,IAAO,qBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { MODAL_TYPE_V2 } from "../../constants";
|
|
4
|
+
import { SelectionHeader } from "./SelectionHeader";
|
|
5
|
+
import { DecisionHeader } from "./DecisionHeader";
|
|
6
|
+
import { FormHeader } from "./FormHeader";
|
|
7
|
+
import { FeedbackIcon } from "./FeedbackIcon";
|
|
8
|
+
import { Footer } from "./Footer";
|
|
9
|
+
import { Title } from "./Title";
|
|
10
|
+
import {
|
|
11
|
+
showDecision,
|
|
12
|
+
showFeedBack,
|
|
13
|
+
showFooter,
|
|
14
|
+
showSelection,
|
|
15
|
+
showForm
|
|
16
|
+
} from "../helpers";
|
|
17
|
+
import { ModalContent, ModalWrapper } from "../blocks";
|
|
18
|
+
const DSModalContent = ({
|
|
19
|
+
containerProps = {},
|
|
20
|
+
modalType = MODAL_TYPE_V2.INFORMATION,
|
|
21
|
+
modalSubType = null,
|
|
22
|
+
modalTitle = "",
|
|
23
|
+
showRejectButton = false,
|
|
24
|
+
showClose = true,
|
|
25
|
+
searchProps = {},
|
|
26
|
+
actionsRef = () => null,
|
|
27
|
+
additionalFooterCssClass,
|
|
28
|
+
overridePropsConfirmButton = {},
|
|
29
|
+
overridePropsRejectButton = {},
|
|
30
|
+
children,
|
|
31
|
+
onClose = () => null,
|
|
32
|
+
onConfirm = () => null,
|
|
33
|
+
onReject = () => null,
|
|
34
|
+
rejectLabel = "Discard",
|
|
35
|
+
confirmLabel = "Save",
|
|
36
|
+
removePadding = false
|
|
37
|
+
}) => /* @__PURE__ */ React2.createElement(ModalWrapper, {
|
|
38
|
+
...containerProps
|
|
39
|
+
}, showForm({ modalType, modalSubType }) && /* @__PURE__ */ React2.createElement(FormHeader, {
|
|
40
|
+
modalTitle,
|
|
41
|
+
modalType,
|
|
42
|
+
onClose,
|
|
43
|
+
showClose
|
|
44
|
+
}), showSelection({ modalType, modalSubType }) && /* @__PURE__ */ React2.createElement(SelectionHeader, {
|
|
45
|
+
modalTitle,
|
|
46
|
+
modalType,
|
|
47
|
+
searchProps,
|
|
48
|
+
showClose
|
|
49
|
+
}), showDecision({ modalType, modalSubType }) && /* @__PURE__ */ React2.createElement(DecisionHeader, {
|
|
50
|
+
onClose,
|
|
51
|
+
showClose
|
|
52
|
+
}), showFeedBack({ modalType, modalSubType }) && /* @__PURE__ */ React2.createElement(FeedbackIcon, {
|
|
53
|
+
modalSubType
|
|
54
|
+
}), showDecision({ modalType, modalSubType }) && /* @__PURE__ */ React2.createElement(Title, {
|
|
55
|
+
modalTitle,
|
|
56
|
+
modalType
|
|
57
|
+
}), /* @__PURE__ */ React2.createElement(ModalContent, {
|
|
58
|
+
classProps: { type: modalType, removePadding }
|
|
59
|
+
}, children), showFooter({ modalType, modalSubType }) && /* @__PURE__ */ React2.createElement(Footer, {
|
|
60
|
+
actionsRef,
|
|
61
|
+
additionalFooterCssClass,
|
|
62
|
+
confirmLabel,
|
|
63
|
+
onConfirm,
|
|
64
|
+
onReject,
|
|
65
|
+
overridePropsConfirmButton,
|
|
66
|
+
overridePropsRejectButton,
|
|
67
|
+
rejectLabel,
|
|
68
|
+
showRejectButton
|
|
69
|
+
}));
|
|
70
|
+
export {
|
|
71
|
+
DSModalContent
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=ModalContent.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/ModalContent.tsx"],
|
|
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;ACCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA;AAEO,MAAM,iBAAiB,CAAC;AAAA,EAC7B,iBAAiB;AAAA,EAEjB,YAAY,cAAc;AAAA,EAC1B,eAAe;AAAA,EACf,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,cAAc;AAAA,EAEd,aAAa,MAAM;AAAA,EACnB;AAAA,EACA,6BAA6B;AAAA,EAC7B,4BAA4B;AAAA,EAE5B;AAAA,EACA,UAAU,MAAM;AAAA,EAChB,YAAY,MAAM;AAAA,EAClB,WAAW,MAAM;AAAA,EACjB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,gBAAgB;AAAA,MAEhB,qCAAC,cAAD;AAAA,KAAkB;AAAA,GACf,SAAS,EAAE,WAAW,mBACrB,qCAAC,YAAD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,IAGH,cAAc,EAAE,WAAW,mBAC1B,qCAAC,iBAAD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,IAGH,aAAa,EAAE,WAAW,mBACzB,qCAAC,gBAAD;AAAA,EAAgB;AAAA,EAAkB;AAAA,IAEnC,aAAa,EAAE,WAAW,mBACzB,qCAAC,cAAD;AAAA,EAAc;AAAA,IAEf,aAAa,EAAE,WAAW,mBACzB,qCAAC,OAAD;AAAA,EAAO;AAAA,EAAwB;AAAA,IAEjC,qCAAC,cAAD;AAAA,EAAc,YAAY,EAAE,MAAM,WAAW;AAAA,GAC1C,WAEF,WAAW,EAAE,WAAW,mBACvB,qCAAC,QAAD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { DSSearchBox } from "@elliemae/ds-form";
|
|
4
|
+
import { ModalHeader, ModalHeaderTopRight } from "../blocks";
|
|
5
|
+
import { Title } from "./Title";
|
|
6
|
+
const SelectionHeader = ({ searchProps = {}, modalTitle, modalType, showClose }) => /* @__PURE__ */ React2.createElement(ModalHeader, {
|
|
7
|
+
classProps: { type: "selection" }
|
|
8
|
+
}, /* @__PURE__ */ React2.createElement(Title, {
|
|
9
|
+
modalTitle,
|
|
10
|
+
modalType
|
|
11
|
+
}), showClose && /* @__PURE__ */ React2.createElement(ModalHeaderTopRight, {
|
|
12
|
+
classProps: { type: "selection" },
|
|
13
|
+
"data-testid": "modal-search-box"
|
|
14
|
+
}, /* @__PURE__ */ React2.createElement(DSSearchBox, {
|
|
15
|
+
...searchProps
|
|
16
|
+
})));
|
|
17
|
+
var SelectionHeader_default = SelectionHeader;
|
|
18
|
+
export {
|
|
19
|
+
SelectionHeader,
|
|
20
|
+
SelectionHeader_default as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=SelectionHeader.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/SelectionHeader.tsx"],
|
|
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;ACCA;AACA;AACA;AACA;AAEO,MAAM,kBAAkB,CAAC,EAAE,cAAc,IAAI,YAAY,WAAW,gBACzE,qCAAC,aAAD;AAAA,EAAa,YAAY,EAAE,MAAM;AAAA,GAC/B,qCAAC,OAAD;AAAA,EAAO;AAAA,EAAwB;AAAA,IAC9B,aACC,qCAAC,qBAAD;AAAA,EAAqB,YAAY,EAAE,MAAM;AAAA,EAAe,eAAY;AAAA,GAClE,qCAAC,aAAD;AAAA,KAAiB;AAAA;AAMzB,IAAO,0BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { ModalTitle } from "../blocks";
|
|
4
|
+
const Title = ({ modalTitle, modalType }) => /* @__PURE__ */ React2.createElement(ModalTitle, {
|
|
5
|
+
classProps: { type: modalType }
|
|
6
|
+
}, modalTitle);
|
|
7
|
+
var Title_default = Title;
|
|
8
|
+
export {
|
|
9
|
+
Title,
|
|
10
|
+
Title_default as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Title.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/Title.tsx"],
|
|
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;ACCA;AACA;AAEO,MAAM,QAAQ,CAAC,EAAE,YAAY,gBAClC,qCAAC,YAAD;AAAA,EAAY,YAAY,EAAE,MAAM;AAAA,GAAc;AAGhD,IAAO,gBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { MODAL_TYPE_V2, MODAL_SUB_TYPE_V2 } from "../constants";
|
|
3
|
+
function showDecision({ modalType }) {
|
|
4
|
+
return [MODAL_TYPE_V2.INFORMATION, MODAL_TYPE_V2.DECISION].indexOf(modalType) > -1;
|
|
5
|
+
}
|
|
6
|
+
function showFeedBack({ modalType, modalSubType }) {
|
|
7
|
+
return showDecision({ modalType }) && Object.values(MODAL_SUB_TYPE_V2).indexOf(modalSubType) > -1;
|
|
8
|
+
}
|
|
9
|
+
function showFooter({ modalType }) {
|
|
10
|
+
return modalType !== MODAL_TYPE_V2.INFORMATION;
|
|
11
|
+
}
|
|
12
|
+
function showSelection({ modalType }) {
|
|
13
|
+
return modalType === MODAL_TYPE_V2.SELECTION;
|
|
14
|
+
}
|
|
15
|
+
function showForm({ modalType }) {
|
|
16
|
+
return modalType === MODAL_TYPE_V2.FORM;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
showDecision,
|
|
20
|
+
showFeedBack,
|
|
21
|
+
showFooter,
|
|
22
|
+
showForm,
|
|
23
|
+
showSelection
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/helpers.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { MODAL_TYPE_V2, MODAL_SUB_TYPE_V2 } from '../constants';\n\nexport function showDecision({ modalType }) {\n return (\n [MODAL_TYPE_V2.INFORMATION, MODAL_TYPE_V2.DECISION].indexOf(modalType) > -1\n );\n}\n\nexport function showFeedBack({ modalType, modalSubType }) {\n return (\n showDecision({ modalType }) &&\n Object.values(MODAL_SUB_TYPE_V2).indexOf(modalSubType) > -1\n );\n}\n\nexport function showFooter({ modalType }) {\n return modalType !== MODAL_TYPE_V2.INFORMATION;\n}\n\nexport function showSelection({ modalType }) {\n return modalType === MODAL_TYPE_V2.SELECTION;\n}\nexport function showForm({ modalType }) {\n return modalType === MODAL_TYPE_V2.FORM;\n}\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAEO,sBAAsB,EAAE,aAAa;AAC1C,SACE,CAAC,cAAc,aAAa,cAAc,UAAU,QAAQ,aAAa;AAAA;AAItE,sBAAsB,EAAE,WAAW,gBAAgB;AACxD,SACE,aAAa,EAAE,gBACf,OAAO,OAAO,mBAAmB,QAAQ,gBAAgB;AAAA;AAItD,oBAAoB,EAAE,aAAa;AACxC,SAAO,cAAc,cAAc;AAAA;AAG9B,uBAAuB,EAAE,aAAa;AAC3C,SAAO,cAAc,cAAc;AAAA;AAE9B,kBAAkB,EAAE,aAAa;AACtC,SAAO,cAAc,cAAc;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,79 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
13
16
|
},
|
|
14
17
|
"./v2/helpers": {
|
|
15
|
-
"import": "./esm/v2/helpers.js",
|
|
16
|
-
"require": "./cjs/v2/helpers.js"
|
|
18
|
+
"import": "./dist/esm/v2/helpers.js",
|
|
19
|
+
"require": "./dist/cjs/v2/helpers.js"
|
|
17
20
|
},
|
|
18
21
|
"./v2/DSModal": {
|
|
19
|
-
"import": "./esm/v2/DSModal.js",
|
|
20
|
-
"require": "./cjs/v2/DSModal.js"
|
|
22
|
+
"import": "./dist/esm/v2/DSModal.js",
|
|
23
|
+
"require": "./dist/cjs/v2/DSModal.js"
|
|
21
24
|
},
|
|
22
25
|
"./v2/components/Title": {
|
|
23
|
-
"import": "./esm/v2/components/Title.js",
|
|
24
|
-
"require": "./cjs/v2/components/Title.js"
|
|
26
|
+
"import": "./dist/esm/v2/components/Title.js",
|
|
27
|
+
"require": "./dist/cjs/v2/components/Title.js"
|
|
25
28
|
},
|
|
26
29
|
"./v2/components/SelectionHeader": {
|
|
27
|
-
"import": "./esm/v2/components/SelectionHeader.js",
|
|
28
|
-
"require": "./cjs/v2/components/SelectionHeader.js"
|
|
30
|
+
"import": "./dist/esm/v2/components/SelectionHeader.js",
|
|
31
|
+
"require": "./dist/cjs/v2/components/SelectionHeader.js"
|
|
29
32
|
},
|
|
30
33
|
"./v2/components/ModalContent": {
|
|
31
|
-
"import": "./esm/v2/components/ModalContent.js",
|
|
32
|
-
"require": "./cjs/v2/components/ModalContent.js"
|
|
34
|
+
"import": "./dist/esm/v2/components/ModalContent.js",
|
|
35
|
+
"require": "./dist/cjs/v2/components/ModalContent.js"
|
|
33
36
|
},
|
|
34
37
|
"./v2/components/FormHeader": {
|
|
35
|
-
"import": "./esm/v2/components/FormHeader.js",
|
|
36
|
-
"require": "./cjs/v2/components/FormHeader.js"
|
|
38
|
+
"import": "./dist/esm/v2/components/FormHeader.js",
|
|
39
|
+
"require": "./dist/cjs/v2/components/FormHeader.js"
|
|
37
40
|
},
|
|
38
41
|
"./v2/components/Footer": {
|
|
39
|
-
"import": "./esm/v2/components/Footer.js",
|
|
40
|
-
"require": "./cjs/v2/components/Footer.js"
|
|
42
|
+
"import": "./dist/esm/v2/components/Footer.js",
|
|
43
|
+
"require": "./dist/cjs/v2/components/Footer.js"
|
|
41
44
|
},
|
|
42
45
|
"./v2/components/FeedbackIcon": {
|
|
43
|
-
"import": "./esm/v2/components/FeedbackIcon.js",
|
|
44
|
-
"require": "./cjs/v2/components/FeedbackIcon.js"
|
|
46
|
+
"import": "./dist/esm/v2/components/FeedbackIcon.js",
|
|
47
|
+
"require": "./dist/cjs/v2/components/FeedbackIcon.js"
|
|
45
48
|
},
|
|
46
49
|
"./v2/components/DecisionHeader": {
|
|
47
|
-
"import": "./esm/v2/components/DecisionHeader.js",
|
|
48
|
-
"require": "./cjs/v2/components/DecisionHeader.js"
|
|
50
|
+
"import": "./dist/esm/v2/components/DecisionHeader.js",
|
|
51
|
+
"require": "./dist/cjs/v2/components/DecisionHeader.js"
|
|
49
52
|
},
|
|
50
53
|
"./v2/blocks": {
|
|
51
|
-
"import": "./esm/v2/blocks.js",
|
|
52
|
-
"require": "./cjs/v2/blocks.js"
|
|
54
|
+
"import": "./dist/esm/v2/blocks.js",
|
|
55
|
+
"require": "./dist/cjs/v2/blocks.js"
|
|
53
56
|
},
|
|
54
57
|
"./v1/ModalFeedBack/ModalFeedBack": {
|
|
55
|
-
"import": "./esm/v1/ModalFeedBack/ModalFeedBack.js",
|
|
56
|
-
"require": "./cjs/v1/ModalFeedBack/ModalFeedBack.js"
|
|
58
|
+
"import": "./dist/esm/v1/ModalFeedBack/ModalFeedBack.js",
|
|
59
|
+
"require": "./dist/cjs/v1/ModalFeedBack/ModalFeedBack.js"
|
|
57
60
|
},
|
|
58
61
|
"./v1/DSModalWrapper": {
|
|
59
|
-
"import": "./esm/v1/DSModalWrapper.js",
|
|
60
|
-
"require": "./cjs/v1/DSModalWrapper.js"
|
|
62
|
+
"import": "./dist/esm/v1/DSModalWrapper.js",
|
|
63
|
+
"require": "./dist/cjs/v1/DSModalWrapper.js"
|
|
61
64
|
},
|
|
62
65
|
"./v1/DSModalType": {
|
|
63
|
-
"import": "./esm/v1/DSModalType.js",
|
|
64
|
-
"require": "./cjs/v1/DSModalType.js"
|
|
66
|
+
"import": "./dist/esm/v1/DSModalType.js",
|
|
67
|
+
"require": "./dist/cjs/v1/DSModalType.js"
|
|
65
68
|
},
|
|
66
69
|
"./v1/DSModal": {
|
|
67
|
-
"import": "./esm/v1/DSModal.js",
|
|
68
|
-
"require": "./cjs/v1/DSModal.js"
|
|
70
|
+
"import": "./dist/esm/v1/DSModal.js",
|
|
71
|
+
"require": "./dist/cjs/v1/DSModal.js"
|
|
69
72
|
},
|
|
70
73
|
"./DSModal": {
|
|
71
|
-
"import": "./esm/DSModal.js",
|
|
72
|
-
"require": "./cjs/DSModal.js"
|
|
74
|
+
"import": "./dist/esm/DSModal.js",
|
|
75
|
+
"require": "./dist/cjs/DSModal.js"
|
|
73
76
|
},
|
|
74
77
|
"./constants": {
|
|
75
|
-
"import": "./esm/constants.js",
|
|
76
|
-
"require": "./cjs/constants.js"
|
|
78
|
+
"import": "./dist/esm/constants.js",
|
|
79
|
+
"require": "./dist/cjs/constants.js"
|
|
77
80
|
}
|
|
78
81
|
},
|
|
79
82
|
"sideEffects": [
|
|
@@ -85,30 +88,30 @@
|
|
|
85
88
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
86
89
|
},
|
|
87
90
|
"engines": {
|
|
88
|
-
"
|
|
89
|
-
"node": ">=
|
|
91
|
+
"pnpm": ">=6",
|
|
92
|
+
"node": ">=16"
|
|
90
93
|
},
|
|
91
94
|
"author": "ICE MT",
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
95
|
+
"jestSonar": {
|
|
96
|
+
"sonar56x": true,
|
|
97
|
+
"reportPath": "reports",
|
|
98
|
+
"reportFile": "tests.xml",
|
|
99
|
+
"indent": 4
|
|
97
100
|
},
|
|
98
101
|
"dependencies": {
|
|
99
|
-
"@elliemae/ds-button": "
|
|
100
|
-
"@elliemae/ds-classnames": "
|
|
101
|
-
"@elliemae/ds-form": "
|
|
102
|
-
"@elliemae/ds-icon": "
|
|
103
|
-
"@elliemae/ds-icons": "
|
|
104
|
-
"@elliemae/ds-shared": "
|
|
105
|
-
"@elliemae/ds-system": "
|
|
102
|
+
"@elliemae/ds-button": "3.0.0-alpha.0",
|
|
103
|
+
"@elliemae/ds-classnames": "3.0.0-alpha.0",
|
|
104
|
+
"@elliemae/ds-form": "3.0.0-alpha.0",
|
|
105
|
+
"@elliemae/ds-icon": "3.0.0-alpha.0",
|
|
106
|
+
"@elliemae/ds-icons": "3.0.0-alpha.0",
|
|
107
|
+
"@elliemae/ds-shared": "3.0.0-alpha.0",
|
|
108
|
+
"@elliemae/ds-system": "3.0.0-alpha.0",
|
|
106
109
|
"prop-types": "~15.7.2",
|
|
107
110
|
"react-desc": "~4.1.3",
|
|
108
111
|
"react-modal": "~3.12.1"
|
|
109
112
|
},
|
|
110
113
|
"devDependencies": {
|
|
111
|
-
"@testing-library/jest-dom": "~5.15.
|
|
114
|
+
"@testing-library/jest-dom": "~5.15.1",
|
|
112
115
|
"@testing-library/react": "~12.1.2"
|
|
113
116
|
},
|
|
114
117
|
"peerDependencies": {
|
|
@@ -118,7 +121,12 @@
|
|
|
118
121
|
},
|
|
119
122
|
"publishConfig": {
|
|
120
123
|
"access": "public",
|
|
121
|
-
"
|
|
122
|
-
|
|
124
|
+
"typeSafety": false
|
|
125
|
+
},
|
|
126
|
+
"scripts": {
|
|
127
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
128
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
129
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
130
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
123
131
|
}
|
|
124
132
|
}
|