@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
|
@@ -1,89 +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 ModalContent_exports = {};
|
|
30
|
-
__export(ModalContent_exports, {
|
|
31
|
-
DSModalContent: () => DSModalContent
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(ModalContent_exports);
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var import_constants = require("../../constants.js");
|
|
37
|
-
var import_SelectionHeader = require("./SelectionHeader.js");
|
|
38
|
-
var import_DecisionHeader = require("./DecisionHeader.js");
|
|
39
|
-
var import_FormHeader = require("./FormHeader.js");
|
|
40
|
-
var import_FeedbackIcon = require("./FeedbackIcon.js");
|
|
41
|
-
var import_Footer = require("./Footer.js");
|
|
42
|
-
var import_Title = require("./Title.js");
|
|
43
|
-
var import_helpers = require("../helpers.js");
|
|
44
|
-
var import_blocks = require("../blocks.js");
|
|
45
|
-
const DSModalContent = ({
|
|
46
|
-
containerProps = {},
|
|
47
|
-
//
|
|
48
|
-
modalType = import_constants.MODAL_TYPE_V2.INFORMATION,
|
|
49
|
-
modalSubType = null,
|
|
50
|
-
modalTitle = "",
|
|
51
|
-
showRejectButton = false,
|
|
52
|
-
showClose = true,
|
|
53
|
-
searchProps = {},
|
|
54
|
-
// override
|
|
55
|
-
actionsRef = () => null,
|
|
56
|
-
additionalFooterCssClass,
|
|
57
|
-
overridePropsConfirmButton = {},
|
|
58
|
-
overridePropsRejectButton = {},
|
|
59
|
-
// react modal
|
|
60
|
-
children,
|
|
61
|
-
onClose = () => null,
|
|
62
|
-
onConfirm = () => null,
|
|
63
|
-
onReject = () => null,
|
|
64
|
-
rejectLabel = "Discard",
|
|
65
|
-
confirmLabel = "Save",
|
|
66
|
-
removePadding = false
|
|
67
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_blocks.ModalWrapper, { ...containerProps, children: [
|
|
68
|
-
(0, import_helpers.showForm)({ modalType, modalSubType }) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormHeader.FormHeader, { modalTitle, modalType, onClose, showClose }),
|
|
69
|
-
(0, import_helpers.showSelection)({ modalType, modalSubType }) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectionHeader.SelectionHeader, { modalTitle, modalType, searchProps, showClose }),
|
|
70
|
-
(0, import_helpers.showDecision)({ modalType, modalSubType }) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DecisionHeader.DecisionHeader, { onClose, showClose }),
|
|
71
|
-
(0, import_helpers.showFeedBack)({ modalType, modalSubType }) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FeedbackIcon.FeedbackIcon, { modalSubType }),
|
|
72
|
-
(0, import_helpers.showDecision)({ modalType, modalSubType }) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Title.Title, { modalTitle, modalType }),
|
|
73
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.ModalContent, { classProps: { type: modalType, removePadding }, children }),
|
|
74
|
-
(0, import_helpers.showFooter)({ modalType, modalSubType }) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
75
|
-
import_Footer.Footer,
|
|
76
|
-
{
|
|
77
|
-
actionsRef,
|
|
78
|
-
additionalFooterCssClass,
|
|
79
|
-
confirmLabel,
|
|
80
|
-
onConfirm,
|
|
81
|
-
onReject,
|
|
82
|
-
overridePropsConfirmButton,
|
|
83
|
-
overridePropsRejectButton,
|
|
84
|
-
rejectLabel,
|
|
85
|
-
showRejectButton
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
] });
|
|
89
|
-
//# sourceMappingURL=ModalContent.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/v2/components/ModalContent.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { MODAL_TYPE_V2 } from '../../constants.js';\nimport { SelectionHeader } from './SelectionHeader.js';\nimport { DecisionHeader } from './DecisionHeader.js';\nimport { FormHeader } from './FormHeader.js';\nimport { FeedbackIcon } from './FeedbackIcon.js';\nimport { Footer } from './Footer.js';\nimport { Title } from './Title.js';\nimport { showDecision, showFeedBack, showFooter, showSelection, showForm } from '../helpers.js';\nimport { ModalContent, ModalWrapper } from '../blocks.js';\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 modalTitle={modalTitle} modalType={modalType} onClose={onClose} showClose={showClose} />\n )}\n {showSelection({ modalType, modalSubType }) && (\n <SelectionHeader modalTitle={modalTitle} modalType={modalType} searchProps={searchProps} showClose={showClose} />\n )}\n {showDecision({ modalType, modalSubType }) && <DecisionHeader onClose={onClose} showClose={showClose} />}\n {showFeedBack({ modalType, modalSubType }) && <FeedbackIcon modalSubType={modalSubType} />}\n {showDecision({ modalType, modalSubType }) && <Title modalTitle={modalTitle} modalType={modalType} />}\n <ModalContent classProps={{ type: modalType, removePadding }}>{children}</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", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmCrB;AAjCF,uBAA8B;AAC9B,6BAAgC;AAChC,4BAA+B;AAC/B,wBAA2B;AAC3B,0BAA6B;AAC7B,oBAAuB;AACvB,mBAAsB;AACtB,qBAAgF;AAChF,oBAA2C;AAEpC,MAAM,iBAAiB,CAAC;AAAA,EAC7B,iBAAiB,CAAC;AAAA;AAAA,EAElB,YAAY,+BAAc;AAAA,EAC1B,eAAe;AAAA,EACf,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,cAAc,CAAC;AAAA;AAAA,EAEf,aAAa,MAAM;AAAA,EACnB;AAAA,EACA,6BAA6B,CAAC;AAAA,EAC9B,4BAA4B,CAAC;AAAA;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,6CAAC,8BAAc,GAAG,gBACf;AAAA,+BAAS,EAAE,WAAW,aAAa,CAAC,KACnC,4CAAC,gCAAW,YAAwB,WAAsB,SAAkB,WAAsB;AAAA,MAEnG,8BAAc,EAAE,WAAW,aAAa,CAAC,KACxC,4CAAC,0CAAgB,YAAwB,WAAsB,aAA0B,WAAsB;AAAA,MAEhH,6BAAa,EAAE,WAAW,aAAa,CAAC,KAAK,4CAAC,wCAAe,SAAkB,WAAsB;AAAA,MACrG,6BAAa,EAAE,WAAW,aAAa,CAAC,KAAK,4CAAC,oCAAa,cAA4B;AAAA,MACvF,6BAAa,EAAE,WAAW,aAAa,CAAC,KAAK,4CAAC,sBAAM,YAAwB,WAAsB;AAAA,EACnG,4CAAC,8BAAa,YAAY,EAAE,MAAM,WAAW,cAAc,GAAI,UAAS;AAAA,MACvE,2BAAW,EAAE,WAAW,aAAa,CAAC,KACrC;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACF;AAAA,GAEJ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,45 +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 SelectionHeader_exports = {};
|
|
30
|
-
__export(SelectionHeader_exports, {
|
|
31
|
-
SelectionHeader: () => SelectionHeader,
|
|
32
|
-
default: () => SelectionHeader_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(SelectionHeader_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_ds_form = require("@elliemae/ds-form");
|
|
38
|
-
var import_blocks = require("../blocks.js");
|
|
39
|
-
var import_Title = require("./Title.js");
|
|
40
|
-
const SelectionHeader = ({ searchProps = {}, modalTitle, modalType, showClose }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_blocks.ModalHeader, { classProps: { type: "selection" }, children: [
|
|
41
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Title.Title, { modalTitle, modalType }),
|
|
42
|
-
showClose && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.ModalHeaderTopRight, { classProps: { type: "selection" }, "data-testid": "modal-search-box", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_form.DSSearchBox, { ...searchProps }) })
|
|
43
|
-
] });
|
|
44
|
-
var SelectionHeader_default = SelectionHeader;
|
|
45
|
-
//# sourceMappingURL=SelectionHeader.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/v2/components/SelectionHeader.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { DSSearchBox } from '@elliemae/ds-form';\nimport { ModalHeader, ModalHeaderTopRight } from '../blocks.js';\nimport { Title } from './Title.js';\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", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADOrB;AALF,qBAA4B;AAC5B,oBAAiD;AACjD,mBAAsB;AAEf,MAAM,kBAAkB,CAAC,EAAE,cAAc,CAAC,GAAG,YAAY,WAAW,UAAU,MACnF,6CAAC,6BAAY,YAAY,EAAE,MAAM,YAAY,GAC3C;AAAA,8CAAC,sBAAM,YAAwB,WAAsB;AAAA,EACpD,aACC,4CAAC,qCAAoB,YAAY,EAAE,MAAM,YAAY,GAAG,eAAY,oBAClE,sDAAC,8BAAa,GAAG,aAAa,GAChC;AAAA,GAEJ;AAGF,IAAO,0BAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,40 +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 Title_exports = {};
|
|
30
|
-
__export(Title_exports, {
|
|
31
|
-
Title: () => Title,
|
|
32
|
-
default: () => Title_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(Title_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_blocks = require("../blocks.js");
|
|
38
|
-
const Title = ({ modalTitle, modalType }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.ModalTitle, { classProps: { type: modalType }, children: modalTitle });
|
|
39
|
-
var Title_default = Title;
|
|
40
|
-
//# sourceMappingURL=Title.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/v2/components/Title.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { ModalTitle } from '../blocks.js';\n\nexport const Title = ({ modalTitle, modalType }) => (\n <ModalTitle classProps={{ type: modalType }}>{modalTitle}</ModalTitle>\n);\n\nexport default Title;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADKrB;AAHF,oBAA2B;AAEpB,MAAM,QAAQ,CAAC,EAAE,YAAY,UAAU,MAC5C,4CAAC,4BAAW,YAAY,EAAE,MAAM,UAAU,GAAI,sBAAW;AAG3D,IAAO,gBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/cjs/v2/helpers.js
DELETED
|
@@ -1,55 +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 helpers_exports = {};
|
|
30
|
-
__export(helpers_exports, {
|
|
31
|
-
showDecision: () => showDecision,
|
|
32
|
-
showFeedBack: () => showFeedBack,
|
|
33
|
-
showFooter: () => showFooter,
|
|
34
|
-
showForm: () => showForm,
|
|
35
|
-
showSelection: () => showSelection
|
|
36
|
-
});
|
|
37
|
-
module.exports = __toCommonJS(helpers_exports);
|
|
38
|
-
var React = __toESM(require("react"));
|
|
39
|
-
var import_constants = require("../constants.js");
|
|
40
|
-
function showDecision({ modalType }) {
|
|
41
|
-
return [import_constants.MODAL_TYPE_V2.INFORMATION, import_constants.MODAL_TYPE_V2.DECISION].indexOf(modalType) > -1;
|
|
42
|
-
}
|
|
43
|
-
function showFeedBack({ modalType, modalSubType }) {
|
|
44
|
-
return showDecision({ modalType }) && Object.values(import_constants.MODAL_SUB_TYPE_V2).indexOf(modalSubType) > -1;
|
|
45
|
-
}
|
|
46
|
-
function showFooter({ modalType }) {
|
|
47
|
-
return modalType !== import_constants.MODAL_TYPE_V2.INFORMATION;
|
|
48
|
-
}
|
|
49
|
-
function showSelection({ modalType }) {
|
|
50
|
-
return modalType === import_constants.MODAL_TYPE_V2.SELECTION;
|
|
51
|
-
}
|
|
52
|
-
function showForm({ modalType }) {
|
|
53
|
-
return modalType === import_constants.MODAL_TYPE_V2.FORM;
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/v2/helpers.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { MODAL_TYPE_V2, MODAL_SUB_TYPE_V2 } from '../constants.js';\n\nexport function showDecision({ modalType }) {\n return [MODAL_TYPE_V2.INFORMATION, MODAL_TYPE_V2.DECISION].indexOf(modalType) > -1;\n}\n\nexport function showFeedBack({ modalType, modalSubType }) {\n return showDecision({ modalType }) && Object.values(MODAL_SUB_TYPE_V2).indexOf(modalSubType) > -1;\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", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAiD;AAE1C,SAAS,aAAa,EAAE,UAAU,GAAG;AAC1C,SAAO,CAAC,+BAAc,aAAa,+BAAc,QAAQ,EAAE,QAAQ,SAAS,IAAI;AAClF;AAEO,SAAS,aAAa,EAAE,WAAW,aAAa,GAAG;AACxD,SAAO,aAAa,EAAE,UAAU,CAAC,KAAK,OAAO,OAAO,kCAAiB,EAAE,QAAQ,YAAY,IAAI;AACjG;AAEO,SAAS,WAAW,EAAE,UAAU,GAAG;AACxC,SAAO,cAAc,+BAAc;AACrC;AAEO,SAAS,cAAc,EAAE,UAAU,GAAG;AAC3C,SAAO,cAAc,+BAAc;AACrC;AACO,SAAS,SAAS,EAAE,UAAU,GAAG;AACtC,SAAO,cAAc,+BAAc;AACrC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/DSModal.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import { modalTypes } from "./constants.js";
|
|
5
|
-
import DSModalV1 from "./v1/DSModal.js";
|
|
6
|
-
import DSModalV2, { DSModalContent } from "./v2/DSModal.js";
|
|
7
|
-
import { sizes, iconSizes } from "@elliemae/ds-shared";
|
|
8
|
-
import { useDeprecateComponent } from "@elliemae/ds-utilities";
|
|
9
|
-
const DSModal = ({ version = 1, ...rest }) => {
|
|
10
|
-
useDeprecateComponent({ componentName: "ds-modal", version: "TBD Date: 2023 Q3" });
|
|
11
|
-
if (version === 2)
|
|
12
|
-
return /* @__PURE__ */ jsx(DSModalV2, { ...rest });
|
|
13
|
-
return /* @__PURE__ */ jsx(DSModalV1, { ...rest });
|
|
14
|
-
};
|
|
15
|
-
DSModal.propTypes = {
|
|
16
|
-
version: PropTypes.oneOf([1, 2])
|
|
17
|
-
};
|
|
18
|
-
DSModalV1.propTypes = {
|
|
19
|
-
version: PropTypes.oneOf([1, 2]),
|
|
20
|
-
className: PropTypes.string,
|
|
21
|
-
/**
|
|
22
|
-
* Add an additional css class to the footer
|
|
23
|
-
*/
|
|
24
|
-
additionalFooterCssClass: PropTypes.string,
|
|
25
|
-
/**
|
|
26
|
-
* Set style for the modal
|
|
27
|
-
*/
|
|
28
|
-
style: PropTypes.objectOf(PropTypes.string),
|
|
29
|
-
/**
|
|
30
|
-
* Select size for the close icon
|
|
31
|
-
*/
|
|
32
|
-
iconCloseSize: PropTypes.oneOf(iconSizes),
|
|
33
|
-
/**
|
|
34
|
-
* ['default', 'alert', 'confirm', 'notification', 'warning', 'error', 'success', 'help', 'info']
|
|
35
|
-
*/
|
|
36
|
-
modalType: PropTypes.oneOf(modalTypes),
|
|
37
|
-
/**
|
|
38
|
-
* Show the header or not
|
|
39
|
-
*/
|
|
40
|
-
showHeader: PropTypes.bool,
|
|
41
|
-
/**
|
|
42
|
-
* Show the footer or not
|
|
43
|
-
*/
|
|
44
|
-
showFooter: PropTypes.bool,
|
|
45
|
-
/**
|
|
46
|
-
* Main content of the modal
|
|
47
|
-
*/
|
|
48
|
-
children: PropTypes.element.isRequired,
|
|
49
|
-
/**
|
|
50
|
-
* Content is centered or not
|
|
51
|
-
*/
|
|
52
|
-
centered: PropTypes.bool,
|
|
53
|
-
/**
|
|
54
|
-
* Text to be added in the confirm button
|
|
55
|
-
*/
|
|
56
|
-
confirmLabel: PropTypes.string,
|
|
57
|
-
/**
|
|
58
|
-
* Text to be added in the modal title
|
|
59
|
-
*/
|
|
60
|
-
modalTitle: PropTypes.string,
|
|
61
|
-
/**
|
|
62
|
-
* Text to be added in the modal title
|
|
63
|
-
*/
|
|
64
|
-
size: PropTypes.oneOf(sizes),
|
|
65
|
-
/**
|
|
66
|
-
* Modal is open or not
|
|
67
|
-
*/
|
|
68
|
-
isOpen: PropTypes.bool,
|
|
69
|
-
/**
|
|
70
|
-
* Allows a function to be triggered once the modal is closed
|
|
71
|
-
*/
|
|
72
|
-
onClose: PropTypes.func,
|
|
73
|
-
/**
|
|
74
|
-
* Allows a function to be triggered once the modal is opened
|
|
75
|
-
*/
|
|
76
|
-
onAfterOpen: PropTypes.func,
|
|
77
|
-
/**
|
|
78
|
-
* Allows a function to be triggered once the modal open is confirmed
|
|
79
|
-
*/
|
|
80
|
-
onConfirm: PropTypes.func,
|
|
81
|
-
/**
|
|
82
|
-
* Allows a function to be triggered once the modal open is rejected
|
|
83
|
-
*/
|
|
84
|
-
onReject: PropTypes.func,
|
|
85
|
-
/**
|
|
86
|
-
* Text to be added in the reject button
|
|
87
|
-
*/
|
|
88
|
-
rejectLabel: PropTypes.string,
|
|
89
|
-
/**
|
|
90
|
-
* If modal should close on overlay click
|
|
91
|
-
*/
|
|
92
|
-
shouldCloseOnOverlayClick: PropTypes.bool,
|
|
93
|
-
/**
|
|
94
|
-
* Modal has error or not
|
|
95
|
-
*/
|
|
96
|
-
hasError: PropTypes.bool,
|
|
97
|
-
/**
|
|
98
|
-
* Modal has warning or not
|
|
99
|
-
*/
|
|
100
|
-
hasWarning: PropTypes.bool,
|
|
101
|
-
/**
|
|
102
|
-
* Modal has success or not
|
|
103
|
-
*/
|
|
104
|
-
hasSuccess: PropTypes.bool,
|
|
105
|
-
/**
|
|
106
|
-
* Modal has info or not
|
|
107
|
-
*/
|
|
108
|
-
hasInfo: PropTypes.bool,
|
|
109
|
-
/**
|
|
110
|
-
* Modal has help or not
|
|
111
|
-
*/
|
|
112
|
-
hasHelp: PropTypes.bool,
|
|
113
|
-
actionsRef: PropTypes.func,
|
|
114
|
-
appElement: PropTypes.string,
|
|
115
|
-
/**
|
|
116
|
-
* Customized props for the confirm button
|
|
117
|
-
*/
|
|
118
|
-
overridePropsConfirmButton: PropTypes.objectOf(PropTypes.shape({})),
|
|
119
|
-
/**
|
|
120
|
-
* Customized props for the reject button
|
|
121
|
-
*/
|
|
122
|
-
overridePropsRejectButton: PropTypes.objectOf(PropTypes.string),
|
|
123
|
-
/**
|
|
124
|
-
* Show confirm button
|
|
125
|
-
*/
|
|
126
|
-
showConfirmButton: PropTypes.bool,
|
|
127
|
-
/**
|
|
128
|
-
* Show confirm button
|
|
129
|
-
*/
|
|
130
|
-
customCloseComponent: PropTypes.element
|
|
131
|
-
};
|
|
132
|
-
var DSModal_default = DSModal;
|
|
133
|
-
export {
|
|
134
|
-
DSModal,
|
|
135
|
-
DSModalContent,
|
|
136
|
-
DSModal_default as default
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=DSModal.js.map
|
package/dist/esm/DSModal.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSModal.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { modalTypes } from './constants.js';\nimport DSModalV1 from './v1/DSModal.js';\nimport DSModalV2, { DSModalContent } from './v2/DSModal.js';\nimport { sizes, iconSizes } from '@elliemae/ds-shared';\nimport { useDeprecateComponent } from '@elliemae/ds-utilities';\n\nconst DSModal = ({ version = 1, ...rest }) => {\n useDeprecateComponent({ componentName: 'ds-modal', version: 'TBD Date: 2023 Q3' });\n\n if (version === 2) return <DSModalV2 {...rest} />;\n return <DSModalV1 {...rest} />;\n};\n\nDSModal.propTypes = {\n version: PropTypes.oneOf([1, 2]),\n};\n\nDSModalV1.propTypes = {\n version: PropTypes.oneOf([1, 2]),\n className: PropTypes.string,\n /**\n * Add an additional css class to the footer\n */\n additionalFooterCssClass: PropTypes.string,\n /**\n * Set style for the modal\n */\n style: PropTypes.objectOf(PropTypes.string),\n /**\n * Select size for the close icon\n */\n iconCloseSize: PropTypes.oneOf(iconSizes),\n /**\n * ['default', 'alert', 'confirm', 'notification', 'warning', 'error', 'success', 'help', 'info']\n */\n modalType: PropTypes.oneOf(modalTypes),\n /**\n * Show the header or not\n */\n showHeader: PropTypes.bool,\n /**\n * Show the footer or not\n */\n showFooter: PropTypes.bool,\n /**\n * Main content of the modal\n */\n children: PropTypes.element.isRequired,\n /**\n * Content is centered or not\n */\n centered: PropTypes.bool,\n /**\n * Text to be added in the confirm button\n */\n confirmLabel: PropTypes.string,\n /**\n * Text to be added in the modal title\n */\n modalTitle: PropTypes.string,\n /**\n * Text to be added in the modal title\n */\n size: PropTypes.oneOf(sizes),\n /**\n * Modal is open or not\n */\n isOpen: PropTypes.bool,\n /**\n * Allows a function to be triggered once the modal is closed\n */\n onClose: PropTypes.func,\n /**\n * Allows a function to be triggered once the modal is opened\n */\n onAfterOpen: PropTypes.func,\n /**\n * Allows a function to be triggered once the modal open is confirmed\n */\n onConfirm: PropTypes.func,\n /**\n * Allows a function to be triggered once the modal open is rejected\n */\n onReject: PropTypes.func,\n /**\n * Text to be added in the reject button\n */\n rejectLabel: PropTypes.string,\n /**\n * If modal should close on overlay click\n */\n shouldCloseOnOverlayClick: PropTypes.bool,\n /**\n * Modal has error or not\n */\n hasError: PropTypes.bool,\n /**\n * Modal has warning or not\n */\n hasWarning: PropTypes.bool,\n /**\n * Modal has success or not\n */\n hasSuccess: PropTypes.bool,\n /**\n * Modal has info or not\n */\n hasInfo: PropTypes.bool,\n /**\n * Modal has help or not\n */\n hasHelp: PropTypes.bool,\n actionsRef: PropTypes.func,\n appElement: PropTypes.string,\n /**\n * Customized props for the confirm button\n */\n overridePropsConfirmButton: PropTypes.objectOf(PropTypes.shape({})),\n /**\n * Customized props for the reject button\n */\n overridePropsRejectButton: PropTypes.objectOf(PropTypes.string),\n /**\n * Show confirm button\n */\n showConfirmButton: PropTypes.bool,\n /**\n * Show confirm button\n */\n customCloseComponent: PropTypes.element,\n};\nexport { DSModalContent, DSModal };\nexport default DSModal;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACYK;AAV5B,OAAO,eAAe;AACtB,SAAS,kBAAkB;AAC3B,OAAO,eAAe;AACtB,OAAO,aAAa,sBAAsB;AAC1C,SAAS,OAAO,iBAAiB;AACjC,SAAS,6BAA6B;AAEtC,MAAM,UAAU,CAAC,EAAE,UAAU,GAAG,GAAG,KAAK,MAAM;AAC5C,wBAAsB,EAAE,eAAe,YAAY,SAAS,oBAAoB,CAAC;AAEjF,MAAI,YAAY;AAAG,WAAO,oBAAC,aAAW,GAAG,MAAM;AAC/C,SAAO,oBAAC,aAAW,GAAG,MAAM;AAC9B;AAEA,QAAQ,YAAY;AAAA,EAClB,SAAS,UAAU,MAAM,CAAC,GAAG,CAAC,CAAC;AACjC;AAEA,UAAU,YAAY;AAAA,EACpB,SAAS,UAAU,MAAM,CAAC,GAAG,CAAC,CAAC;AAAA,EAC/B,WAAW,UAAU;AAAA;AAAA;AAAA;AAAA,EAIrB,0BAA0B,UAAU;AAAA;AAAA;AAAA;AAAA,EAIpC,OAAO,UAAU,SAAS,UAAU,MAAM;AAAA;AAAA;AAAA;AAAA,EAI1C,eAAe,UAAU,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxC,WAAW,UAAU,MAAM,UAAU;AAAA;AAAA;AAAA;AAAA,EAIrC,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA,EAItB,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA,EAItB,UAAU,UAAU,QAAQ;AAAA;AAAA;AAAA;AAAA,EAI5B,UAAU,UAAU;AAAA;AAAA;AAAA;AAAA,EAIpB,cAAc,UAAU;AAAA;AAAA;AAAA;AAAA,EAIxB,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA,EAItB,MAAM,UAAU,MAAM,KAAK;AAAA;AAAA;AAAA;AAAA,EAI3B,QAAQ,UAAU;AAAA;AAAA;AAAA;AAAA,EAIlB,SAAS,UAAU;AAAA;AAAA;AAAA;AAAA,EAInB,aAAa,UAAU;AAAA;AAAA;AAAA;AAAA,EAIvB,WAAW,UAAU;AAAA;AAAA;AAAA;AAAA,EAIrB,UAAU,UAAU;AAAA;AAAA;AAAA;AAAA,EAIpB,aAAa,UAAU;AAAA;AAAA;AAAA;AAAA,EAIvB,2BAA2B,UAAU;AAAA;AAAA;AAAA;AAAA,EAIrC,UAAU,UAAU;AAAA;AAAA;AAAA;AAAA,EAIpB,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA,EAItB,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA,EAItB,SAAS,UAAU;AAAA;AAAA;AAAA;AAAA,EAInB,SAAS,UAAU;AAAA,EACnB,YAAY,UAAU;AAAA,EACtB,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA,EAItB,4BAA4B,UAAU,SAAS,UAAU,MAAM,CAAC,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,EAIlE,2BAA2B,UAAU,SAAS,UAAU,MAAM;AAAA;AAAA;AAAA;AAAA,EAI9D,mBAAmB,UAAU;AAAA;AAAA;AAAA;AAAA,EAI7B,sBAAsB,UAAU;AAClC;AAEA,IAAO,kBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/constants.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
const MODAL_TYPE = {
|
|
3
|
-
DEFAULT: "default",
|
|
4
|
-
ALERT: "alert",
|
|
5
|
-
CONFIRM: "confirm",
|
|
6
|
-
NOTIFICATION: "notification",
|
|
7
|
-
WARNING: "warning",
|
|
8
|
-
ERROR: "error",
|
|
9
|
-
SUCCESS: "success",
|
|
10
|
-
HELP: "help",
|
|
11
|
-
INFO: "info"
|
|
12
|
-
};
|
|
13
|
-
const modalTypes = [
|
|
14
|
-
MODAL_TYPE.DEFAULT,
|
|
15
|
-
MODAL_TYPE.ALERT,
|
|
16
|
-
MODAL_TYPE.CONFIRM,
|
|
17
|
-
MODAL_TYPE.NOTIFICATION,
|
|
18
|
-
MODAL_TYPE.WARNING,
|
|
19
|
-
MODAL_TYPE.ERROR,
|
|
20
|
-
MODAL_TYPE.SUCCESS,
|
|
21
|
-
MODAL_TYPE.HELP,
|
|
22
|
-
MODAL_TYPE.INFO
|
|
23
|
-
];
|
|
24
|
-
const MODAL_TYPE_V2 = {
|
|
25
|
-
INFORMATION: "information",
|
|
26
|
-
DECISION: "decision",
|
|
27
|
-
SELECTION: "selection",
|
|
28
|
-
FORM: "form"
|
|
29
|
-
};
|
|
30
|
-
const MODAL_SUB_TYPE_V2 = {
|
|
31
|
-
SUCCESS: "success",
|
|
32
|
-
WARNING: "warning",
|
|
33
|
-
ERROR: "error",
|
|
34
|
-
INFORMATION: "information"
|
|
35
|
-
};
|
|
36
|
-
var constants_default = MODAL_TYPE;
|
|
37
|
-
export {
|
|
38
|
-
MODAL_SUB_TYPE_V2,
|
|
39
|
-
MODAL_TYPE,
|
|
40
|
-
MODAL_TYPE_V2,
|
|
41
|
-
constants_default as default,
|
|
42
|
-
modalTypes
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/constants.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const MODAL_TYPE = {\n DEFAULT: 'default',\n ALERT: 'alert',\n CONFIRM: 'confirm',\n NOTIFICATION: 'notification',\n WARNING: 'warning',\n ERROR: 'error',\n SUCCESS: 'success',\n HELP: 'help',\n INFO: 'info',\n};\n\nexport const modalTypes = [\n MODAL_TYPE.DEFAULT,\n MODAL_TYPE.ALERT,\n MODAL_TYPE.CONFIRM,\n MODAL_TYPE.NOTIFICATION,\n MODAL_TYPE.WARNING,\n MODAL_TYPE.ERROR,\n MODAL_TYPE.SUCCESS,\n MODAL_TYPE.HELP,\n MODAL_TYPE.INFO,\n];\n\nexport const MODAL_TYPE_V2 = {\n INFORMATION: 'information',\n DECISION: 'decision',\n SELECTION: 'selection',\n FORM: 'form',\n};\n\nexport const MODAL_SUB_TYPE_V2 = {\n SUCCESS: 'success',\n WARNING: 'warning',\n ERROR: 'error',\n INFORMATION: 'information',\n};\n\nexport default MODAL_TYPE;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,aAAa;AAAA,EACxB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,cAAc;AAAA,EACd,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,MAAM;AACR;AAEO,MAAM,aAAa;AAAA,EACxB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AACb;AAEO,MAAM,gBAAgB;AAAA,EAC3B,aAAa;AAAA,EACb,UAAU;AAAA,EACV,WAAW;AAAA,EACX,MAAM;AACR;AAEO,MAAM,oBAAoB;AAAA,EAC/B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AACf;AAEA,IAAO,oBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|