@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.
Files changed (92) hide show
  1. package/dist/cjs/index.js +4 -10
  2. package/dist/cjs/index.js.map +3 -3
  3. package/dist/esm/index.js +3 -10
  4. package/dist/esm/index.js.map +3 -3
  5. package/dist/types/index.d.ts +2 -3
  6. package/package.json +6 -81
  7. package/dist/cjs/DSModal.js +0 -168
  8. package/dist/cjs/DSModal.js.map +0 -7
  9. package/dist/cjs/constants.js +0 -74
  10. package/dist/cjs/constants.js.map +0 -7
  11. package/dist/cjs/v1/DSModal.js +0 -265
  12. package/dist/cjs/v1/DSModal.js.map +0 -7
  13. package/dist/cjs/v1/DSModalType.js +0 -46
  14. package/dist/cjs/v1/DSModalType.js.map +0 -7
  15. package/dist/cjs/v1/DSModalWrapper.js +0 -134
  16. package/dist/cjs/v1/DSModalWrapper.js.map +0 -7
  17. package/dist/cjs/v1/ModalFeedBack/ModalFeedBack.js +0 -92
  18. package/dist/cjs/v1/ModalFeedBack/ModalFeedBack.js.map +0 -7
  19. package/dist/cjs/v2/DSModal.js +0 -200
  20. package/dist/cjs/v2/DSModal.js.map +0 -7
  21. package/dist/cjs/v2/blocks.js +0 -76
  22. package/dist/cjs/v2/blocks.js.map +0 -7
  23. package/dist/cjs/v2/components/DecisionHeader.js +0 -50
  24. package/dist/cjs/v2/components/DecisionHeader.js.map +0 -7
  25. package/dist/cjs/v2/components/FeedbackIcon.js +0 -57
  26. package/dist/cjs/v2/components/FeedbackIcon.js.map +0 -7
  27. package/dist/cjs/v2/components/Footer.js +0 -74
  28. package/dist/cjs/v2/components/Footer.js.map +0 -7
  29. package/dist/cjs/v2/components/FormHeader.js +0 -54
  30. package/dist/cjs/v2/components/FormHeader.js.map +0 -7
  31. package/dist/cjs/v2/components/ModalContent.js +0 -89
  32. package/dist/cjs/v2/components/ModalContent.js.map +0 -7
  33. package/dist/cjs/v2/components/SelectionHeader.js +0 -45
  34. package/dist/cjs/v2/components/SelectionHeader.js.map +0 -7
  35. package/dist/cjs/v2/components/Title.js +0 -40
  36. package/dist/cjs/v2/components/Title.js.map +0 -7
  37. package/dist/cjs/v2/helpers.js +0 -55
  38. package/dist/cjs/v2/helpers.js.map +0 -7
  39. package/dist/esm/DSModal.js +0 -138
  40. package/dist/esm/DSModal.js.map +0 -7
  41. package/dist/esm/constants.js +0 -44
  42. package/dist/esm/constants.js.map +0 -7
  43. package/dist/esm/v1/DSModal.js +0 -235
  44. package/dist/esm/v1/DSModal.js.map +0 -7
  45. package/dist/esm/v1/DSModalType.js +0 -16
  46. package/dist/esm/v1/DSModalType.js.map +0 -7
  47. package/dist/esm/v1/DSModalWrapper.js +0 -104
  48. package/dist/esm/v1/DSModalWrapper.js.map +0 -7
  49. package/dist/esm/v1/ModalFeedBack/ModalFeedBack.js +0 -62
  50. package/dist/esm/v1/ModalFeedBack/ModalFeedBack.js.map +0 -7
  51. package/dist/esm/v2/DSModal.js +0 -170
  52. package/dist/esm/v2/DSModal.js.map +0 -7
  53. package/dist/esm/v2/blocks.js +0 -46
  54. package/dist/esm/v2/blocks.js.map +0 -7
  55. package/dist/esm/v2/components/DecisionHeader.js +0 -20
  56. package/dist/esm/v2/components/DecisionHeader.js.map +0 -7
  57. package/dist/esm/v2/components/FeedbackIcon.js +0 -27
  58. package/dist/esm/v2/components/FeedbackIcon.js.map +0 -7
  59. package/dist/esm/v2/components/Footer.js +0 -44
  60. package/dist/esm/v2/components/Footer.js.map +0 -7
  61. package/dist/esm/v2/components/FormHeader.js +0 -24
  62. package/dist/esm/v2/components/FormHeader.js.map +0 -7
  63. package/dist/esm/v2/components/ModalContent.js +0 -59
  64. package/dist/esm/v2/components/ModalContent.js.map +0 -7
  65. package/dist/esm/v2/components/SelectionHeader.js +0 -15
  66. package/dist/esm/v2/components/SelectionHeader.js.map +0 -7
  67. package/dist/esm/v2/components/Title.js +0 -10
  68. package/dist/esm/v2/components/Title.js.map +0 -7
  69. package/dist/esm/v2/helpers.js +0 -25
  70. package/dist/esm/v2/helpers.js.map +0 -7
  71. package/dist/types/DSModal.d.ts +0 -13
  72. package/dist/types/constants.d.ts +0 -25
  73. package/dist/types/v1/DSModal.d.ts +0 -142
  74. package/dist/types/v1/DSModalType.d.ts +0 -1
  75. package/dist/types/v1/DSModalWrapper.d.ts +0 -133
  76. package/dist/types/v1/ModalFeedBack/ModalFeedBack.d.ts +0 -10
  77. package/dist/types/v2/DSModal.d.ts +0 -120
  78. package/dist/types/v2/blocks.d.ts +0 -9
  79. package/dist/types/v2/components/DecisionHeader.d.ts +0 -5
  80. package/dist/types/v2/components/FeedbackIcon.d.ts +0 -4
  81. package/dist/types/v2/components/Footer.d.ts +0 -12
  82. package/dist/types/v2/components/FormHeader.d.ts +0 -7
  83. package/dist/types/v2/components/ModalContent.d.ts +0 -20
  84. package/dist/types/v2/components/SelectionHeader.d.ts +0 -7
  85. package/dist/types/v2/components/Title.d.ts +0 -5
  86. package/dist/types/v2/components/tests/DecisionHeader.test.d.ts +0 -1
  87. package/dist/types/v2/components/tests/FeedbackIcon.test.d.ts +0 -1
  88. package/dist/types/v2/components/tests/Footer.test.d.ts +0 -1
  89. package/dist/types/v2/components/tests/FormHeader.test.d.ts +0 -1
  90. package/dist/types/v2/components/tests/SelectionHeader.test.d.ts +0 -1
  91. package/dist/types/v2/helpers.d.ts +0 -16
  92. package/dist/types/v2/tests/DSModal.test.d.ts +0 -1
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/DSModal.tsx"],
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-props-helpers';\nimport ReactModal from 'react-modal';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { MODAL_TYPE_V2 } from '../constants.js';\nimport { DSModalContent } from './components/ModalContent.js';\n\nconst DSModal = ({\n containerProps = {},\n className = '',\n style = {},\n size = 'default',\n //\n modalType = MODAL_TYPE_V2.INFORMATION,\n modalSubType = null,\n modalTitle = '',\n dataTestId = 'ds-modal',\n centered = false,\n showRejectButton = false,\n showClose = true,\n searchProps = {},\n // override\n actionsRef = () => null,\n additionalFooterCssClass,\n overridePropsConfirmButton = {},\n overridePropsRejectButton = {},\n // react modal\n children,\n isOpen = true,\n onClose = () => null,\n onAfterOpen = () => null,\n onConfirm = () => null,\n onReject = () => null,\n rejectLabel = 'Discard',\n confirmLabel = 'Save',\n shouldCloseOnOverlayClick = false,\n appElement = 'body',\n zIndex,\n removePadding = false,\n}) => {\n if (typeof document !== 'undefined' && process.env.NODE_ENV !== 'test' && document && ReactModal.setAppElement) {\n ReactModal.setAppElement(appElement);\n }\n\n const { cssClassName, classNameBlock, classNameModifier } = convertPropToCssClassName('modal-v2', className, {\n size,\n });\n\n const theme = useContext(ThemeContext);\n\n return (\n <ReactModal\n testId={dataTestId}\n className={`${cssClassName} ${classNameBlock(`type-${modalType}`)}`}\n contentLabel={modalTitle}\n isOpen={isOpen}\n onAfterOpen={onAfterOpen}\n onRequestClose={onClose}\n overlayClassName={`${classNameBlock('overlay')} ${classNameModifier(centered ? 'center' : 'top')}`}\n shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}\n style={{\n content: {\n ...style,\n },\n overlay: {\n // position: 'absolute', https://jira.elliemae.io/browse/PUI-1471, the overlay should be positioned based on the browser window rather positioned absolute to its parent\n zIndex: zIndex ?? theme.zIndex.dialog,\n },\n }}\n >\n <DSModalContent\n actionsRef={actionsRef}\n additionalFooterCssClass={additionalFooterCssClass}\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n modalSubType={modalSubType}\n modalTitle={modalTitle}\n modalType={modalType}\n onClose={onClose}\n onConfirm={onConfirm}\n onReject={onReject}\n overridePropsConfirmButton={overridePropsConfirmButton}\n overridePropsRejectButton={overridePropsRejectButton}\n rejectLabel={rejectLabel}\n searchProps={searchProps}\n showClose={showClose}\n showRejectButton={showRejectButton}\n removePadding={removePadding}\n >\n {children}\n </DSModalContent>\n </ReactModal>\n );\n};\n\nconst props = {\n /** inject props to container wrapper */\n containerProps: PropTypes.object.description('inject props to container wrapper'),\n /** css class */\n className: PropTypes.string.description('css class'),\n /** style object for container wrapper */\n style: PropTypes.object.description('style object for container wrapper'),\n /** modal container title */\n modalTitle: PropTypes.string.description('modal container title'),\n /** center container */\n centered: PropTypes.bool.description('center container'),\n /** show reject button */\n showRejectButton: PropTypes.bool.description('show reject button'),\n /** show close button */\n showClose: PropTypes.bool.description('show close button'),\n /*\n Props for search component\n */\n searchProps: PropTypes.object.description('Props for search component'),\n /** css class for footer */\n additionalFooterCssClass: PropTypes.string.description('css class for footer'),\n /** override props confirm button */\n overridePropsConfirmButton: PropTypes.object.description('override props confirm button'),\n /** override props reject button */\n overridePropsRejectButton: PropTypes.object.description('override props reject button'),\n /** controlled isOpen flag */\n isOpen: PropTypes.bool.description('controlled isOpen flag'),\n /** close callback */\n onClose: PropTypes.func.description('close callback'),\n /** after open callback */\n onAfterOpen: PropTypes.func.description('after open callback'),\n /** confirm callback */\n onConfirm: PropTypes.func.description('confirm callback'),\n /** reject callback */\n onReject: PropTypes.func.description('reject callback'),\n /** reject label */\n rejectLabel: PropTypes.string.description('reject label'),\n /** confirm text string */\n confirmLabel: PropTypes.string.description('confirm text string'),\n /** modal container size */\n size: PropTypes.oneOf(['default', 'xx-large', 'x-large', 'large', 'medium', 'small']).description(\n 'modal container size',\n ),\n /** modal sub type */\n modalSubType: PropTypes.any.description('modal sub type'),\n /** modal type */\n modalType: PropTypes.any.description('modal type'),\n /** ref for modal footer actions */\n actionsRef: PropTypes.any.description('ref for modal footer actions'),\n /** modal container children */\n children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]).description(\n 'modal container children',\n ),\n /** close on click outside container */\n shouldCloseOnOverlayClick: PropTypes.bool.description('close on click outside container'),\n /*\n App element ID to inject the modal\n */\n appElement: PropTypes.string.description('App element ID to inject the modal'),\n /** zindex for modal container */\n zIndex: PropTypes.number.description('zindex for modal container'),\n /** remove modal builtin padding */\n removePadding: PropTypes.bool.description('remove modal builtin padding'),\n};\n\nDSModal.propTypes = props;\nDSModal.displayName = 'DSModal';\nconst DSModalWithSchema = describe(DSModal);\nDSModalWithSchema.propTypes = props;\n\nexport { DSModalContent, DSModalWithSchema };\nexport default DSModal;\n"],
5
- "mappings": "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",
6
- "names": []
7
- }
@@ -1,46 +0,0 @@
1
- import * as React from "react";
2
- import { aggregatedClasses } from "@elliemae/ds-classnames";
3
- const blockName = "modal-v2";
4
- const ModalHeader = aggregatedClasses("div")(blockName, "modal-header", ({ type, showClose }) => ({
5
- [type]: type,
6
- "with-close": showClose
7
- }));
8
- const ModalHeaderTopRight = aggregatedClasses("div")(blockName, "modal-header-close", ({ type }) => ({
9
- [type]: type
10
- }));
11
- const ModalFeedback = aggregatedClasses("div")(blockName, "modal-feedback", ({ type }) => ({
12
- [type]: type
13
- }));
14
- const ModalTitle = aggregatedClasses("h3")(blockName, "modal-title", ({ type }) => ({
15
- [type]: type
16
- }));
17
- const ModalContent = aggregatedClasses("div")(blockName, "modal-content", ({ type, removePadding }) => ({
18
- [type]: type,
19
- "remove-padding": removePadding
20
- }));
21
- const ModalWrapper = aggregatedClasses("div")(blockName, "modal-wrapper", ({ type, removePadding }) => ({
22
- [type]: type,
23
- "remove-padding": removePadding
24
- }));
25
- const ModalFooter = aggregatedClasses("div")(
26
- blockName,
27
- "modal-footer",
28
- ({ type, additionalFooterCssClass }) => ({
29
- [type]: type,
30
- [additionalFooterCssClass]: additionalFooterCssClass
31
- })
32
- );
33
- const ModalFooterActions = aggregatedClasses("div")(blockName, "modal-footer-actions", ({ type }) => ({
34
- [type]: type
35
- }));
36
- export {
37
- ModalContent,
38
- ModalFeedback,
39
- ModalFooter,
40
- ModalFooterActions,
41
- ModalHeader,
42
- ModalHeaderTopRight,
43
- ModalTitle,
44
- ModalWrapper
45
- };
46
- //# sourceMappingURL=blocks.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/blocks.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'modal-v2';\n\nexport const ModalHeader = aggregatedClasses('div')(blockName, 'modal-header', ({ type, showClose }) => ({\n [type]: type,\n 'with-close': showClose,\n}));\n\nexport const ModalHeaderTopRight = aggregatedClasses('div')(blockName, 'modal-header-close', ({ type }) => ({\n [type]: type,\n}));\n\nexport const ModalFeedback = aggregatedClasses('div')(blockName, 'modal-feedback', ({ type }) => ({\n [type]: type,\n}));\n\nexport const ModalTitle = aggregatedClasses('h3')(blockName, 'modal-title', ({ type }) => ({\n [type]: type,\n}));\n\nexport const ModalContent = aggregatedClasses('div')(blockName, 'modal-content', ({ type, removePadding }) => ({\n [type]: type,\n 'remove-padding': removePadding,\n}));\n\nexport const ModalWrapper = aggregatedClasses('div')(blockName, 'modal-wrapper', ({ type, removePadding }) => ({\n [type]: type,\n 'remove-padding': removePadding,\n}));\n\nexport const ModalFooter = aggregatedClasses('div')(\n blockName,\n 'modal-footer',\n ({ type, additionalFooterCssClass }) => ({\n [type]: type,\n [additionalFooterCssClass]: additionalFooterCssClass,\n }),\n);\n\nexport const ModalFooterActions = aggregatedClasses('div')(blockName, 'modal-footer-actions', ({ type }) => ({\n [type]: type,\n}));\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,yBAAyB;AAElC,MAAM,YAAY;AAEX,MAAM,cAAc,kBAAkB,KAAK,EAAE,WAAW,gBAAgB,CAAC,EAAE,MAAM,UAAU,OAAO;AAAA,EACvG,CAAC,IAAI,GAAG;AAAA,EACR,cAAc;AAChB,EAAE;AAEK,MAAM,sBAAsB,kBAAkB,KAAK,EAAE,WAAW,sBAAsB,CAAC,EAAE,KAAK,OAAO;AAAA,EAC1G,CAAC,IAAI,GAAG;AACV,EAAE;AAEK,MAAM,gBAAgB,kBAAkB,KAAK,EAAE,WAAW,kBAAkB,CAAC,EAAE,KAAK,OAAO;AAAA,EAChG,CAAC,IAAI,GAAG;AACV,EAAE;AAEK,MAAM,aAAa,kBAAkB,IAAI,EAAE,WAAW,eAAe,CAAC,EAAE,KAAK,OAAO;AAAA,EACzF,CAAC,IAAI,GAAG;AACV,EAAE;AAEK,MAAM,eAAe,kBAAkB,KAAK,EAAE,WAAW,iBAAiB,CAAC,EAAE,MAAM,cAAc,OAAO;AAAA,EAC7G,CAAC,IAAI,GAAG;AAAA,EACR,kBAAkB;AACpB,EAAE;AAEK,MAAM,eAAe,kBAAkB,KAAK,EAAE,WAAW,iBAAiB,CAAC,EAAE,MAAM,cAAc,OAAO;AAAA,EAC7G,CAAC,IAAI,GAAG;AAAA,EACR,kBAAkB;AACpB,EAAE;AAEK,MAAM,cAAc,kBAAkB,KAAK;AAAA,EAChD;AAAA,EACA;AAAA,EACA,CAAC,EAAE,MAAM,yBAAyB,OAAO;AAAA,IACvC,CAAC,IAAI,GAAG;AAAA,IACR,CAAC,wBAAwB,GAAG;AAAA,EAC9B;AACF;AAEO,MAAM,qBAAqB,kBAAkB,KAAK,EAAE,WAAW,wBAAwB,CAAC,EAAE,KAAK,OAAO;AAAA,EAC3G,CAAC,IAAI,GAAG;AACV,EAAE;",
6
- "names": []
7
- }
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { Close } from "@elliemae/ds-icons";
4
- import DSButton from "@elliemae/ds-button";
5
- import { ModalHeader } from "../blocks.js";
6
- const DecisionHeader = ({ onClose, showClose }) => /* @__PURE__ */ jsx(ModalHeader, { classProps: { type: "decision", showClose }, children: showClose && /* @__PURE__ */ jsx(
7
- DSButton,
8
- {
9
- buttonType: "link",
10
- containerProps: { "data-testid": "modal-button-close" },
11
- icon: /* @__PURE__ */ jsx(Close, { color: ["neutral", "900"] }),
12
- onClick: onClose
13
- }
14
- ) });
15
- var DecisionHeader_default = DecisionHeader;
16
- export {
17
- DecisionHeader,
18
- DecisionHeader_default as default
19
- };
20
- //# sourceMappingURL=DecisionHeader.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/v2/components/DecisionHeader.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 } from '../blocks.js';\n\nexport const DecisionHeader = ({ onClose, showClose }) => (\n <ModalHeader classProps={{ type: 'decision', showClose }}>\n {showClose && (\n <DSButton\n buttonType=\"link\"\n containerProps={{ 'data-testid': 'modal-button-close' }}\n icon={<Close color={['neutral', '900']} />}\n onClick={onClose}\n />\n )}\n </ModalHeader>\n);\n\nexport default DecisionHeader;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACYT;AAVd,SAAS,aAAa;AACtB,OAAO,cAAc;AACrB,SAAS,mBAAmB;AAErB,MAAM,iBAAiB,CAAC,EAAE,SAAS,UAAU,MAClD,oBAAC,eAAY,YAAY,EAAE,MAAM,YAAY,UAAU,GACpD,uBACC;AAAA,EAAC;AAAA;AAAA,IACC,YAAW;AAAA,IACX,gBAAgB,EAAE,eAAe,qBAAqB;AAAA,IACtD,MAAM,oBAAC,SAAM,OAAO,CAAC,WAAW,KAAK,GAAG;AAAA,IACxC,SAAS;AAAA;AACX,GAEJ;AAGF,IAAO,yBAAQ;",
6
- "names": []
7
- }
@@ -1,27 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { ErrorHexegon, WarningTriangle, CheckmarkCircle, HelpCircle, InfoCircle } from "@elliemae/ds-icons";
4
- import { MODAL_SUB_TYPE_V2 } from "../../constants.js";
5
- import { ModalFeedback } from "../blocks.js";
6
- const feedbackIconSize = "xxl";
7
- const getIconType = (subtype) => {
8
- switch (subtype) {
9
- case MODAL_SUB_TYPE_V2.WARNING:
10
- return /* @__PURE__ */ jsx(WarningTriangle, { "data-testid": "icon-waring", size: feedbackIconSize });
11
- case MODAL_SUB_TYPE_V2.ERROR:
12
- return /* @__PURE__ */ jsx(ErrorHexegon, { "data-testid": "icon-error", size: feedbackIconSize });
13
- case MODAL_SUB_TYPE_V2.SUCCESS:
14
- return /* @__PURE__ */ jsx(CheckmarkCircle, { "data-testid": "icon-success", size: feedbackIconSize });
15
- case MODAL_SUB_TYPE_V2.INFORMATION:
16
- return /* @__PURE__ */ jsx(InfoCircle, { "data-testid": "icon-information", size: feedbackIconSize });
17
- default:
18
- return /* @__PURE__ */ jsx(HelpCircle, { "data-testid": "icon-help", size: feedbackIconSize });
19
- }
20
- };
21
- const FeedbackIcon = ({ modalSubType }) => /* @__PURE__ */ jsx(ModalFeedback, { classProps: { type: modalSubType }, children: getIconType(modalSubType) });
22
- var FeedbackIcon_default = FeedbackIcon;
23
- export {
24
- FeedbackIcon,
25
- FeedbackIcon_default as default
26
- };
27
- //# sourceMappingURL=FeedbackIcon.js.map
@@ -1,7 +0,0 @@
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';\nimport { MODAL_SUB_TYPE_V2 } from '../../constants.js';\nimport { ModalFeedback } from '../blocks.js';\n\nconst feedbackIconSize = 'xxl';\n\nconst getIconType = (subtype) => {\n switch (subtype) {\n case MODAL_SUB_TYPE_V2.WARNING:\n return <WarningTriangle data-testid=\"icon-waring\" size={feedbackIconSize} />;\n case MODAL_SUB_TYPE_V2.ERROR:\n return <ErrorHexegon data-testid=\"icon-error\" size={feedbackIconSize} />;\n case MODAL_SUB_TYPE_V2.SUCCESS:\n return <CheckmarkCircle data-testid=\"icon-success\" size={feedbackIconSize} />;\n case MODAL_SUB_TYPE_V2.INFORMATION:\n return <InfoCircle data-testid=\"icon-information\" size={feedbackIconSize} />;\n default:\n return <HelpCircle data-testid=\"icon-help\" size={feedbackIconSize} />;\n }\n};\n\nexport const FeedbackIcon = ({ modalSubType }) => (\n <ModalFeedback classProps={{ type: modalSubType }}>{getIconType(modalSubType)}</ModalFeedback>\n);\n\nexport default FeedbackIcon;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACUV;AATb,SAAS,cAAc,iBAAiB,iBAAiB,YAAY,kBAAkB;AACvF,SAAS,yBAAyB;AAClC,SAAS,qBAAqB;AAE9B,MAAM,mBAAmB;AAEzB,MAAM,cAAc,CAAC,YAAY;AAC/B,UAAQ,SAAS;AAAA,IACf,KAAK,kBAAkB;AACrB,aAAO,oBAAC,mBAAgB,eAAY,eAAc,MAAM,kBAAkB;AAAA,IAC5E,KAAK,kBAAkB;AACrB,aAAO,oBAAC,gBAAa,eAAY,cAAa,MAAM,kBAAkB;AAAA,IACxE,KAAK,kBAAkB;AACrB,aAAO,oBAAC,mBAAgB,eAAY,gBAAe,MAAM,kBAAkB;AAAA,IAC7E,KAAK,kBAAkB;AACrB,aAAO,oBAAC,cAAW,eAAY,oBAAmB,MAAM,kBAAkB;AAAA,IAC5E;AACE,aAAO,oBAAC,cAAW,eAAY,aAAY,MAAM,kBAAkB;AAAA,EACvE;AACF;AAEO,MAAM,eAAe,CAAC,EAAE,aAAa,MAC1C,oBAAC,iBAAc,YAAY,EAAE,MAAM,aAAa,GAAI,sBAAY,YAAY,GAAE;AAGhF,IAAO,uBAAQ;",
6
- "names": []
7
- }
@@ -1,44 +0,0 @@
1
- import * as React from "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import DSButton from "@elliemae/ds-button";
4
- import { ModalFooter, ModalFooterActions } from "../blocks.js";
5
- const Footer = ({
6
- additionalFooterCssClass,
7
- actionsRef,
8
- rejectLabel,
9
- onReject,
10
- overridePropsRejectButton,
11
- confirmLabel,
12
- onConfirm,
13
- overridePropsConfirmButton,
14
- showRejectButton
15
- }) => /* @__PURE__ */ jsx(ModalFooter, { classProps: { additionalFooterCssClass }, "data-testid": "modal-footer-wrapper", children: /* @__PURE__ */ jsxs(ModalFooterActions, { ref: actionsRef, children: [
16
- showRejectButton === true && /* @__PURE__ */ jsx(
17
- DSButton,
18
- {
19
- buttonType: "secondary",
20
- className: "action-reject",
21
- containerProps: { "data-testid": "modal-footer-reject-btn" },
22
- labelText: rejectLabel,
23
- onClick: onReject,
24
- ...overridePropsRejectButton
25
- }
26
- ),
27
- /* @__PURE__ */ jsx(
28
- DSButton,
29
- {
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
- var Footer_default = Footer;
40
- export {
41
- Footer,
42
- Footer_default as default
43
- };
44
- //# sourceMappingURL=Footer.js.map
@@ -1,7 +0,0 @@
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.js';\n\nexport const Footer = ({\n additionalFooterCssClass,\n actionsRef,\n rejectLabel,\n onReject,\n overridePropsRejectButton,\n confirmLabel,\n onConfirm,\n overridePropsConfirmButton,\n showRejectButton,\n}) => (\n <ModalFooter classProps={{ additionalFooterCssClass }} data-testid=\"modal-footer-wrapper\">\n <ModalFooterActions ref={actionsRef}>\n {showRejectButton === true && (\n <DSButton\n buttonType=\"secondary\"\n className=\"action-reject\"\n containerProps={{ 'data-testid': 'modal-footer-reject-btn' }}\n labelText={rejectLabel}\n onClick={onReject}\n {...overridePropsRejectButton}\n />\n )}\n <DSButton\n buttonType=\"primary\"\n className=\"action-confirm\"\n containerProps={{ 'data-testid': 'modal-footer-confirm-btn' }}\n labelText={confirmLabel}\n onClick={onConfirm}\n {...overridePropsConfirmButton}\n />\n </ModalFooterActions>\n </ModalFooter>\n);\n\nexport default Footer;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACiBnB,SAEI,KAFJ;AAfJ,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,eAAY,YAAY,EAAE,yBAAyB,GAAG,eAAY,wBACjE,+BAAC,sBAAmB,KAAK,YACtB;AAAA,uBAAqB,QACpB;AAAA,IAAC;AAAA;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,gBAAgB,EAAE,eAAe,0BAA0B;AAAA,MAC3D,WAAW;AAAA,MACX,SAAS;AAAA,MACR,GAAG;AAAA;AAAA,EACN;AAAA,EAEF;AAAA,IAAC;AAAA;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,gBAAgB,EAAE,eAAe,2BAA2B;AAAA,MAC5D,WAAW;AAAA,MACX,SAAS;AAAA,MACR,GAAG;AAAA;AAAA,EACN;AAAA,GACF,GACF;AAGF,IAAO,iBAAQ;",
6
- "names": []
7
- }
@@ -1,24 +0,0 @@
1
- import * as React from "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Close } from "@elliemae/ds-icons";
4
- import DSButton from "@elliemae/ds-button";
5
- import { ModalHeader, ModalHeaderTopRight } from "../blocks.js";
6
- import { Title } from "./Title.js";
7
- const FormHeader = ({ showClose, modalTitle, modalType, onClose }) => /* @__PURE__ */ jsxs(ModalHeader, { classProps: { type: "selection" }, children: [
8
- /* @__PURE__ */ jsx(Title, { modalTitle, modalType }),
9
- /* @__PURE__ */ jsx(ModalHeaderTopRight, { classProps: { type: "form" }, children: showClose && /* @__PURE__ */ jsx(
10
- DSButton,
11
- {
12
- buttonType: "link",
13
- containerProps: { "data-testid": "modal-close-btn" },
14
- icon: /* @__PURE__ */ jsx(Close, { color: ["neutral", "900"] }),
15
- onClick: onClose
16
- }
17
- ) })
18
- ] });
19
- var FormHeader_default = FormHeader;
20
- export {
21
- FormHeader,
22
- FormHeader_default as default
23
- };
24
- //# sourceMappingURL=FormHeader.js.map
@@ -1,7 +0,0 @@
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.js';\nimport { Title } from './Title.js';\n\nexport const FormHeader = ({ showClose, modalTitle, modalType, onClose }) => (\n <ModalHeader classProps={{ type: 'selection' }}>\n <Title modalTitle={modalTitle} modalType={modalType} />\n <ModalHeaderTopRight classProps={{ type: 'form' }}>\n {showClose && (\n <DSButton\n buttonType=\"link\"\n containerProps={{ 'data-testid': 'modal-close-btn' }}\n icon={<Close color={['neutral', '900']} />}\n onClick={onClose}\n />\n )}\n </ModalHeaderTopRight>\n </ModalHeader>\n);\n\nexport default FormHeader;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACQrB,SACE,KADF;AANF,SAAS,aAAa;AACtB,OAAO,cAAc;AACrB,SAAS,aAAa,2BAA2B;AACjD,SAAS,aAAa;AAEf,MAAM,aAAa,CAAC,EAAE,WAAW,YAAY,WAAW,QAAQ,MACrE,qBAAC,eAAY,YAAY,EAAE,MAAM,YAAY,GAC3C;AAAA,sBAAC,SAAM,YAAwB,WAAsB;AAAA,EACrD,oBAAC,uBAAoB,YAAY,EAAE,MAAM,OAAO,GAC7C,uBACC;AAAA,IAAC;AAAA;AAAA,MACC,YAAW;AAAA,MACX,gBAAgB,EAAE,eAAe,kBAAkB;AAAA,MACnD,MAAM,oBAAC,SAAM,OAAO,CAAC,WAAW,KAAK,GAAG;AAAA,MACxC,SAAS;AAAA;AAAA,EACX,GAEJ;AAAA,GACF;AAGF,IAAO,qBAAQ;",
6
- "names": []
7
- }
@@ -1,59 +0,0 @@
1
- import * as React from "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { MODAL_TYPE_V2 } from "../../constants.js";
4
- import { SelectionHeader } from "./SelectionHeader.js";
5
- import { DecisionHeader } from "./DecisionHeader.js";
6
- import { FormHeader } from "./FormHeader.js";
7
- import { FeedbackIcon } from "./FeedbackIcon.js";
8
- import { Footer } from "./Footer.js";
9
- import { Title } from "./Title.js";
10
- import { showDecision, showFeedBack, showFooter, showSelection, showForm } from "../helpers.js";
11
- import { ModalContent, ModalWrapper } from "../blocks.js";
12
- const DSModalContent = ({
13
- containerProps = {},
14
- //
15
- modalType = MODAL_TYPE_V2.INFORMATION,
16
- modalSubType = null,
17
- modalTitle = "",
18
- showRejectButton = false,
19
- showClose = true,
20
- searchProps = {},
21
- // override
22
- actionsRef = () => null,
23
- additionalFooterCssClass,
24
- overridePropsConfirmButton = {},
25
- overridePropsRejectButton = {},
26
- // react modal
27
- children,
28
- onClose = () => null,
29
- onConfirm = () => null,
30
- onReject = () => null,
31
- rejectLabel = "Discard",
32
- confirmLabel = "Save",
33
- removePadding = false
34
- }) => /* @__PURE__ */ jsxs(ModalWrapper, { ...containerProps, children: [
35
- showForm({ modalType, modalSubType }) && /* @__PURE__ */ jsx(FormHeader, { modalTitle, modalType, onClose, showClose }),
36
- showSelection({ modalType, modalSubType }) && /* @__PURE__ */ jsx(SelectionHeader, { modalTitle, modalType, searchProps, showClose }),
37
- showDecision({ modalType, modalSubType }) && /* @__PURE__ */ jsx(DecisionHeader, { onClose, showClose }),
38
- showFeedBack({ modalType, modalSubType }) && /* @__PURE__ */ jsx(FeedbackIcon, { modalSubType }),
39
- showDecision({ modalType, modalSubType }) && /* @__PURE__ */ jsx(Title, { modalTitle, modalType }),
40
- /* @__PURE__ */ jsx(ModalContent, { classProps: { type: modalType, removePadding }, children }),
41
- showFooter({ modalType, modalSubType }) && /* @__PURE__ */ jsx(
42
- Footer,
43
- {
44
- actionsRef,
45
- additionalFooterCssClass,
46
- confirmLabel,
47
- onConfirm,
48
- onReject,
49
- overridePropsConfirmButton,
50
- overridePropsRejectButton,
51
- rejectLabel,
52
- showRejectButton
53
- }
54
- )
55
- ] });
56
- export {
57
- DSModalContent
58
- };
59
- //# sourceMappingURL=ModalContent.js.map
@@ -1,7 +0,0 @@
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.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"],
5
- "mappings": "AAAA,YAAY,WAAW;ACmCrB,SAEI,KAFJ;AAjCF,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AACvB,SAAS,aAAa;AACtB,SAAS,cAAc,cAAc,YAAY,eAAe,gBAAgB;AAChF,SAAS,cAAc,oBAAoB;AAEpC,MAAM,iBAAiB,CAAC;AAAA,EAC7B,iBAAiB,CAAC;AAAA;AAAA,EAElB,YAAY,cAAc;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,qBAAC,gBAAc,GAAG,gBACf;AAAA,WAAS,EAAE,WAAW,aAAa,CAAC,KACnC,oBAAC,cAAW,YAAwB,WAAsB,SAAkB,WAAsB;AAAA,EAEnG,cAAc,EAAE,WAAW,aAAa,CAAC,KACxC,oBAAC,mBAAgB,YAAwB,WAAsB,aAA0B,WAAsB;AAAA,EAEhH,aAAa,EAAE,WAAW,aAAa,CAAC,KAAK,oBAAC,kBAAe,SAAkB,WAAsB;AAAA,EACrG,aAAa,EAAE,WAAW,aAAa,CAAC,KAAK,oBAAC,gBAAa,cAA4B;AAAA,EACvF,aAAa,EAAE,WAAW,aAAa,CAAC,KAAK,oBAAC,SAAM,YAAwB,WAAsB;AAAA,EACnG,oBAAC,gBAAa,YAAY,EAAE,MAAM,WAAW,cAAc,GAAI,UAAS;AAAA,EACvE,WAAW,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,15 +0,0 @@
1
- import * as React from "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { DSSearchBox } from "@elliemae/ds-form";
4
- import { ModalHeader, ModalHeaderTopRight } from "../blocks.js";
5
- import { Title } from "./Title.js";
6
- const SelectionHeader = ({ searchProps = {}, modalTitle, modalType, showClose }) => /* @__PURE__ */ jsxs(ModalHeader, { classProps: { type: "selection" }, children: [
7
- /* @__PURE__ */ jsx(Title, { modalTitle, modalType }),
8
- showClose && /* @__PURE__ */ jsx(ModalHeaderTopRight, { classProps: { type: "selection" }, "data-testid": "modal-search-box", children: /* @__PURE__ */ jsx(DSSearchBox, { ...searchProps }) })
9
- ] });
10
- var SelectionHeader_default = SelectionHeader;
11
- export {
12
- SelectionHeader,
13
- SelectionHeader_default as default
14
- };
15
- //# sourceMappingURL=SelectionHeader.js.map
@@ -1,7 +0,0 @@
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.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"],
5
- "mappings": "AAAA,YAAY,WAAW;ACOrB,SACE,KADF;AALF,SAAS,mBAAmB;AAC5B,SAAS,aAAa,2BAA2B;AACjD,SAAS,aAAa;AAEf,MAAM,kBAAkB,CAAC,EAAE,cAAc,CAAC,GAAG,YAAY,WAAW,UAAU,MACnF,qBAAC,eAAY,YAAY,EAAE,MAAM,YAAY,GAC3C;AAAA,sBAAC,SAAM,YAAwB,WAAsB;AAAA,EACpD,aACC,oBAAC,uBAAoB,YAAY,EAAE,MAAM,YAAY,GAAG,eAAY,oBAClE,8BAAC,eAAa,GAAG,aAAa,GAChC;AAAA,GAEJ;AAGF,IAAO,0BAAQ;",
6
- "names": []
7
- }
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { ModalTitle } from "../blocks.js";
4
- const Title = ({ modalTitle, modalType }) => /* @__PURE__ */ jsx(ModalTitle, { classProps: { type: modalType }, children: modalTitle });
5
- var Title_default = Title;
6
- export {
7
- Title,
8
- Title_default as default
9
- };
10
- //# sourceMappingURL=Title.js.map
@@ -1,7 +0,0 @@
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.js';\n\nexport const Title = ({ modalTitle, modalType }) => (\n <ModalTitle classProps={{ type: modalType }}>{modalTitle}</ModalTitle>\n);\n\nexport default Title;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACKrB;AAHF,SAAS,kBAAkB;AAEpB,MAAM,QAAQ,CAAC,EAAE,YAAY,UAAU,MAC5C,oBAAC,cAAW,YAAY,EAAE,MAAM,UAAU,GAAI,sBAAW;AAG3D,IAAO,gBAAQ;",
6
- "names": []
7
- }
@@ -1,25 +0,0 @@
1
- import * as React from "react";
2
- import { MODAL_TYPE_V2, MODAL_SUB_TYPE_V2 } from "../constants.js";
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
@@ -1,7 +0,0 @@
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.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"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe,yBAAyB;AAE1C,SAAS,aAAa,EAAE,UAAU,GAAG;AAC1C,SAAO,CAAC,cAAc,aAAa,cAAc,QAAQ,EAAE,QAAQ,SAAS,IAAI;AAClF;AAEO,SAAS,aAAa,EAAE,WAAW,aAAa,GAAG;AACxD,SAAO,aAAa,EAAE,UAAU,CAAC,KAAK,OAAO,OAAO,iBAAiB,EAAE,QAAQ,YAAY,IAAI;AACjG;AAEO,SAAS,WAAW,EAAE,UAAU,GAAG;AACxC,SAAO,cAAc,cAAc;AACrC;AAEO,SAAS,cAAc,EAAE,UAAU,GAAG;AAC3C,SAAO,cAAc,cAAc;AACrC;AACO,SAAS,SAAS,EAAE,UAAU,GAAG;AACtC,SAAO,cAAc,cAAc;AACrC;",
6
- "names": []
7
- }
@@ -1,13 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import { DSModalContent } from './v2/DSModal.js';
3
- declare const DSModal: {
4
- ({ version, ...rest }: {
5
- [x: string]: any;
6
- version?: number | undefined;
7
- }): import("react/jsx-runtime.js").JSX.Element;
8
- propTypes: {
9
- version: PropTypes.Requireable<number>;
10
- };
11
- };
12
- export { DSModalContent, DSModal };
13
- export default DSModal;
@@ -1,25 +0,0 @@
1
- export declare const MODAL_TYPE: {
2
- DEFAULT: string;
3
- ALERT: string;
4
- CONFIRM: string;
5
- NOTIFICATION: string;
6
- WARNING: string;
7
- ERROR: string;
8
- SUCCESS: string;
9
- HELP: string;
10
- INFO: string;
11
- };
12
- export declare const modalTypes: string[];
13
- export declare const MODAL_TYPE_V2: {
14
- INFORMATION: string;
15
- DECISION: string;
16
- SELECTION: string;
17
- FORM: string;
18
- };
19
- export declare const MODAL_SUB_TYPE_V2: {
20
- SUCCESS: string;
21
- WARNING: string;
22
- ERROR: string;
23
- INFORMATION: string;
24
- };
25
- export default MODAL_TYPE;
@@ -1,142 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- declare const DSModal: {
3
- ({ containerProps, className, dataTestId, additionalFooterCssClass, style, iconCloseSize, modalType, showHeader, showFooter, children, centered, confirmLabel, modalTitle, size, isOpen, onClose, onAfterOpen, onConfirm, onReject, rejectLabel, shouldCloseOnOverlayClick, hasError, hasWarning, hasSuccess, hasInfo, hasHelp, actionsRef, appElement, overridePropsConfirmButton, overridePropsRejectButton, zIndex, }: {
4
- containerProps?: {} | undefined;
5
- className?: string | undefined;
6
- dataTestId?: string | undefined;
7
- additionalFooterCssClass?: string | undefined;
8
- style?: {} | undefined;
9
- iconCloseSize?: string | undefined;
10
- modalType?: string | undefined;
11
- showHeader?: boolean | undefined;
12
- showFooter?: boolean | undefined;
13
- children: any;
14
- centered?: boolean | undefined;
15
- confirmLabel?: string | undefined;
16
- modalTitle?: string | undefined;
17
- size?: string | undefined;
18
- isOpen?: boolean | undefined;
19
- onClose?: (() => null) | undefined;
20
- onAfterOpen?: (() => null) | undefined;
21
- onConfirm?: (() => null) | undefined;
22
- onReject?: (() => null) | undefined;
23
- rejectLabel?: string | undefined;
24
- shouldCloseOnOverlayClick?: boolean | undefined;
25
- hasError?: boolean | undefined;
26
- hasWarning?: boolean | undefined;
27
- hasSuccess?: boolean | undefined;
28
- hasInfo?: boolean | undefined;
29
- hasHelp?: boolean | undefined;
30
- actionsRef?: (() => null) | undefined;
31
- appElement?: string | undefined;
32
- overridePropsConfirmButton?: {} | undefined;
33
- overridePropsRejectButton?: {} | undefined;
34
- zIndex?: number | undefined;
35
- }): import("react/jsx-runtime.js").JSX.Element;
36
- propTypes: {
37
- className: PropTypes.Requireable<string>;
38
- /**
39
- * Add an additional css class to the footer
40
- */
41
- additionalFooterCssClass: PropTypes.Requireable<string>;
42
- /**
43
- * Set style for the modal
44
- */
45
- style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
46
- /**
47
- * Select size for the close icon
48
- */
49
- iconCloseSize: PropTypes.Requireable<"xxl" | "m" | "xxs" | "xs" | "s" | "l" | "xl">;
50
- /**
51
- * ['default', 'alert', 'confirm', 'notification', 'warning', 'error', 'success', 'help', 'info']
52
- */
53
- modalType: PropTypes.Requireable<string>;
54
- /**
55
- * Show the header or not
56
- */
57
- showHeader: PropTypes.Requireable<boolean>;
58
- /**
59
- * Show the footer or not
60
- */
61
- showFooter: PropTypes.Requireable<boolean>;
62
- /**
63
- * Main content of the modal
64
- */
65
- children: PropTypes.Validator<any>;
66
- /**
67
- * Content is centered or not
68
- */
69
- centered: PropTypes.Requireable<boolean>;
70
- /**
71
- * Text to be added in the confirm button
72
- */
73
- confirmLabel: PropTypes.Requireable<string>;
74
- /**
75
- * Text to be added in the modal title
76
- */
77
- modalTitle: PropTypes.Requireable<string>;
78
- /**
79
- * Text to be added in the modal title
80
- */
81
- size: PropTypes.Requireable<"small" | "medium" | "xsmall" | "large" | "xlarge">;
82
- /**
83
- * Modal is open or not
84
- */
85
- isOpen: PropTypes.Requireable<boolean>;
86
- /**
87
- * Allows a function to be triggered once the modal is closed
88
- */
89
- onClose: PropTypes.Requireable<(...args: any[]) => any>;
90
- /**
91
- * Allows a function to be triggered once the modal is opened
92
- */
93
- onAfterOpen: PropTypes.Requireable<(...args: any[]) => any>;
94
- /**
95
- * Allows a function to be triggered once the modal open is confirmed
96
- */
97
- onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
98
- /**
99
- * Allows a function to be triggered once the modal open is rejected
100
- */
101
- onReject: PropTypes.Requireable<(...args: any[]) => any>;
102
- /**
103
- * Text to be added in the reject button
104
- */
105
- rejectLabel: PropTypes.Requireable<string>;
106
- /**
107
- * If modal should close on overlay click
108
- */
109
- shouldCloseOnOverlayClick: PropTypes.Requireable<boolean>;
110
- /**
111
- * Modal has error or not
112
- */
113
- hasError: PropTypes.Requireable<boolean>;
114
- /**
115
- * Modal has warning or not
116
- */
117
- hasWarning: PropTypes.Requireable<boolean>;
118
- /**
119
- * Modal has success or not
120
- */
121
- hasSuccess: PropTypes.Requireable<boolean>;
122
- /**
123
- * Modal has info or not
124
- */
125
- hasInfo: PropTypes.Requireable<boolean>;
126
- /**
127
- * Modal has help or not
128
- */
129
- hasHelp: PropTypes.Requireable<boolean>;
130
- actionsRef: PropTypes.Requireable<(...args: any[]) => any>;
131
- appElement: PropTypes.Requireable<string>;
132
- /**
133
- * Customized props for the confirm button
134
- */
135
- overridePropsConfirmButton: PropTypes.Requireable<PropTypes.InferProps<{}>>;
136
- /**
137
- * Customized props for the reject button
138
- */
139
- overridePropsRejectButton: PropTypes.Requireable<PropTypes.InferProps<{}>>;
140
- };
141
- };
142
- export default DSModal;
@@ -1 +0,0 @@
1
- export declare const modalTypes: any[];